/* Cinematic night-sky landing page. Hero is three real layers (sky plate, giant title, WOF cutout) moving at different speeds.
   Sections break the grid: centred statement over a clip, chess-layout rules over a clip, drawn bracket, prize band with an interactive podium, centred pre-register.
   Single dark theme on purpose (the game's brand). Cyan is used only as a punch. */
:root {
  --night: #050920; --deep: #0a1546; --royal: #1a3fa6;
  --ink: #edf1fd; --mute: #9fb0e0; --cyan: #9fdcff; --line: rgba(159,220,255,.2);
  --display: 'Cormorant SC', 'Cormorant Garamond', Georgia, serif;
  --label: 'Sorts Mill Goudy', Georgia, serif;
  --body: 'EB Garamond', Garamond, Georgia, serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(120px, 16vw, 220px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink); font: 400 19px/1.6 var(--body); overflow-x: clip; }
img { display: block; }
a { color: var(--cyan); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; line-height: 1; text-wrap: balance; }
p { margin: 0; max-width: 60ch; }
.tbc { display: inline-block; font: italic 13px/1.4 var(--label); color: var(--deep); background: var(--ink); padding: 1px 9px; border-radius: 99px; vertical-align: middle; letter-spacing: .02em; }

/* Loading screen: shown for the first 3 seconds, hero entrance waits behind it */
#loader { position: fixed; inset: 0; z-index: 20; display: grid; place-content: center; justify-items: center; gap: 14px; background: radial-gradient(ellipse at 50% 45%, var(--deep), var(--night) 70%); transition: opacity .6s var(--ease), visibility .6s; }
#loader img { width: 200px; height: 200px; }
#loader p { position: relative; font: italic 22px var(--label); color: var(--cyan); letter-spacing: .04em; }
#loader .dots { position: absolute; left: 100%; bottom: 0; width: 1.2em; white-space: nowrap; overflow: hidden; }
#loader.done { opacity: 0; visibility: hidden; }
body:has(#loader:not(.done)) { overflow: hidden; }
#loader:not(.done) ~ main * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: no-preference) {
  #loader .dots { animation: dots 1.2s steps(4) infinite; width: 0; }
}
@keyframes dots { to { width: 1.2em; } }

/* Nav */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--night); }
nav.top { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 9; transition: background-color .4s var(--ease), border-color .4s var(--ease); border-bottom: 1px solid transparent; }
nav.top.solid { background: rgba(5,9,32,.82); backdrop-filter: blur(12px); border-color: var(--line); }
nav.top .wrap { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { font: 600 17px var(--display); letter-spacing: .2em; color: var(--ink); text-decoration: none; margin-right: auto; white-space: nowrap; }
.tab { font: 600 16px var(--display); letter-spacing: .1em; color: var(--mute); padding: 6px 10px; text-decoration: none; white-space: nowrap; position: relative; transition: color .3s var(--ease); }
.tab::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 1px; background: var(--cyan); transform: scaleX(0); transition: transform .4s var(--ease); }
.tab:hover, .tab[aria-current="page"] { color: var(--ink); }
.tab:hover::after, .tab[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 460px) { .tab[data-view="cup"]:not([data-jump]) { display: none; } .brand { font-size: 15px; letter-spacing: .1em; } .tab { padding: 6px 6px; font-size: 15px; letter-spacing: .04em; } .tab::after { left: 6px; right: 6px; } }

/* Buttons: one label per intent */
.btn { display: inline-flex; align-items: center; gap: 12px; font: 600 19px var(--display); letter-spacing: .16em; white-space: nowrap; color: var(--night); background: var(--ink);
  padding: 14px 32px; border-radius: 999px; text-decoration: none; border: 1px solid var(--ink); position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), color .35s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cyan); transform: translateX(-101%); transition: transform .45s var(--ease); }
