/* ==========================================================================
   Dented Crown Games — site styles
   Studio tokens (black / crown yellow / orange / cream) live on :root.
   The All in Debt! page swaps in its own casino tokens via .theme-aid.
   ========================================================================== */

@font-face {
  font-family: "Archivo Black";
  src: url("../fonts/archivo-black.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #101010;
  --bg-2: #1b1b1b;
  --surface: #252321;
  --brand: #ffc72c;
  --accent: #ff8a24;
  --text: #f7f2e8;
  --text-2: #b6b1a9;
  --border: #39342e;

  --font-display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 24px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: #101010; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.5rem, 7vw, 5.25rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 3.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: .01em; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brand); color: #101010; padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--text-2); max-width: 62ch; }
.muted { color: var(--text-2); }
.text-brand { color: var(--brand); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #101010;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.6em;
  border: 2px solid var(--btn-bg);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 700 .95rem/1 var(--font-body);
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 85%, black);
  transition: transform .18s var(--ease-spring), box-shadow .18s ease, background .18s ease;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: 0 6px 0 color-mix(in srgb, var(--accent) 85%, black); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 85%, black); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--text);
  border-color: var(--border); box-shadow: none;
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); box-shadow: none; }
.btn svg { width: 1.1em; height: 1.1em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 44px; }
.brand span { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.brand span b { color: var(--brand); font-weight: 400; }
.brand:hover { color: var(--text); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav a {
  display: block; padding: 10px 14px; border-radius: 999px;
  color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--text); background: var(--bg-2); }
.nav a[aria-current="page"] { color: var(--brand); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-2); color: var(--text); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  margin-inline: auto; position: relative; transition: transform .2s ease, background .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; }
  .nav a { font-size: 1.15rem; padding: 14px 12px; }
}

/* ---------- Crown (wobble easter egg) ---------- */
.crown { cursor: pointer; transform-origin: 50% 85%; -webkit-tap-highlight-color: transparent; }
.crown:hover { animation: crown-nudge .6s var(--ease-spring); }
.crown.is-bonked { animation: crown-bonk .7s var(--ease-spring); }
@keyframes crown-nudge {
  0% { transform: rotate(0); }
  30% { transform: rotate(-6deg) scale(1.04); }
  60% { transform: rotate(3deg); }
  100% { transform: rotate(0); }
}
@keyframes crown-bonk {
  0% { transform: translateY(0) rotate(0) scale(1); }
  20% { transform: translateY(6px) rotate(8deg) scale(1.06, .9); }
  45% { transform: translateY(-10px) rotate(-7deg) scale(.96, 1.06); }
  70% { transform: translateY(2px) rotate(3deg); }
  100% { transform: translateY(0) rotate(0) scale(1); }
}

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 80;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-left: 4px solid var(--brand);
  padding: 14px 20px; border-radius: 12px;
  font-weight: 600; box-shadow: 0 18px 40px rgba(0,0,0,.5);
  transition: opacity .25s ease, transform .25s var(--ease-spring);
  max-width: calc(100% - 32px);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.section--alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }

