@font-face {
  font-family: 'Balsamiq Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/balsamiq-sans-bold-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Balsamiq Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/balsamiq-sans-bold-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 1000;
  font-display: swap;
  src: url('/assets/fonts/nunito-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 1000;
  font-display: swap;
  src: url('/assets/fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --display: 'Balsamiq Sans', 'Arial Rounded MT Bold', sans-serif;
  --sans: 'Nunito', system-ui, sans-serif;
}

body:not(.admin-page) {
  --world-top: #253eb6;
  --world-mid: #172a91;
  --world-deep: #0b1556;
  --world-panel: rgba(26, 40, 132, .84);
  --world-panel-strong: #1a2c91;
  --world-line: rgba(215, 225, 255, .34);
  --world-accent: #ffc94f;
  --world-accent-soft: #ffe6a0;
  --world-secondary: #7357dc;
  --world-rgb: 31, 53, 164;
  font-family: var(--sans);
  font-weight: 600;
}

.theme-new_year {
  --world-top: #2a43bd;
  --world-mid: #1c2e9d;
  --world-deep: #0a155b;
  --world-panel: rgba(26, 42, 139, .86);
  --world-panel-strong: #253ba9;
  --world-line: rgba(218, 228, 255, .38);
  --world-accent: #ffc647;
  --world-accent-soft: #fff0b8;
  --world-secondary: #7859e8;
  --world-rgb: 35, 59, 169;
}

.theme-winter {
  --world-top: #3474bd;
  --world-mid: #2852a0;
  --world-deep: #102664;
  --world-panel: rgba(31, 76, 154, .84);
  --world-panel-strong: #285da9;
  --world-line: rgba(220, 242, 255, .43);
  --world-accent: #c9f2ff;
  --world-accent-soft: #f1fbff;
  --world-secondary: #6d75e0;
  --world-rgb: 40, 91, 169;
}

.theme-christmas {
  --world-top: #2852a7;
  --world-mid: #233b82;
  --world-deep: #101c4c;
  --world-panel: rgba(28, 57, 122, .86);
  --world-panel-strong: #284989;
  --world-line: rgba(225, 236, 255, .37);
  --world-accent: #ffd265;
  --world-accent-soft: #fff0bd;
  --world-secondary: #bd3e62;
  --world-rgb: 38, 68, 137;
}

.theme-halloween {
  --world-top: #7b2b94;
  --world-mid: #522072;
  --world-deep: #250c48;
  --world-panel: rgba(72, 25, 102, .87);
  --world-panel-strong: #662381;
  --world-line: rgba(255, 206, 166, .34);
  --world-accent: #ffad3d;
  --world-accent-soft: #ffd08b;
  --world-secondary: #e85e6c;
  --world-rgb: 101, 35, 132;
}

.theme-spring {
  --world-top: #27a1b9;
  --world-mid: #3677a9;
  --world-deep: #224076;
  --world-panel: rgba(31, 115, 153, .85);
  --world-panel-strong: #2c8aa5;
  --world-line: rgba(234, 255, 246, .37);
  --world-accent: #ffd267;
  --world-accent-soft: #fff0bc;
  --world-secondary: #e86f9b;
  --world-rgb: 42, 133, 169;
}

.theme-summer {
  --world-top: #0eacd0;
  --world-mid: #167eba;
  --world-deep: #174789;
  --world-panel: rgba(14, 119, 169, .84);
  --world-panel-strong: #0d90b9;
  --world-line: rgba(225, 253, 255, .42);
  --world-accent: #ffe05e;
  --world-accent-soft: #fff4b7;
  --world-secondary: #ed6f78;
  --world-rgb: 18, 139, 187;
}

.theme-school {
  --world-top: #397fba;
  --world-mid: #3263a0;
  --world-deep: #1d376f;
  --world-panel: rgba(40, 87, 150, .86);
  --world-panel-strong: #356eaa;
  --world-line: rgba(255, 239, 191, .38);
  --world-accent: #ffd151;
  --world-accent-soft: #fff0ad;
  --world-secondary: #e8665a;
  --world-rgb: 51, 102, 164;
}

.theme-valentine {
  --world-top: #c04e9a;
  --world-mid: #873679;
  --world-deep: #451a5e;
  --world-panel: rgba(132, 43, 114, .86);
  --world-panel-strong: #a03c84;
  --world-line: rgba(255, 221, 242, .4);
  --world-accent: #ffd069;
  --world-accent-soft: #fff0bd;
  --world-secondary: #ed637b;
  --world-rgb: 158, 57, 131;
}

.theme-march_8 {
  --world-top: #25a6b0;
  --world-mid: #3975a0;
  --world-deep: #3b326f;
  --world-panel: rgba(43, 113, 145, .85);
  --world-panel-strong: #40879d;
  --world-line: rgba(255, 232, 242, .42);
  --world-accent: #ffd34e;
  --world-accent-soft: #fff1b1;
  --world-secondary: #ef6f9d;
  --world-rgb: 51, 133, 158;
}

.theme-victory {
  --world-top: #557565;
  --world-mid: #405d52;
  --world-deep: #243a34;
  --world-panel: rgba(55, 84, 72, .88);
  --world-panel-strong: #496b5d;
  --world-line: rgba(255, 226, 169, .34);
  --world-accent: #efb24f;
  --world-accent-soft: #f9d899;
  --world-secondary: #b45c4b;
  --world-rgb: 69, 100, 85;
}

body:not(.admin-page) h1,
body:not(.admin-page) h2,
body:not(.admin-page) h3,
body:not(.admin-page) .brand,
body:not(.admin-page) .footer-brand {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.025em;
}

.sparkle-orb {
  position: relative;
  display: inline-block;
  width: .72em;
  aspect-ratio: 1;
  flex: 0 0 auto;
  vertical-align: .02em;
  background: var(--world-accent);
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
  filter: drop-shadow(0 0 7px var(--world-accent));
}

body:not(.admin-page) .site-header {
  background: linear-gradient(180deg, rgba(8, 18, 78, .86), rgba(var(--world-rgb), .42));
  border-bottom: 1px solid rgba(222, 230, 255, .24);
  box-shadow: 0 12px 30px rgba(7, 12, 63, .17);
}

body:not(.admin-page) .brand-name {
  font-size: clamp(1.32rem, 2.1vw, 1.9rem);
  line-height: 1;
}

body:not(.admin-page) .site-header nav a {
  font-weight: 850;
}

body:not(.admin-page) .site-header nav a:hover,
body:not(.admin-page) .site-header nav a[aria-current='page'] {
  background: linear-gradient(180deg, rgba(112, 104, 226, .44), rgba(53, 64, 173, .36));
  box-shadow: inset 0 1px rgba(255,255,255,.14), 0 5px 15px rgba(3, 7, 52, .13);
}

body:not(.admin-page) .time-unit {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, color-mix(in srgb, var(--world-panel-strong) 92%, #fff 8%), color-mix(in srgb, var(--world-panel-strong) 82%, #090f5b 18%));
  border-color: var(--world-line);
  box-shadow: inset 0 2px rgba(255,255,255,.12), inset 0 -12px 25px rgba(7, 13, 74, .15), 0 13px 30px rgba(5, 10, 62, .27);
}

body:not(.admin-page) .time-unit::before {
  content: '';
  position: absolute;
  left: 7px;
  right: 7px;
  top: -4px;
  z-index: 2;
  height: 12px;
  border-radius: 60% 42% 58% 48%;
  background: linear-gradient(180deg, var(--world-accent-soft), var(--world-accent));
  box-shadow: 0 3px 6px rgba(23, 27, 93, .28);
}

body:is(.theme-new_year, .theme-winter, .theme-christmas) .time-unit::before {
  height: 15px;
  background:
    radial-gradient(circle at 16% 100%, #d9e8ff 0 6px, transparent 6.5px),
    radial-gradient(circle at 48% 100%, #edf6ff 0 8px, transparent 8.5px),
    radial-gradient(circle at 82% 100%, #cfddff 0 6px, transparent 6.5px),
    linear-gradient(180deg, #fff, #dce9ff 72%, transparent 73%);
}

body.theme-halloween .time-unit::before {
  background: radial-gradient(circle at 20% 0, #ffc266 0 5px, transparent 5.5px), linear-gradient(180deg, #ffbd4d, #e7762b);
}

body:is(.theme-spring, .theme-march_8, .theme-valentine) .time-unit::before {
  background: radial-gradient(circle at 14% 50%, #fff0c0 0 4px, transparent 4.5px), radial-gradient(circle at 50% 50%, #ff9fb7 0 5px, transparent 5.5px), radial-gradient(circle at 86% 50%, #fff0c0 0 4px, transparent 4.5px), linear-gradient(90deg, var(--world-secondary), var(--world-accent));
}

body.theme-school .time-unit::before {
  background: repeating-linear-gradient(90deg, #ffd051 0 10px, #fff1b2 10px 15px);
}

body:not(.admin-page) .time-unit strong {
  font-family: var(--display);
  font-weight: 700;
}

body:not(.admin-page) .time-separator i {
  background: var(--world-accent);
  box-shadow: 0 0 12px var(--world-accent);
}

/* Flagship home world */
.home-page .home-world {
  min-height: 1095px;
  background: linear-gradient(180deg, #2038ad 0, #2538b7 49%, #101d78 100%);
}

.home-page .home-world::after {
  inset: 55% 0 0;
  background:
    radial-gradient(ellipse at 20% 8%, rgba(110, 135, 255, .24), transparent 32%),
    linear-gradient(180deg, transparent, rgba(29, 44, 169, .72) 20%, #16278f 66%, #0c175f);
}

.home-page .home-stage {
  min-height: 598px;
  padding-top: 40px;
}

.home-page .home-hero-copy h1 {
  max-width: 620px;
  font-size: clamp(3.7rem, 5.65vw, 5.9rem);
  line-height: .91;
  text-shadow: 0 4px 0 rgba(61, 46, 168, .28), 0 7px 24px rgba(3, 9, 55, .5);
}

.home-page .home-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffe081;
}

.home-page .home-wait .heart-button img,
.interaction-grid .heart-button img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(95, 37, 3, .25));
}

.home-page .home-wait .waiting-figure {
  display: none;
}

.home-page .home-wait .waiting-together > div {
  order: 2;
}

.home-page .home-wait .heart-button {
  order: 1;
}

.home-page .home-wait .waiting-message {
  order: 3;
}

.home-page .home-wait .heart-button {
  min-width: 238px;
  padding-block: 13px;
  border: 2px solid #ffe49a;
}

.home-page .magic-sign {
  top: 365px;
  display: grid;
  justify-items: center;
  padding-bottom: 13px;
}

.home-page .magic-sign img {
  width: 24px;
  height: 24px;
  margin-top: 3px;
}

.home-page .home-lower {
  position: relative;
  padding-bottom: 30px;
}

.home-page .home-lower::before {
  content: '';
  position: absolute;
  left: -10vw;
  right: -10vw;
  bottom: -6px;
  z-index: -1;
  height: 250px;
  border-radius: 50% 50% 0 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(57, 71, 190, .44), transparent 58%);
}

.home-event-rail,
.event-world + .event-landscape .events-grid {
  scrollbar-width: none;
}

.home-event-rail::-webkit-scrollbar,
.event-world + .event-landscape .events-grid::-webkit-scrollbar {
  display: none;
}

.home-page .world-section-heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.home-page .world-section-heading h2 .sparkle-orb {
  width: .65em;
}

.home-page .home-share-panel,
.interaction-grid .waiting-together,
.interaction-grid .share {
  border: 1px solid var(--world-line);
  box-shadow: inset 0 1px rgba(255,255,255,.13), inset 0 -22px 40px rgba(5, 12, 75, .14), 0 17px 34px rgba(4, 9, 60, .24);
}

.home-page .home-benefits {
  border-top-color: rgba(223, 231, 255, .26);
  background: linear-gradient(180deg, rgba(86, 66, 205, .58), rgba(43, 47, 160, .62));
}

.home-page .home-benefits .shell {
  min-height: 88px;
}

.home-page .home-benefits p {
  font-size: .82rem;
  line-height: 1.25;
}

.home-page .home-benefits p img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 5px 7px rgba(4, 7, 52, .28));
}

/* Event pages continue as one illustrated world below the hero. */
.event-world {
  min-height: max(710px, 90svh);
}

.event-world .event-hero {
  min-height: calc(max(710px, 90svh) - 93px);
  padding-top: 82px;
  padding-bottom: 82px;
}

.event-world .event-hero h1 {
  font-size: clamp(3.35rem, 5.5vw, 5.65rem);
  text-shadow: 0 4px 0 rgba(43, 35, 142, .25), 0 8px 27px rgba(6, 11, 60, .46);
}

.event-world .event-hero .eyebrow {
  color: var(--world-accent-soft);
}

.event-world .event-hero .time-unit {
  min-height: 96px;
}

.event-landscape {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 10% 17%, rgba(255,255,255,.08), transparent 18%),
    radial-gradient(circle at 91% 41%, rgba(150, 105, 255, .2), transparent 24%),
    linear-gradient(180deg, var(--world-top) 0, var(--world-mid) 42%, var(--world-deep) 100%);
}

.event-landscape::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .32;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.9) 0 1.2px, transparent 1.8px),
    radial-gradient(circle, var(--world-accent) 0 1px, transparent 1.6px);
  background-size: 103px 129px, 167px 151px;
  mask-image: linear-gradient(transparent, #000 8%, #000 87%, transparent);
}

.event-landscape::after {
  content: '';
  position: absolute;
  left: -12%;
  right: -12%;
  top: 280px;
  z-index: -1;
  height: 390px;
  opacity: .36;
  border-radius: 50% 48% 46% 50%;
  background:
    radial-gradient(ellipse at 22% 100%, rgba(111, 121, 233, .7) 0 31%, transparent 31.5%),
    radial-gradient(ellipse at 64% 100%, rgba(86, 98, 210, .65) 0 37%, transparent 37.5%),
    radial-gradient(ellipse at 95% 100%, rgba(117, 99, 211, .62) 0 27%, transparent 27.5%);
}

.theme-halloween .event-landscape::after {
  background: radial-gradient(ellipse at 22% 100%, rgba(45, 15, 73, .78) 0 31%, transparent 31.5%), radial-gradient(ellipse at 68% 100%, rgba(74, 22, 91, .75) 0 39%, transparent 39.5%);
}

:is(.theme-spring, .theme-march_8) .event-landscape::after {
  background: radial-gradient(ellipse at 20% 100%, rgba(64, 171, 151, .67) 0 32%, transparent 32.5%), radial-gradient(ellipse at 66% 100%, rgba(72, 145, 160, .7) 0 39%, transparent 39.5%);
}

.theme-summer .event-landscape::after {
  background: radial-gradient(ellipse at 22% 100%, rgba(255, 203, 91, .35) 0 29%, transparent 29.5%), radial-gradient(ellipse at 70% 100%, rgba(31, 159, 164, .65) 0 39%, transparent 39.5%);
}

.theme-school .event-landscape::after {
  background: radial-gradient(ellipse at 18% 100%, rgba(75, 144, 117, .55) 0 31%, transparent 31.5%), radial-gradient(ellipse at 68% 100%, rgba(50, 103, 153, .7) 0 38%, transparent 38.5%);
}

.world-seam {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  height: 28px;
  transform: translateY(-12px);
  background: radial-gradient(28px 16px at 24px 0, var(--world-top) 98%, transparent 100%) 0 0 / 48px 24px repeat-x;
  filter: drop-shadow(0 -5px 8px rgba(7, 13, 75, .16));
}

.world-seam i {
  position: absolute;
  top: 7px;
  width: 5px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--world-accent);
  box-shadow: 0 0 11px var(--world-accent);
}

.world-seam i:nth-child(1) { left: 12%; }
.world-seam i:nth-child(2) { left: 31%; }
.world-seam i:nth-child(3) { left: 50%; }
.world-seam i:nth-child(4) { left: 69%; }
.world-seam i:nth-child(5) { left: 88%; }

.event-indicators {
  gap: 14px;
  margin-top: -34px;
}

.event-indicators > div {
  position: relative;
  min-height: 142px;
  overflow: hidden;
  padding: 26px 30px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--world-panel-strong) 90%, #fff 10%), var(--world-panel));
  border: 1px solid var(--world-line);
  border-radius: 23px;
  box-shadow: inset 0 2px rgba(255,255,255,.12), inset 0 -20px 30px rgba(6, 12, 70, .13), 0 18px 38px rgba(4, 9, 60, .23);
}

.event-indicators > div::before {
  content: '';
  position: absolute;
  left: 13px;
  right: 13px;
  top: -2px;
  height: 9px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--world-accent), var(--world-secondary));
  opacity: .88;
}

