:root {
  color-scheme: light;
  --bg: #f7f6f1;
  --paper: #fffdfa;
  --ink: #151515;
  --muted: #6f6c66;
  --line: #d8d3c9;
  --line-strong: #171717;
  --red: #e23838;
  --green: #5f8f68;
  --green-dark: #315f43;
  --gold: #f0c44d;
  --bad: #c83232;
  --good: #1f8d4f;
  --body-grid: rgba(0, 0, 0, 0.025);
  --body-grad-start: #fbfaf6;
  --topbar-bg: rgba(251, 250, 246, 0.94);
  --intro: #3f3c38;
  --soft: #f4f1eb;
  --field: #fbfaf6;
  --choice-dot: #f2f0eb;
  --choice-active: #fff4f4;
  --panel-overlay: rgba(247, 246, 241, 0.96);
  --control-solid: #151515;
  --control-solid-text: #fffdfa;
  --timer-subtle: #ddd;
  --shadow-low: rgba(0, 0, 0, 0.12);
  --shadow-mid: rgba(0, 0, 0, 0.14);
  --shadow-high: rgba(0, 0, 0, 0.18);
  --badge-inset: rgba(255, 255, 255, 0.8);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1117;
  --paper: #171d24;
  --ink: #f4efe5;
  --muted: #aeb8c3;
  --line: #303b47;
  --line-strong: #667789;
  --red: #f05a5a;
  --green: #62b47c;
  --green-dark: #51c184;
  --gold: #e6b94f;
  --bad: #ff6b6b;
  --good: #65d789;
  --body-grid: rgba(255, 255, 255, 0.03);
  --body-grad-start: #121821;
  --topbar-bg: rgba(12, 17, 23, 0.92);
  --intro: #d7decb;
  --soft: #111820;
  --field: #0e151d;
  --choice-dot: #0e151d;
  --choice-active: #251f22;
  --panel-overlay: rgba(12, 17, 23, 0.96);
  --control-solid: #e6b94f;
  --control-solid-text: #17130c;
  --timer-subtle: rgba(23, 19, 12, 0.72);
  --shadow-low: rgba(0, 0, 0, 0.34);
  --shadow-mid: rgba(0, 0, 0, 0.42);
  --shadow-high: rgba(0, 0, 0, 0.5);
  --badge-inset: rgba(255, 255, 255, 0.48);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Segoe UI Condensed", sans-serif;
  background:
    linear-gradient(90deg, var(--body-grid) 1px, transparent 1px),
    linear-gradient(180deg, var(--body-grad-start), var(--bg));
  background-size: 42px 42px, auto;
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 56px;
  padding: 0 6.25vw;
  border-bottom: 1px solid var(--line);
  background: var(--topbar-bg);
  backdrop-filter: blur(10px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 26px;
  line-height: 1;
}

.wordmark img {
  width: 28px;
  aspect-ratio: 1;
  object-fit: contain;
  transform: translateY(-1px);
}

.wordmark strong {
  color: var(--red);
}

.topline,
.kicker,
.section-label {
  color: var(--muted);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
}

.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.text-button,
.icon-button {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.text-button {
  min-height: 34px;
  padding: 0 8px;
  font-size: 18px;
  text-transform: uppercase;
}

.lang-button {
  min-width: 38px;
}

.icon-button {
  width: 34px;
  aspect-ratio: 1;
  font-size: 18px;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.menu-screen {
  width: min(760px, calc(100vw - 32px));
  margin: 34px auto 56px;
  text-align: center;
}

.online-setup-screen {
  width: min(760px, calc(100vw - 32px));
  margin: 34px auto 56px;
}

.online-setup-screen h1 {
  margin: 8px 0 18px;
  font-size: clamp(48px, 9vw, 88px);
  line-height: 0.95;
}

.setup-back {
  width: auto;
  min-height: 42px;
  padding: 0 16px;
  margin-bottom: 16px;
}

.setup-panel {
  display: grid;
  gap: 12px;
}

.hero-logo {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin: 0 0 12px;
}

.hero-logo img {
  width: clamp(96px, 20vw, 142px);
  aspect-ratio: 1;
  object-fit: contain;
  transform: translateY(8px);
}

.hero-logo > span {
  display: block;
  font-size: clamp(54px, 10vw, 108px);
  line-height: 0.82;
}

.hero-logo > span span,
.hero-logo > span strong {
  display: block;
}

.hero-logo > span strong {
  color: var(--red);
}

.intro {
  width: min(370px, 100%);
  margin: 28px auto 36px;
  color: var(--intro);
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: 1.45;
}

.data-status {
  min-height: 24px;
  margin: -22px 0 28px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.data-status.warning {
  color: var(--bad);
}

.menu-stack {
  text-align: left;
}

.menu-stack .choice-grid[data-setting="play-type"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.menu-stack .choice-grid[data-setting="mode"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.setup-panel .choice-grid[data-setting="mode"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pill-row[data-setting="team-format"] {
  grid-template-columns: repeat(2, 1fr);
}

.pill-row[data-setting="room-size"] {
  grid-template-columns: repeat(5, 1fr);
}

.section-label {
  display: block;
  margin: 20px 0 8px;
  text-transform: uppercase;
}

.choice-grid {
  display: grid;
  gap: 10px;
}

.choice,
.pill,
.start-button,
.primary-button,
.ghost-button,
.answer-row button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 3px 0 var(--shadow-mid);
}

.choice {
  position: relative;
  min-height: 70px;
  padding: 14px 54px 12px 16px;
}

.menu-stack .choice {
  min-height: 96px;
}

.choice::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 16px;
  aspect-ratio: 1;
  border: 2px solid var(--line);
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--choice-dot);
}

.choice.active {
  border-color: var(--red);
  background: var(--choice-active);
}

.choice.active::after {
  border-color: var(--red);
  background: var(--red);
}

.world-cup-choice {
  grid-column: 1 / -1;
  min-height: 112px;
  padding-left: 78px;
  overflow: hidden;
  border-color: #d6a629;
  background:
    linear-gradient(135deg, rgba(214, 166, 41, 0.28), rgba(0, 104, 71, 0.16) 52%, rgba(226, 56, 56, 0.1)),
    var(--paper);
  box-shadow: 0 4px 0 rgba(137, 102, 18, 0.34);
}

.world-cup-choice::before {
  content: "★";
  position: absolute;
  top: 48%;
  left: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border: 2px solid rgba(21, 21, 21, 0.72);
  border-radius: 50%;
  background: #f0c44d;
  color: #102f24;
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 3px 0 rgba(137, 102, 18, 0.34);
}

.world-cup-choice span {
  display: inline-flex;
  align-items: center;
  justify-content: start;
  width: fit-content;
  gap: 0;
  color: #0f5b3c;
  line-height: 0.92;
}

.world-cup-choice span::after {
  content: "2026";
  display: inline-grid;
  place-items: center;
  height: 20px;
  min-height: 0;
  padding: 0 8px;
  border: 2px solid rgba(15, 91, 60, 0.35);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.62);
  color: #8f6813;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 1px;
  margin-left: 5px;
  align-self: center;
  transform: translateY(-6px);
}

.world-cup-choice small {
  margin-top: 0;
  transform: translateY(-5px);
}

.world-cup-choice.active {
  border-color: #d6a629;
  background:
    linear-gradient(135deg, rgba(214, 166, 41, 0.42), rgba(0, 104, 71, 0.24) 52%, rgba(226, 56, 56, 0.14)),
    var(--paper);
}

:root[data-theme="dark"] .world-cup-choice {
  border-color: #e6b94f;
  background:
    linear-gradient(135deg, rgba(230, 185, 79, 0.22), rgba(61, 151, 107, 0.18) 54%, rgba(240, 90, 90, 0.12)),
    var(--paper);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.46);
}

:root[data-theme="dark"] .world-cup-choice::before {
  border-color: rgba(244, 239, 229, 0.55);
  background: #e6b94f;
  color: #102018;
}

:root[data-theme="dark"] .world-cup-choice span {
  color: #77d99d;
}

:root[data-theme="dark"] .world-cup-choice span::after {
  border-color: rgba(230, 185, 79, 0.36);
  background: rgba(14, 21, 29, 0.7);
  color: #f2cb65;
}

:root[data-theme="dark"] .world-cup-choice.active {
  background:
    linear-gradient(135deg, rgba(230, 185, 79, 0.3), rgba(61, 151, 107, 0.24) 54%, rgba(240, 90, 90, 0.16)),
    var(--paper);
}

.choice span {
  display: block;
  font-size: clamp(20px, 2.5vw, 24px);
  line-height: 1;
  text-transform: uppercase;
}

.choice small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.choice-grid.compact {
  grid-template-columns: repeat(3, 1fr);
}

.choice-grid.compact .choice {
  min-height: 84px;
  padding-right: 12px;
}

.choice-grid.compact .choice::after {
  display: none;
}

.choice-grid.compact span {
  font-size: 18px;
}

.pill-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pill-row[data-setting="online-action"] {
  grid-template-columns: repeat(2, 1fr);
}

.pill {
  min-height: 48px;
  text-align: center;
  font-size: 24px;
}

.pill.active {
  border-color: var(--red);
  background: var(--control-solid);
  color: var(--control-solid-text);
}

.menu-online,
.menu-join {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.menu-online[hidden],
.menu-join[hidden] {
  display: none;
}

.menu-online > .section-label {
  margin-top: 0;
}

.menu-join {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-join label {
  color: var(--muted);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.menu-join input {
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  background: var(--field);
  color: var(--ink);
  padding: 0 12px;
  font-size: 20px;
}

.menu-join-status {
  min-height: 24px;
  margin: 0;
  color: var(--bad);
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
}

.start-button {
  width: 100%;
  min-height: 72px;
  margin-top: 28px;
  border-color: var(--red);
  background: var(--red);
  color: white;
  text-align: center;
  font-size: 42px;
  letter-spacing: 1px;
}

.start-button:hover,
.choice:hover,
.pill:hover,
.mini-pill:hover,
.primary-button:hover,
.ghost-button:hover,
.hint-button:hover {
  transform: translateY(-1px);
}

.draw-screen {
  width: min(960px, calc(100vw - 32px));
  margin: 58px auto;
  text-align: center;
}

.room-screen {
  width: min(620px, calc(100vw - 32px));
  margin: 38px auto 56px;
}

.room-screen h1 {
  margin-bottom: 18px;
}

.room-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 20px;
  box-shadow: 0 5px 0 var(--shadow-mid);
}

.room-eyebrow,
.invite-box label {
  display: block;
  color: var(--muted);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.room-code {
  display: block;
  margin-top: 4px;
  color: var(--red);
  font-size: clamp(54px, 13vw, 88px);
  line-height: 0.95;
  letter-spacing: 0;
}

.room-status {
  min-height: 42px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
}

.invite-box > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 8px;
  margin-top: 8px;
}

.join-box label {
  display: block;
  color: var(--muted);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.join-box > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 8px;
  margin-top: 8px;
}

.join-box input {
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  background: var(--field);
  color: var(--ink);
  padding: 0 12px;
  font-size: 18px;
}

.invite-box input {
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  background: var(--field);
  color: var(--ink);
  padding: 0 12px;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.room-settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.mini-pill-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

[data-setting="room-size"] {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mini-pill {
  min-height: 42px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 2px 0 var(--shadow-low);
}

.mini-pill.active {
  border-color: var(--red);
  background: var(--control-solid);
  color: var(--control-solid-text);
}

.room-lobby ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}

.room-lobby li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.room-lobby li span {
  font-size: 22px;
}

.room-lobby li small {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.room-lobby li.is-ready {
  border-color: var(--green);
}

.room-lobby li.room-team-header {
  min-height: 38px;
  border-color: var(--line-strong);
  background: var(--control-solid);
  color: var(--control-solid-text);
}

.room-lobby li.room-team-header small {
  color: var(--control-solid-text);
}

.room-lobby li.is-empty {
  border-style: dashed;
}

.room-team-chooser {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.room-team-chooser[hidden] {
  display: none;
}

.room-team-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.room-team-actions .mini-pill {
  min-height: 48px;
  padding: 0 10px;
}

.room-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 8px;
}

.draw-stage,
.clubs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
}

.draw-club,
.club-card {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  box-shadow: 0 5px 0 var(--shadow-high);
}

.draw-club.is-rolling .club-badge,
.club-card.is-new .club-badge {
  animation: pop 420ms ease;
}

.draw-versus,
.versus {
  align-self: center;
  display: grid;
  place-items: center;
  width: 68px;
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--control-solid);
  color: var(--control-solid-text);
  font-size: 24px;
}

.draw-status {
  margin-top: 24px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 18px;
}

.club-badge {
  display: grid;
  place-items: center;
  width: clamp(116px, 18vw, 170px);
  aspect-ratio: 0.78;
  border: 6px solid var(--club-secondary, #111);
  border-radius: 26px 26px 44px 44px;
  background:
    linear-gradient(90deg, var(--club-primary, #ddd) 0 50%, var(--club-secondary, #111) 50% 100%);
  box-shadow: inset 0 0 0 8px var(--badge-inset), 0 12px 0 var(--shadow-mid);
}

.club-badge span {
  display: grid;
  place-items: center;
  width: 62%;
  aspect-ratio: 1;
  border: 4px solid var(--club-secondary, #111);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: clamp(28px, 5vw, 54px);
}

.club-name {
  margin: 18px 0 0;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 0.95;
  text-align: center;
}

.club-league {
  margin-top: 10px;
  color: var(--muted);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.game-screen.active {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  width: min(1180px, calc(100vw - 32px));
  margin: 24px auto 56px;
}

.score-rail,
.match-panel,
.found-panel,
.round-info {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 3px 0 var(--shadow-low);
}

.score-rail {
  padding: 16px;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.game-meta span {
  color: var(--red);
  font-size: 24px;
  text-transform: uppercase;
}

.players {
  display: grid;
  gap: 10px;
}

.player-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.player-card input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
}

.player-card span {
  color: var(--red);
  font-size: 24px;
}

.player-team {
  grid-column: 1 / -1;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
}

.ghost-button,
.primary-button,
.answer-row button {
  min-height: 48px;
  text-align: center;
}

.ghost-button {
  width: 100%;
  margin-top: 12px;
}

.match-panel {
  padding: 22px;
}

.round-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

h1 {
  margin: 4px 0 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.9;
}

.timer {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 92px;
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--control-solid);
  color: var(--control-solid-text);
}

.timer span {
  font-size: 42px;
  line-height: 0.8;
}

.timer small {
  margin-top: -16px;
  color: var(--timer-subtle);
  font-family: Arial, sans-serif;
}

.clubs {
  margin: 6px 0 22px;
}

.club-card {
  min-height: 190px;
  padding: 18px;
}

.club-card .club-badge {
  width: clamp(92px, 10vw, 128px);
}

.club-card .club-name {
  margin-top: 12px;
  font-size: clamp(28px, 4vw, 46px);
}

.answer-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.answer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px;
  gap: 8px;
}

.answer-input-wrap {
  position: relative;
  min-width: 0;
}

.answer-input-wrap input {
  width: 100%;
}

.answer-suggestions {
  position: absolute;
  z-index: 25;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 224px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.answer-suggestions button {
  display: block;
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 5px;
  padding: 8px 11px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
}

.answer-suggestions button:hover,
.answer-suggestions button:focus-visible {
  background: var(--gold);
  color: #17130a;
  outline: none;
}

.answer-suggestions button.is-active {
  position: relative;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  box-shadow: inset 5px 0 0 var(--gold);
  outline: 2px solid var(--line-strong);
  outline-offset: -2px;
}

.answer-suggestions button.is-active::after {
  content: "›";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-52%);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.hint-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  margin-top: 12px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 4px 0 var(--shadow-mid);
  overflow: hidden;
}

.answer-row select,
.answer-row input {
  min-width: 0;
  min-height: 52px;
  border: 1px solid var(--line-strong);
  background: var(--field);
  color: var(--ink);
  padding: 0 14px;
  font-size: 20px;
}

.answer-row button,
.primary-button {
  border-color: var(--line-strong);
  background: var(--gold);
}

.hint-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 62px;
  border: 0;
  border-right: 2px solid var(--gold);
  border-radius: 0;
  background: var(--gold);
  color: #17130a;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  box-shadow: none;
}

.hint-button span {
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  min-width: 86px;
  height: 28px;
  margin-left: 0;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
}

.hint-text {
  min-height: 62px;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  display: grid;
  align-content: center;
  gap: 7px;
}

.hint-message-header {
  width: fit-content;
  border: 1px solid var(--line-strong);
  background: var(--soft);
  padding: 3px 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hint-message-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.hint-message-main > strong {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hint-message-mask {
  min-width: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.hint-message-main em {
  border: 1px solid rgba(46, 125, 50, 0.34);
  background: rgba(46, 125, 50, 0.1);
  padding: 3px 7px;
  color: var(--green-dark);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.hint-message-main em.is-zero {
  border-color: rgba(183, 40, 40, 0.35);
  background: rgba(183, 40, 40, 0.1);
  color: var(--red);
}

.hint-message-clubs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.hint-message-clubs strong {
  color: var(--ink);
}

.feedback {
  min-height: 48px;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-family: Arial, sans-serif;
}

.feedback.good {
  color: var(--good);
}

.feedback.bad {
  color: var(--bad);
}

.round-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 12px;
}

.found-panel,
.round-info {
  min-height: 176px;
  padding: 14px;
}

#foundList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

#foundList li {
  padding: 8px 10px;
  background: var(--control-solid);
  color: var(--control-solid-text);
  font-family: Arial, sans-serif;
  font-size: 14px;
}

#foundList li.found-answer {
  background: var(--green-dark);
}

#foundList li.missed-answer {
  border: 1px dashed var(--line-strong);
  background: var(--soft);
  color: var(--muted);
}

#modeHint {
  min-height: 64px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  line-height: 1.45;
}

.primary-button {
  width: 100%;
}

.round-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.round-actions .ghost-button {
  margin-top: 0;
}

.round-actions .pass-button {
  border-color: var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}

.round-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

body.popup-open {
  overflow: hidden;
}

.game-popup {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(15, 17, 19, 0.78);
  backdrop-filter: blur(5px);
}

.game-popup[hidden] {
  display: none;
}

.game-popup [hidden] {
  display: none;
}

.game-popup-panel {
  width: min(680px, 100%);
  border: 2px solid var(--line-strong);
  border-top: 10px solid var(--red);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.28);
  padding: 28px;
}

.game-popup[data-variant="start"] .game-popup-panel {
  width: min(720px, 100%);
  border-top-color: var(--gold);
  text-align: center;
  animation: pop 260ms ease-out;
}

.game-popup-kicker {
  margin: 0 0 8px;
  color: var(--red);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
}

.game-popup[data-variant="start"] .game-popup-kicker {
  color: var(--muted);
}

.game-popup h2 {
  margin: 0;
  font-size: clamp(42px, 8vw, 74px);
  line-height: 0.9;
}

.game-popup-summary {
  margin: 16px 0 0;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
}

.game-popup-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-top: 24px;
  border: 1px solid var(--line-strong);
}

.game-popup-stats > div {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.game-popup-stats > div:last-child {
  border-right: 0;
}

.game-popup-stats strong,
.game-popup-stats span {
  display: block;
}

.game-popup-stats strong {
  font-size: 36px;
  line-height: 1;
}

.game-popup-stats span {
  margin-top: 5px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.game-popup-stats small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.game-popup-share-card {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  border: 2px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(215, 51, 51, 0.16), rgba(240, 184, 79, 0.24)),
    var(--paper);
  box-shadow: 0 5px 0 var(--shadow-mid);
  padding: 18px;
}

.game-popup-share-card div {
  min-width: 0;
}

.game-popup-share-card span,
.game-popup-share-card strong {
  display: block;
}

.game-popup-share-card span {
  color: var(--red);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
}

.game-popup-share-card strong {
  margin-top: 4px;
  font-size: clamp(54px, 10vw, 92px);
  line-height: 0.86;
}

.game-popup-share-card p {
  margin: 0;
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.28;
}

.game-popup-known {
  margin-top: 22px;
}

.game-popup-known ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: 230px;
  overflow-y: auto;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.game-popup-known li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--soft);
  font-family: Arial, sans-serif;
}

.game-popup-known li span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.game-popup-known li strong {
  color: var(--green-dark);
  white-space: nowrap;
}

.game-popup-known li.is-empty {
  grid-column: 1 / -1;
  color: var(--muted);
}

.game-popup-share-status {
  margin: 16px 0 0;
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 10px 12px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.game-popup-share-status[data-tone="good"] {
  border-color: rgba(46, 125, 50, 0.42);
  color: var(--green-dark);
}

.game-popup-share-status[data-tone="bad"] {
  border-color: rgba(183, 40, 40, 0.45);
  color: var(--red);
}

.game-popup-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.game-popup-actions .ghost-button {
  margin-top: 0;
}

.x-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  border: 2px solid #111;
  border-radius: 0;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.x-share-button:hover,
.x-share-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--gold);
  outline: none;
}

.x-share-button span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
}

