/* NostalgiU 3.0 Alpha Design System */
:root{
  --nu-bg:#100f18;--nu-bg-2:#1b1830;--nu-surface:rgba(255,255,255,.08);--nu-surface-strong:rgba(255,255,255,.13);
  --nu-text:#fff8ec;--nu-muted:rgba(255,248,236,.74);--nu-accent:#ffd166;--nu-accent-2:#7bdff2;
  --nu-border:rgba(255,255,255,.16);--nu-shadow:0 24px 60px rgba(0,0,0,.28);--nu-radius:24px;--nu-radius-sm:16px;
  --nu-fast:160ms ease;--nu-medium:260ms ease;--nu-font-display:ui-rounded,"Avenir Next","Trebuchet MS",system-ui,sans-serif;
}
html.memory-70s{--nu-bg:#25170f;--nu-bg-2:#4a2b17;--nu-surface:rgba(255,221,165,.12);--nu-text:#fff3d7;--nu-muted:rgba(255,243,215,.76);--nu-accent:#f6a13a;--nu-accent-2:#d9c26c;--nu-border:rgba(255,205,126,.28)}
html.memory-80s{--nu-bg:#09051d;--nu-bg-2:#21105c;--nu-surface:rgba(157,92,255,.14);--nu-text:#f8f4ff;--nu-muted:rgba(248,244,255,.75);--nu-accent:#ff4fd8;--nu-accent-2:#00e5ff;--nu-border:rgba(255,79,216,.32)}
html.memory-90s{--nu-bg:#101a22;--nu-bg-2:#063c4a;--nu-surface:rgba(0,206,201,.12);--nu-text:#f7fff8;--nu-muted:rgba(247,255,248,.74);--nu-accent:#ffd60a;--nu-accent-2:#00cec9;--nu-border:rgba(0,206,201,.28)}
html.memory-2000s{--nu-bg:#101827;--nu-bg-2:#22314f;--nu-surface:rgba(210,230,255,.12);--nu-text:#f4f8ff;--nu-muted:rgba(244,248,255,.74);--nu-accent:#8ecaff;--nu-accent-2:#d8e8ff;--nu-border:rgba(216,232,255,.25)}
html.memory-2010s{--nu-bg:#0b0e14;--nu-bg-2:#151d2d;--nu-surface:rgba(255,255,255,.075);--nu-text:#f7f8fb;--nu-muted:rgba(247,248,251,.72);--nu-accent:#fff;--nu-accent-2:#8ab4ff;--nu-border:rgba(255,255,255,.16)}
body{background:radial-gradient(circle at top left,color-mix(in srgb,var(--nu-accent) 24%,transparent),transparent 30rem),radial-gradient(circle at bottom right,color-mix(in srgb,var(--nu-accent-2) 22%,transparent),transparent 34rem),linear-gradient(135deg,var(--nu-bg),var(--nu-bg-2));color:var(--nu-text);transition:background var(--nu-medium),color var(--nu-medium)}
h1,h2,h3,.brand,.hero-title{font-family:var(--nu-font-display);letter-spacing:-.03em}
.section-wrap,.hero-panel,.feature-card,.question-box,.result-box{background:var(--nu-surface);border:1px solid var(--nu-border);box-shadow:var(--nu-shadow);backdrop-filter:blur(18px);border-radius:var(--nu-radius);transition:transform var(--nu-fast),border-color var(--nu-fast),background var(--nu-medium),box-shadow var(--nu-fast)}
.feature-card:hover,.memory-mode-option:hover,.board-question:hover,.stage-mode-button:hover,.stage-mode-link:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--nu-accent) 65%,var(--nu-border))}
.brand-promise,.brand-promise-shell{display:block;color:var(--nu-muted);font-weight:700;margin-top:.5rem}
.memory-mode-section{margin:1.25rem auto 2rem}
.memory-mode-shell{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(280px,1.5fr);gap:1.25rem;align-items:center}
.memory-mode-copy h2{margin:.25rem 0 .4rem;font-size:clamp(1.6rem,3vw,2.8rem)}
.memory-mode-grid{display:grid;grid-template-columns:repeat(5,minmax(95px,1fr));gap:.75rem}
.memory-mode-option{appearance:none;border:1px solid var(--nu-border);background:var(--nu-surface);color:var(--nu-text);border-radius:var(--nu-radius-sm);padding:.95rem .7rem;cursor:pointer;box-shadow:0 12px 30px rgba(0,0,0,.18);display:grid;gap:.25rem;place-items:center;min-height:105px}
.memory-mode-option.active{background:color-mix(in srgb,var(--nu-accent) 20%,var(--nu-surface));border-color:var(--nu-accent)}
.memory-mode-icon{font-size:1.65rem}.memory-mode-option small{color:var(--nu-muted)}
.stage-mode-action-bar{display:flex;gap:.7rem;justify-content:center;align-items:center;flex-wrap:wrap;margin:.75rem auto 1rem;padding:.55rem;border-radius:999px;background:rgba(0,0,0,.18);border:1px solid var(--nu-border);backdrop-filter:blur(16px);width:fit-content;max-width:100%}
.stage-mode-button,.stage-mode-link{appearance:none;border:1px solid var(--nu-border);background:var(--nu-surface-strong);color:var(--nu-text);border-radius:999px;padding:.75rem 1rem;font-weight:800;text-decoration:none;cursor:pointer}
.stage-mode-button.active{background:color-mix(in srgb,var(--nu-accent) 26%,var(--nu-surface));border-color:var(--nu-accent)}
body.stage-mode-active{overflow:hidden}
body.stage-mode-active header,body.stage-mode-active nav,body.stage-mode-active footer,body.stage-mode-active .memory-mode-section{opacity:0;pointer-events:none;max-height:0;overflow:hidden}
.stage-mode-target,body.stage-mode-active #bigBoardGrid{width:min(96vw,1500px)!important;max-width:96vw!important;margin:1rem auto!important;transform:scale(1.01)}
body.stage-mode-active .board-cell{min-height:clamp(72px,12vh,150px);font-size:clamp(1rem,2.1vw,2rem)}
body.stage-mode-active .stage-mode-action-bar{position:sticky;top:.75rem;z-index:9999}
.choice.correct{border-color:#70ff9b!important;background:rgba(112,255,155,.18)!important}.choice.wrong{border-color:#ff7070!important;background:rgba(255,112,112,.16)!important}
@media(max-width:860px){.memory-mode-shell{grid-template-columns:1fr}.memory-mode-grid{grid-template-columns:repeat(2,minmax(120px,1fr))}.memory-mode-option:last-child{grid-column:1/-1}.stage-mode-action-bar{border-radius:22px;width:100%}}


/* Compact On This Day section */
.compact-on-this-day,
.today-nostalgia-section.compact-on-this-day {
  max-width: 980px;
  margin: 1.25rem auto;
  padding: 1rem !important;
}

.compact-otd-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}

.compact-otd-header h2 {
  margin: .15rem 0 0;
  font-size: clamp(1.35rem, 2.2vw, 2.05rem);
}

.compact-otd-subtitle {
  margin: 0;
  color: var(--nu-muted);
  font-weight: 700;
  font-size: .95rem;
}

.compact-otd-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: .65rem;
}

.compact-otd-card {
  border: 1px solid var(--nu-border);
  background: rgba(255,255,255,.07);
  border-radius: 16px;
  padding: .75rem;
  min-height: 150px;
}

.compact-otd-top {
  display: flex;
  justify-content: space-between;
  gap: .4rem;
  align-items: center;
  margin-bottom: .4rem;
}

.compact-otd-year {
  color: var(--nu-muted);
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}

.compact-otd-card h3 {
  font-size: .95rem;
  line-height: 1.08;
  margin: .2rem 0 .35rem;
}

.compact-otd-card p {
  color: var(--nu-muted);
  font-size: .78rem;
  line-height: 1.25;
  margin: 0;
}

@media (max-width: 980px) {
  .compact-otd-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
  .compact-otd-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .compact-otd-header {
    display: block;
  }
  .compact-otd-grid {
    grid-template-columns: 1fr;
  }
  .compact-otd-card:last-child {
    grid-column: auto;
  }
}


/* NostalgiU 3.0 Big Visual Pass */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
  opacity: .42;
  z-index: -1;
}

.nu3-soft-hidden-original-hero {
  display: none !important;
}

.nu3-hero {
  position: relative;
  overflow: hidden;
  max-width: 1180px;
  margin: 1rem auto 1.25rem;
  padding: clamp(2rem, 6vw, 4.5rem) 1.25rem;
  text-align: center;
  isolation: isolate;
}

.nu3-hero::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--nu-accent) 22%, transparent), transparent 20rem),
    radial-gradient(circle at 80% 75%, color-mix(in srgb, var(--nu-accent-2) 18%, transparent), transparent 22rem);
  z-index: -1;
}

.nu3-orb {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  filter: blur(14px);
  opacity: .28;
  pointer-events: none;
}

.nu3-orb-a {
  left: -80px;
  top: -80px;
  background: var(--nu-accent);
}

.nu3-orb-b {
  right: -80px;
  bottom: -80px;
  background: var(--nu-accent-2);
}

.nu3-hero-inner {
  position: relative;
  z-index: 1;
}

.nu3-kicker,
.eyebrow {
  color: var(--nu-accent);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 900;
  font-size: .78rem;
}

.nu3-hero h1 {
  margin: .25rem 0;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: .9;
  text-shadow: 0 18px 50px rgba(0,0,0,.32);
}

.nu3-tagline {
  margin: .25rem 0;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 900;
}

.nu3-promise {
  max-width: 760px;
  margin: .65rem auto 0;
  color: var(--nu-muted);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 700;
}

.nu3-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.35rem;
}

.nu3-primary-action,
.nu3-secondary-action,
.nu3-board-action {
  border: 1px solid var(--nu-border);
  border-radius: 999px;
  padding: .85rem 1.05rem;
  color: var(--nu-text);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  transition: transform var(--nu-fast), border-color var(--nu-fast), background var(--nu-fast), box-shadow var(--nu-fast);
}

.nu3-primary-action {
  background: color-mix(in srgb, var(--nu-accent) 28%, var(--nu-surface));
  border-color: color-mix(in srgb, var(--nu-accent) 75%, var(--nu-border));
  box-shadow: 0 16px 35px color-mix(in srgb, var(--nu-accent) 18%, transparent);
}