:is(.theme-new_year, .theme-winter, .theme-christmas) .event-indicators > div::before {
  height: 13px;
  background: radial-gradient(circle at 12% 0, #dbe9ff 0 7px, transparent 7.5px), radial-gradient(circle at 47% 0, #fff 0 9px, transparent 9.5px), radial-gradient(circle at 82% 0, #d4e4ff 0 7px, transparent 7.5px), linear-gradient(180deg, #fff, #dbe8ff 70%, transparent 72%);
}

.indicator-number small {
  margin-bottom: 3px;
  color: var(--world-accent-soft);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.indicator-number strong {
  color: #fff;
  font-family: var(--display);
  font-size: 3.1rem;
  font-weight: 700;
}

.indicator-number span {
  color: #dbe4ff;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .07em;
}

.progress-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.progress-title img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  object-fit: contain;
}

.event-progress .progress-title p {
  margin: 0;
  color: #e0e7ff;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.35;
}

.event-progress progress {
  height: 11px;
  margin-top: 17px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.13);
  border-radius: 999px;
}

.event-progress progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--world-secondary), var(--world-accent));
}

.interaction-grid {
  position: relative;
  gap: 22px;
  padding-block: 54px 44px;
  border: 0;
}

.interaction-grid .waiting-together,
.interaction-grid .share {
  min-height: 250px;
  padding: 28px;
  overflow: hidden;
  background: linear-gradient(150deg, color-mix(in srgb, var(--world-panel-strong) 83%, #fff 7%), var(--world-panel));
  border-radius: 25px;
}

.interaction-grid .waiting-together {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 8px 18px;
}

.waiting-figure {
  width: 92px;
  height: 92px;
  grid-row: 1 / span 2;
  object-fit: contain;
  filter: drop-shadow(0 9px 12px rgba(4, 7, 48, .25));
}

.interaction-grid .waiting-together > div {
  align-self: end;
}

.interaction-grid .waiting-count {
  margin-bottom: 14px;
  color: #eef2ff;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.35;
}

.interaction-grid .waiting-count strong {
  color: var(--world-accent-soft);
  font-family: var(--display);
  font-size: 1.45rem;
}

.interaction-grid .heart-button {
  grid-column: 2;
  justify-self: start;
  min-width: 200px;
  padding: 11px 20px;
  font-weight: 900;
  background: linear-gradient(180deg, var(--world-accent), color-mix(in srgb, var(--world-accent) 70%, #d77818 30%));
  border: 2px solid var(--world-accent-soft);
  box-shadow: inset 0 2px 2px rgba(255,255,255,.27), 0 8px 18px rgba(75, 31, 7, .22);
  text-shadow: 0 1px 2px rgba(91, 42, 0, .32);
}

.interaction-grid .heart-button:hover:not(:disabled) {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.interaction-grid .waiting-message {
  grid-column: 2;
  min-height: 0;
  color: var(--world-accent-soft);
}

.interaction-grid .share {
  justify-content: center;
}

.share h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 1.45rem;
}

.share h2 .sparkle-orb {
  width: .62em;
}

.share-lead {
  color: #d0d9f5;
}

.share-button {
  min-height: 43px;
  padding: 8px 13px;
  border-radius: 12px;
  box-shadow: inset 0 1px rgba(255,255,255,.14), 0 5px 12px rgba(5, 9, 52, .13);
}

.share-button img,
.share-vk-mark {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  object-fit: contain;
}

.share-vk-mark {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: .67rem;
  font-weight: 1000;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 9px;
}

.story-board {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  min-height: 410px;
  overflow: hidden;
  background: linear-gradient(140deg, color-mix(in srgb, var(--world-panel-strong) 86%, #fff 6%), color-mix(in srgb, var(--world-panel) 87%, #090c4a 13%));
  border: 1px solid var(--world-line);
  border-radius: 30px;
  box-shadow: inset 0 2px rgba(255,255,255,.12), 0 24px 55px rgba(3, 8, 55, .28);
}

.story-board::before {
  content: '';
  position: absolute;
  inset: 15px;
  z-index: 3;
  pointer-events: none;
  border: 1px dashed rgba(255,255,255,.16);
  border-radius: 22px;
}

.story-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px 48px;
  text-align: left;
}

.event-story {
  max-width: var(--container);
  padding-block: 20px 50px;
}

.event-story .eyebrow {
  color: var(--world-accent-soft);
}

.event-story h2 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 4.5vw, 4.5rem);
  line-height: .94;
}

.event-description {
  max-width: 620px;
  margin: 0;
  color: #e1e7fb;
  font-family: var(--sans);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.65;
}

.story-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin-top: 24px;
  padding-bottom: 3px;
  color: var(--world-accent-soft);
  font-size: .82rem;
  font-weight: 900;
  border-bottom: 1px solid color-mix(in srgb, var(--world-accent) 65%, transparent);
}

.story-picture {
  position: relative;
  min-height: 410px;
  overflow: hidden;
}

.story-picture::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--world-panel-strong), transparent 34%), linear-gradient(0deg, rgba(6, 12, 67, .32), transparent 46%);
}

