/* ============================================================
   TV ADDICT — 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); }
}
.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: #e8d48a;
  line-height: 1;
}
[data-theme="dark"] .logo-strip {
  background: linear-gradient(135deg, #d4b977 0%, #c6a75e 50%, #daa830 100%);
}
[data-theme="dark"] .logo-hole {
  color: #1a2a4a;
}
/* 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; }
.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; }
}

/* 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 Show 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;
    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; }
}

/* --- 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%; }
}

.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(226, 184, 87, 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(226, 184, 87, 0.28);
}
.site-rate-badge img {
  display: block;
  max-width: 100%;
  height: auto;
}
.site-rate-badge + .site-footer {
  border-top: none;
  padding-top: 0;
}


/* --- 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 --- */
.pip-row {
  display: flex; justify-content: center; gap: 10px;
  margin-bottom: 14px;
}
.pip {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
  background: #ffffff; border: 2px solid #d8d6d0; color: #999aaa;
  transition: all 0.3s;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.12), inset 0 1px 2px rgba(0,0,0,0.08);
  text-shadow: 0 1px 0 rgba(255,255,255,0.6), 0 2px 4px rgba(0,0,0,0.08);
}
.pip.correct {
  background: linear-gradient(135deg, #a8853c, #c6a75e); border-color: #a8853c; color: #ffffff;
  box-shadow: 0 0 12px rgba(200, 150, 10, 0.1);
}
.pip.wrong {
  background: var(--bg-elevated); border-color: var(--border-default); color: var(--text-faint);
}
.pip.skipped { background: #ffffff; border-color: #d8d6d0; color: #999aaa; }
.pip.current {
  background: #fff7ed; border-color: #d06a20; border-width: 2.5px; color: #d06a20;
  box-shadow: inset 0 2px 6px rgba(208,106,32,0.15), inset 0 1px 2px rgba(0,0,0,0.06), 0 0 6px rgba(208,106,32,0.1), 0 2px 5px rgba(0,0,0,0.12);
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
  animation: pipPulse 2s ease-in-out infinite;
}
@keyframes pipPulse {
  0%, 100% { box-shadow: inset 0 2px 6px rgba(208,106,32,0.15), inset 0 1px 2px rgba(0,0,0,0.06), 0 0 6px rgba(208,106,32,0.08), 0 2px 5px rgba(0,0,0,0.12); }
  50% { box-shadow: inset 0 2px 6px rgba(208,106,32,0.15), inset 0 1px 2px rgba(0,0,0,0.06), 0 0 14px 4px rgba(208,106,32,0.5), 0 2px 5px rgba(0,0,0,0.12); }
}


/* --- Current Clue Card --- */
.clue-card.clue-unseen {
  opacity: 0.5;
  border-style: dashed;
}
.clue-card {
  background: var(--bg-surface);
  background-image: var(--gradient-card);
  border: 1px solid var(--color-orange);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm), 0 0 16px rgba(208,106,32,0.08);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.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(200, 150, 10, 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(--text-faint); text-decoration: line-through; font-size: 0.7rem; }
.past-clue-guess.skip { color: var(--text-faint); 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); }

.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(200,150,10,0.06) 0%, rgba(200,150,10,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; }
.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-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-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(200, 150, 10, 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;
}

/* Per-question recap cards on the result screen */
.res-answered-section {
  display: flex; flex-direction: column; gap: 10px;
  padding: 0 16px 16px; text-align: left;
}
.res-answered-section.collapsed { display: none; }
.res-q-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--border-default);
  border-radius: var(--radius-sm, 8px);
  padding: 10px 14px;
}
.res-q-card.correct { border-left-color: var(--color-green); }
.res-q-card.wrong, .res-q-card.timed-out { border-left-color: var(--color-red); }
.res-q-header {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
}
.res-q-num { color: var(--color-gold); font-weight: 800; }
.res-q-status.correct { color: var(--color-green); }
.res-q-status.wrong { color: var(--color-red); }
.res-q-status.timeout { color: var(--text-muted); }
.res-q-sentence {
  margin-top: 6px; font-size: 0.82rem; line-height: 1.5;
  color: var(--text-secondary, var(--text-primary));
}
.res-q-category {
  display: inline-block; margin-top: 8px; padding: 2px 9px;
  font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
}

