/* Lakeside Games — site.css v4 (2026-07-20 "de-vibe" pass)
   v3 "The Survey" identity kept (teal ink, brass key, engraved plate framing),
   but the telling-a-story ornament is stripped: no turbulence terrain, no
   graticule, no rotated scrapbook shots, no inner inset borders, no reveal-on-
   scroll. One border per surface, motion only on hover, system line-height
   rhythm. Every v3 selector is preserved so sub-pages keep inheriting. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-2019, U+201C-201D, U+2026;
}

:root {
  /* ── ink grounds (teal-biased, never pure black) ── */
  --ground:   #0b1216;
  --ground-2: #0e1a20;
  --plate:    #12212a;
  --plate-2:  #172c37;
  /* engraved rules */
  --line:   rgba(210,225,232,0.10);
  --line-2: rgba(210,225,232,0.20);
  /* ink text */
  --text:   #eef4f6;
  --text-2: rgba(224,235,240,0.64);
  --text-3: rgba(224,235,240,0.40);
  /* keys: warm brass primary, chalk-teal secondary */
  --brass:  #e6b24c;
  --water:  #46b6c2;
  /* per-game plate colors, pulled toward ink */
  --ahd:      #e0a63e;
  --transit:  #37b79a;
  --election: #df6455;
  --century:  #6486c0;
  --rialto:   #a17bd0;
  /* ── legacy aliases (v1/v2 selectors reference these) ── */
  --bg: var(--ground);
  --bg-2: var(--ground-2);
  --surface: var(--plate);
  --surface-2: var(--plate-2);
  --border: var(--line);
  --border-bright: var(--line-2);
  --radius: 14px;
  --shadow: 0 26px 50px -22px rgba(0,0,0,0.72);
  /* type */
  --font-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: clip; }
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background-color: var(--ground);
  background-image:
    radial-gradient(135% 90% at 50% -8%, rgba(70,182,194,0.05), transparent 55%),
    linear-gradient(180deg, var(--ground-2), rgba(11,18,22,0) 560px);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.62;
  min-height: 100vh;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, .brand span { font-family: var(--font-display); }
::selection { background: rgba(230,178,76,0.26); }

/* ── Reveal on scroll (quiet) ── */
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
/* ── Nav ── */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(11,18,22,0.88); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); border-bottom: 1px solid var(--line); }
nav { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.06rem; letter-spacing: -0.2px; text-decoration: none; color: var(--text); }
.brand img { width: 30px; height: 30px; }
.brand span { white-space: nowrap; font-family: var(--font-display); letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--text-2); font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 1px; white-space: nowrap;
  padding: 7px 10px; border-radius: 8px; border: 1px solid transparent; transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--plate); border-color: var(--line); }
.nav-links a.active { color: var(--brass); background: var(--plate); border-color: var(--line); }
@media (max-width: 1024px) { .nav-links { display: none; } }
.btn-patreon { background: var(--plate); border: 1px solid var(--line-2); color: var(--text-2) !important; }
.btn-patreon:hover { border-color: #ff424d; color: var(--text) !important; }
.nav-signin { background: var(--brass); color: #0b1216 !important; border: 1px solid var(--brass); border-radius: 8px; font-weight: 650 !important; margin-left: 6px; box-shadow: 0 8px 20px -12px rgba(0,0,0,0.6); }
.nav-signin:hover { filter: brightness(1.08); transform: translateY(-1px); background: var(--brass) !important; border-color: var(--brass); }
@media (min-width: 1025px) { .nav-links a.nav-secondary { display: none; } }

/* ── Mobile nav ── */
.nav-toggle { display: none; appearance: none; background: var(--plate); border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 10px; cursor: pointer; color: var(--text); }
.nav-toggle:hover { border-color: var(--brass); }
.nav-toggle svg { display: block; }
@media (max-width: 1024px) {
  .topbar nav { position: relative; }
  .nav-toggle { display: flex; align-items: center; }
  .nav-links { display: none; position: absolute; top: 100%; left: -24px; right: -24px; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 20px 16px; background: var(--ground-2); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); z-index: 30; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 12px; font-size: 0.78rem; }
}
/* ── Home hero ── */
.hero {
  position: relative; padding: 92px 0 30px;
  display: grid; grid-template-columns: minmax(340px, 46fr) minmax(320px, 54fr);
  gap: 48px; align-items: center;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 800; letter-spacing: -1.2px; line-height: 1.06;
  margin-bottom: 16px; text-wrap: balance;
}
.hero-copy p { color: var(--text-2); font-size: clamp(0.95rem, 1.6vw, 1.02rem); max-width: 50ch; }
.hero-copy h1 em { font-style: normal; color: var(--brass); }
.hero-meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 0; }
.hero-meta span {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-2);
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--plate-2), var(--plate));
  padding: 6px 13px; border-radius: var(--radius); display: inline-flex; align-items: center; gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.hero-meta .dot { width: 7px; height: 7px; border-radius: 1px; }