.story-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.story-picture span {
  position: absolute;
  right: 19px;
  top: 19px;
  z-index: 2;
  width: 34px;
  aspect-ratio: 1;
  background: var(--world-accent);
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
  filter: drop-shadow(0 0 12px var(--world-accent));
}

.event-world + .event-landscape .events-section {
  padding: 22px 0 72px;
}

.event-section-heading {
  margin-bottom: 17px;
}

.event-section-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
}

.event-section-heading > a {
  color: #dce5ff;
  font-size: .78rem;
  font-weight: 850;
}

/* Event cards: each remains a small illustrated scene. */
.event-card {
  isolation: isolate;
  border: 1px solid var(--world-line);
  border-radius: 23px;
  background: var(--world-panel-strong);
  box-shadow: inset 0 1px rgba(255,255,255,.12), 0 16px 30px rgba(4, 8, 54, .25);
}

.event-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}

:is(.theme-card-new_year, .theme-card-winter, .theme-card-christmas)::before {
  content: '';
  position: absolute;
  left: 9px;
  right: 9px;
  top: -1px;
  z-index: 4;
  height: 13px;
  pointer-events: none;
  border-radius: 55% 43% 51% 47%;
  background: linear-gradient(180deg, #fff, #d9e6ff);
  box-shadow: 0 3px 6px rgba(44, 52, 143, .2);
}

.card-art {
  object-position: center 45%;
}

.theme-card-halloween .card-art { object-position: center 42%; }
.theme-card-school .card-art { object-position: center 44%; }
.theme-card-spring .card-art,
.theme-card-march_8 .card-art { object-position: center 43%; }

.card-sky.has-art::after {
  inset: 21% 0 0;
  background: linear-gradient(180deg, transparent 0, rgba(15, 20, 80, .22) 34%, rgba(12, 21, 84, .97) 84%);
}

.card-content {
  padding: 52px 14px 14px;
}

.card-content h3 {
  font-size: clamp(1.08rem, 1.5vw, 1.4rem);
  line-height: 1;
}

.days-away {
  min-height: 32px;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 12px;
}

.days-away img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  object-fit: contain;
}