.x-share-button strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

:root[data-theme="dark"] .topbar {
  border-bottom-color: rgba(230, 185, 79, 0.18);
}

:root[data-theme="dark"] .choice,
:root[data-theme="dark"] .pill,
:root[data-theme="dark"] .mini-pill,
:root[data-theme="dark"] .room-card,
:root[data-theme="dark"] .draw-club,
:root[data-theme="dark"] .club-card,
:root[data-theme="dark"] .score-rail,
:root[data-theme="dark"] .match-panel,
:root[data-theme="dark"] .found-panel,
:root[data-theme="dark"] .round-info,
:root[data-theme="dark"] .game-popup-panel,
:root[data-theme="dark"] .data-panel-inner {
  border-color: var(--line);
}

:root[data-theme="dark"] .choice.active {
  border-color: var(--red);
  background:
    linear-gradient(135deg, rgba(240, 90, 90, 0.16), rgba(230, 185, 79, 0.08)),
    var(--paper);
}

:root[data-theme="dark"] .choice.active::after {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(240, 90, 90, 0.12);
}

:root[data-theme="dark"] .pill.active,
:root[data-theme="dark"] .mini-pill.active {
  border-color: rgba(230, 185, 79, 0.72);
  background: var(--gold);
  color: var(--control-solid-text);
}