.nu3-secondary-action,
.nu3-board-action {
  background: var(--nu-surface-strong);
}

.nu3-primary-action:hover,
.nu3-secondary-action:hover,
.nu3-board-action:hover {
  transform: translateY(-3px);
  border-color: var(--nu-accent);
}

.nu3-game-section {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.nu3-game-section > h2,
.nu3-game-section > h3 {
  letter-spacing: -0.04em;
}

.nu3-big-board-section {
  max-width: 1240px;
  padding: clamp(1rem, 2.5vw, 1.4rem) !important;
  position: relative;
  overflow: hidden;
}

.nu3-big-board-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--nu-accent) 11%, transparent), transparent 40%),
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--nu-accent-2) 14%, transparent), transparent 50%);
  pointer-events: none;
}

.nu3-big-board-section > * {
  position: relative;
  z-index: 1;
}

.nu3-board-command-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  padding: .75rem;
  margin-bottom: .85rem;
  border: 1px solid var(--nu-border);
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(14px);
  border-radius: 22px;
}

.nu3-board-command-bar strong {
  display: block;
  font-size: 1.05rem;
}

.nu3-board-actions {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nu3-board-title-chip {
  display: inline-flex;
  margin-right: .55rem;
  vertical-align: middle;
  border-radius: 999px;
  padding: .25rem .55rem;
  border: 1px solid var(--nu-border);
  background: var(--nu-surface-strong);
  color: var(--nu-accent);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.nu3-big-board-grid,
#bigBoardGrid {
  gap: .55rem !important;
}

#bigBoardGrid .board-cell,
.nu3-big-board-grid .board-cell {
  border-radius: 18px !important;
  border: 1px solid var(--nu-border) !important;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--nu-surface-strong) 85%, transparent), rgba(255,255,255,.04)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 25px rgba(0,0,0,.18) !important;
}

#bigBoardGrid .board-header {
  background: color-mix(in srgb, var(--nu-accent) 18%, rgba(0,0,0,.18)) !important;
  color: var(--nu-text) !important;
  font-weight: 950 !important;
  letter-spacing: .03em;
  text-transform: uppercase;
}

#bigBoardGrid .board-question {
  color: var(--nu-text) !important;
  min-height: clamp(58px, 7vw, 92px);
  font-size: clamp(1.05rem, 2vw, 1.9rem) !important;
  transition: transform var(--nu-fast), box-shadow var(--nu-fast), border-color var(--nu-fast), background var(--nu-fast);
}

#bigBoardGrid .board-question:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--nu-accent) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 18px 35px rgba(0,0,0,.28) !important;
}

#bigBoardGrid .board-question.used {
  opacity: .42;
  filter: saturate(.75);
}

.nu3-interactive {
  border-radius: 16px;
}

.question-box {
  max-width: 900px;
  margin: 0 auto;
}

.choices {
  display: grid;
  gap: .7rem;
}

.choice {
  border-radius: 18px !important;
  border: 1px solid var(--nu-border) !important;
  background: var(--nu-surface-strong) !important;
  color: var(--nu-text) !important;
  padding: .9rem 1rem !important;
  font-weight: 850 !important;
}

.choice:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--nu-accent) !important;
}

body.stage-mode-active .nu3-big-board-section {
  max-width: 98vw !important;
  min-height: 94vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.stage-mode-active .nu3-board-command-bar {
  position: fixed;
  left: 50%;
  top: .75rem;
  transform: translateX(-50%);
  z-index: 10000;
  width: min(920px, calc(100vw - 2rem));
}

body.stage-mode-active #bigBoardGrid {
  margin-top: 4rem !important;
}

@media (max-width: 900px) {
  .nu3-board-command-bar {
    display: block;
  }
  .nu3-board-actions {
    justify-content: flex-start;
    margin-top: .65rem;
  }
}

@media (max-width: 720px) {
  .nu3-hero {
    padding: 2.2rem 1rem;
  }
  .nu3-hero h1 {
    font-size: clamp(3rem, 18vw, 5rem);
  }
  .nu3-primary-action,
  .nu3-secondary-action {
    width: 100%;
  }
}


/* Big Board Stage Mode correction */
.global-stage-mode-bar {
  display: none !important;
}

body.big-board-stage-active {
  overflow: hidden;
}

body.big-board-stage-active > *:not(.big-board-stage-target) {
  visibility: hidden;
}

body.big-board-stage-active .big-board-stage-target,
body.big-board-stage-active .big-board-stage-target * {
  visibility: visible;
}

.big-board-stage-target {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  margin: 0 !important;
  padding: clamp(.65rem, 1.2vw, 1rem) !important;
  border-radius: 0 !important;
  display: grid !important;
  grid-template-rows: auto 1fr auto;
  overflow: hidden !important;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--nu-accent) 20%, transparent), transparent 28rem),
    linear-gradient(135deg, var(--nu-bg), var(--nu-bg-2)) !important;
}

.big-board-stage-target .nu3-board-command-bar {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 .55rem !important;
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: .55rem .7rem !important;
  border-radius: 18px !important;
}

.big-board-stage-target .nu3-board-actions {
  justify-content: center;
}

.big-board-stage-target .nu3-stage-difficulty-slot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.big-board-stage-target #boardDifficultySelector {
  display: flex !important;
  gap: .35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.big-board-stage-target #boardDifficultySelector .difficulty-btn {
  padding: .45rem .65rem !important;
  font-size: .82rem !important;
}

.big-board-stage-target #bigBoardGrid {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  display: grid !important;
  align-self: stretch !important;
  gap: clamp(.35rem, .65vw, .75rem) !important;
}

.big-board-stage-target #bigBoardGrid .board-cell {
  min-height: 0 !important;
  height: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: clamp(.9rem, 2.25vw, 2.3rem) !important;
}

.big-board-stage-target #bigBoardGrid .board-header {
  font-size: clamp(.75rem, 1.1vw, 1.35rem) !important;
}

.big-board-stage-target #bigBoardPlay {
  max-height: 32vh;
  overflow: auto;
}

.big-board-stage-target .question-box {
  max-width: min(1100px, 96vw);
}

body.big-board-stage-active .nu3-hero,
body.big-board-stage-active .memory-mode-section,
body.big-board-stage-active .compact-on-this-day,
body.big-board-stage-active footer,
body.big-board-stage-active nav,
body.big-board-stage-active header {
  display: none !important;
}

body.big-board-stage-active .stage-mode-action-bar:not(.nu3-board-command-bar) {
  display: none !important;
}

@media (max-width: 900px) {
  .big-board-stage-target .nu3-board-command-bar {
    grid-template-columns: 1fr;
  }
  .big-board-stage-target .nu3-board-actions,
  .big-board-stage-target .nu3-stage-difficulty-slot,
  .big-board-stage-target #boardDifficultySelector {
    justify-content: center;
  }
}


/* Stage Click Reliability Fix */
[data-stage-mode-toggle],
[data-nu3-new-board] {
  cursor: pointer !important;
  pointer-events: auto !important;
}

.nu3-board-command-bar {
  z-index: 20;
}

body.big-board-stage-active .big-board-stage-target {
  visibility: visible !important;
}


/* Homepage Game Readability Fix */
/* Make homepage games easier to read across all Memory Modes. */

:root {
  --nu-readable-card: rgba(10, 12, 22, .54);
  --nu-readable-card-strong: rgba(10, 12, 22, .72);
  --nu-readable-text: #fffdf7;
  --nu-readable-muted: rgba(255, 253, 247, .84);
}

.question-box,
.result-box,
.mode-card,
.game-card,
.nu3-game-section,
#dailyQuiz,
#liveQuiz,
#nostalgiaIQGame,
#guessDecadeGame,
#thisOrThatGame,
#memoryMatchGame,
#bigBoardPlay {
  color: var(--nu-readable-text) !important;
}

.nu3-game-section .question-box,
.nu3-game-section .result-box,
#dailyQuiz .question-box,
#liveQuiz .question-box,
#nostalgiaIQGame .question-box,
#guessDecadeGame .question-box,
#thisOrThatGame .question-box,
#memoryMatchGame .question-box,
#bigBoardPlay .question-box {
  background:
    linear-gradient(145deg, var(--nu-readable-card-strong), rgba(255,255,255,.07)) !important;
  border-color: color-mix(in srgb, var(--nu-accent) 32%, var(--nu-border)) !important;
  box-shadow: 0 20px 48px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.13) !important;
}

.question-box h3,
.result-box h3,
#dailyQuiz h3,
#liveQuiz h3,
#nostalgiaIQGame h3,
#guessDecadeGame h3,
#thisOrThatGame h3,
#memoryMatchGame h3,
#bigBoardPlay h3 {
  color: var(--nu-readable-text) !important;
  font-size: clamp(1.25rem, 2.1vw, 2rem) !important;
  line-height: 1.18 !important;
  letter-spacing: -.025em;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}

.question-meta,
.question-meta span,
.support,
.explanation,
.mode-result,
#thisThatResult,
#guessExplain,
#matchExplain,
#bigBoardExplain,
#dailyQuiz p,
#liveQuiz p,
#nostalgiaIQGame p,
#guessDecadeGame p,
#thisOrThatGame p,
#memoryMatchGame p {
  color: var(--nu-readable-muted) !important;
  font-size: clamp(.95rem, 1.25vw, 1.08rem) !important;
  line-height: 1.45 !important;
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  margin-bottom: .75rem;
}

.question-meta span,
.decade-pill,
.category-pill {
  background: rgba(255,255,255,.12) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  color: var(--nu-readable-text) !important;
  border-radius: 999px !important;
  padding: .32rem .62rem !important;
  font-weight: 900 !important;
  letter-spacing: .02em;
}

.choices,
#dailyQuiz .choices,
#liveQuiz .choices,
#nostalgiaIQGame .choices,
#guessDecadeGame .choices,
#thisOrThatGame .choices,
#memoryMatchGame .choices,
#bigBoardPlay .choices {
  gap: .85rem !important;
  margin-top: .9rem;
}

.choice,
button.choice,
#dailyQuiz .choice,
#liveQuiz .choice,
#nostalgiaIQGame .choice,
#guessDecadeGame .choice,
#thisOrThatGame .choice,
#memoryMatchGame .choice,
#bigBoardPlay .choice {
  color: var(--nu-readable-text) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.075)) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  font-size: clamp(1.02rem, 1.45vw, 1.25rem) !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
  padding: 1rem 1.05rem !important;
  min-height: 54px;
  text-align: left;
  text-shadow: 0 1px 10px rgba(0,0,0,.28);
}