.catalog-grid .event-card {
  min-height: 385px;
}

.catalog-grid > .event-card:only-child,
.catalog-grid > .event-card:last-child:nth-child(3n + 1) {
  grid-column: 1 / -1;
  min-height: 295px;
}

.catalog-grid > .event-card:only-child .card-art,
.catalog-grid > .event-card:last-child:nth-child(3n + 1) .card-art {
  object-position: center 48%;
}

/* Illustrated calendar, not a generic listing page. */
.theme-events {
  --world-top: #263fb4;
  --world-mid: #17267f;
  --world-deep: #09134c;
  --world-panel: rgba(28, 43, 132, .86);
  --world-panel-strong: #263da4;
  --world-line: rgba(215, 226, 255, .35);
  --world-accent: #ffd054;
  --world-accent-soft: #fff0ad;
  --world-secondary: #7758df;
  --world-rgb: 38, 61, 168;
  background: radial-gradient(circle at 10% 7%, rgba(79, 128, 255, .45), transparent 24%), radial-gradient(circle at 86% 13%, rgba(163, 87, 255, .38), transparent 25%), linear-gradient(180deg, var(--world-top), var(--world-mid) 48%, var(--world-deep));
}

.theme-events::before {
  opacity: .52;
}

.catalog-intro {
  position: relative;
  min-height: 360px;
  padding: 74px 390px 38px 0;
}

