/* ============================================================
   SPACE KANGAROO — bright stickers on a deep galaxy
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Archivo:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* deep space — base background */
  --void:     #04040a;
  --void-2:   #08081a;
  --void-3:   #0c0c2a;
  --indigo-deep: #1a1244;

  /* paper — used inside cards / page panels */
  --paper:    #faf7ee;
  --paper-2:  #f1ede0;
  --paper-3:  #e6e1cf;

  /* ink */
  --ink:      #0d0d10;
  --ink-2:    #2a2a2e;
  --ink-3:    #5a5a62;

  /* avatar palette */
  --indigo:   #2a1bb5;
  --indigo-d: #15107a;
  --magenta:  #ff2b6e;
  --magenta-d:#cc1450;
  --gold:     #ffc522;
  --gold-d:   #e0a800;
  --teal:     #1cc7c0;
  --teal-d:   #0fa39e;

  /* text on dark */
  --text-light:    #f6f3e8;
  --text-light-2:  #c9c5b3;
  --text-light-3:  #807c6e;

  --max:    1240px;
  --max-r:  900px;
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-light);
  background: var(--void);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ============================================================
   STARFIELD — multi-layer deep space
   - Layer 1: huge soft nebula glows (fixed)
   - Layer 2: dense distant star dots (CSS radial-gradients)
   - Layer 3: medium parallax stars (JS canvas)
   - Layer 4: foreground bright stars w/ twinkle (JS canvas)
   ============================================================ */

body::before {
  /* nebula glows — fixed, slow drift */
  content: '';
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 50% 60% at 18% 20%, rgba(112, 36, 255, 0.25), transparent 60%),
    radial-gradient(ellipse 45% 55% at 82% 25%, rgba(255, 43, 110, 0.18), transparent 60%),
    radial-gradient(ellipse 55% 60% at 50% 90%, rgba(28, 199, 192, 0.18), transparent 65%),
    radial-gradient(ellipse 30% 30% at 70% 60%, rgba(255, 197, 34, 0.10), transparent 60%);
  filter: blur(20px);
  animation: nebula-drift 60s ease-in-out infinite alternate;
}

@keyframes nebula-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(2%, -1%) scale(1.05); }
  100% { transform: translate(-1%, 2%) scale(0.97); }
}

body::after {
  /* dense distant star field — pure CSS dots */
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 13% 21%, rgba(255,255,255,0.65), transparent 70%),
    radial-gradient(1px 1px at 87% 14%, rgba(255,255,255,0.5), transparent 70%),
    radial-gradient(1px 1px at 56% 8%,  rgba(255,255,255,0.7), transparent 70%),
    radial-gradient(1px 1px at 9% 67%,  rgba(255,255,255,0.55), transparent 70%),
    radial-gradient(1px 1px at 47% 41%, rgba(255,255,255,0.4), transparent 70%),
    radial-gradient(1px 1px at 76% 76%, rgba(255,255,255,0.55), transparent 70%),
    radial-gradient(1.5px 1.5px at 30% 88%, rgba(200,210,255,0.7), transparent 70%),
    radial-gradient(1px 1px at 92% 53%, rgba(255,230,200,0.5), transparent 70%),
    radial-gradient(1px 1px at 4% 36%, rgba(255,255,255,0.6), transparent 70%),
    radial-gradient(1px 1px at 64% 27%, rgba(220,200,255,0.5), transparent 70%),
    radial-gradient(1px 1px at 23% 56%, rgba(255,255,255,0.45), transparent 70%),
    radial-gradient(1px 1px at 41% 73%, rgba(255,255,255,0.55), transparent 70%),
    radial-gradient(1px 1px at 73% 38%, rgba(255,255,255,0.45), transparent 70%),
    radial-gradient(1px 1px at 12% 92%, rgba(255,255,255,0.5), transparent 70%),
    radial-gradient(1px 1px at 60% 60%, rgba(255,255,255,0.4), transparent 70%);
  background-repeat: repeat;
  background-size: 100% 100%;
}

#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

main, header, footer, section, nav, article { position: relative; z-index: 1; }

a { color: var(--gold); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--magenta); }

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--gold); color: var(--ink); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4 {
  font-family: 'Archivo', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--text-light);
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--gold);
}

.mono { font-family: 'JetBrains Mono', monospace; }

.hl        { background: linear-gradient(180deg, transparent 55%, var(--gold) 55%, var(--gold) 95%, transparent 95%); color: white; padding: 0 0.05em; text-shadow: 0 2px 16px rgba(0,0,0,0.45); }
.hl-pink   { background: var(--magenta); color: white; padding: 0.02em 0.18em; border-radius: 4px; }
.hl-indigo { background: var(--indigo); color: white; padding: 0.02em 0.18em; border-radius: 4px; }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 4, 10, 0.7);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-light);
  font-family: 'Archivo Black', sans-serif;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand:hover { color: var(--gold); }

.brand .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  object-fit: cover;
  box-shadow: 0 0 18px rgba(255, 43, 110, 0.4);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links a {
  color: var(--text-light-2);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a:hover { color: var(--gold); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--magenta);
  transition: width 0.2s;
}
.nav-links a:hover::after { width: 100%; }

