/* kahoot-cf — Bauhaus edition
   Pure primaries on white. Hard edges. No shadows, no gradients, no rounded corners.
   Geometric shapes as composition.

   Color principles drawn from the Bauhaus 1919–1933 visual identity:
   Itten / Albers / Bayer color theory — red, blue, yellow as the irreducible
   primaries; black & white as structure. */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Archivo:wght@400;500;700&family=JetBrains+Mono:wght@800&display=swap');

:root {
  --red:    #E63946;
  --blue:   #0F47AF;
  --yellow: #FFD60A;
  --black:  #000000;
  --white:  #FFFFFF;
  --paper:  #FFFFFF;
  --rule:   #000000;
  --muted:  #6E6E6E;

  /* Answer tile colors — Bauhaus quartet */
  --opt-0: var(--red);
  --opt-1: var(--blue);
  --opt-2: var(--yellow);
  --opt-3: var(--black);

  --rule-w: 3px;
  --rule-w-thick: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--black);
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  font-size: 16px;
  line-height: 1.4;
}

::selection { background: var(--yellow); color: var(--black); }

a { color: var(--black); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { background: var(--yellow); text-decoration: none; }

/* Type */
h1, h2, h3, h4 {
  font-family: 'Archivo Black', sans-serif;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}
h1 { font-size: clamp(40px, 8vw, 88px); }
h2 { font-size: clamp(24px, 4vw, 36px); margin: 0 0 16px; }
h3 { font-size: 18px; margin: 0 0 8px; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 800; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.hidden { display: none !important; }
.err { color: var(--red); margin: 8px 0 0; min-height: 1.2em; font-weight: 700; }

/* Topbar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  border-bottom: var(--rule-w-thick) solid var(--black);
  background: var(--white);
}
.brand {
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--black); color: var(--white);
  padding: 4px 12px 6px;
  display: inline-block;
}
.brand::before {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  background: var(--red); border-radius: 50%;
  margin-right: 8px; margin-bottom: -2px;
}
.brand:hover { background: var(--red); color: var(--white); }
.topbar nav { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.topbar nav span { color: var(--muted); font-size: 14px; }

/* Containers */
.container { max-width: 980px; margin: 0 auto; padding: 32px 24px 80px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }

/* Buttons — flat, sharp, no shadow */
.btn, button {
  font: inherit;
  font-family: 'Archivo Black', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--white);
  color: var(--black);
  border: var(--rule-w) solid var(--black);
  padding: 10px 20px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: transform 0.06s, background 0.06s, color 0.06s;
}
.btn:hover, button:hover { background: var(--yellow); }
.btn:active, button:active { transform: translateY(2px); }
.btn.primary, button.primary { background: var(--red); color: var(--white); border-color: var(--black); }
.btn.primary:hover, button.primary:hover { background: var(--black); color: var(--white); }
.btn.secondary, button.secondary { background: var(--blue); color: var(--white); }
.btn.secondary:hover, button.secondary:hover { background: var(--black); }
.btn.danger { background: var(--white); color: var(--black); }
.btn.danger:hover { background: var(--red); color: var(--white); }
.btn.big { padding: 18px 36px; font-size: 18px; }
.btn[disabled], button[disabled] { opacity: 0.3; cursor: not-allowed; }

/* Inputs */
input, textarea {
  font: inherit;
  background: var(--white);
  color: var(--black);
  border: var(--rule-w) solid var(--black);
  padding: 12px 14px;
  width: 100%;
}
input:focus, textarea:focus { outline: 3px solid var(--yellow); outline-offset: 2px; }
textarea { resize: vertical; }

/* ============ Landing page ============ */
.landing { overflow-x: hidden; }
.landing-hero {
  position: relative;
  padding: 80px 24px 60px;
  border-bottom: var(--rule-w-thick) solid var(--black);
  overflow: hidden;
}
.landing-hero h1 {
  position: relative; z-index: 2;
  max-width: 900px; margin: 0 auto;
  font-size: clamp(48px, 12vw, 132px);
  line-height: 0.88;
  letter-spacing: -0.04em;
}
.landing-hero h1 .accent-red { color: var(--red); }
.landing-hero h1 .accent-blue { color: var(--blue); }
.landing-hero .shape {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.landing-hero .shape.circle-yellow {
  width: 220px; height: 220px;
  background: var(--yellow);
  border-radius: 50%;
  top: 40px; right: 6%;
}
.landing-hero .shape.square-blue {
  width: 110px; height: 110px;
  background: var(--blue);
  bottom: 30px; left: 4%;
}
.landing-hero .shape.tri-red {
  width: 0; height: 0;
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-bottom: 120px solid var(--red);
  top: 50%; right: 22%;
  transform: rotate(20deg);
}
@media (max-width: 700px) {
  .landing-hero .shape.circle-yellow { width: 140px; height: 140px; top: 8px; right: -30px; }
  .landing-hero .shape.tri-red { display: none; }
  .landing-hero .shape.square-blue { width: 60px; height: 60px; bottom: 10px; left: -10px; }
}

.landing-main {
  max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-bottom: var(--rule-w-thick) solid var(--black);
}
@media (max-width: 800px) { .landing-main { grid-template-columns: 1fr; } }
.landing-panel { padding: 36px 28px; }
.landing-panel.join { border-right: var(--rule-w) solid var(--black); }
@media (max-width: 800px) {
  .landing-panel.join { border-right: 0; border-bottom: var(--rule-w) solid var(--black); }
}
.landing-panel h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.landing-panel h2 .marker {
  display: inline-block;
  width: 18px; height: 18px;
  background: var(--red);
}
.landing-panel.host h2 .marker { background: var(--blue); border-radius: 50%; }
#join-form { display: grid; gap: 12px; }
.landing-panel button { width: 100%; }

/* ============ Dashboard ============ */
.quiz-list { list-style: none; display: grid; gap: 0; border: var(--rule-w-thick) solid var(--black); background: var(--white); }
.quiz-item {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 24px;
  border-bottom: var(--rule-w) solid var(--black);
}
.quiz-item:last-child { border-bottom: 0; }
.quiz-item:hover { background: var(--yellow); }
.quiz-title { font-family: 'Archivo Black', sans-serif; font-size: 22px; text-transform: uppercase; letter-spacing: -0.02em; }
.quiz-meta { font-size: 14px; margin-top: 4px; color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============ Editor ============ */
.editor-head {
  padding: 24px 0;
  border-bottom: var(--rule-w-thick) solid var(--black);
  margin-bottom: 32px;
}
.title-input {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(28px, 5vw, 48px);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  border: 0;
  padding: 4px 0;
  background: transparent;
}
.title-input:focus { outline: none; background: var(--yellow); }
#description { border: var(--rule-w) solid var(--black); margin-top: 12px; }

.questions-list { list-style: none; display: grid; gap: 16px; }
.question-item {
  background: var(--white);
  border: var(--rule-w-thick) solid var(--black);
  padding: 18px;
}
.q-header { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.q-num {
  width: 44px; height: 44px;
  background: var(--black); color: var(--white);
  font-family: 'Archivo Black', sans-serif;
  display: grid; place-items: center;
  font-size: 22px;
  flex: 0 0 auto;
}
.q-text { flex: 1; font-weight: 500; font-size: 18px; }
.q-time { width: 80px; flex: 0 0 auto; text-align: center; font-family: 'JetBrains Mono', monospace; font-weight: 800; }
.q-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: var(--rule-w) solid var(--black); }
@media (max-width: 600px) { .q-options { grid-template-columns: 1fr; } }
.q-option {
  display: flex; gap: 10px; align-items: center;
  padding: 12px;
  border-right: var(--rule-w) solid var(--black);
  border-bottom: var(--rule-w) solid var(--black);
}
.q-option:nth-child(2n) { border-right: 0; }
.q-option:nth-child(n+3) { border-bottom: 0; }
@media (max-width: 600px) {
  .q-option { border-right: 0; border-bottom: var(--rule-w) solid var(--black); }
  .q-option:last-child { border-bottom: 0; }
}
.q-option.opt-0 { background: var(--red); color: var(--white); }
.q-option.opt-1 { background: var(--blue); color: var(--white); }
.q-option.opt-2 { background: var(--yellow); color: var(--black); }
.q-option.opt-3 { background: var(--black); color: var(--white); }
.q-option input[type=radio] { width: auto; flex: 0 0 auto; accent-color: var(--white); }
.q-option .q-opt-text {
  background: transparent;
  color: inherit;
  border: 0;
  font-weight: 700;
  padding: 4px 0;
}
.q-option .q-opt-text:focus { outline: 2px solid currentColor; outline-offset: 4px; }
.q-option .q-opt-text::placeholder { color: currentColor; opacity: 0.5; }

/* Delete button on question */
.question-item .btn.danger { font-size: 18px; padding: 4px 12px; line-height: 1; }

/* ============ Host stage ============ */
.host {
  background: var(--white);
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}
.host .stage { max-width: 1200px; margin: 0 auto; padding: 32px 24px 60px; }

/* Lobby with big PIN */
.lobby { display: grid; gap: 28px; }
.lobby-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
@media (max-width: 700px) { .lobby-head { grid-template-columns: 1fr; } }
.lobby-quiz-title { font-size: clamp(28px, 4vw, 44px); }
.lobby-quiz-title small { display: block; font-family: 'Archivo', sans-serif; font-size: 14px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); font-weight: 400; margin-bottom: 8px; }
.pin-display {
  background: var(--yellow);
  border: var(--rule-w-thick) solid var(--black);
  padding: 18px 32px;
  display: inline-block;
  text-align: center;
}
.pin-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.3em; font-weight: 700; }
.pin {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: clamp(48px, 9vw, 96px);
  letter-spacing: 0.05em;
  line-height: 0.9;
  margin-top: 4px;
}
.pin-hint { font-size: 13px; margin-top: 8px; font-weight: 700; }
.pin-hint strong { background: var(--black); color: var(--white); padding: 2px 8px; font-family: 'JetBrains Mono', monospace; }

.players { padding: 24px; border: var(--rule-w-thick) solid var(--black); background: var(--white); }
.players-count { font-family: 'Archivo Black', sans-serif; font-size: 18px; text-transform: uppercase; margin-bottom: 14px; }
.players-count::before { content: ''; display: inline-block; width: 14px; height: 14px; background: var(--blue); border-radius: 50%; margin-right: 8px; }
.player-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--black); color: var(--white);
  padding: 6px 14px; font-weight: 700; font-size: 14px;
}
.chip:nth-child(3n+1) { background: var(--red); }
.chip:nth-child(3n+2) { background: var(--blue); }
.chip:nth-child(3n+3) { background: var(--yellow); color: var(--black); }
.start-row { display: flex; justify-content: center; }