.btn:hover::before { transform: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn.ghost { background: rgba(5,9,32,.5); color: var(--ink); border-color: rgba(237,241,253,.55); }
.btn.ghost::before { background: rgba(159,220,255,.18); }
.btn[aria-disabled="true"] { background: transparent; color: var(--mute); border-color: var(--line); cursor: default; }
.btn[aria-disabled="true"]::before { display: none; }

/* ============ HERO: sky plate / giant title / WOF cutout ============ */
.hero { position: relative; height: max(100dvh, 680px); overflow: hidden; isolation: isolate; }
.layer { position: absolute; will-change: transform; }
.sky { inset: -6% -4% -14%; translate: calc(var(--mx, 0) * -10px) calc(var(--my, 0) * -8px); }
.sky img, .sky video { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.sky video { position: absolute; inset: 0; }
.replay { position: absolute; z-index: 4; right: max(20px, env(safe-area-inset-right, 0px)); bottom: clamp(36px, 7vh, 72px); font: italic 16px var(--label); color: var(--mute);
  background: rgba(5,9,32,.5); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; cursor: pointer; transition: color .3s var(--ease), border-color .3s var(--ease); }
.replay:hover { color: var(--ink); border-color: var(--cyan); }
@media (max-width: 767px) { .replay { top: 76px; bottom: auto; } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,9,32,.5) 0%, transparent 22%, transparent 55%, var(--night) 100%); }
.hero { --gsize: clamp(56px, 11.6vw, 220px); --gtop: 9%; }
.gw span { display: inline; }
.gtag { z-index: 3; left: 0; right: 0; top: calc(var(--gtop) + var(--gsize) * .9 + 14px); text-align: center; font: italic clamp(19px, 1.9vw, 27px) var(--label); color: var(--cyan); text-shadow: 0 2px 14px rgba(5,9,32,.8); pointer-events: none; translate: calc(var(--mx, 0) * -22px) calc(var(--my, 0) * -14px); }
.giant { inset: var(--gtop) 0 auto 0; z-index: 4; text-align: center; translate: calc(var(--mx, 0) * -22px) calc(var(--my, 0) * -14px); pointer-events: none; }
.giant .gw { display: block; font: 700 var(--gsize)/.86 var(--display); letter-spacing: .02em; white-space: nowrap; padding-bottom: .04em;
  filter: drop-shadow(0 3px 20px rgba(5,9,32,.95)) drop-shadow(0 1px 4px rgba(5,9,32,.8));
  background: linear-gradient(180deg, #ffffff 10%, #bfe4ff 55%, rgba(159,220,255,.35) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cutout { z-index: 2; right: -3vw; bottom: -14%; width: min(56vw, 880px); translate: calc(var(--mx, 0) * -36px) calc(var(--my, 0) * -20px); }
.cutout img { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); }
.hero-copy { position: absolute; z-index: 4; left: 0; right: 0; bottom: clamp(36px, 7vh, 72px); }
.hero-copy .wrap { display: grid; gap: 16px; justify-items: start; }
.hero h1 { font-size: clamp(30px, 3.6vw, 48px); letter-spacing: .08em; line-height: 1.05; }
.hero .sub { color: #d6ddfb; font-size: 19px; max-width: 46ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
@media (max-width: 767px) {
  .hero { --gsize: clamp(56px, 19vw, 120px); --gtop: 10%; }
  .giant .gw { letter-spacing: 0; }
  .gw span { display: block; }
  .gtag { top: calc(var(--gtop) + var(--gsize) * 1.72 + 12px); }
  .cutout { width: 84vw; right: 8vw; bottom: 26%; }
  /* The clip is 16:9 and the phone is portrait, so cover would crop it to a sliver.
     Size the element to the clip's own aspect (100vw wide => 56.25vw tall) so nothing
     is cropped, then feather its top and bottom into the sky so it reads as part of
     the background rather than an inset panel. */
  .sky video { inset: auto 0 auto 0; top: 24%; height: 56.25vw; object-fit: cover; opacity: .92;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0,0,0,.6) 14%, #000 34%, #000 66%, rgba(0,0,0,.6) 86%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, rgba(0,0,0,.6) 14%, #000 34%, #000 66%, rgba(0,0,0,.6) 86%, transparent 100%); }
  /* The still sky already shows the slash. On desktop the full-bleed clip hides it, but
     here it shows above and below the band and gives the reveal away, so hold it back
     until the clip has made the cut itself. */
  .sky img { transition: opacity 1.1s var(--ease); }
  .hero.intro .sky img { opacity: 0; }
  .hero::after { background: linear-gradient(180deg, rgba(5,9,32,.55) 0%, transparent 25%, transparent 38%, rgba(5,9,32,.85) 62%, var(--night) 100%); }
  .hero .cta { flex-wrap: nowrap; gap: 10px; }
  .hero .cta .btn { padding-inline: 18px; font-size: 15px; white-space: nowrap; }
  .replay { top: 76px; bottom: auto; }
}

/* Entrance: the WOF clip plays once and ends on the sword slash, then the title rises and WOF cuts in from the right */
@media (prefers-reduced-motion: no-preference) {
  .sky img { animation: settle 1.8s var(--ease) both; }
  .giant .gw, .gtag div, .cutout img { transition: opacity 1.2s var(--ease), transform 1.3s var(--ease), filter 1.2s var(--ease); }
  .cutout img { transition-delay: .25s; }
  .hero.intro .giant .gw, .hero.intro .gtag div { opacity: 0; transform: translateY(40px); }
  .gtag div { transition-delay: .15s; }
  .hero.intro .cutout img { opacity: 0; transform: translateX(14%) rotate(3deg); filter: blur(10px); }
  .hero-copy .wrap > * { animation: rise .9s var(--ease) both; }
  .hero-copy .wrap > :nth-child(1) { animation-delay: .6s; } .hero-copy .wrap > :nth-child(2) { animation-delay: .68s; }
  .hero-copy .wrap > :nth-child(3) { animation-delay: .76s; } .hero-copy .wrap > :nth-child(4) { animation-delay: .84s; }
}
@keyframes settle { from { transform: scale(1.14); filter: brightness(.6); } to { transform: none; filter: none; } }
@keyframes rise { from { opacity: .2; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes cutin { from { opacity: .2; transform: translateX(14%) rotate(3deg); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }

/* Scroll depth: each layer travels a different distance as the hero leaves */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .sky, .giant, .gtag, .cutout, .hero-copy { animation: linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .sky { animation-name: d-sky; } .giant, .gtag { animation-name: d-giant; } .cutout { animation-name: d-cut; } .hero-copy { animation-name: d-copy; }
  }
}
@keyframes d-sky { to { transform: translateY(26%); } }
@keyframes d-giant { to { transform: translateY(48%); opacity: .2; } }
@keyframes d-cut { to { transform: translateY(8%) scale(1.06); } }
@keyframes d-copy { to { transform: translateY(-30%); opacity: 0; } }

/* ============ ABOUT: full-bleed statement with a cutout breaking in ============ */
.about { position: relative; padding-block: var(--pad) calc(var(--pad) * .7); }
.about .wrap { position: relative; }
.statement { font: 500 clamp(36px, 5.4vw, 76px)/1.08 var(--display); letter-spacing: .01em; max-width: 17ch; margin-inline: auto; text-align: center; position: relative; z-index: 1; }
.statement .w { display: inline-block; }
.statement em { font-style: normal; color: var(--cyan); }
.about .body { margin-top: 36px; display: grid; justify-items: center; gap: 14px; text-align: center; position: relative; z-index: 1; }
.about .body p { color: #cdd6f7; font-size: 21px; max-width: 44ch; }
.about .facts { margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 200px)); justify-content: center; gap: 16px; width: 100%; }
.about .facts div { display: flex; flex-direction: column-reverse; align-items: center; gap: 8px; padding: 24px 16px 20px; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(5,9,32,.55); backdrop-filter: blur(8px); box-shadow: inset 0 1px 0 rgba(159,220,255,.12); transition: transform .4s var(--ease), border-color .4s var(--ease), background-color .4s var(--ease); }
.about .facts div:hover { transform: translateY(-4px); border-color: rgba(159,220,255,.55); background: rgba(26,63,166,.4); }
.about .facts dt { font: italic 16px var(--label); color: var(--mute); }
.about .facts dd { margin: 0; font: 600 clamp(30px, 3.4vw, 42px)/1 var(--display); }
@media (max-width: 560px) { .about .facts { grid-template-columns: 1fr 1fr; } .about .facts div:last-child { grid-column: 1 / -1; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .statement .w { animation: word linear both; animation-timeline: view(); animation-range: entry 10% cover 38%; }
  }
}
@keyframes word { from { opacity: .12; transform: translateY(.25em); } to { opacity: 1; transform: none; } }
@keyframes floatup { from { transform: translateY(14%); } to { transform: translateY(-14%); } }

/* ============ RULES: chess layout + drawn bracket ============ */
.rules { padding-block: calc(var(--pad) * .5) var(--pad); position: relative; }
/* Clips loop behind the community cup intro (Amora) and the rules (Fei), dimmed and faded into the page at both edges */
#rules { padding-top: calc(var(--pad) * .8); }
#rules, .about { overflow: hidden; isolation: isolate; }
#rules > .wrap, .about > .wrap { position: relative; z-index: 1; }
.about .statement, .about .body { text-shadow: 0 2px 16px rgba(5,9,32,.85); }
.about .body p { color: #dfe5fb; }
.loop-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.loop-bg video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.loop-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--night) 0%, rgba(5,9,32,.4) 16%, rgba(5,9,32,.48) 50%, rgba(5,9,32,.4) 84%, var(--night) 100%),
              linear-gradient(90deg, rgba(5,9,32,.45) 0%, rgba(5,9,32,.1) 50%, rgba(5,9,32,.45) 100%); }
#rules .rule p, #rules .small { color: #dfe5fb; }
#rules .rule h3, #rules h2, #rules .rule p, #rules .fei, #rules .subhead { text-shadow: 0 2px 16px rgba(5,9,32,.85); }
.rules h2 { font-size: clamp(44px, 7vw, 96px); }
.rules .intro { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: 72px; }
.rules .subhead { color: var(--cyan); font: italic clamp(20px, 2vw, 26px) var(--label); margin-top: 18px; }
.rules:has(+ .formatsec) { padding-bottom: calc(var(--pad) * .5); }
.formatsec { padding-top: calc(var(--pad) * .5); }
.formatsec .format { margin-top: 0; }
.chess { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-block: 1px solid var(--line); }
.chess > * { min-width: 0; }
.rule { padding: 56px 48px 56px 0; position: relative; }
.rule + .rule { padding: 56px 0 56px 48px; border-left: 1px solid var(--line); }
.rule .num { font: 700 clamp(120px, 15vw, 210px)/.8 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(159,220,255,.55); display: block; margin-bottom: 18px; }
.rule h3 { font-size: clamp(30px, 3.2vw, 42px); margin-bottom: 14px; }
.rule p { color: #cdd6f7; font-size: 20px; max-width: 42ch; }
.rule b { color: var(--ink); font-weight: 600; }
.rules .note { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.rules .fei { font: italic clamp(22px, 2.4vw, 30px) var(--label); color: var(--cyan); }
.rules .small { font-size: 16px; color: var(--mute); max-width: 44ch; }
@media (max-width: 767px) { .chess { grid-template-columns: 1fr; } .rule, .rule + .rule { padding: 40px 0; border-left: 0; } .rule + .rule { border-top: 1px solid var(--line); } }

.format { margin-top: 110px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.format > * { min-width: 0; }
.format h3 { font-size: clamp(34px, 4vw, 54px); margin-bottom: 26px; }
.format dl { margin: 0; display: grid; gap: 18px; }
.format dl div { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.format dt { font: italic 17px var(--label); color: var(--mute); }
.format dd { margin: 0; font: 600 24px var(--display); letter-spacing: .04em; }
.bracket-box { overflow-x: auto; }
.bracket { width: 100%; min-width: 520px; height: auto; }
.bracket .ln { fill: none; stroke: rgba(159,220,255,.55); stroke-width: 1.4; }
.bracket .bx { fill: rgba(26,63,166,.35); stroke: rgba(159,220,255,.35); }
.bracket .bx.b3 { fill: rgba(26,63,166,.6); stroke: rgba(159,220,255,.7); }
.bracket .champ { fill: var(--ink); stroke: var(--ink); }
.bracket text { fill: var(--mute); font: 600 13px var(--display); letter-spacing: .14em; text-anchor: middle; }
.bracket text.hi { fill: var(--cyan); }
.bracket text.ct { fill: var(--night); font-size: 14px; }
@media (max-width: 900px) { .format { grid-template-columns: 1fr; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .bracket .ln { stroke-dasharray: 260; animation: draw linear both; animation-timeline: view(); animation-range: entry 20% cover 55%; }
    .rule .num { animation: numin linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  }
}
@keyframes draw { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
@keyframes numin { from { transform: translateY(30%); opacity: 0.1; } to { transform: none; opacity: 1; } }


/* ============ PRIZE: centred stack (title, pool, gems), the full art centred below, podium rising out of the coin pile ============ */
.prize { position: relative; overflow: hidden; }
.prize .wrap { position: relative; padding-block: calc(var(--pad) * .7) var(--pad); }
.prize-copy { display: grid; gap: 22px; justify-items: center; text-align: center; }
.prize h2 { font-size: clamp(36px, 4.4vw, 58px); }
.prize .plate { width: min(100%, 1100px); margin: 8px auto 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 12%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 12%, #000 78%, transparent 100%); mask-composite: intersect; }
.prize .plate img { width: 100%; height: auto; }
.purse { display: grid; gap: 12px; justify-items: center; }
.pool { font: 700 clamp(64px, 9vw, 128px)/.9 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.purse .cap { font: italic 18px var(--label); color: var(--mute); }
.gems { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border: 1px solid rgba(159,220,255,.4); border-radius: 999px; background: rgba(26,63,166,.35); font-size: 19px; }
.gems .g { color: var(--cyan); font-size: 20px; }
.gems b { font: 600 22px var(--display); letter-spacing: .04em; }
.podium { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; width: 100%; max-width: 560px; height: 300px; margin-top: -110px; position: relative; z-index: 1; }
.pod { --i: 0; position: relative; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; gap: 2px; height: var(--h); padding-top: 18px;
  border: 1px solid rgba(159,220,255,.3); border-bottom: 0; border-top: 2px solid var(--cyan); border-radius: 12px 12px 0 0; cursor: default; outline-offset: 4px;
  background: linear-gradient(180deg, rgba(40,70,160,.92), rgba(12,24,80,.92) 70%, rgba(5,9,32,.95)); transform-origin: bottom;
  transition: transform .9s var(--ease) calc(var(--i) * .12s), opacity .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease); }
.pod .pl { font: 600 18px var(--display); letter-spacing: .14em; color: var(--mute); }
.pod .pc { font: 700 clamp(34px, 4vw, 46px)/1 var(--display); }
.pod .am { font-size: 15px; color: #cdd6f7; font-variant-numeric: tabular-nums; }
.pod .tip { position: absolute; bottom: calc(100% + 12px); left: 50%; width: max-content; max-width: 220px; translate: -50% 8px; opacity: 0; pointer-events: none; z-index: 3;
  padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(159,220,255,.45); background: rgba(5,9,32,.92); text-align: center; font-size: 15px; line-height: 1.4; color: #dfe5fb;
  transition: opacity .3s var(--ease), translate .3s var(--ease); }
.pod .tip b { display: block; font: 600 20px var(--display); color: var(--ink); }
.podium:hover .pod:not(:hover), .podium:focus-within .pod:not(:focus) { opacity: .45; }
.pod:hover, .pod:focus { transform: translateY(-10px); box-shadow: 0 -12px 40px rgba(159,220,255,.18); transition-delay: 0s; }
.pod:hover .tip, .pod:focus .tip { opacity: 1; translate: -50% 0; }
.podium.arm:not(.go) .pod { transform: scaleY(.06); }
.podium.arm:not(.go) .pod > :not(.tip) { opacity: 0; }
.pod > :not(.tip) { transition: opacity .5s var(--ease) calc(.5s + var(--i) * .12s); }
.prize .hint { font: italic 15px var(--label); color: var(--mute); margin-top: -8px; }
@media (max-width: 767px) {
  .podium { height: 240px; gap: 8px; margin-top: 0; }
  .pod .tip { max-width: 160px; font-size: 14px; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .prize .plate img { animation: pan linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes pan { from { transform: translateY(-4%) scale(1.04); } to { transform: translateY(4%) scale(1.04); } }

/* ============ REGISTER: closing art ============ */
.register { position: relative; padding-block: var(--pad); overflow: hidden; text-align: center; }
.register .fl { left: max(-2vw, -30px); } .register .fr { right: max(-2vw, -30px); }
.register .bgart { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.register .bgart img { width: min(760px, 120vw); height: auto; opacity: .38; filter: saturate(.85);
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); }
.register .bgart::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 40% 35% at 50% 50%, rgba(3,7,26,.55), transparent 75%); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .register .bgart img { animation: bgdrift linear both; animation-timeline: view(); }
    @keyframes bgdrift { from { translate: 0 60px; scale: 1.06; } to { translate: 0 -60px; scale: 1; } }
  }
}
.register .wrap { position: relative; z-index: 1; display: grid; justify-items: center; gap: 22px; }
.register h2 { font-size: clamp(52px, 7vw, 104px); }
.register p { color: var(--mute); font-size: 20px; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .register .fl img { animation: inl linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    .register .fr img { animation: inr linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
  }
}
@keyframes inl { from { transform: translateX(-30%); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes inr { from { transform: translateX(30%); opacity: .2; } to { transform: none; opacity: 1; } }

/* ============ SUPPORT TAB ============ */
.s-hero { position: relative; min-height: max(88dvh, 640px); display: grid; place-items: center; overflow: hidden; text-align: center; padding-block: 120px 80px; }
.s-hero .mid { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: center; padding-inline: 20px; }
.s-hero h1 { font-size: clamp(52px, 7vw, 104px); line-height: .92; }
.s-hero p { color: #cdd6f7; font-size: 21px; }
.s-hero .yt { width: min(720px, calc(100vw - 40px)); aspect-ratio: 16 / 9; margin-block: 10px 6px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.03); display: grid; place-items: center; font: italic 18px var(--label); color: var(--mute); }
.s-hero .yt iframe { width: 100%; height: 100%; border: 0; display: block; }
.s-hero .url { font: italic 18px var(--label); color: var(--mute); }
.perks { padding-block: calc(var(--pad) * .6); }
.perks .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: start; }
.perks .wrap > * { min-width: 0; }
.perks h2 { font-size: clamp(40px, 5vw, 66px); margin-bottom: 40px; }
.perks ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 30px; }
.perks li h3 { font-size: 27px; margin-bottom: 6px; }
.perks li p { color: #cdd6f7; }
.tier { border-top: 2px solid var(--cyan); padding-top: 24px; position: sticky; top: 100px; }
.tier .rib { font: italic 14px var(--label); color: var(--cyan); }
.tier h3 { font-size: 40px; margin: 8px 0 4px; }
.tier .sub { font: italic 17px var(--label); color: var(--mute); }
.tier ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.tier li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.tier li::before { content: "\2726"; color: var(--cyan); }
@media (max-width: 767px) { .perks .wrap { grid-template-columns: 1fr; } .tier { position: static; } }
.hosts { padding-block: 0 calc(var(--pad) * .6); }
.hosts h2 { font-size: clamp(40px, 5vw, 66px); margin-bottom: 40px; }
.hosts .row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.host { display: grid; grid-template-columns: 130px 1fr; gap: 24px; align-items: end; }
.host > * { min-width: 0; }
.host img { width: 130px; height: 180px; object-fit: cover; object-position: top; }
.host h3 { font-size: 34px; }
.host .role { font: italic 16px var(--label); color: var(--mute); margin: 4px 0 10px; }
.host .stat { color: #cdd6f7; font-size: 16px; }
.host a { overflow-wrap: anywhere; }
.host .stat b { font: 600 26px var(--display); color: var(--ink); margin-right: 6px; }
@media (max-width: 767px) { .hosts .row { grid-template-columns: 1fr; gap: 32px; } }

footer { border-top: 1px solid var(--line); padding-block: 28px; font: italic 16px var(--label); color: var(--mute); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
footer .legal { flex: 0 0 100%; max-width: none; margin-inline: 0; text-align: center; font: 400 14px var(--body, 'EB Garamond'); font-style: normal; opacity: .8; margin-top: 8px !important; margin-bottom: 0; }
/* Deck-style starfield: fixed behind every section, colour untouched */
.sky-stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.sky-stars svg { width: 100%; height: 100%; display: block; }
.sky-stars .tw { opacity: .85; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .sky-stars .tw { animation: twinkle var(--d) ease-in-out var(--o) infinite; }
  @keyframes twinkle { 0%, 100% { opacity: .15; scale: .55; } 50% { opacity: .95; scale: 1; } }
}

/* ---- Language editions -------------------------------------------------
   Latin faces stay first so the wordmark, numbers and Bo1/Bo3 keep the serif
   display; per-glyph fallback picks up the CJK face for CJK text only. The
   system fonts after each webfont mean the page still reads correctly where
   Google Fonts cannot be reached. */
:root[lang="zh-Hans"] {
  --display: 'Cormorant SC', 'Cormorant Garamond', 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', SimSun, serif;
  --label: 'Sorts Mill Goudy', 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', serif;
  --body: 'EB Garamond', 'Noto Serif SC', 'Source Han Serif SC', 'PingFang SC', 'Microsoft YaHei', serif;
}
:root[lang="ko"] {
  --display: 'Cormorant SC', 'Cormorant Garamond', 'Noto Serif KR', 'Source Han Serif K', 'Apple SD Gothic Neo', 'Malgun Gothic', serif;
  --label: 'Sorts Mill Goudy', 'Noto Serif KR', 'Source Han Serif K', 'Apple SD Gothic Neo', serif;
  --body: 'EB Garamond', 'Noto Serif KR', 'Source Han Serif K', 'Apple SD Gothic Neo', 'Malgun Gothic', serif;
}
/* CJK and Hangul have no ascenders to spare; a touch more leading keeps the
   stacked hero title and the rule bodies from feeling cramped. */
:root[lang="zh-Hans"] .hero h1, :root[lang="ko"] .hero h1 { line-height: 1.25; }
:root[lang="zh-Hans"] .giant .gw, :root[lang="ko"] .giant .gw { letter-spacing: .01em; }

.langs { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.langs a { font: 400 14px var(--label); color: var(--mute); letter-spacing: .06em; text-decoration: none; transition: color .3s var(--ease); }
.langs a:hover { color: var(--ink); }
.langs a[aria-current="true"] { color: var(--cyan); }
.langs span { color: var(--line); font-size: 12px; }
@media (max-width: 767px) { .langs { gap: 8px; } .langs a { font-size: 13px; } }

/* Narrow screens: the nav has to fit brand + tabs + three language links. "Support us"
   is also a button in the hero and a link in the footer, so the nav sheds it rather
   than pushing the language switcher off the edge. */
@media (max-width: 560px) {
  nav.top .wrap { gap: 8px; }
  .tab[data-view="support"] { display: none; }
  .langs { gap: 7px; }
  .langs a { font-size: 12px; letter-spacing: .03em; padding: 4px 0; }
  .langs span { display: none; }
}

/* Korean breaks between syllable blocks by default, which splits words mid-way
   ("첫 주년 기 / 년"). keep-all makes it break at spaces like Latin text. */
:root[lang="ko"] { word-break: keep-all; }
:root[lang="ko"] h1, :root[lang="ko"] h2, :root[lang="ko"] h3 { overflow-wrap: break-word; }