.nav-links .yt {
  background: #ff0033;
  color: white !important;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  border: 2px solid #ff0033;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 0 0 0 rgba(255, 0, 51, 0.5);
  transition: box-shadow 0.2s;
}
.nav-links .yt:hover { box-shadow: 0 0 24px 0 rgba(255, 0, 51, 0.6); }
.nav-links .yt::after { display: none; }

/* hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  transition: border-color 0.15s, background 0.15s;
}
.nav-toggle:hover { border-color: var(--gold); background: rgba(255,255,255,0.06); }
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav { padding: 0.65rem 1rem; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0.75rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.85rem;
    width: min(220px, calc(100vw - 1.5rem));
    background: rgba(7, 6, 18, 0.96);
    backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    box-shadow: 0 24px 60px -10px rgba(0,0,0,0.7);
    transform-origin: top right;
    transform: scale(0.95) translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s, transform 0.15s;
    z-index: 110;
  }
  .nav-links.open {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
  }
  .nav-links a {
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-light);
  }
  .nav-links a:hover { background: rgba(255,255,255,0.08); }
  .nav-links a::after { display: none; }
  .nav-links .yt {
    margin-top: 0.25rem;
    justify-content: center;
  }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero-eyebrow { margin-bottom: 1.25rem; }

.hero h1 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 900;
  font-size: clamp(2.8rem, 7.5vw, 6.2rem);
  letter-spacing: -0.03em;
  line-height: 0.92;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  color: var(--text-light);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.hero p.lede {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--text-light-2);
  max-width: 50ch;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .hero-cta { gap: 0.55rem; }
  .hero-cta .btn { padding: 0.75rem 1.1rem; font-size: 13px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border-radius: 8px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid var(--text-light);
  background: rgba(255,255,255,0.08);
  color: var(--text-light);
  backdrop-filter: blur(8px);
  transition: transform 0.1s, background 0.1s, color 0.1s;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--text-light);
  color: var(--ink);
}

.btn.yt    { background: #ff0033; color: white; border-color: #ff0033; box-shadow: 0 0 0 0 rgba(255,0,51,0.5); }
.btn.yt:hover { color: white; background: #ff0033; box-shadow: 0 0 30px 0 rgba(255,0,51,0.6); transform: translateY(-2px); }
.btn.gold  { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn.gold:hover { color: var(--ink); background: var(--gold-d); border-color: var(--gold-d); }

.hero-mascot {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin-left: auto;
}

.hero-mascot::before {
  /* glow halo behind avatar */
  content: '';
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,43,110,0.45) 0%, rgba(42,27,181,0.25) 40%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

.hero-mascot img {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  border: 3px solid var(--text-light);
  object-fit: cover;
  box-shadow:
    0 0 0 6px rgba(255,255,255,0.05),
    0 30px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 60px -10px rgba(255, 43, 110, 0.4);
}

.hero-mascot .badge {
  position: absolute;
  font-family: 'Archivo Black', sans-serif;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  border-radius: 6px;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink), 0 0 24px rgba(0,0,0,0.4);
  background: white;
  white-space: nowrap;
}

.hero-mascot .badge.b1 { top: -16px; left: -20px;  background: var(--gold);   transform: rotate(-7deg); }
.hero-mascot .badge.b2 { bottom: 14%; right: -28px; background: var(--magenta); color: white; transform: rotate(6deg); }
.hero-mascot .badge.b3 { bottom: -18px; left: 12%; background: var(--teal);   transform: rotate(-3deg); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 3rem 1.25rem 2rem; gap: 2rem; }
  .hero-mascot { max-width: 320px; margin: 0 auto; }
  .hero-mascot .badge { font-size: 11px; padding: 0.4rem 0.7rem; }
}

/* ============================================================
   FEATURED EXHIBIT (between hero and hub)
   ============================================================ */

.featured {
  /* full-bleed band, override section max-width */
  max-width: none;
  width: 100%;
  margin: 2rem 0 0;
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.featured-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(28, 199, 192, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 70% at 20% 50%, rgba(112, 36, 255, 0.16), transparent 60%),
    linear-gradient(135deg, rgba(8, 12, 35, 0.85), rgba(15, 8, 35, 0.85));
}

.featured-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.featured-meta h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.025em;
  line-height: 1;
  text-transform: uppercase;
  margin: 0.85rem 0 0.85rem;
  color: var(--text-light);
}

.featured-meta p {
  color: var(--text-light-2);
  max-width: 50ch;
  margin-bottom: 1.5rem;
  font-size: 1.02rem;
  line-height: 1.5;
}

.featured-controls {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light-3) !important;
  margin: 1.25rem 0 0 !important;
}

.featured-controls kbd {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-family: inherit;
  font-size: 10.5px;
  color: var(--text-light);
}

#featured-play {
  font-family: 'Archivo Black', sans-serif;
  font-size: 16px;
  letter-spacing: 0.06em;
  padding: 1rem 2rem;
}

