/* ---------- themes ---------- */
:root {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --radius: 14px;
  --a0: #e21b3c; --a1: #1368ce; --a2: #c98a00; --a3: #26890c; /* answer colours, paired with shapes for colour-blind players */
  --ok: #2bb673; --bad: #e5484d;
  --shadow: 0 6px 24px rgba(0, 0, 0, .12);
}
:root, [data-theme=light] {
  --bg: #f3f4fa; --bg-grad: #f3f4fa; --card: #fff; --card-2: #f7f7fc; --fg: #1d1d2b; --muted: #6b6b80;
  --accent: #5b3cc4; --accent-fg: #fff; --border: #e1e1ec; --input-bg: #fff; --input-fg: #1d1d2b;
}
[data-theme=dark] {
  --bg: #13131b; --bg-grad: #13131b; --card: #1e1e2a; --card-2: #262636; --fg: #ececf5; --muted: #a0a0b8;
  --accent: #9b82ff; --accent-fg: #14102a; --border: #33334a; --input-bg: #2a2a3a; --input-fg: #ececf5;
  --shadow: 0 6px 24px rgba(0, 0, 0, .4);
}
[data-theme=classic], [data-theme=midnight], [data-theme=ocean], [data-theme=sunset], [data-theme=forest] {
  --card: rgba(255, 255, 255, .13); --card-2: rgba(255, 255, 255, .08); --fg: #fff; --muted: rgba(255, 255, 255, .75);
  --border: rgba(255, 255, 255, .22); --input-bg: #fff; --input-fg: #1d1d2b; --accent-fg: #1d1d2b;
}
[data-theme=classic]  { --bg: #46178f; --bg-grad: linear-gradient(135deg, #3a0f7d, #7b2ff7); --accent: #ffd60a; }
[data-theme=midnight] { --bg: #0f2027; --bg-grad: linear-gradient(135deg, #0f2027, #203a43 50%, #2c5364); --accent: #4fd1c5; }
[data-theme=ocean]    { --bg: #0077b6; --bg-grad: linear-gradient(135deg, #023e8a, #0096c7 60%, #48cae4); --accent: #ffd166; }
[data-theme=sunset]   { --bg: #dd2476; --bg-grad: linear-gradient(135deg, #b0124f, #ff512f); --accent: #ffe66d; }
[data-theme=forest]   { --bg: #134e5e; --bg-grad: linear-gradient(135deg, #0b3d2e, #2d6a4f 55%, #74c69d); --accent: #ffd60a; }
[data-theme=contrast] {
  --bg: #000; --bg-grad: #000; --card: #000; --card-2: #111; --fg: #fff; --muted: #ddd; --border: #fff;
  --accent: #ffff00; --accent-fg: #000; --input-bg: #fff; --input-fg: #000;
  --a0: #ff4040; --a1: #3d8bff; --a2: #ffd000; --a3: #00d26a;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; font-family: var(--font); line-height: 1.45;
  color: var(--fg); background: var(--bg); background-image: var(--bg-grad); background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { max-width: 1100px; margin: 0 auto; padding: 1.25rem 16px 4rem; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .55rem 1rem;
  border-radius: 10px; border: 1px solid var(--border); background: var(--card-2); color: var(--fg);
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .08s, filter .15s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--accent); color: var(--accent-fg); border-color: transparent; }
.btn.danger { background: var(--bad); color: #fff; border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 34px; padding: .3rem .7rem; font-size: .875rem; }
.btn.lg { min-height: 56px; padding: .8rem 1.6rem; font-size: 1.2rem; }
.icon-btn { min-width: 44px; padding: .5rem; }

label { font-weight: 600; font-size: .9rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
input, select, textarea {
  font: inherit; color: var(--input-fg); background: var(--input-bg); border: 1px solid var(--border);
  border-radius: 10px; padding: .6rem .75rem; min-height: 44px; width: 100%;
}
textarea { resize: vertical; min-height: 90px; }
input[type=checkbox] { width: 22px; height: 22px; min-height: 0; accent-color: var(--accent); }
.badge { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--card-2); border: 1px solid var(--border); }
.badge.warn { background: #ffb02033; border-color: #ffb020; }
.badge.ok { background: #2bb67333; border-color: var(--ok); }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .6rem 16px; background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.brand { font-weight: 800; font-size: 1.15rem; text-decoration: none; display: flex; align-items: center; gap: .4rem; }
.topbar nav { display: flex; gap: .25rem; }
.topbar nav a { text-decoration: none; padding: .4rem .7rem; border-radius: 8px; font-weight: 600; }
.topbar nav a[aria-current] { background: var(--card-2); }
.topbar select { width: auto; min-height: 36px; padding: .3rem .5rem; }
.corner { position: fixed; top: 12px; right: 12px; z-index: 20; display: flex; gap: .4rem; }

/* ---------- toast + dialog ---------- */
#toasts { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: .5rem; width: min(92vw, 420px); }
.toast { padding: .75rem 1rem; border-radius: 10px; background: #222; color: #fff; box-shadow: var(--shadow); animation: pop .2s ease-out; }
.toast.error { background: var(--bad); }
.toast.success { background: var(--ok); }
dialog { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); color: var(--fg); padding: 1.5rem; width: min(92vw, 440px); box-shadow: var(--shadow); }
[data-theme=classic] dialog, [data-theme=midnight] dialog, [data-theme=ocean] dialog, [data-theme=sunset] dialog, [data-theme=forest] dialog { background: #2a1f4a; }
dialog::backdrop { background: rgba(0, 0, 0, .5); }
.copy-box { font-family: ui-monospace, Consolas, monospace; font-size: 1.2rem; padding: .6rem; background: var(--card-2); border-radius: 8px; user-select: all; word-break: break-all; }

/* ---------- landing / auth ---------- */
.hero { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
.hero .card { width: min(100%, 420px); text-align: center; }
.logo { font-size: 3rem; line-height: 1; }
.pin-input { font-size: 1.8rem; text-align: center; letter-spacing: .3em; font-weight: 800; }

/* ---------- dashboard ---------- */
.quiz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.quiz-card { display: flex; flex-direction: column; gap: .6rem; padding: 0; overflow: hidden; }
.quiz-card .swatch { height: 70px; background: var(--bg-grad); display: grid; place-items: center; font-size: 2rem; }
.quiz-card .body { padding: 0 1rem 1rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.quiz-card h3 { margin: 0; word-break: break-word; }
.empty { text-align: center; padding: 3rem 1rem; }

/* ---------- editor ---------- */
.editor { display: grid; grid-template-columns: 260px 1fr; gap: 1rem; align-items: start; }
.q-list { display: flex; flex-direction: column; gap: .4rem; max-height: calc(100vh - 140px); overflow: auto; position: sticky; top: 76px; }
.q-item { display: flex; gap: .5rem; align-items: center; text-align: left; width: 100%; padding: .55rem .7rem; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--fg); font: inherit; cursor: pointer; }
.q-item[aria-current=true] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.q-item .num { font-weight: 800; min-width: 1.6em; }
.q-item .txt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; }
.opt-row { display: grid; grid-template-columns: 44px 1fr auto auto auto; gap: .5rem; align-items: center; }
.opt-row .shape { height: 44px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 1.2rem; }
.correct-toggle { display: flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .85rem; cursor: pointer; }
.media-tabs { display: flex; gap: .3rem; }
.media-tabs .btn[aria-pressed=true] { background: var(--accent); color: var(--accent-fg); }
.media-preview { max-height: 240px; border-radius: 10px; display: block; }
.problems { margin: 0; padding-left: 1.2rem; }
.save-state { font-size: .85rem; }
@media (max-width: 760px) {
  .editor { grid-template-columns: 1fr; }
  .q-list { position: static; max-height: 220px; }
  .opt-row { grid-template-columns: 36px 1fr auto; }
  .opt-row .remove { grid-column: 3; }
}

/* ---------- admin ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
td select { width: auto; min-height: 36px; padding: .25rem .4rem; }

/* ---------- history ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.stat { padding: 1rem; }
.stat .big { font-size: 1.4rem; font-weight: 800; word-break: break-word; }
.stat .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row { display: grid; grid-template-columns: 1.5em 1fr 2.5em; gap: .5rem; align-items: center; }
.bar { position: relative; height: 30px; border-radius: 8px; background: var(--card-2); overflow: hidden; }
.bar > span { position: absolute; inset: 0 auto 0 0; opacity: .85; }
.bar > label { position: relative; padding: 0 .6rem; line-height: 30px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* ---------- answer tiles (host + player) ---------- */
.a0 { background: var(--a0); } .a1 { background: var(--a1); } .a2 { background: var(--a2); } .a3 { background: var(--a3); }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.answer {
  position: relative; display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; border-radius: var(--radius);
  color: #fff; border: 0; font: inherit; font-weight: 700; text-align: left; box-shadow: 0 5px 0 rgba(0, 0, 0, .25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35); word-break: break-word;
}
.answer .shape { font-size: 1.6em; line-height: 1; flex: none; }
.answer .count { margin-left: auto; font-size: 1.1em; background: rgba(0, 0, 0, .25); border-radius: 999px; padding: .1em .6em; }
.answer.dim { opacity: .3; }
.answer.right::after { content: "✓"; margin-left: auto; font-size: 1.5em; }
.answer .count + .tick { margin-left: .5rem; }

/* ---------- big screen ---------- */
.screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: 2vh 3vw; gap: 2vh; font-size: clamp(16px, 1.6vw, 34px); }
.screen-top { display: flex; align-items: center; gap: 1rem; font-weight: 700; }
.screen-main { flex: 1; display: flex; flex-direction: column; gap: 2vh; min-height: 0; }
.host-controls { display: flex; gap: .6rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; font-size: 16px; }
.q-text { font-size: 2.2em; font-weight: 800; text-align: center; background: var(--card); border-radius: var(--radius); padding: .5em .8em; }
.q-media { flex: 1; min-height: 0; display: flex; justify-content: center; align-items: center; }
.q-media img { max-height: 46vh; border-radius: var(--radius); object-fit: contain; }
.video-frame { position: relative; width: min(100%, 82vh); aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-frame iframe, .q-media .video-frame img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; object-fit: cover; }
.video-shield { position: absolute; inset: 0; } /* swallows hover so YouTube's title bar stays hidden */
.ready-count { font-size: 2.4em; color: var(--accent); animation: pop .4s ease-out; }
.screen .answers .answer { font-size: 1.4em; min-height: 12vh; }
.timer { --p: 1; width: 4.2em; height: 4.2em; border-radius: 50%; display: grid; place-items: center; font-size: 1.6em; font-weight: 800;
  background: conic-gradient(var(--accent) calc(var(--p) * 360deg), var(--card) 0); position: relative; flex: none; }
.timer::before { content: ""; position: absolute; inset: .35em; border-radius: 50%; background: var(--bg); }
.timer span { position: relative; }
.answered { text-align: center; font-weight: 700; }
.answered b { display: block; font-size: 2.2em; }
.mid-row { display: flex; align-items: center; gap: 2vw; flex: 1; min-height: 0; }
.mid-row .q-media { flex: 1; }

.lobby { display: grid; grid-template-columns: auto 1fr; gap: 3vw; align-items: start; }
.join-box { background: #fff; color: #111; border-radius: var(--radius); padding: 1.2em; text-align: center; box-shadow: var(--shadow); }
.join-box img { width: min(30vh, 340px); height: auto; display: block; margin: 0 auto .4em; }
.join-box .pin { font-size: 2.6em; font-weight: 900; letter-spacing: .12em; }
.players { display: flex; flex-wrap: wrap; gap: .6rem; align-content: flex-start; }
.player-chip { background: var(--card); border: 1px solid var(--border); color: var(--fg); padding: .4em .9em; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; animation: pop .3s ease-out; }
.player-chip:hover { text-decoration: line-through; }
.player-chip.offline { opacity: .45; }

.board { display: flex; flex-direction: column; gap: .5em; width: min(100%, 900px); margin: 0 auto; }
.board-row { display: grid; grid-template-columns: 2.2em 1fr auto auto; gap: 1em; align-items: center; background: var(--card); border-radius: 12px; padding: .5em 1em; font-weight: 700; animation: slide .4s ease-out both; }
.board-row .rank { font-size: 1.3em; text-align: center; }
.board-row .score { font-size: 1.2em; font-variant-numeric: tabular-nums; }
.move { font-size: .85em; min-width: 3.5em; text-align: right; }
.move.up { color: #6ee7a8; } .move.down { color: #ff9b9b; }
[data-theme=light] .move.up { color: #138a4e; } [data-theme=light] .move.down { color: #c52a2f; }
.facts { display: flex; flex-wrap: wrap; gap: .6em; justify-content: center; }
.fact { background: var(--accent); color: var(--accent-fg); border-radius: 999px; padding: .35em 1em; font-weight: 700; animation: pop .4s ease-out both; }

.podium { display: flex; align-items: flex-end; justify-content: center; gap: 1.5vw; flex: 1; }
.step { width: min(26vw, 320px); text-align: center; opacity: 0; animation: rise .8s ease-out forwards; }
.step .name { font-size: 1.5em; font-weight: 800; word-break: break-word; }
.step .block { border-radius: 14px 14px 0 0; background: var(--card); border: 1px solid var(--border); display: grid; place-items: center; font-size: 3em; font-weight: 900; }
.step.p1 .block { height: 40vh; background: linear-gradient(#ffd700, #c9a227); color: #3a2c00; }
.step.p2 .block { height: 30vh; background: linear-gradient(#e0e0e0, #a8a8a8); color: #333; }
.step.p3 .block { height: 22vh; background: linear-gradient(#e2a46b, #a86a32); color: #3b1f05; }
.step.p3 { animation-delay: .5s; } .step.p2 { animation-delay: 2s; } .step.p1 { animation-delay: 3.5s; }
.big-msg { flex: 1; display: grid; place-items: center; text-align: center; font-size: 2.4em; font-weight: 800; }
.progress { height: 6px; border-radius: 3px; background: var(--card); overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); transform-origin: left; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; }

@media (max-width: 800px) {
  .lobby { grid-template-columns: 1fr; }
  .screen .answers { grid-template-columns: 1fr; }
}

/* ---------- player (phone) ---------- */
.phone { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: 12px; gap: 12px; }
.phone-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; gap: .5rem; }
.phone-main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.phone .answers { flex: 1; gap: 10px; grid-auto-rows: 1fr; }
.phone .answer { font-size: 1.15rem; min-height: 90px; flex-direction: column; justify-content: center; text-align: center; gap: .3rem; cursor: pointer; }
.phone .answer[aria-pressed=true] { outline: 5px solid #fff; outline-offset: -5px; }
.phone .answer:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.phone-q { font-weight: 700; text-align: center; }
.status-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem 1.2rem; text-align: center; }
.status-card .emoji { font-size: 4rem; line-height: 1; }
.status-card h2 { font-size: 1.8rem; margin: .4rem 0; }
.result-ok { background: var(--ok); color: #fff; border: 0; }
.result-bad { background: var(--bad); color: #fff; border: 0; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 5px solid var(--card); border-top-color: var(--accent); animation: spin 1s linear infinite; margin: 1rem auto; }
@media (max-width: 360px) { .phone .answers { grid-template-columns: 1fr; } }

/* ---------- motion ---------- */
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes slide { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition: none !important; }
}

/* ---------- question types, teams, approval, preview (v3) ---------- */
.type-tabs { flex-wrap: wrap; }
.opt-img { display: inline-flex; align-items: center; gap: .2rem; }
.opt-img img { height: 36px; width: 48px; object-fit: cover; border-radius: 6px; }
.q-item.drop { outline: 2px dashed var(--accent); }
.q-item[draggable=true] { cursor: grab; }
dialog.wide { width: min(92vw, 640px); }
.bank-list { max-height: 50vh; overflow: auto; }
.section-title { margin: 1rem 0 .2rem; font-size: 1.2rem; }
hr { border: 0; border-top: 1px solid var(--border); width: 100%; }

.double-badge { display: inline-block; background: linear-gradient(90deg, #ffd60a, #ff9f1c); color: #2a1a00; font-weight: 900; border-radius: 999px; padding: .15em .8em; margin: 0 .4em; font-size: .7em; vertical-align: middle; animation: pop .4s ease-out; }
.type-card { background: var(--card); border-radius: var(--radius); padding: .8em 1.2em; text-align: center; font-size: 1.6em; font-weight: 800; }
.slider-scale { display: flex; align-items: center; gap: 1em; }
.scale-line { flex: 1; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--a1), var(--a3), var(--a2), var(--a0)); }
.answer.has-img { flex-direction: column; justify-content: center; text-align: center; gap: .3em; }
.answer.has-img .shape { position: absolute; top: .4em; left: .5em; font-size: 1em; }
.opt-image { max-height: 16vh; max-width: 100%; border-radius: 10px; object-fit: contain; background: rgba(255,255,255,.15); }
.phone .opt-image { max-height: 90px; }
.answers.order .answer { min-height: 9vh; }
.guess { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: .3em .9em; font-weight: 700; }
.guess.ok { background: var(--ok); color: #fff; border-color: transparent; }

.team-board { display: flex; flex-direction: column; gap: .4em; width: min(100%, 900px); margin: 0 auto; }
.team-row { display: grid; grid-template-columns: 9em 1fr 4em; gap: 1em; align-items: center; font-weight: 800; animation: slide .4s ease-out both; }
.team-row .bar { height: 1.4em; }
.team-row .score { text-align: right; }
.team-dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; margin-right: .4em; vertical-align: middle; }
.team-winner { text-align: center; color: #fff; font-size: 1.6em; font-weight: 900; border-radius: var(--radius); padding: .3em; animation: pop .6s 4s both; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.team-tag { color: #fff; border-radius: 999px; padding: .1em .7em; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.player-chip.team-0 { border: 3px solid var(--a0); } .player-chip.team-1 { border: 3px solid var(--a1); }
.player-chip.team-2 { border: 3px solid var(--a2); } .player-chip.team-3 { border: 3px solid var(--a3); }

.pending-box { position: fixed; left: 16px; bottom: 16px; z-index: 30; background: var(--card); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem; display: flex; flex-direction: column; gap: .4rem; max-height: 50vh; overflow: auto; min-width: 240px; font-size: 16px; box-shadow: var(--shadow); }
[data-theme=classic] .pending-box, [data-theme=midnight] .pending-box, [data-theme=ocean] .pending-box, [data-theme=sunset] .pending-box, [data-theme=forest] .pending-box { background: rgba(20, 10, 40, .85); }
.phone-preview { position: fixed; right: 16px; bottom: 90px; z-index: 30; display: flex; flex-direction: column; gap: .3rem; font-size: 14px; }
.phone-preview iframe { width: 300px; height: 560px; border: 6px solid #111; border-radius: 28px; background: #000; box-shadow: var(--shadow); }
@media (max-width: 1000px) { .phone-preview iframe { width: 220px; height: 420px; } }

.avatar-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .3rem; }
.avatar-btn { font-size: 1.5rem; padding: .25rem; border-radius: 10px; border: 2px solid transparent; background: var(--card-2); cursor: pointer; min-height: 44px; }
.avatar-btn[aria-checked=true] { border-color: var(--accent); background: var(--card); transform: scale(1.1); }
.text-answer { font-size: 1.4rem; text-align: center; }
.slider-value { display: block; font-size: 2.6rem; font-weight: 900; }
.slider-input { width: 100%; height: 44px; padding: 0; background: transparent; border: 0; accent-color: var(--accent); }
.phone-media { max-height: 22vh; border-radius: 10px; display: block; margin: .4rem auto 0; }
.result-close { background: var(--a2); color: #fff; border: 0; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.mini-stat { background: var(--card-2); border-radius: 10px; padding: .5rem .3rem; }
.mini-stat .big { font-size: 1.2rem; font-weight: 800; }
.step .avatar { font-size: 2.4em; line-height: 1.1; }
.warn-row td { color: var(--bad); }
#musicbtn[aria-pressed=false] { opacity: .45; }
.has-preview .screen { padding-right: 340px; } /* keep the test-run phone from covering the answers */
@media (max-width: 1000px) { .has-preview .screen { padding-right: 250px; } }
