/* JustGamble.com — 2026 portal shell
   Black field, champagne gold wordmark, felt green + card red accents.
   Banner ads are first-class units, not leftover GIFs. */

:root {
  --ink: #070708;
  --ink-2: #0e0f12;
  --ink-3: #16181d;
  --ink-4: #1e2128;
  --gold: #d4af37;
  --gold-2: #f0d78c;
  --gold-3: #8a6d1f;
  --gold-4: #c9a227;
  --champagne: #e8d5a3;
  --felt: #0c3d28;
  --felt-2: #147a4a;
  --felt-3: #1aa05e;
  --red: #c41e3a;
  --red-2: #e63946;
  --ivory: #f4efe2;
  --paper: #d9d0bc;
  --muted: #9b9586;
  --muted-2: #6e6a60;
  --line: rgba(212, 175, 55, 0.28);
  --line-strong: rgba(212, 175, 55, 0.55);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius: 10px;
  --max: 1180px;
  --header-h: 4.6rem;
  --font-display: "Cinzel", Palatino, "Palatino Linotype", serif;
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-num: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ivory);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(212, 175, 55, 0.07), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(12, 61, 40, 0.45), transparent 50%),
    var(--ink);
  background-attachment: fixed;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: #fff6d0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #111;
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* ——— Top rail ——— */
.toprail {
  background: #050506;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.toprail .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  min-height: 2.1rem;
  flex-wrap: wrap;
  padding-block: 0.35rem;
}
.toprail a { color: var(--paper); text-decoration: none; }
.toprail a:hover { color: var(--gold-2); }
.toprail .age {
  color: var(--gold);
  font-weight: 700;
}
.toprail .rg { color: var(--felt-3); }

/* ——— Header / wordmark ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 8, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(0,0,0,.5); }

.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
  padding-block: 0.45rem;
}

.brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1;
  min-width: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #fff6d0 0%, #f0d78c 28%, #d4af37 52%, #8a6d1f 72%, #f3e0a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 1px 0 #000)
    drop-shadow(0 0 10px rgba(212, 175, 55, 0.28));
  white-space: nowrap;
}
.brand-tag {
  margin-top: 0.28rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--champagne);
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gold-2);
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
}
.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--gold);
  margin: 4px 0;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.1rem;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}
.primary-nav a,
.primary-nav summary {
  display: block;
  padding: 0.45rem 0.62rem;
  color: var(--paper);
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 6px;
  list-style: none;
  cursor: pointer;
}
.primary-nav a:hover,
.primary-nav summary:hover,
.primary-nav a[aria-current="page"] {
  color: var(--gold-2);
  background: rgba(212, 175, 55, 0.08);
}
.primary-nav details { position: relative; }
.primary-nav details ul {
  position: absolute;
  right: 0;
  top: calc(100% - 2px);
  min-width: 14rem;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem;
  flex-direction: column;
  box-shadow: var(--shadow);
  z-index: 20;
}
.primary-nav details ul a { text-transform: none; letter-spacing: 0; font-weight: 500; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(180deg, #f0d78c, #c9a227);
  color: #1a1406 !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  border-radius: 6px;
  border: 1px solid #8a6d1f;
  box-shadow: 0 0 0 1px rgba(255,246,208,0.25) inset;
  white-space: nowrap;
}
.header-cta:hover { filter: brightness(1.08); color: #111 !important; }

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: clamp(28rem, 68vh, 42rem);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}
.hero img.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7,7,8,0.25) 0%, rgba(7,7,8,0.2) 40%, rgba(7,7,8,0.92) 100%),
    linear-gradient(90deg, rgba(7,7,8,0.55), transparent 55%);
}
.hero-copy {
  padding: 3.5rem 0 2.4rem;
  max-width: 42rem;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 0.8rem;
}
.kicker::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--gold);
}
.hero h1,
.page-hero h1,
.interior-head h1 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.12;
  margin: 0 0 0.8rem;
  color: #fffaf0;
  letter-spacing: -0.02em;
}
.lede {
  font-size: 1.12rem;
  color: var(--paper);
  max-width: 40rem;
  margin: 0 0 1.4rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.15rem;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  border: 1px solid transparent;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(180deg, #f0d78c, #c9a227);
  color: #1a1406;
  border-color: #8a6d1f;
}
.btn-gold:hover { color: #111; filter: brightness(1.06); }
.btn-ghost {
  background: rgba(0,0,0,0.35);
  color: var(--gold-2);
  border-color: var(--line-strong);
}
.btn-ghost:hover { color: #fff6d0; background: rgba(212,175,55,0.1); }
.btn-felt {
  background: var(--felt);
  color: #e8ffe8;
  border-color: var(--felt-2);
}
.btn-felt:hover { background: #115c38; color: #fff; }

/* ——— Sections ——— */
[id] { scroll-margin-top: calc(var(--header-h) + 0.75rem); }