/* the stage — initially shows a poster, then the canvas hydrates here */
.featured-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: #03050d;
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,0.8),
    0 0 60px -20px rgba(28, 199, 192, 0.4);
  cursor: pointer;
}

.featured-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.featured-poster {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(28, 199, 192, 0.55), transparent 60%),
    radial-gradient(ellipse 100% 80% at 50% -20%, rgba(112, 36, 255, 0.4), transparent 60%),
    linear-gradient(180deg, #04081a 0%, #06122e 50%, #051f33 100%);
}

.poster-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 4px at 30% 35%, rgba(255, 230, 130, 0.9), transparent 70%),
    radial-gradient(circle 5px at 65% 50%, rgba(255, 122, 184, 0.85), transparent 70%),
    radial-gradient(circle 3px at 75% 25%, rgba(94, 224, 255, 0.85), transparent 70%),
    radial-gradient(circle 6px at 20% 65%, rgba(28, 199, 192, 0.85), transparent 70%),
    radial-gradient(circle 4px at 50% 75%, rgba(255, 197, 34, 0.8), transparent 70%),
    radial-gradient(circle 3px at 85% 70%, rgba(183, 148, 244, 0.85), transparent 70%);
  filter: blur(0.5px);
  animation: poster-drift 12s ease-in-out infinite alternate;
}

@keyframes poster-drift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-2%, 2%); }
}

.poster-fish {
  position: absolute;
  left: 38%;
  top: 42%;
  width: 90px;
  height: 60px;
  background: radial-gradient(ellipse at 30% 50%, #ff7ab8 0%, #ff2b6e 60%, transparent 100%);
  border-radius: 50%;
  box-shadow: 0 0 32px rgba(255, 43, 110, 0.6);
  animation: poster-swim 4s ease-in-out infinite;
}

.poster-fish::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 50%;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #ff2b6e, #ff7ab8);
  transform: translateY(-50%) rotate(45deg);
  border-radius: 4px;
  opacity: 0.85;
}

@keyframes poster-swim {
  0%, 100% { transform: translate(0, 0) rotate(-2deg); }
  50%      { transform: translate(20px, -10px) rotate(2deg); }
}

.featured-stage-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Archivo Black', sans-serif;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
  transition: opacity 0.3s;
}

.featured-stage:hover .featured-stage-overlay { opacity: 1; }
.featured-stage.playing .featured-stage-overlay,
.featured-stage.playing .featured-poster { display: none; }

/* fullscreen mode while the game is active */
.featured-stage.fg-fullscreen {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  z-index: 100000 !important;
}
/* cursor hidden on the canvas (custom cursor draws on canvas), visible on overlays */
.featured-stage.fg-fullscreen canvas { cursor: none; }
.featured-stage.fg-fullscreen .fg-screen { cursor: default; }
.featured-stage.fg-fullscreen .fg-screen button,
.featured-stage.fg-fullscreen .fg-screen .fg-path,
.featured-stage.fg-fullscreen .fg-quit,
.featured-stage.fg-fullscreen .fg-mute-pill { cursor: pointer; }
body.fg-fullscreen-lock { overflow: hidden; }

/* During the wave intro the fullscreen game stage is masked along the wave's
   diagonal so the live website stays visible in the unswept region. As the wave
   sweeps from upper-left to lower-right, the game is progressively revealed
   behind it. --fg-wave-x is the percent reveal along the 135deg diagonal (0→100). */
.featured-stage.fg-intro-masked {
  -webkit-mask-image: linear-gradient(
    135deg,
    black 0%,
    black var(--fg-wave-x, 0%),
    transparent var(--fg-wave-x, 0%),
    transparent 100%
  );
  mask-image: linear-gradient(
    135deg,
    black 0%,
    black var(--fg-wave-x, 0%),
    transparent var(--fg-wave-x, 0%),
    transparent 100%
  );
}
/* During the intro the stage element is reparented to <body> so its z-index 100000
   wins globally without us needing to strip positioning off the rest of the page.
   We just lock scroll for the duration; the website's nav, sections, stars all
   stay rendered normally behind the masked stage. */
body.fg-intro-active { overflow: hidden; }

/* fullscreen Wind Waker-style wave intro — drawn via canvas inside this container */
.fg-wash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100002;
  background: transparent;
  overflow: hidden;
}
.fg-wash canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* the page's other sections all have z-index:1 (creating stacking contexts) which
   bottle up the fullscreen stage. Drop their positioning while the game runs. */
body.fg-fullscreen-lock main,
body.fg-fullscreen-lock section,
body.fg-fullscreen-lock header,
body.fg-fullscreen-lock footer,
body.fg-fullscreen-lock article,
body.fg-fullscreen-lock nav,
body.fg-fullscreen-lock .nav { z-index: auto !important; position: static !important; }
body.fg-fullscreen-lock #stars { display: none !important; }

/* ----- in-game HUD (faithful to the original Gemini code) ----- */

.fg-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-family: 'Archivo', sans-serif;
  color: white;
  --fg-ui: #E0F7FA;       /* overridden per-cartridge by JS */
}

