/* =============================================================================
   WarMate Store — "Forge at Night"
   Obsidian/espresso ground, one warm light source (Sunwell amber), liquid glass on top,
   class colours as local light. Single dark theme on purpose (matches WarMate Center and the game).
   Fonts are self-hosted (OFL, see assets/fonts/OFL-*.txt) — no third-party requests.
   The CSP forbids inline style attributes: per-element values (--c, --w, --v, --s …) are set via the CSSOM.
   Motion uses transform/opacity only; everything respects prefers-reduced-motion.
   ============================================================================= */

@font-face { font-family: "Big Shoulders Display"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/hanken-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  /* ground */
  --bg: #0d0806;
  --bg-2: #140d0a;
  --surface: #1a110c;
  --surface-2: #261a13;
  /* light */
  --amber: #f59e0b;
  --amber-deep: #d97706;
  --gold: #fbbf24;
  --gold-pale: #fde68a;
  --cyan: #38bdf8;
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  /* ink */
  --ink: #fdf8f0;
  --ink-dim: #cfbba7;
  --ink-mute: #8f7866;
  /* edges */
  --edge: rgba(255, 228, 196, 0.13);
  --edge-hi: rgba(255, 228, 196, 0.26);
  --edge-warm: rgba(251, 191, 36, 0.24);
  --line: rgba(255, 228, 196, 0.08);

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 28px;
  --gutter: clamp(16px, 4vw, 44px);
  --maxw: 1260px;
  --topbar-h: 56px;
  --section-max: 62rem;

  --glass-fill: linear-gradient(155deg, rgba(255, 244, 228, 0.085), rgba(255, 244, 228, 0.022) 62%);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.35), 0 22px 50px -14px rgba(0, 0, 0, 0.7);
  --gold-text: linear-gradient(180deg, #fff6df 0%, #fde68a 34%, #fbbf24 62%, #d97706 100%);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ----- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scroll-padding-top: var(--topbar-h);
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Ambient forge light on its own fixed layer (composited once, no repaint on scroll). */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 680px at 78% -12%, rgba(217, 119, 6, 0.22), transparent 62%),
    radial-gradient(820px 620px at -8% 34%, rgba(194, 110, 56, 0.11), transparent 62%),
    radial-gradient(900px 600px at 60% 118%, rgba(56, 189, 248, 0.05), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 72%);
}
/* Fine grain over everything, very subtle. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: .02em; line-height: 1; text-wrap: balance; margin: 0; text-transform: uppercase; }
p { margin: 0 0 1em; max-width: 65ch; }
em { font-style: normal; }
.mono, code, kbd { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow { font: 500 .72rem/1.4 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--amber); margin: 0 0 10px; }
.muted { color: var(--ink-dim); }
.mute { color: var(--ink-mute); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.gold-text, .section-head h2 em, .section-title em { color: transparent; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
main { position: relative; z-index: 1; overflow-x: clip; }

/* ----- Snap sections: each one fits the viewport, no dead space ------------- */
.snap {
  position: relative; z-index: 1;
  min-height: min(calc(100svh - var(--topbar-h)), var(--section-max));
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: center;
  padding-block: clamp(20px, 4.5vh, 56px);
  scroll-snap-align: start;
}
.snap + .snap { border-top: 1px solid transparent; }

/* ----- Liquid glass -------------------------------------------------------- */
.glass {
  position: relative;
  background: var(--glass-fill);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  isolation: isolate;
}
.glass::after {
  /* the reflection: a soft highlight that follows the pointer (--mx/--my), fixed top-left on touch */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(520px circle at var(--mx, 18%) var(--my, 0%), rgba(255, 236, 210, 0.12), transparent 44%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--surface-2); }
}

