@font-face { font-family: Inter; src: url("fonts/inter.ttf") format("truetype"); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Patrick Hand"; src: url("fonts/patrick-hand.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
:root {
  --bg: #efe9df;
  --paper: #fffaf2;
  --ink: #22211f;
  --muted: #6f6a63;
  --line: #d9d0c4;
  --accent: #2f5d62;
  --accent-soft: #dce9e8;
  --danger: #8e3d35;
  --danger-soft: #f1ded9;
  --shadow: 0 24px 80px rgba(54, 45, 33, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.9) 0 1px, transparent 2px),
    linear-gradient(135deg, rgba(255,255,255,.3), rgba(199,185,165,.15)),
    var(--bg);
  background-size: 26px 26px, auto, auto;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, a { font: inherit; }

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.game-card {
  width: min(760px, 100%);
  min-height: 720px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid rgba(58, 50, 40, .12);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.game-card::before,
.game-card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 26px;
  background: rgba(220, 204, 175, .52);
  transform: rotate(-5deg);
  pointer-events: none;
}

.game-card::before { top: 8px; left: 42%; }
.game-card::after { bottom: 10px; right: 6%; transform: rotate(4deg); }

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 28px 30px 18px;
  border-bottom: 1px dashed var(--line);
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: .8rem;
  white-space: nowrap;
}

.mode {
  color: var(--muted);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .18em;
}

.topbar-link {
  justify-self: end;
  color: var(--muted);
  text-decoration: none;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.topbar-link:hover {
  color: var(--ink);
}

.streak-pill {
  justify-self: end;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-width: 68px;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  font-weight: 700;
}

.flame {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .08em;
}

.view {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 54px 44px 36px;
  text-align: center;
}

.landing-view {
  justify-content: center;
  min-height: 560px;
  position: relative;
  overflow: hidden;
}

.landing-scene {
  position: absolute;
  inset: 20px;
  pointer-events: none;
}

.landing-note {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(83, 73, 62, .28);
  background:
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,250,242,.7)),
    var(--paper);
  box-shadow: 0 18px 36px rgba(54, 45, 33, .12);
  color: rgba(34, 33, 31, .72);
  font-weight: 850;
  letter-spacing: .08em;
}

.landing-note::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 72px;
  height: 18px;
  background: rgba(213, 199, 174, .68);
  transform: translateX(-50%) rotate(-4deg);
}

.note-a {
  width: 150px;
  height: 170px;
  left: 5%;
  top: 10%;
  transform: rotate(-8deg);
  font-size: 4rem;
}

.note-b {
  width: 138px;
  height: 156px;
  right: 8%;
  top: 12%;
  transform: rotate(7deg);
  font-size: 3.6rem;
}

.note-majority {
  width: 126px;
  height: 86px;
  left: 13%;
  bottom: 14%;
  transform: rotate(5deg);
  color: var(--accent);
  font-size: 1.4rem;
}

.note-streak {
  width: 148px;
  height: 78px;
  right: 12%;
  bottom: 16%;
  transform: rotate(-5deg);
  color: var(--danger);
  font-size: .9rem;
}

.landing-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Patrick Hand", "Comic Sans MS", cursive;
  font-size: clamp(4rem, 13vw, 7.4rem);
  font-weight: 400;
  line-height: .78;
}

.landing-title span {
  display: block;
}