.choice:hover:not(:disabled) {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--nu-accent) 22%, rgba(255,255,255,.13)), rgba(255,255,255,.1)) !important;
  border-color: var(--nu-accent) !important;
}

.choice.correct {
  color: #f8fff9 !important;
  background: linear-gradient(145deg, rgba(41, 186, 95, .82), rgba(28, 120, 66, .72)) !important;
  border-color: #70ff9b !important;
}

.choice.wrong {
  color: #fff8f8 !important;
  background: linear-gradient(145deg, rgba(210, 70, 80, .82), rgba(125, 28, 42, .72)) !important;
  border-color: #ff8a8a !important;
}

.difficulty-btn,
#boardDifficultySelector .difficulty-btn,
#dailyQuiz .difficulty-btn,
#liveQuiz .difficulty-btn {
  color: var(--nu-readable-text) !important;
  background: rgba(255,255,255,.13) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  font-weight: 900 !important;
  font-size: .95rem !important;
}

.difficulty-btn.active,
#boardDifficultySelector .difficulty-btn.active {
  color: #121212 !important;
  background: var(--nu-accent) !important;
  border-color: var(--nu-accent) !important;
}

/* This-or-that / duel cards */
.duel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: .9rem;
}

.duel-choice {
  color: var(--nu-readable-text) !important;
  background: linear-gradient(145deg, var(--nu-readable-card-strong), rgba(255,255,255,.09)) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 20px !important;
  padding: 1.1rem !important;
  text-align: left;
  min-height: 145px;
}

.duel-choice strong {
  color: var(--nu-readable-text) !important;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem) !important;
}

.duel-choice .support {
  display: block;
  margin-top: .55rem;
}

/* Big Board readability */
#bigBoardGrid .board-cell {
  color: var(--nu-readable-text) !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.34);
}

#bigBoardGrid .board-header {
  color: #fff !important;
  font-size: clamp(.86rem, 1.15vw, 1.2rem) !important;
}

#bigBoardGrid .board-question strong,
#bigBoardGrid .board-question {
  color: #fff !important;
  font-weight: 950 !important;
}

#bigBoardPlay {
  margin-top: 1rem;
}

/* Compact On This Day readability */
.compact-otd-card {
  background: linear-gradient(145deg, var(--nu-readable-card), rgba(255,255,255,.07)) !important;
  color: var(--nu-readable-text) !important;
}

.compact-otd-card h3 {
  color: var(--nu-readable-text) !important;
  font-size: .98rem !important;
}

.compact-otd-card p,
.compact-otd-year {
  color: var(--nu-readable-muted) !important;
}

/* Stage mode readability */
.big-board-stage-target .nu3-board-command-bar strong {
  color: var(--nu-readable-text) !important;
}

.big-board-stage-target #bigBoardGrid .board-question {
  font-size: clamp(1.15rem, 2.6vw, 2.8rem) !important;
}

.big-board-stage-target #bigBoardGrid .board-header {
  font-size: clamp(.85rem, 1.3vw, 1.45rem) !important;
}

.big-board-stage-target #bigBoardPlay .question-box h3 {
  font-size: clamp(1.5rem, 2.8vw, 2.5rem) !important;
}

.big-board-stage-target #bigBoardPlay .choice {
  font-size: clamp(1.1rem, 1.7vw, 1.4rem) !important;
}

@media (max-width: 700px) {
  .duel-grid {
    grid-template-columns: 1fr;
  }

  .question-box h3,
  #dailyQuiz h3,
  #liveQuiz h3,
  #nostalgiaIQGame h3,
  #guessDecadeGame h3,
  #thisOrThatGame h3,
  #memoryMatchGame h3,
  #bigBoardPlay h3 {
    font-size: clamp(1.18rem, 5vw, 1.55rem) !important;
  }

  .choice,
  button.choice {
    font-size: 1rem !important;
    min-height: 50px;
  }
}


/* Stage Mode Blank Screen Fix: overlay-based Big Board stage mode */
body.big-board-stage-active {
  overflow: hidden !important;
}

body.big-board-stage-active > *:not(.big-board-stage-overlay) {
  visibility: visible !important;
}

.big-board-stage-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--nu-accent) 18%, transparent), transparent 30rem),
    radial-gradient(circle at bottom right, color-mix(in srgb, var(--nu-accent-2) 16%, transparent), transparent 34rem),
    linear-gradient(135deg, var(--nu-bg), var(--nu-bg-2));
  color: var(--nu-readable-text, #fff);
  padding: clamp(.65rem, 1vw, 1rem);
  box-sizing: border-box;
  overflow: hidden;
}

.big-board-stage-shell {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: .65rem;
}

.big-board-stage-topbar {
  display: grid;
  grid-template-columns: minmax(170px, .7fr) minmax(220px, 1fr) minmax(240px, .9fr);
  gap: .75rem;
  align-items: center;
  border: 1px solid var(--nu-border);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(18px);
  border-radius: 20px;
  padding: .65rem .8rem;
}

.big-board-stage-topbar h2 {
  margin: .1rem 0 0;
  font-size: clamp(1.3rem, 2vw, 2rem);
}

.big-board-stage-center {
  display: flex;
  justify-content: center;
}

.big-board-stage-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
}

.stage-score {
  font-weight: 950;
  color: var(--nu-accent);
  padding: .45rem .65rem;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  border: 1px solid var(--nu-border);
}

.stage-difficulty-copy {
  display: flex;
  gap: .35rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stage-difficulty-copy .difficulty-btn {
  color: var(--nu-readable-text) !important;
  background: rgba(255,255,255,.13) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  padding: .42rem .62rem !important;
  font-size: .82rem !important;
  border-radius: 999px !important;
}

.stage-difficulty-copy .difficulty-btn.active {
  color: #111 !important;
  background: var(--nu-accent) !important;
}

.big-board-stage-grid-wrap {
  min-height: 0;
  display: flex;
}

#bigBoardGridStageClone {
  width: 100% !important;
  height: 100% !important;
  display: grid !important;
  gap: clamp(.35rem, .65vw, .75rem) !important;
  margin: 0 !important;
}

#bigBoardGridStageClone .board-cell {
  border-radius: 18px !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.38);
  border: 1px solid var(--nu-border) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.15), rgba(255,255,255,.06)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 12px 25px rgba(0,0,0,.2) !important;
}

#bigBoardGridStageClone .board-header {
  background: color-mix(in srgb, var(--nu-accent) 22%, rgba(0,0,0,.2)) !important;
  font-weight: 950 !important;
  font-size: clamp(.75rem, 1.35vw, 1.4rem) !important;
}

#bigBoardGridStageClone .board-question {
  cursor: pointer !important;
  font-size: clamp(1.15rem, 2.75vw, 3rem) !important;
  font-weight: 950 !important;
}

#bigBoardGridStageClone .board-question:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: var(--nu-accent) !important;
}

.big-board-stage-play-wrap {
  max-height: 32vh;
  overflow: auto;
}

.big-board-stage-play-wrap:empty {
  display: none;
}

.stage-play-clone .question-box {
  max-width: min(1100px, 96vw);
  margin: 0 auto;
}

@media (max-width: 900px) {
  .big-board-stage-topbar {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .big-board-stage-actions {
    justify-content: center;
  }
}


/* Correct Big Board Stage Boundary Fix */
/* This overrides old clone/overlay/hide approaches. */

.big-board-stage-overlay {
  display: none !important;
}

body.big-board-stage-active > * {
  visibility: visible !important;
}

.big-board-stage-boundary {
  position: relative;
}

.big-board-stage-placeholder {
  width: 100%;
  pointer-events: none;
}

.big-board-stage-active-boundary {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  margin: 0 !important;
  padding: clamp(.55rem, 1.1vw, 1rem) !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  gap: clamp(.4rem, .8vw, .75rem) !important;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--nu-accent) 18%, transparent), transparent 30rem),
    radial-gradient(circle at bottom right, color-mix(in srgb, var(--nu-accent-2) 16%, transparent), transparent 34rem),
    linear-gradient(135deg, var(--nu-bg), var(--nu-bg-2)) !important;
}

.big-board-stage-active-boundary::before {
  display: none !important;
}

.big-board-stage-active-boundary > * {
  min-height: 0;
}

.big-board-stage-active-boundary .nu3-board-command-bar {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(150px, .65fr) minmax(260px, 1fr) minmax(220px, .8fr);
  align-items: center;
  gap: .65rem;
  padding: .55rem .7rem !important;
  border-radius: 18px !important;
  background: rgba(0,0,0,.32) !important;
  border: 1px solid var(--nu-border) !important;
  z-index: 5;
}

.big-board-stage-active-boundary .nu3-board-label strong {
  color: var(--nu-readable-text, #fff) !important;
  font-size: clamp(1rem, 1.5vw, 1.45rem);
}

.big-board-stage-active-boundary .nu3-board-actions {
  justify-content: center;
}

.big-board-stage-active-boundary .nu3-stage-difficulty-slot,
.big-board-stage-active-boundary #boardDifficultySelector {
  display: flex !important;
  justify-content: flex-end;
  gap: .35rem;
  flex-wrap: wrap;
}

.big-board-stage-active-boundary #boardDifficultySelector .difficulty-btn {
  padding: .42rem .62rem !important;
  font-size: clamp(.72rem, .9vw, .95rem) !important;
}

.big-board-stage-active-boundary #bigBoardGrid {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  display: grid !important;
  gap: clamp(.35rem, .65vw, .75rem) !important;
  align-self: stretch !important;
}

.big-board-stage-active-boundary #bigBoardGrid .board-cell {
  min-height: 0 !important;
  height: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.38);
}

.big-board-stage-active-boundary #bigBoardGrid .board-header {
  font-size: clamp(.72rem, 1.2vw, 1.35rem) !important;
  font-weight: 950 !important;
}

.big-board-stage-active-boundary #bigBoardGrid .board-question {
  font-size: clamp(1.15rem, 2.75vw, 3rem) !important;
  font-weight: 950 !important;
}

.big-board-stage-active-boundary #bigBoardPlay {
  max-height: 30vh !important;
  overflow: auto !important;
  margin: 0 !important;
}

.big-board-stage-active-boundary #bigBoardPlay:empty {
  display: none !important;
}

