/* ============================================================
   JUMPINTOGAMING.CSS — Complete Design System
   The Difficulty Depth Chart. Built by Digilu | digilu.com
   ONE metaphor: water depth = difficulty to learn.
   Nav/megamenu structure inherited from FortClips (single-sourced
   via tools/sync-chrome.py); reskinned to the depth gradient.
   ============================================================ */

/* Fonts loaded in <head> — Space Grotesk (display) + Inter (body) */

/* ---- DESIGN TOKENS ---- */
:root {
  /* Surface (top) → Abyss (bottom). The brand IS this gradient. */
  --color-bg:          #04141b;   /* near-black abyss */
  --color-surface:     #0a2029;
  --color-surface-2:   #102d38;
  --color-surface-3:   #173b48;
  --color-border:      #1f4754;

  /* The depth scale — turquoise shallows to near-black deep. */
  --d1: #46e0be;   /* D1 Surface  — bright turquoise */
  --d2: #18c4bb;   /* D2 Shallow  — cyan */
  --d3: #1f8fb2;   /* D3 Midwater — ocean blue */
  --d4: #235f93;   /* D4 Deep     — deep blue */
  --d5: #0a2438;   /* D5 Abyss    — near-black blue */
  --warn: #f2a93b; /* D5 warning treatment — amber "no easy way in" */
  --warn-deep: #c9791a;

  --color-accent:      #18c4bb;   /* primary brand accent (shallow cyan) */
  --color-accent-2:    #46e0be;
  --color-text:        #e9f4f3;
  --color-text-muted:  #88a6a8;
  --color-text-dim:    #557079;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 8rem;

  --max-width:  1180px;
  --nav-height: 68px;
  --radius:     8px;
  --radius-lg:  14px;

  --shadow-card: 0 2px 18px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 28px rgba(24,196,187,0.16);

  --transition: 200ms ease;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  /* Subtle full-page depth wash: light at top, abyssal at bottom. */
  background-image: linear-gradient(180deg, #062029 0%, var(--color-bg) 38%);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }
ul[role="list"] { list-style: none; }
h1,h2,h3,h4 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.15; }

/* ---- SKIP LINK ---- */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--color-accent); color: #00121a;
  padding: var(--space-xs) var(--space-sm);
  font-weight: 700; border-radius: var(--radius); z-index: 9999;
}
.skip-link:focus { top: 1rem; }

/* ---- TEXT LOGO ---- */
.logo-lockup { display: flex; align-items: center; gap: 9px; }
.logo-mark { width: 26px; height: 30px; flex-shrink: 0; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  color: var(--color-text); letter-spacing: -0.03em; line-height: 1;
}
.logo-accent { color: var(--color-accent); }

/* ============================================================
   HEADER + MEGA-MENU NAV  (single-sourced via tools/sync-chrome.py)
   ============================================================ */
.site-header {
  position: sticky; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6,10,18,0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 var(--space-md); height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg);
}
.site-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.header-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-cta .btn { padding: 9px 18px; font-size: 0.875rem; border-radius: var(--radius); }

/* Primary nav */
.primary-nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px; padding: 8px 13px;
  font-size: 0.9rem; font-weight: 500; color: var(--color-text-muted);
  border-radius: var(--radius); transition: color var(--transition); white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--color-text); }
.nav-link svg { width: 12px; height: 12px; transition: transform var(--transition); }
.nav-link .nav-ico { width: 16px; height: 16px; }
.nav-item:hover .nav-link { color: var(--color-text); }
.nav-item:hover .nav-link .nav-caret { transform: rotate(180deg); }