.section { padding: 3.2rem 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}
.section-head h2,
.prose h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 500;
  margin: 0;
  color: #fffaf0;
}
.section-head p,
.subhead {
  color: var(--muted);
  margin: 0.35rem 0 0;
  max-width: 40rem;
}
.rule {
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent 80%);
  border: 0;
  margin: 0 0 1.2rem;
}

/* ——— Player lanes ——— */
.lanes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.lane {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 18rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-3);
  text-decoration: none;
  color: inherit;
  isolation: isolate;
}
.lane img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transform: scale(1.04);
  transition: transform .5s ease;
}
.lane:hover img { transform: scale(1.1); }
.lane::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,7,8,0.1) 10%, rgba(7,7,8,0.88) 78%);
  z-index: -1;
}
.lane-body {
  margin-top: auto;
  padding: 1.15rem 1.15rem 1.25rem;
}
.lane .num {
  font-family: var(--font-num);
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.16em;
}
.lane h3 {
  font-family: var(--font-head);
  font-size: 1.45rem;
  margin: 0.2rem 0 0.35rem;
  color: #fffaf0;
  font-weight: 500;
}
.lane p { margin: 0; color: var(--paper); font-size: 0.95rem; }
.lane .go {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--gold-2);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ——— Ads as first-class content ——— */
.ad-band {
  background: var(--ink-2);
  border-block: 1px solid var(--line);
  padding: 1.6rem 0 1.8rem;
}
.ad-band h2 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9rem;
  font-weight: 600;
}
.ad-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
  justify-content: center;
}
.ad-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ad-tile img {
  width: 125px;
  height: 125px;
  object-fit: contain;
  background: #000;
  border: 1px solid var(--line-strong);
  box-shadow:
    0 0 0 4px #0a0a0b,
    0 0 0 5px var(--gold-3),
    0 12px 24px rgba(0,0,0,.45);
}
.ad-tile:hover img { border-color: var(--gold-2); }
.ad-leader {
  display: flex;
  justify-content: center;
  padding: 1.2rem 0;
}
.ad-leader a {
  display: inline-block;
  border: 1px solid var(--line);
  background: #000;
  padding: 6px;
  box-shadow: 0 0 0 1px var(--gold-3);
}
.ad-leader img {
  width: min(468px, 100%);
  height: auto;
}

/* ——— Cards / directory / casinos ——— */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }

