/* DÉJÀ ME: Echo Army · landing site. Dark neon glass, like the game. */

@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600 1000; font-display: swap;
  src: url(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; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600 1000; font-display: swap;
  src: url(fonts/nunito-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/manrope-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: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/manrope-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --bg: #06070d;
  --bg-2: #0b0d18;
  --panel: rgba(20, 24, 44, 0.55);
  --panel-solid: #11142a;
  --line: rgba(160, 180, 255, 0.14);
  --line-strong: rgba(160, 180, 255, 0.28);
  --ink: #eef1ff;
  --ink-2: #b9c0e0;
  --muted: #8790b8;
  --cyan: #45ecff;
  --magenta: #ff4fbf;
  --violet: #a86bff;
  --gold: #ffd23f;
  --green: #3ff59a;
  --red: #ff3d6e;
  --grad: linear-gradient(100deg, var(--cyan) 0%, #8f8bff 45%, var(--magenta) 100%);
  --display: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 22px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
main { overflow-x: clip; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(69, 236, 255, 0.35); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

/* Backdrop: hex floor + nebulae, fixed behind everything */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 85% -10%, rgba(168, 107, 255, 0.16), transparent 60%),
    radial-gradient(50vmax 40vmax at -10% 30%, rgba(69, 236, 255, 0.10), transparent 60%),
    radial-gradient(50vmax 50vmax at 60% 120%, rgba(255, 79, 191, 0.10), transparent 60%),
    var(--bg); }
.backdrop::after { content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 56 16v32L28 64 0 48V16zM28 64v33M0 16-28 0M56 16 84 0' fill='none' stroke='%237d8cff' stroke-opacity='.07'/%3E%3C/svg%3E");
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(6, 7, 13, 0.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font: 800 17px/1 var(--display); letter-spacing: 0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-strong), 0 6px 20px rgba(69, 236, 255, 0.25); }
.nav-links { display: flex; gap: 6px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.nav .btn { padding: 10px 18px; font-size: 14px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04); color: var(--ink); cursor: pointer; }
.menu-btn svg { margin: auto; }

@media (max-width: 900px) {
  .nav-links, .nav .btn-nav { display: none; }
  .menu-btn { display: grid; }
  .nav.open { background: rgba(6, 7, 13, 0.96); }
  .nav.open .nav-links { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 20px; background: rgba(6, 7, 13, 0.96); border-bottom: 1px solid var(--line); }
  .nav.open .nav-links a { display: block; padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
}

/* ---------- Buttons ---------- */
.btn { --c: var(--cyan); display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 16px;
  font: 700 16px/1 var(--body); color: #04121a; background: var(--grad); border: 0; cursor: pointer;
  box-shadow: 0 10px 30px -8px rgba(69, 236, 255, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  transition: transform .2s cubic-bezier(.2, .9, .3, 1.4), box-shadow .2s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(255, 79, 191, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.25) inset; }
.btn:active { transform: translateY(0) scale(.98); }
.btn.ghost { background: rgba(255, 255, 255, 0.05); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong) inset; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.1); }

.store-btn { display: inline-flex; align-items: center; gap: 14px; padding: 12px 22px 12px 16px; border-radius: 18px;
  background: #fff; color: #05060c; box-shadow: 0 12px 40px -10px rgba(255, 255, 255, 0.4); transition: transform .2s; }
.store-btn:hover { text-decoration: none; transform: translateY(-2px); }
.store-btn svg { width: 30px; height: 30px; }
.store-btn small { display: block; font: 600 11px/1.1 var(--body); letter-spacing: .04em; text-transform: uppercase; opacity: .65; }
.store-btn strong { display: block; font: 800 19px/1.1 var(--display); letter-spacing: -0.01em; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.04; letter-spacing: -0.015em; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 12px/1 var(--display); letter-spacing: .28em;
  text-transform: uppercase; color: var(--cyan); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; box-shadow: 0 0 10px currentColor; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 60ch; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }
.section-head h2 { font-size: clamp(34px, 5vw, 64px); font-weight: 1000; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; overflow: hidden; padding: 110px 0 70px; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; touch-action: pan-y; cursor: crosshair; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 7, 13, 0.92) 0%, rgba(6, 7, 13, 0.6) 38%, transparent 62%),
              linear-gradient(0deg, var(--bg) 0%, transparent 22%); }
.hero-copy { max-width: 620px; position: relative; pointer-events: none; }
.hero-copy a, .hero-copy button { pointer-events: auto; }
.logo { font: 1000 clamp(58px, 9.5vw, 124px)/1 var(--display); letter-spacing: -0.02em; margin: 18px 0 4px; white-space: nowrap;
  background: linear-gradient(180deg, #fff 0%, #dff 30%, transparent 140%), var(--grad); background-blend-mode: soft-light;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px rgba(69, 236, 255, 0.35)) drop-shadow(0 0 60px rgba(255, 79, 191, 0.25)); }
.logo-sub { display: flex; align-items: center; gap: 14px; font: 600 13px/1 var(--display); letter-spacing: .6em; color: var(--ink-2); margin-bottom: 30px; }
.logo-sub i { display: block; width: 8px; height: 8px; transform: rotate(45deg); background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.logo-sub i:last-child { background: var(--magenta); box-shadow: 0 0 10px var(--magenta); }
.hero h1 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 900; margin-bottom: 18px; }
.hero .lead { margin: 0 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hint { display: inline-flex; align-items: center; gap: 10px; margin-top: 34px; font-size: 14px; color: var(--muted); }
.hint b { color: var(--ink); font-weight: 700; }
.hint .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(255, 210, 63, 0.18), 0 0 14px var(--gold); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.35); opacity: .6; } }

.stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 40px; margin-top: 54px; }
.stat b { display: block; font: 800 clamp(26px, 3vw, 36px)/1 var(--display); }
.stat span { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.stat:nth-child(1) b { color: var(--cyan); } .stat:nth-child(2) b { color: var(--magenta); }
.stat:nth-child(3) b { color: var(--gold); } .stat:nth-child(4) b { color: var(--green); }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; width: 26px; height: 42px; border-radius: 14px; border: 2px solid var(--line-strong); }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink-2); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 760px) {
  /* Phones: a play field on top, the copy below it. */
  .hero { align-items: end; padding-top: calc(68px + min(44svh, 380px)); }
  .hero::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(6, 7, 13, 0.92) 55%, rgba(6, 7, 13, 0) calc(100% - 68px - min(44svh, 380px) + 40px)); }
  .stats { grid-template-columns: repeat(2, auto); gap: 18px 36px; margin-top: 38px; }
  .scroll-cue { display: none; }
  .logo-sub { letter-spacing: .4em; font-size: 11px; }
}

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); overflow: hidden; padding: 18px 0; }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 48px; font: 700 15px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.ticker span::after { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: var(--magenta); box-shadow: 0 0 10px var(--magenta); }
.ticker span:nth-child(3n+2)::after { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.ticker span:nth-child(3n)::after { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Phone frame ---------- */
.phone { --w: 290px; position: relative; width: var(--w); aspect-ratio: 1206 / 2622; border-radius: calc(var(--w) * 0.16);
  padding: calc(var(--w) * 0.035); background: linear-gradient(145deg, #2a2f4a, #0c0e1a 40%, #1b1f35);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 40px 80px -20px rgba(0, 0, 0, 0.8), 0 0 80px -20px var(--glow, rgba(69, 236, 255, 0.45)); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--w) * 0.13); background: #05060c; }
.phone::after { content: ""; position: absolute; top: calc(var(--w) * 0.06); left: 50%; translate: -50% 0; width: 30%; height: calc(var(--w) * 0.09);
  border-radius: 99px; background: #000; }

/* ---------- How it plays ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); counter-reset: step; }
.step { position: relative; display: grid; gap: 22px; justify-items: center; text-align: center; }
.step .phone { --w: min(270px, 70vw); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.step:nth-child(2) .phone { --glow: rgba(255, 79, 191, 0.5); transform: translateY(40px); }
.step:nth-child(3) .phone { --glow: rgba(255, 210, 63, 0.45); }
.step:hover .phone { transform: translateY(-8px) rotate(-1deg); }
.step:nth-child(2):hover .phone { transform: translateY(32px) rotate(1deg); }
.step h3 { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 12px; justify-content: center; }
.step h3::before { counter-increment: step; content: counter(step, decimal-leading-zero); font: 800 13px/1 var(--display);
  padding: 7px 9px; border-radius: 9px; color: var(--bg); background: var(--cyan); box-shadow: 0 0 18px rgba(69, 236, 255, 0.6); }
.step:nth-child(2) h3::before { background: var(--magenta); box-shadow: 0 0 18px rgba(255, 79, 191, 0.6); }
.step:nth-child(3) h3::before { background: var(--gold); box-shadow: 0 0 18px rgba(255, 210, 63, 0.6); }
.step p { margin: 0; color: var(--ink-2); max-width: 34ch; }
.step:nth-child(2) .step-text { margin-top: 40px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 70px; }
  .step:nth-child(2) .phone, .step:nth-child(2):hover .phone { transform: none; }
  .step:nth-child(2) .step-text { margin-top: 0; }
}

/* ---------- Echo roster ---------- */
.roster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .echo { padding: 14px 14px 16px; } .echo img { width: 92px; height: 92px; } }
.echo { --c: var(--cyan); position: relative; padding: 18px 18px 20px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)); border: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .35s, box-shadow .35s; }
.echo::before { content: ""; position: absolute; inset: -40% -20% auto; height: 80%; background: radial-gradient(closest-side, var(--c), transparent);
  opacity: .14; transition: opacity .35s; pointer-events: none; }
.echo:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 60%, transparent);
  box-shadow: 0 20px 50px -20px color-mix(in srgb, var(--c) 70%, transparent); }