/* Mega menu */
.mega-menu {
  position: absolute; top: 100%; left: 50%; padding: 12px 0 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(calc(-50% + var(--mm-shift, 0px))) translateY(-4px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}
.mega-menu--r { left: 50%; right: auto; }
.nav-item:hover .mega-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(calc(-50% + var(--mm-shift, 0px))) translateY(0);
}
.mega-menu-inner {
  display: flex; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(0,0,0,0.6); overflow: hidden;
}
/* feature panel (left) */
.mm-feature {
  flex: 0 0 226px; padding: 22px 20px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; border-right: 1px solid var(--color-border);
  background:
    radial-gradient(120% 90% at 0% 100%, rgba(24,196,187,0.18), transparent 60%),
    linear-gradient(160deg, var(--color-surface-2), var(--color-surface));
}
.mm-fx { position: absolute; right: -28px; bottom: -24px; opacity: 0.5; pointer-events: none; }
.mm-flabel { display: block; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 10px; }
.mm-feature h4 { font-size: 1.3rem; font-weight: 700; line-height: 1.12; margin: 0 0 8px; color: var(--color-text); }
.mm-feature p { font-size: 0.78rem; color: var(--color-text-muted); line-height: 1.5; margin: 0 0 16px; }
.mm-fcta { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; font-weight: 600; color: var(--color-accent); transition: gap var(--transition); }
.mm-fcta svg { width: 14px; height: 14px; }
.mm-feature:hover .mm-fcta { gap: 11px; }
/* link list (right) */
.mm-list { padding: 12px; min-width: 300px; }
.mm-glabel { display: block; padding: 10px 14px 6px; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); }
.mm-cols { display: flex; gap: 6px; }
.mm-cols > div { flex: 1; min-width: 210px; }
.mega-menu .mm-row {
  display: flex; align-items: flex-start; gap: 13px; padding: 10px 14px;
  border-radius: var(--radius); transition: background var(--transition);
}
.mega-menu .mm-row:hover { background: var(--color-surface-2); }
.mm-ico { flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; background: rgba(24,196,187,0.08); border: 1px solid rgba(24,196,187,0.18); display: flex; align-items: center; justify-content: center; }
.mm-ico svg { width: 18px; height: 18px; }
.mm-tt { display: block; font-size: 0.875rem; font-weight: 600; color: var(--color-text); line-height: 1.25; }
.mm-ds { display: block; font-size: 0.75rem; color: var(--color-text-muted); margin-top: 4px; line-height: 1.45; }
/* depth chip in menu rows */
.mm-grade { margin-left: auto; align-self: center; flex-shrink: 0; }

