/* ============================================================
   PLOT HOLE — Game Styles (app.css)
   Requires: css/theme.css loaded first for design tokens
   ============================================================ */

/* --- Icon Sizing ---
   Unified FA icon sizes across the app.
   Icons inherit color from parent; sizes set here.
   Using `em` so icons scale with their text context. */

/* Pill buttons (nav + actions) */
.pill-btn-icon i         { font-size: 0.8rem; }

/* Inline with body text (clues, results, banners, modals) */
.ret-msg i,
.streak-banner i,
.streak-warning i,
.result-vibe i,
.modal-section i,
.accordion-body i,
.milestone-hof i,
.catchup-title i,
.countdown i,
.past-clue i,
.progression i           { font-size: 1em; vertical-align: -0.05em; }

/* Buttons — icon matches text */
.btn i,
.btn-gold i,
.btn-share i,
.celeb-continue i,
.sp-btn i                { font-size: 1em; margin-right: 5px; }

/* Large display (score, celebration, result hero) */
.score-display i,
.celeb-title i,
.celeb-answer i,
.celeb-score i,
.celeb-streak i,
.celeb-unlock i,
.result-answer i         { font-size: 1em; }

/* Stats grid values */
.stats-grid .sg-val i    { font-size: 1em; }

/* Small helper/meta text */
.dist-title i,
.stat-label i            { font-size: 0.9em; }

/* Result grid blocks — stars */
.result-grid .block i    { font-size: 1rem; }

/* Links row at bottom of result */
.result-footer i,
.back-today i            { font-size: 1em; margin-right: 3px; }


/* --- Header --- */
header {
  width: 100%;
  max-width: 700px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 0;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
}

/* Desktop: contents lets children participate in header grid */
.header-row {
  display: contents;
}
.header-row .logo {
  grid-row: 1 / 3;
  grid-column: 1;
}
.header-row .header-nav {
  grid-row: 2;
  grid-column: 2;
  justify-self: end;    /* push nav cluster to the right edge of its column */
  margin-left: 18px;    /* GUARANTEED gap from logo even when 1fr column collapses */
}

/* --- Logo --- */
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-family: var(--font-logo);
  font-size: 1.9rem;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}
.logo { will-change: opacity; }
.logo:hover { opacity: 0.8; }
.logo-plot {
  color: var(--text-primary);
  letter-spacing: 2px;
}
.logo-strip {
  display: flex;
  flex-direction: column;
  background: var(--text-primary);
  border-radius: 2px;
  line-height: 1;
}
.logo-sp-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 5px;
  position: relative;
  overflow: hidden;
}
.logo-sp {
  width: 7px;
  height: 5px;
  border-radius: 1.5px;
  background: var(--bg-base);
  opacity: 0.85;
  visibility: hidden;
}
.logo-sp-row::after {
  content: '';
  position: absolute;
  top: 2px;
  left: -8.5px;
  width: calc(100% + 120px);
  height: 5px;
  background: var(--bg-base);
  opacity: 0.85;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13.5' height='5'%3E%3Crect width='7' height='5' rx='1.5' fill='white'/%3E%3C/svg%3E");
  -webkit-mask-repeat: repeat-x;
  -webkit-mask-size: 13.5px 5px;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13.5' height='5'%3E%3Crect width='7' height='5' rx='1.5' fill='white'/%3E%3C/svg%3E");
  mask-repeat: repeat-x;
  mask-size: 13.5px 5px;
  transform: translateX(-54px);
}
.logo:hover .logo-sp-row::after {
  animation: sprocketScroll 0.4s linear infinite;
}
@keyframes sprocketScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-13.5px); }
}
/* On-load "threads the film" intro (Ryan's original, restored from bdd9f51 /
   lost in fd07ea9): the perforations roll through, then lock to rest. */
.logo-animate .logo-sp-row::after {
  animation: sprocketLoad 2s forwards;
  transform: none;
}
.logo-loaded .logo-sp-row::after {
  animation: none;
  transform: translateX(-54px);
}
@keyframes sprocketLoad {
  0%    { transform: translateX(0); animation-timing-function: linear; }
  62.5% { transform: translateX(-40.5px); animation-timing-function: ease-out; }
  100%  { transform: translateX(-54px); }
}
.logo-frame {
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 2px 10px 3px;
}
.logo-hole {
  font-family: var(--font-logo);
  font-size: 1.7rem;
  letter-spacing: 2px;
  margin-right: -2px;
  color: #b3812f;
  line-height: 1;
}
[data-theme="dark"] .logo-strip {
  background: linear-gradient(135deg, #f5d99a 0%, #edc678 50%, #d9a03e 100%);
  box-shadow: 0 0 18px rgba(237,198,120,0.18);
}
[data-theme="dark"] .logo-hole {
  color: #1c1210;
}
/* Tagline */
.tagline {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--color-gold);
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: right;
  padding: 4px 0;
  grid-row: 1;
  grid-column: 2 / 4;
  justify-self: end;
}

/* --- Navigation (pill buttons row) --- */
.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

/* Short labels hidden on desktop */
.pill-btn-label-short { display: none; }

/* --- Theme Toggle (circular, icon only, matches pill-btn height) --- */
.theme-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  background: none;
  color: var(--text-faint);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.theme-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* Header controls */
.header-controls { display: flex; align-items: center; gap: 4px; margin-left: 4px; grid-row: 2; grid-column: 3; }
.hamburger-btn { display: none; }

/* --- "More" overflow dropdown (wide bar). On mobile (<=980px) these items flow
   into the hamburger list instead — see the media block below. --- */
.nav-more { position: relative; display: flex; align-items: center; }
.nav-more-toggle { cursor: pointer; }
.nav-more-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 1200;
  display: none; flex-direction: column; gap: 2px; min-width: 172px;
  background: var(--bg-surface, #1c1c24); border: 1px solid var(--border-default);
  border-radius: 12px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.nav-more.open .nav-more-menu { display: flex; }
.nav-more-menu .pill-btn { width: 100%; justify-content: flex-start; border: none; border-radius: 8px; padding: 9px 12px; gap: 10px; }
.nav-more-menu .pill-btn:hover { background: rgba(255, 255, 255, 0.06); }
.nav-more-menu .pill-btn .pill-btn-label { display: inline; }
.nav-more-menu .pill-btn .pill-btn-label-short { display: none; }
/* small NEW dot hint on the More button itself, offset to the corner */
.nav-more-badge { top: -4px; right: -4px; }

/* On mobile, drop the "More" wrapper so its items flow straight into the
   hamburger list (display:contents removes the wrapper boxes from layout). */
@media (max-width: 980px) {
  .nav-more, .nav-more-menu { display: contents; }
  .nav-more-toggle { display: none; }
}

/* "NEW" badge on the Movies nav link — self-contained (works on the standalone
   homepage too) and hidden once the user has visited /movies. Its own visited
   flag (data-movies-visited) so visiting Movie Club doesn't hide it. */
.nav-badge-movies {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 5px 1px;
  background: var(--color-gold);
  color: var(--color-on-gold, #0f0f13);
  font-family: var(--font-display);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  line-height: 1;
  border-radius: 3px;
  vertical-align: 2px;
  animation: navMoviesPulse 2.2s ease-in-out infinite;
}
@keyframes navMoviesPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(226, 184, 87, 0); transform: scale(1); }
  50%      { box-shadow: 0 0 10px rgba(226, 184, 87, 0.7); transform: scale(1.06); }
}
[data-movies-visited="1"] .nav-badge-movies { display: none; }

/* "Badly" mini-game NEW badge — on the "More" button + its menu item, on every
   page (homepage + layout). Own visited flag (data-badly-visited) so it pulses
   until the user has actually tried /badly. */
.nav-badge-badly {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 5px 1px;
  background: var(--color-gold);
  color: var(--color-on-gold, #0f0f13);
  font-family: var(--font-display);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  line-height: 1;
  border-radius: 3px;
  vertical-align: 2px;
  animation: navMoviesPulse 2.2s ease-in-out infinite;
}
[data-badly-visited="1"] .nav-badge-badly { display: none; }

/* Movie DNA "NEW" badge — was only styled in layout.twig, so on the homepage
   it rendered as unstyled anchor-blue text. Same treatment as the other nav
   badges; hidden once the user has visited /profile (data-clubs-visited is
   the flag layout.twig uses for this class). */
.nav-new-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 5px 1px;
  background: var(--color-gold);
  color: var(--color-on-gold);
  font-family: var(--font-display);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  line-height: 1;
  border-radius: 3px;
  vertical-align: 2px;
  animation: navMoviesPulse 2.2s ease-in-out infinite;
}
[data-clubs-visited="1"] .nav-new-badge { display: none; }

/* Mobile only: the nav (and its "More → NEW" badge) hides behind the hamburger,
   so put a pulsing NEW dot on the hamburger itself until /badly has been tried.
   The hamburger is display:none on desktop, so this ::after never shows there. */
.hamburger-btn::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 1.5px solid var(--bg-base, #0f0f13);
  box-shadow: 0 0 6px rgba(226, 184, 87, 0.85);
  animation: navMoviesPulse 2.2s ease-in-out infinite;
}
[data-badly-visited="1"] .hamburger-btn::after { display: none; }

/* Mobile + phone-landscape: hamburger menu. 980px catches iPhone 17 Pro Max
   in landscape (~956px viewport) where six full-label pills + logo + tagline
   don't fit and the Movie Club item silently overflowed off the right edge. */
@media (max-width: 980px) {
  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
  }
  .header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .tagline {
    width: 100%;
    text-align: center;
    padding: 4px 0;
  }
  .header-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(12px + env(safe-area-inset-top, 0px));
    pointer-events: none;
  }
  .header-controls > * { pointer-events: auto; }
  /* Uniform circular buttons */
  .header-controls .theme-btn,
  .hamburger-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-default);
    background: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;   /* anchor for the "Badly" NEW dot */
    transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
  }
  .header-controls .theme-btn:hover,
  .hamburger-btn:hover { border-color: var(--color-gold); color: var(--color-gold); }
  .hamburger-btn.open {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--bg-surface);
  }
  /* Nav drawer — below entire header */
  .header-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 4px 0;
  }
  .header-nav.open {
    display: flex;
    animation: menuReveal 0.25s ease;
  }
  @keyframes menuReveal {
    from { opacity: 0; clip-path: inset(0 0 100% 0); }
    to { opacity: 1; clip-path: inset(0 0 0 0); }
  }
  .header-nav .pill-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 16px 20px;
    border: none;
    border-radius: 0;
    gap: 14px;
    transition: background var(--transition-fast);
  }
  .header-nav .pill-btn:hover,
  .header-nav .pill-btn.active {
    background: var(--bg-elevated);
    border: none;
  }
  .header-nav .pill-btn.active .pill-btn-icon,
  .header-nav .pill-btn.active .pill-btn-label-short {
    color: var(--color-gold);
  }
  .header-nav .pill-btn-icon {
    font-size: 1rem;
    width: 22px;
    justify-content: center;
    color: var(--text-faint);
  }
  .header-nav .pill-btn-label-short {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-secondary);
  }
  .header-nav .theme-btn { display: none; }
  .pill-btn-label { display: none; }
  .pill-btn-label-short { display: inline; }
}

/* Drawer-only nav rows: hidden on desktop (those jobs live elsewhere —
   Save is a header icon, Stats opens from the streak tap, How to Play is
   in the footer/HELP), shown in the mobile hamburger drawer. */
.nav-mobile-only { display: none !important; }
@media (max-width: 980px) {
  .header-nav .nav-mobile-only { display: flex !important; }
}

/* --- Pill Buttons (nav + actions) --- */
.pill-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  background: none;
  padding: 0 10px 0 8px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.pill-btn:hover { border-color: var(--color-gold); }
.pill-btn:hover .pill-btn-icon { color: var(--color-gold); }
.pill-btn-icon { font-size: 0.8rem; color: var(--text-faint); transition: color 0.3s; display: flex; }
.pill-btn-label,
.pill-btn-label-short { font-size: 0.63rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-display); }
.pill-btn.active .pill-btn-icon { color: var(--color-gold); }
.pill-btn.active .pill-btn-label,
.pill-btn.active .pill-btn-label-short { color: var(--color-gold); }
.pill-btn:hover .pill-btn-label,
.pill-btn:hover .pill-btn-label-short { color: var(--color-gold); }
.pill-btn.active { border-color: var(--color-gold); }