.echo:hover::before { opacity: .35; }
.echo img { width: 112px; height: 112px; margin: 0 auto 10px; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .5));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1.3); }
.echo:hover img { transform: scale(1.12) rotate(-6deg); }
.echo h3 { font-size: 17px; font-weight: 700; color: var(--c); margin-bottom: 6px; text-shadow: 0 0 18px color-mix(in srgb, var(--c) 50%, transparent); }
.echo p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.echo .tag { position: absolute; top: 14px; right: 14px; font: 700 10px/1 var(--display); letter-spacing: .12em; color: var(--muted);
  padding: 5px 7px; border-radius: 7px; border: 1px solid var(--line); }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split .visual { position: relative; display: grid; place-items: center; min-height: 520px; }
.split .visual .phone:nth-child(2) { position: absolute; --w: 220px; right: 2%; bottom: -4%; transform: rotate(6deg); --glow: rgba(255, 79, 191, 0.5); }
.split .visual .phone:first-child { transform: rotate(-4deg) translateX(-12%); }
.feature-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.feature-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 16px; border-radius: 18px;
  background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.feature-list .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(69, 236, 255, 0.12); color: var(--cyan); }
.feature-list li:nth-child(2) .ic { background: rgba(255, 79, 191, 0.12); color: var(--magenta); }
.feature-list li:nth-child(3) .ic { background: rgba(255, 210, 63, 0.12); color: var(--gold); }
.feature-list li:nth-child(4) .ic { background: rgba(63, 245, 154, 0.12); color: var(--green); }
.feature-list b { display: block; font-family: var(--display); font-weight: 700; font-size: 16px; margin-bottom: 3px; }
.feature-list span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .split .visual { min-height: 0; padding: 20px 0 60px; }
  .split .visual .phone:first-child { transform: rotate(-3deg); --w: min(270px, 66vw); }
  .split .visual .phone:nth-child(2) { --w: min(180px, 42vw); right: 0; bottom: 0; }
}