/* Hamburger */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer;
  border-radius: var(--radius); background: none; border: none; transition: background var(--transition);
}
.menu-toggle:hover { background: var(--color-surface); }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--color-text); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0;
  background: var(--color-bg); overflow-y: auto; z-index: 99; padding: var(--space-md);
}
.mobile-nav.open { display: block; }
.mobile-nav-section { margin-bottom: 24px; }
.mobile-nav-label { display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 8px; padding: 0 4px; }
.mobile-nav a { display: block; padding: 10px 4px; font-size: 1rem; color: var(--color-text-muted); border-bottom: 1px solid var(--color-border); transition: color var(--transition); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--color-text); }
.mobile-nav .mobile-cta { margin-top: 24px; }
.mobile-nav .mobile-cta a, .mobile-nav .mobile-cta a:hover { color: #00121a; border-bottom: none; }

@media (max-width: 920px) {
  .primary-nav { display: none; }
  .header-cta .btn { display: none; }
  .menu-toggle { display: flex; }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; font-family: var(--font-display); font-size: 0.95rem; font-weight: 600;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--color-accent); color: #00121a; }
.btn--primary:hover { background: #fff; color: #00121a; }
.btn--ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn--ghost:hover { border-color: var(--color-accent); color: #fff; }
.btn--full { width: 100%; }

/* ---- LAYOUT ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-md); }
.container--narrow { max-width: 820px; }
.section { padding: var(--space-xl) 0; }
.section--sm { padding: var(--space-lg) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto var(--space-lg); }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: var(--space-sm); }
.section-head p { color: var(--color-text-muted); }
.eyebrow { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent); margin-bottom: var(--space-sm); }

/* ---- HERO ---- */
#hero {
  padding: var(--space-2xl) var(--space-md) var(--space-xl); text-align: center;
  position: relative; overflow: hidden; border-bottom: 1px solid var(--color-border);
}
/* the descending light shaft of the surface */
#hero::before {
  content: ''; position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 720px; height: 520px;
  background: radial-gradient(ellipse at center top, rgba(70,224,190,0.12) 0%, transparent 68%);
  pointer-events: none;
}
#hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.6rem); font-weight: 700; line-height: 1.05;
  color: var(--color-text); margin-bottom: var(--space-md); position: relative;
}
#hero h1 .grad {
  background: linear-gradient(180deg, var(--d1), var(--d3)); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-tagline { font-size: 1.18rem; color: var(--color-text-muted); max-width: 560px; margin: 0 auto var(--space-md); position: relative; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---- DEPTH SCALE (the five zones, reused everywhere) ---- */
.depth-scale { display: grid; gap: 2px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); }
.depth-row {
  display: grid; grid-template-columns: 64px 1fr; align-items: stretch;
  background: var(--color-surface); transition: transform var(--transition);
}
.depth-row:hover { transform: translateX(4px); }
.depth-key {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: #00121a; padding: var(--space-sm) 0;
}
.depth-key .dk-grade { font-size: 1.5rem; line-height: 1; }
.depth-key .dk-zone { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; opacity: 0.85; }
.depth-body { padding: var(--space-sm) var(--space-md); }
.depth-body h4 { font-size: 1.05rem; margin-bottom: 2px; }
.depth-body p { font-size: 0.9rem; color: var(--color-text-muted); margin: 0; }
.d1 .depth-key { background: var(--d1); }
.d2 .depth-key { background: var(--d2); }
.d3 .depth-key { background: var(--d3); color: #e9f4f3; }
.d4 .depth-key { background: var(--d4); color: #e9f4f3; }
.d5 .depth-key { background: var(--d5); color: var(--warn); border-right: 2px solid var(--warn); }
.d5 .depth-body h4 { color: var(--warn); }

/* ============================================================
   THE DEPTH CHART BADGE — the stampable seal (crown jewel)
   ============================================================ */
.depth-badge {
  display: inline-flex; flex-direction: column; width: 260px;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--color-border); background: var(--color-surface);
  box-shadow: var(--shadow-card); text-align: left; color: var(--color-text);
}
.depth-badge:hover { color: var(--color-text); }
.depth-badge__top { display: flex; align-items: stretch; }
.depth-badge__cross { flex: 0 0 70px; position: relative; background: var(--color-surface-2); }
.depth-badge__cross svg { width: 100%; height: 100%; display: block; }
.depth-badge__main { flex: 1; padding: 16px 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.depth-badge__label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); }
.depth-badge__grade { display: flex; align-items: baseline; gap: 8px; }
.depth-badge__grade b { font-family: var(--font-display); font-size: 2.5rem; line-height: 0.9; font-weight: 700; }
.depth-badge__zone { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em; }
.depth-badge__game { font-size: 0.82rem; color: var(--color-text-muted); }
.depth-badge__foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--color-surface-2); border-top: 1px solid var(--color-border); color: var(--color-text-dim);
}
.depth-badge__foot b { color: var(--color-text-muted); font-weight: 600; }
/* grade colorways */
.depth-badge--d1 .depth-badge__grade b, .depth-badge--d1 .depth-badge__zone { color: var(--d1); }
.depth-badge--d2 .depth-badge__grade b, .depth-badge--d2 .depth-badge__zone { color: var(--d2); }
.depth-badge--d3 .depth-badge__grade b, .depth-badge--d3 .depth-badge__zone { color: var(--d3); }
.depth-badge--d4 .depth-badge__grade b, .depth-badge--d4 .depth-badge__zone { color: #4f8fe0; }
.depth-badge--d5 { border-color: var(--warn); box-shadow: 0 0 28px rgba(242,169,59,0.18); }
.depth-badge--d5 .depth-badge__grade b, .depth-badge--d5 .depth-badge__zone { color: var(--warn); }
.depth-badge--d5 .depth-badge__label::after { content: ' ⚠ no easy way in'; color: var(--warn); }
/* large hero variant */
.depth-badge--lg { width: 340px; }
.depth-badge--lg .depth-badge__grade b { font-size: 3.4rem; }
.depth-badge--lg .depth-badge__cross { flex-basis: 92px; }

/* ---- RUBRIC BREAKDOWN ---- */
.rubric { display: grid; gap: 10px; }
.rubric-row { display: grid; grid-template-columns: 1fr 120px 34px; align-items: center; gap: var(--space-sm); }
.rubric-row .rr-name { font-size: 0.92rem; color: var(--color-text); }
.rubric-row .rr-name small { display: block; color: var(--color-text-dim); font-size: 0.76rem; }
.rubric-bar { height: 8px; border-radius: 6px; background: var(--color-surface-3); overflow: hidden; }
.rubric-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--d2), var(--d4)); }
.rubric-row .rr-val { text-align: right; font-family: var(--font-display); font-weight: 700; color: var(--color-text); }

