/* ---------------------------------------------------
   Family Quiz Night — TV stage styling
   Palette: deep indigo-black stage, spotlight gold,
   magenta for urgency/reveal moments.
--------------------------------------------------- */

:root {
  --bg-deep:   #0A0E1B;
  --bg-panel:  #131A30;
  --bg-panel-2:#1B2440;
  --gold:      #F2B705;
  --gold-dim:  #8A6600;
  --magenta:   #E23E76;
  --ink:       #F5F1E6;
  --slate:     #7C87AD;

  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-body);
  overflow: hidden;
}

#stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotlight {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 30%, rgba(242,183,5,0.10), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(19,26,48,0.9), transparent 70%);
  pointer-events: none;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5vh 6vw;
}

.screen.is-active {
  display: flex;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Shared text elements ---------- */

.menu-mark {
  font-family: var(--font-display);
  font-size: 9vw;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-shadow: 0 0 40px rgba(242,183,5,0.35);
  line-height: 1;
}

.prompt {
  margin-top: 3vh;
  font-size: 2.1vw;
  color: var(--gold);
  font-weight: 600;
}

.pulse {
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

.big-word {
  font-family: var(--font-display);
  font-size: 8vw;
  letter-spacing: 0.03em;
  color: var(--magenta);
  text-shadow: 0 0 30px rgba(226,62,118,0.4);
}

.sub {
  margin-top: 2vh;
  font-size: 2vw;
  color: var(--slate);
  max-width: 60vw;
}

/* ---------- Question screen ---------- */

#screen-question {
  justify-content: flex-start;
  padding-top: 4vh;
}

.round-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 1vw;
}

.round-title {
  font-family: var(--font-display);
  font-size: 2.6vw;
  letter-spacing: 0.03em;
  color: var(--gold);
}

.question-count {
  font-size: 1.4vw;
  color: var(--slate);
  font-weight: 600;
}

.timer-wrap {
  position: relative;
  width: 12vw;
  height: 12vw;
  min-width: 130px;
  min-height: 130px;
  margin: 2.5vh auto 1.5vh;
}

.timer-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: var(--bg-panel-2);
  stroke-width: 8;
}

.ring-fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
}

.ring-fill.urgent {
  stroke: var(--magenta);
}

.timer-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 4vw;
  color: var(--ink);
}

.question-text {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 3vw;
  line-height: 1.25;
  max-width: 78vw;
  margin: 1.5vh auto 2.5vh;
}

.answers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6vw;
  width: 78vw;
  max-width: 1100px;
}

.answer-tile {
  display: flex;
  align-items: center;
  gap: 1.2vw;
  background: var(--bg-panel);
  border-left: 6px solid var(--gold-dim);
  border-radius: 10px;
  padding: 1.4vh 1.6vw;
  text-align: left;
}

.answer-letter {
  font-family: var(--font-display);
  font-size: 1.9vw;
  color: var(--gold);
  min-width: 2.4vw;
}

.answer-text {
  font-size: 1.7vw;
  font-weight: 600;
  color: var(--ink);
}

.footnote {
  margin-top: 2.5vh;
  font-size: 1.2vw;
  color: var(--slate);
}

/* ---------- Answers reveal ---------- */

.round-title-big {
  font-family: var(--font-display);
  font-size: 3.2vw;
  color: var(--gold);
  letter-spacing: 0.03em;
  margin-bottom: 2vh;
}

.answers-list {
  font-size: 2.1vw;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  counter-reset: ans;
  padding: 0;
  margin: 0 0 3vh;
  max-width: 60vw;
  text-align: left;
}

.answers-list li {
  counter-increment: ans;
  padding: 0.6vh 0;
  border-bottom: 1px solid var(--bg-panel-2);
}

.answers-list li::before {
  content: counter(ans) ". ";
  color: var(--gold);
  font-family: var(--font-display);
  margin-right: 0.4em;
}

/* ---------- Focus visibility (accessibility floor) ---------- */

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .pulse, .screen.is-active { animation: none; }
  .ring-fill { transition: none; }
}