/* small bordered info panel, top-left */
.fg-panel {
  position: absolute;
  top: 1.25rem; left: 1.25rem;
  width: 285px;
  padding: 0.6rem 0.7rem;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5);
  transform: scale(0.78);
  transform-origin: top left;
  transition: opacity 0.3s, filter 0.3s;
}
.fg-panel.fg-ghost { opacity: 0.2; filter: blur(2px); }

.fg-header {
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.fg-species {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-ui);
  margin-bottom: 0.1rem;
}
.fg-lvl {
  font-family: 'Archivo Black', sans-serif;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: white;
  line-height: 1;
}

/* health bar with stripe overlay (matches original StatBar) */
.fg-statbar { margin-bottom: 0.5rem; }
.fg-statbar-label {
  display: flex; justify-content: space-between;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 9px;
  color: white;
  margin-bottom: 0.2rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.fg-statbar-track {
  position: relative;
  width: 100%; height: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}
.fg-statbar-fill {
  height: 100%;
  background: linear-gradient(90deg, #dc2626, #f87171);
  position: relative;
  transition: width 0.25s ease-out;
}
.fg-statbar-fill::after {
  content: '';
  position: absolute; left: 0; top: 0;
  width: 100%; height: 40%;
  background: rgba(255, 255, 255, 0.3);
}
.fg-statbar-stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent 19%, rgba(0,0,0,0.7) 19%, rgba(0,0,0,0.7) 20%);
  pointer-events: none;
}
.fg-statbar.fg-crit .fg-statbar-track { border-color: #ef4444; animation: fg-crit-pulse 0.6s ease-in-out infinite alternate; }
.fg-statbar.fg-crit .fg-statbar-fill { background: #dc2626; }
@keyframes fg-crit-pulse {
  from { box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
  to   { box-shadow: 0 0 14px rgba(239, 68, 68, 0.7); }
}

/* squares row: dash + ability + 3 stat tiles */
.fg-squares {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.fg-sq {
  width: 38px; height: 38px;
  position: relative;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fg-sq-bg {
  position: absolute; bottom: 0; left: 0; width: 100%;
  background: rgba(34, 211, 238, 0.3);
  transition: height 0.1s;
}
.fg-sq-icon {
  position: relative; z-index: 1;
  font-size: 17px;
  color: #888;
  line-height: 1;
}
.fg-sq.fg-ready { border-color: var(--fg-ui); box-shadow: 0 0 10px rgba(34, 211, 238, 0.3); }
.fg-sq.fg-ready .fg-sq-icon { color: var(--fg-ui); }
.fg-sq.fg-ready .fg-sq-bg { display: none; }
.fg-sq.fg-locked .fg-sq-icon { color: #555; font-size: 13px; }

.fg-sq-stat-label {
  position: absolute; top: 2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 6px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.fg-sq-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 11px;
  margin-top: 6px;
  color: var(--fg-ui);
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* mutation strip — bottom-left */
.fg-mutations {
  position: absolute;
  bottom: 1rem; left: 1rem;
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  max-width: 60vw;
  pointer-events: auto;
}
.fg-mut-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
.fg-mut-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
/* active mutations get a key pip + cooldown overlay */
.fg-mut-pill.fg-mut-active {
  position: relative;
  padding-right: 1.6rem;
  border-color: rgba(255, 214, 110, 0.55);
  overflow: hidden;
}
.fg-mut-pill.fg-mut-active.fg-ready {
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(255, 214, 110, 0.6);
}
.fg-mut-key {
  display: inline-flex; align-items: center; justify-content: center;
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px;
  font-size: 9px; font-weight: 700;
  border-radius: 4px;
  background: rgba(255, 214, 110, 0.18);
  border: 1px solid rgba(255, 214, 110, 0.55);
  color: var(--gold);
  z-index: 2;
}
.fg-mut-pill.fg-mut-active.fg-ready .fg-mut-key {
  background: var(--gold);
  color: #0a0a14;
  animation: fg-key-pulse 1.4s ease-in-out infinite;
}
@keyframes fg-key-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 214, 110, 0.6); }
  50%      { box-shadow: 0 0 10px rgba(255, 214, 110, 0.9); }
}
.fg-mut-cd {
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 0%;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
  transition: height 0.1s linear;
  z-index: 1;
}

/* quit pill — bottom-right */
.fg-quit {
  position: absolute;
  bottom: 1rem; right: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(6px);
}
.fg-quit:hover { color: var(--magenta); border-color: var(--magenta); }
/* replay button — sits to the left of the quit pill */
#fg-replay-btn {
  /* extra left-offset is set inline so we don't have to re-measure quit width */
}

/* ----- screens (start / victory / dead) ----- */

.fg-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.75rem;
  background: rgba(3, 5, 13, 0.82);
  backdrop-filter: blur(8px);
  pointer-events: auto;
  z-index: 10;
  text-align: center;
  animation: fg-screen-in 0.3s ease;
  overflow-y: auto;
}

@keyframes fg-screen-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.fg-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.fg-eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; }
.fg-eyebrow-bad { color: var(--magenta); }

.fg-screen h3 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-light);
  line-height: 0.95;
  margin: 0;
}

