:root {
  --surface: #ffffff;
  --surface-alt: #f4f8ff;
  --text: #102f5f;
  --muted: #3e6597;
  --line: rgba(16, 47, 95, 0.15);
  --primary: #ffd33a;
  --primary-2: #f5b900;
  --accent: #f2497d;
  --danger: #c7353e;
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-lg: 0 18px 46px rgba(4, 31, 86, 0.2);
  --shadow-sm: 0 5px 14px rgba(4, 31, 86, 0.1);
}

html,
body {
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 211, 58, 0.2), transparent 22rem),
    radial-gradient(circle at 92% 88%, rgba(242, 73, 125, 0.16), transparent 24rem),
    linear-gradient(145deg, #092e82 0%, #1559d1 58%, #298fe2 100%);
}

body {
  color: var(--text);
  line-height: 1.5;
}

.app-shell {
  width: min(920px, 100%);
  padding: max(24px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom));
}

.app-shell::before,
.app-shell::after {
  display: none;
}

.topbar {
  margin-bottom: clamp(32px, 6vw, 60px);
}

.brand {
  gap: 11px;
  text-shadow: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--primary);
  box-shadow: inset 0 -3px 0 rgba(79, 54, 0, 0.12);
}

.brand-text {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.hero {
  max-width: 760px;
  padding: 0 0 clamp(28px, 5vw, 44px);
  text-shadow: none;
}

.eyebrow {
  margin-bottom: 16px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--primary);
  font-size: 0.76rem;
  line-height: 1.45;
  letter-spacing: 0.055em;
  text-transform: none;
}

.panel .eyebrow,
.question-card .eyebrow,
.results-panel .eyebrow,
.dialog-card .eyebrow {
  color: #b24c00;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(3.25rem, 10vw, 5.7rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 5.5vw, 3rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-copy,
.dialog-copy,
.result-subtitle {
  max-width: 64ch;
  font-size: 1.06rem;
  line-height: 1.62;
}

.mode-grid {
  gap: 16px;
}

.mode-card,
.panel,
.question-card {
  border: 0;
  background: var(--surface);
  backdrop-filter: none;
}

.mode-card {
  min-height: 220px;
  padding: 26px;
  border-radius: var(--radius-lg);
  box-shadow: none;
  outline: 1px solid rgba(255, 255, 255, 0.38);
  outline-offset: -1px;
  transition: transform 180ms ease, background-color 180ms ease;
}

.mode-card:hover {
  transform: translateY(-2px);
  background: #f8fbff;
  box-shadow: none;
}

.mode-card::before,
.mode-card::after {
  display: none;
}

.mode-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 46px;
  border-radius: 12px;
  background: var(--primary);
  box-shadow: none;
  font-size: 1.05rem;
}

.mode-card.alt .mode-icon {
  color: #fff;
  background: var(--accent);
}