.catalog-intro h1 {
  margin-bottom: 16px;
  font-size: clamp(4rem, 7vw, 6.9rem);
  line-height: .9;
}

.catalog-intro > p:not(.eyebrow) {
  max-width: 690px;
  color: #d4dcf5;
  font-size: 1.1rem;
  line-height: 1.55;
}

.catalog-icons {
  position: absolute;
  right: 5px;
  top: 36px;
  width: 350px;
  height: 260px;
}

.catalog-icons img {
  position: absolute;
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(4, 8, 51, .25));
}

.catalog-icons img:nth-child(1) { left: 0; bottom: 0; transform: rotate(-7deg); }
.catalog-icons img:nth-child(2) { right: 4px; top: 0; width: 128px; height: 128px; transform: rotate(8deg); }
.catalog-icons img:nth-child(3) { right: 66px; bottom: -4px; width: 166px; height: 166px; transform: rotate(4deg); }

.category-nav {
  position: relative;
  z-index: 2;
  margin-top: 26px;
}

.category-nav a {
  padding: 9px 15px;
  font-weight: 850;
  background: linear-gradient(180deg, rgba(84, 93, 204, .8), rgba(50, 61, 165, .74));
  box-shadow: inset 0 1px rgba(255,255,255,.12), 0 7px 14px rgba(4, 8, 54, .15);
}

