/* ==========================================================================
   Goldens Cards — site styles
   Fonts are self-hosted (no Google Fonts requests → no IP leak to third parties).
   ========================================================================== */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter/inter-latin-wght-normal.woff2) format("woff2-variations");
  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: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  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: "Cinzel"; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/cinzel/cinzel-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Cinzel"; font-style: normal; font-display: swap; font-weight: 700; src: url(/fonts/cinzel/cinzel-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Cinzel"; font-style: normal; font-display: swap; font-weight: 800; src: url(/fonts/cinzel/cinzel-latin-800-normal.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #09090d;
  --bg-2: #0e0e15;
  --surface: #14141c;
  --surface-2: #1b1b26;
  --surface-3: #232331;
  --line: #2a2a39;
  --line-2: #3a3a4c;
  --text: #f4f2eb;
  --muted: #aba79d;
  --dim: #7a776f;
  --gold: #ffd93b;
  --gold-hi: #ffe600;
  --gold-deep: #d9a000;
  --gold-grad: linear-gradient(135deg, #fff1a6 0%, #ffd93b 35%, #f2b705 70%, #c98a00 100%);
  --danger: #ff6b5b;
  --ok: #4ade80;
  --info: #7cc4ff;
  --accent: var(--gold);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image: radial-gradient(1200px 600px at 80% -10%, rgba(255, 217, 59, .06), transparent 60%),
                    radial-gradient(900px 500px at -10% 30%, rgba(124, 90, 255, .05), transparent 60%);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1, h2, .display { font-family: var(--display); font-weight: 700; letter-spacing: .01em; }
p { margin: 0 0 1em; }
::selection { background: var(--gold); color: #111; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: #111; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  --b: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .82em 1.35em; border-radius: 12px; border: 1px solid var(--b); background: transparent;
  color: var(--text); font: 600 .95rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s, border-color .2s, box-shadow .2s, color .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: var(--gold); color: var(--text); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--gold-grad); color: #141108; border-color: transparent; box-shadow: 0 10px 30px -10px rgba(255, 200, 40, .55); }
.btn-gold:hover { color: #141108; box-shadow: 0 14px 40px -10px rgba(255, 200, 40, .75); }
.btn-ghost { background: rgba(255, 255, 255, .03); }
.btn-danger { background: transparent; border-color: rgba(255, 107, 91, .6); color: #ffb4aa; }
.btn-danger:hover { background: rgba(255, 107, 91, .12); border-color: var(--danger); color: #fff; }
.btn-danger-solid { background: var(--danger); border-color: var(--danger); color: #1a0705; }
.btn-danger-solid:hover { color: #1a0705; filter: brightness(1.1); }
.btn-sm { padding: .6em 1em; font-size: .85rem; border-radius: 10px; }
.btn-lg { padding: 1em 1.7em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; text-align: left; }
.linklike:hover { color: var(--gold); }

/* Header ------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  background: rgba(9, 9, 13, .72); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { filter: drop-shadow(0 4px 14px rgba(255, 230, 0, .25)); }
.brand-word { font-family: var(--display); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 1.02rem; }
.brand-word span { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav > a:not(.btn) { color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 10px; font-weight: 500; font-size: .95rem; transition: color .2s, background .2s; }
.site-nav > a:not(.btn):hover, .site-nav > a.active { color: var(--text); background: rgba(255, 255, 255, .05); }
.site-nav > a.active { box-shadow: inset 0 -2px 0 var(--gold); }
.nav-sep { width: 1px; height: 22px; background: var(--line); margin: 0 8px; }
.nav-account { display: inline-flex !important; align-items: center; gap: 8px; }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-grad); color: #141108; font-weight: 800; font-size: .8rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 11px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .site-nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 16px 24px 24px;
    background: rgba(12, 12, 18, .98); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s ease; max-height: calc(100vh - 72px); overflow: auto; }
  .site-nav.open { transform: translateY(0); }
  .site-nav > a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; }
  .site-nav .btn { margin-top: 8px; }
  .nav-sep { width: 100%; height: 1px; margin: 8px 0; }
}

/* Flash & alerts ---------------------------------------------------------- */
.flash { padding: 14px 0; font-weight: 500; border-bottom: 1px solid var(--line); }
.flash-success { background: rgba(74, 222, 128, .1); color: #b8f5cc; }
.flash-error { background: rgba(255, 107, 91, .12); color: #ffc2ba; }
.flash-info { background: rgba(124, 196, 255, .1); color: #cbe7ff; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); margin: 0 0 18px; }
.alert-error { border-color: rgba(255, 107, 91, .45); background: rgba(255, 107, 91, .08); color: #ffc9c2; }
.alert-success { border-color: rgba(74, 222, 128, .4); background: rgba(74, 222, 128, .07); color: #c4f7d6; }
.alert-info { border-color: rgba(124, 196, 255, .35); background: rgba(124, 196, 255, .06); color: #d3ebff; }
.alert-gold { border-color: rgba(255, 217, 59, .4); background: rgba(255, 217, 59, .06); }
.alert p:last-child { margin: 0; }

/* Sections ---------------------------------------------------------------- */
section { position: relative; }
.section { padding: 110px 0; }
.section-sm { padding: 70px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; font-weight: 700; color: var(--gold); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.page-hero { padding: 90px 0 40px; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.page-hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 700px; }

/* Home hero --------------------------------------------------------------- */
.hero { min-height: calc(100vh - 72px); display: flex; align-items: center; padding: 60px 0 90px; overflow: hidden; isolation: isolate; }
.hero canvas.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 200px; background: linear-gradient(transparent, var(--bg)); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); line-height: 1.02; margin-bottom: 26px; }
.hero h1 em { font-style: normal; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; margin-top: 48px; flex-wrap: wrap; color: var(--dim); font-size: .9rem; }
.hero-meta strong { display: block; font-family: var(--display); color: var(--text); font-size: 1.5rem; }

/* Fanned card stack (the "Goldens Cards") */
.card-stack { position: relative; height: 560px; perspective: 1400px; }
.tcard { position: absolute; left: 50%; top: 50%; width: 300px; height: 440px; margin: -220px 0 0 -150px; border-radius: 22px; overflow: hidden;
  background: var(--surface-2); border: 1px solid rgba(255, 217, 59, .35); box-shadow: var(--shadow), 0 0 0 6px rgba(255, 255, 255, .02);
  transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; text-decoration: none; color: var(--text); }
.tcard img { width: 100%; height: 100%; object-fit: cover; }
.tcard::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255, 217, 59, .45); border-radius: 15px; z-index: 2; pointer-events: none; }
.tcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5, 5, 10, .92)); z-index: 1; }
.tcard .tcard-body { position: absolute; left: 26px; right: 26px; bottom: 26px; z-index: 3; }
.tcard .tcard-body small { color: var(--gold); text-transform: uppercase; letter-spacing: .2em; font-size: .68rem; font-weight: 700; }
.tcard .tcard-body h3 { font-family: var(--display); font-size: 1.35rem; margin: 6px 0 0; }
.tcard .shine { position: absolute; inset: 0; z-index: 4; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 240, 180, .18), transparent 40%); pointer-events: none; }
.tcard-1 { transform: rotate(-12deg) translateX(-120px) translateY(18px); }
.tcard-2 { transform: rotate(7deg) translateX(110px) translateY(-6px); z-index: 2; }
.tcard-emblem { transform: rotate(-2deg) translateY(-18px); z-index: 3; display: grid; place-items: center; background:
  radial-gradient(circle at 50% 35%, rgba(255, 217, 59, .18), transparent 60%), linear-gradient(160deg, #1c1c26, #0e0e14); }
.tcard-emblem::after { display: none; }
.tcard-emblem img { width: 62%; height: auto; filter: drop-shadow(0 18px 40px rgba(255, 220, 0, .35)); }
.tcard-emblem .corner { position: absolute; font-family: var(--display); color: var(--gold); font-weight: 800; font-size: 1.1rem; z-index: 3; line-height: 1; text-align: center; }
.tcard-emblem .corner.tl { top: 24px; left: 24px; }
.tcard-emblem .corner.br { bottom: 24px; right: 24px; transform: rotate(180deg); }
.tcard-emblem .label { position: absolute; bottom: 64px; left: 0; right: 0; text-align: center; font-family: var(--display); letter-spacing: .3em; font-size: .78rem; color: var(--muted); }
.card-stack:hover .tcard-1 { transform: rotate(-18deg) translateX(-190px) translateY(26px); }
.card-stack:hover .tcard-2 { transform: rotate(14deg) translateX(185px) translateY(10px); }
.card-stack .tcard:hover { box-shadow: var(--shadow), 0 0 50px -10px rgba(255, 217, 59, .5); }

@media (max-width: 980px) {
  .hero { min-height: auto; padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .card-stack { height: 470px; order: -1; transform: scale(.82); margin: -30px 0 -40px; }
}
@media (max-width: 520px) {
  .card-stack { transform: scale(.66); margin: -80px -40px -80px; height: 470px; }
}

/* Game cards -------------------------------------------------------------- */
.accent-gold { --accent: #ffd93b; }
.accent-violet { --accent: #b78cff; }
.accent-frost { --accent: #8fd3ff; }
.accent-ember { --accent: #ff8a4c; }
.accent-jade { --accent: #5fe0a8; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 28px; }
.game-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--text); transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s; }
.game-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--accent) 50%, transparent); color: var(--text); }
.game-card .media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.game-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.game-card:hover .media img { transform: scale(1.05); }
.game-card .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(20, 20, 28, .9)); }
.game-card .body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game-card h3 { font-family: var(--display); font-size: 1.6rem; margin: 0; }
.game-card h3 span { display: block; font-size: 1rem; color: var(--accent); margin-top: 4px; letter-spacing: .06em; }
.game-card p { color: var(--muted); margin: 0; }
.game-card .more { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--accent); }
.game-card .more::after { content: " →"; transition: margin .2s; }
.game-card:hover .more::after { margin-left: 6px; }
.status { position: absolute; top: 16px; left: 16px; z-index: 2; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(10, 10, 15, .75); border: 1px solid var(--line-2); color: var(--text); backdrop-filter: blur(8px); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-released { color: var(--ok); }
.badge-in_development { color: var(--gold); }
.badge-concept { color: var(--info); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: .78rem; padding: 4px 10px; border-radius: 8px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }

/* Game detail ------------------------------------------------------------- */
.game-hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; padding: 0 0 70px; isolation: isolate; overflow: hidden; }
.game-hero .bg { position: absolute; inset: 0; z-index: -2; }
.game-hero .bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.game-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9, 9, 13, .2) 0%, rgba(9, 9, 13, .55) 55%, var(--bg) 100%), linear-gradient(90deg, rgba(9, 9, 13, .85), transparent 70%); }
.game-hero h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); margin-bottom: .15em; text-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.game-hero .subtitle { font-family: var(--display); color: var(--accent); font-size: clamp(1.2rem, 2.6vw, 2rem); letter-spacing: .08em; margin-bottom: 18px; }
.game-hero .tagline { font-size: 1.2rem; max-width: 640px; color: #e5e1d6; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: -10px 0 70px; }
.meta-grid div { background: var(--surface); padding: 20px 22px; }
.meta-grid dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; color: var(--dim); margin-bottom: 6px; }
.meta-grid dd { margin: 0; font-weight: 600; }
.game-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; }
.prose { font-size: 1.08rem; color: #d8d4ca; }
.prose p { margin-bottom: 1.2em; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; color: var(--text); }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; color: var(--text); font-family: var(--font); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); background: var(--surface); font-weight: 600; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 1.5em; }
.prose .table-wrap table { margin: 0; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 70px; }
.feature { padding: 26px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); position: relative; overflow: hidden; }
.feature::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--accent), transparent); }
.feature h3 { font-family: var(--display); font-size: 1.15rem; color: var(--accent); }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }
.side-card { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: sticky; top: 100px; }
.side-card h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .16em; color: var(--dim); font-family: var(--font); }
.side-card .btn { margin-top: 10px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); margin-top: 50px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-consent { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; background: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .85)), var(--poster, none) center / cover; }
.video-consent p { max-width: 460px; color: var(--muted); font-size: .92rem; }
.video-consent .play { width: 76px; height: 76px; border-radius: 50%; background: var(--gold-grad); display: grid; place-items: center; margin: 0 auto 18px; border: 0; cursor: pointer; box-shadow: 0 10px 40px rgba(255, 210, 50, .45); }
.video-consent .play::before { content: ""; border-left: 22px solid #141108; border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }
@media (max-width: 900px) { .game-layout { grid-template-columns: 1fr; } .side-card { position: static; } }

/* Studio / pillars -------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.pillar { padding: 34px 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .3s; }
.pillar:hover { border-color: rgba(255, 217, 59, .45); transform: translateY(-4px); }
.pillar .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 217, 59, .1); border: 1px solid rgba(255, 217, 59, .3); margin-bottom: 22px; color: var(--gold); }
.pillar .icon svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 1.2rem; }
.pillar p { color: var(--muted); margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.trust-item { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .02); border: 1px solid var(--line); }
.trust-item svg { flex: none; width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }
.trust-item strong { display: block; }
.trust-item span { color: var(--muted); font-size: .9rem; }

/* CTA band ---------------------------------------------------------------- */
.cta-band { border-radius: 28px; padding: 64px; background: radial-gradient(600px 300px at 90% 0%, rgba(255, 217, 59, .18), transparent 70%), linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(255, 217, 59, .25); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 40px 28px; } }