.fg-screen p {
  color: var(--text-light-2);
  max-width: 44ch;
  font-size: 0.95rem;
}

.fg-tier-row {
  display: flex; align-items: center; gap: 0.85rem;
}
.fg-tier-emoji { font-size: 2.25rem; line-height: 1; }
.fg-tier-label {
  font-family: 'Archivo Black', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
}
.fg-tier-legendary { background: var(--gold); color: var(--ink); }
.fg-tier-epic      { background: var(--magenta); color: white; }
.fg-tier-rare      { background: var(--violet, #b794f4); color: white; }
.fg-tier-uncommon  { background: var(--teal); color: var(--ink); }
.fg-tier-common    { background: rgba(255,255,255,0.12); color: var(--text-light); border: 1px solid rgba(255,255,255,0.25); }

.fg-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 0.75rem 1.5rem;
  margin: 0.25rem 0 0.5rem;
}
.fg-stats > div { text-align: center; }
.fg-stats strong {
  display: block;
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.35rem;
  color: var(--gold);
  letter-spacing: -0.01em;
  line-height: 1;
}
.fg-stats span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light-3);
}

.fg-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  width: 100%;
  max-width: 520px;
  margin: 0.5rem 0;
}
/* 3-way fork: tighten width and stretch grid */
.fg-paths.fg-paths-3 {
  grid-template-columns: 1fr 1fr 1fr;
  max-width: 720px;
}
.fg-paths.fg-paths-4 {
  grid-template-columns: 1fr 1fr 1fr 1fr;
  max-width: 920px;
}
.fg-paths.fg-paths-1 { grid-template-columns: 1fr; max-width: 320px; }
.fg-path {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  color: var(--text-light);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  position: relative;
}
.fg-path:hover {
  background: rgba(255, 197, 34, 0.08);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.fg-path-letter {
  position: absolute;
  top: 0.6rem; right: 0.7rem;
  font-family: 'Archivo Black', sans-serif;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.fg-path strong {
  font-family: 'Archivo Black', sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fg-path small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light-3);
}

.fg-actions {
  display: flex; gap: 0.65rem; flex-wrap: wrap; justify-content: center;
  margin-top: 0.5rem;
}
.fg-actions .btn {
  font-size: 12px;
  padding: 0.65rem 1.1rem;
}

.fg-breadcrumbs {
  display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center;
  margin: 0.5rem 0;
}
.fg-crumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-light-2);
}

/* ----- title menu (rich) ----- */

.fg-screen-menu {
  /* the menu floats over the canvas — fish + crown render through */
  background:
    linear-gradient(180deg, rgba(3, 5, 13, 0.55) 0%, rgba(3, 5, 13, 0) 25%, rgba(3, 5, 13, 0) 75%, rgba(3, 5, 13, 0.55) 100%);
  backdrop-filter: none;
  cursor: pointer;
  pointer-events: auto;
}

.fg-screen-menu .fg-menu-top { position: absolute; top: 5%; left: 0; right: 0; text-align: center; padding: 0 1rem; }
.fg-screen-menu .fg-menu-bottom { position: absolute; bottom: 5%; left: 0; right: 0; text-align: center; padding: 0 1rem; }

.fg-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.8rem, 5.5vw, 4rem);
  letter-spacing: -0.025em;
  line-height: 0.9;
  text-transform: uppercase;
  margin: 0;
  color: var(--text-light);
  text-align: center;
  background: linear-gradient(180deg, #fffbe5 0%, #ffd66e 50%, #ff7a3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 14px rgba(255, 122, 60, 0.5)) drop-shadow(0 0 12px rgba(0,0,0,0.6));
}

.fg-title small {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(11px, 1.2vw, 14px);
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-top: 0.6rem;
  -webkit-text-fill-color: var(--gold);
  filter: none;
}

.fg-click-prompt {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: white;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6), 0 0 24px rgba(255, 197, 34, 0.4);
  margin: 0;
  animation: fg-pulse-text 1.4s ease-in-out infinite;
}

@keyframes fg-pulse-text {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.04); }
}

.fg-mute-pill {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--text-light);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(6px);
}
.fg-mute-pill:hover { color: var(--gold); border-color: var(--gold); }

/* ----- mutation grant card on the victory screen ----- */

.fg-mutation-grant {
  margin: 0.5rem 0;
  padding: 0.7rem 1.1rem;
  background: linear-gradient(135deg, rgba(255, 197, 34, 0.12), rgba(255, 122, 60, 0.12));
  border: 1.5px dashed var(--gold);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.fg-mutation-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.fg-mutation-grant strong {
  font-family: 'Archivo Black', sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-light);
}

@media (max-width: 600px) {
  .fg-stats { grid-template-columns: repeat(2, auto); gap: 0.6rem 1rem; }
  .fg-paths { grid-template-columns: 1fr; }
  .fg-hud-meta { gap: 0.65rem; }
  .fg-hud-stat em { font-size: 15px; }
  .fg-dash { width: 90px; }
}