:root[data-theme="dark"] .start-button {
  border-color: #ff6b6b;
  background: #e94f4f;
  color: #fff8ee;
}

:root[data-theme="dark"] .timer,
:root[data-theme="dark"] .draw-versus,
:root[data-theme="dark"] .versus {
  border-color: rgba(230, 185, 79, 0.64);
  background: #121922;
  color: var(--gold);
}

:root[data-theme="dark"] .timer small {
  color: rgba(244, 239, 229, 0.68);
}

:root[data-theme="dark"] .club-badge span {
  border-color: rgba(244, 239, 229, 0.46);
  background: #111820;
}

:root[data-theme="dark"] .answer-row select,
:root[data-theme="dark"] .answer-row input,
:root[data-theme="dark"] .menu-join input,
:root[data-theme="dark"] .join-box input,
:root[data-theme="dark"] .invite-box input,
:root[data-theme="dark"] .data-controls input,
:root[data-theme="dark"] .data-controls select {
  border-color: var(--line);
  background: #0f1720;
}

:root[data-theme="dark"] .answer-suggestions {
  border-color: var(--line);
  background: #121922;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.48);
}

:root[data-theme="dark"] .answer-suggestions button:hover,
:root[data-theme="dark"] .answer-suggestions button:focus-visible {
  background: rgba(230, 185, 79, 0.22);
  color: var(--ink);
}

