/* Tap Trivia — live game screens (host big screen + player phone) */
:root { --lv-bg: #ffffff; --lv-panel: #f5f5f3; --lv-panel2: #ececea; --lv-line: #e6e6e2; --lv-text: #0c0d10; --lv-mute: #5d616b; --lv-red: #f2462e; --lv-red-soft: #fde9e5; --lv-green: #16a35a; --lv-green-soft: #e3f5eb; --lv-dark: #0c0d10; --lv-font: "Inter", "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; --lv-display: "Inter Display", "Inter", "DM Sans", system-ui, sans-serif; }
* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; height: 100%; }
#lv-app { height: 100%; height: 100dvh; overflow: hidden; }
body.lv { font: 16px/1.45 var(--lv-font); -webkit-font-smoothing: antialiased; }
body.lv--host { background: var(--lv-bg); color: var(--lv-text); overflow: hidden; }
body.lv--play { background: var(--lv-bg); color: var(--lv-text); }
.lv-loading { text-align: center; padding: 30vh 20px; color: var(--lv-mute); }
button { font: inherit; color: inherit; cursor: pointer; }
kbd { font: 600 .7em var(--lv-font); padding: 2px 6px; border-radius: 5px; background: rgba(0,0,0,.15); margin-left: 6px; }

/* ================= HOST ================= */
.lvh { container-type: inline-size; height: 100%; min-height: 0; display: grid; grid-template-rows: auto 1fr auto; background: var(--lv-bg); color: var(--lv-text); position: relative; overflow: hidden; }
.lvh-top { display: flex; align-items: center; gap: 1.2cqi; padding: 1.1cqi 2cqi; font-size: max(12px, 1.05cqi); border-bottom: 1px solid var(--lv-line); }
.lvh-brand { display: inline-flex; align-items: center; gap: .5em; font-weight: 800; }
.lvh-brand i { width: 1.4em; height: 1.4em; border-radius: .4em; background: var(--lv-red); display: grid; place-items: center; }
.lvh-brand i::after { content: ""; width: .45em; height: .45em; border-radius: 50%; background: #fff; }
.lvh-title { color: var(--lv-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.lvh-join { white-space: nowrap; color: var(--lv-mute); }
.lvh-join b { color: var(--lv-text); }
.lvh-codechip { background: var(--lv-dark); color: #fff !important; padding: .1em .45em; border-radius: .35em; letter-spacing: .12em; }
.lvh-lobby ~ * .lvh-join, .lvh-stage.lvh-lobby { }
.lvh-count { white-space: nowrap; padding: .25em .7em; border-radius: 99px; background: var(--lv-panel); font-weight: 700; }
.lvh-ico { width: 2.3em; height: 2.3em; border-radius: .6em; border: 1px solid var(--lv-line); background: transparent; display: grid; place-items: center; font-size: 1em; }
.lvh-ico:hover { background: var(--lv-panel); }
.lvh-stage { padding: 2.5cqi 4cqi; display: flex; flex-direction: column; justify-content: center; overflow: hidden; min-height: 0; }
.lvh-fit { width: 100%; flex: none; }
.lvh-bottom { display: flex; align-items: center; gap: 1.2cqi; padding: 1.2cqi 2cqi; border-top: 1px solid var(--lv-line); font-size: max(12px, 1.05cqi); flex-wrap: wrap; }
.lvh-spacer { flex: 1; }
.lvh-primary { border: 0; border-radius: .6em; background: var(--lv-dark); color: #fff; font-weight: 700; font-size: max(14px, 1.35cqi); padding: .75em 1.4em; }
.lvh-primary:hover { background: var(--lv-red); }
.lvh-sec { border: 1px solid var(--lv-line); background: transparent; border-radius: .7em; padding: .7em 1.1em; font-weight: 700; text-decoration: none; color: inherit; }
.lvh-sec:hover { background: var(--lv-panel); }
.lvh-toggle { display: inline-flex; align-items: center; gap: .45em; color: var(--lv-mute); cursor: pointer; }
.lvh-toggle input { width: 1.1em; height: 1.1em; accent-color: var(--lv-dark); }
.lvh-answered { font-weight: 800; font-size: max(14px, 1.4cqi); margin-right: 1em; }
.lvh-error { position: absolute; left: 50%; bottom: 7cqi; transform: translateX(-50%); background: var(--lv-red); color: #fff; padding: .6em 1em; border-radius: .6em; font-size: max(12px, 1cqi); }
.lvh-kicker { margin: 0; color: var(--lv-red); font-weight: 600; font-size: max(13px, 1.3cqi); }
.lvh-sub { color: var(--lv-mute); font-size: max(13px, 1.4cqi); margin: .5em 0 0; }

/* lobby */
.lvh-lobby { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4cqi; align-items: center; }
.lvh-joinbox { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "k k" "u u" "c q"; gap: 1.2cqi 2cqi; align-items: end; }
.lvh-joinbox .lvh-kicker { grid-area: k; }
.lvh-url { grid-area: u; margin: 0; font: 700 max(18px, 2.6cqi)/1.1 var(--lv-display); letter-spacing: -.02em; word-break: break-all; }
.lvh-code { grid-area: c; margin: 0; display: flex; gap: .8cqi; }
.lvh-code span { display: grid; place-items: center; width: 7.2cqi; height: 9cqi; border-radius: 1cqi; background: var(--lv-dark); color: #fff; font: 700 5.4cqi/1 var(--lv-display); }
.lvh-qr { grid-area: q; text-align: center; }
.lvh-qr svg { width: 15cqi; height: 15cqi; border-radius: 1cqi; display: block; border: 1px solid var(--lv-line); }
.lvh-qr p { margin: .5em 0 0; color: var(--lv-mute); font-size: max(11px, 1cqi); }
.lvh-teams { align-self: stretch; background: var(--lv-panel); border: 1px solid var(--lv-line); border-radius: 2cqi; padding: 2cqi; overflow: hidden; }
.lvh-chips { list-style: none; margin: 1.4cqi 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .8cqi; }
.lvh-chips li { display: inline-flex; align-items: center; gap: .4em; padding: .45em .55em .45em .9em; border-radius: 99px; background: #fff; border: 1px solid var(--lv-line); font-weight: 600; font-size: max(13px, 1.45cqi); animation: lvh-pop .35s cubic-bezier(.2,1.4,.4,1); }
.lvh-chips button { border: 0; background: var(--lv-panel); width: 1.5em; height: 1.5em; border-radius: 50%; line-height: 1; opacity: .5; }
.lvh-chips button:hover { opacity: 1; background: var(--lv-red); color: #fff; }
@keyframes lvh-pop { from { transform: scale(.6); opacity: 0; } }

/* question */
.lvh-q { max-width: 92cqi; margin: 0 auto; width: 100%; }
.lvh-meta { display: flex; flex-wrap: wrap; gap: .6em; margin: 0 0 1.6cqi; font-size: max(12px, 1.2cqi); font-weight: 700; color: var(--lv-mute); }
.lvh-meta span { padding: .3em .75em; border-radius: 99px; background: var(--lv-panel); }
.lvh-meta span:first-child { color: var(--lv-red); background: var(--lv-red-soft); }
.lvh-meta .lvh-fast { background: var(--lv-dark); color: #fff; }
.lvh-qtext { font: 700 clamp(22px, 4.1cqi, 72px)/1.08 var(--lv-display); margin: 0 0 2.6cqi; letter-spacing: -.03em; text-wrap: balance; }
.lvh-media { max-height: 34vh; max-width: 100%; border-radius: 1.4cqi; display: block; margin: 0 0 2cqi; }
.lvh-audio { width: 100%; margin-bottom: 2cqi; }
.lvh-opts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2cqi; }
.lvh-opts li { position: relative; overflow: hidden; display: flex; align-items: center; gap: 1.3cqi; padding: 1.4cqi 1.8cqi; border-radius: 1.2cqi; background: #fff; border: 1px solid var(--lv-line); font-size: clamp(15px, 2.1cqi, 38px); font-weight: 600; transition: opacity .3s, transform .3s; }
.lvh-opts li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--pct, 0%); background: var(--lv-panel); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.lvh-opts li > * { position: relative; }
.lvh-l { flex: none; display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: .4em; background: var(--lv-panel2); font-size: .8em; }
.lvh-t { flex: 1; }
.lvh-n { font-variant-numeric: tabular-nums; color: var(--lv-mute); }
.lvh-opts li.is-correct { background: var(--lv-green-soft); border-color: var(--lv-green); }
.lvh-opts li.is-correct::before { background: rgba(22,163,90,.14); }
.lvh-opts li.is-correct .lvh-l { background: var(--lv-green); color: #fff; }
.lvh-opts li.is-correct .lvh-n { color: var(--lv-green); font-weight: 700; }
.lvh-opts li.is-wrong { opacity: .55; }
.lvh-opts.is-seq { grid-template-columns: 1fr; }
.lvh-prompt { font-size: clamp(16px, 2.2cqi, 40px); color: var(--lv-mute); margin: 0; }
.lvh-answer { margin: 0; display: inline-block; font: 700 clamp(22px, 4cqi, 70px)/1.1 var(--lv-display); letter-spacing: -.02em; background: var(--lv-green); color: #fff; padding: .25em .5em; border-radius: .3em; }
.lvh-groups { list-style: none; margin: 1.6cqi 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .8cqi; }
.lvh-groups button { display: inline-flex; align-items: center; gap: .6em; border: 1px solid var(--lv-line); background: #fff; border-radius: 99px; padding: .5em .6em .5em .5em; font-weight: 700; font-size: max(13px, 1.45cqi); }
.lvh-groups button span { width: 1.6em; height: 1.6em; border-radius: 50%; display: grid; place-items: center; background: var(--lv-red-soft); color: var(--lv-red); font-size: .85em; }
.lvh-groups button b { background: var(--lv-panel); border-radius: 99px; padding: 0 .55em; font-size: .85em; }
.lvh-groups button.is-correct { background: var(--lv-green-soft); border-color: var(--lv-green); }
.lvh-groups button.is-correct span { background: var(--lv-green); color: #fff; }
.lvh-note { margin: 2cqi 0 0; color: #8a5a00; font-size: max(13px, 1.3cqi); }
.lvh-timer { position: relative; margin-top: 3cqi; height: 1cqi; min-height: 8px; border-radius: 99px; background: var(--lv-panel2); }
.lvh-timer i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--lv-dark); }
.lvh-timer i.is-low { background: var(--lv-red); }
.lvh-timer span { position: absolute; right: 0; bottom: 160%; font: 700 max(16px, 2.4cqi)/1 var(--lv-display); font-variant-numeric: tabular-nums; }

/* leaderboard */
.lvh-board { max-width: 80cqi; width: 100%; margin: 0 auto; }
.lvh-board h1, .lvh-end h1 { font: 700 clamp(26px, 4.5cqi, 80px)/1.05 var(--lv-display); letter-spacing: -.03em; margin: .2em 0 0; }
.lvh-board ol { list-style: none; margin: 2.4cqi 0 0; padding: 0; display: grid; gap: .8cqi; }
.lvh-board li { position: relative; display: grid; grid-template-columns: 4cqi 1fr auto 8cqi; align-items: center; gap: 1.4cqi; padding: 1.1cqi 1.6cqi; border-radius: 1cqi; background: #fff; border: 1px solid var(--lv-line); font-size: clamp(14px, 1.9cqi, 34px); font-weight: 600; overflow: hidden; animation: lvh-slide .5s backwards; }
.lvh-board li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--lv-panel); }
.lvh-board li > * { position: relative; }
.lvh-board li:nth-child(1) { border-color: var(--lv-dark); }
.lvh-board li:nth-child(2) { animation-delay: .06s; } .lvh-board li:nth-child(3) { animation-delay: .12s; } .lvh-board li:nth-child(4) { animation-delay: .18s; } .lvh-board li:nth-child(5) { animation-delay: .24s; }
@keyframes lvh-slide { from { transform: translateX(-30px); opacity: 0; } }
.lvh-rank { color: var(--lv-red); font-family: var(--lv-display); font-weight: 700; }
.lvh-move { font-size: .7em; }
.lvh-move.up { color: var(--lv-green); } .lvh-move.down { color: var(--lv-red); }
.lvh-score { text-align: right; font-variant-numeric: tabular-nums; }

/* end */
.lvh-end { text-align: center; }
.lvh-podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 1.6cqi; max-width: 70cqi; margin: 3cqi auto 0; }
.lvh-pod { display: grid; justify-items: center; gap: .4cqi; }
.lvh-pname { font-weight: 800; font-size: clamp(14px, 2cqi, 36px); }
.lvh-pscore { color: var(--lv-mute); font-size: max(12px, 1.3cqi); }
.lvh-step { width: 100%; display: grid; place-items: center; border-radius: 1cqi 1cqi 0 0; font: 700 clamp(26px, 5cqi, 90px)/1 var(--lv-display); color: var(--lv-text); }
.p1 .lvh-step { height: 22cqi; background: var(--lv-dark); color: #fff; }
.p2 .lvh-step { height: 15cqi; background: var(--lv-panel2); }
.p3 .lvh-step { height: 10cqi; background: var(--lv-red-soft); color: var(--lv-red); }
.lvh-rest { list-style: none; padding: 0; margin: 2.4cqi auto 0; max-width: 60cqi; display: grid; grid-template-columns: 1fr 1fr; gap: .6cqi 2cqi; text-align: left; font-size: max(13px, 1.4cqi); }
.lvh-rest li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--lv-line); padding: .4em 0; }

@container (max-width: 760px) {
	.lvh-lobby { grid-template-columns: 1fr; }
	.lvh-opts { grid-template-columns: 1fr; }
	.lvh-join, .lvh-title { display: none; }
}

/* ================= PLAYER ================= */
.lvp { min-height: 100%; min-height: 100dvh; display: flex; flex-direction: column; background: var(--lv-bg); color: var(--lv-text); padding-bottom: env(safe-area-inset-bottom); }
.lvp-join { width: min(420px, 100%); margin: auto; padding: 32px 22px; }
.lvp-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; margin: 0 0 28px; }
.lvp-brand i { width: 24px; height: 24px; border-radius: 7px; background: var(--lv-red); display: grid; place-items: center; }
.lvp-brand i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.lvp h1 { font: 700 30px/1.1 var(--lv-display); letter-spacing: -.03em; margin: 0 0 6px; }
.lvp-muted { color: var(--lv-mute); margin: 0 0 22px; }
.lvp-join form { display: grid; gap: 8px; }
.lvp-join label { font-size: 14px; font-weight: 700; margin-top: 8px; }
.lvp-code { width: 100%; min-height: 72px; border-radius: 12px; border: 1px solid var(--lv-line); background: #fff; color: var(--lv-text); text-align: center; font: 700 34px/1 var(--lv-display); letter-spacing: .3em; text-transform: uppercase; padding-left: .3em; }
.lvp-code::placeholder { color: #c9c7c0; }
.lvp-input { width: 100%; min-height: 54px; border-radius: 12px; border: 1px solid var(--lv-line); background: #fff; color: var(--lv-text); font-size: 18px; padding: 0 14px; }
.lvp-input:focus, .lvp-code:focus { outline: none; border-color: var(--lv-text); box-shadow: 0 0 0 3px rgba(12,13,16,.08); }
.lvp-big { min-height: 64px; font-size: 22px; font-weight: 700; }
.lvp-btn { width: 100%; min-height: 56px; border: 0; border-radius: 12px; background: var(--lv-dark); color: #fff; font-size: 17px; font-weight: 700; margin-top: 14px; }
.lvp-btn:disabled { opacity: .5; }
.lvp-err { margin: 6px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--lv-red-soft); color: #9a2414; font-size: 15px; }
.lvp-small { color: var(--lv-mute); font-size: 13px; text-align: center; margin-top: 18px; }
.lvp-top { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; padding-top: max(14px, env(safe-area-inset-top)); background: #fff; border-bottom: 1px solid var(--lv-line); font-weight: 700; position: sticky; top: 0; z-index: 2; }
.lvp-team { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lvp-score { color: var(--lv-red); white-space: nowrap; }
.lvp-net { margin: 0; padding: 8px 18px; background: #fff1e6; color: #7a3a10; font-size: 14px; }
.lvp-main { flex: 1; display: flex; flex-direction: column; padding: 18px; }
.lvp-center { margin: auto; text-align: center; padding: 20px 0; }
.lvp-wait h1 { margin-top: 22px; }
.lvp-tip { color: var(--lv-mute); font-size: 14px; max-width: 28ch; margin: 0 auto; }
.lvp-pulse { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto; background: var(--lv-red); box-shadow: 0 0 0 0 rgba(242,70,46,.5); animation: lvp-pulse 1.8s infinite; }
@keyframes lvp-pulse { 70% { box-shadow: 0 0 0 26px rgba(242,70,46,0); } 100% { box-shadow: 0 0 0 0 rgba(242,70,46,0); } }
.lvp-q { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.lvp-meta { margin: 0; color: var(--lv-mute); font-size: 13px; font-weight: 700; }
.lvp-timer { height: 8px; border-radius: 99px; background: var(--lv-panel2); overflow: hidden; }
.lvp-timer i { display: block; height: 100%; background: var(--lv-dark); border-radius: inherit; }
.lvp-timer i.is-low { background: var(--lv-red); }
.lvp-qtext { font-size: 21px; line-height: 1.3; margin: 0; }
.lvp-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; align-content: start; }
.lvp-opts.is-tf { grid-template-columns: 1fr 1fr; }
.lvp-opt { position: relative; min-height: 96px; border: 0; border-radius: 16px; padding: 14px; text-align: left; font-size: 17px; font-weight: 800; color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; transition: transform .12s, opacity .2s; }
.lvp-opt span { width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: 15px; }
.lvp-opt.c0 { background: #3b5bdb; } .lvp-opt.c1 { background: #16a35a; } .lvp-opt.c2 { background: #e8862a; } .lvp-opt.c3 { background: #e0383e; }
.lvp-opt:active { transform: scale(.97); }
.lvp-opt.is-picked { outline: 4px solid var(--lv-dark); outline-offset: 3px; }
.lvp-opt.is-picked::after { content: "✓"; position: absolute; top: 10px; right: 12px; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--lv-text); display: grid; place-items: center; font-size: 15px; }
.lvp-opt:disabled:not(.is-picked) { opacity: .35; }
.lvp-seq { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lvp-seq li { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--lv-line); font-weight: 600; }
.lvp-seq-n { color: var(--lv-red); width: 1.4em; }
.lvp-seq-t { flex: 1; }
.lvp-seq button { width: 44px; height: 44px; border-radius: 10px; border: 0; background: var(--lv-panel); }
.lvp-seq button:disabled { opacity: .3; }
.lvp-free { display: grid; gap: 4px; }
.lvp-status { margin: 0; text-align: center; color: var(--lv-green); font-weight: 700; font-size: 14px; min-height: 1.4em; }
.lvp-result { text-align: center; margin: auto 0; padding: 28px 18px; border-radius: 22px; }
.lvp-result.is-right { background: var(--lv-green); color: #fff; }
.lvp-result.is-wrong { background: var(--lv-red); color: #fff; }
.lvp-result.is-none { background: var(--lv-panel); }
.lvp-badge { width: 76px; height: 76px; margin: 0 auto 12px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: 38px; font-weight: 900; animation: lvh-pop .4s cubic-bezier(.2,1.4,.4,1); }
.lvp-pts { font: 700 34px/1 var(--lv-display); margin: 8px 0 0; }
.lvp-ans { font-size: 17px; margin: 8px 0 0; }
.lvp-rank { opacity: .85; margin: 16px 0 0; }
.lvp-rank .up, .lvp-rank .down { font-weight: 700; }
.lvp-top5 { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; text-align: left; }
.lvp-top5 li { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--lv-line); }
.lvp-top5 li.is-me { background: var(--lv-dark); color: #fff; border-color: var(--lv-dark); }
.lvp-final .lvp-big { font: 700 72px/1 var(--lv-display); letter-spacing: -.04em; color: var(--lv-red); margin: 4px 0; }
.lvp-card { margin: auto; padding: 30px 22px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.lvh-primary kbd { background: rgba(255,255,255,.2); color: #fff; }

/* ---------- Picture reveal effects (shared) ---------- */
.rr-rv { position: relative; overflow: hidden; border-radius: 14px; background: #0c0d10; }
.rr-rv-img { display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity .3s; will-change: transform, filter; }
.rr-rv-canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .3s; }
.rr-rv-tiles { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, 1fr); }
.rr-rv-tiles i { background: #1a1d23; border: 1px solid #0c0d10; transition: opacity .5s, transform .5s; }
.rr-rv-tiles i.is-off { opacity: 0; transform: scale(.85); }
.rr-rv-veil { position: absolute; inset: 0; background: #0c0d10; transition: opacity .4s; }
.rr-rv.is-done .rr-rv-img { filter: none !important; transform: none !important; opacity: 1 !important; visibility: visible !important; transition: filter .4s, transform .6s; }
.rr-rv.is-done .rr-rv-tiles i { opacity: 0; }

/* ---------- New question types (host) ---------- */
.lvh-rvbox { width: 100%; height: min(40vh, 26cqi); margin: 0 0 2cqi; }
.lvh-guesses { list-style: none; margin: 1.6cqi 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6cqi 1.6cqi; max-width: 80cqi; }
.lvh-guesses li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto auto; gap: .8em; align-items: center; padding: .55em .8em; border-radius: .6em; border: 1px solid var(--lv-line); font-size: max(13px, 1.45cqi); }
.lvh-guesses li.is-correct { border-color: var(--lv-green); background: var(--lv-green-soft); }
.lvh-gpos { font-weight: 700; color: var(--lv-mute); }
.lvh-gname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lvh-guesses em { font-style: normal; color: var(--lv-mute); font-size: .85em; white-space: nowrap; }
.lvh-pin { position: relative; margin: 0 auto; border-radius: 1cqi; overflow: hidden; background: var(--lv-panel); border: 1px solid var(--lv-line); }
.lvh-pin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.lvh-pin-empty { display: grid; place-items: center; height: 100%; color: var(--lv-mute); }
.lvh-target { position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 3px dashed var(--lv-green); background: rgba(22,163,90,.15); }
.lvh-flag { position: absolute; transform: translate(-50%, -50%); width: 1.8em; height: 1.8em; display: grid; place-items: center; border-radius: 50%; background: var(--lv-green); color: #fff; font-size: max(12px, 1.3cqi); box-shadow: 0 0 0 4px #fff; z-index: 3; }
.lvh-dot { position: absolute; width: 1.1em; height: 1.1em; transform: translate(-50%, -50%); border-radius: 50%; background: var(--lv-red); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); font-size: max(12px, 1.2cqi); z-index: 2; animation: lvh-pop .4s backwards; }
.lvh-dot.is-correct { background: var(--lv-green); }
.lvh-dot b { position: absolute; left: 50%; top: 120%; transform: translateX(-50%); white-space: nowrap; font-size: .8em; font-weight: 700; background: rgba(255,255,255,.92); padding: .1em .45em; border-radius: .4em; color: var(--lv-text); }
.lvh-buzzwin { margin-top: 1cqi; padding: 2cqi; border-radius: 1.2cqi; background: var(--lv-panel); border: 1px solid var(--lv-line); }
.lvh-buzzname { margin: .1em 0; font: 700 clamp(24px, 4.4cqi, 76px)/1.05 var(--lv-display); letter-spacing: -.03em; }
.lvh-judge { display: flex; flex-wrap: wrap; gap: 1cqi; margin-top: 1.6cqi; }
.lvh-judge button { border: 0; border-radius: .6em; padding: .7em 1.2em; font-weight: 700; font-size: max(14px, 1.5cqi); color: #fff; }
.lvh-ok { background: var(--lv-green); } .lvh-no { background: var(--lv-red); }
.lvh-queue { list-style: none; margin: 1.6cqi 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .8cqi; counter-reset: bq; }
.lvh-queue li { counter-increment: bq; display: inline-flex; gap: .6em; align-items: center; padding: .45em .8em; border-radius: 99px; border: 1px solid var(--lv-line); font-weight: 600; font-size: max(12px, 1.3cqi); }
.lvh-queue li::before { content: counter(bq); font-weight: 700; color: var(--lv-mute); }
.lvh-queue li em { font-style: normal; color: var(--lv-mute); }
.lvh-queue li.is-active { border-color: var(--lv-text); background: var(--lv-text); color: #fff; }
.lvh-queue li.is-active em, .lvh-queue li.is-active::before { color: rgba(255,255,255,.7); }
.lvh-queue li.is-wrong { text-decoration: line-through; opacity: .55; }
.lvh-meta .lvh-surv { background: var(--lv-text); color: #fff; }
.lvh-withladder { display: grid; grid-template-columns: minmax(0, 1fr) 16cqi; gap: 3cqi; align-items: start; }
.lvh-ladder { list-style: none; margin: 0; padding: 1cqi; border-radius: 1cqi; background: var(--lv-panel); display: grid; gap: .3cqi; font-size: max(11px, 1.15cqi); font-weight: 700; font-variant-numeric: tabular-nums; }
.lvh-ladder li { display: flex; justify-content: space-between; padding: .3em .7em; border-radius: .4em; color: var(--lv-mute); }
.lvh-ladder li span { opacity: .6; }
.lvh-ladder li.is-past { color: var(--lv-green); }
.lvh-ladder li.is-now { background: var(--lv-text); color: #fff; }
@container (max-width: 760px) { .lvh-withladder { grid-template-columns: 1fr; } .lvh-ladder { display: none; } .lvh-guesses { grid-template-columns: 1fr; } }

/* ---------- New question types (player) ---------- */
.lvp-pin { position: relative; width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--lv-line); touch-action: manipulation; cursor: crosshair; background: var(--lv-panel); }
.lvp-pin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; user-select: none; }
.lvp-pin-dot { position: absolute; width: 26px; height: 26px; transform: translate(-50%, -100%); pointer-events: none; }
.lvp-pin-dot::before { content: ""; position: absolute; inset: 0; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--lv-red); border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.35); }
.lvp-hint { margin: 0; color: var(--lv-mute); font-size: 14px; text-align: center; }
.lvp-buzz { width: min(78vw, 280px); aspect-ratio: 1; margin: 12px auto 0; border-radius: 50%; border: 0; background: radial-gradient(circle at 35% 30%, #ff7a63, var(--lv-red) 60%, #c32a15); color: #fff; font: 700 44px/1 var(--lv-display); letter-spacing: -.02em; box-shadow: 0 14px 0 #9e2211, 0 24px 40px -10px rgba(242,70,46,.6); transition: transform .08s, box-shadow .08s; display: grid; place-items: center; }
.lvp-buzz:active { transform: translateY(10px); box-shadow: 0 4px 0 #9e2211, 0 10px 20px -10px rgba(242,70,46,.6); }
.lvp-buzz:disabled { filter: grayscale(1); opacity: .5; }
.lvp-buzzed { text-align: center; margin: auto 0; }
.lvp-buzzed .lvp-big { font: 700 64px/1 var(--lv-display); color: var(--lv-red); margin: 8px 0; }
.lvp-ll { align-self: center; border: 1px solid var(--lv-line); background: #fff; border-radius: 99px; padding: 10px 18px; font-weight: 700; min-height: 44px; }
.lvp-ll:disabled { opacity: .4; }
.lvp-opt.is-gone { visibility: hidden; }
.lvp-out { text-align: center; margin: auto 0; padding: 26px 18px; border-radius: 20px; background: var(--lv-panel); }
.lvp-ladder { margin: 0; text-align: center; font-weight: 700; color: var(--lv-red); }

/* Tap Trivia mark */
.lvh-brand i { background: url(../images/taptrivia-mark.svg) center / contain no-repeat !important; border-radius: 0 !important; }
.lvh-brand i::after { display: none !important; }

/* Tap Trivia mark */
.lvp-brand i { background: url(../images/taptrivia-mark.svg) center / contain no-repeat !important; border-radius: 0 !important; }
.lvp-brand i::after { display: none !important; }

/* ---------- Mini games ---------- */
.lvh-mgmenu { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5em; }
.lvh-mglabel { color: var(--lv-mute); font-weight: 600; }
.lvh-mgmenu .lvh-sec { padding: .5em .9em; font-size: .95em; }
.lvh-mg { text-align: center; max-width: 80cqi; margin: 0 auto; width: 100%; }
.lvh-mgtitle { font: 700 clamp(30px, 6cqi, 110px)/1 var(--lv-display); letter-spacing: -.035em; margin: .15em 0 .2em; }
.lvh-mgrules { font-size: clamp(16px, 2.2cqi, 40px); max-width: 32em; margin: 0 auto; }
.lvh-mgbig { font: 700 clamp(40px, 10cqi, 180px)/1 var(--lv-display); letter-spacing: -.04em; margin: .3em 0 .1em; font-variant-numeric: tabular-nums; }
.lvh-mg.is-reaction { border-radius: 2cqi; padding: 3cqi; background: var(--lv-red); color: #fff; transition: background .05s; }
.lvh-mg.is-reaction .lvh-kicker, .lvh-mg.is-reaction .lvh-sub { color: rgba(255,255,255,.85); }
.lvh-mg.is-reaction.is-green { background: var(--lv-green); }
.lvh-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1cqi; margin: 2cqi auto 1cqi; max-width: 70cqi; }
.lvh-boxes span { aspect-ratio: 1; border-radius: 1cqi; background: var(--lv-dark); color: #fff; display: grid; place-content: center; font: 700 clamp(16px, 3cqi, 54px)/1 var(--lv-display); }
.lvh-boxes.is-open span { background: var(--lv-panel); color: var(--lv-text); border: 1px solid var(--lv-line); gap: .3em; padding: .4em; animation: lvh-pop .4s backwards; }
.lvh-boxes.is-open span.is-plus { background: var(--lv-green-soft); border-color: var(--lv-green); color: var(--lv-green); }
.lvh-boxes.is-open span.is-minus { background: var(--lv-red-soft); border-color: var(--lv-red); color: var(--lv-red); }
.lvh-boxes small { font: 600 max(10px, 1cqi)/1.2 var(--lv-font); color: var(--lv-mute); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lvh-mgres { list-style: none; margin: 2cqi auto 0; padding: 0; display: grid; gap: .6cqi; max-width: 60cqi; text-align: left; }
.lvh-mgres li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto 5em; gap: .8em; align-items: center; padding: .6em .9em; border-radius: .6em; border: 1px solid var(--lv-line); font-size: max(13px, 1.6cqi); }
.lvh-mgres li.is-win { border-color: var(--lv-green); background: var(--lv-green-soft); }
.lvh-mgres em { font-style: normal; font-weight: 700; color: var(--lv-green); text-align: right; }
.lvp-mg { display: flex; flex-direction: column; align-items: center; gap: 12px; flex: 1; text-align: center; }
.lvp-mgtitle { margin: 0 !important; }
.lvp-mgclock { font: 700 56px/1 var(--lv-display); letter-spacing: -.03em; margin: 8px 0 0; font-variant-numeric: tabular-nums; min-height: 56px; }
.lvp-mgbtn { width: min(76vw, 270px); aspect-ratio: 1; border-radius: 50%; border: 0; margin-top: 6px; background: var(--lv-dark); color: #fff; font: 700 40px/1 var(--lv-display); letter-spacing: -.02em; touch-action: manipulation; user-select: none; -webkit-user-select: none; box-shadow: 0 12px 0 #000, 0 20px 40px -14px rgba(0,0,0,.5); transition: transform .06s, box-shadow .06s; }
.lvp-mgbtn:active, .lvp-mgbtn.is-hit { transform: translateY(8px); box-shadow: 0 4px 0 #000, 0 10px 20px -14px rgba(0,0,0,.5); }
.lvp-mgbtn:disabled { opacity: .35; }
.lvp-mg.is-reaction { margin: -18px; padding: 18px; background: var(--lv-red); color: #fff; border-radius: 0; }
.lvp-mg.is-reaction .lvp-meta, .lvp-mg.is-reaction .lvp-hint { color: rgba(255,255,255,.85); }
.lvp-mg.is-reaction .lvp-mgbtn { background: #fff; color: var(--lv-red); box-shadow: 0 12px 0 rgba(0,0,0,.25); }
.lvp-mg.is-reaction.is-green { background: var(--lv-green); }
.lvp-mg.is-reaction.is-green .lvp-mgbtn { color: var(--lv-green); }
.lvp-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; margin-top: 8px; }
.lvp-boxes button, .lvp-boxes span { aspect-ratio: 1.15; border-radius: 14px; border: 0; background: var(--lv-dark); color: #fff; font: 700 26px/1 var(--lv-display); display: grid; place-items: center; }
.lvp-boxes button.is-mine { background: var(--lv-red); outline: 4px solid var(--lv-dark); outline-offset: 2px; }
.lvp-boxes.is-open { margin-top: 16px; }
.lvp-boxes.is-open span { background: var(--lv-panel); color: var(--lv-text); font-size: 22px; }
.lvp-boxes.is-open span.is-plus { background: var(--lv-green-soft); color: var(--lv-green); }
.lvp-boxes.is-open span.is-minus { background: var(--lv-red-soft); color: var(--lv-red); }
.lvp-boxes.is-open span.is-mine { outline: 3px solid var(--lv-dark); }

/* ---------- Round randomiser (logo-style tiles) ---------- */
.rr-spin-grid { display: grid; gap: 14px; }
.rr-spin-tile { position: relative; overflow: hidden; aspect-ratio: 1.5; border-radius: 18%/27%; background: var(--lv-dark); color: #fff; display: flex; align-items: flex-end; padding: 10%; transition: background .12s, transform .2s; }
.rr-spin-tile.is-played { background: var(--lv-panel); color: var(--lv-mute); }
.rr-spin-tile.is-idle { background: #2a2d35; }
.rr-spin-tile.is-on { background: var(--lv-red); }
.rr-spin-tile.is-picked { background: var(--lv-red); transform: scale(1.05); box-shadow: 0 18px 40px -16px rgba(242,70,46,.7); }
.rr-spin-label { position: relative; display: grid; gap: .25em; text-align: left; }
.rr-spin-label b { font: 700 1.15em/1.1 var(--lv-display); letter-spacing: -.02em; }
.rr-spin-label small { font-size: .75em; opacity: .75; font-weight: 600; }
.rr-spin-ripple { position: absolute; right: 12%; top: 16%; width: 13%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.18); }
.rr-spin-tile.is-on .rr-spin-ripple, .rr-spin-tile.is-picked .rr-spin-ripple { background: #fff; }
.rr-spin-tile.is-on .rr-spin-ripple::after, .rr-spin-tile.is-picked .rr-spin-ripple::after { content: ""; position: absolute; inset: -55%; border-radius: 50%; border: 3px solid rgba(255,255,255,.6); }
.rr-spin-tile.is-picked .rr-spin-ripple::after { animation: rr-spin-ring 1.2s ease-out infinite; }
@keyframes rr-spin-ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.lvh-spinwrap { text-align: center; max-width: 76cqi; margin: 0 auto; width: 100%; }
.lvh-spin { margin: 2.2cqi auto 0; max-width: 60cqi; font-size: max(13px, 1.7cqi); }
.lvh-spin .rr-spin-grid { gap: 1.4cqi; }
.lvp-spinwrap { text-align: center; margin: auto 0; }
.lvp-spinwrap h1 { margin: 4px 0 18px; }
.lvp-spin { font-size: 14px; }
.lvp-spin .rr-spin-grid { gap: 10px; }

/* ================= Twists, quickest-answer podium, buzzers ================= */
.lvh-twwrap { position: static; display: inline-flex; }
.lvh-bottom { position: relative; }
.lvh-twbtn b { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; border-radius: 99px; background: var(--lv-red); color: #fff; font-size: .8em; margin-left: .2em; }
.lvh-twbtn.is-on { border-color: var(--lv-red); }
.lvh-twpop { position: absolute; bottom: calc(100% + .4em); left: 2cqi; z-index: 20; width: min(440px, 92cqi); max-height: 70vh; overflow: auto; background: #fff; border: 1px solid var(--lv-line); border-radius: 1em; box-shadow: 0 24px 60px -20px rgba(12,13,16,.35); padding: .5em; display: grid; gap: .25em; }
.lvh-twhead { margin: .3em .6em .4em; font-weight: 700; color: var(--lv-mute); font-size: .9em; }
.lvh-twitem { display: grid; grid-template-columns: 2.4em 1fr; gap: .7em; align-items: center; text-align: left; border: 1px solid transparent; background: transparent; border-radius: .75em; padding: .55em .6em; }
.lvh-twitem:hover { background: var(--lv-panel); }
.lvh-twitem b { display: block; font-weight: 700; }
.lvh-twitem small { display: block; color: var(--lv-mute); font-size: .85em; line-height: 1.3; }
.lvh-twi { width: 2.4em; height: 2.4em; border-radius: .6em; display: grid; place-items: center; background: var(--lv-panel); font-weight: 800; font-size: 1em; }
.lvh-twitem.is-on { background: var(--lv-red-soft); border-color: var(--lv-red); }
.lvh-twitem.is-on .lvh-twi { background: var(--lv-red); color: #fff; }

.lvh-twists { list-style: none; margin: .1em 0 .6em; padding: 0; display: flex; flex-wrap: wrap; gap: .6em; }
.lvh-twists li { display: inline-flex; align-items: center; gap: .55em; padding: .45em .9em .45em .45em; border-radius: 99px; background: var(--lv-dark); color: #fff; font-size: max(13px, 1.35cqi); animation: lvh-pop .45s cubic-bezier(.2,1.4,.4,1); }
.lvh-twists li span { width: 1.8em; height: 1.8em; border-radius: 50%; display: grid; place-items: center; background: var(--lv-red); font-weight: 800; }
.lvh-twists li small { color: rgba(255,255,255,.65); font-size: .85em; }
.lvh-twists li.tw-freeze span { background: #3b82f6; }
.lvh-twists li.tw-jump span, .lvh-twists li.tw-double span { background: var(--lv-green); }
.lvh-frozen { background: #e8f0fe; color: #1d4ed8; }

.lvh-quick { list-style: none; margin: 1em 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .7em; }
.lvh-quick li { display: inline-flex; align-items: center; gap: .55em; padding: .5em 1em .5em .5em; border-radius: 99px; background: var(--lv-panel); font-size: max(13px, 1.45cqi); font-weight: 600; animation: lvh-pop .45s cubic-bezier(.2,1.4,.4,1) both; }
.lvh-quick li:nth-child(2) { animation-delay: .12s; }
.lvh-quick li:nth-child(3) { animation-delay: .24s; }
.lvh-qpos { width: 1.8em; height: 1.8em; border-radius: 50%; display: grid; place-items: center; background: var(--lv-dark); color: #fff; font-weight: 800; font-size: .9em; }
.lvh-quick li.q1 { background: var(--lv-dark); color: #fff; }
.lvh-quick li.q1 .lvh-qpos { background: var(--lv-red); }
.lvh-quick li em { font-style: normal; opacity: .6; font-variant-numeric: tabular-nums; }
.lvh-quick li b { color: var(--lv-green); }
.lvh-quick li.q1 b { color: #7ee2a8; }
.lvh-bzi { display: inline-block; font-size: 1.05em; line-height: 1; margin-right: .25em; }
.lvh-events { list-style: none; margin: .9em 0 0; padding: 0; display: grid; gap: .45em; }
.lvh-events li { display: flex; align-items: center; gap: .6em; font-weight: 700; font-size: max(14px, 1.6cqi); animation: lvh-pop .5s .3s cubic-bezier(.2,1.4,.4,1) both; }
.lvh-events li span { width: 1.9em; height: 1.9em; border-radius: .5em; display: grid; place-items: center; background: var(--lv-red); color: #fff; }
.lvh-events li.ev-top span { background: var(--lv-green); }
.lvh-events li.ev-freeze span { background: #3b82f6; }
.lvh-events li.ev-bottom span, .lvh-events li.ev-wipe span { background: var(--lv-dark); }

.lvh-dotbox { width: min(100%, 54cqi); margin: .4em auto 0; aspect-ratio: 16 / 10; border-radius: 1.2em; background: var(--lv-panel); display: grid; }
.lvh-dotbox:empty { visibility: hidden; }
.rr-dots { width: 100%; height: 100%; display: block; }

/* phone */
.lvp-flabel { font-weight: 700; font-size: 14px; margin: 14px 0 6px; text-align: left; }
.lvp-flabel small { font-weight: 500; color: var(--lv-mute); margin-left: 4px; }
.lvp-buzzers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.lvp-bz { display: grid; justify-items: center; gap: 2px; padding: 8px 2px 6px; border-radius: 12px; border: 1.5px solid var(--lv-line); background: #fff; font-size: 10.5px; font-weight: 600; color: var(--lv-mute); }
.lvp-bz span { font-size: 22px; line-height: 1.1; }
.lvp-bz.is-on { border-color: var(--lv-red); background: var(--lv-red-soft); color: var(--lv-text); }
.lvp-mybuzz { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 0 10px; }
.lvp-bzme { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--lv-line); background: #fff; border-radius: 99px; padding: 8px 14px 8px 8px; font-size: 14px; }
.lvp-bzme span { font-size: 20px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--lv-panel); }
.lvp-link { border: 0; background: none; color: var(--lv-red); font-weight: 700; font-size: 14px; padding: 6px; }
.lvp-wait .lvp-buzzers { max-width: 340px; margin: 0 auto 14px; }

.lvp-twists { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lvp-twists li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 99px; background: var(--lv-dark); color: #fff; font-size: 12.5px; font-weight: 600; }
.lvp-twists li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--lv-red); font-size: 11px; font-weight: 800; }
.lvp-twists li.tw-freeze span { background: #3b82f6; }
.lvp-twists li.tw-jump span, .lvp-twists li.tw-double span { background: var(--lv-green); }
.lvp-out .lvp-twists { justify-content: center; margin-top: 14px; }
.lvp-out.is-frozen { background: #e8f0fe; }
.lvp-out.is-frozen .lvp-badge { background: #3b82f6; color: #fff; }
.lvp-events { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.lvp-events li { display: flex; align-items: center; gap: 8px; font-weight: 700; width: fit-content; max-width: 100%; margin: 0 auto; text-align: left; line-height: 1.3; }
.lvp-events li span { flex: none; }
.lvp-events li span { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.25); }

.lvp-dotbox { width: 100%; aspect-ratio: 16 / 10; border-radius: 16px; background: var(--lv-panel); margin: 6px 0 12px; }
.lvp-dotbox:empty { display: none; }
.lvp-mg.is-dots .lvp-free { width: 100%; }
.lvp-clash { font: 800 44px/1.1 var(--lv-display); letter-spacing: -.02em; margin: 18px 0 22px; min-height: 1.2em; transition: transform .08s; }
.lvp-mg.is-ok .lvp-clash { animation: lvp-ok .25s; }
.lvp-mg.is-bad .lvp-clash { animation: lvp-bad .3s; }
@keyframes lvp-ok { 50% { transform: scale(1.12); } }
@keyframes lvp-bad { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.lvp-cbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.lvp-cbtns button { aspect-ratio: 1.6; border: 0; border-radius: 18px; background: var(--c); box-shadow: 0 6px 0 rgba(0,0,0,.18); touch-action: manipulation; }
.lvp-cbtns button:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0,0,0,.18); }
.lvh-mg.is-dots .lvh-mgbig:empty { display: none; }
.lvh-mg.is-dots .lvh-mgtitle { margin-bottom: .2em; }

/* Team buzzers panel (host) */
.lvh-bzpanel { position: absolute; inset: 0; z-index: 30; background: rgba(12,13,16,.45); display: grid; place-items: center; padding: 3cqi; font-size: max(13px, 1.1cqi); }
.lvh-bzbox { width: min(760px, 100%); max-height: 100%; overflow: auto; background: #fff; border-radius: 1.2em; padding: 1.4em 1.6em 1.6em; box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); }
.lvh-bzbox header { display: flex; align-items: center; justify-content: space-between; }
.lvh-bzbox h2 { margin: 0; font: 700 1.7em/1.1 var(--lv-display); letter-spacing: -.02em; }
.lvh-bzbox .lvh-sub { font-size: 1em; margin: .4em 0 1em; }
.lvh-bzbox .lvh-twhead { margin: 1.2em 0 .5em; }
.lvh-bzup { display: flex; align-items: center; gap: 1em; flex-wrap: wrap; }
.lvh-upbtn { position: relative; overflow: hidden; cursor: pointer; font-size: 1em; }
.lvh-upbtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lvh-upbtn:focus-within { outline: 3px solid var(--lv-red); outline-offset: 2px; }
.lvh-bzmsg { color: var(--lv-mute); font-weight: 600; }
.lvh-bzmsg.is-err { color: var(--lv-red); }
.lvh-sounds { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5em; }
.lvh-sounds li { display: inline-flex; align-items: center; gap: .5em; padding: .3em .8em .3em .3em; border-radius: 99px; background: var(--lv-panel); font-weight: 600; }
.lvh-sounds li button { width: 2em; height: 2em; border-radius: 50%; border: 0; background: var(--lv-dark); color: #fff; font-size: .8em; }
.lvh-sounds li em { font-style: normal; color: var(--lv-mute); font-weight: 500; }
.lvh-bzteams { list-style: none; margin: 0; padding: 0; display: grid; gap: .4em; }
.lvh-bzteams li { display: grid; grid-template-columns: 1fr auto minmax(10em, 14em); gap: .7em; align-items: center; padding: .45em .5em .45em .9em; border: 1px solid var(--lv-line); border-radius: .8em; }
.lvh-bzname { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lvh-bzcur { padding: .4em .8em; font-weight: 600; white-space: nowrap; }
.lvh-bzsel { font: inherit; padding: .5em .6em; border-radius: .6em; border: 1px solid var(--lv-line); background: #fff; }

/* ================= No-scroll screens: lists that don't fit scroll themselves ================= */
[data-autoscroll] { overflow: hidden; }
[data-autoscroll].is-scrolling { -webkit-mask-image: linear-gradient(#000 0, #000 calc(100% - 2.2em), transparent); mask-image: linear-gradient(#000 0, #000 calc(100% - 2.2em), transparent); }
.lvh-board ol { padding-bottom: .4em; }
.lvh-board li { flex: none; }
.lvh-chips { align-content: flex-start; }
body.lv--play { overflow: hidden; }
.lvp { height: 100%; min-height: 0; overflow: hidden; }
.lvp-main { min-height: 0; overflow: hidden; justify-content: center; }
.lvp-fit { width: 100%; flex: none; display: flex; flex-direction: column; }
.lvp-main > .lvp-fit > .lvp-center { margin: 0 auto; }

/* ================= Second screen (for Zoom / Teams / Meet) ================= */
body.lv--screen { background: #0c0d10; }
body.lv--screen #lv-app { display: grid; place-items: center; }
body.lv--screen .lvh.is-viewer { width: min(100vw, 177.78vh); height: min(100vh, 56.25vw); }
.lvh.is-viewer .lvh-private, .lvh.is-viewer .lvh-judge, .lvh.is-viewer .lvh-chips button { display: none !important; }
.lvh.is-viewer [data-a] { pointer-events: none; }
.lvh.is-viewer .lvh-unlock { pointer-events: auto; }
.lvh.is-viewer .lvh-join { display: inline !important; }
.lvh-viewbar { justify-content: center; gap: 3cqi; font-size: max(13px, 1.5cqi); color: var(--lv-mute); }
.lvh-viewbar b { color: var(--lv-text); }
.lvh-unlock { position: absolute; inset: 0; z-index: 40; display: grid; place-content: center; gap: .6em; text-align: center; border: 0; background: rgba(255,255,255,.94); padding: 6cqi; font-size: max(14px, 1.6cqi); color: var(--lv-mute); }
.lvh-unlock b { font: 700 max(22px, 3.4cqi)/1.1 var(--lv-display); color: var(--lv-text); letter-spacing: -.02em; }
.lvh-unlock span { max-width: 46ch; margin: 0 auto; }
.lvh-screenbtn { padding: .45em .9em; font-size: .95em; white-space: nowrap; }
.lvh-screenbtn.is-on { border-color: var(--lv-green); color: var(--lv-green); }
.lvh-hostans { padding: .45em .9em; border-radius: .6em; background: var(--lv-green-soft); color: #0b6b3a; font-weight: 600; }
.lvh-hostans b { color: var(--lv-text); }
.lvh-zoomtip { color: var(--lv-mute); }
.lvh-link { font-size: inherit !important; padding: 0 !important; color: var(--lv-red); font-weight: 700; border: 0; background: none; text-decoration: underline; text-underline-offset: 2px; }
@container (max-width: 760px) { .lvh-screenbtn { display: none; } }
.lvh-board ol.is-many { grid-template-columns: 1fr 1fr; gap: .6cqi 1.2cqi; }
.lvh-board ol.is-many li { padding: .7cqi 1.2cqi; font-size: clamp(13px, 1.5cqi, 28px); grid-template-columns: 3cqi 1fr auto 6cqi; }
.lvh-board:has(ol.is-many) { max-width: 92cqi; }
.lvh-setpop { width: min(320px, 92cqi); }
.lvh-setpop .lvh-toggle { padding: .55em .6em; border-radius: .6em; color: var(--lv-text); font-weight: 600; }
.lvh-setpop .lvh-toggle:hover { background: var(--lv-panel); }
@container (max-width: 760px) { .lvh-zoomtip { display: none; } .lvh-bottom { gap: .5em; padding: .6em .8em; } .lvh-bottom .lvh-sec { padding: .5em .7em; } }
@container (max-width: 760px) { .lvh-board ol.is-many { grid-template-columns: 1fr; } .lvh-board ol.is-many li { font-size: 14px; } }

/* ================= Music bingo ================= */
.lvh-bingo { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3cqi; align-items: start; }
.lvh-bingo:not(:has(.lvh-played)) { grid-template-columns: 1fr; max-width: 70cqi; margin: 0 auto; }
.lvh-nowplay { display: flex; align-items: center; gap: 2cqi; margin: .4em 0 1em; }
.lvh-songno { flex: none; display: grid; place-items: center; width: 11cqi; height: 11cqi; border-radius: 2.4cqi; background: var(--lv-red); color: #fff; font: 700 6cqi/1 var(--lv-display); box-shadow: 0 0 0 1.2cqi var(--lv-red-soft); animation: lvh-pop .5s cubic-bezier(.2,1.4,.4,1); }
.lvh-nowplay .lvh-sub { margin: 0; }
.lvh-nowplay .lvh-mgtitle { margin: .1em 0 0; text-align: left; }
.lvh-btimer { margin: 2.6em 0 1.6em; }
.lvh-songpriv { display: flex; flex-wrap: wrap; align-items: center; gap: .8em; margin: .4em 0 1em; font-size: max(13px, 1.3cqi); }
.lvh-playlink { text-decoration: none; display: inline-flex; align-items: center; gap: .4em; background: #1db954; border-color: #1db954 !important; color: #fff !important; font-size: 1.05em; }
.lvh-playlink:hover { background: #17a34a; }
.lvh-songname { padding: .5em .9em; border-radius: .6em; background: var(--lv-green-soft); }
.lvh-songname small { color: var(--lv-mute); margin-left: .4em; }
.lvh-bwin { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; margin: .6em 0 0; font-weight: 700; font-size: max(15px, 1.9cqi); animation: lvh-pop .5s cubic-bezier(.2,1.4,.4,1); }
.lvh-bwin span { padding: .2em .7em; border-radius: 99px; background: var(--lv-dark); color: #fff; text-transform: uppercase; letter-spacing: .06em; font-size: .7em; }
.lvh-bwin.is-house span { background: var(--lv-red); }
.lvh-bwin em { font-weight: 500; color: var(--lv-mute); font-size: .75em; }
.lvh-played { background: var(--lv-panel); border-radius: 1.6cqi; padding: 1.4cqi 1.6cqi; min-width: 0; }
.lvh-played .lvh-twhead { margin: 0 0 .6em; }
.lvh-played ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .45em; }
.lvh-played li { display: grid; grid-template-columns: 2.2em 1fr; column-gap: .6em; align-items: center; background: #fff; border-radius: .7em; padding: .45em .7em; font-size: max(12px, 1.25cqi); }
.lvh-played li span { grid-row: span 2; display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: .5em; background: var(--lv-panel2); font-weight: 800; }
.lvh-played li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lvh-played li small { color: var(--lv-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lvh-played li i { font-style: normal; color: var(--lv-red); font-weight: 700; grid-row: span 2; }
.lvh-played li.is-now span { background: var(--lv-red); color: #fff; }
@container (max-width: 760px) { .lvh-bingo { grid-template-columns: 1fr; } }

/* phone card */
.lvp-bingowrap { display: flex; flex-direction: column; gap: 10px; }
.lvp-bingo { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 5px; }
.lvp-bcell { position: relative; aspect-ratio: 1; border-radius: 10px; border: 1.5px solid var(--lv-line); background: #fff; padding: 4px 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px; overflow: hidden; touch-action: manipulation; }
.lvp-bcell b { font-size: 11.5px; line-height: 1.15; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; hyphens: auto; }
.lvp-bcell small { font-size: 9.5px; line-height: 1.1; color: var(--lv-mute); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.lvp-bingo.s3 .lvp-bcell b { font-size: 15px; } .lvp-bingo.s3 .lvp-bcell small { font-size: 11px; }
.lvp-bingo.s4 .lvp-bcell b { font-size: 12.5px; }
.lvp-bingo.s5 .lvp-bcell b { font-size: 10.5px; }
.lvp-bcell.is-on { background: var(--lv-red); border-color: var(--lv-red); color: #fff; }
.lvp-bcell.is-on small { color: rgba(255,255,255,.8); }
.lvp-bcell.is-on::after { content: "✓"; position: absolute; top: 3px; right: 5px; font-size: 10px; font-weight: 800; opacity: .85; pointer-events: none; }
.lvp-bcell.is-free { background: var(--lv-dark); border-color: var(--lv-dark); color: #fff; font-weight: 800; font-size: 18px; }
.lvp-bcell.is-free small { color: rgba(255,255,255,.7); }
.lvp-bwin { margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--lv-panel); font-size: 13.5px; font-weight: 600; text-align: center; }
.lvp-bwin b { color: var(--lv-red); }
.lvp-claim { background: var(--lv-red); animation: lvp-ok .9s infinite; }
.lvp-bme { margin: 0; padding: 10px; border-radius: 12px; background: var(--lv-green); color: #fff; font-weight: 800; text-align: center; font-size: 17px; }