/* critic vs player gap */
.gap-card { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-md); align-items: center; text-align: center; }
.gap-card .gap-side { padding: var(--space-md); }
.gap-card .gap-grade { font-family: var(--font-display); font-size: 3rem; font-weight: 700; line-height: 1; }
.gap-card .gap-tag { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); }
.gap-card .gap-vs { color: var(--color-text-dim); font-family: var(--font-display); }
.gap-card .gap-pending { color: var(--color-text-dim); font-size: 0.85rem; }

/* ---- CARDS / PANELS ---- */
.panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-lg); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-md); }
.game-card {
  position: relative; display: flex; flex-direction: column; gap: var(--space-xs);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-md); overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.game-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--d1), var(--d4)); transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.game-card:hover { border-color: var(--color-accent); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.game-card:hover::before { transform: scaleX(1); }
.game-card.is-soon { opacity: 0.6; }
.game-card .gc-grade { align-self: flex-start; }
.game-card h3 { font-size: 1.25rem; }
.game-card p { font-size: 0.9rem; color: var(--color-text-muted); margin: 0; }
.game-card .gc-meta { margin-top: auto; font-size: 0.78rem; color: var(--color-text-dim); }

/* small inline grade chip */
.grade-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 20px;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
  border: 1px solid var(--color-border); background: var(--color-surface-2);
}
.grade-chip.g-d1 { color: var(--d1); border-color: rgba(70,224,190,0.4); }
.grade-chip.g-d2 { color: var(--d2); border-color: rgba(24,196,187,0.4); }
.grade-chip.g-d3 { color: var(--d3); border-color: rgba(27,135,196,0.5); }
.grade-chip.g-d4 { color: #4f8fe0; border-color: rgba(79,143,224,0.5); }
.grade-chip.g-d5 { color: var(--warn); border-color: rgba(242,169,59,0.5); }

/* ============================================================
   GAME HUB — the training descent
   ============================================================ */
.hub-hero { padding: var(--space-xl) 0 var(--space-lg); border-bottom: 1px solid var(--color-border); }
.hub-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: var(--space-xl); align-items: center; }
.hub-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: var(--space-sm); }
.answer-box {
  border-left: 3px solid var(--color-accent); background: var(--color-surface);
  padding: var(--space-md) var(--space-lg); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.15rem; line-height: 1.6; margin: var(--space-md) 0;
}
.answer-box b { color: var(--color-accent); }
@media (max-width: 820px) { .hub-hero-grid { grid-template-columns: 1fr; } }

/* the descent — staged path */
.descent { position: relative; margin: var(--space-lg) 0; }
.stage {
  position: relative; display: grid; grid-template-columns: 56px 1fr; gap: var(--space-md);
  padding: var(--space-lg) 0; border-bottom: 1px solid var(--color-border);
}
.stage:last-child { border-bottom: none; }
.stage-rail { display: flex; flex-direction: column; align-items: center; }
.stage-dot {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: #00121a; flex-shrink: 0;
}
.stage-line { flex: 1; width: 2px; background: linear-gradient(var(--color-border), transparent); margin-top: 8px; }
.stage.s-d1 .stage-dot { background: var(--d1); }
.stage.s-d2 .stage-dot { background: var(--d2); }
.stage.s-d3 .stage-dot { background: var(--d3); color: #e9f4f3; }
.stage.s-d4 .stage-dot { background: var(--d4); color: #e9f4f3; }
.stage.s-d5 .stage-dot { background: var(--d5); color: var(--warn); border: 1px solid var(--warn); }
.stage-zone { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); }
.stage h3 { font-size: 1.4rem; margin: 2px 0 var(--space-sm); }
.stage-body > * + * { margin-top: var(--space-sm); }
.stage-omitted {
  border: 1px dashed var(--color-border); border-radius: var(--radius); padding: var(--space-md);
  color: var(--color-text-dim); font-style: italic; background: rgba(255,255,255,0.01);
}

/* video embed */
.video-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--color-border); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-credit { font-size: 0.8rem; color: var(--color-text-dim); margin-top: var(--space-xs); }
.video-credit a { color: var(--color-text-muted); }