:root[data-theme="dark"] .answer-suggestions button.is-active {
  background: #d94b4b;
  color: #fff;
  outline-color: rgba(230, 185, 79, 0.72);
}

:root[data-theme="dark"] .hint-row {
  border-color: rgba(230, 185, 79, 0.72);
  background: #121922;
}

:root[data-theme="dark"] .hint-text {
  background: #121922;
}

:root[data-theme="dark"] .hint-button,
:root[data-theme="dark"] .answer-row button,
:root[data-theme="dark"] .primary-button {
  border-color: rgba(230, 185, 79, 0.72);
  background: var(--gold);
  color: #17130c;
}

:root[data-theme="dark"] .ghost-button,
:root[data-theme="dark"] .round-actions .pass-button {
  border-color: var(--line);
  background: #121922;
  color: var(--ink);
}

:root[data-theme="dark"] .feedback,
:root[data-theme="dark"] .room-status,
:root[data-theme="dark"] .menu-online,
:root[data-theme="dark"] .room-lobby li,
:root[data-theme="dark"] .player-card,
:root[data-theme="dark"] .data-row,
:root[data-theme="dark"] .game-popup-known li,
:root[data-theme="dark"] .game-popup-share-status {
  border-color: var(--line);
  background: var(--soft);
}

:root[data-theme="dark"] .room-lobby li.room-team-header {
  border-color: rgba(230, 185, 79, 0.58);
  background:
    linear-gradient(135deg, rgba(230, 185, 79, 0.18), rgba(98, 180, 124, 0.1)),
    #121922;
  color: var(--ink);
}