/* ---------- Bosses ---------- */
.bosses { background: linear-gradient(180deg, transparent, rgba(255, 61, 110, 0.05) 30%, rgba(168, 107, 255, 0.06) 70%, transparent); }
.boss-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.boss { --c: var(--red); position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; padding: 20px;
  border-radius: var(--radius); background: rgba(10, 8, 20, 0.6); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, transform .3s; }
.boss::after { content: ""; position: absolute; left: -30px; top: 50%; width: 180px; height: 180px; translate: 0 -50%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 45%, transparent), transparent); z-index: -1; }
.boss:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); transform: translateY(-4px); }
.boss img { width: 120px; height: 120px; object-fit: contain; animation: hover 5s ease-in-out infinite; }
.boss:nth-child(2n) img { animation-delay: -2.5s; }
@keyframes hover { 50% { transform: translateY(-6px) scale(1.04); } }
.boss .lv { font: 700 11px/1 var(--display); letter-spacing: .16em; color: var(--c); }
.boss h3 { font-size: 20px; margin: 6px 0 6px; }
.boss p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.boss.last { grid-column: span 3; grid-template-columns: 220px 1fr; padding: 30px 36px; border-color: rgba(255, 61, 110, 0.35);
  background: linear-gradient(110deg, rgba(255, 61, 110, 0.14), rgba(10, 8, 20, 0.7) 60%); }