.card {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.card h3 {
  font-family: var(--font-head);
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: #fffaf0;
}
.card p { margin: 0 0 0.7rem; color: var(--paper); }
.card ul { margin: 0; padding-left: 1.1rem; color: var(--paper); }
.card li { margin: 0.25rem 0; }
.card.felt-edge { border-left: 3px solid var(--felt-2); }
.card.gold-edge { border-left: 3px solid var(--gold); }
.card.red-edge { border-left: 3px solid var(--red); }

.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem 0.1rem;
  text-decoration: none;
  color: var(--ivory);
}
.link-list a:hover { color: var(--gold-2); }
.link-list .src {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.pill {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gold-2);
}
.pill.usa { border-color: var(--felt-2); color: var(--felt-3); }
.pill.world { border-color: var(--red); color: #ff8a9a; }
.pill.tool { border-color: var(--gold-3); }

/* Casino roster */
.casino {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
}
.casino:hover { border-color: var(--gold); color: inherit; }
.casino h3 { margin: 0; font-family: var(--font-head); font-size: 1.2rem; font-weight: 500; color: #fffaf0; }
.casino p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.92rem; }
.casino .go { color: var(--gold); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }

/* Tools */
.tool-panel {
  background:
    radial-gradient(500px 200px at 100% 0%, rgba(212,175,55,0.08), transparent 50%),
    var(--ink-3);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 1.3rem 1.3rem 1.4rem;
}
.tool-panel h2 { margin-top: 0; }
.tool-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: end; margin: 0.8rem 0; }
.field { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; color: var(--muted); }
.field input, .field select, .field button, .actions button {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  color: var(--ivory);
  min-width: 5rem;
}
.balls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 3.2rem;
  align-items: center;
}
.ball {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-num);
  font-weight: 700;
  background: radial-gradient(circle at 30% 30%, #fff6d0, #d4af37 55%, #8a6d1f);
  color: #1a1406;
  box-shadow: 0 4px 10px rgba(0,0,0,.4);
}

