/* Quiz Blitz – Layout & Komponenten (nutzt Tokens/Buttons/Panels aus /css/base.css) */
:root { --a0: #ff4d5e; --a1: #3b82ff; --a2: #ffd23f; --a3: #3dff8b; }
html, body { background: var(--bg0); }
body {
  background:
    radial-gradient(900px 600px at 12% 8%, rgba(138, 75, 255, .28), transparent 60%),
    radial-gradient(800px 600px at 92% 90%, rgba(255, 210, 63, .16), transparent 60%),
    radial-gradient(700px 500px at 60% 0%, rgba(25, 227, 255, .14), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  background-attachment: fixed;
}
#app { position: fixed; inset: 0; pointer-events: auto; }
.view { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.view.center { display: flex; align-items: center; justify-content: center; padding: 14px; animation: screen-in .4s var(--ease) both; }
.view.center > .panel { margin: auto; }
.input, .room-code { user-select: text; -webkit-user-select: text; }
.input { font-size: 17px; } /* mind. 16px: iOS zoomt sonst beim Fokus */

/* ---------- Beitritt ---------- */
.join-card { width: min(440px, 100%); display: flex; flex-direction: column; gap: 6px; }
.logo { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: .06em;
  font-size: clamp(34px, 9vw, 52px); line-height: 1; color: #fff; text-shadow: 0 0 24px rgba(255, 210, 63, .5); }
.logo span { background: linear-gradient(90deg, var(--yellow), var(--orange), var(--magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 14px rgba(255, 122, 26, .45)); }
.tagline { margin: 0 0 12px; color: var(--ink-dim); font-size: 14px; letter-spacing: .03em; }
.invite-hint { margin: 0 0 8px; padding: 8px 12px; border-radius: 4px 12px 4px 12px; background: rgba(25, 227, 255, .12); border: 1px solid rgba(25, 227, 255, .35); color: var(--cyan); font-weight: 600; font-size: 14px; }
.join-actions { display: flex; justify-content: center; margin: 14px 0 4px; }
.join-error { margin-top: 8px; color: var(--red); font-weight: 600; font-size: 14px; }
.join-or { display: flex; align-items: center; gap: 10px; margin: 12px 0 10px; color: var(--ink-mute); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.join-or::before, .join-or::after { content: ""; flex: 1; height: 1px; background: var(--glass-line); }
.join-code-row { display: flex; gap: 10px; align-items: center; }
.join-code-row .input.code { flex: 1; min-width: 0; font-size: 26px; height: 54px; }

/* ---------- Lobby ---------- */
.lobby-card { width: min(920px, 100%); }
.lobby-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.lobby-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 3vw, 32px); }
.lobby-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.room-code { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: clamp(44px, 9vw, 72px); letter-spacing: .22em; line-height: 1;
  color: var(--yellow); text-shadow: 0 0 26px rgba(255, 210, 63, .5); margin-bottom: 6px; }
.invite-row { display: flex; gap: 8px; align-items: center; }
.invite-row .input { font-size: 13px; height: 40px; min-width: 0; }
.lobby-players-label { margin-top: 10px; }
.lobby-players { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.lobby-players li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: rgba(5, 8, 30, .5); border: 1px solid var(--glass-line); border-radius: 4px 12px 4px 12px; font-weight: 600; min-width: 0; }
.lobby-players li.me { border-color: rgba(25, 227, 255, .45); }
.lobby-players li .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.crown { color: var(--yellow); filter: drop-shadow(0 0 6px rgba(255, 210, 63, .7)); font-size: 16px; line-height: 1; }
.lobby-note { margin: 4px 0 0; min-height: 18px; color: var(--ink-dim); font-size: 13px; }
#btn-start { align-self: flex-start; margin-top: 6px; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cat { appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 4px 14px 4px 14px;
  border: 1px solid var(--glass-line); background: rgba(5, 8, 30, .55); color: var(--ink-dim); font: 700 14px var(--font-ui); transition: background .2s, color .2s, border-color .2s; }
.cat i { width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--ink-mute); display: grid; place-items: center; font-style: normal; font-size: 11px; line-height: 1; }
.cat.on { color: #fff; border-color: var(--cyan); background: rgba(25, 227, 255, .14); box-shadow: 0 0 16px rgba(25, 227, 255, .25); }
.cat.on i { background: var(--cyan); border-color: var(--cyan); color: #05102a; }
.cat small { color: var(--ink-mute); font-weight: 600; }
.cat[disabled] { opacity: .45; cursor: default; }
.lobby-col .seg { align-self: flex-start; }
.seg-btn { min-height: 40px; }
.seg-btn.on[disabled], .toggle.on[disabled] { opacity: .85; }
.kick { appearance: none; border: 0; background: rgba(255, 77, 94, .18); color: var(--red); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-weight: 800; line-height: 1; flex: none; }
.kick:hover { background: rgba(255, 77, 94, .45); color: #fff; }
.avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 14px var(--font-display);
  color: #07102a; text-transform: uppercase; box-shadow: 0 0 10px rgba(255, 255, 255, .18), inset 0 -3px 6px rgba(0, 0, 0, .25); }

.icon-btn { appearance: none; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, .06); color: var(--ink-dim); width: 40px; height: 40px; border-radius: 4px 12px 4px 12px; cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; padding: 0; }
.icon-btn:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.icon-btn[aria-pressed="true"] { color: var(--red); }

/* ---------- Spiel ---------- */
.game { min-height: 100%; width: min(1080px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 10px; padding: 10px 12px max(12px, env(safe-area-inset-bottom)); }
.bar { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 8px 14px 14px;
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: 6px 22px 6px 22px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.bar-left { min-width: 0; }
.g-round { font: 800 italic 15px var(--font-display); text-transform: uppercase; letter-spacing: .1em; color: var(--cyan); }
.g-cat { color: var(--ink-dim); font-size: 12px; font-weight: 700; letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-score { text-align: right; line-height: 1.05; }
.g-score span { display: block; font: 900 italic 22px var(--font-display); color: var(--yellow); text-shadow: 0 0 14px rgba(255, 210, 63, .45); }
.g-score small { display: block; color: var(--ink-mute); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.bar-right { display: flex; align-items: center; gap: 8px; }
.timer { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(5, 8, 30, .7); border: 2px solid var(--cyan); box-shadow: var(--glow-cyan); font: 800 italic 20px var(--font-display); flex: none; }
.timer.warn { border-color: var(--red); color: var(--red); box-shadow: 0 0 22px rgba(255, 77, 94, .6); animation: pulse .5s ease-in-out infinite alternate; }
.timer.off { opacity: .35; box-shadow: none; }
@keyframes pulse { to { transform: scale(1.1); } }
.timer-bar { position: absolute; left: 14px; right: 14px; bottom: 5px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.timer-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--cyan), var(--yellow)); transform-origin: left; will-change: transform; }
.timer-bar.warn i { background: linear-gradient(90deg, var(--red), var(--orange)); }

.qcard { text-align: center; padding: clamp(12px, 2.4vh, 22px) clamp(14px, 3vw, 28px); }
.q-prompt { color: var(--ink-dim); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; margin-bottom: 6px; }
.q-text { font: 800 clamp(20px, 3.2vw, 32px)/1.2 var(--font-display); overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.q-text:empty { display: none; }
.q-hints { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; text-align: left; }
.q-hints:empty { display: none; }
.q-hints li { display: flex; gap: 10px; align-items: baseline; padding: 8px 12px; border-radius: 4px 12px 4px 12px; background: rgba(5, 8, 30, .55); border: 1px solid var(--glass-line); font-weight: 600; font-size: clamp(15px, 2.2vw, 19px); overflow-wrap: anywhere; }
.q-hints li b { flex: none; font: 800 italic 11px var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); min-width: 74px; }
.q-hints li.new { animation: hint-in .5s var(--ease-bounce) both; border-color: var(--yellow); }
.q-hints li.locked { opacity: .45; font-style: italic; border-style: dashed; }
.q-hints li.locked b { color: var(--ink-mute); }
@keyframes hint-in { from { opacity: 0; transform: translateY(-10px) scale(.97); } to { opacity: 1; transform: none; } }
.q-bonus { margin-top: 10px; display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(255, 210, 63, .14); border: 1px solid rgba(255, 210, 63, .5); color: var(--yellow); font-weight: 800; font-size: 13px; letter-spacing: .04em; }

.answers { flex: 1; display: grid; grid-template-columns: 1fr; grid-auto-rows: minmax(64px, 1fr); gap: 10px; min-height: 0; }
.ans { position: relative; appearance: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 10px 16px; text-align: left; overflow: hidden; isolation: isolate;
  color: #fff; border: 0; border-radius: 6px 20px 6px 20px; font: 800 clamp(16px, 2.4vw, 22px)/1.2 var(--font-ui); background: var(--c);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 55%, #000), 0 12px 26px rgba(0, 0, 0, .35); transition: transform .12s, filter .2s, opacity .3s, box-shadow .12s; touch-action: manipulation; }
.ans:nth-child(1) { --c: #e0364a; } .ans:nth-child(2) { --c: #2f6fe8; } .ans:nth-child(3) { --c: #e0aa12; color: #1c1500; } .ans:nth-child(4) { --c: #1fb85c; }
.ans .shape { flex: none; width: 34px; height: 34px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.ans .shape svg { width: 100%; height: 100%; display: block; fill: currentColor; opacity: .92; }
.ans .txt { flex: 1; min-width: 0; overflow-wrap: anywhere; text-shadow: 0 1px 4px rgba(0, 0, 0, .35); position: relative; z-index: 2; }
.ans:nth-child(3) .txt { text-shadow: none; }
.ans .cnt { flex: none; position: relative; z-index: 2; font: 900 italic 18px var(--font-display); min-width: 24px; text-align: right; }
.ans .fillbar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(0, 0, 0, .28); z-index: 1; transition: width .8s var(--ease); }
.ans .mark { flex: none; position: relative; z-index: 2; font-size: 24px; font-weight: 900; line-height: 1; }
.ans:hover:not([disabled]) { filter: brightness(1.12); transform: translateY(-2px); }
.ans:active:not([disabled]) { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 55%, #000), 0 6px 14px rgba(0, 0, 0, .35); }
.ans:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ans[disabled] { cursor: default; }
.ans.locked:not(.picked) { opacity: .4; filter: grayscale(.5); }
.ans.picked { box-shadow: 0 0 0 4px #fff, 0 0 30px rgba(255, 255, 255, .5), 0 6px 0 color-mix(in srgb, var(--c) 55%, #000); transform: scale(1.01); }
.ans.correct { opacity: 1; filter: none; box-shadow: 0 0 0 4px var(--green), 0 0 34px rgba(61, 255, 139, .7), 0 6px 0 color-mix(in srgb, var(--c) 55%, #000); animation: pop .5s var(--ease-bounce); }
.ans.wrong { opacity: .35; filter: grayscale(.7); }
.ans.wrong.picked { opacity: .75; box-shadow: 0 0 0 4px var(--red), 0 6px 0 color-mix(in srgb, var(--c) 55%, #000); animation: shake .4s; }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.04); } 100% { transform: scale(1); } }
body.revealing .answers { grid-auto-rows: minmax(52px, auto); flex: none; }

.status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-height: 40px; }
.status-text { font-weight: 700; color: var(--ink-dim); font-size: 14px; flex: 1 1 200px; }
.status-text.ok { color: var(--cyan); }
.pstrip { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pstrip li { display: flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: var(--ink-dim); max-width: 140px; }
.pstrip li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pstrip li.done { color: #02260f; background: var(--green); border-color: var(--green); }
.pstrip li.me { box-shadow: 0 0 0 2px rgba(25, 227, 255, .6); }
body.revealing .status { display: none; }

/* ---------- Auflösung ---------- */
.reveal { display: flex; flex-direction: column; gap: 10px; animation: screen-in .4s var(--ease) both; }
.reveal-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.rv-me { font: 900 italic clamp(22px, 4vw, 32px) var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.rv-me.right { color: var(--green); text-shadow: 0 0 22px rgba(61, 255, 139, .5); }
.rv-me.wrong { color: var(--red); } .rv-me.none, .rv-me.late { color: var(--ink-dim); }
.rv-me small { display: block; font: 600 13px var(--font-ui); letter-spacing: .02em; text-transform: none; color: var(--ink-dim); margin-top: 2px; }
.rv-explain { margin: 8px 0; color: var(--ink); line-height: 1.45; overflow-wrap: anywhere; }
.rv-explain:empty { display: none; }
.rv-explain b { color: var(--yellow); }
.rv-chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rv-chips li { display: flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); max-width: 100%; }
.rv-chips li span.n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 110px; }
.rv-chips li.right { border-color: rgba(61, 255, 139, .6); color: var(--green); } .rv-chips li.wrong { border-color: rgba(255, 77, 94, .6); color: var(--red); }
.rv-chips li.none, .rv-chips li.late { color: var(--ink-mute); }

.rank-box { position: relative; }
.rank-row { position: absolute; left: 0; right: 0; height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border-radius: 4px 14px 4px 14px;
  background: rgba(5, 8, 30, .55); border: 1px solid var(--glass-line); transition: transform .9s var(--ease), opacity .4s; }
.rank-row.me { border-color: rgba(25, 227, 255, .6); background: rgba(25, 227, 255, .1); }
.rank-row.gap { opacity: .55; }
.rank-row .rk { flex: none; width: 24px; text-align: center; font: 900 italic 18px var(--font-display); color: var(--ink-mute); }
.rank-row:nth-child(1) .rk.r1 { color: var(--yellow); }
.rank-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.rank-row .dl { flex: none; font: 800 13px var(--font-display); color: var(--green); }
.rank-row .dl.zero { color: var(--ink-mute); }
.rank-row .sc { flex: none; min-width: 58px; text-align: right; font: 800 italic 17px var(--font-display); color: var(--cyan); }
.rank-row .mv { flex: none; width: 16px; font-size: 12px; text-align: center; }
.mv.up { color: var(--green); } .mv.down { color: var(--red); }

.reveal-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 6px; }
.next-bar { flex: 1 1 140px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; order: 2; }
.next-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--yellow), var(--orange)); transform-origin: left; }
.next-note { order: 3; color: var(--ink-dim); font-size: 13px; font-weight: 600; }
#btn-next { order: 1; }

/* ---------- Endwertung ---------- */
#view-end { padding: 14px; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
.end-wrap { min-height: 100%; display: flex; align-items: center; justify-content: center; }
.end-card { width: min(760px, 100%); text-align: center; margin: auto; }
.end-card .screen-heading { margin-bottom: 8px; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; height: clamp(190px, 34vh, 290px); margin: 14px 0 10px; }
.pod { flex: 1; max-width: 190px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; height: 100%; }
.pod .pn { font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .ps { font: 800 italic 18px var(--font-display); color: var(--cyan); margin-bottom: 6px; }
.pod .blk { width: 100%; border-radius: 6px 16px 0 0; display: grid; place-items: start center; padding-top: 8px; font: 900 italic 34px var(--font-display); color: #05102a;
  transform-origin: bottom; animation: rise .9s var(--ease-bounce) both; }
.pod.p1 .blk { height: 62%; background: linear-gradient(180deg, #ffe66b, #f0a500); box-shadow: 0 0 34px rgba(255, 210, 63, .55); animation-delay: .5s; }
.pod.p2 .blk { height: 42%; background: linear-gradient(180deg, #e8eefc, #96a3c8); animation-delay: .25s; }
.pod.p3 .blk { height: 28%; background: linear-gradient(180deg, #ffb27a, #c5682a); animation-delay: 0s; }
.pod .crown { font-size: 30px; filter: drop-shadow(0 0 10px rgba(255, 210, 63, .8)); animation: pop .8s 1.2s var(--ease-bounce) both; }
.pod .info { animation: screen-in .5s var(--ease) both; animation-delay: 1s; }
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.awards { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0 10px; }
.awards span { padding: 4px 12px; border-radius: 999px; background: rgba(255, 210, 63, .12); border: 1px solid rgba(255, 210, 63, .45); color: var(--yellow); font-weight: 700; font-size: 13px; }
.end-me { margin: 4px auto 10px; padding: 10px 14px; max-width: 460px; border-radius: 6px 16px 6px 16px; background: rgba(25, 227, 255, .1); border: 1px solid rgba(25, 227, 255, .45); font-weight: 600; line-height: 1.4; }
.end-me b { color: var(--cyan); }
.end-rest { list-style: none; margin: 0 auto 12px; padding: 0; display: grid; gap: 4px; max-width: 560px; text-align: left; }
.end-rest li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 3px 9px 3px 9px; background: rgba(255, 255, 255, .06); font-weight: 600; }
.end-rest li.me { background: rgba(25, 227, 255, .12); }
.end-rest .rk { width: 22px; text-align: center; color: var(--ink-mute); font: 800 italic 15px var(--font-display); }
.end-rest .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.end-rest .st { color: var(--ink-dim); font-size: 12px; white-space: nowrap; }
.end-rest .sc { color: var(--cyan); font-family: var(--font-display); font-weight: 800; }
.end-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Overlay (Verbindung) ---------- */
.overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 14px; background: rgba(3, 4, 16, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 80; overflow: auto; animation: screen-in .4s var(--ease) both; }
.off-card { width: min(440px, 100%); text-align: center; }
.off-text { color: var(--ink-dim); line-height: 1.45; margin: 10px 0 16px; }
.toasts { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; width: min(92vw, 420px); }
.toast { background: var(--glass-strong); border: 1px solid var(--glass-line); border-radius: 4px 14px 4px 14px; padding: 8px 16px; font-weight: 600; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); animation: screen-in .25s var(--ease) both; text-align: center; }

/* ---------- Responsiv ---------- */
@media (min-width: 640px) {
  .answers { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(110px, 1fr); }
  body.revealing .answers { grid-auto-rows: minmax(76px, auto); }
  .ans { padding: 14px 20px; }
  .ans .shape { width: 42px; height: 42px; }
}
@media (min-width: 960px) {
  .reveal-cols { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); align-items: start; }
}
@media (max-width: 860px) { .lobby-grid { grid-template-columns: 1fr; } #btn-start { align-self: stretch; min-width: 0; } .btn.big { min-width: 0; width: 100%; } }
@media (max-width: 520px) {
  .game { padding: 6px 8px max(10px, env(safe-area-inset-bottom)); gap: 8px; }
  .bar { padding: 6px 10px 13px; gap: 8px; }
  .g-score span { font-size: 19px; }
  .timer { width: 42px; height: 42px; font-size: 17px; }
  .icon-btn { width: 36px; height: 36px; }
  .bar-right { gap: 6px; }
  .q-hints li b { min-width: 0; }
  .q-hints li { flex-direction: column; gap: 2px; }
  .ans .shape { width: 28px; height: 28px; }
  .lobby-players { grid-template-columns: 1fr 1fr; }
}
@media (max-height: 640px) and (max-width: 520px) {
  .q-text { font-size: 18px; }
  .ans { padding: 6px 12px; }
  .answers { grid-auto-rows: minmax(52px, 1fr); gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .rank-row, .ans, .fillbar { transition: none; }
  .ans.correct, .ans.wrong.picked, .timer.warn, .pod .blk, .pod .crown, .q-hints li.new { animation: none; }
}
.btn::after { opacity: 0; transition: transform .6s var(--ease), opacity .15s; }
.btn:hover::after, .btn:focus-visible::after { opacity: 1; }