.big-board-stage-active-boundary .question-box {
  max-width: min(1100px, 96vw) !important;
}

.big-board-stage-active-boundary .question-box h3 {
  font-size: clamp(1.4rem, 2.6vw, 2.4rem) !important;
}

.big-board-stage-active-boundary .choice {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem) !important;
}

body.big-board-stage-active {
  overflow: hidden !important;
}

body.big-board-stage-active .nu3-hero,
body.big-board-stage-active .memory-mode-section,
body.big-board-stage-active .compact-on-this-day,
body.big-board-stage-active footer,
body.big-board-stage-active nav,
body.big-board-stage-active header {
  display: none !important;
}

@media (max-width: 900px) {
  .big-board-stage-active-boundary .nu3-board-command-bar {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .big-board-stage-active-boundary .nu3-board-actions,
  .big-board-stage-active-boundary .nu3-stage-difficulty-slot,
  .big-board-stage-active-boundary #boardDifficultySelector {
    justify-content: center;
  }
}


/* Stage Mode Polish Pass: larger board, compact header, visible questions */

.big-board-stage-active-boundary {
  padding: clamp(.45rem, .8vw, .8rem) !important;
  grid-template-rows: auto minmax(0, 1fr) minmax(0, auto) !important;
  gap: clamp(.35rem, .55vw, .6rem) !important;
}

.big-board-stage-active-boundary .nu3-board-command-bar {
  min-height: 0 !important;
  grid-template-columns: minmax(140px, .45fr) auto minmax(380px, 1.1fr) auto !important;
  padding: .42rem .55rem !important;
  gap: .5rem !important;
  border-radius: 16px !important;
  background: rgba(0,0,0,.42) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.2) !important;
}

.big-board-stage-active-boundary .nu3-board-label .eyebrow {
  font-size: .62rem !important;
  margin: 0 !important;
  line-height: 1 !important;
}

.big-board-stage-active-boundary .nu3-board-label strong {
  font-size: clamp(.95rem, 1.3vw, 1.35rem) !important;
  line-height: 1.05 !important;
}

.nu3-stage-score-pill {
  justify-self: center;
  color: #111;
  background: var(--nu-accent);
  border: 1px solid color-mix(in srgb, var(--nu-accent) 80%, #fff);
  border-radius: 999px;
  padding: .46rem .85rem;
  font-size: clamp(.95rem, 1.25vw, 1.25rem);
  font-weight: 950;
  box-shadow: 0 10px 25px color-mix(in srgb, var(--nu-accent) 18%, transparent);
  white-space: nowrap;
}

.big-board-stage-active-boundary .nu3-board-actions {
  justify-content: flex-end !important;
  gap: .35rem !important;
}

.big-board-stage-active-boundary .nu3-board-action {
  padding: .48rem .7rem !important;
  font-size: clamp(.76rem, .9vw, .92rem) !important;
  line-height: 1 !important;
}

.big-board-stage-active-boundary .nu3-stage-difficulty-slot,
.big-board-stage-active-boundary #boardDifficultySelector {
  justify-content: center !important;
}

.big-board-stage-active-boundary #boardDifficultySelector .difficulty-btn {
  padding: .36rem .54rem !important;
  font-size: clamp(.68rem, .78vw, .84rem) !important;
  line-height: 1 !important;
}

.big-board-stage-active-boundary #bigBoardGrid {
  min-height: 0 !important;
  align-self: stretch !important;
  gap: clamp(.4rem, .7vw, .8rem) !important;
}

.big-board-stage-active-boundary #bigBoardGrid .board-cell {
  border-radius: clamp(12px, 1.5vw, 22px) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 14px 30px rgba(0,0,0,.22) !important;
}

.big-board-stage-active-boundary #bigBoardGrid .board-header {
  font-size: clamp(.8rem, 1.25vw, 1.45rem) !important;
  min-height: 0 !important;
}

.big-board-stage-active-boundary #bigBoardGrid .board-question {
  font-size: clamp(1.55rem, 3.45vw, 4.35rem) !important;
  letter-spacing: -.04em;
  min-height: 0 !important;
}

.big-board-stage-active-boundary #bigBoardGrid .board-question strong {
  font-size: inherit !important;
}

/* Active question panel in stage mode */
.big-board-stage-active-boundary #bigBoardPlay {
  display: block !important;
  width: 100% !important;
  max-height: 38vh !important;
  overflow: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.big-board-stage-active-boundary #bigBoardPlay:empty {
  display: none !important;
}

.big-board-stage-active-boundary #bigBoardPlay .question-box {
  max-width: none !important;
  width: 100% !important;
  padding: clamp(.85rem, 1.25vw, 1.35rem) !important;
  border-radius: 20px !important;
  background: rgba(0,0,0,.48) !important;
  border: 1px solid color-mix(in srgb, var(--nu-accent) 38%, var(--nu-border)) !important;
}

.big-board-stage-active-boundary #bigBoardPlay .question-meta {
  margin-bottom: .45rem !important;
}

.big-board-stage-active-boundary #bigBoardPlay .question-meta span {
  font-size: clamp(.72rem, .8vw, .9rem) !important;
  padding: .25rem .5rem !important;
}

.big-board-stage-active-boundary #bigBoardPlay .question-box h3 {
  font-size: clamp(1.45rem, 2.65vw, 3.15rem) !important;
  line-height: 1.08 !important;
  margin: .2rem 0 .7rem !important;
}

.big-board-stage-active-boundary #bigBoardPlay .choices {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  gap: .55rem !important;
  margin-top: .45rem !important;
}

.big-board-stage-active-boundary #bigBoardPlay .choice {
  min-height: 0 !important;
  padding: .72rem .85rem !important;
  font-size: clamp(1rem, 1.35vw, 1.35rem) !important;
  border-radius: 16px !important;
}

.big-board-stage-active-boundary #bigBoardPlay .explanation {
  font-size: clamp(.95rem, 1vw, 1.1rem) !important;
  margin-top: .55rem !important;
}

/* When a question is visible, keep the board large but leave room for it */
.big-board-stage-active-boundary:has(#bigBoardPlay .question-box) {
  grid-template-rows: auto minmax(0, 1.4fr) minmax(210px, .65fr) !important;
}

/* If browser does not support :has, this still keeps the panel visible enough. */
.big-board-stage-active-boundary #bigBoardPlay.stage-question-visible {
  min-height: 220px !important;
}

/* Hide redundant old command bars if any got duplicated */
.big-board-stage-active-boundary > .stage-mode-action-bar:not(.nu3-board-command-bar),
.big-board-stage-active-boundary .global-stage-mode-bar {
  display: none !important;
}

@media (max-width: 900px) {
  .big-board-stage-active-boundary .nu3-board-command-bar {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .nu3-stage-score-pill {
    justify-self: center;
  }

  .big-board-stage-active-boundary #bigBoardPlay .choices {
    grid-template-columns: 1fr !important;
  }

  .big-board-stage-active-boundary #bigBoardGrid .board-question {
    font-size: clamp(1.05rem, 6vw, 2.2rem) !important;
  }
}


/* SAFE Answer Feedback + Stage Mode Fix */

.nu3-answer-selected-safe {
  outline: 4px solid color-mix(in srgb, var(--nu-accent) 85%, #fff) !important;
  outline-offset: 4px !important;
}

.nu3-answer-correct-safe,
.choice.nu3-answer-correct-safe,
.choice.correct,
button.correct {
  color: #fff !important;
  background: linear-gradient(145deg, #22c55e, #15803d) !important;
  border-color: #86efac !important;
  box-shadow: 0 0 0 4px rgba(134,239,172,.34), 0 20px 46px rgba(34,197,94,.35) !important;
}

.nu3-answer-wrong-safe,
.choice.nu3-answer-wrong-safe,
.choice.wrong,
.choice.incorrect,
button.wrong {
  color: #fff !important;
  background: linear-gradient(145deg, #ef4444, #991b1b) !important;
  border-color: #fca5a5 !important;
  box-shadow: 0 0 0 4px rgba(252,165,165,.32), 0 20px 46px rgba(239,68,68,.32) !important;
}

.nu3-answer-muted-safe {
  opacity: .52 !important;
  filter: saturate(.7) !important;
}

.nu3-answer-toast-safe {
  position: sticky;
  bottom: .75rem;
  z-index: 80;
  width: fit-content;
  max-width: calc(100% - 1rem);
  margin: .8rem auto 0;
  padding: .72rem 1rem;
  border-radius: 999px;
  background: rgba(0,0,0,.78);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-weight: 950;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.nu3-answer-toast-safe.show {
  opacity: 1;
  transform: translateY(0);
}

.nu3-confetti-burst-safe {
  position: fixed;
  inset: 0;
  z-index: 2147483640;
  pointer-events: none;
  overflow: hidden;
}

.nu3-confetti-burst-safe span {
  position: absolute;
  width: 11px;
  height: 17px;
  border-radius: 3px;
  background: var(--c);
  box-shadow: 0 0 16px var(--c);
  animation: nu3SafeConfetti 1300ms cubic-bezier(.16,.84,.24,1) forwards;
}

@keyframes nu3SafeConfetti {
  0% { opacity:0; transform: translate3d(0,0,0) rotate(0deg) scale(.55); }
  8% { opacity:1; }
  75% { opacity:1; }
  100% { opacity:0; transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)) scale(1.05); }
}

/* Safe Big Board Stage Mode */
.big-board-stage-root-active,
body.big-board-stage-active {
  overflow: hidden !important;
}

.big-board-stage-active-boundary {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  margin: 0 !important;
  padding: clamp(.45rem,.75vw,.75rem) !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-areas: "bar" "board" "play" !important;
  grid-template-rows: auto minmax(0,1fr) minmax(0,auto) !important;
  gap: clamp(.38rem,.55vw,.6rem) !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--nu-accent) 18%, transparent), transparent 30rem),
    linear-gradient(135deg, var(--nu-bg), var(--nu-bg-2)) !important;
}

.big-board-stage-active-boundary::before { display:none !important; }

.big-board-stage-active-boundary > .nu3-board-command-bar {
  grid-area: bar !important;
  display: grid !important;
  grid-template-columns: minmax(120px,.45fr) auto minmax(260px,1fr) minmax(260px,.9fr) !important;
  align-items: center !important;
  gap: .5rem !important;
  margin: 0 !important;
  padding: .42rem .55rem !important;
  border-radius: 16px !important;
  background: rgba(0,0,0,.42) !important;
  border: 1px solid var(--nu-border) !important;
  min-height: 0 !important;
}