@media (max-width: 900px) {
  .featured { padding: 3rem 0; }
  .featured-inner { grid-template-columns: 1fr; gap: 2rem; padding: 0 1.25rem; }
  .featured-stage { aspect-ratio: 4 / 3; }
}

/* ============================================================
   SECTION HEADER
   ============================================================ */

section { max-width: var(--max); margin: 0 auto; padding: 4rem 2rem; }

@media (max-width: 720px) { section { padding: 2.5rem 1.25rem; } }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.section-head h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--text-light);
}

.section-head .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light-3);
}

/* ============================================================
   FILTERS
   ============================================================ */

.filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
  color: var(--text-light-2);
  cursor: pointer;
  transition: all 0.1s;
  backdrop-filter: blur(8px);
}

.filter:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
  color: var(--text-light);
}

.filter.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

/* ============================================================
   CARD GRID — real YouTube thumbnails as the cards
   ============================================================ */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 12px 40px -10px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255,255,255,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  color: var(--ink);
  box-shadow:
    0 24px 60px -10px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255,255,255,0.1),
    0 0 50px -10px rgba(255, 43, 110, 0.3);
}

.card-thumb {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: var(--void-2);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-thumb img { transform: scale(1.04); }

/* play-button overlay */
.card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.35));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.card:hover .card-thumb::after { opacity: 1; }

.card-thumb .play {
  position: absolute;
  bottom: 12px; right: 12px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 0, 51, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.card:hover .card-thumb .play { opacity: 1; transform: scale(1); }

.card-body {
  padding: 1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.tag {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  display: inline-block;
}

.tag.prompt     { background: var(--indigo); color: white; }
.tag.experiment { background: var(--magenta); color: white; }
.tag.article    { background: var(--gold); color: var(--ink); }
.tag.game       { background: var(--teal); color: white; }

.card h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.card p {
  font-size: 0.9rem;
  color: var(--ink-3);
  line-height: 1.45;
}

.card-footer {
  margin-top: auto;
  padding-top: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* featured card */
.card.featured { grid-column: span 2; }
.card.featured h3 { font-size: 1.4rem; font-family: 'Archivo Black', sans-serif; }
.card.featured p  { font-size: 1rem; }

@media (max-width: 720px) {
  .card.featured { grid-column: auto; }
}

/* ============================================================
   ABOUT STRIP
   ============================================================ */

.about-strip {
  /* override the global `section { max-width: var(--max) }` so the band fills the screen */
  max-width: none;
  width: 100%;
  margin: 4rem 0 0;
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--indigo-deep) 0%, var(--void-3) 100%);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

.about-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(255, 197, 34, 0.18), transparent 50%),
    radial-gradient(ellipse at 85% 50%, rgba(255, 43, 110, 0.18), transparent 50%);
  pointer-events: none;
}

.about-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;        /* horizontal padding lives on the inner container now */
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.about-inner h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.about-inner p {
  color: var(--text-light-2);
  max-width: 60ch;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.socials { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.social {
  width: 46px; height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  color: var(--text-light);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  transition: all 0.15s;
  backdrop-filter: blur(10px);
}

.social:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.social svg { width: 20px; height: 20px; }

@media (max-width: 720px) {
  .about-strip { padding: 3.5rem 0; }
  .about-inner { grid-template-columns: 1fr; gap: 1.5rem; padding: 0 1.25rem; }
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(4, 4, 10, 0.55);
  margin-top: 2rem;
  padding: 1.75rem 0 1.5rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light-3);
}

.footer-links { display: flex; gap: 1.25rem; }

.site-footer a { color: var(--text-light-2); }
.site-footer a:hover { color: var(--gold); }

@media (max-width: 720px) {
  .footer-inner { padding: 0 1.25rem; gap: 0.75rem; font-size: 10.5px; }
}

/* ============================================================
   POST PAGE — bright "page" panel on dark space
   ============================================================ */

.post-wrap {
  max-width: var(--max-r);
  margin: 2rem auto;
  padding: 0 1.5rem;
}

@media (max-width: 600px) {
  .post-wrap { margin: 1.25rem auto; padding: 0 1rem; }
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light-2);
  margin-bottom: 1.5rem;
  padding: 0.45rem 0.9rem 0.45rem 0.55rem;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  transition: all 0.15s;
}

.post-back:hover {
  background: rgba(255,255,255,0.12);
  color: var(--gold);
  border-color: var(--gold);
}

/* video embed — full bleed at top of post */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--void-2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8);
  margin-bottom: 2rem;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* video stats bar */
.video-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin: -0.5rem 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-light-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.video-stats strong {
  color: var(--text-light);
  font-weight: 600;
}

.video-stats .yt-link {
  margin-left: auto;
  color: var(--magenta);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.video-stats .yt-link:hover { color: var(--gold); }

@media (max-width: 600px) {
  .video-stats { font-size: 11px; gap: 0.5rem 1rem; }
  .video-stats .yt-link { margin-left: 0; width: 100%; padding-top: 0.25rem; }
}

/* the post page is rendered inside a "paper" panel */
.post-panel {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 3rem 3rem 3.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
  margin-bottom: 2rem;
}

@media (max-width: 720px) {
  .post-panel { padding: 1.75rem 1.5rem 2.25rem; }
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }

.post-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  color: var(--ink);
}