.hero-meta .dot.gold { background: var(--ahd); box-shadow: none; }
.hero-meta .dot.teal { background: var(--transit); box-shadow: none; }
.hero-meta .dot.coral { background: var(--election); box-shadow: none; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* hero collage — single stacked plate, not a scrapbook */
.hero-art { position: relative; min-height: 380px; }
.hero-art .shot {
  position: absolute; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), var(--shadow);
  background: linear-gradient(180deg, var(--plate-2), var(--plate));
}
.hero-art .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-art .shot .tag {
  position: absolute; left: 10px; bottom: 10px;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; padding: 4px 10px; border-radius: 4px;
  background: var(--ground); border: 1px solid var(--line);
}
.shot-a { width: 74%; aspect-ratio: 16/10; top: 0; left: 0; z-index: 3; }
.shot-a .tag { color: var(--ahd); bottom: auto; top: 10px; }
.shot-b { width: 58%; aspect-ratio: 16/10; top: 26%; right: 0; z-index: 2; }
.shot-b .tag { color: var(--transit); }
.shot-c { width: 58%; aspect-ratio: 16/10; bottom: 0; left: 10%; z-index: 4; }
.shot-c .tag { color: var(--election); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 52px; gap: 36px; }
  .hero-art { min-height: 0; height: clamp(260px, 58vw, 400px); }
}

/* buttons */
.btn {
  text-decoration: none; font-size: 0.9rem; font-weight: 650; padding: 11px 22px; border-radius: 10px;
  border: 1px solid var(--line); transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn.primary {
  background: var(--accent, var(--brass)); border-color: var(--accent, var(--brass)); color: #0b1216;
  box-shadow: 0 8px 20px -12px rgba(0,0,0,0.6);
}
.btn.primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { border-color: var(--brass); transform: translateY(-1px); }
/* ── Game showcase sections (replaces tabs) ── */
.game-strip { position: relative; padding: 72px 0 64px; border-top: 1px solid var(--line); }
.game-strip::before {
  content:""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent, var(--brass)) 3%, transparent), transparent 40%);
  opacity: 0.5;
}
.g-ahd { --accent: var(--ahd); }
.g-mf  { --accent: var(--transit); }
.g-el  { --accent: var(--election); }
.g-grand  { --accent: var(--century); }
.g-rialto { --accent: var(--rialto); }
.game-grid { display: grid; grid-template-columns: minmax(320px, 5fr) minmax(300px, 6fr); gap: 48px; align-items: center; position: relative; }
.game-grid.flip .game-copy { order: 2; }
.game-grid.flip .panel-media { order: 1; }
@media (max-width: 880px) {
  .game-grid { grid-template-columns: 1fr; gap: 30px; }
  .game-grid.flip .game-copy { order: 1; }
  .game-grid.flip .panel-media { order: 2; }
}
.kicker { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent, var(--brass)); margin-bottom: 10px; display: flex; align-items: center; gap: 9px; }
.kicker::before { content:""; width: 22px; height: 1px; background: var(--accent, var(--brass)); }
.game-copy h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -0.8px; margin-bottom: 14px; color: var(--text); }
.blurb p { color: var(--text-2); font-size: 0.97rem; margin-bottom: 12px; max-width: 58ch; }
.facts { list-style: none; margin: 14px 0 24px; }
.facts li { font-size: 0.89rem; color: var(--text-2); padding: 5px 0 5px 22px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 9px; height: 1px; background: var(--accent, var(--brass)); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* media */
/* media cluster (shared with old panels) */
.panel-media { display: flex; flex-direction: column; gap: 12px; }
.panel-media .main-shot {
  background: linear-gradient(180deg, var(--plate-2), var(--plate));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.panel-media .main-shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; display: block; }
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.thumbs.single { grid-template-columns: 1fr; }
.thumbs figure {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--plate-2), var(--plate));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
}
.thumbs img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; display: block; }
.thumbs.single img { aspect-ratio: 32 / 10; }
.thumbs figcaption {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-3);
  padding: 7px 12px;
  border-top: 1px solid var(--line);
}