/* ----- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 700 .95rem/1 var(--font-text); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s var(--ease), border-color .2s, color .2s;
  white-space: nowrap; position: relative;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn-primary {
  color: #1a0f08;
  background: linear-gradient(180deg, #fcd34d 0%, var(--amber) 48%, var(--amber-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 10px 28px -6px rgba(217, 119, 6, .55), 0 0 0 1px rgba(251, 191, 36, .45);
}
.btn-primary:hover { color: #1a0f08; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 16px 40px -8px rgba(217, 119, 6, .7), 0 0 0 1px rgba(251, 191, 36, .75), 0 0 30px rgba(245, 158, 11, .25); }
.btn-ghost { color: var(--ink); background: rgba(255, 240, 220, .055); border-color: var(--edge); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-ghost:hover { color: var(--ink); background: rgba(255, 240, 220, .11); border-color: var(--edge-hi); }
.btn-discord { color: #fff; background: #5865f2; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 24px -6px rgba(88, 101, 242, .55); }
.btn-discord:hover { color: #fff; background: #4752c4; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-sm { min-height: 36px; padding: 0 15px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ----- Top bar (56 px glass) ------------------------------------------------ */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar-h);
  border-radius: 0; border-width: 0 0 1px; border-color: rgba(251, 191, 36, .16);
  background: linear-gradient(180deg, rgba(16, 10, 7, .82), rgba(16, 10, 7, .6));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px -18px rgba(0, 0, 0, .9);
}
.topbar::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, .45) 30%, rgba(251, 191, 36, .45) 70%, transparent);
  opacity: .55;
}
.topbar .wrap { height: 100%; display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span { font: 900 21px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.brand b { color: var(--gold); font-weight: inherit; }
.nav { display: flex; gap: 4px; }
.nav a {
  position: relative; color: var(--ink-dim); text-decoration: none; font: 600 .9rem/1 var(--font-text);
  padding: 9px 14px; border-radius: 999px; transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); background: rgba(255, 240, 220, .06); }
.nav a[aria-current="page"] { color: var(--ink); background: rgba(251, 191, 36, .1); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .28); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: -9px; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px;
  background: var(--gold); box-shadow: 0 0 10px var(--gold);
}
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar-btn {
  display: flex; align-items: center; gap: 9px; padding: 3px 12px 3px 3px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 240, 220, .06); border: 1px solid var(--edge); transition: border-color .2s, background-color .2s;
}
.avatar-btn:hover { border-color: var(--edge-hi); background: rgba(255, 240, 220, .1); }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; font: 700 14px/1 var(--font-text); color: var(--gold); flex: none; }
.avatar-lg { width: 64px; height: 64px; font-size: 24px; }
.avatar-btn .name { font-weight: 600; font-size: .9rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu {
  position: absolute; right: var(--gutter); top: calc(100% + 8px); min-width: 220px; padding: 8px;
  background: rgba(26, 17, 12, .94); display: none;
}
.menu.open { display: block; animation: rise .22s var(--ease-out); }
.menu a, .menu button {
  display: flex; width: 100%; align-items: center; gap: 10px; text-align: left; background: none; border: 0;
  padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; cursor: pointer; font-weight: 500;
}
.menu a:hover, .menu button:hover { background: rgba(255, 240, 220, .08); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.tabbar { display: none; }

@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ----- Section heads ------------------------------------------------------- */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 40px; margin-bottom: clamp(16px, 3vh, 30px); }
.section-head h2, .section-title { font-size: clamp(2.1rem, 4.4vw, 3.7rem); font-weight: 900; }
.section-head > p { max-width: 46ch; color: var(--ink-dim); margin: 0; font-size: .98rem; }

/* ----- Hero ---------------------------------------------------------------- */
.hero { min-height: min(calc(100svh - var(--topbar-h)), 54rem); padding-block: clamp(18px, 4vh, 48px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-title {
  font-size: clamp(2.7rem, 5.5vw, 5.6rem); font-weight: 900; line-height: .94; letter-spacing: .01em;
  color: transparent; background: var(--gold-text); -webkit-background-clip: text; background-clip: text;
  padding-bottom: .04em;
}
.hero-title em { display: inline-block; }
.hero .lede { font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.6; color: var(--ink-dim); margin: 18px 0 24px; max-width: 54ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.trust-item {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 10px; border-radius: 999px;
  background: rgba(255, 240, 220, .04); border: 1px solid var(--edge);
  font: 600 .8rem/1 var(--font-text); color: var(--ink-dim);
}
.trust-item svg { width: 15px; height: 15px; color: var(--gold); flex: none; filter: drop-shadow(0 0 6px rgba(251, 191, 36, .45)); }

.hero-visual { position: relative; min-height: clamp(380px, 56vh, 560px); display: grid; place-items: center; align-content: center; }
.ember-canvas { position: absolute; inset: -8%; width: 116%; height: 116%; pointer-events: none; }
.hero-halo {
  position: absolute; width: min(78%, 460px); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(245, 158, 11, .3), rgba(217, 119, 6, .1) 42%, transparent 68%);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.08); opacity: .75; } }
.rune-ring { position: absolute; width: min(540px, 104%); aspect-ratio: 1; color: rgba(251, 191, 36, .24); animation: spin 140s linear infinite; pointer-events: none; }

/* Live replica of the WarMate overlay (E-44) */
.overlay {
  z-index: 2; width: min(400px, 100%); padding: 16px; border-radius: 24px;
  background: linear-gradient(160deg, rgba(50, 33, 23, .74), rgba(20, 13, 9, .7));
  border-color: rgba(251, 191, 36, .24);
  box-shadow: var(--glass-shadow), 0 40px 90px -20px rgba(0, 0, 0, .8), 0 0 60px -10px rgba(245, 158, 11, .18);
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease-out);
  will-change: transform;
}
.ov-head { display: flex; align-items: center; gap: 6px; font: 600 10.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }
.ov-brand { display: inline-flex; align-items: center; gap: 7px; margin-right: auto; font: 900 15px/1 var(--font-display); letter-spacing: .08em; color: var(--ink); }
.ov-brand img { width: 18px; height: 18px; border-radius: 5px; }
.ov-pill { padding: 5px 8px; border-radius: 999px; background: rgba(255, 240, 220, .06); border: 1px solid rgba(255, 230, 200, .1); }
.ov-pill.live { color: var(--cyan); border-color: rgba(56, 189, 248, .3); background: rgba(56, 189, 248, .07); }
.ov-pill.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); margin-right: 6px; vertical-align: 1px; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.ov-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; margin: 18px 0 14px; }
.keycap {
  position: relative; width: 94px; height: 94px; border-radius: 22px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 28%, rgba(251, 191, 36, .34), rgba(217, 119, 6, .12) 55%, rgba(14, 8, 6, .7));
  border: 1px solid rgba(251, 191, 36, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 0 34px rgba(217, 119, 6, .38);
}
.keycap-halo {
  position: absolute; inset: -16px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(251, 191, 36, .55) 84%, transparent 100%);
  filter: blur(7px); opacity: .7; animation: spin 2.6s linear infinite;
}
.keycap .glyph { width: 56px; height: 56px; display: grid; place-items: center; transition: opacity .2s, transform .25s var(--ease-out); }
.keycap .glyph.swap { opacity: 0; transform: scale(.82); }
.ov-icon-img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; border: 1px solid rgba(251, 191, 36, .55); box-shadow: 0 0 18px rgba(251, 191, 36, .45); }
.keycap .gcd { position: absolute; inset: -7px; width: calc(100% + 14px); height: calc(100% + 14px); transform: rotate(-90deg); overflow: visible; }
.keycap .gcd circle { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(251, 191, 36, .8)); }
.keycap .key { position: absolute; right: 5px; bottom: 5px; font: 600 11px/1 var(--font-mono); color: var(--ink); background: rgba(10, 6, 4, .78); padding: 3px 5px; border-radius: 6px; z-index: 2; border: 1px solid rgba(255, 230, 200, .14); }
.ov-label { font: 600 10px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); }
.ov-spell { font: 900 clamp(24px, 2.4vw, 31px)/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; margin-top: 6px; }
.ov-why { font: 500 11.5px/1.4 var(--font-mono); color: var(--ink-dim); margin-top: 7px; }
.ov-queue { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ov-q { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 6px 7px; border-radius: 10px; background: rgba(10, 6, 4, .45); border: 1px solid rgba(255, 230, 200, .07); font: 500 10.5px/1.2 var(--font-mono); color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: rise .35s var(--ease-out); }
.ov-q img { width: 20px; height: 20px; border-radius: 5px; flex: none; }
.ov-q:first-child { color: var(--ink); border-color: rgba(251, 191, 36, .2); }
.ov-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.ov-meter { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; font: 600 9.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.ov-meter b { font-weight: 600; color: var(--ink-dim); letter-spacing: .04em; min-width: 3ch; text-align: right; }
.ov-bar { height: 6px; border-radius: 999px; background: rgba(0, 0, 0, .5); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); }
.ov-bar > i { display: block; height: 100%; border-radius: inherit; transform-origin: left center; transform: scaleX(var(--v, .5)); background: linear-gradient(90deg, var(--amber-deep), var(--gold)); transition: transform .9s var(--ease-out); }
.ov-bar.mana > i { background: linear-gradient(90deg, #2563eb, var(--cyan)); }
.ov-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font: 500 10.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.ov-ready { color: var(--ok); }
.ov-ready::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); margin-right: 6px; vertical-align: 1px; }
.ticker { margin-top: 16px; width: min(400px, 100%); z-index: 2; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 14px; font: 500 11.5px/1.3 var(--font-mono); color: var(--ink-dim); }
.ticker b { color: var(--warn); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 10.5px; }
.ticker span { animation: rise .35s var(--ease-out); }

/* ----- Combat intelligence: bento ----------------------------------------- */
.bento {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas: "safety safety rotations rotations" "defensives utility customization awareness";
}
.b-safety { grid-area: safety; } .b-rotations { grid-area: rotations; } .b-defensives { grid-area: defensives; }
.b-utility { grid-area: utility; } .b-customization { grid-area: customization; } .b-awareness { grid-area: awareness; }
.bento-card {
  padding: clamp(16px, 1.6vw, 22px); border-radius: 22px; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
  transition: transform .4s var(--ease-out), border-color .3s, box-shadow .4s var(--ease-out);
}
.bento-card:hover { transform: translateY(-3px); border-color: rgba(251, 191, 36, .32); box-shadow: var(--glass-shadow), 0 28px 60px -20px rgba(0, 0, 0, .8), 0 0 40px -6px rgba(245, 158, 11, .14); }
.bento-card.wide { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 18px; align-items: center; }
.bento-copy { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bento-top { display: flex; align-items: center; gap: 10px; }
.usp-icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: radial-gradient(circle at 50% 30%, rgba(251, 191, 36, .22), rgba(251, 191, 36, .06));
  color: var(--gold); border: 1px solid rgba(251, 191, 36, .3);
  box-shadow: 0 0 22px -4px rgba(245, 158, 11, .45), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.usp-icon svg { width: 20px; height: 20px; filter: drop-shadow(0 0 5px rgba(251, 191, 36, .6)); }
.usp-badge { font: 600 9.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.bento-card h3 { font-size: clamp(1.35rem, 1.7vw, 1.7rem); font-weight: 800; }
.usp-lead { color: var(--ink); font-size: .9rem; font-weight: 500; line-height: 1.45; margin: 0; }
.usp-bullets { list-style: none; padding: 0; margin: 2px 0 0; display: grid; gap: 7px; font-size: .82rem; line-height: 1.45; color: var(--ink-dim); }
.usp-bullets li { position: relative; padding-left: 16px; }
.usp-bullets li::before { content: ""; position: absolute; left: 1px; top: .55em; width: 6px; height: 6px; border-radius: 1px; transform: rotate(45deg); background: var(--amber); box-shadow: 0 0 8px var(--amber); }

/* Bento visual: the pixel bridge (addon → pixel strip → engine) */
.bridge { display: grid; gap: 10px; align-content: center; padding: 16px; border-radius: 16px; background: rgba(8, 5, 3, .5); border: 1px solid var(--line); }
.bridge-node { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 11px; background: rgba(255, 240, 220, .04); border: 1px solid var(--edge); font: 700 .82rem/1 var(--font-text); }
.bridge-node small { font: 500 9.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.bridge-node.engine { border-color: rgba(56, 189, 248, .3); box-shadow: 0 0 22px -8px rgba(56, 189, 248, .5); }
.bridge-node.engine small { color: var(--cyan); }
.pixel-strip { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; padding: 0 4px; }
.pixel-strip i { aspect-ratio: 1; border-radius: 2px; background: var(--amber); animation: blink 2.4s steps(2, jump-none) infinite; }
.pixel-strip i:nth-child(3n) { background: var(--cyan); animation-delay: -.6s; }
.pixel-strip i:nth-child(4n) { background: var(--ok); animation-delay: -1.1s; }
.pixel-strip i:nth-child(5n) { background: #f472b6; animation-delay: -1.7s; }
.pixel-strip i:nth-child(7n) { background: var(--ink); animation-delay: -.3s; }
.pixel-strip i:nth-child(2n) { animation-duration: 1.9s; }
@keyframes blink { 50% { opacity: .25; } }
.bridge-arrow { justify-self: center; width: 2px; height: 12px; background: linear-gradient(180deg, transparent, var(--gold)); }

/* Bento visual: live priority list */
.prio { position: relative; display: grid; gap: 4px; padding: 10px; border-radius: 16px; background: rgba(8, 5, 3, .5); border: 1px solid var(--line); }
.prio-row { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 8px; font: 500 .78rem/1 var(--font-mono); color: var(--ink-dim); }
.prio-row img { width: 22px; height: 22px; border-radius: 6px; flex: none; }
.prio-row small { margin-left: auto; color: var(--ink-mute); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; }
.prio-cursor {
  position: absolute; z-index: 0; left: 10px; right: 10px; top: 10px; height: 32px; border-radius: 9px;
  background: linear-gradient(90deg, rgba(251, 191, 36, .2), rgba(251, 191, 36, .04)); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .45), 0 0 20px -4px rgba(245, 158, 11, .45);
  animation: prio 7.5s var(--ease-out) infinite;
}
@keyframes prio {
  0%, 16% { transform: translateY(0); }
  20%, 36% { transform: translateY(36px); }
  40%, 56% { transform: translateY(72px); }
  60%, 76% { transform: translateY(108px); }
  80%, 96% { transform: translateY(144px); }
  100% { transform: translateY(0); }
}

/* ----- Setup steps + CTA band ---------------------------------------------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.step { padding: clamp(18px, 2vw, 26px); display: grid; gap: 8px; align-content: start; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font: 900 3.2rem/1 var(--font-display); color: transparent; -webkit-text-stroke: 1px rgba(251, 191, 36, .6); margin-bottom: 4px; }
.step h3 { font-size: 1.5rem; }
.step p { margin: 0; font-size: .9rem; color: var(--ink-dim); }
.cta-band {
  margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px;
  padding: clamp(18px, 2.4vw, 30px); border-radius: var(--radius-l); overflow: hidden; border-color: var(--edge-warm);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(600px 220px at 12% 0%, rgba(251, 191, 36, .2), transparent 70%), radial-gradient(500px 240px at 100% 100%, rgba(194, 110, 56, .18), transparent 70%);
}
.cta-band h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.cta-band .chips { margin-top: 12px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fp-now { color: transparent; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; }
.strike { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--ink-mute); font-weight: 700; }

/* ----- Chips --------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font: 600 .75rem/1 var(--font-text); background: rgba(255, 240, 220, .06); border: 1px solid rgba(255, 230, 200, .12); color: var(--ink-dim); }
.chip.on { color: var(--ink); border-color: rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .1); }
.spec-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 4px;
  border-radius: 999px; font: 600 .75rem/1 var(--font-text);
  background: rgba(255, 240, 220, .05); border: 1px solid rgba(255, 230, 200, .12); color: var(--ink-mute);
}
.spec-chip .chip-spec-icon { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; filter: saturate(.4) brightness(.8); }
.spec-chip.on { color: var(--ink); border-color: rgba(74, 222, 128, .38); background: rgba(74, 222, 128, .07); box-shadow: 0 0 18px -6px rgba(74, 222, 128, .45); }
.spec-chip.on .chip-spec-icon { filter: none; }
.spec-chip.indev { color: var(--ink); border-color: rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .09); }
.spec-chip.indev .chip-spec-icon { filter: none; }
.ready-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); flex: none; }
.indev-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); flex: none; }
.card-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.badge-planned, .badge-status {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px;
  font: 600 10px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-dim); background: rgba(255, 240, 220, .05); border: 1px solid var(--edge);
}
.badge-planned::before, .badge-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-mute); }
.badge-status.in_development {
  color: #fbbf24; border-color: rgba(245, 158, 11, .4); background: rgba(245, 158, 11, .1);
}
.badge-status.in_development::before { background: var(--amber); box-shadow: 0 0 6px var(--amber); }

/* Mode flags: PvE / PvP */
.mode-flags { display: inline-flex; align-items: center; gap: 6px; }
.mode-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px;
  font: 700 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  background: rgba(10, 6, 4, .65); border: 1px solid rgba(255, 230, 200, .15); color: var(--ink-dim);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .2s, box-shadow .2s, color .2s;
}
.mode-chip svg { width: 12px; height: 12px; flex: none; }
.mode-chip.pve {
  color: #86efac; border-color: rgba(74, 222, 128, .45); background: rgba(34, 197, 94, .1);
  box-shadow: 0 0 14px -4px rgba(74, 222, 128, .5);
}
.mode-chip.pve.soon {
  color: var(--ink-mute); border-color: rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); box-shadow: none;
}
.mode-chip.pvp.soon {
  color: #7dd3fc; border-color: rgba(56, 189, 248, .3); background: rgba(56, 189, 248, .07);
}
.mode-chip small {
  font: 600 8.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan); padding: 1px 4px; border-radius: 4px; background: rgba(56, 189, 248, .15);
}
.mode-chip.pve.soon small { color: var(--ink-mute); background: rgba(255, 255, 255, .08); }

/* ----- Rotations: liquid glass coverflow ----------------------------------- */
.rot-stage { --c: var(--gold); }
.rot-stage .section-head { margin-bottom: 4px; }
.rot-stage .section-title, .store-stage .section-title { font-size: clamp(2rem, 3.6vw, 3.1rem); }
.store-stage .section-head { margin-bottom: 14px; }
.rot-stage::before {
  /* the selected class colours the room */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(700px 360px at 50% 30%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%);
  transition: background .6s var(--ease);
}
.coverflow { position: relative; margin-inline: calc(var(--gutter) * -1); }
.cf-track {
  --cf-w: clamp(168px, 14vw, 214px);
  position: relative; display: flex; gap: clamp(2px, .6vw, 10px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: clamp(12px, 2vh, 22px) calc(50% - var(--cf-w) / 2) clamp(14px, 2.4vh, 26px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.cf-track::-webkit-scrollbar { display: none; }
.cf-card {
  --c: var(--gold);
  position: relative; flex: 0 0 var(--cf-w); aspect-ratio: 5 / 6; padding: 0; margin: 0;
  border-radius: 22px; border: 1px solid var(--edge); overflow: hidden; isolation: isolate;
  background: var(--surface); color: var(--ink); text-align: left; cursor: pointer;
  scroll-snap-align: center;
  transform: perspective(1000px) rotateY(var(--ry, 0deg)) scale(var(--s, .92));
  opacity: var(--o, .65);
  box-shadow: 0 16px 34px -10px rgba(0, 0, 0, .7);
  transition: border-color .45s var(--ease), box-shadow .45s var(--ease);
  will-change: transform, opacity;
}
.cf-art {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
  transform: scale(1.06); filter: blur(var(--b, 2px)) saturate(var(--sat, .8));
  transition: transform .8s var(--ease-out);
}
.cf-card:hover .cf-art { transform: scale(1.1); }
.cf-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .16), transparent 30%),
    linear-gradient(180deg, rgba(13, 8, 6, 0) 34%, rgba(13, 8, 6, .62) 66%, rgba(13, 8, 6, .95) 100%);
}
.cf-crest { position: absolute; z-index: 1; right: -16px; top: 26%; width: 62%; opacity: .14; pointer-events: none; filter: drop-shadow(0 0 10px rgba(0, 0, 0, .9)); transition: opacity .5s, transform .6s var(--ease-out); }
.cf-live { position: absolute; z-index: 2; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; font: 600 9.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ok); background: rgba(10, 6, 4, .72); border: 1px solid rgba(74, 222, 128, .4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cf-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.cf-indev {
  position: absolute; z-index: 2; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px;
  border-radius: 999px; font: 600 9.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  color: #fbbf24; background: rgba(10, 6, 4, .72); border: 1px solid rgba(245, 158, 11, .45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cf-indev::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.cf-card.in-dev .cf-art { filter: blur(var(--b, 2px)) saturate(calc(var(--sat, .8) * .9)); }
.cf-info { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 14px; display: grid; gap: 9px; }
.cf-info-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.cf-mode-chip {
  font: 700 9px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  color: #86efac; padding: 2px 6px; border-radius: 4px;
  background: rgba(34, 197, 94, .18); border: 1px solid rgba(74, 222, 128, .4);
}
.cf-icon { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--c); box-shadow: 0 0 16px -2px var(--c), 0 4px 12px rgba(0, 0, 0, .8); }
.cf-name { font: 900 clamp(1.3rem, 1.6vw, 1.6rem)/1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.cf-specs { display: flex; gap: 5px; }
.cf-specs img { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255, 230, 200, .2); filter: grayscale(.7) brightness(.75); }
.cf-specs img.on { filter: none; border-color: rgba(74, 222, 128, .7); box-shadow: 0 0 10px -1px rgba(74, 222, 128, .7); }
.cf-specs img.indev { filter: none; border-color: rgba(245, 158, 11, .7); box-shadow: 0 0 10px -1px rgba(245, 158, 11, .6); }
.cf-card:hover { border-color: var(--edge-hi); }
.cf-card.active {
  border-color: color-mix(in srgb, var(--c) 80%, white 0%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 0 50px -4px color-mix(in srgb, var(--c) 48%, transparent), 0 26px 50px -14px rgba(0, 0, 0, .85);
  z-index: 2;
}
.cf-card.active .cf-crest { opacity: .3; transform: rotate(-6deg) scale(1.04); }
.cf-card.active .cf-veil { background:
    linear-gradient(160deg, rgba(255, 255, 255, .22), transparent 32%),
    linear-gradient(180deg, rgba(13, 8, 6, 0) 40%, color-mix(in srgb, var(--c) 14%, rgba(13, 8, 6, .62)) 70%, rgba(13, 8, 6, .95) 100%); }
.cf-nav {
  position: absolute; top: 50%; z-index: 5; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--gold);
  background: rgba(22, 14, 10, .7); border: 1px solid var(--edge-hi);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 10px 26px -8px rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .25s, opacity .2s;
}
.cf-nav svg { width: 20px; height: 20px; }
.cf-nav.prev { left: max(var(--gutter), calc(50% - var(--maxw) / 2 + var(--gutter))); }
.cf-nav.next { right: max(var(--gutter), calc(50% - var(--maxw) / 2 + var(--gutter))); }
.cf-nav:hover:not([disabled]) { background: var(--amber); color: #1a0f08; transform: scale(1.08); box-shadow: 0 0 26px rgba(245, 158, 11, .55); }
.cf-nav:active:not([disabled]) { transform: scale(.95); }
.cf-nav[disabled] { opacity: .3; cursor: default; }

/* Detail card, directly under the carousel */
.rot-detail {
  --c: var(--gold);
  padding: clamp(14px, 1.6vw, 20px); border-radius: var(--radius-l);
  border-color: color-mix(in srgb, var(--c) 32%, var(--edge));
  box-shadow: var(--glass-shadow), 0 0 70px -20px color-mix(in srgb, var(--c) 30%, transparent);
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.rot-detail::before {
  content: ""; position: absolute; top: -1px; left: 12%; right: 12%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--c), transparent); opacity: .85;
}
.rd-inner { animation: rise .4s var(--ease-out); }
.rd-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.rd-icon { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--c); box-shadow: 0 0 22px -2px color-mix(in srgb, var(--c) 60%, transparent); }
.rd-title .eyebrow { margin-bottom: 4px; }
.rd-title h2 { font-size: clamp(1.6rem, 2.3vw, 2.1rem); font-weight: 900; }
.rd-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rd-body { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.35fr) minmax(0, .72fr); gap: clamp(14px, 1.8vw, 22px); align-items: stretch; }
.rd-art {
  position: relative; margin: 0; min-height: 190px; border-radius: 18px; overflow: hidden; background: #000;
  border: 1px solid rgba(255, 240, 220, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 18px 40px -14px rgba(0, 0, 0, .8);
}
.rd-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rd-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(160deg, rgba(255, 255, 255, .12), transparent 30%), linear-gradient(180deg, transparent 52%, rgba(10, 6, 4, .85)); }
.rd-art figcaption { position: absolute; z-index: 1; left: 14px; bottom: 12px; display: grid; gap: 4px; }
.rd-art figcaption b { font: 900 1.45rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.rd-art figcaption span { font: 500 10px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); }
.rd-main { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.spec-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-tab { cursor: pointer; padding: 5px 13px 5px 5px; font-size: .82rem; transition: border-color .2s, background-color .2s, box-shadow .25s, color .2s; }
.spec-tab .chip-spec-icon { width: 24px; height: 24px; }
.spec-tab:hover { border-color: var(--edge-hi); color: var(--ink); }
.spec-tab[aria-selected="true"] { color: var(--ink); background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .6); box-shadow: 0 0 22px -6px rgba(245, 158, 11, .55), inset 0 1px 0 rgba(255, 255, 255, .12); }
.spec-tab[aria-selected="true"] .chip-spec-icon { filter: none; }
.spec-highlights { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.spec-highlights li { position: relative; padding: 7px 12px 7px 30px; border-radius: 11px; background: rgba(8, 5, 3, .42); border: 1px solid var(--line); color: var(--ink-dim); font-size: .83rem; line-height: 1.42; }
.spec-highlights li::before { content: ""; position: absolute; left: 13px; top: 13px; width: 7px; height: 7px; border-radius: 1px; transform: rotate(45deg); background: var(--c); box-shadow: 0 0 10px var(--c); }
.rd-note { margin: 0; font-size: .9rem; padding: 14px 16px; border-radius: 14px; background: rgba(8, 5, 3, .38); border: 1px dashed var(--edge); }
.rd-extras { min-width: 0; padding: 14px; border-radius: 18px; background: rgba(8, 5, 3, .38); border: 1px solid var(--line); align-self: start; }
.micro-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.micro-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  font: 600 .72rem/1 var(--font-text); color: var(--ink);
  background: rgba(245, 158, 11, .1); border: 1px solid rgba(251, 191, 36, .36);
  box-shadow: 0 0 16px -6px rgba(245, 158, 11, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.micro-chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.micro-chip.soon { color: var(--ink-dim); background: rgba(56, 189, 248, .06); border-color: rgba(56, 189, 248, .26); box-shadow: none; }
.micro-chip.soon::before { background: var(--cyan); box-shadow: none; }
.micro-chip small { font: 600 8.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }

/* ----- Store --------------------------------------------------------------- */
.founder-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 12px 18px; border-radius: 18px; margin-bottom: 16px; border-color: var(--edge-warm); }
.founder-strip p { margin: 0; font-weight: 600; color: var(--ink-dim); }
.founder-strip .fp-now { font: 900 1.6rem/1 var(--font-display); letter-spacing: .02em; }
.founder-strip .strike { margin-left: 4px; }
.founder-tag { font: 600 10px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: #1a0f08; background: linear-gradient(180deg, #fcd34d, var(--amber)); padding: 6px 10px; border-radius: 999px; box-shadow: 0 0 18px -4px rgba(245, 158, 11, .7); }
.founder-note { margin-left: auto; font: 500 .75rem/1.3 var(--font-mono); color: var(--ink-mute); }
.pass-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }

.hero-card {
  --c: var(--gold);
  position: relative; border-radius: var(--radius-l); overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; text-align: left; color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--c) 26%, var(--edge));
  background: linear-gradient(180deg, var(--surface), #120b08);
  box-shadow: var(--glass-shadow);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.hero-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: radial-gradient(480px circle at var(--mx, 20%) var(--my, 0%), rgba(255, 236, 210, .09), transparent 42%);
}
.hero-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 55%, var(--edge)); box-shadow: var(--glass-shadow), 0 26px 60px -18px color-mix(in srgb, var(--c) 40%, transparent); }
.card-art-wrap { position: relative; height: clamp(120px, 16vh, 176px); overflow: hidden; background: #000; }
.card-art { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .8s var(--ease-out); }
.hero-card:hover .card-art { transform: scale(1.05); }
.card-art-gradient { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(20, 13, 10, .05) 0%, rgba(20, 13, 10, .4) 55%, var(--surface) 100%); }
.class-crest-watermark { position: absolute; right: -10px; bottom: -22px; width: 130px; opacity: .2; pointer-events: none; z-index: 1; filter: drop-shadow(0 0 12px rgba(0, 0, 0, .9)); transition: opacity .4s, transform .6s var(--ease-out); }
.hero-card:hover .class-crest-watermark { opacity: .36; transform: rotate(-5deg) scale(1.05); }
.status { position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font: 600 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; background: rgba(10, 6, 4, .72); border: 1px solid rgba(255, 230, 200, .18); color: var(--ink-dim); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.status.live { color: var(--ok); border-color: rgba(74, 222, 128, .42); }
.status.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.hero-card .body { position: relative; z-index: 2; padding: 4px 20px 20px; display: flex; flex-direction: column; flex: 1; gap: 12px; }
.card-title-row { display: flex; align-items: center; gap: 12px; margin-top: -26px; }
.card-title-row .eyebrow { margin: 0 0 4px; }
.card-title-row .mode-flags { margin-left: auto; align-self: flex-end; margin-bottom: 2px; }
.aio-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 0; }
.aio-title-row .mode-flags { margin-left: auto; }
.class-badge { width: 52px; height: 52px; border-radius: 50%; flex: none; border: 2px solid var(--c); background: var(--bg); box-shadow: 0 0 22px -4px var(--c), 0 6px 16px rgba(0, 0, 0, .8); }
.hero-card h3 { font-size: clamp(1.7rem, 2.4vw, 2.3rem); font-weight: 900; }
.hero-card .muted { margin: 0; font-size: .88rem; }
.from { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0; font: 600 .85rem/1.2 var(--font-text); color: var(--ink-dim); }
.from b { font: 900 2rem/1 var(--font-display); letter-spacing: .02em; color: transparent; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; }
.hero-card .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.hero-card .actions .btn { flex: 1 1 150px; }
.hero-card.locked .card-art { filter: saturate(.35) brightness(.8); }
.aio-card { --c: var(--gold); }
.all-classes-strip { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.mini-class-icon { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(251, 191, 36, .55); box-shadow: 0 2px 10px rgba(0, 0, 0, .7); transition: transform .3s var(--ease-out); }
.aio-card:hover .mini-class-icon { transform: translateY(-2px); }
.progress-line { display: grid; gap: 7px; font: 500 .72rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.progress-line .bar { height: 6px; }

.bar { display: block; height: 6px; border-radius: 999px; background: rgba(0, 0, 0, .5); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); }
.bar > i { display: block; height: 100%; width: var(--w, 60%); border-radius: inherit; background: linear-gradient(90deg, var(--amber-deep), var(--gold)); box-shadow: 0 0 10px rgba(245, 158, 11, .5); }

.deck-head { display: flex; align-items: center; gap: 12px; margin: 20px 0 10px; }
.deck-title { font-size: 1.2rem; font-weight: 800; letter-spacing: .06em; color: var(--ink-dim); }
.class-deck { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 10px; }
.deck-card { --c: var(--gold); display: grid; gap: 8px; min-width: 0; }
.deck-link {
  position: relative; display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--edge); background: var(--surface); color: var(--ink); text-decoration: none;
  transition: transform .4s var(--ease-out), border-color .3s, box-shadow .4s var(--ease-out);
}
.deck-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: saturate(.45) brightness(.7); transition: filter .4s, transform .8s var(--ease-out); }
.deck-veil { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .12), transparent 30%), linear-gradient(180deg, transparent 40%, rgba(13, 8, 6, .92)); }
.deck-icon { position: absolute; left: 10px; bottom: 34px; z-index: 1; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--c); box-shadow: 0 0 12px -2px var(--c); }
.deck-name { position: absolute; left: 10px; right: 8px; bottom: 10px; z-index: 1; font: 800 1rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck-live { position: absolute; top: 8px; left: 8px; z-index: 1; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.deck-indev { position: absolute; top: 8px; left: 8px; z-index: 1; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.deck-mode {
  position: absolute; top: 8px; right: 8px; z-index: 1;
  font: 700 9px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 6px; border-radius: 6px;
  background: rgba(10, 6, 4, .75); border: 1px solid rgba(255, 255, 255, .1); color: var(--ink-mute);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.deck-mode.pve {
  color: #86efac; border-color: rgba(74, 222, 128, .4); background: rgba(10, 20, 12, .8);
  box-shadow: 0 0 10px -2px rgba(74, 222, 128, .3);
}
.deck-card.in-dev .deck-art { filter: saturate(.7) brightness(.82); }
.deck-card.in-dev:hover .deck-art { filter: none; transform: scale(1.05); }
.deck-link:hover { color: var(--ink); transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 60%, var(--edge)); box-shadow: 0 16px 34px -14px color-mix(in srgb, var(--c) 55%, transparent); }
.deck-link:hover .deck-art, .deck-card.live .deck-art { filter: none; transform: scale(1.05); }
.price-note { margin: 14px 0 0; font: 500 .72rem/1.5 var(--font-mono); color: var(--ink-mute); max-width: none; }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.faq details { padding: 0 20px; border-radius: 18px; transition: border-color .25s; }
.faq details[open] { border-color: var(--edge-warm); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--edge); font: 600 16px/1 var(--font-mono); color: var(--gold); transition: transform .3s var(--ease-out), background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: rgba(251, 191, 36, .12); }
.faq details p { color: var(--ink-dim); padding-bottom: 18px; margin: 0; font-size: .92rem; animation: rise .3s var(--ease-out); }

/* ----- Checkout sheet (dialog) --------------------------------------------- */
dialog.sheet {
  position: fixed; inset: 0 0 0 auto; margin: 0; height: 100dvh; max-height: none; width: min(480px, 100vw);
  padding: 0; border: 0; border-left: 1px solid var(--edge); border-radius: 26px 0 0 26px; color: var(--ink);
  background: linear-gradient(170deg, rgba(44, 29, 21, .92), rgba(16, 10, 7, .95));
  box-shadow: -30px 0 80px rgba(0, 0, 0, .6), inset 1px 0 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  animation: sheet-in .42s var(--ease-out);
}
dialog.sheet::backdrop { background: rgba(6, 3, 2, .58); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
@keyframes sheet-in { from { transform: translateX(48px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-inner { --c: var(--gold); display: flex; flex-direction: column; gap: 18px; padding: 26px; min-height: 100%; }
.sheet-head { display: flex; align-items: center; gap: 14px; }
.sheet-class-icon { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--c); box-shadow: 0 0 20px -4px var(--c), 0 4px 14px rgba(0, 0, 0, .6); }
.sheet-head h2 { font-size: 2.1rem; font-weight: 900; }
.sheet-close { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--edge); background: rgba(255, 240, 220, .06); cursor: pointer; display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.sheet-close:hover { background: rgba(255, 240, 220, .12); border-color: var(--edge-hi); }
.licensed { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(8, 5, 3, .45); border: 1px solid var(--line); font-size: .88rem; color: var(--ink-dim); }
.licensed .avatar { width: 28px; height: 28px; font-size: 12px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; margin: 0; border-radius: 18px; background: rgba(8, 5, 3, .55); border: 1px solid var(--line); min-width: 0; }
.segmented label { position: relative; cursor: pointer; border-radius: 13px; padding: 12px 6px; text-align: center; display: grid; gap: 5px; transition: background-color .2s, box-shadow .25s; }
.segmented label:hover { background: rgba(255, 240, 220, .05); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented .len { font: 700 .85rem/1 var(--font-text); }
.segmented .amt { font: 900 22px/1 var(--font-display); color: var(--gold); }
.segmented .was { font: 500 11px/1 var(--font-mono); color: var(--ink-mute); text-decoration: line-through; }
.segmented .off { font: 600 10px/1 var(--font-mono); color: var(--ok); letter-spacing: .08em; }
.segmented label:has(input:checked) { background: linear-gradient(180deg, rgba(251, 191, 36, .17), rgba(217, 119, 6, .07)); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .55), 0 0 22px -8px rgba(245, 158, 11, .6); }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.summary { display: grid; gap: 8px; padding: 16px; border-radius: 16px; background: rgba(8, 5, 3, .45); border: 1px solid var(--line); }
.summary .line { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; color: var(--ink-dim); }
.summary .line b { color: var(--ink); font-weight: 600; }
.summary .total { font: 900 1.3rem/1 var(--font-display); color: var(--ink); text-transform: uppercase; letter-spacing: .03em; }
.foot-note { font: 500 .75rem/1.5 var(--font-mono); color: var(--ink-mute); margin: 0; }
.state { display: grid; place-items: center; text-align: center; gap: 14px; padding: 24px 0; }
.state h3 { font-size: 1.7rem; }
.spinner { width: 48px; height: 48px; border-radius: 50%; border: 3px solid rgba(251, 191, 36, .2); border-top-color: var(--gold); animation: spin 1s linear infinite; }
.done-mark { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(74, 222, 128, .25), rgba(74, 222, 128, .05)); border: 1px solid rgba(74, 222, 128, .5); color: var(--ok); box-shadow: 0 0 40px -6px rgba(74, 222, 128, .5); animation: pop .55s var(--ease-out); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.error-box { padding: 14px 16px; border-radius: 14px; background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .35); color: #fecaca; font-size: .88rem; }
.info-box { margin: 0 0 16px; max-width: none; padding: 12px 16px; border-radius: 14px; background: rgba(56, 189, 248, .07); border: 1px solid rgba(56, 189, 248, .3); color: #bae6fd; font-size: .88rem; }

dialog.modal { border: 0; padding: 0; color: var(--ink); background: transparent; width: min(440px, calc(100vw - 32px)); }
dialog.modal::backdrop { background: rgba(6, 3, 2, .6); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
dialog.modal[open] { animation: pop .35s var(--ease-out); }
.modal-card { padding: 28px; display: grid; gap: 16px; background: linear-gradient(170deg, rgba(44, 29, 21, .95), rgba(16, 10, 7, .97)); }
.modal-card h2 { font-size: 2rem; font-weight: 900; }

/* ----- Account ------------------------------------------------------------- */
.account-stage { padding-block: clamp(20px, 4vh, 44px) 48px; }
.acct-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px; border-radius: var(--radius-l); }
.acct-head h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; }
.acct-head .chips { margin-top: 8px; }
.acct-head > .btn { margin-left: auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px; border-radius: 16px; background: rgba(8, 5, 3, .5); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 10px 16px; border-radius: 12px; cursor: pointer; font-weight: 700; color: var(--ink-dim); transition: background-color .2s, color .2s, box-shadow .2s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: rgba(251, 191, 36, .14); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .42); }
.tab-spec-icon { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pass-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pass { --c: var(--gold); padding: 20px; display: grid; gap: 12px; border-color: color-mix(in srgb, var(--c) 26%, var(--edge)); }
.pass h3 { font-size: 1.9rem; display: flex; align-items: center; gap: 10px; }
.pass .mini-sigil { width: 36px; height: 36px; color: var(--c); }
.pass .mini-sigil img { width: 36px; height: 36px; border: 2px solid var(--c); }
.pass .meta { font: 500 .85rem/1.4 var(--font-mono); color: var(--ink-dim); }
.pass.ended { opacity: .55; }
.pill { display: inline-flex; padding: 5px 9px; border-radius: 999px; font: 600 10.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; width: fit-content; }
.pill.active { color: var(--ok); background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .3); }
.pill.ends_soon { color: var(--warn); background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .35); }
.pill.ended, .pill.revoked, .pill.upcoming { color: var(--ink-mute); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.keyrow { display: flex; align-items: center; gap: 8px; padding: 9px 9px 9px 12px; border-radius: 12px; background: rgba(8, 5, 3, .5); border: 1px solid var(--line); font: 500 .85rem/1 var(--font-mono); overflow: hidden; }
.keyrow code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table.purchases { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.purchases th, table.purchases td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.purchases tbody tr:last-child td { border-bottom: 0; }
table.purchases tbody tr:hover { background: rgba(255, 240, 220, .03); }
table.purchases th { font: 600 10.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
table.purchases .num { font-variant-numeric: tabular-nums; text-align: right; }
.device { padding: 22px; display: grid; gap: 14px; max-width: 640px; }
.device p { margin: 0; }
.empty { padding: 32px; text-align: center; color: var(--ink-dim); border-radius: var(--radius); display: grid; gap: 14px; justify-items: center; }
.empty p { margin: 0; }
.download { margin-top: 24px; padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-radius: var(--radius-l); border-color: rgba(88, 101, 242, .3); }
.download h2 { font-size: 1.8rem; font-weight: 900; margin-bottom: 8px; }
.download p { margin: 0; color: var(--ink-dim); }
.acct-actions { display: inline-flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.notice { margin-top: 18px; }

/* ----- Footer, legal, 404, toast ------------------------------------------ */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--ink-mute); font-size: .82rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; }
.site-footer a { color: var(--ink-dim); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer p { margin: 0 0 6px; }
.legal { max-width: 820px; margin-top: 36px; margin-bottom: 48px; padding: clamp(20px, 3.5vw, 36px); border-radius: var(--radius-l); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 18px; }
.legal h2 { font-size: 1.75rem; margin: 28px 0 10px; }
.placeholder { border: 1px dashed rgba(251, 191, 36, .55); background: rgba(251, 191, 36, .06); border-radius: 14px; padding: 16px 18px; color: #fde68a; font: 500 .88rem/1.5 var(--font-mono); }
.notfound { text-align: center; padding-block: 96px; display: grid; justify-items: center; gap: 12px; }
.notfound h1 { font-size: clamp(5rem, 16vw, 11rem); color: transparent; -webkit-text-stroke: 2px rgba(251, 191, 36, .7); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 80; padding: 12px 18px; border-radius: 14px; font-weight: 600; background: rgba(26, 17, 12, .94); max-width: calc(100vw - 32px); animation: rise .3s var(--ease-out); }
.dev-page { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.dev-card { padding: 32px; max-width: 520px; display: grid; gap: 12px; }
.dev-card h1 { font-size: 2.4rem; }
.dev-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ----- Discord wall (E-51) -------------------------------------------------- */
.wall-page { min-height: 100svh; display: grid; grid-template-rows: 1fr auto; }
.wall-backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.wall-backdrop img { width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: blur(6px) saturate(.9); transform: scale(1.08); }
.wall-backdrop::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(640px 420px at 50% 42%, rgba(245, 158, 11, .2), transparent 70%),
    linear-gradient(180deg, rgba(13, 8, 6, .55) 0%, rgba(13, 8, 6, .82) 60%, var(--bg) 100%);
}
.wall { position: relative; z-index: 1; display: grid; place-items: center; padding: clamp(24px, 6vh, 72px) var(--gutter); }
.wall-card {
  width: min(440px, 100%); padding: clamp(26px, 4vw, 40px); border-radius: var(--radius-l); text-align: center;
  display: grid; justify-items: center; gap: 14px; border-color: var(--edge-warm);
  box-shadow: var(--glass-shadow), 0 40px 100px -30px rgba(0, 0, 0, .9), 0 0 80px -20px rgba(245, 158, 11, .3);
  animation: rise .6s var(--ease-out);
}
.wall-mark { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 0 40px -6px rgba(245, 158, 11, .6); }
.wall-brand { margin: 0; font: 900 1.6rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.wall-brand b { color: var(--gold); font-weight: inherit; }
.wall-card .eyebrow { margin: 4px 0 0; }
.wall-title { font-size: clamp(2.6rem, 8vw, 3.6rem); font-weight: 900; }
.wall-title em { color: transparent; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; }
.wall-lede { margin: 0; color: var(--ink-dim); font-size: .95rem; }
.wall-notice { margin: 4px 0 0; width: 100%; padding: 11px 14px; border-radius: 14px; font-size: .88rem; color: var(--ink); background: rgba(255, 240, 220, .06); border: 1px solid var(--edge); }
.wall-notice.warn { color: #fde68a; background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .4); }
.wall-login { margin-top: 6px; min-height: 50px; font-size: 1rem; }
.wall-note { margin: 0; font: 500 .72rem/1.5 var(--font-mono); color: var(--ink-mute); }
.wall-footer { position: relative; z-index: 1; padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom)); text-align: center; color: var(--ink-mute); font-size: .78rem; }
.wall-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 8px; }
.wall-footer a { color: var(--ink-dim); text-decoration: none; }
.wall-footer a:hover { color: var(--ink); }
.wall-footer p { margin: 0 auto; max-width: 70ch; }

/* ----- Large screens (QHD / 4K) -------------------------------------------- */
@media (min-width: 1800px) {
  :root { --maxw: 1480px; }
  html { font-size: 17px; }
}
@media (min-width: 2400px) {
  :root { --maxw: 1760px; --topbar-h: 64px; }
  html { font-size: 19px; }
}

/* ----- Short desktop viewports (laptops): tighten so a section still fits -- */
@media (min-width: 861px) and (max-height: 820px) {
  .hero-visual { min-height: 400px; }
  .rune-ring { width: min(440px, 100%); }
  .cf-track { --cf-w: clamp(150px, 12vw, 180px); }
  .rd-art { min-height: 160px; }
  .spec-highlights li { padding-block: 7px; }
  .card-art-wrap { height: 120px; }
  .usp-bullets { gap: 5px; }
}

/* ----- Tablet -------------------------------------------------------------- */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "safety safety" "rotations rotations" "defensives utility" "customization awareness"; }
  .rd-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .rd-extras { grid-column: 1 / -1; }
  .class-deck { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

/* ----- Mobile -------------------------------------------------------------- */
@media (max-width: 860px) {
  html { scroll-snap-type: none; }
  .snap, .hero { min-height: 0; padding-block: 28px; }
  main { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .nav { display: none; }
  .tabbar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; z-index: 45; left: 12px; right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom)); padding: 6px; border-radius: 22px;
    background: linear-gradient(180deg, rgba(44, 29, 21, .82), rgba(16, 10, 7, .9));
  }
  .tabbar a { display: grid; place-items: center; gap: 3px; padding: 8px 4px; border-radius: 16px; color: var(--ink-dim); text-decoration: none; font: 600 12px/1 var(--font-text); transition: background-color .2s, color .2s; }
  .tabbar a svg { width: 20px; height: 20px; }
  .tabbar a[aria-current="page"] { color: var(--ink); background: rgba(251, 191, 36, .14); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .3); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { min-height: 400px; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "safety" "rotations" "defensives" "utility" "customization" "awareness"; }
  .bento-card.wide { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .cf-track { --cf-w: min(62vw, 240px); }
  .cf-nav { width: 40px; height: 40px; margin-top: -20px; }
  .rd-body { grid-template-columns: minmax(0, 1fr); }
  .rd-art { min-height: 0; aspect-ratio: 2 / 1; }
  .rd-actions { margin-left: 0; width: 100%; }
  .rd-actions .btn { width: 100%; }
  .pass-row { grid-template-columns: minmax(0, 1fr); }
  .founder-note { margin-left: 0; }
  .class-deck { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 118px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .class-deck::-webkit-scrollbar { display: none; }
  .deck-card { scroll-snap-align: start; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .avatar-btn .name { display: none; }
  .avatar-btn { padding: 3px; }
  dialog.sheet { inset: auto 0 0 0; width: 100vw; height: auto; max-height: 92dvh; border-radius: 26px 26px 0 0; border-left: 0; border-top: 1px solid var(--edge); animation-name: sheet-up; }
  .sheet-inner { padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
  @keyframes sheet-up { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (max-width: 560px) {
  .brand span { font-size: 19px; }
  .topbar .btn-discord .label-long { display: none; }
  .hero-title { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .hero-visual { min-height: 360px; }
  .ov-queue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-queue .ov-q:nth-child(3) { display: none; }
  .ov-bars { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .trust-item { font-size: .75rem; }
  .segmented .amt { font-size: 18px; }
  .acct-head > .btn { margin-left: 0; }
  .cta-actions, .cta-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rune-ring, .ember-canvas, .keycap-halo, .hero-halo { display: none; }
  .overlay { transform: none; }
  .prio-cursor { animation: none; }
}
