@font-face { font-family: 'Saira'; src: url('../fonts/saira.woff2') format('woff2'); font-weight: 100 900; font-stretch: 50% 125%; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #05060a; --bg2: #0a0d16; --panel: rgba(18, 23, 38, .72); --line: rgba(150, 170, 220, .16);
  --text: #e9eefb; --dim: #9aa5c0; --accent: #8a6cff; --accent2: #38d6ff; --char: #8a6cff;
  --display: 'Saira', 'Bahnschrift', 'Segoe UI', sans-serif; --body: 'Inter', system-ui, sans-serif;
  --cut: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  --gutter: clamp(18px, 5vw, 64px);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 100; background: #000; padding: 8px 14px; }
.wrap { width: min(1240px, 100%); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3, .kicker, .btn, nav, .brand, .brand-foot { font-family: var(--display); }
h2 { font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: .98; font-weight: 800; font-stretch: 112%; text-transform: uppercase; letter-spacing: -.005em; margin-bottom: 22px; text-wrap: balance; }
.kicker { display: flex; align-items: center; gap: 12px; color: var(--accent2); text-transform: uppercase; letter-spacing: .38em; font-size: .74rem; font-weight: 600; margin-bottom: 14px; }
.kicker::before { content: ''; width: 34px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.lead { color: var(--dim); max-width: 60ch; font-size: 1.08rem; }
.note { color: var(--dim); font-size: .85rem; margin-top: 18px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 30px; border: 0; cursor: pointer; text-decoration: none; text-transform: uppercase; letter-spacing: .2em; font-weight: 700; font-size: .82rem; color: #fff; background: linear-gradient(100deg, #6a45ff, #2fb8ee); clip-path: var(--cut); transition: filter .2s, transform .2s; }
.btn:hover { filter: brightness(1.18); transform: translateY(-2px); }
.btn:focus-visible { outline-offset: -5px; outline-color: #fff; }
.btn-ghost { background: linear-gradient(rgba(10, 14, 26, .78), rgba(10, 14, 26, .78)); box-shadow: inset 0 0 0 1px rgba(150, 180, 255, .45); }
.btn-small { min-height: 40px; padding: 0 22px; font-size: .74rem; }
.play-ico { width: 0; height: 0; border-left: 11px solid currentColor; border-block: 7px solid transparent; }

/* navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 var(--gutter); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(5, 6, 10, .86); backdrop-filter: blur(14px); border-color: var(--line); }
.brand { position: relative; display: block; isolation: isolate; }
.brand::before { content: ''; position: absolute; inset: -60% -14%; z-index: -1; background: radial-gradient(closest-side, rgba(200, 192, 255, .5), rgba(138, 108, 255, .2) 60%, transparent); }
.brand img, .brand-foot { width: auto; height: 28px; filter: drop-shadow(0 0 1px rgba(232, 236, 255, .95)) drop-shadow(0 0 8px rgba(138, 108, 255, .6)); }
.nav nav { display: flex; align-items: center; gap: 32px; }
.nav nav a:not(.btn) { text-decoration: none; text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; font-weight: 600; color: var(--dim); }
.nav nav a:not(.btn):hover { color: #fff; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.burger span:not(.sr) { display: block; width: 24px; height: 2px; background: #fff; margin: 6px auto; transition: transform .2s; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* hero */
.hero { position: relative; overflow: hidden; overflow: clip; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; isolation: isolate; }
.hero-bg, .hero-shade { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg video, .hero-bg #heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#heroX { position: absolute; pointer-events: none; animation: x-arrive 1.8s ease both; }
@keyframes x-arrive { from { opacity: 0; transform: scale(.86); } }
.hero-shade { background: linear-gradient(180deg, rgba(5, 6, 10, .55) 0%, transparent 30%, transparent 55%, var(--bg) 100%), linear-gradient(90deg, rgba(5, 6, 10, .82), transparent 62%); }
.hero-body { width: min(1240px, 100%); margin: 0 auto; padding: 120px var(--gutter) clamp(80px, 13vh, 150px); }
/* the official logo is dark chrome: a soft light behind it (the logo itself is untouched) keeps it readable */
.title { position: relative; isolation: isolate; width: min(880px, 100%); margin-bottom: 30px; }
.title::before { content: ''; position: absolute; inset: -75% -12%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(214, 208, 255, .62), rgba(138, 108, 255, .3) 55%, transparent); }
.title img { width: 100%; height: auto; filter: drop-shadow(0 0 1px rgba(232, 236, 255, .95)) drop-shadow(0 0 22px rgba(138, 108, 255, .55)); }
.tagline { font-size: clamp(1.05rem, 2vw, 1.35rem); color: #c8d2ee; margin-bottom: 32px; max-width: 44ch; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 24px; height: 40px; border: 1px solid var(--line); border-radius: 20px; translate: -50% 0; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* sections */
.section { position: relative; padding: clamp(84px, 12vw, 160px) 0; }
.section::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
#game { background: radial-gradient(900px 500px at 88% 20%, rgba(106, 69, 255, .16), transparent 70%); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 56px; background: var(--line); border-block: 1px solid var(--line); }
.stats div { background: var(--bg); padding: 28px 18px; display: flex; flex-direction: column-reverse; }
.stats dt { text-transform: uppercase; letter-spacing: .26em; font-size: .7rem; color: var(--dim); }
.stats dd { font: 800 clamp(2.4rem, 6vw, 4.4rem)/1.1 var(--display); }

/* roster */
@property --char { syntax: '<color>'; inherits: true; initial-value: #8a6cff; }
.roster { transition: --char .8s ease; background: radial-gradient(1000px 620px at 20% 40%, color-mix(in srgb, var(--char) 17%, transparent), transparent 70%), var(--bg2); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filters button { font: 600 .74rem var(--display); text-transform: uppercase; letter-spacing: .2em; color: var(--dim); background: none; border: 1px solid var(--line); padding: 11px 20px; cursor: pointer; }
.filters button[aria-pressed='true'] { color: #05060a; background: var(--text); border-color: var(--text); }
.stage { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; border: 1px solid var(--line); background: var(--panel); }
.stage-art { --dir: 1; position: relative; min-height: clamp(560px, 80vh, 800px); overflow: hidden; isolation: isolate; background: radial-gradient(ellipse 70% 52% at 50% 40%, color-mix(in srgb, var(--char) 46%, transparent), transparent 70%), linear-gradient(165deg, color-mix(in srgb, var(--char) 15%, #0d1120), #05060a 70%); }
/* signature-colour studio light: a slow breathing halo, two shafts from above and a pool of light under the feet */
.stage-art::before { content: ''; position: absolute; inset: -20% -10% 20%; z-index: -1; background: conic-gradient(from 180deg at 50% -5%, transparent 0 -0deg, transparent 150deg, color-mix(in srgb, var(--char) 22%, transparent) 164deg, transparent 176deg, transparent 187deg, color-mix(in srgb, var(--char) 16%, transparent) 198deg, transparent 212deg, transparent 360deg); filter: blur(14px); animation: sway 9s ease-in-out infinite alternate; }
.stage-art::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; background: linear-gradient(105deg, transparent 38%, color-mix(in srgb, var(--char) 55%, #fff 10%) 50%, transparent 62%); mix-blend-mode: screen; transform: translateX(-100%); }
.stage-art.flash::after { animation: sweep .85s ease-out; }
.stage-light { position: absolute; left: 50%; bottom: 1.5%; width: 86%; height: 17%; translate: -50% 0; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--char) 70%, transparent), color-mix(in srgb, var(--char) 18%, transparent) 55%, transparent); animation: breathe 4.5s ease-in-out infinite; }
.ghost-name { position: absolute; left: 0; right: 0; bottom: 4%; z-index: 0; text-align: center; font: 900 clamp(3rem, 8vw, 6.4rem)/1 var(--display); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--char) 55%, transparent); white-space: nowrap; }
.ghost-name.swap { animation: ghost .8s cubic-bezier(.2, .8, .2, 1) both; }
.stage-figure { position: absolute; inset: 0; z-index: 1; }
.figure-layer { position: absolute; inset: 0; }
.figure-layer img, .figure-layer video, .figure-layer svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.figure-layer img, .figure-layer video { filter: drop-shadow(0 0 26px color-mix(in srgb, var(--char) 34%, transparent)); }
.figure-layer.in { animation: enter .75s cubic-bezier(.16, .84, .24, 1) both; }
.figure-layer.out { animation: leave .55s ease-in both; }
.stage-art .pending { position: absolute; left: 16px; top: 14px; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }
.stage-info.swap .role-chip, .stage-info.swap h3, .stage-info.swap .char-line { animation: rise .55s ease both; }
.stage-info.swap h3 { animation-delay: .05s; }
.stage-info.swap .char-line { animation-delay: .1s; }
.stage-info.swap .moves li { animation: rise .45s ease both; animation-delay: calc(.12s + var(--i) * .035s); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes enter { from { opacity: 0; transform: translateX(calc(var(--dir) * 9%)) scale(1.05); filter: blur(10px) brightness(2.2); } 60% { filter: blur(0) brightness(1.15); } }
@keyframes leave { to { opacity: 0; transform: translateX(calc(var(--dir) * -9%)) scale(.96); filter: blur(8px) brightness(.4); } }
@keyframes sweep { 0% { opacity: .0; transform: translateX(-100%); } 30% { opacity: .55; } 100% { opacity: 0; transform: translateX(100%); } }
@keyframes ghost { from { opacity: 0; letter-spacing: .3em; } }
@keyframes breathe { 50% { opacity: .65; transform: scaleX(1.08); } }
@keyframes sway { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
.stage-info { padding: clamp(22px, 3.4vw, 44px); border-left: 1px solid var(--line); }
.role-chip { display: inline-block; font: 700 .68rem var(--display); letter-spacing: .28em; text-transform: uppercase; color: var(--char); border: 1px solid color-mix(in srgb, var(--char) 55%, transparent); padding: 5px 12px; }
.stage-info h3 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 900; text-transform: uppercase; line-height: 1.05; margin: 14px 0 8px; }
.char-line { color: var(--dim); min-height: 3.3em; margin-bottom: 24px; }
.moves { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.moves li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(255, 255, 255, .035); border-left: 2px solid var(--char); min-width: 0; }
.moves kbd { flex: none; width: 44px; font: 700 .68rem var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--char); }
.moves span { font-size: .9rem; line-height: 1.3; }
.picker { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; margin-top: 14px; }
.picker button { --c: #888; position: relative; aspect-ratio: 3 / 4; overflow: hidden; cursor: pointer; border: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 24%, #0a0d16), #070910); color: var(--text); font-family: var(--display); transition: transform .18s, border-color .18s, opacity .18s; }
.picker button:hover { transform: translateY(-4px); }
.picker button[aria-selected='true'] { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 10px 30px -10px var(--c); }
.picker button.dim { opacity: .22; }
.picker img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; filter: saturate(.8) brightness(.82); transition: filter .25s, transform .35s; }
.picker button:hover img, .picker button[aria-selected='true'] img { filter: none; transform: scale(1.07); }
.picker button::after { content: ''; position: absolute; inset: auto 0 0; height: 3px; background: var(--c); z-index: 2; opacity: .45; transition: opacity .2s, height .2s; }
.picker button[aria-selected='true']::after { opacity: 1; height: 4px; }
.picker .mono { position: absolute; inset: 0 0 24px; display: grid; place-items: center; font-weight: 900; font-size: 1.9rem; color: var(--c); }
.picker .tag { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 2px; font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; background: rgba(0, 0, 0, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* modes and maps */
.cards { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; counter-reset: m; }
.cards li { position: relative; padding: 70px 24px 28px; min-height: 270px; background: linear-gradient(180deg, rgba(26, 32, 56, .75), rgba(10, 13, 22, .75)); clip-path: var(--cut); counter-increment: m; transition: transform .25s, background .25s; }
.cards li:hover { transform: translateY(-6px); background: linear-gradient(180deg, rgba(60, 46, 130, .75), rgba(10, 13, 22, .75)); }
.cards li::before { content: '0' counter(m); position: absolute; top: 16px; left: 24px; font: 200 2.4rem var(--display); color: var(--accent2); }
.cards h3 { text-transform: uppercase; font-weight: 800; font-size: 1.35rem; line-height: 1.15; margin-bottom: 12px; }
.cards p { color: var(--dim); font-size: .94rem; }
.maps { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.maps li { --c: #77a; position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; padding: 26px; overflow: hidden; isolation: isolate; border: 1px solid var(--line); background: radial-gradient(circle at 76% 18%, color-mix(in srgb, var(--c) 52%, transparent), transparent 46%), repeating-linear-gradient(115deg, transparent 0 38px, rgba(255, 255, 255, .025) 38px 39px), linear-gradient(180deg, #111628, #05060a); }
.maps img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.maps li:hover img { transform: scale(1.05); }
.maps li::after { content: ''; position: absolute; inset: 35% 0 0; z-index: -1; background: linear-gradient(transparent, rgba(3, 4, 8, .94)); }
.maps h3 { text-transform: uppercase; font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.15; margin-bottom: 8px; }
.maps p { color: #b8c2de; font-size: .94rem; max-width: 46ch; }

/* download */
.play { background: radial-gradient(900px 560px at 50% 100%, rgba(106, 69, 255, .28), transparent 70%); }
.soon { display: inline-block; margin: 8px 0 24px; padding: 14px clamp(20px, 4vw, 38px); font: 800 clamp(1.3rem, 4vw, 2.4rem) var(--display); letter-spacing: .24em; text-transform: uppercase; background: var(--panel); border: 1px solid var(--line); }

.footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: .82rem; color: var(--dim); }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.version { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 20px; font: 600 .8rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.version strong { color: var(--text); }
.notes { max-width: 760px; margin-top: 12px; border: 1px solid var(--line); background: var(--panel); }
.notes summary { cursor: pointer; padding: 13px 20px; font: 700 .74rem var(--display); letter-spacing: .22em; text-transform: uppercase; }
.notes summary:hover { color: var(--accent2); }
.notes div { padding: 4px 20px 20px; white-space: pre-line; overflow-wrap: anywhere; color: #c4cde6; font-size: .93rem; }
.version .dot { width: 8px; height: 8px; border-radius: 50%; background: #5dffb0; box-shadow: 0 0 10px #5dffb0; }

/* cinematic entry and replay */
.cinema { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; border: 0; padding: 0; overflow: hidden; background: #000; color: var(--text); transition: opacity .9s ease; }
.cinema[open] { display: grid; place-items: center; }
.cinema::backdrop { background: transparent; }
.cinema.leaving { opacity: 0; pointer-events: none; }
.cinema video { width: 100%; height: 100%; min-height: 0; object-fit: contain; animation: fadein .8s ease both; }
.gate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; width: 100%; height: 100%; padding: 80px var(--gutter); text-align: center; background: radial-gradient(70% 55% at 50% 40%, rgba(120, 96, 235, .5), rgba(40, 28, 100, .28) 55%, #04050a 100%); animation: fadein .8s ease both; }
.gate img { width: min(720px, 100%); height: auto; filter: drop-shadow(0 0 1px rgba(232, 236, 255, .95)) drop-shadow(0 0 26px rgba(170, 150, 255, .75)); }
.gate-line { font: 600 clamp(.78rem, 1.8vw, 1rem) var(--display); letter-spacing: .34em; text-transform: uppercase; color: #d5dcf6; }
.gate .btn { margin-top: 10px; min-height: 60px; padding: 0 40px; font-size: .9rem; }
.gate-note { font-size: .82rem; color: var(--dim); }
.cinema-close { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; z-index: 2; font: 700 .72rem var(--display); letter-spacing: .24em; text-transform: uppercase; color: #fff; background: rgba(12, 15, 28, .72); border: 1px solid rgba(150, 180, 255, .4); padding: 13px 22px; cursor: pointer; }
.cinema-close:hover { background: rgba(60, 46, 130, .85); }
@keyframes fadein { from { opacity: 0; } }
html.cinema-open { overflow: hidden; }
html.gating { background: #04050a; }
html.gating body > :not(dialog) { visibility: hidden; }
.noscript { padding: 20px; text-align: center; }

/* scroll reveal: only hidden once scripting has confirmed it can show it again */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .picker { grid-template-columns: repeat(6, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
  .stage { grid-template-columns: 1fr; }
  .stage-art { min-height: min(640px, 88vw * 1.3); }
  .stage-info { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .nav nav { position: absolute; inset: 72px 0 auto; flex-direction: column; gap: 22px; padding: 28px; background: rgba(5, 6, 10, .97); border-bottom: 1px solid var(--line); display: none; }
  .nav nav.open { display: flex; }
  .stats { grid-template-columns: 1fr 1fr; }
  .maps { grid-template-columns: 1fr; }
  .picker { grid-template-columns: repeat(4, 1fr); }
  .t1 { letter-spacing: .4em; }
}
@media (max-width: 520px) {
  .moves, .cards { grid-template-columns: 1fr; }
  .cards li { min-height: 0; }
  .actions .btn { width: 100%; }
  .filters { gap: 6px; flex-wrap: nowrap; }
  .filters button { flex: 1; padding: 11px 2px; letter-spacing: .1em; }
  .stage-art { min-height: min(520px, 128vw); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