.landing-copy {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin: 22px 0 18px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.start-button,
.landing-best {
  position: relative;
  z-index: 1;
}

.challenge-panel {
  position: relative;
  z-index: 2;
  width: min(340px, 100%);
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: -6px 0 18px;
}

.turnstile-widget {
  width: min(300px, 100%);
  min-height: 65px;
  display: grid;
  place-items: center;
}

.challenge-message {
  min-height: 20px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.35;
}

.landing-best {
  margin-top: 16px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 750;
}

.eyebrow {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.eyebrow.danger { color: var(--danger); }

.question {
  max-width: 630px;
  margin: 0;
  font-family: "Patrick Hand", "Comic Sans MS", cursive;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.05;
  font-weight: 400;
}

.hint {
  max-width: 540px;
  margin: 18px 0 34px;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.6;
}

.choices {
  width: min(680px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
}

.choice {
  --pct: 0%;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 210px;
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  gap: 14px 12px;
  padding: 22px;
  border: 1px solid rgba(83, 73, 62, .32);
  background:
    linear-gradient(135deg, rgba(255,255,255,.84), rgba(255,250,242,.68)),
    var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  box-shadow:
    0 16px 32px rgba(54, 45, 33, .12),
    inset 0 0 0 1px rgba(255,255,255,.58);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  overflow: hidden;
}

#choiceA { transform: rotate(-.7deg); }
#choiceB { transform: rotate(.7deg); }

.choice::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 78px;
  height: 20px;
  background: rgba(213, 199, 174, .68);
  border: 1px solid rgba(132, 117, 91, .12);
  transform: translateX(-50%) rotate(-3deg);
  z-index: 4;
  pointer-events: none;
}

#choiceB::after { transform: translateX(-50%) rotate(3deg); }

.choice:hover:not(:disabled) {
  transform: translateY(-4px) rotate(0deg);
  border-color: var(--accent);
  box-shadow:
    0 22px 40px rgba(47, 93, 98, .16),
    inset 0 0 0 1px rgba(255,255,255,.7);
}

#choiceA:hover:not(:disabled),
#choiceB:hover:not(:disabled) {
  transform: translateY(-4px) rotate(0deg);
}

.choice:focus-visible {
  outline: 3px solid rgba(47,93,98,.25);
  outline-offset: 3px;
}

.choice:disabled { cursor: default; }

.choice-label {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 800;
  z-index: 3;
}

.choice-text {
  grid-column: 1 / -1;
  align-self: center;
  font-family: "Patrick Hand", "Comic Sans MS", cursive;
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
  z-index: 3;
}

.choice-pct {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  min-width: 52px;
  text-align: right;
  font-weight: 800;
  opacity: 0;
  z-index: 3;
}

.choice.revealed .choice-pct { opacity: 1; }

.choice-bar {
  position: absolute;
  z-index: 2;
  inset: auto auto 0 0;
  height: 10px;
  width: var(--pct);
  background: var(--accent-soft);
  transform-origin: left;
  transition: width .55s cubic-bezier(.2,.75,.25,1);
}

.choice.wrong .choice-bar { background: var(--danger-soft); }
.choice.correct {
  border-color: var(--accent);
  box-shadow:
    0 18px 38px rgba(47, 93, 98, .17),
    inset 0 0 0 2px rgba(47, 93, 98, .12);
}
.choice.wrong {
  border-color: var(--danger);
  box-shadow:
    0 18px 38px rgba(142, 61, 53, .13),
    inset 0 0 0 2px rgba(142, 61, 53, .10);
}

.or {
  align-self: center;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(155, 148, 138, .35);
  border-radius: 50%;
  background: rgba(255, 250, 242, .88);
  color: #9b948a;
  box-shadow: 0 10px 20px rgba(54, 45, 33, .08);
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.feedback {
  min-height: 30px;
  margin: 28px 0 18px;
  font-family: "Patrick Hand", cursive;
  font-size: 1.6rem;
}

.feedback.success { color: var(--accent); }
.feedback.fail { color: var(--danger); }

.primary {
  border: 0;
  background: var(--ink);
  color: white;
  padding: 14px 20px;
  min-width: 220px;
  cursor: pointer;
  font-weight: 750;
  letter-spacing: .01em;
  transition: transform .15s ease, opacity .15s ease;
}

.primary:hover { transform: translateY(-1px); }

.primary:disabled {
  cursor: not-allowed;
  opacity: .48;
  transform: none;
}

.game-over-title {
  margin: 0;
  font-family: "Patrick Hand", cursive;
  font-size: clamp(3.2rem, 8vw, 5.4rem);
  font-weight: 400;
}

.game-over-copy {
  color: var(--muted);
  margin: 8px 0 30px;
}

.score-block {
  width: min(380px, 100%);
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  padding: 24px;
  margin-bottom: 26px;
}

.score-label {
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
}

.score {
  font-family: "Patrick Hand", cursive;
  font-size: 5rem;
  line-height: 1;
  margin: 8px 0;
}

.best-score { color: var(--muted); font-size: .9rem; }

.last-result {
  width: min(540px, 100%);
  padding: 18px 20px;
  margin-bottom: 24px;
  background: rgba(142, 61, 53, .07);
  border: 1px solid rgba(142, 61, 53, .20);
  color: #5c2f2a;
  line-height: 1.55;
}

.round-summary {
  width: min(620px, 100%);
  margin-bottom: 24px;
  text-align: left;
}

.round-summary-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.round-summary-title {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.round-summary-count {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 800;
}

.round-summary-list {
  max-height: 230px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.round-summary-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 10px 2px;
  border-top: 1px solid rgba(217, 208, 196, .72);
}

.round-summary-item:first-child { border-top: 0; }

.summary-index {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.35;
}

.round-summary-item.is-correct .summary-index { color: var(--accent); }
.round-summary-item.is-wrong .summary-index { color: var(--danger); }

.summary-question {
  margin: 0;
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.3;
}

.summary-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.35;
}

.round-summary-item.is-wrong .summary-meta { color: #7a3b34; }

.question-submit {
  width: min(620px, 100%);
  margin: 0 0 24px;
  padding: 22px 22px 20px;
  border: 1px solid rgba(83, 73, 62, .22);
  background:
    linear-gradient(135deg, rgba(255,255,255,.62), rgba(255,255,255,0) 68%),
    #fff4cd;
  box-shadow: 0 14px 26px rgba(54, 45, 33, .08);
  position: relative;
  text-align: left;
  transform: rotate(-.35deg);
}

.question-submit::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 86px;
  height: 18px;
  background: rgba(213, 199, 174, .72);
  border: 1px solid rgba(132, 117, 91, .10);
  transform: translateX(-50%) rotate(2deg);
  pointer-events: none;
}

.question-submit-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.question-submit-title {
  margin: 0;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.question-submit-copy {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.35;
}

.question-submit-limit {
  flex: 0 0 auto;
  min-width: 74px;
  padding: 5px 8px;
  border: 1px solid rgba(47, 93, 98, .22);
  background: rgba(255,255,255,.46);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.question-submit-form {
  display: grid;
  gap: 12px;
}

.question-submit-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.question-submit-form label > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.field-count {
  color: #9b948a;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.field-count.is-near-limit {
  color: var(--danger);
}

.question-submit-form input,
.question-submit-form textarea {
  width: 100%;
  border: 1px solid rgba(83, 73, 62, .32);
  background: rgba(255, 250, 242, .7);
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
  font-size: .9rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.35;
  resize: vertical;
}

.question-submit-form textarea {
  min-height: 88px;
  max-height: 150px;
}

.question-submit-form input:focus,
.question-submit-form textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(47,93,98,.18);
  background: rgba(255, 250, 242, .92);
}

.question-submit-form input:disabled,
.question-submit-form textarea:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: .68;
}

.question-submit-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.question-submit-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 2px;
}

.secondary {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 11px 15px;
  min-width: 160px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
}

.secondary:hover {
  background: rgba(34, 33, 31, .06);
  transform: translateY(-1px);
}

.secondary:disabled {
  cursor: not-allowed;
  opacity: .48;
  transform: none;
}

.question-submit-message {
  min-height: 20px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.35;
}

.question-submit-message.success {
  color: var(--accent);
}

.question-submit-message.fail {
  color: var(--danger);
}

.footer-note {
  padding: 20px 30px 26px;
  text-align: center;
  color: #a59d93;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  font-size: .76rem;
  font-weight: 750;
}

.footer-link:hover {
  color: var(--ink);
}

.legal-card {
  min-height: auto;
}

.legal-view {
  align-items: stretch;
  text-align: left;
  padding: 48px 48px 40px;
}

.legal-view .eyebrow {
  align-self: center;
  margin-bottom: 16px;
}

.legal-title {
  max-width: 660px;
  margin: 0 auto;
  font-family: "Patrick Hand", "Comic Sans MS", cursive;
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  font-weight: 400;
  line-height: .9;
  text-align: center;
}

.legal-updated {
  margin: 14px auto 32px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 750;
  text-align: center;
}

.legal-text {
  width: min(640px, 100%);
  margin: 0 auto;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.65;
}

.legal-text__section {
  padding: 26px 0;
  border-top: 1px dashed var(--line);
}

.legal-text__section:last-child {
  border-bottom: 1px dashed var(--line);
}

.legal-text h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.legal-text p {
  margin: 0 0 15px;
}

.legal-text p:last-child {
  margin-bottom: 0;
}

.legal-text a {
  color: var(--accent);
  font-weight: 750;
}

.legal-contact {
  margin: 16px 0 20px;
  border-top: 1px solid rgba(217, 208, 196, .9);
  border-bottom: 1px solid rgba(217, 208, 196, .9);
}

.legal-contact div {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid rgba(217, 208, 196, .58);
}

.legal-contact div:first-child {
  border-top: 0;
}

.legal-contact dt {
  color: var(--ink);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legal-contact dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.legal-home-action {
  margin: 30px 0 0;
  text-align: center;
}

.legal-home-button {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.hidden { display: none !important; }

@media (max-width: 620px) {
  .app-shell { padding: 0; }
  .game-card {
    min-height: 100vh;
    min-height: 100svh;
    border: 0;
  }
  .topbar {
    gap: 8px;
    padding: 14px 14px 10px;
  }
  .view { padding: 24px 14px 18px; }
  #gameView { padding-top: 28px; }
  .landing-view { min-height: 620px; }
  .landing-scene { inset: 18px 8px; }
  .note-a,
  .note-b {
    width: 96px;
    height: 116px;
    font-size: 2.6rem;
  }
  .note-a { left: 2%; top: 10%; }
  .note-b { right: 2%; top: 12%; }
  .note-majority {
    width: 104px;
    height: 70px;
    left: 6%;
    bottom: 10%;
    font-size: 1.05rem;
  }
  .note-streak {
    width: 116px;
    height: 64px;
    right: 5%;
    bottom: 9%;
    font-size: .72rem;
  }
  .brand {
    max-width: 92px;
    white-space: normal;
    line-height: 1.05;
    font-size: .72rem;
    letter-spacing: .06em;
  }
  .mode {
    font-size: .64rem;
    letter-spacing: .14em;
  }
  .topbar-link {
    font-size: .64rem;
    letter-spacing: .1em;
  }
  .streak-pill {
    gap: 6px;
    min-width: 84px;
    padding: 6px 9px;
    font-size: .92rem;
  }
  .flame {
    font-size: .56rem;
    letter-spacing: .06em;
  }
  .landing-title { font-size: 4.2rem; }
  .landing-copy {
    max-width: 300px;
    margin: 18px 0 14px;
  }
  .eyebrow {
    margin-bottom: 12px;
    font-size: .66rem;
    line-height: 1.35;
    letter-spacing: .13em;
  }
  .question {
    max-width: 360px;
    font-size: clamp(1.72rem, 8.3vw, 2.15rem);
    line-height: 1;
  }
  .hint {
    max-width: 340px;
    margin: 10px 0 18px;
    font-size: .8rem;
    line-height: 1.35;
  }
  .choices {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .choice {
    min-height: 132px;
    padding: 14px 10px 12px;
    grid-template-columns: 30px 1fr;
    grid-template-rows: 30px 1fr auto;
    gap: 9px 8px;
    transform: rotate(0deg);
  }
  #choiceA,
  #choiceB { transform: rotate(0deg); }
  .choice:hover:not(:disabled) { transform: translateY(-2px); }
  #choiceA:hover:not(:disabled),
  #choiceB:hover:not(:disabled) { transform: translateY(-2px); }
  .choice::after {
    width: 62px;
    height: 16px;
  }
  .choice-label {
    width: 28px;
    height: 28px;
    font-size: .68rem;
  }
  .choice-text {
    font-size: clamp(1.05rem, 5.2vw, 1.3rem);
    line-height: 1.03;
  }
  .choice-pct {
    min-width: 42px;
    font-size: .86rem;
  }
  .choice-bar { height: 7px; }
  .or {
    display: grid;
    justify-self: center;
    align-self: center;
  }
  .feedback {
    min-height: 24px;
    margin: 16px 0 12px;
    font-size: 1.25rem;
  }
  .question-submit {
    margin-bottom: 18px;
    padding: 18px 14px 16px;
    transform: none;
  }
  .question-submit-head {
    align-items: start;
    gap: 8px;
  }
  .question-submit-title {
    font-size: .68rem;
  }
  .question-submit-copy {
    font-size: .72rem;
  }
  .question-submit-limit {
    min-width: 62px;
    padding: 4px 6px;
    font-size: .64rem;
  }
  .question-submit-options {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .question-submit-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }
  .secondary {
    min-width: 100%;
    padding: 10px 14px;
    font-size: .88rem;
  }
  .primary {
    min-width: min(210px, 100%);
    padding: 12px 16px;
    font-size: .92rem;
  }
  .footer-note {
    padding: 10px 16px 14px;
    font-size: .58rem;
    letter-spacing: .1em;
  }
  .footer-link {
    font-size: .68rem;
  }
  .legal-view {
    padding: 28px 18px 24px;
  }
  .legal-title {
    font-size: clamp(2.45rem, 15vw, 3.4rem);
  }
  .legal-updated {
    margin-bottom: 22px;
  }
  .legal-text {
    font-size: .86rem;
    line-height: 1.58;
  }
  .legal-contact div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 620px) and (max-height: 760px) {
  .topbar { padding: 12px 12px 8px; }
  .view { padding: 18px 12px 14px; }
  #gameView { padding-top: 20px; }
  .eyebrow {
    margin-bottom: 10px;
    font-size: .6rem;
  }
  .question {
    font-size: clamp(1.55rem, 7.3vw, 1.92rem);
  }
  .hint {
    margin: 8px 0 14px;
    font-size: .74rem;
  }
  .choice {
    min-height: 112px;
    padding: 12px 9px 10px;
  }
  .choice-text {
    font-size: clamp(.98rem, 4.7vw, 1.18rem);
  }
  .feedback {
    margin: 12px 0 10px;
    font-size: 1.15rem;
  }
  .footer-note { padding: 8px 14px 10px; }
}

.comparison-heading { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 12px; }


.rating-actions { display: flex; gap: 8px; }
.rating-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #bbb; border-radius: 12px; background: white; color: #333; cursor: pointer; }
.rating-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.rating-button[aria-pressed="true"] { background: #edf5ec; border-color: #357b38; color: #245e28; }
[data-rating="down"][aria-pressed="true"] { background: #fff0f0; border-color: #ba4040; color: #983232; }
.rating-button:disabled { opacity: .5; cursor: wait; }
.rating-button:focus-visible { outline: 3px solid #555; outline-offset: 3px; }

.round-summary-item { display: grid; grid-template-columns: 24px minmax(0, 1fr) 96px; gap: 12px; align-items: center; }
.summary-body { min-width: 0; overflow-wrap: anywhere; }
.summary-feedback { justify-content: flex-end; }
.summary-column-head { display: grid; grid-template-columns: minmax(0, 1fr) 96px; margin: 12px 0 4px; padding-right: 0; font-size: .8rem; font-weight: 600; }
.summary-column-head span { grid-column: 2; text-align: center; }
.rating-error { border-color: #ba4040; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 480px) {
  .round-summary-item { grid-template-columns: 18px minmax(0, 1fr) 76px; gap: 8px; }
  .summary-feedback { gap: 4px; }
  .summary-feedback .rating-button { width: 36px; height: 40px; }
  .summary-column-head { grid-template-columns: minmax(0, 1fr) 76px; }
}

/* Full-width rectangular cards with larger labels on phone screens. */
@media (max-width: 620px) {
  body, .app-shell { min-height: 100svh; }
  #gameView { padding: 18px 14px 12px; }
  #gameView .comparison-heading { margin-bottom: 6px; }
  #gameView .hint { margin: 6px 0 14px; }
  #gameView .choices { width: 100%; gap: 8px; }
  #gameView .choice {
    min-height: clamp(140px, calc((100svh - 340px) / 2), 260px);
    aspect-ratio: auto;
    padding: 40px 14px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    place-items: center;
    gap: 0;
  }
  #gameView .choice-label { position: absolute; top: 14px; left: 12px; }
  #gameView .choice-text {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    font-size: clamp(1.4rem, 6vw, 1.8rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }
  #gameView .choice-pct { position: absolute; top: 18px; right: 12px; }
  #gameView .or { width: 28px; height: 28px; box-shadow: none; }
  #gameView .feedback { margin: 12px 0 8px; }
}
@media (max-width: 620px) and (max-height: 600px) {
  #gameView { padding: 12px 12px 8px; }
  #gameView .comparison-heading { font-size: 1.4rem; }
  #gameView .hint { margin: 4px 0 10px; }
  #gameView .choices { gap: 6px; }
  #gameView .choice { min-height: max(112px, calc((100svh - 320px) / 2)); padding: 34px 12px; }
  #gameView .choice-text { font-size: clamp(1.25rem, 5.5vw, 1.55rem); }
  #gameView .or { width: 24px; height: 24px; }
  #gameView .feedback { min-height: 20px; margin: 8px 0 6px; }
}

.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; text-transform: none; letter-spacing: 0; }