.mode-title {
  margin-bottom: 7px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.mode-copy {
  max-width: 32ch;
  color: var(--muted);
  line-height: 1.55;
}

.home-features {
  gap: 8px 20px;
  margin-top: 22px;
}

.home-features span {
  position: relative;
  padding: 0 0 0 15px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.home-features span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  transform: translateY(-50%);
}

.panel {
  padding: clamp(26px, 5vw, 42px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.panel.compact,
.lobby-panel,
.results-panel {
  margin-top: 18px;
}

.back-link {
  padding: 8px 0;
  font-weight: 800;
  text-shadow: none;
}

.field {
  gap: 9px;
  margin-bottom: 22px;
}

.field > span,
.field legend {
  color: #315886;
  font-size: 0.82rem;
}

input,
select,
textarea {
  border: 1px solid #bfd0e5;
  border-radius: var(--radius-md);
  background: #fff;
}

input,
select {
  height: 52px;
}

input::placeholder,
textarea::placeholder {
  color: #667f9f;
  opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #1767ca;
  box-shadow: 0 0 0 3px rgba(23, 103, 202, 0.16);
}

.segmented {
  gap: 6px;
  padding: 4px;
  border-radius: 15px;
  background: #eaf1f9;
}

.segmented span {
  height: 44px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  box-shadow: none;
}

.segmented input:checked + span {
  border: 0;
  background: #fff;
  box-shadow: 0 2px 7px rgba(4, 31, 86, 0.11);
}

.primary-button,
.secondary-button,
.ghost-button,
.answer-button {
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 52px;
  border-radius: 13px;
}

.primary-button {
  color: #173c72;
  background: var(--primary);
  box-shadow: inset 0 -3px 0 rgba(79, 54, 0, 0.12);
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #ffdc58;
  box-shadow: inset 0 -3px 0 rgba(79, 54, 0, 0.12);
}

.secondary-button,
.ghost-button {
  border: 1px solid #afc4df;
  background: transparent;
  box-shadow: none;
}

.secondary-button:hover:not(:disabled),
.ghost-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #5e86b6;
  background: #f2f7fd;
}

.topbar .ghost-button {
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
  background: rgba(5, 35, 95, 0.18);
}

.divider {
  margin-block: 2px;
}

.room-code-card {
  padding: 18px 0 20px;
  border: 0;
  border-block: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.players-list {
  gap: 0;
}

.player-slot {
  padding: 14px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.player-slot:last-child {
  border-bottom: 0;
}

.status-dot {
  box-shadow: none;
}

.status-dot.online {
  box-shadow: none;
}

.game-header {
  align-items: center;
  margin-bottom: 14px;
}

.score-chip,
.opponent-badge {
  padding: 8px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.score-chip:last-child {
  text-align: right;
}

.timer-track {
  height: 8px;
  margin-bottom: 16px;
  border: 0;
  background: rgba(255, 255, 255, 0.25);
}

.question-card {
  min-height: 0;
  padding: clamp(24px, 5vw, 40px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.category-chip,
.type-chip {
  padding: 6px 9px;
  font-size: 0.68rem;
  letter-spacing: 0.065em;
}

.category-chip {
  background: #ffdf69;
  box-shadow: none;
}

.type-chip {
  background: var(--accent);
}

.question-card h2 {
  margin: 22px 0 18px;
  font-size: clamp(1.7rem, 5vw, 2.45rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.question-image-wrap {
  border: 0;
  border-radius: var(--radius-lg);
}

.answers-stack {
  gap: 8px;
}

.answer-button {
  min-height: 60px;
  padding: 12px 14px;
  border: 1px solid #c7d7e9;
  border-radius: 13px;
  background: #fff;
  box-shadow: none;
}

.answer-button:hover:not(:disabled) {
  transform: translateX(2px);
  border-color: #6b93c2;
  background: #f5f9fe;
  box-shadow: none;
}

.answer-letter {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e7f0fb;
}

.answer-button.correct {
  border-color: #55a970;
  background: #edf9f0;
}

.answer-button.wrong {
  border-color: #d77a7e;
  background: #fff1f2;
}

.input-card,
.match-card {
  padding: 22px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.match-left {
  border-radius: 10px;
  background: #e7f0fb;
}

.feedback-banner {
  min-height: 54px;
  margin-top: 12px;
  text-shadow: none;
}

.feedback-banner.good {
  color: #d7ffe3;
}

.feedback-banner.bad {
  color: #ffe4e8;
}

.stats-grid {
  gap: 0;
  margin-block: 26px 8px;
  border-block: 1px solid var(--line);
}

.stats-grid > div {
  padding: 18px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.stats-grid > div + div {
  border-left: 1px solid var(--line);
}

.score-row {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.score-row.winner {
  border-color: rgba(22, 163, 74, 0.34);
  background: #edf9f0;
}

dialog {
  border: 0;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: 0 24px 70px rgba(3, 18, 58, 0.32);
}

dialog::backdrop {
  background: rgba(3, 12, 35, 0.76);
  backdrop-filter: none;
}

.dialog-close {
  border: 1px solid #bfd0e5;
  border-radius: 10px;
}

.toast {
  border: 0;
  border-radius: 12px;
  background: #102f5f;
  box-shadow: 0 12px 30px rgba(3, 18, 58, 0.24);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ffe16b;
  outline-offset: 3px;
}

#screen-game .question-card.burr-grand-final {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 680px) {
  .app-shell {
    padding-inline: 16px;
  }

  .topbar {
    margin-bottom: 34px;
  }

  .brand-text {
    display: none;
  }

  .hero {
    padding-bottom: 28px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

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

  .mode-card {
    min-height: auto;
    padding: 22px;
  }

  .mode-icon {
    margin-bottom: 26px;
  }

  .panel,
  .question-card {
    padding: 24px 18px;
  }

  .question-card {
    min-height: 0;
  }

  .game-header {
    flex-wrap: nowrap;
  }

  .score-chip,
  .opponent-badge {
    flex: 0 1 auto;
  }

  .opponent-badge {
    font-size: 0.78rem;
  }
}

@media (max-width: 420px) {
  .topbar .ghost-button {
    max-width: 158px;
    min-height: 38px;
    padding-inline: 10px;
    font-size: 0.72rem;
  }

  .home-features {
    display: grid;
  }

  .question-card h2 {
    font-size: 1.62rem;
  }
}

/* v0.8.2 — commercial game-show finish */
:root {
  --bg-1: #07132f;
  --bg-2: #102e72;
  --bg-3: #174ea6;
  --surface: #f8fbff;
  --surface-alt: #eaf2ff;
  --text: #0b234a;
  --muted: #48658e;
  --line: rgba(11, 35, 74, 0.14);
  --primary: #ffdc3d;
  --primary-2: #f4ad00;
  --accent: #ff4778;
  --accent-2: #ff723a;
  --ok: #27c778;
  --danger: #f04e5e;
  --radius-xl: 16px;
  --radius-lg: 14px;
  --radius-md: 12px;
  --shadow-lg: 0 28px 70px rgba(1, 9, 30, 0.38), 0 8px 20px rgba(1, 9, 30, 0.2);
  --shadow-sm: 0 10px 24px rgba(1, 9, 30, 0.2);
}

html,
body {
  background:
    radial-gradient(ellipse at 50% -12%, rgba(65, 137, 255, 0.52), transparent 44rem),
    radial-gradient(circle at 8% 78%, rgba(255, 71, 120, 0.15), transparent 22rem),
    radial-gradient(circle at 94% 72%, rgba(255, 220, 61, 0.12), transparent 24rem),
    linear-gradient(155deg, var(--bg-1), var(--bg-2) 52%, #0b2458 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(118deg, transparent 0 28%, rgba(255,255,255,.025) 28.1% 28.35%, transparent 28.45% 100%),
    linear-gradient(62deg, transparent 0 72%, rgba(255,220,61,.035) 72.1% 72.35%, transparent 72.45% 100%);
}

.app-shell { width: min(980px, 100%); }

.topbar {
  position: relative;
  z-index: 10;
  margin-bottom: clamp(28px, 5vw, 50px);
}

.brand-mark {
  position: relative;
  width: 46px;
  height: 46px;
  color: #0b285f;
  border-radius: 12px 12px 12px 4px;
  background: linear-gradient(145deg, #fff17a, var(--primary) 56%, #ffba0d);
  box-shadow: inset 0 -4px 0 rgba(103, 65, 0, .18), 0 9px 20px rgba(255, 193, 24, .24);
  transform: rotate(-3deg);
}

.brand-text {
  font-size: 1.18rem;
  letter-spacing: -.03em;
}

.topbar .ghost-button {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(4,17,48,.45);
  box-shadow: 0 8px 22px rgba(1,8,27,.18);
}

.hero { max-width: 850px; padding-bottom: clamp(32px, 6vw, 54px); }
.hero .eyebrow { color: #cfe0ff; }

h1 {
  max-width: 820px;
  font-size: clamp(3.4rem, 10vw, 6rem);
  line-height: .88;
  letter-spacing: -.04em;
  text-shadow: 0 7px 0 rgba(1,15,53,.18), 0 20px 45px rgba(1,8,29,.32);
}

h1::first-line { color: var(--primary); }

.hero-copy {
  max-width: 58ch;
  color: #dbe8ff;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.mode-grid { grid-template-columns: 1.08fr .92fr; gap: 18px; }

.mode-card {
  min-height: 248px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 16px 16px 16px 6px;
  outline: 0;
  background:
    radial-gradient(circle at 100% 0, rgba(255,220,61,.32), transparent 11rem),
    linear-gradient(145deg, #fff, #eaf3ff);
  box-shadow: var(--shadow-lg);
  transition: transform 180ms cubic-bezier(.2,.8,.2,1), box-shadow 180ms ease, filter 180ms ease;
}

.mode-card.alt {
  color: white;
  border-color: rgba(255,255,255,.16);
  background:
    radial-gradient(circle at 100% 0, rgba(255,103,145,.34), transparent 12rem),
    linear-gradient(145deg, #173b84, #0b2356);
}

.mode-card:hover { transform: translateY(-5px) scale(1.01); filter: saturate(1.08); box-shadow: 0 34px 76px rgba(1,9,30,.46); }
.mode-card:active { transform: translateY(-1px) scale(.995); }

.mode-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 42px;
  border-radius: 12px 12px 12px 4px;
  font-size: 1.2rem;
  box-shadow: inset 0 -4px 0 rgba(86,55,0,.14), 0 10px 22px rgba(244,173,0,.22);
  transform: rotate(-3deg);
}

.mode-card.alt .mode-icon {
  color: white;
  background: linear-gradient(145deg, #ff6d95, var(--accent));
  box-shadow: inset 0 -4px 0 rgba(90,0,32,.18), 0 10px 22px rgba(255,71,120,.25);
}

.mode-title { font-size: 1.55rem; }
.mode-card.alt .mode-title { color: white; }
.mode-card.alt .mode-copy { color: #c8d9f8; }

.home-features { margin-top: 26px; }
.home-features span { color: #c8d9f4; font-weight: 750; }

.panel,
.question-card,
dialog {
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 16px 16px 16px 6px;
  background:
    radial-gradient(circle at 100% 0, rgba(207,225,255,.55), transparent 16rem),
    linear-gradient(145deg, #ffffff, #eff5ff);
  box-shadow: var(--shadow-lg);
}

.panel { padding: clamp(28px, 5vw, 46px); }
.panel.compact { max-width: 610px; }
.panel .eyebrow, .results-panel .eyebrow, .dialog-card .eyebrow { color: #b44a00; }

h2 { color: #0b285f; letter-spacing: -.035em; }
.back-link { color: #e8f1ff; opacity: .88; }
.back-link:hover { opacity: 1; }

input,
select,
textarea {
  border-color: #afc5e4;
  background: #f9fbff;
  box-shadow: inset 0 2px 5px rgba(9,37,83,.06);
}

.segmented { border: 1px solid #c5d5e9; background: #e7effa; }
.segmented span { border-radius: 9px; }
.segmented input:checked + span {
  color: #09265c;
  background: linear-gradient(180deg, #ffe969, var(--primary));
  box-shadow: 0 5px 12px rgba(151,104,0,.17), inset 0 -3px 0 rgba(103,65,0,.11);
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 54px;
  border-radius: 12px 12px 12px 5px;
  letter-spacing: .01em;
  transition: transform 150ms cubic-bezier(.2,.8,.2,1), box-shadow 150ms ease, filter 150ms ease;
}

.primary-button {
  color: #09265c;
  border: 1px solid #ffe878;
  background: linear-gradient(180deg, #ffe978, var(--primary) 60%, #ffc51c);
  box-shadow: inset 0 -4px 0 rgba(119,77,0,.17), 0 10px 22px rgba(193,132,0,.23);
}

.primary-button:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.04); box-shadow: inset 0 -4px 0 rgba(119,77,0,.17), 0 14px 27px rgba(193,132,0,.3); }
.primary-button:active:not(:disabled), .secondary-button:active:not(:disabled) { transform: translateY(1px); }
.secondary-button { border-color: #244f95; background: linear-gradient(180deg, #19458f, #102f69); box-shadow: inset 0 -3px 0 rgba(0,0,0,.16), 0 8px 18px rgba(8,37,83,.18); }
button:disabled { filter: grayscale(.3); opacity: .55; box-shadow: none; }

.lobby-panel { position: relative; overflow: hidden; }
.room-code-card {
  border: 1px dashed #8aa7cf;
  border-radius: 14px;
  background: linear-gradient(145deg, #eaf2ff, #f9fbff);
}
.room-code-card strong { color: #0c397f; font-size: clamp(2.3rem, 9vw, 4rem); letter-spacing: .11em; text-shadow: 0 3px 0 white; }
.players-list { border-radius: 14px; background: #e8f0fb; }
.player-slot { background: rgba(255,255,255,.66); }
.status-dot.online { box-shadow: 0 0 0 4px rgba(39,199,120,.14); }

.countdown {
  color: var(--primary);
  font-size: clamp(7rem, 30vw, 13rem);
  text-shadow: 0 10px 0 rgba(4,20,57,.32), 0 30px 60px rgba(0,0,0,.35);
  animation: countdown-pulse .8s cubic-bezier(.2,.8,.2,1) both;
}
#countdownMessage { color: #d8e7ff; font-weight: 800; }

.game-header { margin-bottom: 12px; }
.score-chip,
.opponent-badge {
  min-height: 50px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px 12px 12px 4px;
  background: rgba(4,17,48,.58);
  box-shadow: 0 9px 20px rgba(1,8,27,.18);
}
.score-chip small { color: #9fbae6; }
.score-chip strong { color: white; }
.score-chip:last-child strong { color: var(--primary); }
.opponent-badge { color: #e8f1ff; }

.timer-track {
  height: 9px;
  overflow: visible;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(2,13,40,.6);
  box-shadow: inset 0 2px 5px rgba(0,0,0,.28);
}
.timer-bar { border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--primary)); box-shadow: 0 3px 10px rgba(255,102,91,.3); }

.question-card { padding: clamp(24px, 4.2vw, 40px); }
.question-card h2 { color: #09265c; font-size: clamp(1.8rem, 5vw, 2.7rem); }
.category-chip { color: #09265c; background: var(--primary); }
.type-chip { color: #24508b; background: #dce8f8; }
.question-image-wrap { overflow: hidden; box-shadow: 0 16px 32px rgba(5,33,78,.2); }

.answer-button {
  position: relative;
  min-height: 64px;
  border-color: #b9cbe2;
  border-radius: 12px 12px 12px 5px;
  background: linear-gradient(180deg, #fff, #eef4fc);
  box-shadow: inset 0 -3px 0 rgba(15,53,102,.08), 0 5px 12px rgba(8,37,83,.08);
  transition: transform 140ms cubic-bezier(.2,.8,.2,1), border-color 140ms ease, box-shadow 140ms ease;
}
.answer-button:hover:not(:disabled) { transform: translateX(5px); border-color: #4b79b9; background: #f7faff; box-shadow: inset 0 -3px 0 rgba(15,53,102,.07), 0 9px 18px rgba(8,37,83,.13); }
.answer-letter { color: #173d79; background: #dce8f7; font-weight: 950; }
.answer-button.correct { border-color: #24a967; background: #e5f9ef; box-shadow: inset 0 -3px 0 rgba(14,112,62,.1), 0 8px 18px rgba(22,163,74,.14); }
.answer-button.correct .answer-letter { color: white; background: #1baa65; }
.answer-button.wrong { border-color: #da5661; background: #ffeaed; }
.answer-button.wrong .answer-letter { color: white; background: #dc4654; }

.feedback-banner { font-weight: 900; }
.feedback-banner.good { color: #9dffca; }
.feedback-banner.bad { color: #ffc2ca; }

.results-panel { position: relative; overflow: hidden; text-align: center; }
.results-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--accent), var(--primary), #50baff);
}
.results-panel .result-subtitle { margin-inline: auto; color: var(--muted); }
.stats-grid { border-color: #cbd9eb; }
.stats-grid strong { color: #0b397e; font-size: clamp(2rem, 7vw, 3.2rem); }
.results-panel .ghost-button { color: #315782; }

.toast { border: 1px solid rgba(255,255,255,.15); background: #071a42; }

@keyframes countdown-pulse {
  0% { opacity: .5; transform: scale(.72); filter: blur(8px); }
  55% { opacity: 1; transform: scale(1.08); filter: blur(0); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

@media (max-width: 680px) {
  .app-shell { padding-inline: 14px; }
  .topbar { margin-bottom: 28px; }
  .brand-mark { width: 42px; height: 42px; }
  h1 { font-size: clamp(3rem, 16vw, 4.8rem); }
  .mode-grid { grid-template-columns: 1fr; }
  .mode-card { min-height: 190px; padding: 22px; }
  .mode-icon { float: left; margin: 0 18px 54px 0; }
  .panel, .question-card { padding: 22px 17px; }
  .room-code-card strong { font-size: clamp(2.15rem, 13vw, 3.4rem); }
  .score-chip, .opponent-badge { min-height: 44px; border-radius: 10px 10px 10px 4px; }
  #screen-game .question-card { border-radius: 14px 14px 14px 5px; }
  #screen-game .answer-button { border-radius: 10px 10px 10px 4px; }
}

@media (max-width: 420px) {
  .hero-copy { font-size: .96rem; }
  .mode-card { min-height: 178px; }
  .mode-title { font-size: 1.35rem; }
  .mode-copy { font-size: .9rem; }
  .mode-icon { width: 48px; height: 48px; margin-right: 14px; }
  .panel { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .countdown { animation: none; }
}