.nu3-stage-score-pill {
  justify-self: center;
  color: #111;
  background: var(--nu-accent);
  border-radius: 999px;
  padding: .38rem .72rem;
  font-weight: 950;
  white-space: nowrap;
}

.big-board-stage-active-boundary .nu3-stage-difficulty-slot,
.big-board-stage-active-boundary #boardDifficultySelector {
  display: flex !important;
  justify-content: center !important;
  gap: .32rem !important;
  flex-wrap: wrap !important;
}

.big-board-stage-active-boundary #boardDifficultySelector .difficulty-btn {
  padding: .34rem .5rem !important;
  font-size: clamp(.66rem,.75vw,.82rem) !important;
}

.big-board-stage-active-boundary .nu3-board-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: .32rem !important;
  flex-wrap: wrap !important;
}

.big-board-stage-active-boundary .nu3-board-action {
  padding: .42rem .62rem !important;
  font-size: clamp(.7rem,.82vw,.88rem) !important;
}

.big-board-stage-active-boundary #bigBoardGrid {
  grid-area: board !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  display: grid !important;
  gap: clamp(.4rem,.7vw,.82rem) !important;
}

.big-board-stage-active-boundary #bigBoardGrid .board-cell {
  min-height: 0 !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
}

.big-board-stage-active-boundary #bigBoardGrid .board-question {
  font-size: clamp(1.65rem,3.55vw,4.65rem) !important;
  font-weight: 950 !important;
}

.big-board-stage-active-boundary #bigBoardGrid .board-header {
  font-size: clamp(.8rem,1.22vw,1.42rem) !important;
}

.big-board-stage-active-boundary #bigBoardPlay {
  grid-area: play !important;
  width: 100% !important;
  max-height: 40vh !important;
  overflow: auto !important;
  margin: 0 !important;
}

.big-board-stage-active-boundary #bigBoardPlay:empty { display:none !important; }

.big-board-stage-active-boundary #bigBoardPlay .question-box {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(.8rem,1.15vw,1.25rem) !important;
  background: rgba(0,0,0,.54) !important;
}

.big-board-stage-active-boundary #bigBoardPlay .question-box h3 {
  font-size: clamp(1.45rem,2.6vw,3.05rem) !important;
}

.big-board-stage-active-boundary #bigBoardPlay .choices {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(220px,1fr)) !important;
  gap: .52rem !important;
}

.big-board-stage-active-boundary:has(#bigBoardPlay .question-box) {
  grid-template-rows: auto minmax(0,1.35fr) minmax(220px,.68fr) !important;
}

body.big-board-stage-active .nu3-hero,
body.big-board-stage-active .memory-mode-section,
body.big-board-stage-active .compact-on-this-day,
body.big-board-stage-active footer,
body.big-board-stage-active nav,
body.big-board-stage-active header {
  display: none !important;
}

@media (max-width:900px){
  .big-board-stage-active-boundary > .nu3-board-command-bar { grid-template-columns: 1fr !important; text-align:center; }
  .big-board-stage-active-boundary .nu3-board-actions,
  .big-board-stage-active-boundary .nu3-stage-difficulty-slot,
  .big-board-stage-active-boundary #boardDifficultySelector { justify-content:center !important; }
  .big-board-stage-active-boundary #bigBoardPlay .choices { grid-template-columns: 1fr !important; }
}


