/* PanQuiz — live quiz practice game (js/live-game.js). Shared byte-identical
   by the Italian and English instances. Everything is scoped under .pqg.
   The shared screen is measured in cqw of the scene's width, as in the app
   (1 cqw = 1 % of the 16:9 frame's width); the phone in px.
   Colours: the game's own (site contract, colors.answers and tokens). */

.pqg {
  --pqg-ink: #0E1552;
  --pqg-muted: #4A5578;
  --pqg-board-muted: #C9D3EE;
  --pqg-accent: #FFD93D;
  --pqg-bonus: #6FDC8C;
  --pqg-warn: #FF9A5C;
  --pqg-brand: #1565C0;
  --pqg-brand-dark: #0D47A1;
  --pqg-phone-bg: #0F172B;
  position: relative;
  margin-top: var(--pqg-gap, 40px);
  color: #fff;
  font-family: var(--font-ui, 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
}
.pqg *, .pqg *::before, .pqg *::after { box-sizing: border-box; }
.pqg [hidden] { display: none !important; }
.pqg :where(p) { margin: 0; }
.pqg :where(button, input) { font: inherit; }
.pqg :where(img) { max-width: none; }
.pqg-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.pqg-ico { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; }
.pqg-shape { width: 1em; height: 1em; flex: none; }
.pqg :focus-visible { outline: 3px solid var(--pqg-accent); outline-offset: 2px; }

/* answer colours by position */
.pqg-pos0 { --c: #EF4444; }
.pqg-pos1 { --c: #2563EB; }
.pqg-pos2 { --c: #D97706; }
.pqg-pos3 { --c: #16A34A; }

/* ---------- chips and buttons ---------- */
.pqg-chip { display: inline-flex; align-items: center; gap: .4em; border-radius: 999px; padding: .32em .8em; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.pqg-chip .pqg-ico { width: 1.2em; height: 1.2em; }
.pqg-chip--light { background: #E4E9F4; color: var(--pqg-ink); }
.pqg-chip--dark { background: rgba(255, 255, 255, .1); color: var(--pqg-board-muted); font-size: 9.5px; }
.pqg-chip--glass { background: rgba(15, 23, 43, .72); color: #fff; border: 1px solid rgba(255, 255, 255, .28); }

.pqg-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 44px; padding: .65em 1.15em; border: 0; border-radius: 10px; cursor: pointer; font-size: 16px; font-weight: 800; line-height: 1.1; }
.pqg-btn .pqg-ico { width: 1.15em; height: 1.15em; }
.pqg-btn--accent { background: #F3BC34; color: #1A1400; box-shadow: 0 3px 0 #B8861A; }
.pqg-btn--accent:hover { background: #F6C84F; }
.pqg-btn--accent:active { transform: translateY(2px); box-shadow: 0 1px 0 #B8861A; }
.pqg-btn:disabled { background: #E4E9F4; color: var(--pqg-muted); box-shadow: none; cursor: not-allowed; transform: none; }
.pqg-btn--big { font-size: 19px; padding: .8em 1.6em; }
.pqg-btn.is-loading { opacity: .7; cursor: progress; }

/* ---------- the invitation ---------- */
.pqg-intro { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 380px; overflow: hidden; border-radius: 18px; background: #1A0C0F; text-align: center; }
.pqg--duo .pqg-intro { aspect-ratio: 2560 / 1256; min-height: 0; }
.pqg-intro-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.pqg-intro::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 45%, rgba(10, 3, 6, .45), rgba(10, 3, 6, .88) 75%); }
.pqg-intro-body { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 560px; padding: 28px 20px; }
.pqg-intro-title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.15; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.pqg-intro-meta { color: var(--pqg-accent); font-size: 16px; font-weight: 700; }
.pqg-intro-note { max-width: 460px; color: #E4E9F4; font-size: 13.5px; line-height: 1.4; }
.pqg-intro-error { padding: 8px 12px; border-radius: 8px; background: #B91C1C; color: #fff; font-size: 14px; }

/* ---------- layout: two screens or one ---------- */
.pqg-game { display: grid; }
.pqg--duo .pqg-game { grid-template-columns: minmax(0, 1fr) 290px; grid-template-rows: auto 1fr; grid-template-areas: "scene phone" "bar phone"; column-gap: 24px; align-items: start; }
.pqg--duo .pqg-scene { grid-area: scene; }
.pqg--duo .pqg-hostbar { grid-area: bar; border-radius: 0 0 16px 16px; }
.pqg--duo .pqg-phone-col { grid-area: phone; align-self: stretch; }
.pqg--single .pqg-game { grid-template-columns: minmax(0, 440px); grid-template-areas: "phone" "bar"; justify-content: center; }
.pqg--single .pqg-scene { display: none; }
.pqg--single .pqg-phone-col { grid-area: phone; }
.pqg--single .pqg-hostbar { grid-area: bar; border-radius: 0 0 18px 18px; }

/* ---------- the shared screen ---------- */
.pqg-scene { position: relative; container-type: inline-size; aspect-ratio: 2560 / 1256; overflow: hidden; border-radius: 16px 16px 0 0; background: #1A0C0F; user-select: none; }
.pqg-bg { position: absolute; inset: 0; background-color: #1A0C0F; background-position: center; background-size: cover; background-repeat: no-repeat; }
.pqg-seats, .pqg-figs, .pqg-veil, .pqg-confetti { position: absolute; inset: 0; pointer-events: none; }
.pqg-seat { position: absolute; overflow: hidden; opacity: 0; transition: opacity .4s; }
.pqg-seat.is-in { opacity: 1; }
.pqg-seat.is-in.is-away { opacity: 0; }
.pqg-seat img { position: absolute; left: 0; top: 0; }
.pqg-veil { z-index: 20; opacity: 0; background: linear-gradient(rgba(10, 3, 6, 1), rgba(10, 3, 6, .78)); transition: opacity .7s ease; }
.pqg-podium-img { position: absolute; z-index: 25; opacity: 0; pointer-events: none; transition: opacity .6s; }
.pqg-podium-img.is-in { opacity: 1; }
.pqg-figs { z-index: 30; }
.pqg-fig { position: absolute; transition: opacity .24s, transform .3s; }
.pqg-fig.is-waiting { opacity: 0; transform: translateY(1.2cqw); }
.pqg-fig img { position: absolute; opacity: 0; }
.pqg-fig:not([data-pose]) img[data-pose="stand"],
.pqg-fig[data-pose="stand"] img[data-pose="stand"],
.pqg-fig[data-pose="cheer0"] img[data-pose="cheer0"],
.pqg-fig[data-pose="cheer1"] img[data-pose="cheer1"] { opacity: 1; }
.pqg-fig-label { position: absolute; left: 50%; transform: translateX(-50%); padding: .15cqw .55cqw; border-radius: .3cqw; background: rgba(26, 10, 12, .78); color: #fff; font-size: 1.3cqw; font-weight: 800; white-space: nowrap; }
.pqg-step-label { position: absolute; z-index: 31; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); padding: .1cqw .55cqw; border-radius: .3cqw; background: rgba(26, 10, 12, .62); color: #fff; font-size: 1.35cqw; font-weight: 800; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.pqg-step-label.is-on { opacity: 1; }
.pqg-frame { position: absolute; z-index: 40; pointer-events: none; }
.pqg-confetti { z-index: 50; overflow: hidden; }

/* the board inside the frame */
.pqg-board { position: absolute; z-index: 41; display: flex; flex-direction: column; overflow: hidden; padding: 1cqw 1.8cqw; border-radius: .57cqw; color: #fff; }
.pqg-board--hall, .pqg-board--podium, .pqg-board--end { align-items: center; justify-content: center; padding: .8cqw 1.4cqw; text-align: center; }
.pqb-kicker { color: var(--pqg-board-muted); font-size: 1.35cqw; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pqb-kicker--count { font-size: 1.7cqw; }
.pqb-big { margin: .35cqw 0; color: var(--pqg-accent); font-size: 3.4cqw; font-weight: 900; letter-spacing: .02em; line-height: 1.05; text-transform: uppercase; text-shadow: 0 0 1.2cqw rgba(255, 217, 61, .55); }
.pqb-sub { font-size: 1.4cqw; font-weight: 700; }
.pqb-digit { min-height: 1em; margin-top: .5cqw; color: var(--pqg-accent); font-size: 6.5cqw; font-weight: 900; line-height: 1; text-shadow: 0 0 1.4cqw rgba(255, 217, 61, .55); }
.pqb-digit.is-go { font-size: 5.2cqw; }

.pqg-board--big { padding: .9cqw 1.8cqw 1.4cqw; }
.pqb-timer { display: flex; justify-content: flex-end; flex: none; height: .45cqw; margin-bottom: .8cqw; overflow: hidden; border-radius: 1cqw; background: rgba(255, 255, 255, .16); }
.pqb-timer span { display: block; height: 100%; border-radius: inherit; background: var(--pqg-board-muted); }
.pqb-timer span.is-bonus { background: var(--pqg-bonus); }
.pqb-timer span.is-warn { background: var(--pqg-warn); animation: pqg-pulse 1s infinite; }
.pqb-head { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 1cqw; min-height: 3.2cqw; }
.pqb-label, .pqb-answered { color: var(--pqg-board-muted); font-size: 1.25cqw; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.pqb-head-right { display: flex; align-items: center; gap: 1.2cqw; }
.pqb-seconds { min-width: 5.4cqw; padding: .35cqw .6cqw; border: .12cqw solid rgba(243, 188, 52, .55); border-radius: .4cqw; background: rgba(255, 255, 255, .04); font-size: 3cqw; font-weight: 900; line-height: 1; text-align: center; }
.pqb-seconds.is-warn { color: var(--pqg-warn); }
.pqb-summary { font-size: 1.45cqw; font-weight: 700; opacity: 0; transition: opacity .3s; }
.pqb-summary b { margin-left: .2cqw; color: var(--pqg-accent); font-size: 2.4cqw; font-weight: 900; }
.is-revealed .pqb-summary { opacity: 1; }
.pqb-question { flex: none; margin: .5cqw 0 1.2cqw; font-size: max(17px, 2.5cqw); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.pqb-question--reading { flex: 1; margin-top: 1.4cqw; font-size: max(20px, 3.6cqw); }
.pqb-question--result { margin: .2cqw 0 1.4cqw; font-size: max(15px, 2.1cqw); }
.pqb-readbar { flex: none; height: .5cqw; overflow: hidden; border-radius: 1cqw; background: rgba(255, 255, 255, .16); }
.pqb-readbar span { display: block; width: 0; height: 100%; background: var(--pqg-accent); }
.pqb-tiles { display: grid; flex: 1; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 1cqw; min-height: 0; }
.pqb-tile { position: relative; display: flex; align-items: center; gap: 1.2cqw; min-height: 0; padding: 0 1.6cqw; border-radius: .5cqw; background: var(--c); color: #fff; font-size: max(19px, 2.4cqw); font-weight: 800; transition: background .3s, color .3s; }
.pqb-shape { display: flex; flex: none; }
.pqb-tile .pqg-shape { width: 1.9cqw; height: 1.9cqw; }
.pqb-text { flex: 1; min-width: 0; line-height: 1.15; overflow-wrap: anywhere; }
.pqb-stat { display: none; flex-direction: column; align-items: flex-end; line-height: 1.05; }
.pqb-stat b { font-size: 2.3cqw; font-weight: 900; }
.pqb-stat small { display: flex; align-items: center; gap: .3cqw; font-size: 1.2cqw; font-weight: 700; }
.pqb-bar { display: none; position: absolute; left: 0; right: 0; bottom: 0; height: .55cqw; overflow: hidden; border-radius: 0 0 .5cqw .5cqw; background: rgba(0, 0, 0, .28); }
.pqb-bar span { display: block; width: 0; height: 100%; background: var(--c); filter: brightness(1.3); transition: width .45s ease-out; }
.pqb-tag, .pqb-tick { display: none; }
.is-revealed .pqb-stat { display: flex; }
.is-revealed .pqb-bar { display: block; }
.is-revealed .pqb-bar span { width: var(--w); }
.is-revealed .pqb-tile:not(.is-right) { background: #1d1d1d; background: color-mix(in srgb, var(--c) 30%, #000); color: rgba(255, 255, 255, .62); }
.is-revealed .pqb-tile.is-right { box-shadow: 0 0 0 .25cqw #fff; }
.is-revealed .pqb-tile.is-right .pqb-tick { display: block; width: 2.2cqw; height: 2.2cqw; }
.is-revealed .pqb-tag { position: absolute; top: -1.15cqw; right: .8cqw; display: inline-flex; align-items: center; gap: .3cqw; padding: .2cqw .7cqw; border-radius: 999px; font-size: 1.05cqw; font-weight: 800; white-space: nowrap; }
.pqb-tag--right { background: #fff; color: var(--pqg-ink); }
.pqb-tag--error { background: var(--pqg-board-muted); color: var(--pqg-ink); }

.pqg-board--ranking { padding: .9cqw 1.8cqw; }
.pqb-rank-title { display: flex; flex: none; align-items: baseline; gap: 1cqw; margin-bottom: .6cqw; }
.pqb-rank-title b { font-size: 2cqw; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; }
.pqb-rank-title span { color: var(--pqg-board-muted); font-size: 1.4cqw; font-weight: 700; }
.pqb-rows { display: flex; flex-direction: column; gap: .45cqw; margin: 0; padding: 0; list-style: none; }
.pqb-row { display: grid; grid-template-columns: 4cqw 2.7cqw minmax(0, 1fr) 5cqw 4.5cqw 6cqw; align-items: center; gap: 1cqw; height: 3.15cqw; padding: 0 1.4cqw 0 .6cqw; border: .14cqw solid transparent; border-radius: .4cqw; background: rgba(255, 255, 255, .09); font-size: 1.75cqw; font-weight: 800; opacity: 0; transform: translateY(1.6cqw); transition: opacity .3s, transform .35s cubic-bezier(.2, .9, .3, 1.2); }
.pqb-row.is-landed { opacity: 1; transform: none; }
.pqb-row.is-first { border-color: var(--pqg-accent); }
.pqb-row.is-first .pqb-rank { color: var(--pqg-accent); }
.pqb-row.is-me { background: rgba(21, 101, 192, .5); }
.pqb-rank { text-align: right; }
.pqb-portrait { display: block; width: 2.5cqw; height: 2.5cqw; border-radius: .4cqw; }
.pqb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pqb-flame { display: flex; align-items: center; justify-content: flex-end; gap: .2cqw; color: var(--pqg-warn); font-size: 1.35cqw; }
.pqb-delta { display: flex; align-items: center; gap: .15cqw; font-size: 1.25cqw; }
.pqb-delta.is-up { color: var(--pqg-bonus); }
.pqb-delta.is-down { color: var(--pqg-warn); }
.pqb-score { text-align: right; }
.pqb-climb { display: flex; flex: none; align-items: center; gap: .5cqw; margin-top: .5cqw; color: var(--pqg-bonus); font-size: 1.35cqw; font-weight: 800; opacity: 0; transition: opacity .3s; }
.pqb-climb.is-landed { opacity: 1; }

.pqb-podium { width: 100%; }
.pqb-slots { display: flex; flex-direction: column; gap: .5cqw; margin: 0; padding: 0; list-style: none; }
.pqb-slots li { display: grid; grid-template-columns: 4cqw minmax(0, 1fr) 5cqw; gap: 1cqw; font-size: 1.9cqw; font-weight: 800; text-align: left; }
.pqb-slots li span { color: var(--pqg-accent); text-align: right; }
.pqb-slots li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pqb-first-label { color: var(--pqg-accent); font-size: 1.25cqw; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pqb-first-name { font-size: 2.9cqw; font-weight: 900; line-height: 1.1; }
.pqb-first-score { color: var(--pqg-accent); font-size: 2.6cqw; font-weight: 900; line-height: 1.05; }
.pqb-others { display: flex; flex-wrap: wrap; justify-content: center; gap: .2cqw 1.4cqw; margin-top: .4cqw; font-size: 1.3cqw; font-weight: 800; }
.pqb-others i, .pqb-feet i { color: var(--pqg-accent); font-style: normal; }
.pqb-feet { margin-top: .3cqw; color: var(--pqg-board-muted); font-size: 1.05cqw; font-weight: 700; }
.pqb-feet span { margin-left: .6cqw; color: #fff; }
.pqb-endrows { display: grid; grid-template-columns: auto auto auto; gap: .1cqw 1.6cqw; margin: .5cqw 0 0; padding: 0; list-style: none; font-size: 1.55cqw; font-weight: 800; }
.pqb-endrows li { display: contents; }
.pqb-endrows span:first-child, .pqb-endrows span:last-child { color: var(--pqg-accent); }
.pqb-endrows span:nth-child(2) { text-align: left; }

/* confetti */
.pqg-confetti span, .pqp-confetti span { position: absolute; top: -4%; width: .7cqw; height: .35cqw; border-radius: 1px; animation-name: pqg-fall, pqg-spin; animation-timing-function: linear; animation-iteration-count: 3; }
.pqp-confetti span { width: 8px; height: 4px; }
@keyframes pqg-fall { from { top: -4%; } to { top: 104%; } }
@keyframes pqg-spin { from { rotate: 0deg; } to { rotate: 540deg; } }
@keyframes pqg-pulse { 50% { opacity: .45; } }

/* ---------- the host's bar ---------- */
.pqg-hostbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-height: 64px; padding: 10px 14px; background: #fff; color: var(--pqg-ink); }
.pqg-hostbar-status { color: var(--pqg-ink); font-size: 14px; font-weight: 800; }
.pqg-hostbar-hint { flex: 1; min-width: 120px; color: var(--pqg-muted); font-size: 13px; }
.pqg-hostbar .pqg-btn { margin-left: auto; }
.pqg-hostbar .pqg-btn:focus-visible { outline-color: var(--pqg-brand); }

/* ---------- the phone ---------- */
.pqg-phone-col { display: flex; justify-content: center; }
.pqg-phone { display: flex; width: 100%; }
.pqg--duo .pqg-phone { padding: 9px; border-radius: 34px; background: #05070D; box-shadow: 0 12px 30px rgba(14, 21, 82, .25), inset 0 0 0 1.5px #2A3040; }
.pqg-phone-screen { position: relative; display: flex; flex: 1; flex-direction: column; min-height: 520px; overflow: hidden; border-radius: 26px; outline: none; background: var(--pqg-phone-bg); color: #fff; transition: background-color .25s; }
.pqg--single .pqg-phone-screen { min-height: 540px; border-radius: 18px 18px 0 0; }
.pqp--result.is-right { background: #15803D; }
.pqp--result.is-wrong { background: #B91C1C; }
/* on the green and red pages the small panels darken, so small text keeps 4.5:1 */
.pqp--result:is(.is-right, .is-wrong) :is(.pqg-chip--dark, .pqp-me, .pqp-boxes span, .pqp-progress) { background: rgba(0, 0, 0, .22); }
.pqp--result:is(.is-right, .is-wrong) .pqg-chip--dark { color: #fff; }
.pqp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 14px 14px 0; }
.pqp-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.pqp-logo { display: flex; padding: 5px 12px; border-radius: 999px; background: #fff; }
.pqp-logo img { display: block; width: auto; height: 20px; }
.pqp-me { display: flex; align-items: center; gap: 6px; max-width: 52%; padding: 3px 10px 3px 3px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 12.5px; font-weight: 800; }
.pqp-me-img { flex: none; width: 26px; height: 26px; border-radius: 50%; }
.pqp-me-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pqp-me b { color: #FDE68A; white-space: nowrap; }
.pqp-body { position: relative; display: flex; flex: 1; flex-direction: column; padding: 12px 14px 16px; }
.pqp-center { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.pqp-title { font-size: 19px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.pqp-title--big { font-size: 26px; }
.pqp-muted { color: var(--pqg-board-muted); font-size: 14px; }
.pqp-muted b { color: #fff; }
.pqp-muted--light { color: rgba(255, 255, 255, .9); }
.pqp-kicker { color: #94A3B8; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.pqp-join { justify-content: flex-start; gap: 8px; padding-top: 4px; }
.pqp-figure { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 112px; height: 128px; border-radius: 50%; background: radial-gradient(circle at 50% 58%, rgba(255, 255, 255, .1), transparent 66%); }
.pqp-figure-img { display: block; width: auto; height: 116px; }
.pqp-figure--end { width: 150px; }
.pqp-flag { position: absolute; right: 4px; bottom: 14px; width: 30px; height: 30px; color: #E4E9F4; }
.pqp-badge { position: absolute; right: 4px; bottom: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #22C55E; color: #fff; box-shadow: 0 0 0 3px var(--pqg-phone-bg); }
.pqp-badge .pqg-ico { width: 18px; height: 18px; }
.pqp-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 8px 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; font-size: 13.5px; font-weight: 800; text-decoration: none; }
.pqp-ghost:hover { background: rgba(255, 255, 255, .16); }
.pqp-ghost .pqg-ico { width: 18px; height: 18px; }
.pqp-label { margin-top: 6px; font-size: 15px; font-weight: 800; }
.pqp-input { width: 100%; padding: 10px; border: 3px solid transparent; border-radius: 12px; background: #fff; color: var(--pqg-ink); font-size: 18px; font-weight: 800; text-align: center; }
.pqp-input:focus { border-color: var(--pqg-brand); outline: none; }
.pqp-input:focus-visible { outline: 3px solid var(--pqg-accent); outline-offset: 2px; }
.pqp-error { color: #FCA5A5; font-size: 13px; font-weight: 700; }
.pqp-primary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 12px; border: 0; border-radius: 12px; background: var(--pqg-brand); color: #fff; box-shadow: 0 4px 0 var(--pqg-brand-dark); cursor: pointer; font-size: 17px; font-weight: 800; text-decoration: none; }
.pqp-primary:hover { background: #1976D2; }
.pqp-note { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .07); font-size: 13.5px; text-align: left; }
.pqp-note .pqg-ico { width: 22px; height: 22px; }

.pqp-ring { display: grid; place-items: center; width: 150px; height: 150px; border: 8px solid rgba(255, 255, 255, .08); border-radius: 50%; box-shadow: inset 0 0 0 10px var(--pqg-phone-bg), inset 0 0 0 12px rgba(255, 255, 255, .08); }
.pqp-ring span { color: var(--pqg-accent); font-size: 64px; font-weight: 900; line-height: 1; }
.pqp-ring span.is-go { font-size: 38px; }
.pqp-bigicon { width: 44px; height: 44px; color: #64748B; }
.pqp-bigicon--gold { color: #F5C542; }
.pqp-question { font-size: 21px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.pqp-readbar, .pqp-timer { display: flex; width: 100%; height: 6px; overflow: hidden; border-radius: 6px; background: rgba(255, 255, 255, .12); }
.pqp-readbar span { display: block; width: 0; height: 100%; background: var(--pqg-accent); }
.pqp-qhead { display: flex; align-items: baseline; justify-content: space-between; }
.pqp-seconds { font-size: 26px; font-weight: 900; line-height: 1; }
.pqp-seconds.is-warn { color: var(--pqg-warn); }
.pqp-timer { justify-content: flex-end; margin: 6px 0 10px; }
.pqp-timer span { display: block; height: 100%; border-radius: 6px; background: var(--pqg-board-muted); }
.pqp-timer span.is-bonus { background: var(--pqg-bonus); }
.pqp-timer span.is-warn { background: var(--pqg-warn); }
.pqp-question--small { margin-bottom: 12px; font-size: 17px; text-align: left; }
.pqp-tiles { display: grid; flex: 1; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(96px, 1fr); gap: 10px; }
.pqp-tiles.is-list { grid-template-columns: 1fr; grid-auto-rows: minmax(56px, auto); }
.pqp-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px 8px 14px; border: 0; border-radius: 14px; background: var(--c); color: #fff; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .22); cursor: pointer; font-size: 19px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; transition: transform .1s, filter .1s; }
.pqp-tiles.is-list .pqp-tile { flex-direction: row; justify-content: flex-start; padding: 10px 14px; text-align: left; }
.pqp-tile .pqg-shape { width: 30px; height: 30px; }
.pqp-tile:hover { filter: brightness(1.08); }
.pqp-tile.is-pressed { transform: scale(.95); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .22); }
.pqp-tile:focus-visible { outline-offset: 3px; }
.pqp-sent { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 16px; background: var(--c); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .22); }
.pqp-sent .pqg-shape { width: 40px; height: 40px; color: #fff; }
.pqp-sent .pqp-badge { right: -10px; bottom: -10px; }

.pqp-verdict { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.pqp-verdict .pqg-ico { width: 46px; height: 46px; }
.pqp-points { color: #FDE68A; font-size: 26px; font-weight: 900; }
.pqp-streak { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 800; }
.pqp-streak .pqg-ico { color: #FDBA74; }
.pqp-progress { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 13.5px; font-weight: 800; }
.pqp-progress--dark { background: rgba(255, 255, 255, .08); }
.pqp-boxes { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 8px; width: 100%; margin-top: 6px; }
.pqp-boxes span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border-radius: 12px; background: rgba(255, 255, 255, .12); }
.pqp-boxes small { color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pqp-boxes b { font-size: 21px; font-weight: 900; }
.pqp-boxes i { font-size: 13px; font-style: normal; font-weight: 700; }

.pqp-wait, .pqp-mine { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.pqp-center[data-wait] .pqp-mine, .pqp-center[data-podium-phone] .pqp-mine { display: none; }
.pqp-center[data-wait].is-ready .pqp-wait, .pqp-center[data-podium-phone].is-ready .pqp-wait { display: none; }
.pqp-center[data-wait].is-ready .pqp-mine, .pqp-center[data-podium-phone].is-ready .pqp-mine { display: flex; }
.pqp-rankbig { display: flex; align-items: baseline; gap: 8px; font-size: 64px; font-weight: 900; line-height: 1; }
.pqp-rankbig small { color: var(--pqg-board-muted); font-size: 20px; font-weight: 700; }

.pqp-podium { display: flex; align-items: flex-end; justify-content: center; gap: 6px; width: 100%; max-width: 260px; margin: 0 auto; }
.pqp-step { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; }
.pqp-step.is-empty { visibility: hidden; }
.pqp-step b { display: flex; align-items: flex-start; justify-content: center; width: 100%; padding-top: 6px; border-radius: 10px 10px 0 0; background: #1E293B; color: #94A3B8; font-size: 24px; font-weight: 900; }
.pqp-step--1 b { height: 92px; }
.pqp-step--2 b { height: 66px; }
.pqp-step--3 b { height: 48px; }
.pqp-step.is-mine b { background: #F5C542; color: var(--pqg-phone-bg); }
.pqp-step-img { display: block; width: auto; height: 82px; }
.pqp-step-names { display: flex; align-items: flex-end; min-height: 2.4em; padding: 0 2px 6px; font-size: 12.5px; font-weight: 800; line-height: 1.15; opacity: 0; overflow-wrap: anywhere; transition: opacity .3s; }
.pqp-podium.is-final .pqp-step-names, .pqp-step.is-on .pqp-step-names { opacity: 1; }
.pqp-confetti { position: absolute; inset: -30px -14px; overflow: hidden; pointer-events: none; }
.pqp-cta { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); }
.pqp-cta p { color: #E4E9F4; font-size: 13.5px; line-height: 1.4; }

/* cards that stand in for the shared screen on a single column */
.pqp-card { width: 100%; margin-top: 14px; padding: 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; background: rgba(255, 255, 255, .06); text-align: left; }
.pqp--result.is-right .pqp-card, .pqp--result.is-wrong .pqp-card { background: rgba(15, 23, 43, .35); }
.pqp-card-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; color: var(--pqg-board-muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pqp-card-title span { font-weight: 700; letter-spacing: 0; text-transform: none; }
.pqp-card-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; }
.pqp-card-sub b { color: #FDE68A; }
.pqp-stats { display: flex; flex-direction: column; gap: 7px; margin: 8px 0 0; padding: 0; list-style: none; }
.pqp-stats li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 4px 8px; font-size: 14px; font-weight: 700; }
.pqp-stat-shape { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--c); }
.pqp-stat-shape .pqg-shape { width: 14px; height: 14px; color: #fff; }
.pqp-stat-text em { display: inline-flex; align-items: center; gap: 3px; color: #86EFAC; font-size: 12px; font-style: normal; }
.pqp-stat-bar { grid-column: 2 / 4; height: 5px; overflow: hidden; border-radius: 5px; background: rgba(255, 255, 255, .12); }
.pqp-stat-bar span { display: block; width: 0; height: 100%; background: var(--c); transition: width .45s; }
.pqp-card[data-reveal]:not(.is-revealed) .pqp-stats b, .pqp-card[data-reveal]:not(.is-revealed) .pqp-card-sub, .pqp-card[data-reveal]:not(.is-revealed) em { visibility: hidden; }
.pqp-card.is-revealed .pqp-stat-bar span { width: var(--w); }
.pqp-list { display: flex; flex-direction: column; gap: 5px; margin: 6px 0 0; padding: 0; list-style: none; }
.pqp-list li { display: grid; grid-template-columns: 30px 26px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 9px; background: rgba(255, 255, 255, .06); font-size: 14px; font-weight: 800; }
.pqp-list li.is-me { background: rgba(21, 101, 192, .55); }
.pqp-list-rank { color: #FDE68A; text-align: right; }
.pqp-list-img { width: 26px; height: 26px; border-radius: 6px; }
.pqp-list-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pqp-list-flame { display: flex; align-items: center; gap: 2px; color: #FDBA74; font-size: 12px; }

/* ---------- less motion ---------- */
.pqg--reduced *, .pqg--reduced *::before, .pqg--reduced *::after { animation: none !important; transition: none !important; }
.pqg--reduced .pqb-timer, .pqg--reduced .pqp-timer { visibility: hidden; }