/* legacy tabs */
/* ── Legacy tabs/panels (kept for any page still using them) ── */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-top: 34px; flex-wrap: wrap; }
.tab {
  appearance: none; background: none; border: none; cursor: pointer;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  padding: 11px 18px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: flex; align-items: center; gap: 9px;
}
.tab .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.t-ahd { --accent: var(--ahd); } .t-mf { --accent: var(--transit); } .t-el { --accent: var(--election); }
.panel { display: none; padding: 34px 0 8px; }
.panel.active { display: grid; grid-template-columns: minmax(320px, 5fr) minmax(300px, 6fr); gap: 36px; align-items: start; }
@media (max-width: 860px) { .panel.active { grid-template-columns: 1fr; } }
.panel h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; color: var(--text); }
#panel-ahd { --accent: var(--ahd); } #panel-mf { --accent: var(--transit); } #panel-el { --accent: var(--election); }
/* ── Numbers band ── */
.numbers { padding: 76px 0 20px; }
.numbers h3 { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--brass); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.numbers h3 .live { width: 10px; height: 10px; border-radius: 0; background: transparent; border: 1px solid var(--brass); box-shadow: none; position: relative; flex: none; }
.numbers h3 .live::after { content: ""; position: absolute; inset: 2px; background: var(--brass); }
.numbers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; background: linear-gradient(180deg, var(--plate-2), var(--plate)); border: 1px solid var(--line); border-radius: var(--radius); position: relative; box-shadow: var(--shadow); overflow: hidden; }
.num-card {
  background: transparent;
  border: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; padding: 20px 22px;
  transition: background 0.2s;
}
.num-card:hover { background: rgba(255,255,255,0.025); }
.num-card .n { font-family: var(--font-mono); font-size: 2.1rem; font-weight: 700; letter-spacing: -0.5px; color: var(--brass); font-variant-numeric: tabular-nums; line-height: 1.15; }
.num-card .l { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-3); margin-top: 6px; }

/* ── Studio band / contact ── */
.studio-band {
  margin: 70px 0 10px; padding: 44px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--plate-2), var(--plate));
  box-shadow: var(--shadow);
  display: grid; grid-template-columns: minmax(300px, 3fr) minmax(240px, 2fr); gap: 36px; align-items: center;
}
@media (max-width: 780px) { .studio-band { grid-template-columns: 1fr; padding: 30px 24px; } }
.studio-band h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -0.6px; margin-bottom: 10px; }
.studio-band p { color: var(--text-2); font-size: 0.95rem; max-width: 52ch; }
.contact { padding: 64px 0 26px; max-width: 620px; }
.contact h2 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.4px; margin-bottom: 8px; }
.contact p { color: var(--text-2); margin-bottom: 22px; }
.methods { display: flex; flex-wrap: wrap; gap: 12px; }
.method { padding: 11px 20px; border-radius: 10px; background: var(--plate); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); text-decoration: none; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-2); transition: border-color 0.2s, transform 0.15s; }
.method:hover { border-color: var(--brass); color: var(--text); transform: translateY(-1px); }