/* NostalgiU 4.0 Memory Unlock UI */
.nu-memory-unlock {
  margin-top: .75rem;
  border: 1px solid color-mix(in srgb, var(--nu-accent) 38%, var(--nu-border));
  background: rgba(0,0,0,.42);
  border-radius: 16px;
  padding: .7rem .85rem;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 12px 26px rgba(0,0,0,.24);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.nu-memory-unlock.show {
  opacity: 1;
  transform: translateY(0);
}

.nu-memory-unlock strong {
  display: block;
  color: var(--nu-accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  margin-bottom: .25rem;
}

.nu-memory-unlock span {
  display: block;
  color: rgba(255,255,255,.9);
  font-weight: 750;
  line-height: 1.35;
}


/* Active Era Badge */
.active-era-badge {
  width: fit-content;
  margin: .9rem auto 0;
  padding: .55rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--nu-border);
  background: rgba(0,0,0,.34);
  color: var(--nu-muted);
  font-weight: 850;
}
.active-era-badge strong {
  color: var(--nu-accent);
}


/* NostalgiU Universal Answer Feedback */

html body .nu-answer-selected,
html body .choice.nu-answer-selected,
html body button.choice.nu-answer-selected,
html body .answer-choice.nu-answer-selected,
html body .duel-choice.nu-answer-selected,
html body .option-btn.nu-answer-selected,
html body [data-choice].nu-answer-selected,
html body .stage-choice.nu-answer-selected {
  outline: 4px solid color-mix(in srgb, var(--nu-accent) 85%, #fff) !important;
  outline-offset: 4px !important;
  transform: translateY(-2px) scale(1.015) !important;
}

html body .nu-answer-correct,
html body .choice.nu-answer-correct,
html body button.choice.nu-answer-correct,
html body .answer-choice.nu-answer-correct,
html body .duel-choice.nu-answer-correct,
html body .option-btn.nu-answer-correct,
html body [data-choice].nu-answer-correct,
html body .stage-choice.nu-answer-correct,
html body .choice.correct,
html body button.correct,
html body .stage-choice.correct {
  color: #ffffff !important;
  background: linear-gradient(145deg, #30df73, #11813d) !important;
  border-color: #86efac !important;
  box-shadow:
    0 0 0 4px rgba(134,239,172,.34),
    0 0 34px rgba(34,197,94,.34),
    0 20px 46px rgba(34,197,94,.35) !important;
}

html body .nu-answer-wrong,
html body .choice.nu-answer-wrong,
html body button.choice.nu-answer-wrong,
html body .answer-choice.nu-answer-wrong,
html body .duel-choice.nu-answer-wrong,
html body .option-btn.nu-answer-wrong,
html body [data-choice].nu-answer-wrong,
html body .stage-choice.nu-answer-wrong,
html body .choice.wrong,
html body .choice.incorrect,
html body button.wrong,
html body button.incorrect,
html body .stage-choice.wrong {
  color: #ffffff !important;
  background: linear-gradient(145deg, #ff4d5f, #9d192d) !important;
  border-color: #fca5a5 !important;
  box-shadow:
    0 0 0 4px rgba(252,165,165,.32),
    0 0 34px rgba(239,68,68,.28),
    0 20px 46px rgba(239,68,68,.32) !important;
}

html body .nu-answer-muted {
  opacity: .5 !important;
  filter: saturate(.65) !important;
}

.nu-universal-answer-toast {
  position: sticky;
  bottom: .75rem;
  z-index: 999;
  width: fit-content;
  max-width: calc(100% - 1rem);
  margin: .8rem auto 0;
  padding: .72rem 1rem;
  border-radius: 999px;
  background: rgba(0,0,0,.78);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-weight: 950;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  box-shadow: 0 14px 32px rgba(0,0,0,.28);
}

.nu-universal-answer-toast.correct {
  border-color: rgba(134,239,172,.45);
}

.nu-universal-answer-toast.wrong {
  border-color: rgba(252,165,165,.45);
}

.nu-universal-answer-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.nu-universal-confetti {
  position: fixed;
  inset: 0;
  z-index: 2147483640;
  pointer-events: none;
  overflow: hidden;
}

.nu-universal-confetti span {
  position: absolute;
  width: 11px;
  height: 17px;
  border-radius: 3px;
  background: var(--c);
  box-shadow: 0 0 16px var(--c);
  animation: nuUniversalConfetti 1300ms cubic-bezier(.16,.84,.24,1) forwards;
}

@keyframes nuUniversalConfetti {
  0% { opacity:0; transform: translate3d(0,0,0) rotate(0deg) scale(.55); }
  8% { opacity:1; }
  75% { opacity:1; }
  100% { opacity:0; transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)) scale(1.05); }
}


/* Choose Era Upgrade */
.choose-era-upgrade {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.choose-era-upgrade::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--nu-accent, #ffd166) 18%, transparent), transparent 18rem),
    radial-gradient(circle at 88% 30%, rgba(0,229,255,.10), transparent 22rem);
  opacity: .9;
}

.choose-era-upgrade > * {
  position: relative;
  z-index: 1;
}

.choose-era-copy h2 {
  margin-bottom: .35rem;
}

.choose-era-copy .support {
  max-width: 720px;
  margin: .45rem auto 0;
  color: var(--nu-muted, rgba(255,255,255,.78));
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 750;
}

.active-era-line {
  width: fit-content;
  margin: 1rem auto .85rem;
  padding: .55rem .9rem;
  border: 1px solid var(--nu-border, rgba(255,255,255,.18));
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  color: var(--nu-muted, rgba(255,255,255,.78));
  font-weight: 900;
}

.active-era-line strong {
  color: var(--nu-accent, #ffd166);
}

.choose-era-note {
  margin: 1rem auto 0;
  color: var(--nu-accent, #ffd166);
  font-weight: 950;
  letter-spacing: .04em;
}

.choose-era-upgrade #decadeGrid {
  margin-top: 1rem;
}

.choose-era-upgrade #decadeGrid button,
.choose-era-upgrade .decade-card {
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.choose-era-upgrade #decadeGrid button:hover,
.choose-era-upgrade .decade-card:hover {
  transform: translateY(-3px);
  border-color: var(--nu-accent, #ffd166) !important;
}

.choose-era-upgrade #decadeGrid button.active,
.choose-era-upgrade #decadeGrid button.selected,
.choose-era-upgrade #decadeGrid button.is-active-era,
.choose-era-upgrade .decade-card.active,
.choose-era-upgrade .decade-card.selected,
.choose-era-upgrade .decade-card.is-active-era {
  border-color: var(--nu-accent, #ffd166) !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--nu-accent, #ffd166) 28%, rgba(255,255,255,.12)), rgba(255,255,255,.08)) !important;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--nu-accent, #ffd166) 20%, transparent),
    0 0 28px color-mix(in srgb, var(--nu-accent, #ffd166) 22%, transparent) !important;
}

.era-change-pulse {
  animation: eraChangePulse 780ms ease both;
}

@keyframes eraChangePulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--nu-accent, #ffd166) 0%, transparent); }
  30% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--nu-accent, #ffd166) 22%, transparent), 0 0 34px color-mix(in srgb, var(--nu-accent, #ffd166) 20%, transparent); }
  100% { box-shadow: inherit; }
}

.section-era-badge,
.era-aware-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: .38rem .65rem;
  border: 1px solid var(--nu-border, rgba(255,255,255,.18));
  background: rgba(0,0,0,.28);
  color: var(--nu-accent, #ffd166);
  font-weight: 950;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.section-era-badge {
  margin-left: auto;
}


/* Choose Era Panel FIX - equal large same-color buttons */
.choose-era-upgrade {
  text-align: center !important;
}

.choose-era-upgrade #decadeGrid,
#decadeGrid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(120px, 1fr)) !important;
  gap: 14px !important;
  margin-top: 18px !important;
  width: 100% !important;
}

#decadeGrid .era-choice-btn {
  min-height: 96px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(255,255,255,.24) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.07)) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 12px 26px rgba(0,0,0,.20) !important;
  cursor: pointer !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 16px 12px !important;
  font-family: inherit !important;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease, background 150ms ease !important;
}

#decadeGrid .era-choice-btn strong {
  font-size: clamp(1.45rem, 2.2vw, 2.35rem) !important;
  line-height: .95 !important;
  font-weight: 1000 !important;
  letter-spacing: -.04em !important;
  color: #fff !important;
}

#decadeGrid .era-choice-btn span {
  font-size: .9rem !important;
  font-weight: 900 !important;
  color: rgba(255,255,255,.76) !important;
}

#decadeGrid .era-choice-btn:hover {
  transform: translateY(-3px) !important;
  border-color: var(--nu-accent, #ffd166) !important;
}

#decadeGrid .era-choice-btn.active,
#decadeGrid .era-choice-btn.selected,
#decadeGrid .era-choice-btn.is-active-era {
  background: linear-gradient(145deg, rgba(255,209,102,.34), rgba(255,255,255,.10)) !important;
  border-color: var(--nu-accent, #ffd166) !important;
  box-shadow:
    0 0 0 4px rgba(255,209,102,.22),
    0 0 30px rgba(255,209,102,.22),
    inset 0 1px 0 rgba(255,255,255,.24) !important;
}

.active-era-line {
  display: inline-flex !important;
  margin: 16px auto 4px !important;
  padding: 10px 16px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  background: rgba(0,0,0,.28) !important;
  color: rgba(255,255,255,.78) !important;
  font-weight: 950 !important;
}

.active-era-line strong {
  color: var(--nu-accent, #ffd166) !important;
  margin-left: 6px !important;
}

.choose-era-note {
  color: var(--nu-accent, #ffd166) !important;
  font-weight: 1000 !important;
  margin-top: 16px !important;
}

@media (max-width: 850px) {
  .choose-era-upgrade #decadeGrid,
  #decadeGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  #decadeGrid .era-choice-btn {
    min-height: 82px !important;
  }
}

@media (max-width: 480px) {
  .choose-era-upgrade #decadeGrid,
  #decadeGrid {
    grid-template-columns: 1fr !important;
  }
}


/* Big Board No Confetti Safety */
#bigBoard .nu-confetti-repair-layer,
#bigBoard .nu-universal-confetti,
#bigBoard .stage-confetti,
#bigBoard .confetti,
#bigBoard .confetti-container,
#bigBoard .celebration-layer,
#bigBoard .fireworks,
#bigBoard .firework {
  display: none !important;
  pointer-events: none !important;
}


/* MAX PRIORITY BIG BOARD CONFETTI OFF */
#bigBoard .nu-confetti-repair-layer,
#bigBoard .nu-universal-confetti,
#bigBoard .stage-confetti,
#bigBoard .confetti,
#bigBoard .confetti-container,
#bigBoard .celebration-layer,
#bigBoard .fireworks,
#bigBoard .firework,
#bigBoard .particle,
#bigBoard .confetti-piece {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Active Era Label Fix */
.active-era-line {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  margin: 16px auto 8px !important;
  padding: 10px 16px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  background: rgba(0,0,0,.32) !important;
  color: rgba(255,255,255,.82) !important;
  font-weight: 950 !important;
}
.active-era-line strong,
#activeEraDisplay {
  color: var(--nu-accent, #ffd166) !important;
  font-weight: 1000 !important;
}


/* Big Board Only Confetti Off CSS
   JS removes layers only during Big Board interaction. Homepage confetti remains allowed. */
body.big-board-confetti-off-active .nu-confetti-repair-layer,
body.big-board-confetti-off-active .nu-universal-confetti,
body.big-board-confetti-off-active .stage-confetti,
body.big-board-confetti-off-active .confetti,
body.big-board-confetti-off-active .confetti-container,
body.big-board-confetti-off-active .celebration-layer,
body.big-board-confetti-off-active .fireworks,
body.big-board-confetti-off-active .firework,
body.big-board-confetti-off-active .particle,
body.big-board-confetti-off-active .confetti-piece {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* Daily Poll Fallback + Era CTA */
.poll-era-cta {
  margin: .55rem auto 0;
  color: var(--nu-accent, #ffd166);
  font-weight: 950;
  letter-spacing: .02em;
}

.poll-option-btn {
  border: 1px solid rgba(255,255,255,.22);
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.07));
  color: #fff;
  border-radius: 999px;
  padding: .72rem 1rem;
  font-weight: 950;
  cursor: pointer;
  margin: .25rem;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.poll-option-btn:hover {
  transform: translateY(-2px);
  border-color: var(--nu-accent, #ffd166);
}

.poll-option-btn.selected {
  border-color: var(--nu-accent, #ffd166);
  background: linear-gradient(145deg, rgba(255,209,102,.34), rgba(255,255,255,.10));
  box-shadow: 0 0 0 3px rgba(255,209,102,.18), 0 0 22px rgba(255,209,102,.18);
}


/* STAGE BIG BOARD CONFETTI HARD OFF */
body:has(#stageBoard) .stage-confetti,
body:has(.stage-board) .stage-confetti,
body:has(#bigBoard) .stage-confetti,
body:has(#stageBoard) .nu-universal-confetti,
body:has(.stage-board) .nu-universal-confetti,
body:has(#bigBoard) .nu-universal-confetti,
body:has(#stageBoard) [class*="confetti"],
body:has(.stage-board) [class*="confetti"],
body:has(#bigBoard) [class*="confetti"],
body:has(#stageBoard) [class*="firework"],
body:has(.stage-board) [class*="firework"],
body:has(#bigBoard) [class*="firework"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  animation: none !important;
}


/* Poll Results Immediate Display */
.poll-results,
#dailyPollResults {
  margin-top: .9rem;
  display: grid;
  gap: .55rem;
}

.poll-result-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .45rem .75rem;
  align-items: center;
  padding: .6rem .75rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.22);
  color: #fff;
  font-weight: 850;
}

.poll-result-row.selected {
  border-color: var(--nu-accent, #ffd166);
  box-shadow: 0 0 0 3px rgba(255,209,102,.14);
}

.poll-result-bar {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  overflow: hidden;
}

.poll-result-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--nu-accent, #ffd166), #70ff9b);
}


/* BIG BOARD RECOVERY FIX */
.stage-score, #stageScore, .score-pill, .stage-topbar .score, .stage-header .score {
  font-size: clamp(1.1rem, 2.2vw, 1.75rem) !important;
  padding: .7rem 1.1rem !important;
  min-width: 110px !important;
  font-weight: 1000 !important;
}

.stage-recovery-next-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: .9rem auto .2rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: linear-gradient(135deg, #ffd166, #70ff9b);
  color: #101018;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0,0,0,.24);
}

.stage-question-empty {
  display: grid;
  place-items: center;
  gap: .35rem;
  min-height: 90px;
  color: #fff;
  font-weight: 900;
  text-align: center;
}

.poll-era-cta {
  margin: .55rem auto 0;
  color: var(--nu-accent, #ffd166);
  font-weight: 950;
}
.poll-option-btn {
  border: 1px solid rgba(255,255,255,.22);
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.07));
  color: #fff;
  border-radius: 999px;
  padding: .72rem 1rem;
  font-weight: 950;
  cursor: pointer;
  margin: .25rem;
}
.poll-option-btn.selected {
  border-color: var(--nu-accent, #ffd166);
  background: linear-gradient(145deg, rgba(255,209,102,.34), rgba(255,255,255,.10));
}
#dailyPollResults {
  margin-top: .9rem;
  display: grid;
  gap: .55rem;
}
.poll-result-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .45rem .75rem;
  align-items: center;
  padding: .6rem .75rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.22);
  color: #fff;
  font-weight: 850;
}
.poll-result-row.selected {
  border-color: var(--nu-accent, #ffd166);
}
.poll-result-bar {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  overflow: hidden;
}
.poll-result-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--nu-accent, #ffd166), #70ff9b);
}


/* STAGE PROGRESSION FIX CSS */
.stage-continue-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  margin: .85rem auto .25rem;
  padding: .7rem .9rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.28);
  color: #fff;
  font-weight: 950;
}

.stage-continue-bar button,
#stagePickAnotherBtn {
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: .7rem 1rem;
  background: linear-gradient(135deg, #ffd166, #70ff9b);
  color: #101018;
  font-weight: 1000;
  cursor: pointer;
}

.stage-question-empty {
  min-height: 80px;
  display: grid;
  place-items: center;
  gap: .3rem;
  text-align: center;
  color: #fff;
  font-weight: 900;
}

.stage-lite-confetti {
  position: fixed;
  inset: 0;
  pointer-events: none !important;
  z-index: 99999;
  overflow: hidden;
}

.stage-lite-confetti span {
  position: absolute;
  width: 7px;
  height: 11px;
  border-radius: 3px;
  background: var(--c);
  animation: stageLiteConfetti 620ms ease-out forwards;
}

@keyframes stageLiteConfetti {
  0% { opacity: 0; transform: translate3d(0,0,0) rotate(0deg) scale(.6); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)) scale(.95); }
}

.stage-score, #stageScore, .score-pill, .stage-topbar .score, .stage-header .score {
  font-size: clamp(1.15rem, 2.3vw, 1.85rem) !important;
  min-width: 118px !important;
  padding: .72rem 1.1rem !important;
  font-weight: 1000 !important;
}