/* Forms ------------------------------------------------------------------- */
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label, .label { font-weight: 600; font-size: .92rem; }
.field .hint { color: var(--dim); font-size: .84rem; }
.req { color: var(--gold); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], input[type=tel], select, textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background .2s; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 217, 59, .15); background: var(--surface); }
input[aria-invalid=true], textarea[aria-invalid=true], select[aria-invalid=true] { border-color: var(--danger); }
.error-text { color: #ffaaa0; font-size: .86rem; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; color: #d6d2c8; cursor: pointer; }
.check input { appearance: none; flex: none; width: 21px; height: 21px; margin-top: 2px; border: 1.5px solid var(--line-2); border-radius: 6px; background: var(--bg-2); display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s; }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { content: ""; width: 6px; height: 11px; border: solid #141108; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check.invalid input { border-color: var(--danger); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 76px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; font-size: .78rem; cursor: pointer; }
.pw-meter { height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; margin-top: 4px; }
.pw-meter span { display: block; height: 100%; width: 0; background: var(--danger); transition: width .25s, background .25s; }
.code-input { letter-spacing: .5em; font-size: 1.5rem !important; text-align: center; font-family: ui-monospace, Consolas, monospace !important; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.panel-tight { padding: 24px; }
.panel + .panel { margin-top: 22px; }
.panel h2 { font-size: 1.45rem; }
.panel h3 { font-size: 1.1rem; }
.panel-danger { border-color: rgba(255, 107, 91, .35); background: linear-gradient(180deg, rgba(255, 107, 91, .05), var(--surface)); }

/* Auth -------------------------------------------------------------------- */
.auth-wrap { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 60px; isolation: isolate; }
.auth-art img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9, 9, 13, .1), rgba(9, 9, 13, .9)); }
.auth-art blockquote { margin: 0; font-family: var(--display); font-size: 1.6rem; line-height: 1.35; max-width: 460px; }
.auth-art blockquote small { display: block; font-family: var(--font); font-size: .9rem; color: var(--gold); margin-top: 14px; letter-spacing: .1em; text-transform: uppercase; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 60px 24px; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card h1 { font-size: 2.2rem; }
.auth-card .sub { color: var(--muted); margin-bottom: 30px; }
.auth-foot { margin-top: 26px; color: var(--muted); font-size: .94rem; text-align: center; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--dim); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin: 8px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.security-notes { display: grid; gap: 8px; margin-top: 26px; padding: 18px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .02); border: 1px dashed var(--line-2); font-size: .85rem; color: var(--muted); }
.security-notes div { display: flex; gap: 10px; }
.security-notes div::before { content: "✓"; color: var(--gold); font-weight: 700; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* Account ----------------------------------------------------------------- */
.account-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 36px; padding: 50px 0 100px; align-items: start; }
.account-nav { position: sticky; top: 100px; display: grid; gap: 4px; }
.account-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 500; }
.account-nav a svg { width: 18px; height: 18px; opacity: .8; }
.account-nav a:hover { background: var(--surface); color: var(--text); }
.account-nav a.active { background: var(--surface-2); color: var(--text); box-shadow: inset 3px 0 0 var(--gold); }
.account-nav form { margin-top: 12px; }
.id-card { position: relative; padding: 30px; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 217, 59, .35);
  background: radial-gradient(500px 200px at 100% 0%, rgba(255, 217, 59, .16), transparent 70%), linear-gradient(135deg, #1e1d26, #13131a); }
.id-card .row { display: flex; flex-wrap: wrap; gap: 28px 50px; margin-top: 22px; }
.id-card .k { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.id-card .v { font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; color: var(--text); word-break: break-all; }
.id-card .v.big { font-size: 1.6rem; letter-spacing: .12em; color: var(--gold); }
.id-card img.emb { position: absolute; right: 24px; top: 22px; width: 64px; opacity: .9; }
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 12px 20px; margin: 0; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 10px; } }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tool { padding: 22px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.tool h3 { font-size: 1.02rem; margin: 0; }
.tool p { color: var(--muted); margin: 0; font-size: .92rem; flex: 1; }
.tool .art { font-size: .72rem; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
details.disclose { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
details.disclose + details.disclose { margin-top: 12px; }
details.disclose summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.disclose summary::-webkit-details-marker { display: none; }
details.disclose summary::after { content: "+"; font-size: 1.3rem; color: var(--gold); transition: transform .2s; }
details.disclose[open] summary::after { transform: rotate(45deg); }
details.disclose .inner { padding: 0 22px 22px; }
.qr { background: #fff; padding: 12px; border-radius: 14px; width: 220px; }
@media (max-width: 900px) { .account-wrap { grid-template-columns: 1fr; } .account-nav { position: static; grid-auto-flow: column; overflow-x: auto; } .account-nav a { white-space: nowrap; } .account-nav form { margin: 0; } }

/* Tables ------------------------------------------------------------------ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); font-weight: 600; background: var(--bg-2); white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(255, 255, 255, .015); }
table.data a { text-decoration: none; }
.st { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; border: 1px solid currentColor; }
.st-pending_verification { color: var(--dim); }
.st-verified, .st-in_progress { color: var(--gold); }
.st-completed { color: var(--ok); }
.st-rejected, .st-cancelled { color: var(--danger); }
.due-overdue { color: var(--danger); font-weight: 700; }
.due-soon { color: var(--gold); font-weight: 600; }

/* Privacy center ---------------------------------------------------------- */
.rights-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.right-option { position: relative; }
.right-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.right-option .box { height: 100%; padding: 18px 18px 18px 52px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2); transition: border-color .2s, background .2s, box-shadow .2s; position: relative; }
.right-option .box::before { content: ""; position: absolute; left: 18px; top: 20px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); transition: border .2s; }
.right-option input:checked + .box { border-color: var(--gold); background: rgba(255, 217, 59, .06); box-shadow: 0 0 0 3px rgba(255, 217, 59, .12); }
.right-option input:checked + .box::before { border: 6px solid var(--gold); }
.right-option input:focus-visible + .box { outline: 2px solid var(--gold); outline-offset: 2px; }
.right-option strong { display: block; }
.right-option small { color: var(--muted); }
.right-option .art { font-size: .7rem; color: var(--gold); font-weight: 700; letter-spacing: .1em; }
.steps { counter-reset: s; display: grid; gap: 16px; }
.steps li { list-style: none; counter-increment: s; position: relative; padding-left: 52px; color: var(--muted); }
.steps li strong { color: var(--text); display: block; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 217, 59, .1); border: 1px solid rgba(255, 217, 59, .4); color: var(--gold); font-weight: 700; }
.steps { padding: 0; margin: 0; }
.pc-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 960px) { .pc-grid { grid-template-columns: 1fr; } }
.timeline-bar { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; margin: 10px 0 6px; }
.timeline-bar span { display: block; height: 100%; background: var(--gold-grad); }

