@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/playfair-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/playfair-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/playfair-700i.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Lato;
  src: url("/fonts/lato-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Lato;
  src: url("/fonts/lato-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Lato;
  src: url("/fonts/lato-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Lobster;
  src: url("/fonts/lobster.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Great Vibes";
  src: url("/fonts/great-vibes.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #165b33;
  --green-deep: #1f5e3b;
  --red: #c1121f;
  --red-deep: #b30404;
  --gold: #d3af37;
  --cream: #fbf6ea;
  --ink: #231f20;
  --paper: #fffdf8;
  --line: rgba(35, 31, 32, 0.12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Lato, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, .serif { font-family: "Playfair Display", Georgia, "Times New Roman", serif; }

.brand {
  position: relative;
  display: grid;
  width: max-content;
  max-width: 100%;
  justify-items: start;
  line-height: 0.82;
  padding-top: 1.1rem;
}
.brand-hat { position: absolute; top: 0; left: 0.2rem; width: 3.1rem; height: auto; }
.brand-santa {
  font-family: Lobster, "Playfair Display", Georgia, serif;
  font-size: 4.6rem;
  color: var(--green);
  text-shadow: 0.09em 0.09em 0 var(--gold);
  letter-spacing: -0.02em;
}
.brand-portraits {
  font-family: Lato, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  font-size: 1.05rem;
  margin: 0.15rem 0 0 0.35rem;
}
.brand-of {
  font-family: "Great Vibes", "Playfair Display", Georgia, serif;
  color: #5c5754;
  font-size: 1.7rem;
  justify-self: end;
  line-height: 1;
  padding-right: 0.15rem;
}
.brand--slim { padding-top: 0.55rem; }
.brand--slim .brand-hat { width: 1.7rem; }
.brand--slim .brand-santa { font-size: 2.35rem; }
.brand--slim .brand-portraits { font-size: 0.62rem; letter-spacing: 0.16em; }
.brand--slim .brand-of { font-size: 1rem; }
.brand--hero { padding-top: 3vh; }
.brand--hero .brand-hat { width: 6.4vh; }
.brand--hero .brand-santa { font-size: 9vh; }
.brand--hero .brand-portraits { font-size: 1.8vh; letter-spacing: 0.18em; }
.brand--hero .brand-of { font-size: 3.4vh; }
.brand--phone { padding-top: 0.7rem; }
.brand--phone .brand-hat { width: 1.8rem; }
.brand--phone .brand-santa { font-size: 2.5rem; }
.brand--phone .brand-portraits { font-size: 0.68rem; }
.brand--phone .brand-of { font-size: 1.05rem; }
.brand--image { padding-top: 0; line-height: 1; }
.brand-logo {
  display: block;
  width: auto;
  height: 20vh;
  max-width: min(100%, 560px);
  object-fit: contain;
}
.brand--slim .brand-logo { height: 64px; }
.attract .brand-logo { height: 13vh; }
.brand--phone .brand-logo { height: 56px; }
.brand-fallback[hidden] { display: none !important; }

.stripe {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red) 0 16%, var(--green) 16% 32%, var(--gold) 32% 48%, var(--red) 48% 64%, var(--green) 64% 80%, var(--gold) 80% 100%);
  flex: none;
}

html.tv, html.tv body {
  height: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--cream);
}
.tv-root {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px 8px;
  background:
    radial-gradient(circle at 12% -10%, rgba(211, 175, 55, 0.2), transparent 36%),
    radial-gradient(circle at 110% 0%, rgba(193, 18, 31, 0.08), transparent 28%),
    var(--cream);
}
.stage { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.panel {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 16px;
  min-width: 0;
  min-height: 0;
}
.kicker {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--green-deep);
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--green);
  color: var(--cream);
  white-space: nowrap;
}
.badge.gold { background: var(--gold); color: var(--ink); }
.badge.red { background: var(--red); color: var(--cream); }
.badge.ink { background: var(--ink); color: var(--cream); }

.attract, .lobby, .ask, .finale {
  flex: 1;
  min-height: 0;
}
.attract {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 14px;
}
.attract-copy, .qr-hero {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
}
.attract-copy { justify-content: space-evenly; gap: clamp(8px, 1.4vh, 16px); }
.welcome-copy { display: flex; flex-direction: column; gap: clamp(8px, 1.2vh, 14px); min-width: 0; }
.attract h1.welcome-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: var(--red);
  font-size: clamp(40px, 6.6vh, 84px);
  line-height: 1.02;
}
.welcome-sub {
  margin: 0;
  max-width: 40rem;
  font-family: Lato, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: clamp(18px, 2.5vh, 30px);
  line-height: 1.35;
}
.welcome-meta {
  margin: 0;
  font-family: Lato, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: var(--green-deep);
  font-size: clamp(15px, 2vh, 22px);
  letter-spacing: 0.01em;
}
.foot-lead { font-size: clamp(20px, 3vh, 34px); font-weight: 700; }
.attract h1 {
  margin: 0;
  font-size: clamp(32px, 5vh, 62px);
  line-height: 0.95;
}
.sub { margin: 0; font-size: clamp(16px, 2.3vh, 24px); max-width: 40rem; }
.spotlight {
  background: white;
  border-left: 6px solid var(--gold);
  border-radius: 12px;
  padding: 8px 12px;
  min-height: 0;
}
.spotlight p { margin: 0.2rem 0 0; font-size: clamp(15px, 2.1vh, 22px); }
.qr-hero { align-items: center; text-align: center; border: 3px solid var(--green); }
.qr-frame { width: min(34vh, 280px); max-width: 100%; background: var(--cream); border-radius: 12px; padding: 6px; }
.qr-frame svg { width: 100%; height: auto; display: block; }
.code-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  min-width: 0;
  max-width: 100%;
}
.code {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--red);
  font-size: clamp(52px, 9vh, 104px);
  line-height: 1.15;
  margin: 0;
  padding: 0;
}
.code--lobby { font-size: clamp(36px, 6vh, 64px); }
.join-label {
  margin: 0;
  padding: 0;
  font-weight: 700;
  line-height: 1.35;
  font-size: clamp(13px, 1.7vh, 18px);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.foot {
  flex: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: clamp(13px, 1.8vh, 18px);
  min-height: 0;
}
.families { display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; overflow: hidden; }
.chip {
  background: white;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chip.away { opacity: 0.55; }

.lobby {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  height: 100%;
  min-height: 0;
}
.lobby-top, .ask-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 0;
}
.timer-block { text-align: right; }
.timer {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(40px, 8vh, 84px);
  line-height: 0.8;
  color: var(--red);
  margin: 0;
}
.timer.calm { color: var(--green); }
.lobby-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 8px;
}
.roster { padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.roster ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.roster li { font-weight: 700; font-size: clamp(14px, 2vh, 22px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lobby-body { height: 100%; min-height: 0; }
.lobby-main {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ballot {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
}
.ballot .vote { height: 100%; justify-content: center; padding: clamp(12px, 2vh, 28px); }
.ballot .vote span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 4.8vh, 64px);
  white-space: normal;
  line-height: 1.05;
}
.ballot .vote b { font-size: clamp(28px, 5vh, 64px); }
.how {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(8px, 1.6vh, 18px);
  min-height: 0;
}
.how li { display: flex; align-items: center; gap: 14px; min-width: 0; }
.num {
  flex: none;
  width: clamp(72px, 10.8vh, 116px);
  height: clamp(72px, 10.8vh, 116px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(38px, 6vh, 62px);
  line-height: 1;
}
.num-red { background: var(--red); color: var(--cream); }
.num-green { background: var(--green); color: var(--cream); }
.num-gold { background: var(--gold); color: var(--ink); }
.how-text {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(28px, 4.6vh, 52px);
  line-height: 1.12;
}
.how-slim { flex-direction: row; align-items: center; gap: 8px; }
.how-slim .num { width: 36px; height: 36px; font-size: 20px; }
.how-slim .how-text { font-family: Lato, "Segoe UI", Helvetica, Arial, sans-serif; font-size: clamp(13px, 1.8vh, 18px); }
.how-slim li { flex: 1; min-width: 0; }
.worth {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(32px, 5.4vh, 64px);
  line-height: 0.95;
  color: var(--red);
}
.worth-phone { font-size: 2rem; }
.timer-small { font-size: clamp(36px, 6vh, 76px); line-height: 1; }
.phone-app .correct-card { width: 100%; border-width: 6px; padding: 14px; }
.phone-app .correct-card .choice-text { font-size: 1.25rem; }
.phone-app .check { font-size: 40px; }
.reveal-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reveal-stack {
  width: min(1080px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2vh, 22px);
  min-height: 0;
}
.fun-fact {
  width: 100%;
  margin: 0;
  text-align: center;
}
.fun-fact-label {
  margin: 0 0 6px;
  font-family: Lato, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: clamp(13px, 1.8vh, 18px);
  color: var(--gold);
}
.fun-fact-text {
  margin: 0 auto;
  max-width: 100%;
  font-family: Lato, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: var(--ink);
  font-size: clamp(34px, 5.15vh, 60px);
  line-height: 1.22;
}
.correct-card {
  width: min(1400px, 100%);
  min-height: clamp(120px, 20vh, 280px);
  background: var(--green);
  color: var(--cream);
  border: 8px solid var(--gold);
  border-radius: 24px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 0 0 4px var(--cream);
}
.correct-card .choice-text {
  font-size: clamp(32px, 5vh, 64px);
  -webkit-line-clamp: 3;
}
.correct-card .letter { background: rgba(251, 246, 234, 0.18); }
.check {
  margin-left: auto;
  font-size: clamp(42px, 7vh, 84px);
  line-height: 1;
  color: var(--gold);
}
.vote {
  overflow: hidden;
  border-radius: 12px;
  background: white;
  border: 2px solid rgba(35, 31, 32, 0.08);
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.vote.is-leading { border-color: var(--red); background: #fff7f6; }
.vote span { font-size: clamp(12px, 1.55vh, 16px); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vote b { font-size: clamp(16px, 2.5vh, 28px); line-height: 1; color: var(--green); }

.ask, .finale { display: flex; flex-direction: column; gap: 8px; min-height: 0; height: 100%; }
.ask > .kicker { font-size: clamp(16px, 2.2vh, 26px); font-weight: 700; }
.question {
  margin: 0;
  flex: none;
  font-size: clamp(32px, 5.5vh, 68px);
  line-height: 1.08;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.choices {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.choice {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-align: left;
  box-shadow: 0 5px 0 rgba(35, 31, 32, 0.12);
}
.choice-A { background: var(--red); color: var(--cream); }
.choice-B { background: var(--green); color: var(--cream); }
.choice-C { background: var(--gold); color: var(--ink); }
.choice-D { background: var(--ink); color: var(--cream); }
.letter {
  flex: none;
  width: clamp(64px, 8vh, 108px);
  height: clamp(64px, 8vh, 108px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(32px, 4.6vh, 58px);
}
.choice-C .letter { background: rgba(35, 31, 32, 0.1); }
.choice-text {
  font-weight: 700;
  font-size: clamp(26px, 4.5vh, 56px);
  line-height: 1.12;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.choice-count { margin-left: auto; font-family: "Playfair Display", Georgia, serif; font-size: clamp(22px, 3.5vh, 40px); }
.choice.is-correct { outline: 5px solid var(--cream); box-shadow: 0 0 0 8px var(--gold); }
.choice.is-dim { filter: saturate(0.35) brightness(0.78); }
.fact {
  margin: 0;
  background: white;
  border-left: 6px solid var(--green);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: clamp(16px, 2.3vh, 24px);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.board { display: flex; gap: 10px; min-height: 0; width: 100%; flex: none; }
.board article {
  flex: 1;
  min-width: 0;
  background: white;
  border-radius: 12px;
  padding: clamp(10px, 1.6vh, 22px);
  border: 2px solid var(--line);
  overflow: hidden;
}
.board strong, .board span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board strong { font-size: clamp(18px, 2.6vh, 32px); }
.board span { color: var(--green-deep); font-weight: 700; font-size: clamp(22px, 3.4vh, 42px); }
.finale { align-items: center; justify-content: space-evenly; text-align: center; }
.finale .board { width: min(1400px, 100%); }
.finale h1 { margin: 0; font-size: clamp(36px, 6vh, 72px); line-height: 0.95; }
.winner {
  margin: 0;
  color: var(--red);
  font-size: clamp(56px, 10vh, 128px);
  line-height: 0.95;
}
.fill-screen {
  position: absolute;
  right: 12px;
  bottom: 10px;
  border: 0;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}
.meta-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.small-code { font-weight: 900; letter-spacing: 0.12em; color: var(--red); }

html.phone, html.phone body { background: var(--cream); height: 100%; overflow: hidden; }
.phone-app {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 12px 14px 16px;
  gap: 10px;
}
.phone-app > .stack,
.phone-app > .card { flex: 1; min-height: 0; overflow: auto; }
.phone-app > .stack:has(.phone-choices),
.phone-app > .stack:has(.vote-list) { overflow: hidden; display: flex; }
.vote-list { flex: 1; min-height: 0; }
.vote-list .cat { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.vote-list .cat b { font-size: clamp(1.2rem, 4vh, 1.7rem); }
.phone-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.status { font-size: 0.85rem; font-weight: 700; color: var(--green-deep); }
.status.warn { color: var(--red); }
.card {
  background: white;
  border-radius: 18px;
  padding: 14px;
  border: 2px solid var(--line);
}
label { display: block; font-weight: 700; margin-bottom: 6px; }
input[type="text"], input[type="password"], select, textarea {
  width: 100%;
  border: 2px solid rgba(35, 31, 32, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  background: white;
}
.stack { display: flex; flex-direction: column; gap: 10px; }
.primary, .secondary {
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 800;
}
.primary { background: var(--red); color: var(--cream); }
.secondary { background: var(--green); color: var(--cream); }
.ghost {
  background: transparent;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.error { color: var(--red-deep); font-weight: 700; margin: 0; }
.vote-list { display: flex; flex-direction: column; gap: 8px; }
.cat {
  width: 100%;
  text-align: left;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: white;
  padding: 12px 14px;
}
.cat.selected { border-color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.cat b { display: block; font-size: 1.05rem; }
.cat span { display: block; color: #4d4946; margin-top: 2px; }
.phone-choices { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.phone-choices .choice { flex: 1; min-height: 64px; width: 100%; box-shadow: none; }
.phone-choices .choice:disabled { cursor: default; }
.locked-note, .score-pop {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}
.score-pop { color: var(--green); }
.home {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 18px 48px;
}
.home-links { display: grid; gap: 12px; margin-top: 18px; }
.home a.primary, .home a.secondary, .home a.ghost {
  display: block;
  text-decoration: none;
  text-align: center;
}
.desk { max-width: 1100px; margin: 0 auto; padding: 18px; display: grid; gap: 14px; }
.desk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.q-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.q-row button { justify-self: start; }
.search { margin-bottom: 8px; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 280px; }
.pin-pad button { padding: 14px; border-radius: 12px; border: 2px solid var(--line); background: white; font-weight: 800; }

/* Phones and short windows. 1280x720 and 1920x1080 do not match. */
@media (max-width: 900px), (max-aspect-ratio: 1/1), (max-height: 680px) {
  html.tv,
  html.tv body {
    height: auto;
    min-height: 100%;
    overflow: auto;
  }
  .tv-root {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    padding-bottom: 36px;
  }
  .stage,
  .attract,
  .lobby,
  .ask,
  .finale,
  .reveal-stage,
  .choices,
  .ballot,
  .lobby-main {
    flex: none;
    height: auto;
    min-height: auto;
  }
  .attract-copy,
  .qr-hero {
    min-height: auto;
    overflow: visible;
    width: 100%;
  }
  .attract { min-height: calc(100dvh - 92px); }
}

@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .attract { grid-template-columns: 1fr; }
  .lobby-top,
  .ask-top {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .lobby-body { grid-template-columns: 1fr; }
  .timer-block { text-align: center; }
  .how-slim { flex-direction: column; align-items: stretch; }
  .ballot { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .ballot .vote { height: auto; min-height: 92px; }
  .ask, .lobby, .finale, .choices { height: auto; }
  .choices {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: minmax(72px, auto);
  }
  .choice { min-height: 72px; }
  .board { flex-direction: column; }
  .qr-frame { width: min(52vw, 220px); }
  .code {
    font-size: clamp(28px, 12vw, 64px);
    letter-spacing: 0.08em;
    max-width: 100%;
  }
  .code--lobby { font-size: clamp(26px, 10vw, 52px); }
  .code-stack { gap: 12px; }
  .num {
    width: clamp(36px, 11vw, 56px);
    height: clamp(36px, 11vw, 56px);
    font-size: clamp(18px, 5vw, 28px);
  }
  .how-text { font-size: clamp(16px, 4.6vw, 28px); }
  .how-slim .num { width: 34px; height: 34px; font-size: 18px; }
  .how-slim .how-text { font-size: clamp(15px, 4.2vw, 22px); }
  .attract .brand-logo {
    height: auto;
    width: min(68vw, 260px);
    max-height: 96px;
  }
  .attract h1.welcome-title { font-size: clamp(30px, 8.2vw, 46px); }
  .welcome-sub { font-size: clamp(15px, 4.2vw, 20px); }
  .welcome-meta { font-size: clamp(13px, 3.6vw, 16px); }
  .foot-lead { font-size: clamp(16px, 4.2vw, 20px); }
  .brand--slim .brand-logo { height: 52px; width: auto; }
  .question { font-size: clamp(22px, 6vw, 36px); }
  .worth { font-size: clamp(26px, 8vw, 44px); }
  .fun-fact-text { font-size: clamp(20px, 5.2vw, 32px); }
  .correct-card { width: 100%; }
  .meta-row { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