/* ── Footer ── */
footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 40px 0 48px; color: var(--text-3); font-size: 0.85rem; background: var(--ground-2); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--brass); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-family: var(--font-display); margin-bottom: 10px; }
.foot-brand img { width: 26px; height: 26px; }
.foot-grid p { max-width: 30ch; font-size: 0.84rem; }
.foot-grid h4 { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--brass); margin-bottom: 12px; }
.foot-grid ul { list-style: none; }
.foot-grid li { padding: 3.5px 0; }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.2px; }
/* ── Sub-page components ── */
.crumbs { padding: 26px 0 0; font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-3); }
.crumbs a { text-decoration: none; color: var(--text-2); }
.crumbs a:hover { color: var(--brass); }
.page-hero { padding: 56px 0 30px; max-width: 780px; position: relative; }
.page-hero .kicker { margin-bottom: 12px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 1.2px; font-size: 0.72rem; color: var(--accent, var(--brass)); }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -1.2px; line-height: 1.05; margin-bottom: 16px; text-wrap: balance; }
.page-hero p { color: var(--text-2); font-size: 1.05rem; max-width: 62ch; }
.page-glow { position: absolute; top: 0; left: 0; right: 0; height: 480px; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, var(--plate) 0%, transparent 100%); border-bottom: 1px solid var(--line); }
.prose { max-width: 660px; padding: 8px 0 20px; }
.prose h2 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.3px; margin: 36px 0 10px; }
.prose p { color: var(--text-2); font-size: 0.95rem; margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 0; }
.prose li { font-size: 0.9rem; color: var(--text-2); padding: 5px 0 5px 20px; position: relative; list-style: none; }
.prose li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 8px; height: 2px; background: var(--accent, var(--brass)); }
.hero-shot { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--plate); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), var(--shadow); margin: 26px 0; }
.hero-shot::before { content: ""; position: absolute; top: 8px; left: 8px; width: 14px; height: 14px; border-left: 1px solid var(--line-2); border-top: 1px solid var(--line-2); pointer-events: none; z-index: 2; }
.hero-shot::after { content: ""; position: absolute; bottom: 8px; right: 8px; width: 14px; height: 14px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); pointer-events: none; z-index: 2; }
.hero-shot img { width: 100%; display: block; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; padding: 16px 0 24px; }
.gallery figure { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, var(--plate-2), var(--plate)); box-shadow: var(--shadow); }
.gallery figure:hover { border-color: var(--line-2); }
.gallery img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; display: block; }
.gallery figcaption { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-3); padding: 10px 14px; border-top: 1px solid var(--line); }
.faq { max-width: 660px; padding: 6px 0 30px; }
.faq details { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--plate-2), var(--plate)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), var(--shadow); margin-bottom: 10px; }
.faq details[open] { border-color: var(--brass); }
.faq summary { cursor: pointer; padding: 13px 18px; font-size: 0.92rem; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 13px; font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-3); }
.faq details[open] summary::after { content: "−"; color: var(--brass); }
.faq details p { padding: 0 18px 14px; color: var(--text-2); font-size: 0.9rem; }
.news-item { border-bottom: 1px solid var(--line); padding: 26px 0; max-width: 680px; }
.news-item:last-child { border-bottom: none; }
.news-item time { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.news-item h2 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.2px; margin: 6px 0 8px; }
.news-item p { color: var(--text-2); font-size: 0.92rem; }
.news-item a { color: var(--brass); }
.news-item a:hover { color: var(--text); }
.game-cta-row { display: flex; gap: 12px; flex-wrap: wrap; padding: 8px 0 10px; }
/* ── Store ── */
.store-note { border: 1px solid var(--line); border-left: 3px solid var(--election); border-radius: var(--radius); background: var(--plate); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); padding: 16px 20px; margin: 4px 0 34px; max-width: 720px; }
.store-note p { color: var(--text-2); font-size: 0.9rem; margin: 0; }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; margin: 6px 0 18px; }
.pack-card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--plate-2), var(--plate));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), var(--shadow);
  display: flex; flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.pack-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pack-art { position: relative; aspect-ratio: 21/9; overflow: hidden; }