/* Legal ------------------------------------------------------------------- */
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 60px; padding-bottom: 100px; }
.toc { position: sticky; top: 100px; align-self: start; font-size: .9rem; }
.toc strong { display: block; color: var(--dim); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; margin-bottom: 12px; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 6px 0 6px 14px; border-left: 1px solid var(--line); }
.toc a:hover { color: var(--gold); border-color: var(--gold); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--dim); font-size: .9rem; margin-bottom: 30px; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } .toc { position: static; } }

/* Footer ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 70px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); max-width: 340px; margin-top: 18px; font-size: .94rem; }
.footer-h { font-family: var(--font); font-size: .74rem; text-transform: uppercase; letter-spacing: .18em; color: var(--dim); margin-bottom: 16px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul a, .site-footer .linklike { color: var(--muted); text-decoration: none; font-size: .94rem; }
.site-footer ul a:hover { color: var(--gold); }
.socials { display: flex; gap: 16px; }
.footer-legal { border-top: 1px solid var(--line); margin-top: 50px; padding-top: 24px; color: var(--dim); font-size: .82rem; }
.footer-legal p { margin: 0 0 6px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Consent ----------------------------------------------------------------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; display: flex; justify-content: center; animation: rise .45s cubic-bezier(.2, .8, .2, 1); }
.consent-inner { max-width: 1100px; width: 100%; display: flex; gap: 28px; align-items: center; padding: 22px 26px; border-radius: 20px;
  background: rgba(20, 20, 28, .97); border: 1px solid rgba(255, 217, 59, .3); box-shadow: 0 30px 80px rgba(0, 0, 0, .7); backdrop-filter: blur(12px); }
.consent h2 { font-family: var(--font); font-size: 1.02rem; margin: 0 0 4px; }
.consent p { margin: 0; color: var(--muted); font-size: .9rem; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }
@media (max-width: 860px) { .consent-inner { flex-direction: column; align-items: stretch; } .consent-actions .btn { flex: 1; } }
.consent-dialog { border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface); color: var(--text); padding: 0; max-width: 560px; width: calc(100% - 32px); box-shadow: 0 40px 120px rgba(0, 0, 0, .8); }
.consent-dialog::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(4px); }
.consent-form { padding: 30px; }
.consent-form h2 { font-family: var(--font); font-size: 1.3rem; }
.toggle-row { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); cursor: pointer; }
.toggle-row p { margin: 2px 0 0; color: var(--muted); font-size: .86rem; }
.pill { font-size: .74rem; padding: 4px 10px; border-radius: 999px; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.switch { appearance: none; flex: none; width: 46px; height: 26px; border-radius: 26px; background: var(--line-2); position: relative; cursor: pointer; transition: background .2s; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch:checked { background: var(--gold); }
.switch:checked::after { transform: translateX(20px); }
.consent-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }

/* Admin ------------------------------------------------------------------- */
.admin-body { background: var(--bg); }
.admin-wrap { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background: var(--bg-2); border-right: 1px solid var(--line); padding: 24px 16px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.admin-side .brand { margin: 0 8px 28px; }
.admin-side nav { display: grid; gap: 2px; }
.admin-side nav a { color: var(--muted); text-decoration: none; padding: 10px 14px; border-radius: 10px; font-size: .93rem; display: flex; justify-content: space-between; }
.admin-side nav a:hover { background: var(--surface); color: var(--text); }
.admin-side nav a.active { background: var(--surface-2); color: var(--text); box-shadow: inset 3px 0 0 var(--gold); }
.admin-side .group { font-size: .68rem; text-transform: uppercase; letter-spacing: .18em; color: var(--dim); margin: 20px 14px 6px; }
.admin-main { padding: 34px 40px 80px; min-width: 0; }
.admin-main h1 { font-family: var(--font); font-size: 1.7rem; font-weight: 700; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat-card { padding: 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.stat-card .n { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.stat-card .l { color: var(--muted); font-size: .86rem; }
.stat-card.warn { border-color: rgba(255, 217, 59, .45); }
.stat-card.bad { border-color: rgba(255, 107, 91, .55); }
.stat-card.bad .n { color: var(--danger); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.filters a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: .86rem; }
.filters a.active { background: var(--gold); color: #141108; border-color: var(--gold); font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline { display: inline; }
pre.meta { white-space: pre-wrap; word-break: break-all; font-size: .78rem; color: var(--dim); margin: 0; }
@media (max-width: 1000px) { .admin-wrap { grid-template-columns: 1fr; } .admin-side { position: static; height: auto; } .admin-main { padding: 24px 18px; } .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Message pages ----------------------------------------------------------- */
.message-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 100px 0; }
.message-page .emblem { width: 92px; margin: 0 auto 28px; filter: drop-shadow(0 12px 30px rgba(255, 220, 0, .3)); }
.message-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.message-page p { color: var(--muted); max-width: 580px; margin: 0 auto 28px; font-size: 1.08rem; }

/* Motion ------------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.card-stack .tcard-emblem { animation: floaty 6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Utilities (no inline styles — CSP forbids them) */
.justify-center { justify-content: center; }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 18px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 44px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 18px; } .mb-3 { margin-bottom: 28px; }
.gap-col { display: grid; gap: 22px; }
.w-auto { width: auto; }
/* Let grid children shrink so wide tables scroll inside their wrapper instead of widening the page */
.legal-layout > *, .game-layout > *, .pc-grid > *, .account-wrap > *, .split > *, .hero-grid > * { min-width: 0; }

/* Privacy center fixes ------------------------------------------------------ */
/* .box is a <span>; without display:block the cards break into inline fragments. */
.right-option .box { display: block; }
.right-option .art { display: block; margin-bottom: 2px; }
.right-option small { display: block; margin-top: 4px; line-height: 1.45; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field > legend { padding: 0; }
.steps li b { color: var(--text); }