@keyframes fireShake {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-12deg) scale(1.2); }
  30% { transform: rotate(10deg) scale(1.3); }
  45% { transform: rotate(-8deg) scale(1.2); }
  60% { transform: rotate(6deg) scale(1.15); }
  75% { transform: rotate(-3deg) scale(1.1); }
}
.pill-btn-icon.fire-shake { animation: fireShake 0.6s ease; }

/* --- Site Footer (shared) --- */
.site-footer {
  width: 100%;
  max-width: 700px;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
  border-top: 1px solid var(--border-default);
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-faint);
}
.site-footer a {
  color: var(--text-faint);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.site-footer a:hover { color: var(--color-gold); }
.footer-dot { margin: 0 2px; color: var(--text-ghost); }

/* External "rate us" badge that sits above the small site-footer link bar */
.site-rate-badge {
  width: 100%;
  max-width: 700px;
  margin: 24px auto 20px;
  padding: 0 16px;
  text-align: center;
  line-height: 0;
}
.site-rate-badge a {
  display: inline-block;
  border-radius: 27px;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(155, 90, 220, 0.15);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.site-rate-badge a:hover {
  transform: translateY(-1px);
  box-shadow:
    0 6px 22px rgba(0, 0, 0, 0.65),
    0 0 30px rgba(155, 90, 220, 0.28);
}
.site-rate-badge img {
  display: block;
  max-width: 100%;
  height: auto;
}
.site-rate-badge + .site-footer {
  border-top: none;
  padding-top: 0;
}

/* --- Supporter CTA (homepage, above site-footer) --- */
.supporter-cta {
  width: 100%;
  max-width: 700px;
  margin: 24px auto 0;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md, 10px);
  background: var(--bg-surface, rgba(255, 255, 255, 0.02));
}
.supporter-cta-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex: 1 1 240px;
  min-width: 0;
}
.supporter-cta-text i { color: var(--color-gold); }
.supporter-cta-btn {
  background: var(--gradient-gold-btn);
  color: var(--color-on-gold);
  padding: 9px 18px;
  font-size: 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm), var(--glow-gold-ambient);
}
.supporter-cta-btn:hover {
  background: var(--gradient-gold-btn-hover);
  box-shadow: var(--shadow-md), var(--glow-gold-strong);
  color: var(--color-on-gold);
}
@media (max-width: 480px) {
  .supporter-cta { justify-content: center; text-align: center; }
  .supporter-cta-text { justify-content: center; flex-basis: 100%; }
}


/* --- Layout --- */
body {
  min-height: 100dvh;
  touch-action: pan-y;
}

.page-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom, 0);
  overflow-x: clip;
}

.container {
  width: 100%;
  max-width: 700px;
  padding: 12px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.game { display: flex; flex-direction: column; }
/* Center game view, but let result fill from top */
.container:has(.result) { justify-content: flex-start; }


/* --- Progress Pips (film-strip frames) --- */
.pip-row {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 14px;
  position: relative;
}
/* connecting strip behind the frames */
.pip-row::before {
  content: '';
  position: absolute; top: 50%; left: 12%; right: 12%;
  height: 1px; background: var(--border-subtle);
}
.pip {
  width: 30px; height: 38px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 0.8rem;
  background:
    /* sprocket holes: top and bottom rows */
    repeating-radial-gradient(circle at 6px 4px, var(--bg-base) 0 1.5px, transparent 1.5px 100%) 0 0 / 13px 8px repeat-x,
    repeating-radial-gradient(circle at 6px 4px, var(--bg-base) 0 1.5px, transparent 1.5px 100%) 0 100% / 13px 8px repeat-x,
    var(--bg-inset);
  background-clip: border-box;
  border: 1px solid var(--border-default);
  color: var(--text-faint);
  position: relative;
  transition: all 0.3s;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.25);
}
.pip.correct {
  background: var(--gradient-gold-btn);
  border-color: var(--color-gold); color: var(--color-on-gold);
  box-shadow: 0 0 12px var(--color-gold-soft);
}
.pip.wrong {
  background: var(--bg-elevated);
  border-color: var(--color-crimson); color: var(--color-crimson);
  box-shadow: inset 0 0 10px var(--color-crimson-soft);
}
.pip.skipped {
  background: var(--bg-inset); border-color: var(--border-subtle); color: var(--text-ghost);
}
.pip.current {
  background: var(--bg-surface);
  border-color: var(--color-gold); border-width: 1.5px; color: var(--color-gold);
  box-shadow: 0 0 10px var(--color-gold-soft), inset 0 1px 4px rgba(0,0,0,0.2);
  animation: pipPulse 2s ease-in-out infinite;
}
@keyframes pipPulse {
  0%, 100% { box-shadow: 0 0 8px var(--color-gold-soft), inset 0 1px 4px rgba(0,0,0,0.2); }
  50%      { box-shadow: 0 0 18px 4px var(--color-gold-soft), inset 0 1px 4px rgba(0,0,0,0.2); }
}


/* --- Current Clue Card --- */
.clue-card.clue-unseen {
  opacity: 0.5;
  border-style: dashed;
}
.clue-card {
  background: var(--bg-surface);
  background-image:
    linear-gradient(180deg, rgba(245,217,154,0.06) 0%, transparent 18%),
    var(--gradient-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm), var(--glow-gold-ambient);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

/* The projector beam lands on the current clue — a light cone rises from the
   active card so the atmosphere points at the puzzle. Dark theme only (the
   matinee has the house lights up); #clue-card is the in-game current card. */
[data-theme="dark"] #clue-card { position: relative; }
[data-theme="dark"] #clue-card::before {
  content: '';
  position: absolute;
  left: 50%; bottom: 100%;
  width: 86%; height: 170px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(237,198,120,0.015) 35%,
    rgba(237,198,120,0.05) 75%,
    rgba(245,217,154,0.09) 100%);
  clip-path: polygon(34% 0, 66% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
[data-theme="dark"] #clue-card {
  box-shadow: var(--shadow-sm), 0 -14px 40px rgba(237,198,120,0.07), var(--glow-gold-ambient);
}

.clue-card-num {
  font-family: var(--font-display);
  font-size: 0.65rem; font-weight: 700; color: var(--color-orange);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 6px;
}

.clue-card-text {
  font-size: 1rem; line-height: 1.5; color: var(--text-primary);
}

.clue-card-header {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 6px;
}
.clue-card-header .clue-card-num { margin-bottom: 0; }
.clue-card-guess {
  font-size: 0.7rem; font-weight: 600; padding: 3px 10px;
  border-radius: var(--radius-pill); white-space: nowrap;
}
.clue-card-guess.wrong {
  background: var(--bg-elevated); color: var(--text-faint);
}
.clue-card-guess.correct {
  background: rgba(237,198,120, 0.12); color: var(--color-gold);
}
.clue-card-guess.skip {
  background: var(--bg-elevated); color: var(--text-faint); font-style: italic;
}

/* --- Past Clues --- */
.past-clue {
  display: flex; align-items: baseline; gap: 8px;
  padding: 4px 12px; font-size: 0.75rem; color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}
.past-clue:last-of-type { border-bottom: none; }
.past-clue-num {
  font-family: var(--font-display);
  font-weight: 800; color: var(--text-faint); min-width: 14px;
}
.past-clue-text { flex: 1; }
.past-clue-guess { color: var(--color-crimson); opacity: 0.85; text-decoration: line-through; font-size: 0.7rem; }
.past-clue-guess.skip { color: var(--text-faint); opacity: 1; text-decoration: none; font-style: italic; }


/* --- Input Area --- */
.input-area {
  margin-top: 8px; display: flex; flex-direction: column; gap: 6px; flex-shrink: 0;
}

.input-area input {
  width: 100%; padding: 12px 20px; font-size: 0.95rem;
  font-family: var(--font-body);
  background: var(--bg-surface); border: 2px solid var(--border-default); border-radius: var(--radius-pill);
  color: var(--text-primary); outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.input-area input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px var(--color-gold-soft);
}
.input-area input::placeholder { color: var(--text-faint); }

/* iOS Safari auto-zooms the page when focusing any input under 16px. The
   viewport meta used to suppress that with maximum-scale=1.0, which also
   blocked pinch-zoom on Android (WCAG 1.4.4). maximum-scale is gone, so on
   touch widths every text input must render at >=16px — !important because
   several modal inputs set smaller sizes inline from app.js. Do not remove
   without restoring maximum-scale, or the guess box zooms the layout. */
@media (max-width: 768px) {
  input[type="text"], input[type="email"], input:not([type]), textarea, select {
    font-size: 16px !important;
  }
}

.input-row { display: flex; gap: 8px; align-items: stretch; }
.btn-row { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.input-wrap { flex: 1; position: relative; }
.input-wrap input { width: 100%; }


/* --- Autocomplete --- */
.ac-list {
  position: absolute; bottom: 100%; left: 0; right: 0;
  background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  margin-bottom: 4px; overflow: hidden; z-index: 500;
  box-shadow: var(--shadow-md);
}
.ac-item {
  padding: 8px 14px; font-size: 0.85rem; color: var(--text-secondary);
  cursor: pointer; border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.active { background: var(--bg-elevated); color: var(--color-gold); }
.ac-match { color: var(--color-gold); font-weight: 700; }


/* --- Buttons --- */
.btn {
  padding: 10px 20px;
  font-family: var(--font-display);
  font-size: 0.75rem; font-weight: 700;
  border: none; border-radius: var(--radius-pill); cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  text-transform: uppercase; letter-spacing: 1.5px;
  box-shadow: var(--shadow-sm);
}
.btn:hover {
  box-shadow: var(--shadow-md);
}
.btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: var(--shadow-sm);
}
.btn-guess {
  background: var(--gradient-gold-btn); color: var(--color-on-gold);
  box-shadow: var(--shadow-sm), var(--glow-gold-ambient);
  position: relative; overflow: hidden;
}
.btn-guess::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transition: none;
}
.btn-guess:hover {
  background: var(--gradient-gold-btn-hover);
  box-shadow: var(--shadow-md), var(--glow-gold-strong);
}
.btn-guess:hover::after {
  left: 120%;
  transition: left 0.5s ease;
}

.btn-skip {
  background: none; border: 1px solid var(--border-default); color: var(--text-muted);
  padding: 8px 12px; font-size: 0.65rem;
  box-shadow: none;
}
.btn-skip:hover {
  border-color: var(--text-muted); color: var(--text-secondary);
  transform: none; box-shadow: none;
}


/* --- Result Screen (Inset Layout) --- */
.result { display: flex; flex-direction: column; gap: 20px; }

.res-hero-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
@media (min-width: 521px) {
  .res-hero-card { margin-top: 12px; }
}
.res-hero-top {
  padding: 18px 20px 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  background: linear-gradient(135deg, rgba(237,198,120,0.06) 0%, rgba(237,198,120,0.02) 100%);
  position: relative;
}
.res-poster-wrap { position: relative; flex-shrink: 0; }
.res-poster {
  width: 110px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-md);
  display: block;
}
.res-poster-link { display: block; line-height: 0; cursor: pointer; transition: transform 0.15s ease; }
.res-poster-link:hover { transform: translateY(-2px); }
.res-poster-link:active { transform: scale(0.97); }
.res-score-overlay {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
}
.res-poster-wrap { margin-bottom: 14px; }
/* Score-overlay anchor: keeps the pill glued to the poster's bottom edge even
   when an in-flow element (the Rate link) follows it inside the wrap. */
.res-poster-frame { position: relative; }
/* "Rate this movie →" cross-funnel link into popcornjury.com/m/{slug}. Sits in
   normal flow directly under the poster; margin-top clears the score-overlay
   pill (hangs 16px below the poster). Quiet butter-gold — same PJ accent as
   the res-next-game popcornjury button. */