.pack-art img { width: 100%; height: 100%; object-fit: cover; }
.pack-art::after { content:""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(11,18,22,0.55) 82%); }
.pack-art .count {
  position: absolute; left: 12px; bottom: 10px; z-index: 2;
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px; padding: 4px 11px; border-radius: 4px;
  background: var(--ground); border: 1px solid var(--line); color: var(--accent, var(--election));
}
.pack-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; position: relative; z-index: 1; }
.pack-body h2 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 750; letter-spacing: -0.3px; margin-bottom: 7px; }
.pack-body p { color: var(--text-2); font-size: 0.88rem; line-height: 1.55; margin-bottom: 18px; }
.pack-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.pack-foot .price { font-family: var(--font-mono); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.pack-foot .price small { font-family: var(--font-mono); font-size: 0.64rem; font-weight: 600; color: var(--text-3); display: block; letter-spacing: 1px; text-transform: uppercase; }
.buy-btn {
  text-decoration: none; font-size: 0.88rem; font-weight: 700; padding: 10px 24px; border-radius: 10px;
  background: var(--accent, var(--brass)); border: 1px solid var(--accent, var(--brass)); color: #0b1216;
  transition: filter 0.2s, transform 0.15s;
  box-shadow: 0 8px 20px -12px rgba(0,0,0,0.6);
}
.buy-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
/* featured full-width pack */
.pack-card.featured { grid-column: 1 / -1; flex-direction: row; align-items: stretch; border-color: color-mix(in srgb, var(--election) 34%, var(--line)); }
.pack-card.featured .pack-art { aspect-ratio: auto; flex: 1 1 46%; min-height: 210px; }
.pack-card.featured .pack-body { flex: 1 1 54%; padding: 26px 30px; justify-content: center; }
.pack-card.featured h2 { font-size: 1.5rem; }
.pack-card.featured p { font-size: 0.93rem; max-width: 52ch; }
.flag { position: absolute; top: 14px; right: 14px; z-index: 3; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; padding: 5px 12px; border-radius: 4px; background: var(--election); color: #0b1216; }
@media (max-width: 720px) { .pack-card.featured { flex-direction: column; } .pack-card.featured .pack-art { aspect-ratio: 21/9; } }
/* legacy store rows kept */
.packs { max-width: 720px; }
.pack { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.pack:first-child { border-top: none; }

.tipjar { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin: 44px 0 8px; padding: 30px 32px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--plate-2), var(--plate)); box-shadow: var(--shadow); }
.tipjar h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; letter-spacing: -0.4px; margin-bottom: 8px; }
.tipjar p { color: var(--text-2); font-size: 0.9rem; max-width: 52ch; }
.tip-btn { flex-shrink: 0; text-decoration: none; font-size: 0.9rem; font-weight: 700; padding: 12px 26px; border-radius: 10px;
  background: var(--water); color: #06222f; border: 1px solid var(--water); transition: filter 0.2s, transform 0.15s;
  box-shadow: 0 8px 20px -12px rgba(0,0,0,0.6); position: relative; z-index: 1; }
.tip-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
@media (max-width: 560px) { .tipjar { flex-direction: column; align-items: flex-start; } }

/* ── Store: per-game sections ── */
.store-game-section { margin: 44px 0 8px; padding-top: 36px; border-top: 1px solid var(--line); }
.store-game-section:first-of-type { border-top: none; padding-top: 0; margin-top: 20px; }
.store-game-head { max-width: 640px; margin-bottom: 22px; }
.store-game-head h2 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 800; letter-spacing: -0.4px; margin-bottom: 8px; }
.store-game-head p { color: var(--text-2); font-size: 0.92rem; }

