:root {
  --bg: #16131f;
  --surface: #221d31;
  --surface-2: #2e2744;
  --text: #f4f1fb;
  --muted: #a89fc2;
  --accent: #ffcc33;
  --accent-ink: #1d1600;
  --good: #4ade80;
  --bad: #f87171;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 17px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1, h2 { margin: 0 0 0.4em; line-height: 1.1; }
.muted { color: var(--muted); }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; min-height: 50vh; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-size: 0.8em; margin: 0; }
.huge { font-size: clamp(4rem, 18vw, 12rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.error { color: var(--bad); margin: 0; }

button { font: inherit; color: inherit; cursor: pointer; }
button.primary {
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: var(--radius);
  padding: 1rem 1.25rem; font-weight: 700; font-size: 1.15rem; min-height: 56px; width: 100%;
}
button.link { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 0.5rem; }
input, select {
  font: inherit; font-size: 1.2rem; width: 100%; padding: 0.8rem 1rem; min-height: 52px;
  background: var(--surface); color: var(--text); border: 2px solid var(--surface-2); border-radius: var(--radius);
}
input:focus, select:focus { outline: none; border-color: var(--accent); }

.status, .notice, .toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 10;
  padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.9rem; font-weight: 600;
}
.status { top: 0.75rem; background: var(--bad); color: #fff; }
.notice { bottom: 0.75rem; background: var(--surface-2); color: var(--muted); }
.toast { bottom: 1.5rem; background: var(--text); color: var(--bg); }
[hidden] { display: none !important; }

/* ------------------------------------------------ controller (phone) */

body.controller {
  touch-action: manipulation; /* no double-tap zoom */
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
body.controller #app {
  max-width: 480px; margin: 0 auto; min-height: 100dvh;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 1rem;
}
.bar { display: flex; justify-content: space-between; align-items: baseline; }
.view { flex: 1; display: flex; flex-direction: column; }
.view > * { flex: 1; }
.footer { text-align: center; }

form.join { display: flex; flex-direction: column; gap: 1rem; margin-top: 10vh; }
form.join label { display: flex; flex-direction: column; gap: 0.35rem; color: var(--muted); font-size: 0.9rem; }
form.join input[name="room"] { text-transform: uppercase; letter-spacing: 0.3em; font-weight: 700; }

.lobby { display: flex; flex-direction: column; gap: 0.75rem; }
.players { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-direction: column; gap: 0.4rem; }
.players li { display: flex; justify-content: space-between; align-items: center; background: var(--surface); border-radius: 10px; padding: 0.4rem 0.9rem; min-height: 44px; }
.players li.offline, .player-grid li.offline { opacity: 0.45; }

.tap-pad {
  flex: 1; width: 100%; min-height: 60vh; border: 0; border-radius: 28px;
  background: var(--accent); color: var(--accent-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 7rem; font-weight: 900; font-variant-numeric: tabular-nums;
}
.tap-pad small { font-size: 1.5rem; letter-spacing: 0.2em; }
.tap-pad:active { transform: scale(0.98); filter: brightness(1.1); }

/* ------------------------------------------------ screen (TV) */

/* Scale with the smaller of width/height so any laptop or TV aspect ratio fits without scrolling. */
body.screen { font-size: clamp(12px, min(1.6vw, 2.8vh), 40px); overflow: hidden; }
body.screen #app { height: 100vh; padding: 3vh 4vw; display: flex; flex-direction: column; }
.screen-bar { font-size: 0.9em; color: var(--muted); gap: 1rem; justify-content: flex-end; }
.screen-bar .code { color: var(--accent); letter-spacing: 0.15em; }
.fullscreen-btn {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 5; font-size: 14px;
  background: var(--surface); border: 1px solid var(--surface-2); border-radius: 999px; padding: 0.4rem 0.9rem; color: var(--muted);
}

.lobby-screen { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 4vw; align-items: center; height: 100%; }
.join-panel { text-align: center; }
.join-panel p { margin: 0.3em 0; }
.qr { background: #fff; border-radius: var(--radius); padding: 0.5rem; width: min(100%, 45vh); margin: 0 auto 1rem; }
.qr svg { display: block; width: 100%; height: auto; }
.code-big { font-size: 4em; font-weight: 900; letter-spacing: 0.15em; color: var(--accent); line-height: 1; }
.player-grid { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5em, 1fr)); gap: 0.5em; }
.player-grid li { background: var(--surface); border-radius: var(--radius); padding: 0.55em 0.8em; font-weight: 700; font-size: 1.05em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-grid li.empty { background: none; color: var(--muted); font-weight: 400; }
.vip { color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.chip { background: var(--surface); border-radius: 999px; padding: 0.3em 0.9em; }
.pulse { font-size: 5em; color: var(--accent); animation: pulse 0.5s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(1.08); } }

.bars { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-direction: column; gap: 0.6rem; }
.bars li { display: grid; grid-template-columns: 8em 1fr 3em; align-items: center; gap: 1rem; font-size: 1.3em; }
.bar-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-fill { height: 1.2em; width: var(--w); min-width: 4px; background: var(--accent); border-radius: 6px; transition: width 0.6s ease; }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
  .bar-fill { transition: none; }
}

/* ------------------------------------------------ Kya Clue Hai! */

:root { --saffron: #ff9933; --green: #22c55e; }
.stack { display: flex; flex-direction: column; gap: 0.75rem; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.big { font-size: 1.3em; }
.headline { font-size: 3.5em; }
.cat-badge { display: inline-block; background: var(--saffron); color: #1f1300; border-radius: 999px; padding: 0.15em 0.7em; font-weight: 800; white-space: nowrap; }
.away-note { color: var(--saffron); font-weight: 700; margin: 0; }
.away-note:empty { display: none; }

/* screen */
.describe-screen { display: flex; flex-direction: column; gap: 1rem; height: 100%; min-height: 0; }
.describe-head { display: flex; justify-content: space-between; align-items: flex-end; }
.describe-head h2 { font-size: 2em; margin: 0; }
.timer { font-size: 3.5em; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--accent); }
.describe-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 3vw; }
.sentences { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5em; overflow: hidden; }
.sentences li { background: var(--surface); border-radius: var(--radius); padding: 0.5em 0.9em; font-size: 1.2em; color: var(--muted); }
.sentences li:first-child { font-size: 2em; font-weight: 800; color: var(--text); background: var(--surface-2); }
.guess-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35em; overflow: hidden; }
.guess-feed li { font-size: 1.1em; padding: 0.3em 0.6em; border-radius: 10px; }
.guess-feed li strong { color: var(--muted); font-weight: 600; }
.guess-feed li.close, .presenter-guesses li.close, .my-guesses li.close { background: color-mix(in srgb, var(--saffron) 25%, transparent); }
.guess-feed li.correct, .presenter-guesses li.correct { background: color-mix(in srgb, var(--green) 30%, transparent); }
.answer { font-size: 5em; color: var(--accent); margin: 0.1em 0 0.3em; text-align: center; }

/* phone */
button.choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; text-align: left;
  background: var(--surface); border: 2px solid var(--surface-2); border-radius: var(--radius); padding: 1rem; min-height: 72px;
}
button.choice span { font-size: 1.4rem; font-weight: 800; }
button.choice small { color: var(--muted); }
button.choice:active { border-color: var(--accent); }
.secret { display: grid; grid-template-columns: 1fr auto; background: var(--surface-2); border-radius: var(--radius); padding: 0.75rem 1rem; }
.secret small { grid-column: 1; color: var(--muted); }
.secret strong { grid-column: 1; font-size: 1.5rem; color: var(--accent); }
.secret .timer-small { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.timer-small { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1.3rem; }
.slots { display: flex; flex-direction: column; gap: 0.5rem; }
.preview { margin: 0; font-size: 1.2rem; font-weight: 700; min-height: 1.7em; }
button.primary:disabled { opacity: 0.4; }
.said, .my-guesses, .presenter-guesses { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.said li { color: var(--muted); font-size: 0.9rem; }
.presenter-guesses li { display: flex; align-items: center; gap: 0.4rem; background: var(--surface); border-radius: 10px; padding: 0.35rem 0.5rem 0.35rem 0.8rem; min-height: 48px; }
.guess-text { flex: 1; overflow-wrap: anywhere; }
button.mini { background: var(--surface-2); border: 0; border-radius: 8px; padding: 0.5rem 0.6rem; font-size: 0.85rem; min-height: 40px; white-space: nowrap; }
button.mini.good { background: color-mix(in srgb, var(--green) 35%, var(--surface-2)); }
h3 { margin: 0.5rem 0 0; font-size: 1rem; color: var(--muted); }
.sentences.phone li { font-size: 1rem; padding: 0.4rem 0.7rem; }
.sentences.phone li:first-child { font-size: 1.2rem; }
.guess-form { display: flex; gap: 0.5rem; }
.guess-form input { flex: 1; min-width: 0; }
.guess-form button.primary { width: auto; }
.my-guesses li { padding: 0.25rem 0.6rem; border-radius: 8px; color: var(--muted); }
.answer-phone { font-size: 2.2rem; color: var(--accent); }
.small-huge { font-size: 4rem; }

/* ------------------------------------------------ public home (phones) */

.home-head h1 { font-size: 2rem; margin-top: 1rem; }
.notice-inline { background: color-mix(in srgb, var(--saffron) 20%, var(--surface)); border-radius: var(--radius); padding: 0.75rem 1rem; margin: 0; }
.game-list { display: flex; flex-direction: column; gap: 0.75rem; }
button.game-card, button.resume {
  display: flex; flex-direction: column; gap: 0.25rem; text-align: left; width: 100%;
  background: var(--surface); border: 2px solid var(--surface-2); border-radius: var(--radius); padding: 1rem;
}
button.game-card:active, button.resume:active { border-color: var(--accent); }
.game-card-title { font-size: 1.3rem; font-weight: 800; }
.game-card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 0.25rem; color: var(--muted); }
button.resume { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); border-color: var(--accent); margin-bottom: 0.5rem; }
button.resume strong { font-size: 1.2rem; color: var(--accent); }
.empty-state { text-align: center; color: var(--muted); padding: 2rem 0; }
.pill { display: inline-block; border-radius: 999px; padding: 0.1em 0.7em; font-size: 0.8rem; font-weight: 700; }
.pill.open { background: color-mix(in srgb, var(--green) 30%, transparent); color: #bbf7d0; }
.pill.live { background: color-mix(in srgb, var(--saffron) 30%, transparent); color: #fed7aa; }
.pill.done { background: var(--surface-2); color: var(--muted); }
button.back { align-self: flex-start; padding-left: 0; }
form.join small { font-size: 0.8rem; }
form.join input[name="pin"] { letter-spacing: 0.6em; font-size: 1.6rem; font-weight: 800; text-align: center; }
details.rules { background: var(--surface); border-radius: var(--radius); padding: 0.75rem 1rem; }
details.rules summary { font-weight: 700; cursor: pointer; }
details.rules ul { padding-left: 1.2rem; margin: 0.5rem 0 0; display: flex; flex-direction: column; gap: 0.4rem; color: var(--muted); }

/* ------------------------------------------------ screen additions */

.game-name { font-size: 2.6em; margin: 0 0 0.3em; }
.rules-screen { color: var(--muted); padding-left: 1.2em; margin: 0.5em 0 0; display: flex; flex-direction: column; gap: 0.2em; font-size: 0.72em; }
.choose-screen { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 3vw; align-items: center; height: 100%; }
.mini-board h3 { margin-bottom: 0.4em; }
.mini-board .bars li { grid-template-columns: 5em 1fr 2.5em; font-size: 0.95em; }
.side-col { display: flex; flex-direction: column; gap: 0.8em; min-height: 0; overflow: hidden; }
.pins-box { background: color-mix(in srgb, var(--saffron) 14%, var(--surface)); border-radius: var(--radius); padding: 0.6em 0.9em; }
.pins-box h3 { margin: 0 0 0.3em; color: var(--saffron); font-size: 1em; }
.pins { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25em; font-size: 1.15em; }
.pins.phone { font-size: 1rem; }
.pins.phone:empty { display: none; }
.level-badge { display: inline-block; border-radius: 999px; padding: 0.15em 0.7em; font-weight: 800; white-space: nowrap; background: var(--surface-2); }
.level-badge.l2 { background: color-mix(in srgb, #f97316 35%, var(--surface-2)); }
.level-badge.l3 { background: color-mix(in srgb, #dc2626 45%, var(--surface-2)); }
.awards { list-style: none; padding: 0; margin: 0.5em 0 0; display: flex; flex-direction: column; gap: 0.2em; font-size: 1.1em; }
button.choice .choice-level { color: var(--text); opacity: 0.85; }
.choice-row { display: flex; gap: 0.5rem; align-items: stretch; }
.choice-row button.choice { flex: 1; min-width: 0; }
button.swap {
  flex: none; width: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  background: var(--surface-2); border: 0; border-radius: var(--radius); font-size: 1.4rem;
}
button.swap small { font-size: 0.75rem; color: var(--muted); }
button.swap:disabled { opacity: 0.35; }
button.choice.picked { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.chip.done { background: color-mix(in srgb, var(--green) 30%, var(--surface)); }
.my-secret { background: var(--surface); border-radius: var(--radius); padding: 0.6rem 0.9rem; margin: 0; color: var(--muted); }
.my-secret strong { color: var(--accent); }
.saved-note { margin: 0; color: var(--green); font-weight: 600; }
.saved-note:empty { display: none; }
button.swap:active:not(:disabled) { background: var(--accent); }
button.choice.l2 { border-color: color-mix(in srgb, #f97316 50%, var(--surface-2)); }
button.choice.l3 { border-color: color-mix(in srgb, #dc2626 60%, var(--surface-2)); }
.presenter-guesses li.pinned, .my-guesses li.pinned { background: color-mix(in srgb, var(--saffron) 25%, var(--surface)); }
.small { font-size: 0.85rem; }

/* ------------------------------------------------ Game Maker (admin) */

body.admin #app { max-width: 1200px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 1rem; }
body.admin form.login { max-width: 420px; margin: 10vh auto 0; }
.admin-head { display: flex; align-items: center; gap: 1rem; justify-content: space-between; }
.admin-head h1 { margin: 0; flex: 1; font-size: 1.6rem; }
.admin-grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr); gap: 1rem; align-items: start; }
.panel { background: var(--surface); border-radius: var(--radius); padding: 1rem 1.25rem; min-width: 0; }
.panel h2 { font-size: 1.2rem; }
.stage label { display: flex; flex-direction: column; gap: 0.3rem; color: var(--muted); font-size: 0.9rem; }
.stage .row { gap: 0.5rem; }
.row.two { align-items: flex-start; }
.row.two > label { flex: 1; min-width: 0; }
.pin-input { letter-spacing: 0.4em; font-weight: 800; }
.admin-games { display: flex; flex-direction: column; gap: 0.75rem; }
.admin-card { display: flex; gap: 1rem; justify-content: space-between; background: var(--bg); border-radius: var(--radius); padding: 0.9rem 1rem; }
.admin-card-main { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.admin-card-title { font-size: 1.2rem; font-weight: 800; color: var(--text); text-decoration: none; }
.admin-card-side { display: flex; flex-direction: column; gap: 0.4rem; align-items: stretch; min-width: 8.5rem; }
.pin-badge { background: var(--surface-2); border-radius: 10px; padding: 0.3rem 0.8rem; text-align: center; font-weight: 900; font-size: 1.3rem; letter-spacing: 0.2em; color: var(--accent); }
.pin-badge small { display: block; font-size: 0.65rem; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }
.btn { display: inline-block; text-align: center; background: var(--surface-2); color: var(--text); border: 0; border-radius: 10px; padding: 0.55rem 0.9rem; font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.primary-btn { background: var(--accent); color: var(--accent-ink); }
.btn.danger { background: color-mix(in srgb, var(--bad) 40%, var(--surface-2)); }
.controls { flex-wrap: wrap; justify-content: flex-start; }
.settings { justify-content: flex-start; flex-wrap: wrap; gap: 1rem; color: var(--muted); }
.settings select, .settings input { width: 7rem; min-height: 40px; padding: 0.3rem 0.6rem; font-size: 1rem; }
.monitor-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1rem; align-items: start; }
.players-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.players-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 0.3rem 0.4rem; border-bottom: 1px solid var(--surface-2); }
.players-table td { padding: 0.35rem 0.4rem; border-bottom: 1px solid var(--surface-2); }
.players-table tr.offline td:first-child { opacity: 0.5; }
.stat { background: var(--bg); border-radius: 999px; padding: 0.2rem 0.7rem; font-size: 0.9rem; }
.stats-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* A 16:9 miniature of the big screen, rendered with the screen's own CSS. */
.screen-preview { aspect-ratio: 16 / 9; background: var(--bg); border-radius: 10px; overflow: hidden; font-size: clamp(6px, 0.8vw, 11px); }
.screen-preview > .view { height: 100%; padding: 3% 4%; display: flex; flex-direction: column; }
.screen-preview .qr { width: 60%; }
.screen-preview .huge { font-size: 6em; }
.screen-preview .center { min-height: 0; height: 100%; }

@media (max-width: 800px) {
  .admin-grid, .monitor-grid { grid-template-columns: 1fr; }
  .admin-card { flex-direction: column; }
  .admin-card-side { flex-direction: row; flex-wrap: wrap; }
}

/* ------------------------------------------------ Andaaz Apna Apna */

.aa-screen { display: flex; flex-direction: column; gap: 0.8em; height: 100%; min-height: 0; }
.aa-question { justify-content: center; text-align: center; align-items: center; }
.aa-q-text { font-size: 2.3em; line-height: 1.2; max-width: 30em; margin: 0.2em 0; }
.aa-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5em; }
.aa-head > div:first-child { flex: none; max-width: 70%; }
.aa-head .eyebrow { white-space: nowrap; }
.aa-q-small { font-size: 1.15em; font-weight: 600; margin: 0.2em 0 0; max-width: 45em; }
.aa-hint { margin: 0; }
.aa-answer { font-size: 3.6em; font-weight: 900; color: var(--accent); line-height: 1.05; }

/* The betting mat: vertical swim lanes, smallest guess on the left. Lanes warm
   up (--heat) the further they are from the middle, as the payout grows. */
.aa-lanes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.5em; flex: 1; min-height: 12em; }
.aa-lane { --lane: color-mix(in srgb, var(--saffron) calc(var(--heat) * 0.35), var(--surface)); background: linear-gradient(var(--lane), var(--surface) 70%); border: 2px solid var(--surface-2); border-radius: var(--radius); padding: 0.6em 0.45em; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.35em; min-width: 0; min-height: 0; overflow: hidden; transition: opacity 0.3s, transform 0.3s; }
.aa-lane.too-high { border-style: dashed; }
.aa-lane.win { border-color: var(--green); background: color-mix(in srgb, var(--green) 22%, var(--surface)); transform: translateY(-4px); box-shadow: 0 10px 30px color-mix(in srgb, var(--green) 30%, transparent); }
.aa-lane.lose { opacity: 0.45; }
.aa-lane-head { display: flex; flex-direction: column; align-items: center; gap: 0.2em; }
.aa-lane-label { font-size: 0.75em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); white-space: nowrap; }
.aa-odds { display: inline-block; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0.15em 0.7em; font-weight: 800; font-size: 0.85em; white-space: nowrap; }
.aa-lane-answer { font-size: 1.35em; line-height: 1.15; overflow-wrap: anywhere; padding: 0.2em 0; border-bottom: 1px solid var(--surface-2); width: 100%; }
.aa-lane.too-high .aa-lane-answer { font-size: 0.95em; }
.aa-lane-authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2em 0.5em; font-size: 0.8em; color: var(--muted); }
.aa-who { display: inline-flex; align-items: center; gap: 0.25em; }
.aa-dot { display: inline-block; width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--c); flex: none; margin-right: 0.3em; vertical-align: -0.05em; }
.aa-who .aa-dot { margin-right: 0; }
.aa-lane-chips { display: flex; flex-direction: column; align-items: stretch; gap: 0.25em; width: 100%; flex: 1; min-height: 0; overflow: hidden; padding-top: 0.2em; }
.aa-chip { background: var(--c); color: #111; border-radius: 999px; padding: 0.15em 0.6em; font-weight: 800; font-size: 0.8em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35), 0 2px 6px rgba(0,0,0,0.35); animation: aa-drop 0.25s ease-out; }
.aa-chip b { margin-left: 0.35em; background: rgba(0,0,0,0.25); color: #fff; border-radius: 999px; padding: 0 0.4em; }
.aa-chip.mine { outline: 2px solid var(--text); outline-offset: 1px; }
@keyframes aa-drop { from { transform: translateY(-6px) scale(0.9); opacity: 0; } }
.aa-lane-flag { font-size: 0.75em; font-weight: 800; color: var(--green); }
.aa-legends { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4em; }
.aa-legend { display: inline-flex; align-items: center; gap: 0.35em; background: var(--surface); border: 2px solid color-mix(in srgb, var(--c) 60%, transparent); border-radius: 999px; padding: 0.2em 0.8em; }
.aa-legend .aa-dot { margin: 0; }
.aa-legend small { color: var(--muted); }
.aa-legend.done { background: color-mix(in srgb, var(--c) 25%, var(--surface)); }
.aa-legend.away { opacity: 0.45; }
.aa-reveal-foot { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.5em; align-items: start; }
.aa-fact { margin: 0; font-size: 1.1em; background: color-mix(in srgb, var(--saffron) 14%, var(--surface)); border-radius: var(--radius); padding: 0.7em 1em; }

/* Game Maker monitor: the same board, full width. */
.aa-admin-title { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }
.aa-admin-title h2 { margin: 0; }
.aa-admin-board { display: flex; flex-direction: column; gap: 0.7rem; font-size: 15px; background: var(--bg); border-radius: 12px; padding: 0.9rem; }
.aa-admin-board .aa-lanes { min-height: 16em; }
.aa-admin-q { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-end; }
.aa-admin-q .eyebrow { margin: 0 0 0.2rem; }
.aa-admin-answer { text-align: right; font-size: 1.8em; font-weight: 900; color: var(--accent); line-height: 1; white-space: nowrap; }
.aa-admin-answer small { display: block; font-size: 0.4em; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.aa-admin-board .awards { margin: 0; }

/* Phone */
.aa-phone-q { font-size: 1.35rem; line-height: 1.3; margin: 0; }
input.aa-input { font-size: 1.8rem; font-weight: 800; text-align: center; min-height: 64px; font-variant-numeric: tabular-nums; }
.aa-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; background: var(--surface); border-radius: 12px; padding: 0.25rem; }
button.aa-tab { background: transparent; color: var(--muted); border: 0; border-radius: 9px; min-height: 40px; font-weight: 700; width: 100%; }
button.aa-tab.on { background: var(--surface-2); color: var(--text); }
.aa-pad-box { display: flex; flex-direction: column; gap: 0.4rem; }
canvas.aa-pad { width: 100%; height: 180px; background: var(--surface); border: 2px dashed var(--surface-2); border-radius: 14px; touch-action: none; display: block; cursor: crosshair; }
.aa-pad-tools { display: flex; align-items: center; gap: 0.4rem; }
.aa-pad-tools .muted { flex: 1; }
.aa-read { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 2.6rem; font-size: 1.1rem; }
.aa-read strong { font-size: 1.6rem; color: var(--accent); font-variant-numeric: tabular-nums; }
button.linkish { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 0; width: auto; min-height: 0; font-size: 0.9rem; }
.aa-bet-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.aa-bet-row { background: linear-gradient(90deg, color-mix(in srgb, var(--saffron) calc(var(--heat) * 0.3), var(--surface)), var(--surface) 60%); border: 2px solid var(--surface-2); border-radius: 14px; padding: 0.55rem 0.7rem; }
.aa-bet-row.on { border-color: var(--accent); }
.aa-bet-row.too-high { border-style: dashed; }
.aa-bet-main { display: flex; align-items: center; gap: 0.6rem; }
.aa-bet-odds { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; flex: none; width: 4.6rem; }
.aa-bet-odds small { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; font-weight: 700; white-space: nowrap; }
.aa-bet-answer { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.aa-bet-answer strong { font-size: 1.1rem; overflow-wrap: anywhere; }
.aa-bet-answer small { color: var(--muted); font-size: 0.8rem; }
.aa-stepper { display: flex; align-items: center; gap: 0.35rem; flex: none; }
.aa-stepper .mini { width: 40px; font-size: 1.2rem; font-weight: 800; }
.aa-tok { min-width: 1.8em; text-align: center; font-weight: 800; }
.aa-lane-chips.row-chips { flex-direction: row; flex-wrap: wrap; gap: 0.25rem; padding-top: 0; }
.aa-lane-chips.row-chips:not(:empty) { margin-top: 0.45rem; }
.aa-lane-chips.row-chips .aa-chip { font-size: 0.75rem; }
.aa-extra { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem; flex-wrap: wrap; }
.aa-extra-n { min-width: 2em; text-align: center; font-variant-numeric: tabular-nums; }
.aa-summary { margin: 0; color: var(--muted); font-size: 0.9rem; text-align: center; }
.aa-result { font-size: 2rem; font-weight: 900; margin: 0.4rem 0; }
.aa-result.up { color: var(--green); }
.aa-result.down { color: var(--bad); }
