:root {
  color-scheme: light;
  --bg: #f6f3ec;
  --ink: #181410;
  --muted: #675f56;
  --panel: #fffaf1;
  --line: #d9cdbd;
  --anti: #bb242c;
  --anti-dark: #8f141b;
  --open: #167a42;
  --open-dark: #0e5e31;
  --gold: #c7901f;
  --shadow: 0 18px 42px rgba(38, 29, 18, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(187, 36, 44, 0.08), transparent 35%),
    linear-gradient(315deg, rgba(22, 122, 66, 0.09), transparent 38%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
  font: inherit;
}

.app-shell {
  width: min(1060px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  padding: 28px 0;
}

.creator-credit {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.creator-credit a,
.deep-dive a {
  color: var(--ink);
  font-weight: 950;
}

.screen {
  width: 100%;
}

.hero,
.quiz-card,
.results {
  background: rgba(255, 250, 241, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero {
  min-height: min(680px, calc(100vh - 56px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  overflow: hidden;
}

.hero-copy {
  padding: clamp(28px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}

.kicker {
  margin: 0;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  max-width: 13ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5.7vw, 5.15rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.intro {
  max-width: 54ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.hero-notes,
.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-art {
  position: relative;
  min-height: 420px;
  background:
    linear-gradient(rgba(24, 20, 16, 0.2), rgba(24, 20, 16, 0.62)),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/Hollywood%20Sign%20%28Zuschnitt%29.jpg");
  background-size: cover;
  background-position: center;
}

.hero-art::after {
  content: "ANTI / OPEN";
  position: absolute;
  right: 22px;
  bottom: 22px;
  max-width: 8ch;
  color: #fff;
  font-weight: 950;
  font-size: clamp(3.2rem, 8vw, 6.3rem);
  line-height: 0.82;
  text-align: right;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.42);
}

.primary,
.answer-button,
.secondary {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0;
  transition: transform 140ms ease, filter 140ms ease, opacity 140ms ease;
}

.primary,
.secondary {
  width: fit-content;
  min-height: 52px;
  padding: 0 22px;
}

.primary {
  background: var(--ink);
  color: #fff;
}

.secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.primary:hover,
.answer-button:hover,
.secondary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.primary:focus-visible,
.secondary:focus-visible,
.answer-button:focus-visible {
  outline: 4px solid rgba(199, 144, 31, 0.38);
  outline-offset: 3px;
}

.quiz-card {
  padding: clamp(18px, 4vw, 34px);
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 20px;
}

.progress-text,
.score {
  margin: 0;
  font-weight: 900;
}

.score {
  color: var(--muted);
}

.progress-track {
  grid-column: 1 / -1;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ded2;
}

.progress-fill {
  display: block;
  height: 100%;
  width: var(--progress);
  background: linear-gradient(90deg, var(--anti), var(--gold), var(--open));
}

.question-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: start;
}

.portrait-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 5;
  background: #ded3c4;
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.image-credit {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  border-radius: 6px;
  padding: 5px 8px;
  background: rgba(24, 20, 16, 0.76);
  color: #fff;
  font-size: 0.76rem;
}

.question-copy h2 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 0.95;
}

.role {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 800;
}

.known-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 900;
}

.works {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.work {
  border-left: 4px solid var(--gold);
  background: #fff;
  padding: 8px 10px;
  font-style: italic;
  font-weight: 800;
}

.answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.answer-button {
  min-height: 68px;
  color: #fff;
  font-size: 1.35rem;
}

.answer-button.anti {
  background: var(--anti);
}

.answer-button.open {
  background: var(--open);
}

.answer-button[disabled] {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.answer-button.selected {
  opacity: 1;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.72);
}

.reveal {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.verdict {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 5vw, 3.2rem);
  font-weight: 950;
  line-height: 1;
}

.verdict.correct {
  color: var(--open-dark);
}

.verdict.wrong {
  color: var(--anti-dark);
}

.stance-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-weight: 900;
}

.stance-badge {
  border-radius: 6px;
  padding: 6px 10px;
  color: #fff;
  font-weight: 950;
}

.stance-badge.anti {
  background: var(--anti);
}

.stance-badge.open {
  background: var(--open);
}

.context {
  color: var(--muted);
  line-height: 1.55;
}

blockquote {
  margin: 18px 0;
  border-left: 6px solid var(--gold);
  background: #fff;
  padding: 16px 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  line-height: 1.45;
}

.source {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.source a {
  color: var(--ink);
  font-weight: 900;
}

.results {
  padding: clamp(20px, 4vw, 38px);
}

.results h2 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 0.95;
}

.result-rank {
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 950;
}

.result-message {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid #eee5d9;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

tr:last-child td {
  border-bottom: 0;
}

.mini-result {
  font-weight: 900;
}

.mini-result.correct {
  color: var(--open-dark);
}

.mini-result.wrong {
  color: var(--anti-dark);
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.deep-dive {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.error {
  width: min(640px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.noscript {
  padding: 24px;
  font-weight: 900;
}

@media (max-width: 820px) {
  .hero,
  .question-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-art {
    min-height: 260px;
    order: -1;
  }

  h1 {
    max-width: 11ch;
  }
}

@media (max-width: 520px) {
  .app-shell {
    width: min(100% - 18px, 1060px);
    padding: 9px 0;
  }

  .hero-copy,
  .quiz-card,
  .results {
    padding: 18px;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .answers {
    grid-template-columns: 1fr;
  }

  .portrait-wrap {
    aspect-ratio: 16 / 13;
  }
}