.boss.last img { width: 220px; height: 220px; }
.boss.last h3 { font-size: clamp(26px, 3.4vw, 42px); }
.boss.last p { font-size: 17px; max-width: 52ch; }
.boss.last::after { width: 340px; height: 340px; }
@media (max-width: 1000px) { .boss-grid { grid-template-columns: 1fr 1fr; } .boss.last { grid-column: span 2; } }
@media (max-width: 640px) {
  .boss-grid { grid-template-columns: 1fr; } .boss.last { grid-column: auto; grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 26px 20px; }
  .boss.last img { width: 170px; height: 170px; } .boss.last::after { left: 50%; top: 100px; translate: -50% -50%; }
}

/* ---------- Arena ---------- */
.arena { overflow: hidden; }
.arena::before { content: ""; position: absolute; inset: 10% -20% auto; height: 70%; z-index: -1;
  background: conic-gradient(from 200deg at 50% 50%, rgba(255, 79, 191, 0.18), rgba(69, 236, 255, 0.14), rgba(255, 210, 63, 0.10), rgba(255, 79, 191, 0.18));
  filter: blur(80px); }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.mode { padding: 16px 16px 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.mode b { display: block; font: 700 15px/1.2 var(--display); margin-bottom: 6px; }
.mode span { display: block; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.mode .size { display: inline-block; margin-bottom: 9px; font: 700 10px/1 var(--display); letter-spacing: .1em; padding: 4px 6px; border-radius: 6px; color: var(--gold); border: 1px solid rgba(255, 210, 63, 0.35); }
.leagues { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.league { font: 700 12px/1 var(--display); letter-spacing: .08em; padding: 9px 12px; border-radius: 10px; border: 1px solid currentColor; }
.live-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 99px; background: rgba(63, 245, 154, 0.1);
  border: 1px solid rgba(63, 245, 154, 0.35); color: var(--green); font: 700 13px/1 var(--body); }
.live-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: pulse 1.4s infinite; }
.live-pill[hidden] { display: none; }
@media (max-width: 640px) { .modes { grid-template-columns: 1fr 1fr; } }

/* ---------- Modes + promise cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; padding: 30px 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.card .big { font: 800 clamp(40px, 5vw, 60px)/1 var(--display); margin-bottom: 14px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(closest-side, var(--c, var(--cyan)), transparent); opacity: .22; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-radius: var(--radius); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.promise div { padding: 28px 24px; background: var(--bg-2); }
.promise svg { color: var(--green); margin-bottom: 14px; }
.promise b { display: block; font: 700 17px/1.25 var(--display); margin-bottom: 8px; }
.promise span { font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 900px) { .promise { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .promise { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery { display: flex; gap: 26px; overflow-x: auto; padding: 30px var(--gutter) 50px; scroll-snap-type: x mandatory; scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; scroll-snap-align: center; flex: none; display: grid; gap: 14px; justify-items: center; }
.gallery .phone { --w: 250px; }
.gallery figcaption { font: 700 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 1300px) { .gallery { justify-content: center; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { border-radius: 18px; background: var(--panel); border: 1px solid var(--line); transition: border-color .25s, background .25s; }
.faq details[open] { border-color: var(--line-strong); background: rgba(30, 34, 64, 0.6); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font: 700 16.5px/1.35 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq .a { padding: 0 22px 22px; color: var(--ink-2); }
.faq .a p { margin: 0 0 10px; } .faq .a p:last-child { margin: 0; }

/* ---------- Final CTA ---------- */
.final { text-align: center; padding: clamp(90px, 12vw, 160px) 0; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(900px, 140vw); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(69, 236, 255, 0.18), rgba(168, 107, 255, 0.10) 50%, transparent); z-index: -1; }
.final .core { width: 120px; height: 120px; margin: 0 auto 34px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 50% 50%, #fff 0 6%, var(--cyan) 14%, rgba(69, 236, 255, 0.2) 38%, transparent 60%);
  box-shadow: 0 0 0 2px rgba(69, 236, 255, 0.6), 0 0 0 14px rgba(69, 236, 255, 0.08), 0 0 80px rgba(69, 236, 255, 0.6); animation: breathe 3.2s ease-in-out infinite; }