:root[data-theme="dark"] .room-lobby li.room-team-header span {
  color: var(--ink);
}

:root[data-theme="dark"] .room-lobby li.room-team-header small {
  color: var(--gold);
}

:root[data-theme="dark"] .room-team-actions .mini-pill {
  border-color: rgba(174, 184, 195, 0.32);
  background: #121922;
  color: var(--ink);
}

:root[data-theme="dark"] .room-team-actions .mini-pill:hover,
:root[data-theme="dark"] .room-team-actions .mini-pill:focus-visible {
  border-color: rgba(230, 185, 79, 0.72);
  background: rgba(230, 185, 79, 0.14);
  color: var(--ink);
}

:root[data-theme="dark"] .room-team-actions .mini-pill.active {
  border-color: rgba(230, 185, 79, 0.88);
  background: var(--gold);
  color: #17130c;
}

:root[data-theme="dark"] .room-team-actions .mini-pill:disabled {
  border-color: rgba(102, 119, 137, 0.42);
  background: rgba(18, 25, 34, 0.66);
  color: rgba(244, 239, 229, 0.52);
}

:root[data-theme="dark"] .game-popup {
  background: rgba(3, 7, 12, 0.82);
}

:root[data-theme="dark"] .game-popup-share-card {
  border-color: var(--line);
  background:
    linear-gradient(135deg, rgba(240, 90, 90, 0.14), rgba(230, 185, 79, 0.14)),
    #121922;
}