/* STAGE HARD RESET CONTROLLER CSS */
.stage-ready-card {
  display: grid;
  place-items: center;
  gap: .35rem;
  min-height: 92px;
  text-align: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(0,0,0,.24);
  padding: 1rem;
}

.stage-ready-card strong {
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  color: var(--nu-accent, #ffd166);
}

.stage-ready-card span {
  color: rgba(255,255,255,.82);
  font-weight: 850;
}

.stage-lite-confetti {
  position: fixed;
  inset: 0;
  pointer-events: none !important;
  z-index: 99999;
  overflow: hidden;
}

.stage-lite-confetti span {
  position: absolute;
  width: 7px;
  height: 10px;
  border-radius: 3px;
  background: var(--c);
  animation: stageLiteConfettiFast 520ms ease-out forwards;
}

@keyframes stageLiteConfettiFast {
  0% { opacity: 0; transform: translate3d(0,0,0) rotate(0deg) scale(.6); }
  14% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--x), var(--y),0) rotate(var(--r)) scale(.9); }
}

.stage-score, #stageScore, .score-pill, .stage-topbar .score, .stage-header .score {
  font-size: clamp(1.15rem, 2.3vw, 1.9rem) !important;
  min-width: 118px !important;
  padding: .72rem 1.1rem !important;
  font-weight: 1000 !important;
}


/* Homepage Era Linker CSS */
.era-linked-question-card {
  margin-top: 1rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(0,0,0,.24);
  padding: 1rem;
  color: #fff;
}

.era-linked-question-card h3 {
  margin: .75rem 0 1rem;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.22;
}

.era-linked-choices {
  display: grid;
  gap: .65rem;
}

.era-linked-choice {
  width: 100%;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.06));
  color: #fff;
  padding: .85rem 1rem;
  font-weight: 900;
  cursor: pointer;
}

