:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #5e6a62;
  --paper: #f7f3ea;
  --card: #fffdf8;
  --accent: #135c4a;
  --accent-2: #e4a853;
  --good: #16784b;
  --bad: #a23434;
  --line: #d9d3c8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at top, #fff 0, var(--paper) 58%); min-height: 100vh; }
button { font: inherit; }
.app-shell { width: min(1180px, 92vw); margin: 0 auto; padding: 2.5rem 0 4rem; }
.hero { text-align: center; margin-bottom: 1.25rem; }
.eyebrow { color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { font-family: Georgia, serif; font-size: clamp(2.4rem, 7vw, 5rem); line-height: .95; margin: .35rem 0 .8rem; }
.hero > p:last-child { color: var(--muted); }
.scorebar { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0; }
.scorebar span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .55rem .9rem; }
button { border: 0; }
#new-round { cursor: pointer; color: white; background: var(--accent); border-radius: 999px; padding: .65rem 1rem; font-weight: 700; }
#new-round:hover { filter: brightness(1.1); }
#new-round:disabled { cursor: wait; opacity: .6; }
.status { min-height: 1.5rem; text-align: center; color: var(--muted); }
.status.error { color: var(--bad); }
.game { display: grid; gap: 2rem; }
.reference-card { overflow: hidden; display: grid; grid-template-columns: minmax(220px, 1.1fr) minmax(220px, .9fr); background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 60px rgb(35 31 24 / .09); }
.reference-card img { width: 100%; height: 420px; object-fit: contain; background: #e9e4da; }
.card-copy { align-self: center; padding: 2rem; }
.card-label { position: absolute; margin: 1rem; padding: .4rem .7rem; color: white; background: rgb(19 92 74 / .92); border-radius: 999px; font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.card-copy h2 { font-family: Georgia, serif; font-size: clamp(1.5rem, 3vw, 2.5rem); margin: 0 0 .7rem; }
.card-copy p { color: var(--muted); }
#choices-title { text-align: center; margin: 0 0 1rem; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.choice-card { cursor: pointer; position: relative; display: grid; grid-template-rows: 260px auto auto; overflow: hidden; padding: 0; color: var(--ink); text-align: left; background: var(--card); border: 2px solid transparent; border-radius: 16px; box-shadow: 0 8px 30px rgb(35 31 24 / .07); transition: transform .16s ease, border-color .16s ease; }
.choice-card:hover:not(:disabled), .choice-card:focus-visible { transform: translateY(-4px); border-color: var(--accent-2); outline: none; }
.choice-card img { width: 100%; height: 100%; object-fit: contain; background: #e9e4da; padding: 0.5rem; }
.choice-title { padding: .85rem .9rem .25rem; font-weight: 700; }
.choice-result { min-height: 2rem; padding: 0 .9rem .75rem; color: var(--muted); font-size: .84rem; }
.choice-card.correct { border-color: var(--good); }
.choice-card.wrong { border-color: var(--bad); opacity: .82; }
.choice-card:disabled { cursor: default; }
@media (max-width: 760px) {
  .reference-card { grid-template-columns: 1fr; }
  .reference-card img { height: 310px; }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 470px) { .choice-grid { grid-template-columns: 1fr; } }