.post-excerpt {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1.5px solid var(--paper-3);
  font-weight: 500;
}

.post-body { font-size: 1.05rem; color: var(--ink-2); }

.post-body h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.55rem;
  margin: 2.5rem 0 0.85rem;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.post-body h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 2rem 0 0.6rem;
  color: var(--ink);
}

.post-body p { margin-bottom: 1.1rem; }
.post-body strong { color: var(--ink); font-weight: 700; }
.post-body em     { color: var(--ink); font-style: italic; }

.post-body ul, .post-body ol { margin: 0 0 1.25rem 1.25rem; }
.post-body li { margin-bottom: 0.4rem; }

.post-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  color: var(--magenta-d);
}

.post-body dl.levels dt {
  font-family: 'Archivo Black', sans-serif;
  color: var(--ink);
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.post-body dl.levels dd {
  margin-left: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
  margin-bottom: 0.5rem;
}

.post-body a { color: var(--indigo); }
.post-body a:hover { color: var(--magenta); }

/* ============================================================
   CALLOUT
   ============================================================ */

.callout {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  background: var(--gold);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.97rem;
  border: 1.5px solid var(--gold-d);
}

.callout strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: 'Archivo Black', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ============================================================
   PROMPT BLOCK
   ============================================================ */

.prompt-block {
  margin: 2rem 0;
  border: 1.5px solid var(--paper-3);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.15);
}

.prompt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1rem 0.7rem 0.65rem;
  background: var(--paper-2);
  border-bottom: 1.5px solid var(--paper-3);
  gap: 0.75rem;
}

.prompt-head .who {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Archivo Black', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.prompt-head .who img {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  object-fit: cover;
}

.prompt-head .label-badge {
  display: inline-block;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  margin-left: 0.5rem;
  white-space: nowrap;
}

.copy-btn {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.copy-btn:hover { background: var(--magenta); }
.copy-btn.copied { background: var(--teal); }

.prompt-body {
  padding: 1.1rem 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 560px;
  overflow-y: auto;
}

.prompt-body::-webkit-scrollbar { width: 8px; }
.prompt-body::-webkit-scrollbar-track { background: var(--paper-2); }
.prompt-body::-webkit-scrollbar-thumb { background: var(--ink-3); border-radius: 4px; }

/* ============================================================
   COMMENTS
   ============================================================ */

.comments-section {
  margin-top: 2rem;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 2rem 2.5rem 2.5rem;
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
}

@media (max-width: 720px) { .comments-section { padding: 1.5rem 1.25rem; } }

.comments-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--ink);
}

.comments-head h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.comments-head .source {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.comments-head .source a { color: var(--magenta-d); font-weight: 600; }

.comment {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--paper-3);
}

.comment:last-child { border-bottom: 0; }

.comment .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  object-fit: cover;
}

.comment .avatar.initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Archivo Black', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  border: 0;
}

.comment .edited {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  background: var(--paper-2);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}

.comment .author-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 13px;
  margin-bottom: 0.3rem;
}

.comment .author {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  color: var(--ink);
  font-size: 13px;
}