.final .core::before, .final .core::after { content: ""; position: absolute; inset: -26px; border-radius: 50%; border: 2px dashed rgba(69, 236, 255, 0.4); animation: spin 18s linear infinite; }
.final .core::after { inset: -48px; border: 1px solid rgba(255, 79, 191, 0.35); border-left-color: transparent; border-right-color: transparent; animation-duration: 9s; animation-direction: reverse; }
@keyframes breathe { 50% { transform: scale(1.06); box-shadow: 0 0 0 2px rgba(69, 236, 255, 0.8), 0 0 0 20px rgba(69, 236, 255, 0.06), 0 0 120px rgba(69, 236, 255, 0.7); } }
@keyframes spin { to { transform: rotate(360deg); } }
.final h2 { font-size: clamp(36px, 6vw, 80px); font-weight: 1000; margin-bottom: 18px; }
.final .lead { margin: 0 auto 36px; }
.final .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 50px 0 40px; color: var(--muted); font-size: 14px; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.footer h4 { font: 700 12px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin: 6px 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: var(--muted); } .footer a:hover { color: var(--ink); }
.footer .fine { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 26px; margin-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
.footer .brand { margin-bottom: 14px; }
.footer p { margin: 0; max-width: 36ch; }
@media (max-width: 760px) { .footer .wrap { grid-template-columns: 1fr 1fr; } .footer .wrap > :first-child { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 140px 0 40px; }
.legal-hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; margin: 18px 0 14px; }
.legal-hero p { color: var(--muted); margin: 0; }
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 60px; padding-bottom: 120px; align-items: start; }
.toc { position: sticky; top: 96px; font-size: 14px; }
.toc b { display: block; font: 700 11px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: block; padding: 7px 10px; border-radius: 9px; color: var(--ink-2); border-left: 2px solid transparent; }
.toc a:hover, .toc a.on { background: rgba(255, 255, 255, 0.05); color: var(--ink); text-decoration: none; border-left-color: var(--cyan); }
.prose { max-width: 760px; font-size: 16.5px; color: var(--ink-2); }
.prose h2 { font-size: 24px; color: var(--ink); margin: 56px 0 16px; scroll-margin-top: 96px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; color: var(--ink); margin: 30px 0 10px; font-weight: 700; letter-spacing: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.prose .summary { padding: 24px 26px; border-radius: 18px; background: linear-gradient(135deg, rgba(69, 236, 255, 0.08), rgba(168, 107, 255, 0.06)); border: 1px solid rgba(69, 236, 255, 0.25); margin-bottom: 30px; }
.prose .summary p:last-child, .prose .summary ul:last-child { margin-bottom: 0; }
.prose .summary h2 { margin-top: 0; font-size: 19px; }
.table-scroll { overflow-x: auto; margin: 0 0 20px; border-radius: 14px; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 700; background: rgba(255, 255, 255, 0.04); font-size: 13px; letter-spacing: .02em; }
.prose tr:last-child td { border-bottom: 0; }
.prose code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); color: var(--ink); }
@media (max-width: 900px) { .legal { grid-template-columns: minmax(0, 1fr); gap: 20px; } .toc { position: static; padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); } }

/* Support page */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 60px; }
.support-grid .card { padding: 26px; }
.support-grid .card a { font-weight: 700; }
@media (max-width: 900px) { .support-grid { grid-template-columns: 1fr; } }

/* 404 */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 100px var(--gutter); }
.lost h1 { font-size: clamp(80px, 18vw, 200px); font-weight: 900; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
