:root {
  color-scheme: dark;
  --ink: #f7f3ed;
  --muted: #b8afa3;
  --bg: #0e0c0a;
  --panel: #171411;
  --panel-2: #211d19;
  --line: rgba(255,255,255,.11);
  --orange: #d97745;
  --orange-light: #f0a276;
  --green: #67c08a;
  --red: #da6e6e;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 4%, rgba(217,119,69,.17), transparent 30%),
    radial-gradient(circle at 86% 94%, rgba(148,106,79,.11), transparent 28%),
    #090806;
}

button, a { font: inherit; }

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.stage {
  position: relative;
  width: min(96vw, 1600px);
  aspect-ratio: 16 / 9;
  min-height: 650px;
  display: grid;
  grid-template-rows: 78px 5px 1fr 50px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(255,255,255,.025), transparent 35%),
    linear-gradient(150deg, #191511, #0d0b09);
  box-shadow: 0 32px 100px rgba(0,0,0,.55);
}

.stage::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  right: -250px;
  top: -250px;
  border: 1px solid rgba(217,119,69,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(217,119,69,.025), 0 0 0 140px rgba(217,119,69,.018);
  pointer-events: none;
}

.top-bar, footer {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 42px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -.01em;
}

.brand img { width: 105px; height: auto; }

.brand span {
  padding-left: 18px;
  border-left: 1px solid var(--line);
  color: #d8d0c7;
}

.progress {
  color: var(--orange-light);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.timer-meter { background: rgba(255,255,255,.055); }
.timer-meter > div {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--orange), #efad83);
  transition: width .2s linear;
}

.timer-meter.paused > div { background: #d9b65d; }

.screen {
  z-index: 1;
  display: none;
  min-height: 0;
  padding: 42px 70px 34px;
  opacity: 0;
  transform: translateY(10px);
}

.screen.active {
  display: block;
  animation: enter .42s ease forwards;
}

@keyframes enter { to { opacity: 1; transform: none; } }

.intro-screen.active {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  align-items: center;
  gap: 70px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--orange-light);
  font-size: clamp(15px, 1.2vw, 19px);
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1 { margin: 0; letter-spacing: -.045em; }
.intro-screen h1, .end-screen h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5.2vw, 84px);
  font-weight: 500;
  line-height: .98;
}
.intro-screen h1 span, .end-screen h1 span { color: var(--orange-light); }

.subline, .end-screen p {
  max-width: 900px;
  margin: 26px 0;
  color: var(--muted);
  font-size: clamp(19px, 1.65vw, 27px);
  line-height: 1.45;
}

.facts { display: flex; gap: 12px; margin: 24px 0; }
.facts span {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  font-size: 14px;
}
.facts b { color: var(--ink); }

.disclaimer {
  max-width: 840px;
  color: #8f877e;
  font-size: 13px;
  line-height: 1.5;
}

.primary {
  margin-top: 8px;
  padding: 16px 22px;
  border: 1px solid rgba(240,162,118,.4);
  border-radius: 12px;
  color: #18100c;
  background: var(--orange-light);
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(217,119,69,.2);
}
.primary:hover { background: #ffc09a; transform: translateY(-1px); }
.primary span { margin-left: 12px; }

.orb-wrap { display: grid; place-items: center; }
.orb {
  width: min(25vw, 330px);
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid rgba(240,162,118,.3);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.12), transparent 22%),
    radial-gradient(circle, rgba(217,119,69,.28), rgba(217,119,69,.045) 65%);
  box-shadow: 0 0 80px rgba(217,119,69,.12), inset 0 0 60px rgba(217,119,69,.09);
}
.orb span {
  font-family: Georgia, serif;
  color: var(--orange-light);
  font-size: clamp(75px, 9vw, 135px);
  line-height: .8;
}
.orb small { margin-top: 18px; color: var(--muted); letter-spacing: .18em; }

.question-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.type-pill, .countdown-badge {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .04em;
}

.countdown-badge {
  min-width: 70px;
  color: var(--orange-light);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.quiz-screen h1 {
  max-width: 1390px;
  font-size: clamp(27px, 2.55vw, 43px);
  font-weight: 670;
  line-height: 1.18;
  letter-spacing: -.025em;
}

.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.option {
  min-height: 96px;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 15px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #ddd6ce;
  background: rgba(255,255,255,.025);
  font-size: clamp(15px, 1.2vw, 20px);
  line-height: 1.32;
}

.letter {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240,162,118,.28);
  border-radius: 10px;
  color: var(--orange-light);
  background: rgba(217,119,69,.075);
  font-weight: 900;
}

.option.correct {
  border-color: rgba(103,192,138,.65);
  color: #e7f8ed;
  background: rgba(103,192,138,.11);
}
.option.correct .letter { border-color: var(--green); color: #07160d; background: var(--green); }
.option.incorrect { opacity: .38; }

.answer-mode { padding-top: 24px; }
.answer-mode .question-meta { margin-bottom: 10px; }
.answer-mode h1 { font-size: clamp(20px, 1.75vw, 30px); }
.answer-mode .options { gap: 9px; margin-top: 14px; }
.answer-mode .option { min-height: 62px; padding: 9px 13px; font-size: clamp(13px, .98vw, 16px); }
.answer-mode .letter { width: 32px; height: 32px; border-radius: 8px; }

.answer-panel {
  margin-top: 16px;
  padding: 18px 22px;
  border: 1px solid rgba(103,192,138,.35);
  border-left: 4px solid var(--green);
  border-radius: 12px;
  background: rgba(103,192,138,.075);
}
.answer-kicker { color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.answer-panel h2 { margin: 5px 0 6px; font-size: clamp(18px, 1.45vw, 25px); }
.answer-panel p { margin: 0; color: #c8d8cd; font-size: clamp(13px, 1.05vw, 17px); line-height: 1.42; }

.end-screen { align-self: center; max-width: 1100px; }
.end-screen.active { display: block; }

footer {
  border-top: 1px solid rgba(255,255,255,.06);
  color: #797169;
  font-size: 12px;
}

@media (max-width: 900px) {
  .stage { aspect-ratio: auto; min-height: calc(100vh - 24px); }
  .screen { padding: 32px 28px; }
  .intro-screen.active { grid-template-columns: 1fr; }
  .orb-wrap { display: none; }
  .options { grid-template-columns: 1fr; }
  .brand span, .shortcut-hint { display: none; }
}