.res-rate-link {
  display: block;
  margin-top: 26px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-gold);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.res-rate-link:hover { color: var(--color-gold-hover); text-decoration: underline; }
.res-score-overlay .score-display-val {
  font-size: 1rem;
  padding: 2px 14px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.12), inset 0 1px 2px rgba(0,0,0,0.08), var(--shadow-sm);
}
.res-score-inline { margin: 4px 0; }
.res-hero-text { flex: 1; padding-bottom: 4px; }

/* Result-card relayout: row 1 (res-hero-top) = poster | title+desc;
   row 2 (res-below) = score grid + every action, centered under it. */
.res-below {
  max-width: 360px;
  margin: 0 auto;
  padding: 14px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}
.res-below .result-meta { justify-content: center; }
.res-below .result-grid { gap: 6px; }
.res-below .result-grid .block {
  width: 28px; height: 28px; font-size: 1.4rem; line-height: 28px;
}
.res-below .res-action-row { margin-top: 0; }

.result-answer {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 800; color: var(--color-gold); line-height: 1.2;
}
.result-vibe { font-size: 0.8rem; color: var(--text-secondary); font-style: italic; margin: 4px 0 2px; }
.result-meta {
  font-size: 0.85rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
}
.result-grid { display: inline-flex; gap: 5px; }
.result-grid .block {
  width: 22px; height: 22px; font-size: 1.1rem; line-height: 22px; text-align: center;
}
.res-hero-top .result-grid { gap: 6px; }
.res-hero-top .result-meta { margin-top: 10px; }
@media (max-width: 520px) {
  .res-hero-top .result-meta { justify-content: center; }
}
.res-hero-top .result-grid .block {
  width: 28px; height: 28px; font-size: 1.4rem; line-height: 28px;
}
.res-hero-top .block.gold {
  filter: drop-shadow(0 0 4px rgba(237,198,120, 0.5));
}
.res-hero-top .block.gold i { font-weight: 900; }
.block.gold { color: var(--color-gold); }
.block.red { color: var(--color-red); }
.res-day-pill {
  font-size: 0.7rem; font-weight: 700; color: var(--text-muted);
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill); padding: 2px 10px;
  white-space: nowrap;
}
.block.dark { color: var(--border-default); }

/* Sponsor strip */
/* Sponsor slot: a deliberate, framed card so a paid placement reads as premium
   (and the spot looks worth buying), not as stray text under the timer. */
.res-sponsor-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: fit-content;
  max-width: 380px;
  margin: 16px auto 6px;
  padding: 14px 22px 13px;
  background: linear-gradient(180deg, rgba(226,184,87,0.07), rgba(226,184,87,0.015));
  border: 1px solid rgba(226,184,87,0.22);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.04);
  font-family: var(--font-display);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.res-sponsor-strip:hover {
  border-color: rgba(226,184,87,0.36);
  box-shadow: 0 6px 22px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.05);
}
/* Quiet centered "your brand could be here" copy on unsold days */
.res-sponsor-attr {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

/* Sponsor card: framed logo tile + name/tagline */
.sp-card {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  text-decoration: none !important;
}
.sp-logo {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  object-fit: contain;
  padding: 7px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  flex-shrink: 0;
}
/* Popcorn Jury ad kernel burst — fixed-position puffs that spray OUT of the ad
   card across the result screen (js/app.js pjAdBurst). Not clipped by anything. */
.pjad-burst { position: fixed; z-index: 9999; pointer-events: none; transform: translate(-50%, -50%); }
.pjad-bit {
  position: absolute; left: 0; top: 0; display: block; opacity: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.55)) drop-shadow(0 0 5px rgba(255,255,255,.4));
  animation: pjadBurst 1.5s cubic-bezier(.16,.8,.35,1) forwards;
}
.pjad-bit svg { display: block; width: 100%; height: 100%; }
@keyframes pjadBurst {
  0%   { opacity: 0; transform: translate(-50%,-50%) scale(.3) rotate(0deg); }
  12%  { opacity: 1; transform: translate(-50%,-50%) scale(1.12) rotate(0deg); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx,0px)), calc(-50% + var(--dy,-30px))) scale(.65) rotate(var(--rot,120deg)); }
}
@media (prefers-reduced-motion: reduce) { .pjad-burst { display: none !important; } }

.sp-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: left;
}
.sp-eyebrow {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
}
.sp-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1.2;
}
a.sp-card:hover .sp-name { text-decoration: underline; }
.sp-tag {
  font-size: 0.73rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.35;
}
.res-sponsor-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: rgba(226,184,87,0.55) !important;
  text-decoration: none !important;
  transition: color 0.15s;
}
.res-sponsor-cta:hover { color: var(--color-gold) !important; }
/* Quiet "advertise here" nudge shown under the house ad on unsold days. */
/* "Want this spot?" — a subtle pill, clearly secondary to the sponsor */
.sp-sell {
  display: inline-block;
  margin-top: 1px;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid rgba(226,184,87,0.28);
  text-align: center;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(226,184,87,0.72) !important;
  text-decoration: none !important;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.sp-sell:hover {
  color: var(--color-gold) !important;
  border-color: rgba(226,184,87,0.55);
  background: rgba(226,184,87,0.08);
}
.res-sponsor-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Hero body: streak + countdown */
.res-hero-body {
  padding: 14px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.res-streak-countdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.res-sc-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.res-sc-card.streak {
  background: linear-gradient(135deg, rgba(237,198,120,0.07) 0%, var(--bg-elevated) 100%);
  border: 1px solid rgba(237,198,120,0.12);
}
.res-sc-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.res-sc-card.streak .res-sc-label i { font-size: 0.85rem; }
.res-streak-val {
  display: flex;
  align-items: center;
  gap: 8px;
}
.res-streak-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-gold);
  line-height: 1;
  letter-spacing: -0.5px;
}
.res-streak-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  font-family: var(--font-display);
  font-weight: 600;
}
.res-streak-green { color: var(--color-green); font-weight: 800; font-size: 0.85rem; }
.res-streak-red { color: var(--color-red); font-weight: 700; font-size: 0.8rem; }
.res-cd-time {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-top: 2px;
  letter-spacing: -0.5px;
}

/* Milestones — Spotlight + Road */
.res-milestones {
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}
.res-ms-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
/* Spotlight card — next milestone */
.res-ms-spot {
  background: linear-gradient(135deg, rgba(237,198,120,0.06) 0%, var(--bg-elevated) 100%);
  border: 1px solid rgba(237,198,120,0.12);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.res-ms-spot-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--color-gold);
  flex-shrink: 0;
  position: relative;
}
.res-ms-spot-icon::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
}
.res-ms-spot-icon.ring-25::after  { border-top-color: var(--color-gold); }
.res-ms-spot-icon.ring-50::after  { border-top-color: var(--color-gold); border-right-color: var(--color-gold); }
.res-ms-spot-icon.ring-75::after  { border-top-color: var(--color-gold); border-right-color: var(--color-gold); border-bottom-color: var(--color-gold); }
.res-ms-spot-icon.ring-100::after { border-color: var(--color-gold); }
.res-ms-spot-body { flex: 1; min-width: 0; }
.res-ms-spot-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1px;
}
.res-ms-spot-sub {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
  line-height: 1.3;
}
.res-ms-bar {
  background: var(--bg-surface);
  border-radius: var(--radius-pill);
  height: 5px;
  overflow: hidden;
}
.res-ms-bar-fill {
  height: 100%;
  background: var(--color-gold);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 8px rgba(237,198,120,0.3);
  transition: width 0.8s ease;
}
.res-ms-bar-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: right;
}
/* Road — all milestones */
.res-ms-road {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  padding: 0 6px;
}
.res-ms-road::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 22px;
  right: 22px;
  height: 3px;
  background: var(--bg-elevated);
  border-radius: 2px;
}
.res-ms-road-fill {
  position: absolute;
  top: 16px;
  left: 22px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(237,198,120,0.3);
}
.res-ms-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 60px;
}
.res-ms-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}
.res-ms-dot.reached {
  background: var(--color-gold);
  color: var(--color-on-gold);
  box-shadow: 0 0 12px rgba(237,198,120,0.35);
}
.res-ms-dot.next {
  background: var(--bg-surface);
  border: 2px solid var(--color-gold);
  color: var(--color-gold);
  animation: msPulse 2s ease-in-out infinite;
}
.res-ms-dot.future {
  background: var(--bg-elevated);
  color: var(--text-faint);
  border: 1px solid var(--border-subtle);
}
@keyframes msPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(237,198,120,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(237,198,120,0); }
}
.res-ms-stop-info { text-align: center; }
.res-ms-stop-day {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-primary);
}
.res-ms-stop-reward {
  font-size: 0.6rem;
  color: var(--text-muted);
  line-height: 1.3;
}
.res-ms-stop.future .res-ms-stop-day { color: var(--text-faint); }
.res-ms-stop.future .res-ms-stop-reward { color: var(--text-ghost); }
@media (max-width: 520px) {
  .container:has(.result) { padding-top: 12px; }
  .result { gap: 14px; }
  .res-hero-top { flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-top: 12px; }
  .res-hero-text { text-align: center; }
  .result-meta { justify-content: center; }
  .res-poster { width: 120px; }
  .res-ms-stop { width: 50px; }
  .res-ms-stop-day { font-size: 0.62rem; }
  .res-ms-stop-reward { font-size: 0.52rem; }
  .res-ms-dot { width: 28px; height: 28px; font-size: 0.7rem; }
  .res-ms-road::before, .res-ms-road-fill { top: 14px; }
  .res-streak-countdown { grid-template-columns: 1fr; }
}

/* Push prompt (pill card) */
.bell-shake {
  display: inline-block;
  animation: bellShake 1.5s ease 1s 2;
}
@keyframes bellShake {
  0%, 100% { transform: rotate(0); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-12deg); }
  30% { transform: rotate(10deg); }
  40% { transform: rotate(-8deg); }
  50% { transform: rotate(0); }
}
.res-push-card {
  background: var(--bg-surface);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 0;
}
.res-push-text { flex: 1; }
.res-push-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1.2;
}
.res-push-sub {
  font-size: 0.68rem;
  color: var(--text-secondary);
  line-height: 1.3;
}
.res-push-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.res-push-yes {
  padding: 8px 16px !important;
  font-size: 0.75rem !important;
  border-radius: var(--radius-pill) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.res-push-no {
  padding: 8px 16px;
  font-size: 0.75rem;
  background: none;
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
}
@media (max-width: 520px) {
  .res-push-card {
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    flex-wrap: wrap;
  }
  .res-push-btns { width: 100%; justify-content: center; }
}

/* Clue reveal (inside hero card) */
.res-clue-section { border-top: 1px solid var(--border-subtle); }
.res-clue-toggle {
  width: 100%;
  padding: 14px 20px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.res-clue-toggle i:first-child { font-size: 0.95rem; }
.res-clue-toggle:hover { color: var(--text-secondary); }
.res-clue-chevron {
  margin-left: auto;
  font-size: 0.6rem;
  transition: transform 0.3s ease;
}
.res-clue-toggle.open .res-clue-chevron { transform: rotate(180deg); }
.res-clue-section .clue-stack { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.res-clue-section .clue-stack.collapsed { display: none; }

/* Action row (inside hero top) */
.res-action-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.res-action-row .btn-share { flex: 1; text-transform: none; letter-spacing: 0; font-size: 0.8rem; padding: 10px 14px; }
.res-ranking-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.res-ranking-btn:hover { border-color: var(--color-gold); color: var(--color-gold); }
@media (max-width: 520px) {
  .res-action-row { width: 100%; }
}

/* Movie DNA prompt on the result screen — the live-updated identity moment */
.res-dna-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-md, 12px);
  background: linear-gradient(135deg, rgba(226,184,87,0.14), rgba(226,184,87,0.03));
  border: 1px solid var(--color-gold);
  text-decoration: none;
}
.res-dna-row:hover { background: linear-gradient(135deg, rgba(226,184,87,0.20), rgba(226,184,87,0.05)); }

/* Result-screen entity links into the SEO graph (movie / director / actor chips) */
.res-ent-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
}
.res-ent-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border-default);
  border-radius: 50px;
  background: var(--bg-base);
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
}
.res-ent-chip:hover { border-color: var(--color-gold); color: var(--color-gold); }
.res-ent-chip i { font-size: 0.68rem; opacity: 0.75; }
.res-ent-movie { border-color: var(--color-gold); color: var(--color-gold); }
.res-dna-ic {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-gold-soft, rgba(226,184,87,0.15));
  color: var(--color-gold);
  font-size: 0.95rem;
}
.res-dna-text { flex: 1; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.res-dna-top {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-muted);
}
.res-dna-iq { font-family: var(--font-display); font-weight: 800; color: var(--text-primary); font-size: 1rem; }
.res-dna-cta { font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; color: var(--color-gold); white-space: nowrap; }