/* Blackjack trainer */
.bj-table {
  background:
    radial-gradient(circle at 50% 20%, #147a4a, #0c3d28 55%, #071910);
  border: 8px solid #2a2114;
  outline: 2px solid var(--gold-3);
  border-radius: 180px 180px 40px 40px;
  padding: 1.5rem 1.2rem 1.8rem;
  min-height: 22rem;
}
.hand-label {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 0.4rem;
}
.cards {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  min-height: 7.2rem;
  margin-bottom: 1rem;
}
.playing-card {
  width: 4.4rem;
  height: 6.2rem;
  background: #f7f1e4;
  color: #1a1a1a;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,.35);
  padding: 0.3rem 0.4rem;
  font-family: var(--font-num);
  font-weight: 700;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.playing-card.red { color: var(--red); }
.playing-card.back {
  background: repeating-linear-gradient(45deg, #6b1220, #6b1220 6px, #8a1a2c 6px, #8a1a2c 12px);
  color: transparent;
  border: 3px solid #f7f1e4;
}
.rank { font-size: 1.15rem; line-height: 1; }
.suit { font-size: 1.6rem; text-align: center; }
.bj-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 0.8rem; }
.bj-actions button {
  background: #111;
  border: 1px solid var(--gold-3);
  color: var(--gold-2);
  border-radius: 6px;
  padding: 0.55rem 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.78rem;
}
.bj-actions button:hover { background: rgba(212,175,55,0.12); }
.bj-feedback {
  text-align: center;
  min-height: 2.4rem;
  margin-top: 0.8rem;
  font-weight: 600;
}
.bj-feedback.good { color: var(--felt-3); }
.bj-feedback.bad { color: #ff8a9a; }
.bj-stats {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  font-family: var(--font-num);
  font-size: 0.9rem;
  color: var(--champagne);
  margin-top: 0.4rem;
}

.chart-wrap { overflow-x: auto; margin-top: 1.2rem; }
.chart {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  font-family: var(--font-num);
}
.chart th, .chart td {
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.28rem 0.35rem;
  text-align: center;
}
.chart th { background: var(--ink-4); color: var(--gold-2); font-weight: 600; }
.chart td.H { background: #1a2a44; }
.chart td.S { background: #1a3324; }
.chart td.D { background: #3a2a12; }
.chart td.P { background: #3a1a24; }
.legend { display: flex; gap: 0.8rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; }
.legend i { font-style: normal; padding: 0.1rem 0.4rem; border-radius: 4px; color: #fff; }
.legend .H { background: #1a2a44; }
.legend .S { background: #1a3324; }
.legend .D { background: #3a2a12; }
.legend .P { background: #3a1a24; }

/* Interior pages */
.page-hero {
  position: relative;
  min-height: 16rem;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7,7,8,0.15), rgba(7,7,8,0.88));
}
.page-hero .wrap { padding: 3.2rem 0 1.6rem; max-width: 46rem; }

.crumbs {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.crumbs a { color: var(--champagne); text-decoration: none; }
.crumbs a:hover { color: var(--gold-2); }

.prose {
  max-width: 46rem;
}
.prose p { color: var(--paper); }
.prose ol, .prose ul { color: var(--paper); padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.news-frame {
  margin: 1rem 0 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  min-height: 28rem;
}
.news-frame iframe {
  width: 100%;
  height: 36rem;
  border: 0;
  background: #fff;
}
.prose h2, .prose h3 {
  font-family: var(--font-head);
  font-weight: 500;
  color: #fffaf0;
  margin: 1.6rem 0 0.5rem;
}
.prose h3 { font-size: 1.25rem; }
.prose blockquote {
  margin: 1.2rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--gold);
  color: var(--champagne);
  font-family: var(--font-head);
  font-size: 1.2rem;
}
.layout-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: 1.6rem;
  align-items: start;
}
.side {
  position: sticky;
  top: calc(var(--header-h) + 0.8rem);
}
.side .ad-tile { margin-bottom: 1rem; }

.note {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-left: 3px solid var(--felt-2);
  padding: 0.9rem 1rem;
  border-radius: 8px;
  color: var(--paper);
  font-size: 0.95rem;
}
.note.caution { border-left-color: var(--red); }

.split-copy {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: center;
}
.split-copy img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  width: 100%;
  height: 16rem;
  object-fit: cover;
}

.personality {
  display: grid;
  grid-template-columns: 1.4fr auto auto;
  gap: 1.2rem;
  align-items: center;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.personality h3 { margin: 0 0 0.3rem; font-family: var(--font-head); font-weight: 500; }
.personality p { margin: 0; color: var(--muted); }
.badge-link img { height: 44px; width: auto; }

/* Explore menu replacement */
.explore {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}
.explore a {
  display: block;
  padding: 0.85rem 0.9rem;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ivory);
  font-weight: 600;
}
.explore a:hover { border-color: var(--gold); color: var(--gold-2); }
.explore a span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

/* Article index */
.article-card {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  color: inherit;
}
.article-card:hover h3 { color: var(--gold-2); }
.article-card .meta {
  font-family: var(--font-num);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.article-card h3 {
  margin: 0.15rem 0 0.25rem;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 500;
  color: #fffaf0;
}
.article-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Footer */
.site-footer {
  margin-top: 2rem;
  background: #050506;
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 1.4rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.4rem;
  margin-bottom: 1.6rem;
}
.site-footer h2 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.6rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.28rem 0; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.rg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1rem;
  color: var(--paper);
}
.legal {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted-2);
}

/* Free play tiles */
.play-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.play-tile {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.play-tile img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  background: #000;
}
.play-tile figcaption {
  padding: 0.7rem 0.85rem 0.9rem;
}
.play-tile h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 500;
  color: #fffaf0;
}
.play-tile p { margin: 0; color: var(--muted); font-size: 0.85rem; }

.books {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.book {
  text-decoration: none;
  color: inherit;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.book img {
  width: 100%;
  height: 12rem;
  object-fit: contain;
  background: #111;
  padding: 0.4rem;
}
.book h3 {
  font-size: 0.95rem;
  margin: 0;
  padding: 0.7rem 0.75rem 1rem;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--champagne);
}

@media (max-width: 980px) {
  .lanes, .grid-3, .play-grid, .explore { grid-template-columns: 1fr 1fr; }
  .grid-4, .books { grid-template-columns: 1fr 1fr; }
  .layout-2, .split-copy, .personality, .foot-grid { grid-template-columns: 1fr; }
  .side { position: static; display: flex; flex-wrap: wrap; gap: 0.8rem; }
  .header-row { grid-template-columns: 1fr auto; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-block; }
  .primary-nav {
    display: none;
    grid-column: 1 / -1;
    padding-bottom: 0.8rem;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; }
  .primary-nav details ul { position: static; box-shadow: none; }
}

@media (max-width: 640px) {
  .lanes, .grid-2, .grid-3, .play-grid, .explore, .books { grid-template-columns: 1fr; }
  .hero { min-height: 28rem; }
  .article-card { grid-template-columns: 1fr; }
  .toprail .hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lane img, .btn { transition: none; }
}