/* community links */
.link-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: var(--space-sm); }
.link-tile { display: flex; align-items: center; gap: 12px; padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); }
.link-tile:hover { border-color: var(--color-accent); }
.link-tile svg { width: 22px; height: 22px; stroke: var(--color-accent); flex-shrink: 0; }
.link-tile span { display: flex; flex-direction: column; }
.link-tile b { color: var(--color-text); font-size: 0.92rem; }
.link-tile small { color: var(--color-text-dim); }

/* ---- TOC / on-page nav for hubs ---- */
.hub-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--space-md) 0; }
.hub-toc a { font-size: 0.8rem; padding: 5px 12px; border: 1px solid var(--color-border); border-radius: 20px; color: var(--color-text-muted); }
.hub-toc a:hover { border-color: var(--color-accent); color: #fff; }

/* ---- FAQ ---- */
.faq details { border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-sm) var(--space-md); margin-bottom: var(--space-sm); background: var(--color-surface); }
.faq summary { font-family: var(--font-display); font-weight: 600; cursor: pointer; font-size: 1.05rem; }
.faq details[open] summary { color: var(--color-accent); margin-bottom: var(--space-xs); }
.faq p { color: var(--color-text-muted); margin: 0; }

/* ---- PROSE ---- */
.prose > * + * { margin-top: var(--space-sm); }
.prose h2 { font-size: 1.7rem; margin-top: var(--space-lg); }
.prose h3 { font-size: 1.25rem; margin-top: var(--space-md); }
.prose p, .prose li { color: var(--color-text-muted); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose strong { color: var(--color-text); }
.prose a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---- FORMS ---- */
.form-field { margin-bottom: var(--space-md); }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.form-field label .req { color: var(--warn); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 11px 14px; background: var(--color-surface-2);
  border: 1px solid var(--color-border); border-radius: var(--radius);
  color: var(--color-text); font-family: var(--font-body); font-size: 0.95rem;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--color-accent); }
.form-field .hint { font-size: 0.8rem; color: var(--color-text-dim); margin-top: 4px; }
.form-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: var(--space-sm); font-size: 0.9rem; color: var(--color-text-muted); }
.form-check input { width: auto; margin-top: 4px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-msg { padding: var(--space-sm) var(--space-md); border-radius: var(--radius); margin-top: var(--space-sm); display: none; }
.form-msg.ok { display: block; background: rgba(70,224,190,0.1); border: 1px solid rgba(70,224,190,0.4); color: var(--d1); }
.form-msg.err { display: block; background: rgba(242,169,59,0.1); border: 1px solid rgba(242,169,59,0.4); color: var(--warn); }

/* ---- AUTHOR / CRITIC ---- */
.critic-head { display: grid; grid-template-columns: 120px 1fr; gap: var(--space-lg); align-items: center; }
.critic-avatar { width: 120px; height: 120px; border-radius: 50%; border: 2px solid var(--color-border); background: var(--color-surface-2); display: flex; align-items: center; justify-content: center; }
.critic-avatar svg { width: 64px; height: 64px; stroke: var(--color-accent); }
.critic-creds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-sm); }
.critic-cred { font-size: 0.78rem; padding: 4px 10px; border-radius: 20px; background: var(--color-surface-2); border: 1px solid var(--color-border); color: var(--color-text-muted); }
@media (max-width: 600px) { .critic-head { grid-template-columns: 1fr; text-align: center; } .critic-avatar { margin: 0 auto; } .critic-creds { justify-content: center; } }