/* ---------- Studio hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - var(--header-h));
  display: grid; align-items: center;
  padding-block: clamp(40px, 8vw, 96px);
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(50% 45% at 50% 38%, rgba(255,199,44,.16), transparent 70%),
    radial-gradient(35% 30% at 80% 80%, rgba(255,138,36,.10), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: radial-gradient(rgba(247,242,232,.09) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(70% 60% at 50% 45%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000 30%, transparent 80%);
}
.hero__inner { text-align: center; display: grid; justify-items: center; }
.hero__logo { width: min(560px, 86vw); margin-bottom: clamp(24px, 4vw, 40px); filter: drop-shadow(0 18px 40px rgba(0,0,0,.6)); }
.hero h1 { font-size: clamp(2.1rem, 6.4vw, 4.6rem); margin-bottom: .35em; }
.hero h1 .dent { display: inline-block; color: var(--brand); transform: rotate(-2deg) translateY(.03em); }
.hero .lead { margin-inline: auto; margin-bottom: 2rem; }
.hero .btn-row { justify-content: center; }
.scroll-cue {
  margin-top: clamp(40px, 7vw, 72px);
  color: var(--text-2); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-cue::after {
  content: ""; width: 2px; height: 36px; border-radius: 2px;
  background: linear-gradient(var(--brand), transparent);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0%,100% { transform: scaleY(.5); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

/* ---------- Featured game card (studio pages) ---------- */
.feature-game {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(219,61,202,.22), transparent 60%),
    radial-gradient(70% 90% at 0% 100%, rgba(230,62,59,.25), transparent 60%),
    linear-gradient(160deg, #281425, #140d12 70%);
  border: 1px solid #3a2233;
}
.feature-game .eyebrow { color: #f2b84b; }
.feature-game h2 { margin-bottom: .3em; }
.feature-game p { color: #d9cbbb; }
.feature-game .btn { --btn-bg: #f2b84b; box-shadow: 0 4px 0 #8e5b12; }
.feature-game .btn:hover { box-shadow: 0 6px 0 #8e5b12; }
@media (max-width: 860px) { .feature-game { grid-template-columns: 1fr; } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.tags li {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--text);
}
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(242,184,75,.12); color: #f2b84b; border: 1px solid rgba(242,184,75,.35);
}
.status-pill::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 0 currentColor; animation: pulse 2s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242,184,75,.6); } 70% { box-shadow: 0 0 0 8px rgba(242,184,75,0); } 100% { box-shadow: 0 0 0 0 rgba(242,184,75,0); } }