/* Competitive context (above share button) */
.res-comp-ctx {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 6px;
  line-height: 1.3;
}
.res-comp-ctx.gold { color: var(--color-gold); }

/* Share preview (emoji grid near button) */
.res-share-preview {
  font-size: 1.15rem;
  letter-spacing: 2px;
  margin-top: 8px;
  line-height: 1.4;
  opacity: 0.75;
}

/* Ranking row (below share button, demoted) */
.res-ranking-row { margin-top: 6px; }
.res-ranking-link {
  font-size: 0.7rem;
  color: var(--text-faint);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.res-ranking-link:hover { color: var(--color-gold); }

/* "Keep playing" — consolidated secondary actions (catch-up, Poster Round,
   ranking links) in one tidy block instead of stacked full-width banners. */
.res-keep-playing {
  margin-top: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 14px 16px;
}
.res-kp-title {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-faint);
  margin-bottom: 12px;
}
/* Flatten nested cards so the block reads as one group, not boxes-in-a-box. */
.res-keep-playing .res-catchup-card,
.res-keep-playing .poster-round-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0 0 12px;
  animation: none;
}
.res-keep-playing .res-catchup-card.redeem .catchup-title { color: var(--color-gold); }
.res-keep-playing .res-ranking-row:first-child { margin-top: 0; }

/* Lower section (own rounded container) */
.res-hero-lower {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Distribution card */
.res-dist-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

/* Catch-up card */
.res-catchup-card {
  background: var(--bg-surface);
  border: 1px solid var(--color-orange);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.res-catchup-card.redeem {
  border-color: var(--color-gold);
  animation: redeemBreath 2.6s ease-in-out 0.6s 1;
}
@keyframes redeemBreath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(237,198,120,0); }
  50%      { box-shadow: 0 0 18px 2px rgba(237,198,120,0.28); }
}
.catchup-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 6px 0 10px;
}
.catchup-cta {
  display: block;
  width: 100%;
  background: var(--gradient-gold-btn);
  color: var(--color-on-gold);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.catchup-cta:hover { filter: brightness(1.05); }
.catchup-cta:active { transform: translateY(1px); }
@media (min-width: 521px) {
  .catchup-cta { max-width: 320px; margin-left: auto; margin-right: auto; }
}

/* Stats grid */
.res-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.res-stat-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

/* Network next-game prompt */
/* Network next-game card — styled in TV Addict's brand palette (navy
   #131a2d/#1f2a44 + blue accent #5aa5f0 from tvaddict/css/theme.css dark
   theme) so the cross-promo button reads as the other game, not ours. */
.res-next-game-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-left: 3px solid #5aa5f0;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 12px;
  text-align: center;
}
.res-next-game-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.res-next-game-btn {
  display: inline-block;
  background: linear-gradient(135deg, #2a3654 0%, #1f2a44 60%, #131a2d 100%);
  color: #e8dcc8;
  border: 1px solid #5aa5f0;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 14px rgba(90, 165, 240, 0.18);
  transition: box-shadow .15s, border-color .15s, transform .15s;
}
.res-next-game-btn i { color: #5aa5f0; }
.res-next-game-btn:hover {
  border-color: #8cc2f5;
  box-shadow: 0 0 20px rgba(90, 165, 240, 0.32);
  transform: translateY(-1px);
}

/* Legacy compat */
.result-body { flex: 1; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.result-footer {
  flex-shrink: 0; display: flex; align-items: center;
  justify-content: space-between; padding-top: 10px;
  border-top: 1px solid var(--border-default); margin-top: 8px; gap: 12px;
}
.stats-row { display: flex; gap: 16px; align-items: flex-end; }
.stat-item { text-align: center; display: flex; flex-direction: column; justify-content: flex-end; }
.stat-value { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--color-gold); line-height: 1.2; }
.stat-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; font-family: var(--font-display); }

.btn-share {
  background: var(--gradient-gold-btn); color: var(--color-on-gold); padding: 10px 20px; font-size: 0.85rem;
  box-shadow: var(--shadow-sm), var(--glow-gold-ambient);
  position: relative; overflow: hidden;
}
.btn-share::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transition: none;
}
.btn-share:hover {
  background: var(--gradient-gold-btn-hover);
  box-shadow: var(--shadow-md), var(--glow-gold-strong);
}
.btn-share:hover::after {
  left: 120%;
  transition: left 0.5s ease;
}




/* --- SEO Footer (FAQ) --- */
.seo-footer {
  width: 100%; max-width: 700px;
  padding: 0 16px;
}

/* Collapsible FAQ wrapper */
.faq-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 0;
  cursor: pointer;
  user-select: none;
}
.faq-toggle-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color var(--transition-fast);
}
.faq-toggle-icon {
  font-size: 0.45rem;
  color: var(--text-ghost);
  transition: transform var(--transition-normal), color var(--transition-fast);
}
.faq-toggle-btn:hover .faq-toggle-label { color: var(--text-muted); }
.faq-toggle-btn:hover .faq-toggle-icon { color: var(--text-faint); }
.faq-toggle.is-open .faq-toggle-icon {
  transform: rotate(180deg);
  color: var(--text-faint);
}
.faq-toggle-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}
.faq-toggle.is-open .faq-toggle-body {
  max-height: 500px;
  opacity: 1;
}

/* FAQ List */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 8px;
}

.faq-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: background var(--transition-fast);
}
.faq-item:hover { background: var(--color-gold-soft); }

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  cursor: pointer;
  transition: color var(--transition-fast);
  user-select: none;
}

.faq-q {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
}
.faq-item.is-open .faq-q { color: var(--text-primary); }

.faq-chevron {
  font-size: 0.5rem;
  color: var(--text-ghost);
  transition: transform var(--transition-normal), color var(--transition-fast);
  flex-shrink: 0;
}
.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: var(--color-gold);
}

.faq-answer {
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--text-secondary);
  padding: 0 12px;
  letter-spacing: 0.01em;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
}
.faq-item.is-open .faq-answer {
  max-height: 200px;
  opacity: 1;
  padding-bottom: 10px;
}
.faq-answer a { color: var(--color-gold); text-decoration: none; }
.faq-answer a:hover { color: var(--color-gold-hover); }



/* --- Mystery Poster Placeholder --- */
.mystery-row {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
/* In-game score cluster runs compact — the clue is the star of this screen.
   (Result-screen .score-display-val overlays keep the full-size ticket.) */
.score-area .score-display { padding: 0 0 4px; }
.score-area .score-display-val {
  font-size: 1.6rem;
  padding: 2px 22px;
  letter-spacing: 3px;
}
.score-area .score-display-sub { margin-top: 4px; padding: 2px 10px; }
.mystery-row .score-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mystery-poster-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(120px, 25vw);
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 2px dashed var(--border-default);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.mystery-poster-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-gold-soft) 0%, transparent 50%, var(--color-gold-soft) 100%);
  opacity: 0.5;
}
.mystery-poster-q {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--border-default);
  position: relative;
  user-select: none;
  animation: mysteryPulse 3s ease-in-out infinite;
}
@keyframes mysteryPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

/* --- Live Score Display --- */
.score-display {
  text-align: center; padding: 4px 0 8px;
  display: flex; flex-direction: column; align-items: center;
}
.score-display-val {
  font-family: var(--font-logo);
  font-size: 2rem; font-weight: 400; letter-spacing: 3px;
  transition: color 0.3s;
  display: inline-block;
  background: var(--score-pill-bg);
  padding: 4px 28px;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  position: relative;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.12);
  /* ticket-stub punch holes */
  -webkit-mask: radial-gradient(circle 5px at 0 50%, transparent 98%, #000) left,
                radial-gradient(circle 5px at 100% 50%, transparent 98%, #000) right;
  -webkit-mask-size: 51% 100%;
  -webkit-mask-repeat: no-repeat;
  mask: radial-gradient(circle 5px at 0 50%, transparent 98%, #000) left,
        radial-gradient(circle 5px at 100% 50%, transparent 98%, #000) right;
  mask-size: 51% 100%;
  mask-repeat: no-repeat;
}
.score-display-val.s5,
.score-display-val.s4,
.score-display-val.s3,
.score-display-val.s2,
.score-display-val.s1 { color: var(--color-gold); }
.score-display-val.s0 { color: var(--text-muted); }
.score-display-sub {
  font-size: 0.65rem; color: #777788; margin-top: 6px; margin-bottom: 0;
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  padding: 2px 14px;
  transition: color 0.3s;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.06);
}
[data-theme="dark"] .score-display-sub {
  text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
}
.score-sub-num { font-size: 1rem; font-weight: 800; vertical-align: -0.08em; margin: 0 1px; }
.score-sub-streak .score-sub-num { color: var(--color-gold); }
.score-sub-sep { margin: 0 4px; color: var(--text-faint); }
.score-sub-streak { cursor: pointer; margin-bottom: 8px; }
.score-sub-streak i { color: var(--color-orange); margin-right: -2px; font-size: 0.85rem; vertical-align: -0.05em; }
@keyframes scoreDrop {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); color: var(--color-red); }
  100% { transform: scale(1); }
}
.score-display-val.dropping { animation: scoreDrop 0.5s ease; }


/* --- Wrong Guess Shake --- */
@keyframes guessShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.clue-card.shaking { animation: guessShake 0.4s ease; }
.input-area input.flash-red { border-color: var(--color-crimson) !important; transition: border-color 0s; }
.input-area input.flash-gold { border-color: var(--color-gold) !important; transition: border-color 0s; }


/* --- Confetti --- */
.confetti-container {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 9500; overflow: hidden;
}
.confetti-piece {
  position: absolute; width: 8px; height: 8px; border-radius: 2px;
  opacity: 0; animation: confettiFall 1.8s ease forwards;
}
@keyframes confettiFall {
  0% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translateY(100vh) rotate(720deg) scale(0.3); }
}


/* --- Score Distribution --- */
.dist-section { padding: 8px 0; }
.dist-title {
  font-family: var(--font-display);
  font-size: 0.65rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}
.dist-row {
  display: flex; align-items: center; gap: 6px;
  padding: 2px 0; font-size: 0.7rem;
}
.dist-label { width: 14px; text-align: right; color: var(--text-muted); font-weight: 700; flex-shrink: 0; font-family: var(--font-display); }
.dist-bar-wrap { flex: 1; height: 18px; background: var(--border-subtle); border-radius: var(--radius-sm); overflow: hidden; }
.dist-bar {
  height: 100%; border-radius: var(--radius-sm); min-width: 2px;
  background: var(--text-ghost); transition: width 0.6s ease;
}
.dist-bar.you { background: var(--color-gold); }
.dist-pct { width: 28px; font-size: 0.65rem; color: var(--text-faint); text-align: right; flex-shrink: 0; }


/* --- Countdown --- */
.countdown { color: var(--text-muted); }
.countdown span { font-family: var(--font-display); font-weight: 700; color: var(--text-primary); }
.res-cd-time .countdown,
.res-cd-time .countdown span { color: var(--text-primary); font-family: var(--font-display); font-weight: 900; }


/* --- Share Toast --- */
.share-toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: var(--text-primary); color: var(--bg-base); padding: 10px 20px;
  border-radius: var(--radius-pill); font-weight: 700; font-size: 0.85rem;
  opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 99999;
  box-shadow: var(--shadow-md);
}
.share-toast.show { opacity: 1; }