/* ---- CODE / EMBED SNIPPET ---- */
.code-block { background: #04070d; border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-md); overflow-x: auto; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.82rem; color: #b9e7ef; line-height: 1.6; }
.code-block .tag { color: #5f9ad6; }
.copy-btn { font-size: 0.78rem; padding: 6px 12px; }

/* ---- CALLOUT ---- */
.callout { border: 1px solid var(--color-border); border-left: 3px solid var(--color-accent); border-radius: 0 var(--radius) var(--radius) 0; padding: var(--space-md); background: var(--color-surface); }
.callout--warn { border-left-color: var(--warn); }
.callout h4 { margin-bottom: var(--space-xs); }
.callout p { color: var(--color-text-muted); margin: 0; }

/* ---- FOOTER ---- */
.site-footer { border-top: 1px solid var(--color-border); margin-top: var(--space-2xl); background: var(--color-surface); }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: var(--space-xl) var(--space-md) var(--space-lg); display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-lg); }
.footer-brand .footer-tagline { color: var(--color-text-muted); margin: var(--space-sm) 0; max-width: 280px; font-size: 0.92rem; }
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.social-link { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--color-border); border-radius: 8px; font-size: 0.72rem; font-weight: 700; color: var(--color-text-muted); }
.social-link:hover { border-color: var(--color-accent); color: #fff; }
.footer-col .footer-label { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text); margin-bottom: var(--space-sm); }
.footer-col a { display: block; padding: 4px 0; font-size: 0.9rem; color: var(--color-text-muted); }
.footer-col a:hover { color: var(--color-accent); }
.footer-current { display: block; padding: 4px 0; font-size: 0.9rem; color: var(--color-accent); }
.footer-divider { max-width: var(--max-width); margin: 0 auto; height: 1px; background: var(--color-border); }
.footer-legal { max-width: var(--max-width); margin: 0 auto; padding: var(--space-md); text-align: center; }
.footer-legal p { font-size: 0.82rem; color: var(--color-text-dim); margin: 4px 0; }
.footer-credit a { color: var(--color-text-muted); }
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---- UTILITIES ---- */
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mt-md { margin-top: var(--space-md); }
.mb-md { margin-bottom: var(--space-md); }
.muted { color: var(--color-text-muted); }
.dim { color: var(--color-text-dim); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: center; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.lead { font-size: 1.15rem; color: var(--color-text-muted); }
.tm { font-size: 0.7em; vertical-align: super; opacity: 0.7; }

/* ============================================================
   PLAYER-GRADE VOTING WIDGET (js/vote.js)
   ============================================================ */
.vote-box {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-lg);
}
.vote-tally { margin-bottom: var(--space-md); font-size: 0.92rem; }
.vote-tally-grade { font-size: 0.95rem; }
.vote-tally-pending { color: var(--color-text-muted); font-weight: 600; }
.vote-tally-n { color: var(--color-text-dim); font-size: 0.82rem; margin-left: 6px; }
.vote-prompt { color: var(--color-text-muted); margin-bottom: var(--space-sm); }
.vote-prompt b { color: var(--color-text); }
.vote-grades { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: var(--space-md); }
.vote-grade {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 4px; cursor: pointer; border-radius: var(--radius);
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  color: var(--color-text); transition: border-color var(--transition), transform var(--transition), background var(--transition);
}
.vote-grade small { font-family: var(--font-body); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); }
.vote-grade:hover { transform: translateY(-2px); }
.vote-grade.g-d1:hover, .vote-grade.g-d1.is-picked { border-color: var(--d1); }
.vote-grade.g-d2:hover, .vote-grade.g-d2.is-picked { border-color: var(--d2); }
.vote-grade.g-d3:hover, .vote-grade.g-d3.is-picked { border-color: var(--d3); }
.vote-grade.g-d4:hover, .vote-grade.g-d4.is-picked { border-color: #4f8fe0; }
.vote-grade.g-d5:hover, .vote-grade.g-d5.is-picked { border-color: var(--warn); }
.vote-grade.is-picked { background: var(--color-surface-3); }
.vote-email { display: flex; gap: 8px; flex-wrap: wrap; }
.vote-email input[type=email] {
  flex: 1 1 220px; padding: 11px 14px; background: var(--color-surface-2);
  border: 1px solid var(--color-border); border-radius: var(--radius);
  color: var(--color-text); font-family: var(--font-body); font-size: 0.95rem;
}
.vote-email input[type=email]:focus { outline: none; border-color: var(--color-accent); }
.vote-msg { margin-top: var(--space-sm); font-size: 0.88rem; }
.vote-msg.ok { color: var(--d1); }
.vote-msg.err { color: var(--warn); }
/* compact variant for game cards */
.vote-box--mini { padding: var(--space-md); }
.vote-box--mini .vote-prompt { font-size: 0.82rem; margin-bottom: 8px; }
.vote-box--mini .vote-grades { gap: 5px; margin-bottom: 10px; }
.vote-box--mini .vote-grade { padding: 7px 2px; font-size: 0.9rem; }
.vote-box--mini .vote-grade small { display: none; }

/* ============================================================
   HOME HERO — split layout + two-tier sign-up (AIOInsights pattern)
   ============================================================ */
#hero.hero--split { text-align: left; padding-top: var(--space-lg); }
.hero-grid { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-xl); align-items: center; position: relative; z-index: 1; }
.hero--split h1 { margin-left: 0; }
.hero--split .hero-tagline { margin-left: 0; margin-right: 0; max-width: 520px; }
.hero--split .hero-ctas { justify-content: flex-start; }
@media (max-width: 920px) {
  #hero.hero--split { text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .hero--split .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero--split .hero-ctas { justify-content: center; }
}