.comment .author.is-uploader {
  background: var(--ink);
  color: var(--paper);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.comment .when {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}

.comment .pinned {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--paper-2);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.comment .text {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment .actions {
  margin-top: 0.4rem;
  display: flex;
  gap: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}

.comment .actions .like { display: inline-flex; align-items: center; gap: 0.3rem; }

.no-comments {
  text-align: center;
  color: var(--ink-3);
  font-style: italic;
  padding: 2rem 0;
}

/* ============================================================
   POST FOOTER / RELATED
   ============================================================ */

.post-end {
  margin-top: 4rem;
}

.post-end h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.related-grid .card-thumb { aspect-ratio: 16 / 9; }
.related-grid .card h3 { font-size: 0.92rem; }

/* ============================================================
   FADE-IN
   ============================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-page {
  max-width: var(--max-r);
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.about-page .post-panel { padding: 3rem; }

@media (max-width: 720px) {
  .about-page .post-panel { padding: 1.75rem 1.5rem 2.25rem; }
  .about-page .pull-avatar { width: clamp(120px, 38vw, 180px); }
}

.about-page .pull-avatar {
  float: right;
  width: clamp(140px, 22vw, 220px);
  margin: 0 0 1.5rem 1.5rem;
  border-radius: var(--radius);
  border: 3px solid var(--ink);
  box-shadow: 0 12px 30px -8px rgba(0,0,0,0.3);
}

@media (max-width: 600px) {
  .about-page .pull-avatar { float: none; margin: 0 0 1.5rem 0; }
}

/* ────────────────────────────────────────────────────────────
   ACCOUNT WIDGETS — auth, comments, leaderboard
   ──────────────────────────────────────────────────────────── */

/* sign-in widget in the nav */
.sk-auth { display: inline-flex; align-items: center; }
.sk-signin-btn {
  font: 600 13px/1 'Geist', system-ui, sans-serif;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff5d8, #ffd66e);
  color: #2a1a04;
  border: 1px solid rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.sk-signin-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255, 214, 110, 0.30); }
.sk-avatar-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--ink);
  cursor: pointer;
  font: 600 13px/1 'Geist', system-ui, sans-serif;
}
.sk-avatar-btn:hover { background: rgba(255,255,255,0.12); }
.sk-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.sk-avatar-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ff7ab8, #ffd66e); color: #2a1a04;
}
.sk-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* leaderboard panel */
.sk-leaderboard {
  background: rgba(15, 18, 28, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px;
}
.lb-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.lb-tab {
  font: 600 12px/1 'Geist', system-ui, sans-serif;
  padding: 8px 12px; border-radius: 8px;
  background: rgba(255,255,255,0.04); color: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.10); cursor: pointer;
}
.lb-tab.lb-active { background: linear-gradient(135deg, #fff5d8, #ffd66e); color: #2a1a04; border-color: transparent; }
.lb-level-select {
  margin-bottom: 10px; padding: 6px 10px; border-radius: 8px;
  background: rgba(255,255,255,0.06); color: var(--ink); border: 1px solid rgba(255,255,255,0.10);
  font: 500 12px 'JetBrains Mono', monospace;
}
.lb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lb-row {
  display: grid;
  grid-template-columns: 28px 28px 1fr auto auto;
  align-items: center; gap: 10px;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(255,255,255,0.02);
  font: 500 13px 'Geist', system-ui, sans-serif;
}
.lb-row:nth-child(1) { background: linear-gradient(90deg, rgba(255, 214, 110, 0.18), transparent); }
.lb-row:nth-child(2) { background: linear-gradient(90deg, rgba(180, 200, 220, 0.15), transparent); }
.lb-row:nth-child(3) { background: linear-gradient(90deg, rgba(208, 132, 80, 0.15), transparent); }
.lb-rank { font-weight: 700; color: var(--gold); text-align: right; }
.lb-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.lb-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ff7ab8, #ffd66e); color: #2a1a04; font: 700 12px 'Geist', sans-serif;
}
.lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-value { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.lb-sub { color: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.lb-empty { color: var(--ink-3); padding: 12px 0; }
.sk-leaderboard.lb-loading .lb-body { opacity: 0.6; }

/* comments */
.sk-comments {
  background: rgba(15, 18, 28, 0.45);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px;
}
.cmt-form-wrap { margin-bottom: 16px; }
.cmt-form { display: flex; flex-direction: column; gap: 8px; }
.cmt-textarea {
  width: 100%; min-height: 70px; resize: vertical;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,0.05); color: var(--ink);
  border: 1px solid rgba(255,255,255,0.12);
  font: 500 14px/1.5 'Geist', system-ui, sans-serif;
}
.cmt-textarea:focus { outline: none; border-color: var(--gold); }
.cmt-form-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cmt-as { color: var(--ink-3); font-size: 12px; }
.cmt-submit { padding: 8px 16px; }
.cmt-error { color: #ff7ab8; font-size: 12px; margin: 0; }
.cmt-signin-cta {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 12px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
}
.cmt-signin-cta p { margin: 0; color: var(--ink-2); }
.cmt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cmt-item { display: flex; gap: 12px; align-items: flex-start; }
.cmt-av { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.cmt-av-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ff7ab8, #ffd66e); color: #2a1a04; font: 700 14px 'Geist', sans-serif;
}
.cmt-body { flex: 1; min-width: 0; }
.cmt-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 4px; }
.cmt-name { font-weight: 700; color: var(--ink); font-size: 14px; }
.cmt-time { color: var(--ink-3); font-size: 11px; }
.cmt-text { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; word-wrap: break-word; }
.cmt-empty { color: var(--ink-3); padding: 8px 0; list-style: none; }

/* score-submit prompt inside the fish game UI */
.fg-score-submit {
  position: absolute; left: 50%; top: 70%; transform: translate(-50%, 0);
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 214, 110, 0.40);
  padding: 12px 18px; border-radius: 10px;
  color: var(--ink); font: 500 13px 'Geist', system-ui, sans-serif;
  z-index: 8;
}
.fg-score-submit p { margin: 0 0 8px; }
.fg-score-submit button { font: 600 12px 'Geist', sans-serif; padding: 6px 14px; }

/* avatar dropdown menu */
.sk-auth-in { position: relative; }
.sk-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 180px;
  background: rgba(20, 22, 32, 0.97);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.45);
  z-index: 999;
  display: flex; flex-direction: column; gap: 2px;
}
.sk-menu-item {
  text-align: left;
  background: transparent; border: 0;
  color: var(--ink); padding: 8px 10px;
  border-radius: 6px; cursor: pointer;
  font: 500 13px/1 'Geist', system-ui, sans-serif;
}
.sk-menu-item:hover { background: rgba(255,255,255,0.08); }