/* ── Store: subscription card ── */
.sub-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--plate-2), var(--plate)); box-shadow: var(--shadow); padding: 28px 30px 30px; }
.sub-head h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 8px; }
.sub-head p { color: var(--text-2); font-size: 0.88rem; max-width: 60ch; margin-bottom: 20px; }
.sub-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 18px; position: relative; z-index: 1; }
.sub-tier { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; background: var(--plate); box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); }
.sub-tier-plus { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.sub-flag { position: absolute; top: -10px; right: 16px; background: var(--brass); color: #0b1216; font-family: var(--font-mono); font-size: 0.64rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 10px; border-radius: 4px; }
.sub-perks { list-style: none; margin: 2px 0 16px; padding: 0; flex: 1; }
.sub-perks li { position: relative; padding: 5px 0 5px 24px; font-size: 0.86rem; color: var(--text-2); line-height: 1.4; }
.sub-perks li + li { border-top: 1px solid var(--line); }
.sub-perks li::before { content: "\2713"; position: absolute; left: 2px; color: var(--brass); font-weight: 800; }
.sub-buy.buy-btn { align-self: stretch; text-align: center; }
.sub-tier h3 { font-family: var(--font-display); font-size: 1.02rem; font-weight: 750; letter-spacing: -0.2px; margin-bottom: 6px; }
.sub-price { font-family: var(--font-mono); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.4px; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.sub-price small { font-size: 0.64rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; }
.sub-tier p { color: var(--text-2); font-size: 0.84rem; margin-bottom: 14px; }
.sub-buy { display: none; }
.sub-card.sub-ready .sub-buy { display: inline-block; }
.sub-card.sub-ready .sub-note { display: none; }
.sub-note { border: 1px solid var(--line-2); border-left: 3px solid var(--brass); border-radius: 10px; background: var(--plate); padding: 12px 16px; font-size: 0.88rem; color: var(--text-2); margin-bottom: 12px; position: relative; z-index: 1; }
.sub-note a { color: var(--brass); }
.sub-fine { font-size: 0.8rem; color: var(--text-3); max-width: 62ch; position: relative; z-index: 1; }
.sub-fine a { color: var(--water); }

/* ═══════════ GAMES: spotlight stage + clickable card rail ═══════════ */
.games { padding: 40px 0 8px; border-top: 1px solid var(--line); margin-top: 30px; }
.games-head { margin-bottom: 20px; }
.games-title { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 800; letter-spacing: -0.6px; }
.games-sub { color: var(--text-3); font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.2px; margin-top: 4px; }

/* ── Spotlight stage ── */
.spotlight {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--plate-2), var(--plate));
  box-shadow: var(--shadow); overflow: hidden;
  min-height: 320px;
}
/* exit: sink + fade; enter handled by .enter / .enter-active on the fresh grid */
.spot-grid { display: grid; grid-template-columns: minmax(300px, 5fr) minmax(280px, 6fr); gap: 0; align-items: stretch; position: relative;
  transition: opacity 0.16s ease, transform 0.16s ease; }
.spot-grid.leaving { opacity: 0; transform: translateY(10px); }
.spot-grid.enter { opacity: 0; transform: translateY(16px); }
.spot-grid.enter-active { opacity: 1; transform: translateY(0);
  transition: opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1), transform 0.34s cubic-bezier(0.22, 1, 0.36, 1); }
/* stagger: media panel trails the copy slightly */
.spot-grid.enter-active .spot-media { animation: spot-media-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both; }
@keyframes spot-media-in {
  from { opacity: 0; transform: translateY(20px) scale(1.015); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.spot-copy { padding: 36px 34px 34px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
.spot-copy h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 800; letter-spacing: -0.8px; margin: 4px 0 12px; color: var(--text); }
.spot-lede { color: var(--text-2); font-size: 0.96rem; max-width: 52ch; margin-bottom: 20px; }
.spot-media { position: relative; min-height: 260px; }
.spot-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.spot-media::before { content:""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--plate) 0%, transparent 22%); pointer-events: none; }
/* accent wash per game */
.spot-grid::after { content:""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent, var(--brass)) 9%, transparent), transparent 55%); }
.spot-grid { position: relative; }
@media (max-width: 860px) {
  .spot-grid { grid-template-columns: 1fr; }
  .spot-media { min-height: 200px; order: -1; }
  .spot-media::before { background: linear-gradient(180deg, transparent 60%, var(--plate) 100%); }
  .spot-copy { padding: 24px 22px 26px; }
}