/* --- Streak & Retention --- */
.streak-warning {
  text-align: center; padding: 8px 0;
}
.streak-warning .sw-streak {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 800; color: var(--color-gold);
}
.streak-warning .sw-threat { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }

.streak-banner {
  text-align: center; padding: 4px 0 8px;
  cursor: pointer;
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 600;
  color: var(--text-muted); letter-spacing: 0.03em;
  transition: opacity var(--transition-fast);
}
.streak-banner:active { opacity: 0.7; }
.streak-banner i { color: var(--color-orange); font-size: 0.7rem; vertical-align: 0.02em; margin-right: 1px; }
.streak-num { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--color-gold); line-height: 1; vertical-align: -0.08em; margin: 0 2px; }

.ret-msg {
  text-align: center; padding: 8px 12px; margin-bottom: 8px;
  border-radius: var(--radius-sm); font-size: 0.75rem; line-height: 1.4;
  background: var(--bg-surface); border: 1px solid var(--border-default); color: var(--text-secondary);
  cursor: pointer; transition: opacity var(--transition-fast);
}
.ret-msg:active { opacity: 0.7; }
.ret-msg.catchup { cursor: default; }
.ret-msg.broke { border-color: var(--color-red); color: var(--color-red); }
.ret-msg.frozen { border-color: var(--color-blue); color: var(--color-blue); }
.ret-msg.milestone { border-color: var(--color-gold); color: var(--color-gold); }
.ret-msg.catchup { border-color: var(--color-orange); color: var(--color-orange); }


/* --- Catch-up Cards --- */
.catchup-title {
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 700; color: var(--color-orange);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px;
}


/* --- Clue Reveal Toggle --- */
.clue-toggle {
  background: none; border: 1px solid var(--border-default); border-radius: var(--radius-pill);
  color: var(--text-muted); padding: 8px 16px; font-size: 0.75rem; font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer; width: 100%; text-align: center; margin-top: 14px;
  transition: all var(--transition-fast);
}
.clue-toggle:hover { border-color: var(--text-muted); color: var(--text-secondary); }
.clue-stack.collapsed { display: none; }


/* --- Result extras --- */
.result-rank { font-family: var(--font-display); font-size: 1.8rem; font-weight: 900; margin: 4px 0 2px; }
.result-rank-sub { font-size: 0.8rem; color: var(--text-muted); }
.result-vibe { font-size: 0.8rem; color: var(--text-secondary); font-style: italic; margin: 8px 0 2px; }
.share-row { display: flex; justify-content: center; padding: 6px 0; }
.share-row .btn-share { width: 100%; }


/* --- Progression (first-time) --- */
.progression {
  text-align: center; padding: 12px 0; border-top: 1px solid var(--border-default); margin-top: 8px;
}
.progression .prog-cta { font-size: 0.85rem; color: var(--text-primary); font-weight: 600; }
.progression .prog-ladder {
  font-size: 0.7rem; color: var(--text-muted); margin-top: 6px; line-height: 1.6;
}


/* --- Celebration Overlay --- */
.celeb {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh;
  background: var(--overlay-bg);
  /* Blur what's behind: bright result-screen elements ghost through even
     a 97%-opaque backdrop on OLED screens */
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: flex-start;
  flex-direction: column; z-index: 9000;
  opacity: 1; transition: opacity 1s ease;
  text-align: center; padding: 20px;
  overflow-y: auto;
}
/* Overflow-safe vertical centering: these spacers absorb the free space
   (content centers) and collapse to zero when content is taller than the
   window — plain justify-content:center pushes the top of the content
   above the viewport where scrolling can't reach it (clipped poster on
   short windows). `safe center` fixes it too, but Safari ignores it. */
.celeb::before, .celeb::after {
  content: '';
  flex: 0 0 auto;
  margin: auto;
}
@media (max-width: 520px) {
  .celeb { padding: 16px 16px 20px; justify-content: flex-start; }
  .celeb-poster { margin-bottom: 2px; }
  .celeb-poster img { width: 44px; border-radius: 6px; }
  .celeb-title.win { font-size: 1.4rem; }
  .celeb-title.lose { font-size: 1rem; }
  .celeb-result-block { margin-top: 0; }
  .celeb-title { margin-bottom: 0; line-height: 1; }
  .celeb-title.win { font-size: 1.2rem; letter-spacing: 2px; }
  .celeb-puzzle-num { display: none; }
  .celeb-score-wrap { margin-top: 2px; }
  .celeb-score-pill { font-size: 1.3rem; padding: 2px 16px; }
  .celeb-emoji-grid { font-size: 1.1rem; letter-spacing: 1px; margin-top: 4px; }
  .celeb-status-block { margin-top: 8px; gap: 2px; }
  .celeb-stat { font-size: 0.82rem; }
  .celeb-stat-streak { font-size: 0.82rem; }
  .celeb-stat-muted { font-size: 0.72rem; }
  .celeb-share-nudge { display: none; }
  .celeb-share-primary { margin-top: 14px; padding: 12px 18px; font-size: clamp(0.7rem, 3.8vw, 0.88rem); }
  .celeb-ranking-link { margin-top: 10px; font-size: 0.72rem; }
  .celeb-continue-link { margin-top: 4px; font-size: 0.7rem; }
  .celeb-footer { margin-top: 12px; }
  .celeb-countdown { font-size: 0.7rem; }
  .celeb-score { margin-top: 2px; }
  .celeb-answer { margin-top: 4px; }
  .celeb-continue { margin-top: 10px; }
}
.celeb.out { opacity: 0; }

.celeb-continue {
  margin-top: 30px; z-index: 1;
  opacity: 0; animation: subIn 0.6s ease 3s forwards;
  background: none; border: 1px solid var(--border-default); color: var(--text-muted);
  padding: 10px 28px; border-radius: var(--radius-pill); font-size: 0.8rem;
  font-family: var(--font-display);
  font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  cursor: pointer; transition: all var(--transition-fast); pointer-events: auto;
}
.celeb-continue:hover { border-color: var(--color-gold); color: var(--color-gold); }