.catalog-group {
  position: relative;
  padding: 30px 0 64px;
}

.catalog-heading {
  margin-bottom: 22px;
}

.catalog-heading h2 {
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4vw, 3.65rem);
}

/* Footer belongs to the same world. */
body:not(.admin-page) .site-footer {
  position: relative;
  padding: 54px 0 42px;
  color: #cbd5f2;
  background:
    radial-gradient(circle at 18% 0, rgba(var(--world-rgb), .5), transparent 28%),
    linear-gradient(180deg, color-mix(in srgb, var(--world-deep) 84%, #161a69 16%), color-mix(in srgb, var(--world-deep) 90%, #05092c 10%));
  border-top: 1px solid rgba(217, 227, 255, .18);
}

body:not(.admin-page) .site-footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -13px;
  height: 16px;
  background: radial-gradient(22px 13px at 22px 13px, color-mix(in srgb, var(--world-deep) 88%, #171b70 12%) 98%, transparent 100%) 0 0 / 44px 16px repeat-x;
}

.footer-identity {
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-identity > img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(2, 5, 32, .32));
}

.footer-brand {
  font-size: 1.35rem;
}

.footer-inner > p {
  color: var(--world-accent-soft);
  font-weight: 850;
}

@media (max-width: 1050px) {
  .event-world .event-hero {
    padding-right: 46%;
  }

  .event-indicators {
    grid-template-columns: 1fr 1fr;
  }

  .event-progress {
    grid-column: 1 / -1;
  }

  .catalog-intro {
    padding-right: 330px;
  }

  .catalog-icons {
    width: 310px;
    transform: scale(.9);
    transform-origin: right top;
  }
}

@media (max-width: 760px) {
  body:not(.admin-page) .shell {
    width: min(var(--container), calc(100% - 28px));
  }

  body:not(.admin-page) .site-header {
    padding: 7px 0;
  }

  body:not(.admin-page) .header-inner {
    min-height: 55px;
  }

  body:not(.admin-page) .brand-globe {
    width: 49px;
    height: 49px;
  }

  body:not(.admin-page) .brand-name {
    max-width: 132px;
    font-size: 1.1rem;
    white-space: normal;
  }

  body:not(.admin-page) .site-header nav {
    gap: 2px;
  }

  body:not(.admin-page) .site-header nav a {
    padding: 7px 9px;
    font-size: .69rem;
  }

  .home-page .home-world {
    min-height: 1570px;
  }

  .home-page .home-world .scene-art {
    height: 875px;
  }

  .home-page .home-stage {
    min-height: 820px;
    padding-top: 22px;
  }

  .home-page .home-hero-copy h1 {
    max-width: 470px;
    margin-inline: auto;
    font-size: clamp(3rem, 13.6vw, 4.45rem);
    line-height: .92;
  }

  .home-page .home-world .scene-prop-cluster {
    top: 362px;
    width: min(93vw, 438px);
  }

  .home-page .magic-sign {
    display: none;
  }

  .home-page .home-page .time-unit,
  .home-page .time-unit {
    min-height: 84px;
  }

  .home-page .home-lower {
    gap: 12px;
  }

  .home-page .world-section-heading {
    margin-bottom: 11px;
  }

  .home-page .home-event-rail {
    grid-template-columns: repeat(5, 76vw);
    gap: 13px;
  }

  .home-page .home-event-rail .event-card {
    min-height: 328px;
  }

  .home-page .home-benefits .shell {
    gap: 10px;
    padding-block: 19px;
  }

  .home-page .home-benefits p img {
    width: 38px;
    height: 38px;
  }

  .event-world {
    min-height: 890px;
  }

  .event-world .event-hero {
    min-height: 814px;
    padding: 67px 0 390px;
  }

  .event-world .event-hero .back-link {
    top: 18px;
  }

  .event-world .event-hero h1 {
    max-width: 520px;
    font-size: clamp(2.8rem, 12vw, 4.2rem);
    line-height: .92;
  }

  .event-world .event-hero .answer {
    max-width: 440px;
    font-size: .93rem;
  }

  .event-world .event-hero .time-unit {
    min-height: 80px;
  }

  .event-world .scene-prop-cluster,
  .event-world .world-new_year .scene-prop-cluster,
  .event-world .world-christmas .scene-prop-cluster,
  .event-world .world-winter .scene-prop-cluster,
  .event-world .world-summer .scene-prop-cluster {
    bottom: 0;
    max-height: 43%;
  }

  .world-seam {
    height: 22px;
  }

  .event-indicators {
    gap: 9px;
    margin-top: -28px;
  }

  .event-indicators > div {
    min-height: 121px;
    padding: 21px 17px;
    border-radius: 19px;
  }

  .indicator-number strong {
    font-size: 2.65rem;
  }

  .indicator-number span {
    font-size: .59rem;
    line-height: 1.25;
  }

  .progress-title img {
    width: 45px;
    height: 45px;
  }

  .interaction-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-block: 35px 28px;
  }

  .interaction-grid .waiting-together,
  .interaction-grid .share {
    min-height: 0;
    padding: 23px 19px;
    border-radius: 21px;
  }

  .interaction-grid .waiting-together {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 7px 13px;
  }

  .waiting-figure {
    width: 70px;
    height: 70px;
  }

  .interaction-grid .heart-button,
  .interaction-grid .waiting-message {
    grid-column: 1 / -1;
  }

  .interaction-grid .heart-button {
    justify-self: stretch;
    justify-content: center;
    margin-top: 6px;
  }

  .story-board {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .story-picture {
    grid-row: 1;
    min-height: 250px;
  }

  .story-picture::after {
    background: linear-gradient(0deg, var(--world-panel-strong), transparent 38%);
  }

  .story-copy {
    padding: 34px 25px 38px;
  }

  .event-story {
    padding: 5px 0 34px;
  }

  .event-story h2 {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  .event-world + .event-landscape .events-section {
    padding: 15px 0 58px;
  }

  .event-section-heading > a {
    display: none;
  }

  .event-section-heading h2 {
    font-size: 1.6rem;
  }

  .event-world + .event-landscape .events-grid {
    display: grid;
    grid-auto-columns: 78vw;
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 13px;
    overflow-x: auto;
    padding: 0 1px 15px;
    scroll-snap-type: x mandatory;
  }

  .event-world + .event-landscape .events-grid .event-card {
    min-height: 330px;
    scroll-snap-align: center;
  }

  .catalog-intro {
    min-height: 0;
    padding: 50px 0 32px;
    text-align: center;
  }

  .catalog-intro h1 {
    font-size: clamp(3.7rem, 17vw, 5.5rem);
  }

  .catalog-intro > p:not(.eyebrow) {
    margin-inline: auto;
    font-size: .98rem;
  }

  .catalog-icons {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 245px;
    height: 125px;
    margin: 12px auto 4px;
    transform: none;
  }

  .catalog-icons img { width: 84px; height: 84px; }
  .catalog-icons img:nth-child(1) { left: 12px; bottom: 2px; }
  .catalog-icons img:nth-child(2) { right: 13px; top: 0; width: 72px; height: 72px; }
  .catalog-icons img:nth-child(3) { right: 65px; bottom: -1px; width: 94px; height: 94px; }

  .category-nav {
    justify-content: center;
    margin-top: 20px;
  }

  .catalog-group {
    padding: 22px 0 55px;
  }

  .catalog-grid .event-card {
    min-height: 365px;
  }

  .catalog-grid > .event-card:only-child,
  .catalog-grid > .event-card:last-child:nth-child(3n + 1) {
    grid-column: auto;
    min-height: 365px;
  }

  body:not(.admin-page) .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
    text-align: center;
  }

  .footer-identity {
    justify-content: center;
    text-align: left;
  }
}

@media (max-width: 430px) {
  body:not(.admin-page) .brand-name {
    max-width: 105px;
    font-size: 1rem;
  }

  body:not(.admin-page) .site-header nav a {
    padding-inline: 7px;
    font-size: .65rem;
  }

  .home-page .home-world {
    min-height: 1510px;
  }

  .home-page .home-stage {
    min-height: 790px;
  }

  .home-page .home-world .scene-prop-cluster {
    top: 350px;
  }

  .home-page .home-kicker {
    justify-content: center;
  }

  .home-page .home-event-rail {
    grid-template-columns: repeat(5, 82vw);
  }

  .event-world {
    min-height: 860px;
  }

  .event-world .event-hero {
    min-height: 785px;
    padding-bottom: 370px;
  }

  .event-world .event-hero .eyebrow {
    font-size: .57rem;
  }

  .event-world .event-hero-tools {
    gap: 9px;
    font-size: .54rem;
    letter-spacing: .04em;
  }

  .event-indicators > div {
    padding-inline: 13px;
  }

  .progress-title img {
    width: 39px;
    height: 39px;
  }

  .event-progress .progress-title p {
    font-size: .87rem;
  }

  .story-picture {
    min-height: 220px;
  }

  .story-board::before {
    inset: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .heart-button,
  .event-card {
    transition: none;
  }
}