/* Question stage */
.q-stage { display: grid; gap: 24px; }
.q-header-stage {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px;
  border-bottom: var(--rule-w-thick) solid var(--black);
}
.q-header-stage > span:first-child {
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  font-size: 18px;
}
.timer {
  background: var(--red); color: var(--white);
  font-family: 'JetBrains Mono', monospace; font-weight: 800;
  padding: 8px 20px;
  font-size: 28px;
  min-width: 80px; text-align: center;
}
.q-text-stage {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(28px, 5vw, 56px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-align: left;
  padding: 24px 0;
}
.q-options-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: var(--rule-w-thick) solid var(--black); }
@media (max-width: 700px) { .q-options-stage { grid-template-columns: 1fr; } }
.opt-tile {
  padding: 32px 28px;
  border: 0;
  color: var(--white);
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  font-size: clamp(20px, 2.5vw, 28px);
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 18px;
  min-height: 130px;
  text-align: left;
  cursor: default;
  width: 100%;
}
.opt-tile.opt-0 { background: var(--red); }
.opt-tile.opt-1 { background: var(--blue); }
.opt-tile.opt-2 { background: var(--yellow); color: var(--black); }
.opt-tile.opt-3 { background: var(--black); color: var(--white); }
.q-options-stage .opt-tile:nth-child(1) { border-right: var(--rule-w) solid var(--black); border-bottom: var(--rule-w) solid var(--black); }
.q-options-stage .opt-tile:nth-child(2) { border-bottom: var(--rule-w) solid var(--black); }
.q-options-stage .opt-tile:nth-child(3) { border-right: var(--rule-w) solid var(--black); }
@media (max-width: 700px) {
  .q-options-stage .opt-tile { border-right: 0; border-bottom: var(--rule-w) solid var(--black); }
  .q-options-stage .opt-tile:last-child { border-bottom: 0; }
}