.celeb-glow {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 40%, var(--color-gold-soft) 0%, transparent 70%);
  opacity: 0; animation: glowIn 2s ease forwards;
  pointer-events: none;
}
@keyframes glowIn {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

/* Projector rays: slow-turning conic beams behind the ticket (wins only) */
.celeb-rays {
  position: absolute; top: 32%; left: 50%;
  width: 140vmax; height: 140vmax;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(
    from 0deg,
    rgba(237, 198, 120, 0.10) 0deg 9deg,
    transparent 9deg 30deg
  );
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 58%);
  mask-image: radial-gradient(circle, #000 0%, transparent 58%);
  opacity: 0; animation: raysIn 1.6s ease 0.3s forwards, raysTurn 90s linear infinite;
  pointer-events: none;
}
@keyframes raysIn { to { opacity: 1; } }
@keyframes raysTurn { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Film grain: faint static so the velvet has texture, not void */
.celeb-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.celeb-poster {
  z-index: 1;
  margin-bottom: 20px;
  opacity: 0;
  animation: posterIn 0.8s cubic-bezier(0.2, 0, 0.2, 1) 0.1s forwards;
}
.celeb-poster img {
  width: 180px;
  border-radius: var(--radius-md);
  display: block;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 4px 16px rgba(0,0,0,0.15);
}
@keyframes posterIn {
  0% { opacity: 0; transform: scale(0.7) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.celeb-title {
  font-family: var(--font-display);
  font-weight: 900; text-transform: uppercase;
  opacity: 0; animation: titleIn 0.8s ease 0.2s forwards;
  text-shadow: 0 0 40px var(--color-gold-soft);
  z-index: 1;
}
.celeb-title.win {
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  letter-spacing: 4px;
  color: transparent;
  background: linear-gradient(180deg, #fae6b8 0%, #edc678 42%, #b3812f 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.celeb-title.lose { font-size: clamp(1rem, 4vw, 1.4rem); color: var(--color-red); letter-spacing: 3px; text-shadow: none; }
@keyframes titleIn {
  0% { opacity: 0; transform: scale(0.3); }
  70% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

.celeb-score {
  margin-top: 20px; z-index: 1;
  opacity: 0; animation: subIn 0.6s ease 1s forwards;
}
/* Big paper ticket, stamped in like it just got punched at the door */
.celeb-score-pill {
  font-family: var(--font-logo);
  font-size: 2.6rem; font-weight: 400; letter-spacing: 4px;
  display: inline-block;
  background: linear-gradient(180deg, #fdf8ee 0%, #f0e6d2 100%);
  padding: 6px 34px;
  border: 1px solid rgba(179,129,47,0.35);
  border-radius: 5px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.10), 0 6px 28px rgba(237,198,120,0.25);
  -webkit-mask: radial-gradient(circle 7px at 0 50%, transparent 98%, #000) left,
                radial-gradient(circle 7px at 100% 50%, transparent 98%, #000) right;
  -webkit-mask-size: 51% 100%;
  -webkit-mask-repeat: no-repeat;
  mask: radial-gradient(circle 7px at 0 50%, transparent 98%, #000) left,
        radial-gradient(circle 7px at 100% 50%, transparent 98%, #000) right;
  mask-size: 51% 100%;
  mask-repeat: no-repeat;
  transform: rotate(-2deg);
  animation: celebStamp 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes celebStamp {
  0%   { opacity: 0; transform: scale(1.9) rotate(-14deg); }
  60%  { opacity: 1; transform: scale(0.94) rotate(0deg); }
  100% { opacity: 1; transform: scale(1) rotate(-2deg); }
}
.celeb-score-pill.s5, .celeb-score-pill.s4, .celeb-score-pill.s3,
.celeb-score-pill.s2, .celeb-score-pill.s1 { color: #b3812f; }
.celeb-score-pill.s0 { color: #7a695f; }

/* Film-frame pops: the score writ large, one frame per clue (Luminary's
   marquee stars, in Plot Hole's film-strip language) */
.celeb-frames {
  display: flex; justify-content: center; gap: 10px;
  margin-top: 14px; line-height: 1; z-index: 1;
}
.celeb-frame {
  width: clamp(34px, 9vw, 44px); height: clamp(42px, 11vw, 54px);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(1rem, 4vw, 1.3rem);
  opacity: 0; transform: scale(0) rotate(-25deg);
  animation: celebFramePop 0.65s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}
.celeb-frame.on {
  background: linear-gradient(180deg, #fae6b8 0%, #edc678 55%, #d9a03e 100%);
  border: 1px solid #f5d99a;
  color: #1c1210;
  box-shadow: 0 0 18px rgba(237, 198, 120, 0.45);
}
.celeb-frame.off {
  background: rgba(237, 198, 120, 0.05);
  border: 1px solid var(--border-subtle);
  color: rgba(237, 198, 120, 0.18);
}
@keyframes celebFramePop {
  0%   { opacity: 0; transform: scale(0) rotate(-25deg); }
  60%  { opacity: 1; transform: scale(1.28) rotate(7deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
.celeb-answer {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 2.2rem); font-weight: 900; color: var(--color-gold);
  margin-top: 16px; z-index: 1;
  opacity: 0; animation: subIn 0.6s ease 1.2s forwards;
}
.celeb-vibe {
  font-size: 0.85rem; color: var(--text-muted); font-style: italic;
  margin-top: 12px; z-index: 1;
  opacity: 0; animation: subIn 0.6s ease 1.6s forwards;
}
.celeb-streak {
  font-family: var(--font-display);
  font-size: 1rem; color: var(--color-gold); margin-top: 14px; z-index: 1;
  opacity: 0; animation: subIn 0.6s ease 2s forwards;
}
.celeb-unlock {
  font-size: 0.8rem; color: var(--color-orange); margin-top: 8px; z-index: 1;
  opacity: 0; animation: subIn 0.6s ease 2.4s forwards;
}
.celeb-comp-ctx {
  font-size: 0.95rem; color: var(--color-gold); font-weight: 700;
  margin-top: 12px; z-index: 1;
  opacity: 0; animation: subIn 0.6s ease 2.7s forwards;
}
@keyframes subIn {
  0% { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* --- New Celebration UI --- */
.celeb-result-block {
  z-index: 1; margin-top: 10px; text-align: center;
  opacity: 0; animation: subIn 0.5s ease 0.15s forwards;
}
.celeb-puzzle-num {
  font-size: 0.65rem; color: var(--text-faint); letter-spacing: 2px; text-transform: uppercase;
}
.celeb-score-wrap { margin-top: 6px; }
.celeb-emoji-grid {
  font-size: 1.5rem; letter-spacing: 3px; margin-top: 10px; line-height: 1;
}
.celeb-status-block {
  z-index: 1; margin-top: 12px;
  opacity: 0; animation: subIn 0.5s ease 0.2s forwards;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center;
  max-width: 420px;
}
.celeb-stat-muted { width: 100%; }
.celeb-stat, .celeb-stat-streak {
  display: inline-block; padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem; font-weight: 700;
}
.celeb-stat {
  color: var(--color-gold);
  border: 1px solid rgba(237, 198, 120, 0.45);
  background: rgba(237, 198, 120, 0.08);
}
.celeb-stat-streak {
  color: var(--color-orange);
  border: 1px solid rgba(224, 135, 90, 0.45);
  background: rgba(224, 135, 90, 0.08);
}
.celeb-stat-muted { font-size: 0.75rem; color: var(--text-faint); }
.celeb-share-nudge {
  font-size: 0.8rem; color: var(--text-muted); font-style: italic;
  margin-top: 10px; z-index: 1;
  opacity: 0; animation: subIn 0.5s ease 0.25s forwards;
}
.celeb-share-primary {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  line-height: 1.15;
  width: 100%; max-width: min(340px, 100%); margin-top: 18px; z-index: 1;
  white-space: nowrap;  /* CTA copy varies ("Think you can top this?") — one line, always */
  opacity: 0; animation: subIn 0.5s ease 0.3s forwards;
  background: linear-gradient(180deg, #fae6b8 0%, #edc678 45%, #c99a45 100%);
  color: #1c1210;
  border: none; border-radius: var(--radius-pill);
  padding: 15px 28px; font-family: var(--font-display);
  font-weight: 900; font-size: 0.95rem; letter-spacing: 1px;
  text-transform: uppercase; cursor: pointer;
  box-shadow: 0 6px 26px rgba(237, 198, 120, 0.30), inset 0 1px 0 rgba(255,255,255,0.65);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.celeb-share-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(237, 198, 120, 0.45), inset 0 1px 0 rgba(255,255,255,0.65);
}
/* Periodic shine sweep so the primary action keeps catching the eye */
.celeb-share-primary::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -80%; width: 50%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  animation: celebShine 3.6s ease-in-out 1.8s infinite;
}
@keyframes celebShine {
  0% { left: -80%; }
  28% { left: 130%; }
  100% { left: 130%; }
}
.celeb-ranking-link {
  display: block; margin-top: 12px; z-index: 1;
  opacity: 0; animation: subIn 0.5s ease 0.35s forwards;
  color: var(--text-muted); font-size: 0.75rem;
  text-decoration: none; font-family: var(--font-display);
  font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
}
.celeb-ranking-link:hover { color: var(--color-gold); }
.celeb-continue-link {
  display: block; margin-top: 6px; z-index: 1;
  opacity: 0; animation: subIn 0.5s ease 0.38s forwards;
  background: none; border: none;
  color: var(--text-faint); font-size: 0.72rem;
  cursor: pointer; text-decoration: underline;
  font-family: inherit; padding: 4px 0;
}
.celeb-continue-link:hover { color: var(--text-muted); }
.celeb-footer {
  margin-top: 18px; z-index: 1; text-align: center; width: 100%;
  opacity: 0; animation: subIn 0.5s ease 0.4s forwards;
}
.celeb-countdown { font-size: 0.72rem; color: var(--text-faint); }
.celeb-countdown span { font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.celeb-sponsor {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.68rem; color: var(--text-muted); margin-top: 12px; line-height: 1.45;
  padding: 12px 18px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(226,184,87,0.06), rgba(226,184,87,0.012));
  border: 1px solid rgba(226,184,87,0.18);
}
.celeb-sponsor a:hover .sp-name { text-decoration: underline; }
.celeb-sponsor .res-sponsor-cta { margin-top: 4px; font-size: 0.64rem; }
.celeb-sponsor .sp-card { justify-content: center; gap: 10px; }
.celeb-sponsor .sp-logo { width: 34px; height: 34px; border-radius: 8px; padding: 5px; margin: 0; }
.celeb-sponsor .sp-eyebrow { font-size: 0.55rem; }
.celeb-sponsor .sp-name { font-size: 0.85rem; }
.celeb-sponsor .sp-tag { font-size: 0.68rem; }


/* --- Trophy & Save Animations --- */
@keyframes trophyShake {
  0%, 3% { transform: rotate(0deg) scale(1); }
  4% { transform: rotate(0deg) scale(1.25); }
  6% { transform: rotate(-10deg) scale(1.25); }
  8% { transform: rotate(10deg) scale(1.2); }
  10% { transform: rotate(-8deg) scale(1.15); }
  12% { transform: rotate(8deg) scale(1.1); }
  14% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(0deg) scale(1); }
}
.trophy-shake { animation: trophyShake 5s ease-in-out 2; }
@keyframes saveNudge {
  0%, 86% { transform: rotate(0); }
  88% { transform: rotate(-4deg); }
  90% { transform: rotate(4deg); }
  92% { transform: rotate(-3deg); }
  94% { transform: rotate(3deg); }
  96% { transform: rotate(-1deg); }
  98%, 100% { transform: rotate(0); }
}
.save-pulse { animation: saveNudge 6s ease-in-out 2s 2; }


/* --- Modal --- */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.85); display: flex; align-items: center;
  justify-content: center; z-index: 10000;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}

.modal {
  position: relative;
  background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-lg);
  width: 92vw; max-width: 480px; max-height: 90vh;
  display: flex; flex-direction: column;
  overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-lg);
}
.modal > .modal-close {
  position: absolute; right: 12px; top: 10px; z-index: 1;
}

.hill-notif-modal {
  text-align: center;
  padding: 28px 22px 22px;
  max-width: 380px;
  border-color: var(--color-gold);
  box-shadow: 0 0 40px var(--color-gold-soft), var(--shadow-lg);
  animation: hillNotifIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes hillNotifIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hill-notif-icon {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 8px;
  animation: hillNotifPulse 2.4s ease-in-out infinite;
}
@keyframes hillNotifPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}
.hill-notif-eyebrow {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 6px;
}
.hill-notif-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin: 0 0 10px;
}
.hill-notif-body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 18px;
}
.hill-notif-cta {
  display: inline-block;
  background: var(--gradient-gold-btn);
  color: var(--color-on-gold);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.hill-notif-cta:hover {
  background: var(--gradient-gold-btn-hover);
  color: var(--color-on-gold);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.hill-notif-dismiss {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 4px 8px;
}
.hill-notif-dismiss:hover { color: var(--text-secondary); }

/* "NEW" sticker — pinned to the top-left corner of announcement modals,
   tilted like a price sticker, with a slow shine sweep across the gold. */
.dt-new-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--gradient-gold-btn);
  color: var(--color-on-gold);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 5px 12px 4px 13px; /* extra left pad balances letter-spacing tail */
  border-radius: var(--radius-pill);
  transform: rotate(-8deg);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45), 0 0 14px var(--color-gold-soft);
  overflow: hidden;
  animation: dtBadgePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s backwards;
}
.dt-new-badge::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: dtBadgeShine 3s ease-in-out 1s infinite;
}
@keyframes dtBadgePop {
  from { opacity: 0; transform: rotate(-8deg) scale(0.4); }
  to   { opacity: 1; transform: rotate(-8deg) scale(1); }
}
@keyframes dtBadgeShine {
  0%, 60% { left: -60%; }
  100%    { left: 130%; }
}

.modal-header {
  padding: 16px 20px 0; display: flex; align-items: center;
  justify-content: space-between; flex-shrink: 0;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.1rem; color: var(--color-gold); font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
}

.modal-close {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-default);
  background: none; color: var(--text-muted); font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
}
.modal-close:hover { border-color: var(--color-red); color: var(--color-red); }

.modal-body {
  padding: 16px 20px 20px; flex: 1; overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
}

.modal-section h3 {
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 700; color: var(--color-orange);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 6px;
}

.modal-section p, .modal-section li {
  font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5;
}

.modal-section ul {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 4px;
}

.modal-section li {
  display: flex; align-items: flex-start; gap: 8px;
}

.modal-pip {
  width: 22px; height: 22px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.65rem; flex-shrink: 0; margin-top: 1px;
}

.modal-example {
  background: var(--bg-base); border-radius: var(--radius-sm); padding: 10px 14px;
  display: flex; gap: 6px; align-items: center; justify-content: center;
}

.modal-example .block { width: 28px; height: 28px; border-radius: var(--radius-sm); }

.save-url-box {
  background: var(--bg-base); border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  padding: 8px 12px; font-size: 0.7rem; color: var(--color-gold);
  word-break: break-all; font-family: monospace; margin-top: 6px;
}

.modal-btn-row { display: flex; gap: 8px; margin-top: 6px; }

.btn-gold {
  background: var(--gradient-gold-btn); color: var(--color-on-gold); padding: 8px 16px; font-size: 0.8rem;
  border: none; border-radius: var(--radius-pill); cursor: pointer;
  font-family: var(--font-display); font-weight: 700; letter-spacing: 1px;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm), var(--glow-gold-ambient);
}
.btn-gold:hover { background: var(--gradient-gold-btn-hover); box-shadow: var(--shadow-md), var(--glow-gold-strong); }
.btn-gold:active { transform: translateY(0) scale(0.97); }

.modal-footer {
  padding: 12px 20px; border-top: 1px solid var(--border-default);
  text-align: center; flex-shrink: 0;
}

.modal-footer p {
  font-size: 0.7rem; color: var(--text-faint); line-height: 1.5;
}

.modal-footer a { color: var(--text-muted); text-decoration: none; transition: color var(--transition-fast); }
.modal-footer a:hover { color: var(--color-gold); }


/* --- Help Modal (Bold Panels) --- */
.help-header {
  padding: 20px 24px 10px;
  text-align: center;
}
.help-header h2 {
  font-family: var(--font-logo);
  font-size: 1.8rem;
  color: var(--text-primary);
  letter-spacing: 6px;
}
.help-accent {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--color-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.help-body {
  padding: 8px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.help-rule {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.help-num {
  width: 38px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-logo);
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}
.help-rule:nth-child(1) .help-num { background: var(--color-gold); }
.help-rule:nth-child(2) .help-num { background: var(--color-orange); }
.help-rule:nth-child(3) .help-num { background: var(--color-green); }
.help-rule:nth-child(4) .help-num { background: var(--color-red); }
.help-content {
  flex: 1;
  background: var(--bg-inset);
  padding: 8px 14px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.help-content strong {
  color: var(--text-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 1px;
}
.help-footer {
  padding: 14px 20px 20px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}
.help-cta {
  background: var(--gradient-gold-btn);
  color: var(--color-on-gold);
  border: none;
  padding: 11px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: box-shadow 0.3s, background 0.3s;
  box-shadow: var(--shadow-sm), 0 0 20px rgba(237,198,120,0.06);
  position: relative;
  overflow: hidden;
}
.help-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transition: none;
}
.help-cta:hover {
  box-shadow: var(--shadow-md), 0 0 28px rgba(237,198,120,0.18);
  background: var(--gradient-gold-btn-hover);
}
.help-cta:hover::after {
  left: 120%;
  transition: left 0.5s ease;
}


/* --- Stats Grid (result card) --- */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.stats-grid .sg-item { text-align: center; padding: 8px 2px; }
.stats-grid .sg-val { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: var(--color-gold); }
.stats-grid .sg-lbl { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-display); }

/* --- Stats Modal (Bold Panels) --- */
.stats-header {
  padding: 20px 24px 10px;
  text-align: center;
}
.stats-header h2 {
  font-family: var(--font-logo);
  font-size: 1.8rem;
  color: var(--text-primary);
  letter-spacing: 6px;
}
.stats-accent {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--color-gold);
  letter-spacing: 4px;
  text-transform: uppercase;
}
.stats-body {
  padding: 8px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stats-row {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-sm);
  overflow: hidden;
  gap: 0;
  background: var(--bg-inset);
}
.stats-row-icon {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}
.stats-row-content {
  flex: 1;
  padding: 8px 14px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.stats-row-content strong {
  color: var(--text-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 1px;
}
.stats-dist {
  background: var(--bg-inset);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 2px;
}
.stats-dist-title {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.stats-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-inset);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  margin-top: 2px;
}
.stats-panel-icon {
  font-size: 0.9rem;
  color: var(--color-orange);
  flex-shrink: 0;
}
.stats-panel-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.stats-panel-text strong {
  color: var(--text-primary);
  font-weight: 700;
}
.stats-footer {
  padding: 14px 20px 20px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

/* --- Accordion --- */
.accordion {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.accordion-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.accordion-item.is-open {
  border-color: var(--border-default);
  box-shadow: var(--shadow-sm);
}
.accordion-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}
.accordion-trigger:hover {
  color: var(--text-primary);
}
.accordion-item.is-open .accordion-trigger {
  color: var(--text-primary);
}
.accordion-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-elevated);
  font-size: 0.65rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: background var(--transition-normal), color var(--transition-normal);
}
.accordion-item.is-open .accordion-icon {
  background: var(--color-gold-soft);
  color: var(--color-gold);
}
.accordion-label {
  flex: 1;
  text-align: left;
}
.accordion-chevron {
  font-size: 0.55rem;
  color: var(--text-ghost);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color var(--transition-normal);
  transform: rotate(0deg);
}
.accordion-item.is-open .accordion-chevron {
  transform: rotate(180deg);
  color: var(--color-gold);
}
.accordion-panel {
  height: 0;
  overflow: hidden;
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-body {
  padding: 0 12px 12px 42px;
}
.accordion-body p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
  font-family: var(--font-body);
}
.accordion-body a {
  text-decoration: none;
  font-weight: 600;
}
.accordion-body a:hover {
  text-decoration: underline;
}

/* Milestone list */
.milestone-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.milestone-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-family: var(--font-body);
  color: var(--text-secondary);
  line-height: 1.5;
}
.milestone-days {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  min-width: 56px;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
}
.milestone-hof {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}


/* --- Result Streak --- */
.result-streak {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 6px 0; cursor: pointer;
  transition: opacity var(--transition-fast);
}
.result-streak:active { opacity: 0.7; }
.result-streak .rs-val { font-family: var(--font-display); font-weight: 800; color: var(--color-gold); font-size: 1rem; }
.result-streak .rs-inc { font-size: 0.7rem; color: var(--color-green); font-weight: 700; }
.result-streak .rs-best { font-size: 0.65rem; color: var(--color-orange); font-weight: 600; }
.result-streak .rs-lbl { font-size: 0.7rem; color: var(--text-muted); }

.back-today { text-align: center; padding: 10px 0; }
.back-today a { color: var(--color-gold); font-size: 0.8rem; font-weight: 700; text-decoration: none; }
.back-today a:hover { text-decoration: underline; }

/* Catch-up → today's daily soft prompt. Shown above the catch-up result hero
   when the user hasn't yet played today's daily. Gold gradient pill matches
   the primary result-screen CTA styling. */
.res-today-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 4px 0 14px;
    padding: 12px 18px;
    background: var(--gradient-gold-btn);
    color: var(--color-on-gold);
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(226, 184, 87, 0.3);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.res-today-prompt:hover {
    background: var(--gradient-gold-btn-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(226, 184, 87, 0.45);
}
.res-today-prompt-icon { font-size: 1.1rem; line-height: 1; }
.res-today-prompt-arrow {
    font-size: 1.1rem;
    line-height: 1;
    transition: transform var(--transition-fast);
}
.res-today-prompt:hover .res-today-prompt-arrow { transform: translateX(3px); }


/* --- Glow Pulse (hall of fame) --- */
@keyframes glowPulse { 0%,100% { box-shadow: 0 0 8px var(--color-gold-soft); } 50% { box-shadow: 0 0 16px rgba(237,198,120,0.3); } }

/* --- Hint glow (push prompt) --- */
@keyframes hintGlow {
  0%,100% { text-shadow: 0 0 4px rgba(226,184,87,0.3); transform: scale(1); color: var(--color-gold); }
  50% { text-shadow: 0 0 12px rgba(226,184,87,0.9), 0 0 24px rgba(226,184,87,0.5), 0 0 40px rgba(226,184,87,0.25); transform: scale(1.15); color: #fff; }
}
.hint-glow { animation: hintGlow 1.5s ease-in-out 1s 2; text-shadow: 0 0 4px rgba(226,184,87,0.3); display: inline-block; }


/* ============================================================
   GRADIENT, GLOW & ANIMATION ENHANCEMENTS
   ============================================================ */

/* --- Logo shimmer on hover --- */
.logo:hover .logo-strip {
  box-shadow: 0 0 12px rgba(0,0,0,0.15);
}

/* --- Pill button hover glow --- */
.pill-btn:hover {
  box-shadow: 0 0 10px var(--color-gold-soft);
}

/* --- Input focus glow upgrade --- */
.input-area input:focus {
  box-shadow: 0 0 0 3px var(--color-gold-soft), 0 0 16px var(--color-gold-soft);
}

/* --- Clue card gradient sheen on hover --- */
.clue-card:hover {
  box-shadow: var(--shadow-md), 0 0 20px rgba(208,106,32,0.1);
}

/* --- Result answer glow --- */
.result-answer {
  text-shadow: 0 0 20px var(--color-gold-soft);
}

/* --- Score display: warm paper ticket (both themes). A dark-velvet stub was
   tried per spec but the punch notches disappear dark-on-dark; a light paper
   stub is what reads "ticket" against the theater. Deliberate spec deviation. --- */
.score-display-val {
  background: linear-gradient(180deg, #fdf8ee 0%, #f0e6d2 100%);
}
.score-display-val.s5, .score-display-val.s4, .score-display-val.s3,
.score-display-val.s2, .score-display-val.s1 { color: #b3812f; }
.score-display-val.s0 { color: #7a695f; }

/* --- Poster image glow --- */
.poster-img img {
  box-shadow: var(--shadow-lg), 0 0 30px var(--color-gold-soft);
  transition: box-shadow var(--transition-normal);
}
.poster-img img:hover {
  box-shadow: var(--shadow-lg), var(--glow-gold-strong);
}

/* --- Modal gradient header accent --- */
.modal {
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0,0,0,0.3);
}
.modal-header h2 {
  text-shadow: 0 0 16px var(--color-gold-soft);
  border-bottom: 2px solid var(--color-crimson);
  display: inline-block;
  padding-bottom: 2px;
}

/* --- Celebration glow enhancements --- */
.celeb-title.win {
  filter: drop-shadow(0 0 40px var(--color-gold-soft)) drop-shadow(0 0 80px rgba(237,198,120,0.15));
}
.celeb-answer {
  text-shadow: 0 0 24px var(--color-gold-soft);
}

/* --- Game entrance animations --- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.pip-row { animation: fadeSlideUp 0.4s ease both; }
.clue-card { animation: fadeSlideUp 0.4s ease 0.1s both; }
.input-area { animation: fadeSlideUp 0.4s ease 0.2s both; }
.score-display { animation: fadeSlideUp 0.3s ease both; }
.streak-warning { animation: fadeSlideUp 0.3s ease 0.1s both; }
.past-clue { animation: fadeSlideIn 0.3s ease both; }

/* --- Staggered clue reveal for past clues --- */
.past-clue:nth-child(1) { animation-delay: 0.05s; }
.past-clue:nth-child(2) { animation-delay: 0.1s; }
.past-clue:nth-child(3) { animation-delay: 0.15s; }
.past-clue:nth-child(4) { animation-delay: 0.2s; }
.past-clue:nth-child(5) { animation-delay: 0.25s; }

/* --- Result screen staggered entrance --- */
.res-hero-card { animation: fadeSlideUp 0.4s ease both; }
.res-dist-card { animation: fadeSlideUp 0.3s ease 0.1s both; }
.res-catchup-card { animation: fadeSlideUp 0.3s ease 0.2s both; }
.res-stats-grid { animation: fadeSlideUp 0.3s ease 0.25s both; }
.res-next-game-card { animation: fadeSlideUp 0.3s ease 0.3s both; }

/* --- Tier button glow on hover --- */
.tier-btn:hover {
  box-shadow: 0 0 16px currentColor;
}

/* --- Streak number glow --- */
.streak-num {
  text-shadow: 0 0 12px var(--color-gold-soft);
}

/* --- Autocomplete list entrance --- */
.ac-list {
  animation: fadeSlideUp 0.15s ease both;
}

/* --- Distribution bar gradient --- */
.dist-bar.you {
  background: var(--gradient-gold-btn);
  box-shadow: 0 0 8px var(--color-gold-soft);
}

/* --- My rank banner glow (hall of fame) --- */
.my-rank-banner {
  box-shadow: var(--glow-gold-ambient);
}

/* --- Support section gradient border --- */
.support {
  background-image: var(--gradient-card);
  box-shadow: var(--glow-gold-ambient);
}

/* --- Page hero icon glow --- */
.page-hero-icon {
  box-shadow: 0 0 16px var(--color-gold-soft);
}

/* --- Retention message milestone glow --- */
.ret-msg.milestone {
  box-shadow: 0 0 16px var(--color-gold-soft);
  animation: fadeSlideUp 0.4s ease both;
}

/* --- Toast entrance animation --- */
.share-toast.show {
  animation: toastIn 0.3s ease both;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* --- Footer link hover glow --- */
.site-footer a:hover {
  text-shadow: 0 0 10px var(--color-gold-soft);
}

/* --- Reduced motion: disable all custom animations --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Game-design pass (2026-06): retention + shareability + polish
   ============================================================ */

/* --- First-visit inline intro (replaces blocking how-to-play modal) --- */
.intro-strip {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--color-gold-soft);
  border: 1px solid rgba(226, 184, 87, 0.25);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  margin: 0 0 12px;
  animation: introIn 0.5s ease both;
}
.intro-strip i { color: var(--color-gold); margin-right: 4px; }
@keyframes introIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Cinematic clue reveal: a film frame advancing --- */
.clue-reveal {
  animation: clueReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes clueReveal {
  0%   { opacity: 0; transform: translateY(10px) scale(0.985); filter: brightness(1.9) contrast(0.85); }
  55%  { opacity: 1; filter: brightness(1.25) contrast(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: brightness(1) contrast(1); }
}

/* --- Clue tier identity: spoiler heat, cool→hot as clues sharpen --- */
.clue-card.tier-5 { border-left: 3px solid #7da7d9; }
.clue-card.tier-4 { border-left: 3px solid #57c4a3; }
.clue-card.tier-3 { border-left: 3px solid var(--color-gold); }
.clue-card.tier-2 { border-left: 3px solid var(--color-orange); }
.clue-card.tier-1 { border-left: 3px solid var(--color-red); }
.clue-card.tier-5 .clue-card-num { color: #7da7d9; }
.clue-card.tier-4 .clue-card-num { color: #57c4a3; }
.clue-card.tier-3 .clue-card-num { color: var(--color-gold); }
.clue-card.tier-2 .clue-card-num { color: var(--color-orange); }
.clue-card.tier-1 .clue-card-num { color: var(--color-red); }

/* --- Mid-game social proof under the live clue --- */
.clue-social {
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--border-default);
  padding-top: 8px;
}

/* --- Near-miss feedback (free retry) --- */
.near-miss-msg {
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gold);
  animation: introIn 0.3s ease both;
}
.flash-near {
  border-color: var(--color-gold) !important;
  box-shadow: 0 0 0 3px var(--color-gold-soft) !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* --- Tomorrow's teaser on the countdown card --- */
.res-teaser {
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.res-teaser-word {
  color: var(--color-gold);
  font-weight: 700;
  font-style: italic;
}

/* --- Anonymous rank row + name-claim CTA --- */
.res-rank-row {
  /* Quiet by design: "#419 of 465" directly under "You beat 46 players"
     reads as a contradiction when it's loud. The name-claim hook stays. */
  font-size: 0.7rem;
  color: var(--text-faint);
  margin: 2px 0 0;
}
.res-rank-claim {
  color: var(--color-gold);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.res-rank-claim:hover { color: var(--color-gold-hover); }
/* Anonymous players see their real rank blurred — claiming a name removes
   the class. Not a secret (rank is computed client-side), just a nudge. */
.res-rank-blur {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

/* --- Poster Round --- */
/* --- Tonight's Double Feature: bonus-mode showcards on the result screen.
   Two lobby cards side by side — Poster Round (blurred poster art) and
   Movie, Badly Described (today's actual logline as the art). --- */
.res-double-feature {
  max-width: 700px; width: 100%;
  margin: 18px auto 0;
  text-align: center;
}
.res-df-eyebrow {
  font-family: var(--font-display);
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.res-df-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 520px) {
  .res-df-row { grid-template-columns: 1fr; }
}
.df-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--bg-surface);
  background-image: var(--gradient-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 14px 14px 16px;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--text-primary);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  box-shadow: var(--shadow-sm);
}
.df-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md), var(--glow-gold-ambient);
}
.df-art {
  width: 100%; height: 96px;
  border-radius: var(--radius-sm);
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: var(--text-faint); font-size: 1.6rem;
  position: relative;
}
.df-art img {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(14px); transform: scale(1.3);
}
.df-art.df-quote {
  font-family: var(--font-body);
  font-size: 0.82rem; font-style: italic; line-height: 1.45;
  color: var(--text-secondary);
  padding: 10px 14px;
  text-align: center;
}
.df-name {
  font-family: var(--font-display);
  font-weight: 800; font-size: 0.9rem;
  letter-spacing: 0.5px;
  color: var(--color-gold);
}
.df-sub { font-size: 0.72rem; color: var(--text-muted); line-height: 1.4; }
.df-stub {
  font-size: 0.72rem; color: var(--text-faint);
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
}
.df-stub i { color: var(--color-green); margin-right: 4px; }
.df-card.df-done {
  opacity: 0.55; cursor: default;
  border-style: dashed;
}
.df-card.df-done:hover { transform: none; border-color: var(--border-default); box-shadow: var(--shadow-sm); }

/* Legacy poster-round banner (superseded by the Double Feature showcards;
   kept for the archive/preview paths that never render them) */
.poster-round-card {
  background: var(--bg-surface);
  border: 1px solid rgba(226, 184, 87, 0.3);
  border-radius: var(--radius-md, 12px);
  padding: 16px 18px;
  margin: 14px 0;
  text-align: center;
}
.poster-round-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--color-gold);
  font-size: 0.95rem;
}
.poster-round-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 4px 0 12px;
}
.poster-round-cta {
  background: var(--gradient-gold-btn, var(--color-gold));
  color: var(--color-on-gold, #1a1408);
  border: none;
  border-radius: var(--radius-pill, 999px);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1px;
  padding: 10px 22px;
  font-size: 0.85rem;
  cursor: pointer;
}
.poster-round-cta:hover { filter: brightness(1.08); }

.pr-modal { text-align: center; max-width: 420px; }
.pr-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--color-gold);
  font-size: 1.05rem;
  margin-bottom: 2px;
}
.pr-sub { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 12px; }
.pr-poster-wrap {
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin: 0 auto 12px;
  max-width: 240px;
  border: 1px solid var(--border-default);
  background: #000;
}
.pr-poster {
  display: block;
  width: 100%;
  transition: filter 0.6s ease, transform 0.6s ease;
  /* Blur overscan fallback; JS sets a per-level scale (PR_SCALE) so the
     dark halo the blur bleeds in from the edges stays outside the frame */
  transform: scale(1.06);
}
.pr-poster.pr-reveal { filter: none !important; animation: prReveal 0.8s ease both; }
@keyframes prReveal {
  from { filter: blur(12px); transform: scale(1.1); }
  to { filter: blur(0); transform: scale(1.06); }
}
.pr-pips { display: flex; justify-content: center; gap: 7px; margin-bottom: 12px; }
.pr-pip {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border-default);
}
.pr-pip.current { background: var(--color-gold); box-shadow: 0 0 6px var(--color-gold-soft); }
.pr-pip.used { background: var(--color-red); opacity: 0.65; }
.pr-input-row { display: flex; gap: 8px; align-items: stretch; }
.pr-input-row .btn-guess { flex: 0 0 auto; padding: 0 16px; }
.pr-input-row input {
  width: 100%; box-sizing: border-box;
  padding: 12px 14px;
  background: var(--bg-input, rgba(0,0,0,0.3));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
}
.pr-input-row input:focus { outline: none; border-color: var(--color-gold); }
.pr-msg { min-height: 22px; margin-top: 8px; font-size: 0.8rem; }
.pr-modal .btn-skip { margin-top: 10px; }
.pr-near { color: var(--color-gold); font-weight: 600; }
.pr-wrong { color: var(--text-muted); }
.pr-answer {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 4px;
}

/* --- Distribution chart readability (was: ghost bars on a near-invisible
   track with #4c4c5c percentages — unreadable on dark, see 2026-06-06) --- */
.dist-label { color: var(--text-secondary); }
.dist-bar-wrap {
  background: rgba(127, 127, 150, 0.12);
  border: 1px solid var(--border-subtle);
}
.dist-bar {
  background: var(--text-muted);
  min-width: 3px;
}
.dist-pct {
  color: var(--text-secondary);
  font-size: 0.7rem;
  width: 32px;
  font-variant-numeric: tabular-nums;
}


/* --- Network cross-promo (under Share). The button wears the DESTINATION
   game's brand color — but as tinted glass (accent text/border/glow on
   velvet), not a solid slab that outshouts the share CTA. The eyebrow frames
   it as a curated "coming attraction". --- */
.res-next-game-row { text-align: center; padding: 16px 16px 2px; }
.res-next-eyebrow {
  font-family: var(--font-display);
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.res-next-game-row .res-next-game-btn { box-shadow: none; }
.res-next-game-btn.res-next-game--plothole {
  background: rgba(237, 198, 120, 0.09);
  color: #edc678; border: 1px solid rgba(237, 198, 120, 0.55);
  box-shadow: 0 0 14px rgba(237, 198, 120, 0.15);
}
.res-next-game-btn.res-next-game--plothole i { color: #edc678; }
.res-next-game-btn.res-next-game--tvaddict {
  background: rgba(111, 176, 245, 0.09);
  color: #6fb0f5; border: 1px solid rgba(111, 176, 245, 0.55);
  box-shadow: 0 0 14px rgba(90, 165, 240, 0.15);
}
.res-next-game-btn.res-next-game--tvaddict i { color: #6fb0f5; }
.res-next-game-btn.res-next-game--luminary {
  background: rgba(212, 175, 106, 0.09);
  color: #f0ddae; border: 1px solid rgba(212, 175, 106, 0.55);
  box-shadow: 0 0 14px rgba(212, 175, 106, 0.15);
}
.res-next-game-btn.res-next-game--luminary i { color: #f0ddae; }
.res-next-game-btn.res-next-game--normie {
  background: rgba(92, 216, 96, 0.09);
  color: #5cd860; border: 1px solid rgba(92, 216, 96, 0.55);
  box-shadow: 0 0 14px rgba(92, 216, 96, 0.15);
}
.res-next-game-btn.res-next-game--normie i { color: #5cd860; }
/* Popcorn Jury — completion-only ring member (cast the Daily Verdict). Butter
   gold #e2b857 on the network-dark, matching popcornjury.com's masthead. */
.res-next-game-btn.res-next-game--popcornjury {
  background: rgba(226, 184, 87, 0.09);
  color: #e2b857; border: 1px solid rgba(226, 184, 87, 0.55);
  box-shadow: 0 0 14px rgba(226, 184, 87, 0.15);
}
.res-next-game-btn.res-next-game--popcornjury i { color: #e2b857; }


/* ── Result reveal: the house lights come up in sequence ─────────────────
   The celebration is the premiere moment; when it fades, the result screen
   assembles like end credits — each block rises into place, the score bars
   grow, the stat numbers count up (JS). One orchestrated moment, then calm:
   the only continuous motion afterwards is the marquee button's slow breathe. */
@keyframes resRise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.res-cue > * { opacity: 0; animation: resRise 0.75s cubic-bezier(0.16, 0.8, 0.3, 1) both; }
.res-cue > *:nth-child(1) { animation-delay: 0.08s; }
.res-cue > *:nth-child(2) { animation-delay: 0.26s; }
.res-cue > *:nth-child(3) { animation-delay: 0.44s; }
.res-cue > *:nth-child(4) { animation-delay: 0.62s; }
.res-cue > *:nth-child(5) { animation-delay: 0.80s; }
.res-cue > *:nth-child(n+6) { animation-delay: 0.95s; }
/* The CTA stack inside the hero card cascades on its own tighter beat */
.res-cue .res-below > * { opacity: 0; animation: resRise 0.6s cubic-bezier(0.16, 0.8, 0.3, 1) both; }
.res-cue .res-below > *:nth-child(1) { animation-delay: 0.45s; }
.res-cue .res-below > *:nth-child(2) { animation-delay: 0.57s; }
.res-cue .res-below > *:nth-child(3) { animation-delay: 0.69s; }
.res-cue .res-below > *:nth-child(4) { animation-delay: 0.81s; }
.res-cue .res-below > *:nth-child(5) { animation-delay: 0.93s; }
.res-cue .res-below > *:nth-child(n+6) { animation-delay: 1.05s; }
/* The stars are the applause: each one pops in with overshoot and a flare */
@keyframes resStarPop {
  0%   { opacity: 0; transform: scale(0) rotate(-25deg); }
  60%  { opacity: 1; transform: scale(1.35) rotate(8deg); text-shadow: 0 0 18px rgba(226, 184, 87, 0.9); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); text-shadow: 0 0 6px rgba(226, 184, 87, 0.35); }
}
.res-cue .res-hero-top .result-grid .block.gold i {
  opacity: 0; display: inline-block;
  animation: resStarPop 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}
.res-cue .res-hero-top .result-grid .block.gold:nth-child(1) i { animation-delay: 0.55s; }
.res-cue .res-hero-top .result-grid .block.gold:nth-child(2) i { animation-delay: 0.70s; }
.res-cue .res-hero-top .result-grid .block.gold:nth-child(3) i { animation-delay: 0.85s; }
.res-cue .res-hero-top .result-grid .block.gold:nth-child(4) i { animation-delay: 1.00s; }
.res-cue .res-hero-top .result-grid .block.gold:nth-child(5) i { animation-delay: 1.15s; }
/* Score-distribution bars grow from the left once their card has landed */
@keyframes resBarGrow { from { transform: scaleX(0); } }
.res-cue .dist-bar { transform-origin: left; animation: resBarGrow 0.9s cubic-bezier(0.16, 0.8, 0.3, 1) 1.15s backwards; }

/* Alive under the cursor: cards lift, inviting the look-around */
.res-sc-card, .res-stat-card, .res-dist-card, .res-dna-row, .res-keep-playing {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.res-sc-card:hover, .res-stat-card:hover, .res-dist-card:hover, .res-keep-playing:hover {
  transform: translateY(-2px);
}
.res-dna-row:hover { transform: translateY(-2px); }

/* The marquee button breathes — the one piece of ambient motion at rest */
@keyframes marqueeBreathe { 50% { filter: brightness(1.14); } }
.res-next-game-btn { animation: marqueeBreathe 4.2s ease-in-out 2.5s infinite; }

@media (prefers-reduced-motion: reduce) {
  .res-cue > *, .res-cue .res-below > *, .res-cue .dist-bar,
  .res-cue .res-hero-top .result-grid .block.gold i {
    animation: none !important; opacity: 1;
  }
  .res-next-game-btn { animation: none !important; }
}