/* Sponsor card: logo + stacked eyebrow/name/tagline */
/* 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(198,167,94,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. */
/* "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(200,150,10,0.07) 0%, var(--bg-elevated) 100%);
  border: 1px solid rgba(200,150,10,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(200,150,10,0.06) 0%, var(--bg-elevated) 100%);
  border: 1px solid rgba(200,150,10,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(200,150,10,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(200,150,10,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(200,150,10,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(200,150,10,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(200,150,10,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%; }
}

/* 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, 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 {
  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(198, 167, 94, 0); }
  50%      { box-shadow: 0 0 18px 2px rgba(198, 167, 94, 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 */
.res-next-game-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-left: 3px solid var(--color-gold);
  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: var(--color-gold);
  color: var(--color-on-gold);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  transition: opacity .15s;
}
.res-next-game-btn:hover { opacity: 0.85; }

/* 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: 20px;
}
.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-display);
  font-size: 2rem; font-weight: 900; letter-spacing: 2px;
  transition: color 0.3s;
  display: inline-block;
  background: var(--score-pill-bg);
  padding: 4px 24px;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.12), inset 0 1px 2px rgba(0,0,0,0.08);
  text-shadow: 0 1px 0 rgba(255,255,255,0.6), 0 2px 4px rgba(0,0,0,0.08);
}
.score-display-val.s5 { color: #a8853c; }
.score-display-val.s4 { color: #a8853c; }
.score-display-val.s3 { color: #a8853c; }
.score-display-val.s2 { color: #a8853c; }
.score-display-val.s1 { color: #a8853c; }
.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: 32px; }
.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-red) !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: center;
  flex-direction: column; z-index: 9000;
  opacity: 1; transition: opacity 1s ease;
  text-align: center; padding: 20px;
  overflow-y: auto;
}
@media (max-width: 520px) {
  /* "safe center": center short content, fall back to scroll-from-top when tall */
  .celeb { padding: 16px 16px 20px; justify-content: safe center; }
  .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-marquee-stars { gap: 12px; margin-top: 8px; }
  .celeb-star { font-size: 2.6rem; }
  .celeb-status-block { margin-top: 12px; gap: 6px; }
  .celeb-stat, .celeb-stat-streak { font-size: 0.78rem; padding: 6px 13px; }
  .celeb-stat-muted { font-size: 0.72rem; }
  .celeb-share-nudge { display: none; }
  .celeb-share-primary { margin-top: 14px; padding: 12px 20px; font-size: 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 stars (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(226, 184, 110, 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 noise so the black 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, #ffe08a 0%, #a8853c 38%, #a07008 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;
}
.celeb-score-pill {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 900; letter-spacing: 2px;
  display: inline-block;
  background: var(--score-pill-bg);
  padding: 4px 24px;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.12), inset 0 1px 2px rgba(0,0,0,0.08);
}
.celeb-score-pill.s5 { color: #a8853c; }
.celeb-score-pill.s4 { color: #a8853c; }
.celeb-score-pill.s3 { color: #a8853c; }
.celeb-score-pill.s2 { color: #a8853c; }
.celeb-score-pill.s1 { color: #a8853c; }
.celeb-score-pill.s0 { color: var(--text-muted); }
.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 {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 0.65rem; color: var(--text-faint); letter-spacing: 3px; text-transform: uppercase;
}
.celeb-rule {
  width: 42px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,106,0.55));
}
.celeb-rule:last-child { transform: scaleX(-1); }

/* Marquee stars: the score, writ large. One per question, popping in. */
.celeb-marquee-stars {
  display: flex; justify-content: center; gap: 16px;
  margin-top: 12px; line-height: 1;
}
.celeb-star {
  font-size: clamp(2.7rem, 13vw, 3.8rem);
  opacity: 0; transform: scale(0) rotate(-25deg);
  animation: celebStarPop 0.65s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}
.celeb-star.on {
  color: transparent;
  background: linear-gradient(180deg, #ffeebc 0%, #ecc97e 45%, #b3852b 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 16px rgba(236, 201, 126, 0.45));
}
.celeb-star.off { color: rgba(243, 238, 225, 0.20); }
@keyframes celebStarPop {
  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); }
}

/* Stat chips: ticket-stub pills instead of floating gray text */
.celeb-status-block {
  z-index: 1; margin-top: 18px;
  opacity: 0; animation: subIn 0.5s ease 0.9s forwards;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center;
  max-width: 420px;
}
.celeb-stat, .celeb-stat-streak {
  display: inline-block; padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem; font-weight: 700;
}
.celeb-stat {
  color: var(--color-gold);
  border: 1px solid rgba(212, 175, 106, 0.45);
  background: rgba(212, 175, 106, 0.08);
}
.celeb-stat-streak {
  color: var(--color-orange);
  border: 1px solid rgba(224, 122, 58, 0.45);
  background: rgba(224, 122, 58, 0.08);
}
.celeb-stat-muted { font-size: 0.75rem; color: var(--text-faint); width: 100%; }
.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: block; width: 100%; max-width: 280px; margin-top: 20px; z-index: 1;
  opacity: 0; animation: subIn 0.5s ease 1.1s forwards;
  background: linear-gradient(180deg, #fdf3dc 0%, var(--color-gold) 45%, #c39a4e 100%);
  color: #10162a;
  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(226, 184, 110, 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(226, 184, 110, 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: 14px; z-index: 1;
  opacity: 0; animation: subIn 0.5s ease 1.25s 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: 22px; padding-top: 14px; z-index: 1; text-align: center;
  width: 100%; max-width: 420px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  opacity: 0; animation: subIn 0.5s ease 1.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); }

.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(200,150,10,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(200,150,10,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(198, 167, 94, 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(198, 167, 94, 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(198,167,94,0.3); } }

/* --- Hint glow (push prompt) --- */
@keyframes hintGlow {
  0%,100% { text-shadow: 0 0 4px rgba(198,167,94,0.3); transform: scale(1); color: var(--color-gold); }
  50% { text-shadow: 0 0 12px rgba(198,167,94,0.9), 0 0 24px rgba(198,167,94,0.5), 0 0 40px rgba(198,167,94,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(198,167,94,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 gradient pill --- */
.score-display-val {
  background: linear-gradient(180deg, #ffffff 0%, #eae8e3 100%);
}

/* --- 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);
}

/* --- Celebration glow enhancements --- */
.celeb-title.win {
  filter: drop-shadow(0 0 40px var(--color-gold-soft)) drop-shadow(0 0 80px rgba(198,167,94,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(198, 167, 94, 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 {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 6px 0 2px;
}
.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); }

/* --- Poster Round --- */
.poster-round-card {
  background: var(--bg-surface);
  border: 1px solid rgba(198, 167, 94, 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;
  /* Blur overscan: hide the sharp edges blur leaves at the border */
  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-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;
}

/* "NEW" badge on the Shows nav link — self-contained (works on the standalone
   homepage too) and hidden once the user has visited /shows. Its own visited
   flag (data-shows-visited) so visiting Show Club doesn't hide it. */
.nav-badge-shows {
  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: navShowsPulse 2.2s ease-in-out infinite;
}
@keyframes navShowsPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(168, 133, 60, 0); transform: scale(1); }
  50%      { box-shadow: 0 0 10px rgba(168, 133, 60, 0.7); transform: scale(1.06); }
}
[data-shows-visited="1"] .nav-badge-shows { display: none; }

/* ============================================================
   LUMINARY PLAY-SCREEN — Oscars champagne theme
   Task 7. These classes are game-area only; site-wide retheme
   is Task 8. Selector prefix .lum- keeps namespace clean.
   ============================================================ */

/* Header wordmark (new Oscars style) */
.lum-header {
  position: relative;
  padding: 20px 0 0;
  text-align: center;
  background: var(--lum-bg, #121009);
}
.lum-header-gear {
  position: absolute; left: 14px; top: 18px;
  width: 34px; height: 34px; border-radius: 50%;
  background: #211d15; color: var(--lum-muted, #a89e88);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; border: none; cursor: pointer;
}
.lum-rays {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 280px; height: 80px; overflow: hidden; opacity: .45;
  pointer-events: none;
}
.lum-rays div {
  position: absolute; bottom: -10px; left: 50%; width: 1px; height: 90px;
  background: linear-gradient(180deg, transparent, var(--lum-gold-3, #d4af6a));
  transform-origin: bottom;
}
.lum-wordmark {
  position: relative;
  font-family: Didot, 'Bodoni 72', Georgia, serif;
  font-size: 30px; font-weight: 400; letter-spacing: 6px;
  color: #ffffff;
}
.lum-wordmark .lum-star-glyph {
  background: linear-gradient(180deg, #f4e3b2, var(--lum-gold-4, #c49a4a));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; font-size: 25px;
  /* The ★ glyph carries side bearings; pull it in so the gaps around it
     read the same as the letter-spacing between the serif caps */
  margin: 0 -3px;
}
.lum-tagline {
  margin-top: 8px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 4px;
  color: var(--lum-gold-3, #d4af6a); text-transform: uppercase;
}
.lum-deco {
  width: 330px; margin: 16px auto 0;
  display: flex; align-items: center; gap: 10px;
}
.lum-deco .lum-deco-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--lum-gold-3, #d4af6a));
}
.lum-deco .lum-deco-line.r {
  background: linear-gradient(90deg, var(--lum-gold-3, #d4af6a), transparent);
}
.lum-deco .lum-deco-diamond {
  width: 6px; height: 6px;
  background: #e8c87c; transform: rotate(45deg);
}

/* Score pill + progress */
.lum-meta { text-align: center; padding: 18px 0 2px; }
.lum-scorepill {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(238,221,180,.5);
  border-radius: 40px; padding: 8px 24px;
  background: linear-gradient(180deg, #1f1b12, #15120c);
}
.lum-scorepill .lum-stars { font-size: 16px; letter-spacing: 6px; color: var(--lum-gold-2, #f0ddae); }
.lum-scorepill .lum-star-off { color: #45402f; }
.lum-qlabel {
  margin-top: 9px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 3px;
  color: var(--lum-muted, #a89e88); text-transform: uppercase;
}
.lum-qlabel b { color: var(--lum-on-dark, #f3eee1); }

/* Timer bar */
.lum-timerbar {
  width: 190px; height: 3px; margin: 12px auto 0;
  border-radius: 3px; background: #2b261c; overflow: hidden;
}
.lum-timerbar .lum-timerbar-fill {
  height: 100%;
  background: linear-gradient(90deg, #d8bf8e, var(--lum-gold-1, #f7e7ce));
  transition: width 1s linear;
}
.lum-timersec {
  margin-top: 6px; text-align: center;
  font-size: 11.5px; color: var(--lum-muted, #a89e88); letter-spacing: 1px;
}
.lum-timersec b { color: var(--lum-gold-2, #f0ddae); font-size: 12.5px; }
@keyframes lumTimerPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
.lum-timerbar.urgent .lum-timerbar-fill {
  background: var(--lum-urgent, #e05555);
  animation: lumTimerPulse 0.8s ease-in-out infinite;
}

/* Sentence / category */
.lum-sentence {
  margin: 18px 26px 20px;
  text-align: center;
  font-size: 17px; line-height: 1.55; color: #f4f0e4;
}
.lum-sentence b { color: var(--lum-gold-2, #f0ddae); }
.lum-category {
  display: block; margin-bottom: 10px;
  font-size: 9.5px; letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--lum-gold-3, #d4af6a); font-weight: 600;
}

/* 2x2 photo grid — capped so desktop cards stay portrait-shaped instead of
   ballooning full-width (which turned object-fit:cover into an eye-strip crop) */
.lum-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; padding: 0 22px;
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.lum-card {
  background: linear-gradient(180deg, var(--lum-card, #1d1a13), var(--lum-card-dark, #15120c));
  border: 1px solid var(--lum-hairline, rgba(231,214,170,.28));
  border-radius: 10px; padding: 9px 9px 11px;
  text-align: center; position: relative; cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.lum-card.selected {
  border-color: #f3e3bd;
  box-shadow: 0 0 22px rgba(212,175,106,.25), inset 0 0 0 1px rgba(247,231,206,.4);
}
.lum-card.correct-reveal {
  border-color: var(--lum-gold-3, #d4af6a);
  box-shadow: 0 0 28px rgba(212,175,106,.35);
}
.lum-card.wrong-reveal {
  opacity: 0.45;
}
.lum-face {
  width: 100%; height: auto;
  aspect-ratio: 3 / 4; /* TMDB headshots are portrait — keep the box portrait at every width */
  background: linear-gradient(170deg, #262117, #171410);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.lum-face img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
.lum-face-placeholder { font-size: 48px; color: var(--lum-gold-3, #d4af6a); opacity: 0.5; }
.lum-name {
  margin-top: 9px; font-size: 12.5px; font-weight: 500;
  letter-spacing: 1px; color: #ddd2b5;
}
.lum-card.selected .lum-name { color: var(--lum-gold-2, #f0ddae); }
.lum-check {
  position: absolute; top: -7px; right: -7px;
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(180deg, #f4e3b2, var(--lum-gold-4, #c49a4a));
  color: #070605; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.6);
}

/* Lock In button */
.lum-lockin { margin: 24px 22px 0; text-align: center; }
/* Ready gate — shown before each question; grid stays hidden until tapped */
.lum-ready {
  text-align: center; padding: 56px 20px 64px; max-width: 420px; margin: 0 auto;
}
.lum-ready-kicker {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--lum-gold-3, #d4af6a); margin-bottom: 10px;
}
.lum-ready-title {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 900;
  color: var(--lum-on-dark, #f3eee1); margin-bottom: 10px;
}
.lum-ready-sub {
  font-size: 0.88rem; color: var(--lum-muted, #a89e88); line-height: 1.6;
  margin-bottom: 28px;
}
.lum-ready-tip {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.lum-ready-tip i { color: var(--color-gold); margin-right: 4px; }

.lum-ready-sub b { color: var(--lum-gold-2, #f0ddae); }
.lum-ready-btn { animation: lumReadyPulse 2.2s ease-in-out infinite; }
@keyframes lumReadyPulse {
  0%, 100% { box-shadow: 0 5px 24px rgba(238,221,180,.28), inset 0 1px 0 rgba(255,255,255,.7); }
  50% { box-shadow: 0 5px 34px rgba(238,221,180,.5), inset 0 1px 0 rgba(255,255,255,.7); }
}

.lum-lockin-btn {
  display: inline-block; min-width: 210px; padding: 14px 36px;
  background: linear-gradient(180deg, #fdf3dc 0%, var(--lum-gold-2, #f0ddae) 40%, #d8bf8e 100%);
  border: none; border-radius: 40px;
  font-size: 13.5px; font-weight: 800; letter-spacing: 3px;
  color: #131008; text-transform: uppercase; cursor: pointer;
  box-shadow: 0 5px 24px rgba(238,221,180,.28), inset 0 1px 0 rgba(255,255,255,.7);
  transition: opacity 0.15s, transform 0.1s;
}
.lum-lockin-btn:disabled {
  opacity: 0.35; cursor: not-allowed; transform: none;
}
.lum-hint {
  margin-top: 11px; font-size: 10.5px;
  letter-spacing: 1px; color: #8a8170;
}

/* Reveal overlay (inside #modal-root, same modal pattern) */
.lum-reveal-result {
  font-size: 1rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; text-align: center; margin-bottom: 14px;
}
.lum-reveal-result.correct { color: var(--lum-gold-2, #f0ddae); }
.lum-reveal-result.wrong   { color: var(--lum-muted, #a89e88); }
.lum-actor-card {
  background: linear-gradient(180deg, var(--lum-card, #1d1a13), var(--lum-card-dark, #15120c));
  border: 1px solid var(--lum-hairline, rgba(231,214,170,.28));
  border-radius: 10px; padding: 16px; margin-top: 12px;
  position: relative; text-align: left;
}
/* Photo sits in a fixed left column (absolute, not floated) so the
   name/meta lines stay in their own column instead of wrapping under it.
   Only when there IS a photo — photo-less cards keep full width. */
.lum-actor-card.has-photo { padding-left: 102px; min-height: 104px; }
.lum-actor-card .lum-actor-photo {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--lum-gold-3, #d4af6a);
  position: absolute; left: 16px; top: 16px;
}
.lum-actor-card .lum-actor-name {
  font-size: 1rem; font-weight: 700; color: var(--lum-on-dark, #f3eee1);
  margin-bottom: 4px;
}
.lum-actor-card .lum-actor-meta {
  font-size: 0.78rem; color: var(--lum-muted, #a89e88); line-height: 1.5;
}
.lum-actor-card .lum-actor-fact {
  font-style: italic; color: var(--lum-gold-2, #f0ddae);
  font-size: 0.82rem; margin-top: 10px; display: block;
}
/* Pull the quote back out of the photo column: it reads better full-width */
.lum-actor-card.has-photo .lum-actor-fact { margin-left: -86px; }
.lum-continue-btn {
  display: block; width: 100%; margin-top: 16px;
  padding: 13px; border: none; border-radius: 40px;
  background: linear-gradient(180deg, #fdf3dc 0%, var(--lum-gold-2, #f0ddae) 40%, #d8bf8e 100%);
  font-size: 13px; font-weight: 800; letter-spacing: 3px;
  color: #131008; text-transform: uppercase; cursor: pointer;
}

/* Archive/catch-up banner re-uses existing .ret-msg.catchup */

/* Desktop: all four stars in one row so the whole question fits without scrolling */
@media (min-width: 900px) {
  .lum-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 880px;
    gap: 14px;
  }
  .lum-meta { padding-top: 8px; }
  .lum-sentence { margin-top: 10px; margin-bottom: 14px; }
}


/* --- Network cross-promo button (under sponsor strip, above clues/answers).
   The button wears the DESTINATION game's brand colors, not ours. --- */
.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)); }
.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; }

.res-next-game-row { text-align: center; padding: 14px 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: linear-gradient(180deg, #f0c24e, #c8960a);
  color: #16151c; border: none;
  box-shadow: 0 0 14px rgba(226, 184, 87, 0.25);
}
.res-next-game-btn.res-next-game--tvaddict {
  background: linear-gradient(180deg, #6fb0f5, #2f6fc4);
  color: #07182e; border: none;
  box-shadow: 0 0 14px rgba(90, 165, 240, 0.28);
}
.res-next-game-btn.res-next-game--luminary {
  background: linear-gradient(180deg, #f4e3b2, #c49a4a);
  color: #131008; border: none;
  box-shadow: 0 0 14px rgba(212, 175, 106, 0.25);
}
.res-next-game-btn.res-next-game--normie {
  background: linear-gradient(180deg, #5cd860, #2a9e2e);
  color: #07260c; border: none;
  box-shadow: 0 0 14px rgba(92, 216, 96, 0.28);
}

.res-next-game-btn.res-next-game--popcornjury {
  background: linear-gradient(180deg, #e2b857, #b8892f);
  color: #1a1205; border: none;
  box-shadow: 0 0 14px rgba(226, 184, 87, 0.28);
}

/* ============================================================
   PLOT HOLE 100k MILESTONE BANNER — network cross-promo above the game
   Server renders the numbers; js/app.js rolls the reel, polls
   /api/milestone, and adds .milestone-hit past the goal.
   ============================================================ */
.milestone-marquee {
  --ms-glow: 168, 133, 60; /* light-theme gold */
  position: relative;
  max-width: 430px;
  margin: 2px auto 4px;
  padding: 8px 16px 0;
  text-align: center;
  z-index: 2;
}
a.milestone-marquee { display: block; text-decoration: none; color: inherit; }
.milestone-marquee:hover .ms-sub { color: var(--color-gold); }
[data-theme="dark"] .milestone-marquee { --ms-glow: 212, 175, 106; }

.ms-eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--text-muted);
}
.ms-bulb {
  flex: 0 0 auto;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 8px 2px rgba(var(--ms-glow), .45);
  animation: msBulb 2.4s ease-in-out infinite;
}
.ms-bulb-alt { animation-delay: 1.2s; }
@keyframes msBulb { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }

.ms-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.2rem, 13vw, 4.6rem);
  line-height: 1;
  margin-top: 2px;
  color: var(--color-gold);
  text-shadow: 0 0 24px rgba(var(--ms-glow), .38), 0 0 70px rgba(var(--ms-glow), .16);
}
.ms-number.ms-settle { animation: msSettle .7s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes msSettle { 35% { transform: scale(1.07); } }

.ms-caption {
  font-family: 'Outfit', sans-serif;
  font-size: .6rem; font-weight: 700;
  letter-spacing: .42em; text-transform: uppercase;
  color: var(--text-faint);
  /* left tracking-compensation so the widely-spaced caption stays centered */
  margin: 2px 0 0 .42em;
}

/* Progress bar styled as a strip of film: gold fill + faint frame ticks */
.ms-film {
  position: relative; height: 8px; max-width: 250px;
  margin: 10px auto 7px;
  border-radius: 3px; overflow: hidden;
  background: rgba(var(--ms-glow), .13);
}
.ms-film-fill {
  position: relative; height: 100%;
  background: linear-gradient(90deg, rgba(var(--ms-glow), .55), var(--color-gold));
  transition: width 1.2s ease;
}
.ms-film-fill::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 7px, rgba(15, 15, 19, .35) 7px 9px);
}
.ms-film-fill::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 44px; left: -44px;
  background: linear-gradient(90deg, transparent, rgba(255, 248, 230, .7), transparent);
  animation: msShimmer 3.4s ease-in-out infinite;
}
@keyframes msShimmer { 0%, 55% { left: -44px; } 100% { left: 100%; } }

.ms-sub { font-size: .72rem; color: var(--text-faint); }

/* Gold projector dust drifting around the number */
.ms-dust {
  position: absolute;
  border-radius: 50%;
  background: rgba(var(--ms-glow), .8);
  pointer-events: none;
  opacity: 0;
  animation: msDust 8s ease-in-out infinite;
}
.md1  { width: 3px;   height: 3px;   top: 34%; left: 13%; }
.md2  { width: 2px;   height: 2px;   top: 58%; left: 21%; animation-delay: 2.2s; animation-duration: 10s; }
.md3  { width: 8px;   height: 8px;   top: 22%; left: 26%; animation-delay: 1.1s; }
.md4  { width: 2.5px; height: 2.5px; top: 70%; left:  9%; animation-delay: 3.4s; animation-duration: 9s; }
.md5  { width: 2px;   height: 2px;   top: 18%; left: 17%; animation-delay: 5s;   animation-duration: 11s; }
.md6  { width: 3px;   height: 3px;   top: 30%; left: 86%; animation-delay: .6s;  animation-duration: 9.5s; }
.md7  { width: 2px;   height: 2px;   top: 62%; left: 79%; animation-delay: 2.8s; }
.md8  { width: 8px;   height: 8px;   top: 20%; left: 72%; animation-delay: 4.2s; }
.md9  { width: 2.5px; height: 2.5px; top: 72%; left: 90%; animation-delay: 1.8s; animation-duration: 12s; }
.md10 { width: 2px;   height: 2px;   top: 44%; left: 82%; animation-delay: 6s;   animation-duration: 10.5s; }
@keyframes msDust {
  0%   { transform: translate(0, 0) scale(.6); opacity: 0; }
  20%  { opacity: .9; }
  50%  { transform: translate(8px, -14px) scale(1.15); }
  80%  { opacity: .6; }
  100% { transform: translate(-6px, -30px) scale(.5); opacity: 0; }
}
/* Two of the motes are 4-point star glints */
.ms-dust.md3, .ms-dust.md8 {
  border-radius: 0;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation-name: msTwinkle;
}
@keyframes msTwinkle {
  0%, 100% { transform: scale(.3) rotate(0deg); opacity: 0; }
  50%      { transform: scale(1.2) rotate(45deg); opacity: 1; }
}

/* Celebration state once the goal is crossed */
.milestone-hit .ms-number { animation: msGlowPulse 2.6s ease-in-out infinite; }
@keyframes msGlowPulse {
  0%, 100% { text-shadow: 0 0 24px rgba(var(--ms-glow), .38), 0 0 70px rgba(var(--ms-glow), .16); }
  50%      { text-shadow: 0 0 36px rgba(var(--ms-glow), .6),  0 0 95px rgba(var(--ms-glow), .3); }
}
.milestone-hit .ms-film-fill::after { animation-duration: 1.8s; }

/* One-time burst on crossing (spawned by JS, removed after it plays) */
.ms-burst { position: absolute; inset: 0; pointer-events: none; }
.ms-burst-bit {
  position: absolute; top: 52%; left: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-gold);
  animation: msBurst 1.3s cubic-bezier(.15, .65, .35, 1) forwards;
}
.ms-burst-bit.ms-bit-strip { width: 3px; height: 10px; border-radius: 1px; background: rgba(var(--ms-glow), .9); }
@keyframes msBurst {
  0%   { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.35) rotate(var(--rot)); opacity: 0; }
}

@media (max-width: 480px) {
  .milestone-marquee { padding: 4px 10px 0; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ms-dust { display: none; }
  .ms-bulb { animation: none; opacity: .8; }
  .ms-film-fill { transition: none; }
  .ms-film-fill::after { display: none; }
  .milestone-hit .ms-number, .ms-number.ms-settle, .ms-burst-bit { animation: none; }
}

/* ── PLAY THEM ALL passport (ported from plothole 2026-07-27). One compact
   row of brand-tinted chips under the promoted next-game button — the daily
   network checklist. Played chips dim and carry a check; un-played chips
   stay tappable. The ONE never-ever-played game gets the starred pulsing
   first-time chip ("one you haven't tried"). --- */
.res-passport-row { text-align: center; padding: 10px 16px 2px; }
.res-passport-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: 7px;
}
.res-passport-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
}
.res-passport-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 50px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.3px;
  text-decoration: none; line-height: 1.2;
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
a.res-passport-chip:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
a.res-passport-chip:active { transform: scale(0.96); }
.res-passport-chip.done { opacity: 0.55; }
.res-passport-chip.done i { font-size: 0.6rem; }
.res-passport--plothole {
  color: #edc678; border-color: rgba(237, 198, 120, 0.55);
  background: rgba(237, 198, 120, 0.09);
}
.res-passport--tvaddict {
  color: #6fb0f5; border-color: rgba(111, 176, 245, 0.55);
  background: rgba(111, 176, 245, 0.09);
}
.res-passport--luminary {
  color: #f0ddae; border-color: rgba(212, 175, 106, 0.55);
  background: rgba(212, 175, 106, 0.09);
}
.res-passport--normie {
  color: #5cd860; border-color: rgba(92, 216, 96, 0.55);
  background: rgba(92, 216, 96, 0.09);
}
.res-passport--popcornjury {
  color: #e2b857; border-color: rgba(226, 184, 87, 0.55);
  background: rgba(226, 184, 87, 0.09);
}
/* Any-game network streak, shown inline in the eyebrow/swept row */
.res-passport-streak {
  color: #ff9d47; font-weight: 800; letter-spacing: 0.5px;
  text-transform: none;
}
/* First-time spotlight: the ONE never-played ring game gets the glow */
.res-passport-chip.first-time {
  animation: passportPulse 2.2s ease-in-out infinite;
  border-width: 1px; font-weight: 800;
}
@keyframes passportPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
  50%      { box-shadow: 0 0 10px 1px rgba(255, 255, 255, 0.22); }
}
.res-passport-swept {
  font-size: 0.78rem; font-weight: 700; color: var(--color-gold);
  padding: 7px 14px; display: inline-block;
  border: 1px solid rgba(226, 184, 87, 0.4); border-radius: 50px;
  background: rgba(226, 184, 87, 0.07);
  position: relative; overflow: hidden;
}
/* One-shot gold shimmer — sweeping the network is the rarest state */
.res-passport-swept::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  animation: sweptShimmer 1.4s ease 0.8s 2;
}
@keyframes sweptShimmer { to { left: 130%; } }