:root[data-theme="dark"] .data-panel {
  background: rgba(8, 12, 18, 0.96);
}

.data-panel {
  position: fixed;
  inset: 56px 0 0;
  z-index: 20;
  overflow: auto;
  padding: 24px;
  background: var(--panel-overlay);
}

.data-panel-inner {
  width: min(980px, 100%);
  margin: 0 auto 48px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  box-shadow: 0 5px 0 var(--shadow-mid);
}

.data-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.data-header h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.95;
}

.data-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.data-controls input,
.data-controls select {
  min-height: 48px;
  min-width: 0;
  border: 1px solid var(--line-strong);
  background: var(--field);
  color: var(--ink);
  padding: 0 12px;
  font-size: 18px;
}

.data-summary {
  padding: 12px 18px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  border-bottom: 1px solid var(--line);
}

.data-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
}

.data-row {
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 12px;
}

.data-row strong {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.data-row span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
}

.data-empty {
  padding: 26px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  text-align: center;
}

@keyframes pop {
  0% {
    transform: scale(0.86) rotate(-2deg);
  }
  70% {
    transform: scale(1.04) rotate(1deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

@media (max-width: 860px) {
  body {
    background-size: 34px 34px, auto;
  }

  .topbar {
    display: flex;
    justify-content: space-between;
    min-height: 50px;
    padding: 0 16px;
    gap: 10px;
    overflow: hidden;
  }

  .wordmark {
    min-width: 0;
    font-size: 22px;
  }

  .wordmark span,
  .wordmark strong {
    min-width: 0;
  }

  .wordmark img {
    width: 26px;
  }

  .topline {
    display: none;
  }

  .top-actions {
    margin-left: auto;
    justify-content: end;
    flex: 0 0 auto;
  }

  .text-button {
    min-width: 32px;
    padding: 0 5px;
    font-size: 16px;
  }

  .icon-button {
    width: 30px;
    font-size: 16px;
  }

  .menu-screen,
  .online-setup-screen {
    width: min(calc(100vw - 24px), 760px);
    margin-top: 18px;
    margin-bottom: 34px;
  }

  .hero-logo {
    gap: 0;
    margin-bottom: 8px;
  }

  .hero-logo img {
    width: clamp(76px, 19vw, 112px);
    transform: translateY(5px);
  }

  .hero-logo > span {
    font-size: clamp(48px, 11vw, 72px);
    max-width: 100%;
  }

  .intro {
    margin-top: 18px;
    margin-bottom: 28px;
    font-size: 16px;
    line-height: 1.42;
  }

  .data-status {
    margin-top: -18px;
    margin-bottom: 20px;
  }

  .choice {
    min-height: 76px;
    padding: 12px 46px 11px 14px;
  }

  .choice small {
    overflow-wrap: anywhere;
  }

  .menu-stack .choice {
    min-height: 82px;
  }

  .world-cup-choice {
    min-height: 92px;
    padding-left: 72px;
    padding-right: 48px;
  }

  .world-cup-choice::before {
    left: 18px;
  }

  .kicker,
  .section-label,
  .choice small {
    letter-spacing: 1.8px;
  }

  .kicker {
    max-width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }

  .section-label {
    margin-top: 16px;
  }

  .intro,
  .data-status {
    width: min(330px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .start-button {
    min-height: 60px;
    margin-top: 20px;
    font-size: 34px;
  }

  .pill {
    min-height: 46px;
    font-size: 22px;
  }

  .choice-grid.compact,
  .menu-stack .choice-grid[data-setting="play-type"],
  .menu-stack .choice-grid[data-setting="mode"],
  .setup-panel .choice-grid[data-setting="mode"],
  .draw-stage,
  .clubs,
  .game-screen.active,
  .round-bottom,
  .answer-row,
  .hint-row,
  .invite-box > div,
  .join-box > div,
  .room-settings,
  .room-actions,
  .room-team-actions,
  .pill-row[data-setting="room-size"],
  .data-controls,
  .data-list {
    grid-template-columns: 1fr;
  }

  .pill-row,
  .choice-grid,
  .choice,
  .pill,
  .answer-row {
    min-width: 0;
  }

  .draw-versus,
  .versus {
    justify-self: center;
  }

  .round-header {
    align-items: center;
  }

  .match-panel {
    order: 1;
    padding: 18px;
  }

  .score-rail {
    order: 2;
  }

  .game-screen.active {
    gap: 12px;
    width: min(calc(100% - 20px), 760px);
    margin-top: 14px;
  }

  .score-rail {
    padding: 12px;
  }

  .game-meta {
    min-height: 42px;
    margin-bottom: 10px;
  }

  .players {
    gap: 8px;
  }

  .player-card {
    min-height: 46px;
    padding: 9px 10px;
  }

  .round-header {
    gap: 10px;
  }

  .round-header h1 {
    margin-bottom: 12px;
  }

  .timer {
    width: 78px;
  }

  .timer span {
    font-size: 34px;
  }

  .clubs {
    gap: 10px;
    margin-bottom: 14px;
  }

  .club-card,
  .draw-club {
    min-height: 160px;
    padding: 14px;
  }

  .club-card .club-badge,
  .draw-club .club-badge {
    width: clamp(82px, 23vw, 112px);
  }

  .club-card .club-name,
  .draw-club .club-name {
    font-size: clamp(24px, 8vw, 36px);
  }

  .answer-row select,
  .answer-row input {
    min-height: 48px;
    font-size: 18px;
  }

  .answer-row button {
    min-height: 48px;
  }

  .hint-row {
    margin-top: 10px;
  }

  .hint-button {
    min-height: 52px;
    border-right: 0;
    border-bottom: 2px solid var(--gold);
  }

  .hint-text {
    min-height: 54px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .feedback {
    min-height: 42px;
    margin: 10px 0;
    padding: 10px 12px;
  }

  .game-popup {
    padding: 14px;
  }

  .game-popup-panel {
    padding: 22px 16px;
  }

  .game-popup-stats,
  .game-popup-share-card,
  .game-popup-known ul,
  .game-popup-actions {
    grid-template-columns: 1fr;
  }

  .game-popup-stats > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .game-popup-stats > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 540px) {
  .topbar {
    padding: 0 12px;
    gap: 6px;
  }

  .wordmark {
    gap: 6px;
    flex: 1 1 auto;
    max-width: 52vw;
    overflow: hidden;
    font-size: 18px;
    white-space: nowrap;
  }

  .wordmark img {
    width: 23px;
  }

  .top-actions {
    gap: 3px;
  }

  .text-button {
    min-height: 30px;
    min-width: 27px;
    padding: 0 4px;
    font-size: 13px;
  }

  .lang-button {
    min-width: 30px;
  }

  .icon-button {
    width: 26px;
    font-size: 14px;
  }

  .menu-screen,
  .online-setup-screen {
    width: min(calc(100vw - 18px), 760px);
    margin-top: 12px;
  }

  .hero-logo {
    gap: 0;
  }

  .hero-logo img {
    width: clamp(58px, 19vw, 78px);
    transform: translateY(4px);
  }

  .hero-logo > span {
    font-size: clamp(40px, 14vw, 54px);
  }

  .kicker {
    white-space: normal;
    letter-spacing: 1.4px;
  }

  .choice span {
    font-size: 18px;
  }

  .choice small {
    font-size: 10px;
    letter-spacing: 1.35px;
    line-height: 1.25;
  }

  .intro {
    width: min(310px, 100%);
    margin-top: 14px;
    margin-bottom: 24px;
    font-size: 15px;
  }

  .data-status {
    margin-bottom: 18px;
    font-size: 12px;
  }

  .choice-grid {
    width: 100%;
    gap: 8px;
  }

  .pill-row {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .menu-stack .choice,
  .choice {
    min-height: 64px;
    padding-top: 10px;
    padding-bottom: 9px;
  }

  .world-cup-choice {
    min-height: 76px;
    padding-left: 64px;
    padding-right: 52px;
  }

  .world-cup-choice::before {
    left: 16px;
    width: 34px;
    font-size: 18px;
  }

  .world-cup-choice span::after {
    height: 18px;
    padding: 0 7px;
    font-size: 10px;
    transform: translateY(-5px);
  }

  .world-cup-choice small {
    transform: translateY(-4px);
  }

  .pill {
    min-height: 40px;
    font-size: 19px;
  }

  .start-button {
    min-height: 54px;
    margin-top: 16px;
    font-size: 28px;
  }

  .online-setup-screen h1 {
    font-size: clamp(42px, 13vw, 56px);
  }

  .room-card,
  .match-panel,
  .score-rail {
    padding: 12px;
  }

  .room-code {
    font-size: clamp(48px, 16vw, 68px);
  }

  .draw-screen {
    width: min(calc(100% - 18px), 760px);
    margin-top: 28px;
  }

  .draw-stage,
  .clubs {
    gap: 8px;
  }

  .draw-versus,
  .versus {
    width: 48px;
    font-size: 18px;
  }

  .club-card,
  .draw-club {
    min-height: 126px;
    padding: 10px;
  }

  .club-card {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
    justify-items: start;
    align-items: center;
    min-height: 96px;
    text-align: left;
  }

  .club-card .club-badge {
    grid-row: span 2;
    width: clamp(58px, 18vw, 72px);
  }

  .club-card .club-badge span {
    font-size: clamp(18px, 5vw, 24px);
  }

  .club-card .club-name {
    margin-top: 0;
    font-size: clamp(22px, 6.2vw, 30px);
    text-align: left;
  }

  .club-card .club-league {
    margin-top: 5px;
    text-align: left;
  }

  .club-badge {
    border-width: 4px;
    border-radius: 20px 20px 34px 34px;
  }

  .club-badge span {
    border-width: 3px;
  }

  .club-league {
    margin-top: 7px;
    font-size: 10px;
    letter-spacing: 1.4px;
  }

  .game-meta span {
    font-size: 18px;
  }

  .player-card input {
    font-size: 18px;
  }

  .player-card span {
    font-size: 19px;
  }

  h1 {
    font-size: clamp(28px, 9vw, 40px);
  }

  .round-header {
    align-items: start;
  }

  .timer {
    width: 60px;
  }

  .timer span {
    font-size: 25px;
  }

  .timer small {
    margin-top: -12px;
    font-size: 11px;
  }

  .answer-row {
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 6px;
  }

  .answer-row select,
  .answer-row input {
    min-height: 44px;
    padding: 0 12px;
    font-size: 16px;
  }

  .answer-row button {
    min-height: 44px;
    padding: 0 8px;
    font-size: 17px;
  }

  .hint-button {
    min-height: 46px;
    font-size: 16px;
  }

  .hint-button span {
    min-width: 74px;
    height: 24px;
    font-size: 12px;
  }

  .hint-text {
    min-height: 48px;
    font-size: 13px;
  }

  .round-bottom {
    gap: 10px;
  }

  .found-panel,
  .round-info {
    min-height: 118px;
    padding: 12px;
  }

  #modeHint {
    min-height: auto;
    font-size: 14px;
  }

  .game-popup h2 {
    font-size: clamp(36px, 12vw, 54px);
  }

  .game-popup-summary {
    font-size: 15px;
  }
}