.era-linked-choice.correct {
  background: linear-gradient(145deg, #30df73, #11813d) !important;
  border-color: #86efac !important;
}

.era-linked-choice.wrong {
  background: linear-gradient(145deg, #ff4d5f, #9d192d) !important;
  border-color: #fca5a5 !important;
}

.era-linked-nav {
  margin-top: .9rem;
  display: flex;
  justify-content: center;
}

.section-era-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .38rem .65rem;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.28);
  color: var(--nu-accent, #ffd166);
  font-weight: 950;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-left: auto;
}


/* BIG BOARD LAG FIX CSS */
#bigBoardGrid button,
.big-board-grid button,
#stageBoard button,
.stage-board button,
#bigBoardPlay button,
.stage-choice {
  transition-duration: 80ms !important;
}

.stage-ready-card {
  animation: none !important;
}

.stage-lite-confetti {
  pointer-events: none !important;
}

/* ERA LINK ANSWER FIX CSS */
.choose-era-linked-panel{text-align:center!important;border:1px solid rgba(255,255,255,.18);border-radius:26px;background:linear-gradient(135deg,rgba(255,255,255,.10),rgba(255,255,255,.04))}
.choose-era-linked-support{max-width:780px;margin:.5rem auto 1rem;color:rgba(255,255,255,.78);font-weight:800;font-size:clamp(1rem,1.5vw,1.2rem)}
.era-large-button-grid,#decadeGrid.era-large-button-grid{display:grid!important;grid-template-columns:repeat(5,minmax(115px,1fr))!important;gap:14px!important;margin-top:1rem!important}
.era-choice-btn{min-height:96px!important;border-radius:22px!important;border:1px solid rgba(255,255,255,.24)!important;background:linear-gradient(145deg,rgba(255,255,255,.14),rgba(255,255,255,.07))!important;color:#fff!important;cursor:pointer!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:6px!important;padding:16px!important}
.era-choice-btn strong{font-size:clamp(1.45rem,2.2vw,2.35rem)!important;line-height:.95!important;font-weight:1000!important}
.era-choice-btn span{color:rgba(255,255,255,.78)!important;font-weight:900!important}
.era-choice-btn.active,.era-choice-btn.selected,.era-choice-btn.is-active-era{border-color:var(--nu-accent,#ffd166)!important;background:linear-gradient(145deg,rgba(255,209,102,.34),rgba(255,255,255,.10))!important;box-shadow:0 0 0 4px rgba(255,209,102,.20),0 0 30px rgba(255,209,102,.18)!important}
.active-era-line{display:inline-flex!important;margin:1rem auto .35rem!important;padding:.65rem 1rem!important;border-radius:999px!important;border:1px solid rgba(255,255,255,.22)!important;background:rgba(0,0,0,.28)!important;color:rgba(255,255,255,.82)!important;font-weight:950!important}
.active-era-line strong{color:var(--nu-accent,#ffd166)!important;margin-left:6px!important}
.choose-era-note{color:var(--nu-accent,#ffd166)!important;font-weight:1000!important;margin-top:1rem!important}
.era-linked-choice.correct{background:linear-gradient(145deg,#30df73,#11813d)!important;border-color:#86efac!important;color:#fff!important}
.era-linked-choice.wrong{background:linear-gradient(145deg,#ff4d5f,#9d192d)!important;border-color:#fca5a5!important;color:#fff!important}
@media (max-width:850px){.era-large-button-grid,#decadeGrid.era-large-button-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}


/* ERA ANSWER HARD FIX CSS */
.era-linked-choice.correct,
.era-linked-choice.correct:disabled {
  background: linear-gradient(145deg, #2ee66f, #0f8f3d) !important;
  border: 3px solid #9cffbc !important;
  color: #ffffff !important;
  box-shadow:
    0 0 0 5px rgba(112,255,155,.25),
    0 0 34px rgba(46,230,111,.44),
    0 14px 34px rgba(0,0,0,.28) !important;
  opacity: 1 !important;
  transform: scale(1.015) !important;
}

.era-linked-choice.wrong,
.era-linked-choice.wrong:disabled {
  background: linear-gradient(145deg, #ff4d5f, #9d192d) !important;
  border: 3px solid #ffb1b8 !important;
  color: #ffffff !important;
  box-shadow:
    0 0 0 5px rgba(255,77,95,.22),
    0 0 30px rgba(255,77,95,.34),
    0 14px 34px rgba(0,0,0,.28) !important;
  opacity: 1 !important;
}

.era-linked-choice.dimmed-answer:disabled {
  opacity: .48 !important;
  filter: saturate(.65) !important;
}

.era-linked-choice.selected-answer {
  outline: 4px solid rgba(255,255,255,.75) !important;
  outline-offset: 3px !important;
}

.era-linked-status {
  margin-top: .8rem !important;
  font-weight: 1000 !important;
  font-size: 1rem !important;
}

.era-linked-status.status-correct {
  color: #70ff9b !important;
}

.era-linked-status.status-wrong {
  color: #ffb1b8 !important;
}

/* keep the larger era selector */
.choose-era-linked-panel{text-align:center!important;border:1px solid rgba(255,255,255,.18);border-radius:26px;background:linear-gradient(135deg,rgba(255,255,255,.10),rgba(255,255,255,.04))}
.choose-era-linked-support{max-width:780px;margin:.5rem auto 1rem;color:rgba(255,255,255,.78);font-weight:800;font-size:clamp(1rem,1.5vw,1.2rem)}
.era-large-button-grid,#decadeGrid.era-large-button-grid{display:grid!important;grid-template-columns:repeat(5,minmax(115px,1fr))!important;gap:14px!important;margin-top:1rem!important}
.era-choice-btn{min-height:96px!important;border-radius:22px!important;border:1px solid rgba(255,255,255,.24)!important;background:linear-gradient(145deg,rgba(255,255,255,.14),rgba(255,255,255,.07))!important;color:#fff!important;cursor:pointer!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:6px!important;padding:16px!important}
.era-choice-btn strong{font-size:clamp(1.45rem,2.2vw,2.35rem)!important;line-height:.95!important;font-weight:1000!important}
.era-choice-btn span{color:rgba(255,255,255,.78)!important;font-weight:900!important}
.era-choice-btn.active,.era-choice-btn.selected,.era-choice-btn.is-active-era{border-color:var(--nu-accent,#ffd166)!important;background:linear-gradient(145deg,rgba(255,209,102,.34),rgba(255,255,255,.10))!important;box-shadow:0 0 0 4px rgba(255,209,102,.20),0 0 30px rgba(255,209,102,.18)!important}
.active-era-line{display:inline-flex!important;margin:1rem auto .35rem!important;padding:.65rem 1rem!important;border-radius:999px!important;border:1px solid rgba(255,255,255,.22)!important;background:rgba(0,0,0,.28)!important;color:rgba(255,255,255,.82)!important;font-weight:950!important}
.active-era-line strong{color:var(--nu-accent,#ffd166)!important;margin-left:6px!important}
.choose-era-note{color:var(--nu-accent,#ffd166)!important;font-weight:1000!important;margin-top:1rem!important}
@media (max-width:850px){.era-large-button-grid,#decadeGrid.era-large-button-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}


/* ERA LIVE IQ PROGRESSION FIX CSS */
.era-linked-round-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .75rem;
  padding: .55rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.24);
  color: rgba(255,255,255,.86);
  font-weight: 900;
}

.era-linked-round-progress strong {
  color: var(--nu-accent, #ffd166);
}

.era-next-btn {
  min-width: 170px;
}

.era-next-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.era-next-btn.ready {
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(255,209,102,.18), 0 0 22px rgba(255,209,102,.18);
}

.era-linked-finished {
  text-align: center;
}


/* STAGE RESET CONTROLS CSS */
.stage-reset-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  flex-wrap: wrap;
  margin: .55rem auto;
  width: fit-content;
  max-width: 100%;
  z-index: 20;
}

.stage-reset-controls button {
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: .48rem .75rem;
  background: rgba(0,0,0,.32);
  color: #fff;
  font-weight: 900;
  font-size: .78rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.stage-reset-controls button:hover {
  border-color: var(--nu-accent, #ffd166);
  color: var(--nu-accent, #ffd166);
}

#stageResetGameBtn {
  background: linear-gradient(135deg, rgba(255,77,95,.28), rgba(0,0,0,.32));
}

#stageResetBoardOnlyBtn {
  background: linear-gradient(135deg, rgba(255,209,102,.24), rgba(0,0,0,.32));
}


/* STAGE RESET CONTROLS VISIBLE FIX */
.stage-reset-controls-fixed,
#stageResetControls {
  display: flex !important;
  position: fixed !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 2147483000 !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .5rem !important;
  flex-wrap: wrap !important;
  padding: .45rem !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 999px !important;
  background: rgba(0,0,0,.72) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.34) !important;
}

#stageResetControls button {
  border: 1px solid rgba(255,255,255,.26) !important;
  border-radius: 999px !important;
  padding: .5rem .75rem !important;
  color: #fff !important;
  font-weight: 950 !important;
  font-size: .78rem !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

#stageResetBoardOnlyBtn {
  background: linear-gradient(135deg, rgba(255,209,102,.34), rgba(255,255,255,.08)) !important;
}

#stageResetGameBtn {
  background: linear-gradient(135deg, rgba(255,77,95,.36), rgba(255,255,255,.08)) !important;
}

#stageResetControls button:hover {
  transform: translateY(-1px) !important;
  border-color: var(--nu-accent, #ffd166) !important;
}

@media (max-width: 720px) {
  .stage-reset-controls-fixed,
  #stageResetControls {
    top: auto !important;
    right: 8px !important;
    left: 8px !important;
    bottom: 8px !important;
    border-radius: 18px !important;
  }

  #stageResetControls button {
    flex: 1 1 auto !important;
  }
}


/* DAILY POLL SAME POLL FIX CSS */
.poll-option-btn.selected {
  border-color: var(--nu-accent, #ffd166) !important;
  background: linear-gradient(145deg, rgba(255,209,102,.34), rgba(255,255,255,.10)) !important;
  box-shadow: 0 0 0 3px rgba(255,209,102,.18), 0 0 22px rgba(255,209,102,.18) !important;
}

.poll-result-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .45rem .75rem;
  align-items: center;
  padding: .6rem .75rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.22);
  color: #fff;
  font-weight: 850;
}

.poll-result-row.selected {
  border-color: var(--nu-accent, #ffd166);
}

.poll-result-bar {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  overflow: hidden;
}

.poll-result-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--nu-accent, #ffd166), #70ff9b);
}


/* STAGE TOP CONTROLS CLEAN LAYOUT */
#stageTopControlBar {
  position: sticky !important;
  top: 8px !important;
  z-index: 80 !important;
  width: min(720px, calc(100% - 24px)) !important;
  margin: 10px auto 8px !important;
  padding: 6px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  background: rgba(0,0,0,.36) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.22) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  pointer-events: auto !important;
}

.stage-top-control-group {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  width: 100% !important;
}

#stageTopControlBar button {
  flex: 0 1 auto !important;
  min-width: 112px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 999px !important;
  padding: 7px 12px !important;
  color: #fff !important;
  font-weight: 950 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

#stageTopControlBar #stageResetBoardOnlyBtn {
  background: linear-gradient(135deg, rgba(255,209,102,.30), rgba(255,255,255,.08)) !important;
}

#stageTopControlBar #stageResetGameBtn {
  background: linear-gradient(135deg, rgba(255,77,95,.30), rgba(255,255,255,.08)) !important;
}

#stageTopControlBar button:hover {
  transform: translateY(-1px) !important;
  border-color: var(--nu-accent, #ffd166) !important;
}

/* Disable the old floating/fixed reset control style if any old markup survives */
#stageResetControls.stage-reset-controls-fixed,
.stage-reset-controls-fixed {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  z-index: auto !important;
}

/* Add breathing room so sticky controls do not collide with the header */
body:has(#stageTopControlBar) main,
body:has(#stageTopControlBar) .stage-shell,
body:has(#stageTopControlBar) .stage-wrap {
  padding-top: 4px !important;
}

@media (max-width: 720px) {
  #stageTopControlBar {
    position: sticky !important;
    top: 6px !important;
    width: calc(100% - 16px) !important;
    border-radius: 18px !important;
    margin-top: 8px !important;
  }

  #stageTopControlBar button {
    min-width: 0 !important;
    flex: 1 1 130px !important;
    font-size: 11px !important;
    padding: 8px 10px !important;
  }
}


/* STAGE BEAUTIFUL CONSISTENT TYPOGRAPHY */
body:has(#stageTopControlBar),
body:has(#stageBoard),
body:has(.stage-board) {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: -0.01em;
}

#stageTopControlBar {
  font-family: inherit !important;
  max-width: 760px !important;
}

#stageTopControlBar button,
.stage-reset-controls button {
  font-family: inherit !important;
  font-size: 12px !important;
  letter-spacing: .02em !important;
  text-transform: uppercase !important;
}

#stageBoard,
.stage-board,
#bigBoardGrid,
.big-board-grid {
  font-family: inherit !important;
}

#stageBoard button,
.stage-board button,
#bigBoardGrid button,
.big-board-grid button,
.stage-tile,
.big-board-tile {
  font-family: inherit !important;
  font-weight: 950 !important;
  letter-spacing: -0.015em !important;
  border-radius: 18px !important;
}

.stage-score,
#stageScore,
.score-pill,
.stage-topbar .score,
.stage-header .score {
  font-family: inherit !important;
  font-weight: 1000 !important;
  letter-spacing: -0.03em !important;
  border-radius: 999px !important;
  background: rgba(0,0,0,.34) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.22) !important;
}

.stage-question-panel,
#bigBoardPlay,
.stage-ready-card,
.era-linked-question-card {
  font-family: inherit !important;
}

/* Homepage extra Choose Era buttons */
.hero-era-jump-wrap,
.today-era-jump-wrap {
  display: flex;
  justify-content: center;
  margin-top: .85rem;
}

.hero-era-jump-btn,
.today-era-jump-btn {
  font-size: .88rem !important;
  padding: .62rem 1rem !important;
  border-radius: 999px !important;
  font-weight: 950 !important;
}

/* Poll lock style */
.poll-option-btn.poll-locked {
  cursor: not-allowed !important;
}

.poll-option-btn.poll-locked:not(.selected) {
  opacity: .52 !important;
}


/* FINAL VISIBLE ERA SCORE POLL FIX */

/* Extra Choose Your Era buttons */
.visible-era-jump {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: .85rem auto 0 !important;
  position: relative !important;
  z-index: 5 !important;
}

.hero-era-jump-btn,
.today-era-jump-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  min-width: 170px !important;
  padding: .62rem 1rem !important;
  border-radius: 999px !important;
  font-size: .88rem !important;
  font-weight: 1000 !important;
  color: #fff !important;
  background: linear-gradient(135deg, rgba(255,209,102,.24), rgba(255,255,255,.10)) !important;
  border: 1px solid rgba(255,255,255,.24) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.22) !important;
  text-decoration: none !important;
}

/* Stage score readability */
.stage-score,
#stageScore,
.score-pill,
.stage-topbar .score,
.stage-header .score,
[data-stage-score],
#bigBoardScore {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(0,0,0,.72), rgba(24,28,55,.86)) !important;
  border: 2px solid rgba(255,209,102,.55) !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.85) !important;
  box-shadow: 0 0 0 3px rgba(255,209,102,.12), 0 12px 28px rgba(0,0,0,.34) !important;
  font-size: clamp(1.25rem, 2.8vw, 2.15rem) !important;
  font-weight: 1000 !important;
}

.stage-score *,
.score-pill *,
.stage-topbar .score *,
.stage-header .score *,
#bigBoardScore {
  color: #ffffff !important;
}

.stage-score::before,
.score-pill::before,
.stage-topbar .score::before,
.stage-header .score::before {
  color: #ffd166 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.85) !important;
}

/* Poll after-vote behavior */
#dailyPollOptions[hidden] {
  display: none !important;
}

.poll-result-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .45rem .75rem;
  align-items: center;
  padding: .6rem .75rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.22);
  color: #fff;
  font-weight: 850;
}

.poll-result-row.selected {
  border-color: var(--nu-accent, #ffd166);
  box-shadow: 0 0 0 3px rgba(255,209,102,.14);
}

.poll-result-bar {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  overflow: hidden;
}

.poll-result-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--nu-accent, #ffd166), #70ff9b);
}


/* FINAL STAGE HERO ERA SCORE LAYOUT FIX */

/* Reliable visible homepage era buttons */
.forced-era-button-wrap {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: .9rem auto 0 !important;
  position: relative !important;
  z-index: 10 !important;
}

.forced-visible-era-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 178px !important;
  padding: .66rem 1.05rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.26) !important;
  background: linear-gradient(135deg, rgba(255,209,102,.28), rgba(255,255,255,.10)) !important;
  color: #ffffff !important;
  font-weight: 1000 !important;
  font-size: .9rem !important;
  text-decoration: none !important;
  box-shadow: 0 12px 26px rgba(0,0,0,.24) !important;
}

/* Stage top controls: no overlap with difficulty buttons */
#stageTopControlBar {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  z-index: 30 !important;
  width: min(680px, calc(100% - 24px)) !important;
  margin: 8px auto 14px !important;
  padding: 6px !important;
  border-radius: 22px !important;
  background: rgba(0,0,0,.34) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.22) !important;
}

.stage-top-control-group {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

#stageTopControlBar button {
  min-width: 112px !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  color: #ffffff !important;
  font-weight: 1000 !important;
}

/* Clean score: one pill, readable, no extra circle/ring */
.stage-score,
.score-pill,
.stage-topbar .score,
.stage-header .score {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .45rem !important;
  color: #ffffff !important;
  background: rgba(0,0,0,.62) !important;
  border: 1px solid rgba(255,209,102,.55) !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.28) !important;
  outline: none !important;
  padding: .55rem .9rem !important;
  min-width: 0 !important;
  font-size: clamp(1rem, 1.8vw, 1.35rem) !important;
  font-weight: 1000 !important;
}

.stage-score *,
.score-pill *,
.stage-topbar .score *,
.stage-header .score *,
#stageScore,
#bigBoardScore,
[data-stage-score] {
  color: #ffffff !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.75) !important;
  font-weight: 1000 !important;
}

#stageScore,
#bigBoardScore,
[data-stage-score] {
  font-size: clamp(1.18rem, 2.2vw, 1.6rem) !important;
  color: #ffffff !important;
}

/* Difficulty buttons should have breathing room under score/controls */
.stage-difficulty,
.difficulty-selector,
#boardDifficultySelector,
#stageDifficultySelector {
  margin-top: .75rem !important;
  position: relative !important;
  z-index: 20 !important;
}

/* remove old fixed control behavior */
.stage-reset-controls-fixed,
#stageResetControls.stage-reset-controls-fixed {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
}