/* line-art backdrop for the hero (depth contour lines) */
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.5; z-index: 0; }

.signup { display: flex; flex-direction: column; gap: var(--space-md); text-align: left; }
.signup-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-lg); position: relative; }
.signup-card--free { border-color: rgba(24,196,187,0.45); box-shadow: var(--shadow-glow); }
.signup-card--join { background: var(--color-surface-2); }
.signup-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.signup-head svg { width: 26px; height: 26px; stroke: var(--color-accent); flex-shrink: 0; }
.signup-head h3 { font-size: 1.15rem; }
.signup-tier { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; margin-left: auto; }
.signup-tier--free { color: var(--color-accent); background: rgba(24,196,187,0.1); border: 1px solid rgba(24,196,187,0.3); }
.signup-tier--plus { color: var(--color-text-muted); background: var(--color-surface); border: 1px solid var(--color-border); }
.signup-sub { font-size: 0.86rem; color: var(--color-text-muted); margin: 0 0 14px; }
.signup input { width: 100%; padding: 10px 13px; background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius); color: var(--color-text); font-family: var(--font-body); font-size: 0.92rem; margin-bottom: 8px; }
.signup-card--join input { background: var(--color-surface); }
.signup input:focus { outline: none; border-color: var(--color-accent); }
.signup .row { display: flex; gap: 8px; }
.signup .row input { flex: 1; }
.signup .btn { width: 100%; margin-top: 4px; }
.signup-msg { font-size: 0.84rem; margin-top: 8px; min-height: 1em; }
.signup-msg.ok { color: var(--d1); }
.signup-msg.err { color: var(--warn); }
.signup-note { font-size: 0.72rem; color: var(--color-text-dim); margin-top: 8px; }
.signup-features { list-style: none; padding: 0; margin: 0 0 14px; }
.signup-features li { font-size: 0.84rem; color: var(--color-text-muted); padding-left: 22px; position: relative; margin-bottom: 5px; }
.signup-features li::before { content: ''; position: absolute; left: 3px; top: 5px; width: 8px; height: 8px; border-left: 1.6px solid var(--color-accent); border-bottom: 1.6px solid var(--color-accent); transform: rotate(-45deg); }
.signup-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* line-art section illustration (reusable) */
.section-art { width: 100%; max-width: 460px; margin: 0 auto; display: block; opacity: 0.9; }
.art-stroke { stroke: var(--color-accent); fill: none; }
.art-stroke-2 { stroke: var(--color-accent-2); fill: none; }
.art-dim { stroke: var(--color-border); fill: none; }

/* The credibility SEAL (award medallion) — SVG via <img> */
.depth-seal { width: 240px; max-width: 100%; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.45)); }
.depth-seal--lg { width: 300px; }
.seal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--space-lg); align-items: start; justify-items: center; }