/* ---------- Typographic game logo (stand-in until the real logo file arrives) ---------- */
.aid-logo {
  display: inline-grid; justify-items: center; position: relative;
  font-family: var(--font-display); text-transform: uppercase; line-height: .9;
  transform: rotate(-3deg);
  padding: .3em .2em .45em;
  user-select: none;
}
.aid-logo .l1 { color: #fff2d7; font-size: 1em; letter-spacing: .04em; position: relative; }
.aid-logo .l2 { color: #e63e3b; font-size: 1.55em; letter-spacing: .01em; position: relative; text-shadow: 0 .05em 0 #711b28; }
.aid-logo .l2::after {
  content: ""; position: absolute; left: -4%; right: -6%; bottom: -.12em; height: .14em;
  background: #e63e3b; border-radius: 40% 60% 55% 45% / 60% 50% 50% 40%;
  transform: rotate(-2deg); opacity: .9;
}
.aid-logo .mini-crown { position: absolute; top: -.32em; left: 50%; width: .9em; transform: translateX(-10%) rotate(8deg); }
.feature-game .aid-logo { font-size: clamp(3rem, 9vw, 6.2rem); justify-self: center; }

/* ---------- Generic cards / grids ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 24px); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  transition: border-color .2s ease, transform .25s var(--ease-spring);
}
.section--alt .card { background: var(--bg); }
.card:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); transform: translateY(-3px); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--text-2); margin: 0; }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand);
  margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.crown-stage { display: grid; place-items: center; position: relative; aspect-ratio: 1 / .8; }
.crown-stage::before {
  content: ""; position: absolute; inset: 10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,199,44,.18), transparent 65%);
}
.crown-stage img { width: min(380px, 70%); position: relative; }
.crown-stage figcaption { position: absolute; bottom: 4%; font-size: .85rem; color: var(--text-2); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(56px, 9vw, 112px) clamp(32px, 5vw, 56px); position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; inset: auto -10% 0; height: 140%; z-index: -1;
  background: radial-gradient(45% 50% at 20% 40%, rgba(255,199,44,.10), transparent 70%);
}
.page-hero h1 { max-width: 16ch; }

/* ---------- Prose (legal etc.) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-top: 2.2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.notice {
  border: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-radius: var(--radius); padding: 18px 20px; color: var(--text);
  margin-bottom: 2rem;
}
.notice strong { color: var(--accent); }

/* ---------- Contact ---------- */
.contact-card { display: grid; gap: 10px; }
.contact-card .label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.soon {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2);
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 56px 36px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer-brand img { width: 160px; margin-bottom: 14px; }
.footer-brand p { color: var(--text-2); max-width: 36ch; font-size: .95rem; }
.footer-col h2 { font-family: var(--font-body); font-weight: 700; font-size: .78rem; letter-spacing: .16em; color: var(--text-2); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: .85rem; color: var(--text-2);
}

/* ==========================================================================
   All in Debt! game page — casino theme
   ========================================================================== */
.theme-aid {
  --bg: #140d12;
  --bg-2: #1d1219;
  --surface: #281425;
  --brand: #f2b84b;
  --accent: #e63e3b;
  --text: #fff2d7;
  --text-2: #c9b8a6;
  --border: #3a2233;
  --velvet: #711b28;
  --neon: #db3dca;
}
.theme-aid .btn { box-shadow: 0 4px 0 #8e5b12; }
.theme-aid .btn:hover { box-shadow: 0 6px 0 #8e5b12; }
.theme-aid .btn--ghost, .theme-aid .btn--ghost:hover { box-shadow: none; }

.aid-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: calc(100svh - var(--header-h));
  display: grid; align-items: center; text-align: center;
  padding-block: clamp(56px, 9vw, 110px);
}
.aid-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(40% 50% at 50% 30%, rgba(242,184,75,.20), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(113,27,40,.75), transparent 70%),
    radial-gradient(40% 60% at 100% 100%, rgba(113,27,40,.75), transparent 70%),
    radial-gradient(30% 40% at 85% 10%, rgba(219,61,202,.18), transparent 70%),
    var(--bg);
}
/* velvet curtain folds on both edges */
.aid-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.35) 0 14px, rgba(255,255,255,.03) 14px 30px) left / 9vw 100% no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 16px, rgba(0,0,0,.35) 16px 30px) right / 9vw 100% no-repeat;
  mask-image: linear-gradient(90deg, #000 0 9vw, transparent 9vw calc(100% - 9vw), #000 calc(100% - 9vw));
  -webkit-mask-image: linear-gradient(90deg, #000 0 9vw, transparent 9vw calc(100% - 9vw), #000 calc(100% - 9vw));
  opacity: .9;
}
.aid-hero .aid-logo { font-size: clamp(3.2rem, 12vw, 8rem); margin-bottom: clamp(16px, 3vw, 28px); }
.aid-hero h1 { font-size: clamp(1.6rem, 4.6vw, 3.2rem); color: var(--text); }
.aid-hero .lead { margin-inline: auto; margin-bottom: 2rem; }
.aid-hero .btn-row { justify-content: center; }
.aid-hero .status-pill { margin-bottom: clamp(36px, 5vw, 56px); }

/* Debt meter (decorative) */
.debt-board {
  position: relative; display: grid; gap: 18px; justify-items: center; text-align: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #1d1219, #140d12);
  border: 2px solid #5a2a2e;
  box-shadow: 0 0 0 6px #1d1219, 0 0 0 8px rgba(242,184,75,.35), 0 0 60px rgba(219,61,202,.15) inset;
}
.debt-board .label { font-size: .8rem; letter-spacing: .2em; font-weight: 700; text-transform: uppercase; color: var(--text-2); }
.debt-amount {
  font-family: var(--font-display); font-size: clamp(2.6rem, 9vw, 6rem); line-height: 1;
  color: #e63e3b; text-shadow: 0 0 24px rgba(230,62,59,.45);
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.debt-bar { width: min(100%, 520px); height: 14px; border-radius: 999px; background: #2a1820; overflow: hidden; border: 1px solid #3a2233; }
.debt-bar span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, #f2b84b, #e63e3b); border-radius: inherit; }
.debt-board small { color: var(--text-2); font-size: .82rem; }

/* Gameplay loop */
.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: step; }
.loop li {
  counter-increment: step; position: relative;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 18px; text-align: center; font-weight: 700;
}
.loop li::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 6px;
  font-family: var(--font-display); color: var(--brand); font-size: 1.4rem;
}
.loop li span { display: block; font-weight: 400; color: var(--text-2); font-size: .9rem; margin-top: 4px; }
@media (max-width: 900px) { .loop { grid-template-columns: repeat(2, 1fr); } .loop li:last-child { grid-column: 1 / -1; } }

/* Characters */
.char-card { text-align: center; overflow: hidden; }
.char-card .portrait {
  height: 220px; display: grid; place-items: end center; margin: -30px -30px 22px;
  background: radial-gradient(60% 70% at 50% 100%, rgba(242,184,75,.18), transparent 70%), #1a1016;
  border-bottom: 1px solid var(--border);
}
.char-card .role { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }

/* Simple CSS figure silhouettes — placeholders until real character art is supplied */
.fig { position: relative; display: grid; justify-items: center; }
.fig .head { background: #0b0b0b; position: relative; }
.fig .body { background: #0b0b0b; border-radius: 40% 40% 0 0 / 30% 30% 0 0; }
.fig--viktor .head { width: 74px; height: 74px; clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%); border-radius: 6px; }
.fig--viktor .head::after { content: ""; position: absolute; left: 14%; right: 14%; top: 34%; height: 16px; background: #1a1a1a; border: 2px solid #f2b84b; border-radius: 6px; }
.fig--viktor .body { width: 104px; height: 110px; margin-top: 4px; box-shadow: inset 0 0 0 0 transparent; background: linear-gradient(90deg, #0b0b0b 46%, #fff2d7 46% 54%, #0b0b0b 54%); }
.fig--bruno .head { width: 112px; height: 70px; border-radius: 8px; }
.fig--bruno .head::before, .fig--bruno .head::after { content: ""; position: absolute; top: 30%; width: 22px; height: 6px; background: #3a3a3a; border-radius: 3px; }
.fig--bruno .head::before { left: 20%; transform: rotate(12deg); }
.fig--bruno .head::after { right: 20%; transform: rotate(-12deg); }
.fig--bruno .body { width: 168px; height: 112px; margin-top: 4px; background: radial-gradient(circle at 50% 40%, #f2b84b 0 9px, transparent 10px), radial-gradient(40% 25% at 50% 18%, transparent 60%, #f2b84b 61% 68%, transparent 69%), #121212; }
.fig--you .head { width: 70px; height: 56px; border-radius: 14px; background: #e63e3b; }
.fig--you .body { width: 86px; height: 82px; margin-top: 4px; background: #0b0b0b; }
.fig--you .body::after { content: "?"; position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font-family: var(--font-display); color: #f2b84b; font-size: 1.6rem; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); }
.section--alt .faq details { background: var(--bg); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; position: relative;
  font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); color: var(--brand); font-size: 1.4rem; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--text-2); }

.fact-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 0; }
.fact-list div { background: var(--bg-2); padding: 20px 22px; }
.fact-list dt { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin-bottom: 4px; }
.fact-list dd { margin: 0; font-weight: 700; }

@media (max-width: 760px) { .fact-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .fact-list { grid-template-columns: 1fr; } }

.disclaimer { font-size: .85rem; color: var(--text-2); max-width: 70ch; }

/* ---------- 404 ---------- */
.error-page { min-height: calc(100svh - var(--header-h) - 200px); display: grid; place-items: center; text-align: center; padding-block: 80px; }
.error-page .code { font-family: var(--font-display); font-size: clamp(5rem, 22vw, 12rem); line-height: 1; color: var(--accent); text-shadow: 0 0 40px rgba(255,138,36,.35); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

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