.opt-letter {
  background: rgba(255,255,255,0.18);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px;
  flex: 0 0 auto;
}
.opt-tile.opt-2 .opt-letter { background: rgba(0,0,0,0.18); }
.opt-tile.dim { opacity: 0.35; }
.opt-tile.correct { outline: 6px solid var(--black); outline-offset: -6px; }
.opt-count { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: clamp(24px, 3vw, 36px); }
.answer-count { text-align: center; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; }

/* Results / leaderboard */
.results-stage { display: grid; gap: 24px; }
.leaderboard { padding: 20px; background: var(--white); border: var(--rule-w-thick) solid var(--black); }
.leaderboard h3 { font-size: 18px; margin-bottom: 14px; }
.leaderboard ol { list-style: none; counter-reset: rank; }
.leaderboard li {
  counter-increment: rank;
  display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 0;
  border-bottom: 2px solid var(--black);
  font-weight: 700;
}
.leaderboard li:last-child { border-bottom: 0; }
.leaderboard li::before { content: counter(rank); font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 18px; }
.leaderboard li > :last-child { font-family: 'JetBrains Mono', monospace; font-weight: 800; }
.result-actions { display: flex; gap: 12px; justify-content: center; }

/* Final */
.ended-stage { text-align: center; }
.ended-stage h1 {
  font-size: clamp(56px, 10vw, 120px);
  margin: 24px 0 40px;
}
.ended-stage h1 .yellow-circle { display: inline-block; width: 0.8em; height: 0.8em; background: var(--yellow); border-radius: 50%; vertical-align: -0.05em; margin-right: 16px; }
.final-list { list-style: none; max-width: 720px; margin: 0 auto; }
.final-row {
  display: grid; grid-template-columns: 80px 1fr 140px; gap: 18px;
  padding: 16px 22px;
  border: var(--rule-w) solid var(--black);
  background: var(--white);
  margin-bottom: -3px;
  align-items: center;
}
.final-row .rank { font-family: 'Archivo Black', sans-serif; font-size: 36px; }
.final-row .who { font-family: 'Archivo Black', sans-serif; font-size: 22px; text-transform: uppercase; letter-spacing: -0.02em; text-align: left; }
.final-row .score { font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 24px; text-align: right; }
.final-row.rank-1 { background: var(--yellow); }
.final-row.rank-2 { background: var(--blue); color: var(--white); }
.final-row.rank-3 { background: var(--red); color: var(--white); }