/* ── Card rail ── */
.card-rail {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 14px;
}
@media (max-width: 900px) { .card-rail { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .card-rail { grid-template-columns: repeat(2, 1fr); } }
.game-card {
  appearance: none; text-align: left; cursor: pointer; padding: 0;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, var(--plate-2), var(--plate));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.18s ease, box-shadow 0.28s ease;
  position: relative;
}
.game-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.game-card .card-art { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.game-card .card-art img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform 0.3s ease, opacity 0.2s; opacity: 0.82; }
.game-card:hover .card-art img { transform: scale(1.04); opacity: 1; }
.game-card .card-art::after { content:""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,18,22,0.5)); }
.card-meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.card-name { font-family: var(--font-display); font-weight: 750; font-size: 0.92rem; letter-spacing: -0.2px; color: var(--text); }
.card-tag { font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-3); }
/* active card: brought forward + accent ring */
.game-card.active {
  border-color: var(--accent, var(--brass));
  box-shadow: 0 0 0 1px var(--accent, var(--brass)), 0 22px 36px -16px rgba(0,0,0,0.75);
  transform: translateY(-7px) scale(1.02);
}
.game-card.active .card-art img { opacity: 1; }
.game-card.active .card-tag { color: var(--accent, var(--brass)); }
.game-card.active::after {
  content: "●"; position: absolute; top: 8px; right: 10px; z-index: 2;
  color: var(--accent, var(--brass)); font-size: 0.6rem;
  text-shadow: 0 0 8px rgba(0,0,0,0.8);
}
.game-card:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* ═══════════ v5 (2026-07-21) — one visual system, every page ═══════════
   The homepage "atlas figure" atmosphere and plate framing, promoted from
   index.html's inline layer into the shared sheet so every page inherits it.
   Static, CSS-only, same-origin. */

/* ── Atmosphere: soft ink forms + film grain behind everything ──
   Two fixed, pointer-transparent pseudo-layers at z-index -1. They paint
   above the canvas background (body's background propagates to the root)
   and below all content. Muted brand inks only: brass, water, century
   blue, a whisper of election coral. No motion. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(680px 560px at 88% 2%,  rgba(230,178,76,0.13),  transparent 72%),
    radial-gradient(740px 620px at 4% 90%,  rgba(70,182,194,0.09),  transparent 72%),
    radial-gradient(760px 640px at 96% 72%, rgba(100,134,192,0.07), transparent 72%),
    radial-gradient(640px 560px at 14% 34%, rgba(223,100,85,0.045), transparent 72%);
  background-repeat: no-repeat;
}
/* film grain on top of the ink (::after paints above ::before) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ── The plate: one framed figure — one border, one shadow, mono caption bar.
   (Moved from the homepage inline layer; shared by game-page heroes.) ── */
.rd-plate {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--plate-2), var(--plate));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), var(--shadow);
}
.rd-plate-media { position: relative; overflow: hidden; }
.rd-plate img { width: 100%; height: auto; display: block; }
.rd-plate-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap;
  padding: 12px 16px;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-3);
  border-bottom: 1px solid var(--line);
}
.rd-plate-bar .rd-fig { color: var(--text-2); }
/* plate used as a sub-page hero figure */
.page-plate { margin: 28px 0 14px; }

/* ── Crop frame: show a chosen window of a screenshot, undistorted.
   Set on the media box: --iw = natural image width, --cx/--cy = window
   origin, --cw/--ch = window size (all in source pixels). The box takes
   the window's aspect ratio; the image is scaled uniformly and offset so
   exactly that window is visible (used to crop in-game UI chrome). ── */
.rd-crop { position: relative; overflow: hidden; aspect-ratio: calc(var(--cw) / var(--ch)); }
.rd-crop img {
  position: absolute;
  width: calc(100% * var(--iw) / var(--cw)); max-width: none; height: auto;
  left: calc(-100% * var(--cx) / var(--cw));
  top: calc(-100% * var(--cy) / var(--ch));
  aspect-ratio: auto; object-fit: fill;
}

/* ── Content pages: prose sits on a subtle plate surface ── */
.prose-plate {
  max-width: 764px; padding: 14px 44px 30px; margin: 10px 0 26px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--plate-2), var(--plate));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), var(--shadow);
}
@media (max-width: 640px) { .prose-plate { padding: 8px 22px 22px; } }

/* ── News: entries as plate cards on the shared ground ── */
.news-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--plate-2), var(--plate));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), var(--shadow);
  padding: 24px 28px; margin: 0 0 16px; max-width: 720px;
}
.news-item:last-child { border-bottom: 1px solid var(--line); }