/* ============ Player ============ */
.player {
  background: var(--white);
  min-height: 100dvh;
}
.player .stage {
  max-width: 540px; margin: 0 auto; padding: 16px;
  min-height: 100dvh; display: grid;
}
.player-card {
  background: var(--white);
  border: var(--rule-w-thick) solid var(--black);
  padding: 24px;
  align-self: stretch;
  text-align: center;
  display: grid; gap: 16px;
  align-content: center;
}
.player-nick {
  display: inline-block;
  background: var(--black); color: var(--white);
  padding: 6px 16px;
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 16px;
  margin: 0 auto;
}
.player-q-text {
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
  padding: 12px 0;
}
.player-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: var(--rule-w) solid var(--black);
}
.player-options .opt-tile {
  min-height: 130px;
  padding: 18px;
  font-size: 18px;
  cursor: pointer;
  text-transform: uppercase;
  font-family: 'Archivo Black', sans-serif;
}
.player-options .opt-tile:nth-child(1) { border-right: var(--rule-w) solid var(--black); border-bottom: var(--rule-w) solid var(--black); }
.player-options .opt-tile:nth-child(2) { border-bottom: var(--rule-w) solid var(--black); }
.player-options .opt-tile:nth-child(3) { border-right: var(--rule-w) solid var(--black); }
.player-options .opt-tile:active { transform: scale(0.97); }
.player-card.good { background: var(--yellow); }
.player-card.bad  { background: var(--red); color: var(--white); }
.player-card.bad .player-nick { background: var(--white); color: var(--black); }
.player-card h1 {
  font-size: clamp(48px, 12vw, 80px);
  margin: 8px 0;
}
.big-score { font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 64px; margin: 8px 0 0; }

/* Spinner — Bauhaus circle */
.spinner {
  width: 60px; height: 60px;
  border: 8px solid var(--black);
  border-top-color: var(--red);
  border-right-color: var(--blue);
  border-bottom-color: var(--yellow);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  margin: 16px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Tabs */
.tabs { display: flex; gap: 0; margin-bottom: 16px; border-bottom: var(--rule-w-thick) solid var(--black); }
.tab {
  background: transparent;
  border: 0;
  padding: 10px 18px 14px;
  font-family: 'Archivo Black', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: -6px;
  cursor: pointer;
  color: var(--muted);
}
.tab:hover { background: var(--yellow); color: var(--black); }
.tab.active { color: var(--black); border-bottom: 6px solid var(--red); }

.auth-form { display: grid; gap: 10px; margin-top: 16px; }

/* Edge decorations on dashboard / editor */
.deco-row {
  height: 12px;
  display: flex;
  margin-top: 32px;
}
.deco-row > div { flex: 1; }
.deco-row .d-red    { background: var(--red); }
.deco-row .d-yellow { background: var(--yellow); }
.deco-row .d-blue   { background: var(--blue); }
.deco-row .d-black  { background: var(--black); }

/* ============ Modal (native <dialog>) ============ */
dialog.modal {
  border: var(--rule-w-thick) solid var(--black);
  padding: 0;
  background: var(--white);
  color: var(--black);
  max-width: 520px;
  width: calc(100% - 32px);
  box-shadow: 8px 8px 0 var(--black);
}
dialog.modal::backdrop {
  background: rgba(0,0,0,0.55);
}
.modal-body { padding: 24px; display: grid; gap: 18px; }
.modal-body h2 { font-family: 'Archivo Black', sans-serif; text-transform: uppercase; font-size: 24px; margin: 0; letter-spacing: -0.02em; }
.modal-body label { display: grid; gap: 6px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; }
.modal-body label input[type=text] {
  font-size: 18px;
  padding: 12px 14px;
  border: var(--rule-w) solid var(--black);
  background: var(--white);
  font-weight: 700;
}
.modal-divider { border: 0; border-top: var(--rule-w) dashed var(--black); margin: 4px 0; opacity: 0.5; }
.modal-import { display: grid; gap: 10px; }
.modal-import input[type=file] {
  font-family: inherit;
  font-size: 14px;
  padding: 10px;
  border: var(--rule-w) solid var(--black);
  background: var(--yellow);
  width: 100%;
}
.modal-import input[type=file]::file-selector-button {
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  border: var(--rule-w) solid var(--black);
  background: var(--white);
  padding: 6px 12px;
  margin-right: 12px;
  cursor: pointer;
}
.template-row { display: flex; gap: 8px; flex-wrap: wrap; }
.template-row .btn { font-size: 12px; padding: 6px 10px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }
.modal-err { color: var(--red); font-weight: 700; font-size: 14px; min-height: 1.2em; }

/* ============ Editor — correct-answer emphasis + sec suffix ============ */
.q-time-wrap {
  flex: 0 0 auto;
  display: flex; align-items: stretch;
  border: var(--rule-w) solid var(--black);
  background: var(--white);
}
.q-time-wrap .q-time {
  width: 70px;
  border: 0;
  background: transparent;
  padding: 8px 4px;
}
.q-time-wrap .q-time-unit {
  align-self: center;
  padding: 0 10px 0 4px;
  font-family: 'Archivo Black', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-left: 1px dashed currentColor;
}
.q-option { position: relative; transition: outline 0.12s; }
.q-option:has(input[type=radio]:checked) {
  outline: 6px solid var(--black);
  outline-offset: -6px;
  box-shadow: inset 0 0 0 3px var(--white);
}
.q-option:has(input[type=radio]:checked)::after {
  content: '✓ CORRECT';
  position: absolute;
  top: 6px; right: 10px;
  background: var(--black);
  color: var(--yellow);
  padding: 3px 8px;
  font-family: 'Archivo Black', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  pointer-events: none;
}

/* ============ Player — full-size answer buttons ============ */
.player.player { /* increase specificity */ }
body.player .stage {
  max-width: 100%;
  padding: 0;
}
body.player .player-card.with-options {
  border: 0;
  padding: 12px;
  min-height: 100dvh;
  align-content: start;
  gap: 12px;
}
body.player .player-card.with-options .player-options {
  flex: 1;
  border: 0;
  gap: 8px;
  align-content: stretch;
  min-height: calc(100dvh - 200px);
}
body.player .player-card.with-options .player-options .opt-tile {
  min-height: 0;
  height: 100%;
  font-size: clamp(22px, 5.5vw, 32px);
  padding: 24px;
  border: var(--rule-w-thick) solid var(--black);
}
body.player .player-card.with-options .player-options .opt-tile .opt-letter {
  font-size: clamp(32px, 8vw, 56px);
  margin-right: 14px;
}

/* ============ Host disconnect screens ============ */
.host-disconnect {
  display: grid;
  gap: 18px;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}
.host-disconnect.warn h2 { color: var(--muted); }
.host-disconnect.bad h2 { color: var(--red); }
