/* Citeuropass Audit 2026: the board game's colours, light and readable on a projector. */
:root {
  --paper: #F4F2EC; --card: #FFFFFF; --ink: #16213E; --muted: #5E6886; --line: #E3E1D8; --soft: #EEF1F8;
  --navy: #1F2A63; --royal: #2B48A0; --brand: #274F87; --gold: #E3B505; --gold-soft: #F8E7A3; --sun: #FFD500;
  --turq: #56BCBC; --red: #E3262F; --red-soft: #FDE3E4; --green: #2E9E5B; --green-soft: #DDF3E5;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 10px 30px rgba(22, 33, 62, 0.08), 0 2px 6px rgba(22, 33, 62, 0.06);
  --radius: 22px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--paper); color: var(--ink); font-family: var(--font); font-variant-ligatures: none; -webkit-font-smoothing: antialiased; }
.ic { display: inline-block; vertical-align: middle; flex: none; }
.badge { display: inline-grid; place-items: center; border-radius: 50%; flex: none; box-shadow: 0 0 0 4px #fff, 0 4px 12px rgba(22, 33, 62, 0.18); overflow: hidden; vertical-align: middle; }
.badge img { width: 74%; height: 74%; object-fit: contain; }
.muted { color: var(--muted); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 17px; letter-spacing: 0.02em; background: var(--soft); color: var(--ink); white-space: nowrap; }
/* Theme chips, as in the board's legend */
.th-entre { background: var(--gold); color: var(--ink); }
.th-frugal { background: var(--royal); color: var(--sun); }
.th-citizen { background: #fff; color: var(--royal); box-shadow: inset 0 0 0 2.5px var(--royal); }
@keyframes pop { 0% { transform: scale(0.7); opacity: 0; } 60% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1); } }
@keyframes rise { 0% { transform: translateY(0) scale(0.6); opacity: 0; } 15% { opacity: 1; transform: translateY(-40px) scale(1); } 100% { transform: translateY(-460px) scale(1.1); opacity: 0; } }
@keyframes slideup { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulse { 50% { transform: scale(1.08); } }
@keyframes blink { 50% { opacity: 0.35; } }
@keyframes stamp { 0% { transform: rotate(-14deg) scale(2.6); opacity: 0; } 60% { transform: rotate(-14deg) scale(0.92); opacity: 1; } 100% { transform: rotate(-14deg) scale(1); opacity: 1; } }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 30%, 70% { transform: translateX(5px); } 50% { transform: translateX(-5px); } }
@keyframes podium { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.pop { animation: pop 0.45s cubic-bezier(.2,.9,.3,1.2) both; }
.slideup { animation: slideup 0.5s ease-out both; }
.blink { animation: blink 1.2s ease-in-out infinite; }

/* ============================================================ big screen */
/* Text colours that stay readable on a daylit projector: gold and green are kept for fills. */
body.host { overflow: hidden; --gold-text: #9A6F00; --green-text: #1E7A45; }
/* Cards that hold on a projector: a firmer shadow and a visible edge (big screen only). */
body.host { --shadow: 0 2px 0 rgba(22, 33, 62, 0.10), 0 10px 26px rgba(22, 33, 62, 0.10); }
:where(body.host) .card { border: 2px solid #DAD7CC; } /* :where keeps the weight of .card, so .endtalk keeps its navy edge */
#stage { width: 1600px; height: 900px; position: absolute; left: 50%; top: 50%; transform-origin: center center; overflow: hidden; background: var(--paper); }
#stage::before { /* faint board rings in the corner */
  content: ''; position: absolute; right: -360px; bottom: -420px; width: 1100px; height: 1100px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, transparent 0 29%, rgba(43,72,160,0.05) 29% 36%, transparent 36% 43%, rgba(227,181,5,0.07) 43% 50%, transparent 50%);
}
#topbar { position: absolute; left: 0; right: 0; top: 0; height: 92px; display: flex; align-items: center; gap: 26px; padding: 0 30px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 4px 18px rgba(22,33,62,0.05); z-index: 5; }
#brand { display: flex; align-items: center; gap: 18px; }
#brand img { height: 58px; }
#brand .sep { width: 2px; height: 48px; background: var(--line); }
#brand .word { font-weight: 900; font-size: 36px; letter-spacing: 0.06em; color: var(--navy); line-height: 1; }
#brand .word small { display: block; font-size: 16px; letter-spacing: 0.14em; color: var(--gold-text); margin-top: 6px; font-weight: 800; }
#auditclock { flex: 1; display: flex; align-items: center; gap: 16px; margin-left: 30px; }
#auditclock .track { flex: 1; height: 14px; border-radius: 99px; background: var(--soft); position: relative; }
#auditclock .track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--gold); transition: background 0.6s; }
#auditclock .walker { position: absolute; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(22,33,62,0.25); transition: left 1s linear, background 0.6s; }
/* The walker walks without bouncing: one hop when the minute changes; it pulses, in red, for the last two minutes. */
#auditclock .walker.walk { animation: none; }
#auditclock .walker.hop { animation: pulse 0.6s ease-in-out 1; }
#topbar.late #auditclock .track i { background: var(--red); }
#topbar.late #auditclock .walker { background: var(--red); animation: pulse 1s ease-in-out infinite; }
#auditclock .hq { width: 46px; height: 46px; border-radius: 12px; background: var(--soft); color: var(--royal); display: grid; place-items: center; }
#clock { min-width: 250px; text-align: right; }
#clock b { display: block; font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
#clock small { font-size: 16px; font-weight: 700; color: var(--navy); letter-spacing: 0.05em; white-space: nowrap; }
#clock.late b { color: var(--red); }
/* A clean frame before the first view: no "--" values, a quiet "Connecting..." */
body.host:not(.ready) #bottombar > *, body.host:not(.ready) #clock b { visibility: hidden; }
#main .booting { height: 100%; display: grid; place-items: center; font-size: 28px; font-weight: 800; color: var(--muted); }
#main { position: absolute; left: 0; right: 0; top: 92px; bottom: 128px; padding: 26px 36px 18px; }
/* Fixed side columns: four team chips shrink instead of pushing the join QR code off the screen. */
#bottombar { position: absolute; left: 0; right: 0; bottom: 0; height: 128px; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: 420px minmax(0, 1fr) 270px; gap: 26px; align-items: center; padding: 0 28px; z-index: 5; }
.gauge-head { position: relative; display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.gauge-head span { font-weight: 800; font-size: 16px; letter-spacing: 0.06em; color: var(--navy); }
.gauge-head b { font-size: 40px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; }
/* A change of confidence: "+3%" pops up by the value for 2 s */
.gauge-head .gdelta { position: absolute; right: 0; top: -42px; font-size: 28px; font-weight: 900; letter-spacing: 0; color: #fff; padding: 2px 12px; border-radius: 99px; line-height: 1.2; font-variant-numeric: tabular-nums; animation: gpop 2.2s ease-out forwards; pointer-events: none; }
.gauge-head .gdelta.up { background: var(--green); }
.gauge-head .gdelta.down { background: var(--red); }
@keyframes gpop { 0% { transform: translateY(10px) scale(0.6); opacity: 0; } 12% { transform: none; opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }
.gauge { position: relative; height: 26px; border-radius: 99px; background: var(--soft); margin-bottom: 26px; }
.gauge .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; transition: width 1s cubic-bezier(.3,.8,.3,1), background 0.6s; }
.gauge .mark { position: absolute; top: -8px; bottom: -8px; width: 4px; border-radius: 2px; background: var(--navy); }
.gauge .mark::after { content: attr(data-label); position: absolute; top: 38px; left: 50%; transform: translateX(-50%); font-size: 18px; font-weight: 800; letter-spacing: 0.04em; color: var(--navy); white-space: nowrap; }
#teamstrip { display: flex; gap: 10px; justify-content: center; min-width: 0; }
/* Team chips: white, the team's colour on the left edge; each bar has its theme's icon, a check once the label is earned. */
.tchip { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 18px; background: #fff; border: 2px solid var(--line); border-left: 6px solid var(--tc, var(--line)); flex: 1 1 0; min-width: 0; max-width: 290px; }
.tchip .bdg { position: relative; display: grid; flex: none; }
.tchip .cupn { position: absolute; right: -10px; bottom: -8px; display: inline-flex; align-items: center; gap: 1px; padding: 2px 6px 2px 4px; border-radius: 99px; background: var(--gold); color: var(--ink); font-size: 15px; font-weight: 900; line-height: 1.1; box-shadow: 0 0 0 2px #fff; }
.tchip .bars { display: grid; gap: 5px; flex: 1; min-width: 0; }
.tchip .lrow { display: flex; align-items: center; gap: 6px; }
.tchip .lrow.new { animation: pop 0.5s 2; }
.tchip .bar { flex: 1; min-width: 30px; height: 14px; border-radius: 99px; background: var(--soft); box-shadow: none; position: relative; overflow: hidden; }
.tchip .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; transition: width 0.8s ease; }
.tchip .lrow span { font-size: 20px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); min-width: 38px; display: inline-flex; justify-content: flex-end; }
.tchip .lrow.done span { color: var(--green-text); }
#joinmini { display: flex; gap: 12px; align-items: center; justify-content: flex-end; min-width: 0; }
#joinmini canvas { width: 96px; height: 96px; image-rendering: pixelated; border-radius: 8px; flex: none; }
#joinmini .t { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.35; min-width: 0; }
#joinmini .t b { display: block; color: var(--ink); font-size: 17px; word-break: break-all; }
#joinmini .t .warn { color: var(--red); font-weight: 800; }

/* Moderator controls: above the bottom bar, shown only while the mouse moves (host.js adds body.ctl), with the pointer. */
#controls { position: absolute; left: 14px; right: 14px; bottom: 140px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; opacity: 0; transition: opacity 0.2s; z-index: 30; align-items: center; pointer-events: none; }
body.ctl #controls, body.dlg #controls { opacity: 1; }
body.ctl #controls > * { pointer-events: auto; }
body.host:not(.ctl):not(.dlg), body.host:not(.ctl):not(.dlg) * { cursor: none !important; }
#controls button { font-family: var(--font); font-weight: 800; font-size: 14px; padding: 10px 13px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; box-shadow: var(--shadow); }
#controls button.on { background: var(--navy); color: #fff; }
#controls button.primary { background: var(--gold); border-color: var(--gold); font-size: 16px; }
#controls button[hidden] { display: none; }
#controls .pace { font-size: 14px; font-weight: 800; padding: 10px 13px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
#pausedflag { position: absolute; inset: 0; display: none; place-items: center; background: rgba(244, 242, 236, 0.85); z-index: 25; text-align: center; color: var(--navy); }
#pausedflag > div { max-width: 1100px; padding: 30px 56px; border-radius: 26px; background: #fff; border-top: 8px solid var(--gold); box-shadow: 0 20px 50px rgba(22, 33, 62, 0.15); }
#pausedflag b { display: block; font-weight: 900; font-size: 64px; letter-spacing: 0.1em; }
#pausedflag span { display: block; max-width: 1000px; margin: 14px auto 0; font-size: 28px; font-weight: 700; line-height: 1.35; color: var(--ink); }
#pausedflag span:empty { display: none; }
#offline { position: absolute; left: 50%; top: 104px; transform: translateX(-50%); display: none; background: var(--red); color: #fff; padding: 10px 18px; border-radius: 12px; font-weight: 700; font-size: 20px; z-index: 40; }
#banner { position: absolute; left: 50%; top: 100px; transform: translateX(-50%); display: none; background: var(--navy); color: #fff; padding: 9px 20px; border-radius: 999px; font-weight: 800; z-index: 20; font-size: 20px; letter-spacing: 0.04em; white-space: nowrap; }
#soundgate { position: absolute; inset: 0; z-index: 50; background: rgba(244,242,236,0.97); display: grid; place-items: center; text-align: center; cursor: pointer; }
#soundgate img { height: 90px; }
#soundgate h1 { font-size: 72px; font-weight: 900; letter-spacing: 0.08em; color: var(--navy); margin: 20px 0 10px; }
#soundgate p { font-size: 24px; color: var(--muted); font-weight: 600; }
#soundgate.mini { inset: auto auto 140px 24px; width: auto; height: auto; padding: 18px 26px; border-radius: 999px; background: var(--navy); box-shadow: var(--shadow); }
#soundgate.mini img, #soundgate.mini h1 { display: none; }
#soundgate.mini p { margin: 0; color: #fff; font-size: 26px; font-weight: 800; }
#soundgate.mini p::before { content: '🔊 Turn on sound'; }
#soundgate.mini p { font-size: 0; } #soundgate.mini p::before { font-size: 26px; }
#reactions { position: absolute; inset: 0; pointer-events: none; z-index: 20; overflow: hidden; }
#reactions span { position: absolute; bottom: 150px; font-size: 58px; animation: rise 3s ease-out forwards; }

/* generic screen pieces */
.kicker { font-weight: 800; font-size: 20px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
/* Moderator hints ("T to change", "Press J to close") only show with the controls, never on the audience screen. */
body.host:not(.ctl) .ctlonly { display: none; }
.title { font-weight: 900; font-size: 54px; line-height: 1.1; letter-spacing: -0.01em; margin: 6px 0 18px; color: var(--navy); }
.lead { font-size: 27px; line-height: 1.45; font-weight: 500; }
.center { text-align: center; }
.row { display: flex; gap: 14px; align-items: center; }

/* lobby */
.lobby { display: grid; grid-template-columns: 790px 1fr; gap: 26px; height: 100%; }
.joincard { padding: 24px 28px; display: grid; gap: 14px; align-content: start; min-height: 0; }
.joincard .qrbox { display: grid; grid-template-columns: 360px 1fr; gap: 26px; align-items: center; }
.joincard canvas.qr { display: block; width: 360px; height: 360px; image-rendering: pixelated; border-radius: 14px; }
.joincard .jside { display: grid; gap: 16px; align-content: center; }
.joincard .url { font-weight: 800; font-size: 22px; color: var(--royal); word-break: break-all; line-height: 1.35; }
.wifi { display: flex; gap: 10px; align-items: center; font-size: 19px; font-weight: 700; line-height: 1.35; }
.chip.warnchip { background: var(--red); color: #fff; white-space: normal; line-height: 1.3; font-size: 17px; border-radius: 14px; }
.steps { display: grid; gap: 12px; font-size: 19px; font-weight: 600; }
.steps div { display: flex; gap: 12px; align-items: center; }
.steps .n { width: 34px; height: 34px; border-radius: 50%; background: var(--soft); color: var(--royal); display: grid; place-items: center; font-weight: 900; flex: none; }
.joincard .row .chip { font-size: 19px; }
.plist { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; max-height: 180px; overflow: hidden; }
.plist .chip { font-size: 19px; background: var(--paper); }
.plist .chip.pop { animation: pop 0.4s both; }
.plist .chip.off { opacity: 0.45; filter: grayscale(1); }
.plist .chip button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; padding: 0 0 0 2px; opacity: 0; pointer-events: none; }
body.ctl .plist .chip button { opacity: 1; pointer-events: auto; }
.mapcard { position: relative; display: grid; place-items: center; padding: 18px; overflow: hidden; min-height: 0; }
.mapcard .stats { position: absolute; left: 30px; bottom: 26px; display: grid; gap: 4px; z-index: 1; }
.mapcard .stats b { font-size: 46px; font-weight: 900; color: var(--navy); line-height: 1; }
.mapcard .pin { position: absolute; translate: -50% -50%; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: var(--navy); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.mapcard .pin.pop { animation: pop 0.4s both; }

/* teams */
.teams { display: grid; gap: 22px; align-items: start; }
.team ul { min-height: 220px; }
.team { overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.team .head { padding: 22px; display: flex; align-items: center; gap: 18px; color: #fff; }
.team .head b { font-size: 34px; font-weight: 900; letter-spacing: 0.04em; }
.team ul { list-style: none; margin: 0; padding: 18px 24px; display: grid; gap: 12px; align-content: start; font-size: 24px; font-weight: 700; }
.team li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.team li small { color: var(--ink); font-weight: 500; font-size: 18px; }
/* Five or more in a team: one line per person, so the cards stay above the bottom bar. */
.teams.dense .team .head { padding: 14px 18px; }
.teams.dense .team ul { min-height: 0; padding: 12px 20px; gap: 8px; font-size: 21px; }
.teams.dense .team li { flex-wrap: nowrap; min-width: 0; }
.teams.dense .team li small { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* briefing */
.brief { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; height: 100%; align-items: center; }
.memo { padding: 34px 40px; position: relative; }
.memo .hdr { display: grid; grid-template-columns: 100px 1fr; gap: 4px 12px; font-size: 20px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 2px dashed var(--line); }
.memo .hdr span { color: var(--muted); font-weight: 700; }
.memo .hdr b { font-weight: 700; }
.memo p { font-size: 25px; line-height: 1.5; margin: 0 0 14px; }
.rules { padding: 30px 34px; display: grid; gap: 22px; }
.rules .r { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; font-size: 22px; line-height: 1.4; }
.rules .r .i { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; }
.scorebox { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 21px; font-weight: 600; }
.scorebox div { background: var(--paper); border-radius: 14px; padding: 10px 14px; line-height: 1.35; }
.scorebox b, .scorebox span { display: block; }
.scorebox b { margin-bottom: 2px; }

/* question: shaped like the board game's cards */
.qcard { position: relative; padding: 24px 30px 26px; }
/* The theme's colour as a band along the top of the question card */
.qcard[data-th="entre"] { box-shadow: inset 0 8px 0 var(--gold), var(--shadow); }
.qcard[data-th="frugal"] { box-shadow: inset 0 8px 0 var(--royal), var(--shadow); }
.qcard[data-th="citizen"] { box-shadow: inset 0 8px 0 #7FA2F0, var(--shadow); }
.qcard::before, .qcard::after { content: ''; position: absolute; width: 22px; height: 22px; border: 0 solid var(--ink); opacity: 0.6; }
.qcard::before { left: 12px; top: 12px; border-left-width: 2px; border-top-width: 2px; }
.qcard::after { right: 12px; bottom: 12px; border-right-width: 2px; border-bottom-width: 2px; }
.qtop { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.diff { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--ink); display: grid; place-items: center; text-align: center; line-height: 1; flex: none; }
.diff b { font-size: 28px; font-weight: 900; }
.diff small { display: block; font-size: 16px; font-weight: 900; color: var(--red); margin-top: 2px; }
.qtype { font-size: 22px; font-weight: 800; }
.watch { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 40px; font-weight: 900; font-variant-numeric: tabular-nums; min-width: 120px; justify-content: flex-end; }
.watch.low { color: var(--red); animation: pulse 0.5s ease-in-out infinite; }
/* No number yet (the answer just revealed): the stopwatch waits, keeping its place. */
.watch:has(> span:empty) { visibility: hidden; }
.qbox { border: 3px solid var(--ink); border-radius: 10px; padding: 22px 26px; font-size: 42px; line-height: 1.22; font-weight: 700; min-height: 120px; display: flex; align-items: center; }
.qbar { position: absolute; left: 30px; right: 30px; bottom: 10px; height: 6px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.qbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--navy); border-radius: 99px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
/* (.opts .opt: the remote's "optional" tag also has the class "opt" and must not become a card) */
.opts .opt { position: relative; display: flex; gap: 18px; align-items: center; padding: 18px 22px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); border: 2px solid #D5D2C6; font-size: 29px; line-height: 1.2; font-weight: 600; min-height: 96px; transition: opacity 0.4s, transform 0.4s; animation: slideup 0.4s ease-out both; }
.opt:nth-child(2) { animation-delay: 0.06s; } .opt:nth-child(3) { animation-delay: 0.12s; } .opt:nth-child(4) { animation-delay: 0.18s; }
.opt .L { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 900; background: var(--navy); color: #fff; flex: none; }
.opt.right { border-color: var(--green); background: var(--green-soft); transform: scale(1.02); }
.opt.right .L { background: var(--green); }
/* Wrong answers stay readable, in grey (never red alone: the Red team is red). */
.opt.wrong { opacity: 1; background: #F1F0EB; border-color: var(--line); box-shadow: none; color: #8F95A8; }
.opt.wrong .L { background: #B5BACA; }
/* The teams that picked each answer, popping in one after the other */
.opt .who { position: absolute; right: 14px; top: -24px; display: flex; gap: 8px; }
.opt .who .badge { animation: pop 0.45s cubic-bezier(.2,.9,.3,1.2) 0.4s both; }
.opt .who .badge:nth-child(2) { animation-delay: 0.52s; } .opt .who .badge:nth-child(3) { animation-delay: 0.64s; } .opt .who .badge:nth-child(4) { animation-delay: 0.76s; }
.tstatus { display: flex; gap: 14px; margin-top: 18px; }
.tstatus .s { display: flex; align-items: center; gap: 10px; padding: 8px 20px 8px 8px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-weight: 800; font-size: 24px; }
.tstatus .s.done { background: var(--green-soft); }
.zones { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
.zone { display: flex; gap: 16px; align-items: flex-start; padding: 16px 20px; border-radius: 16px; font-size: 23px; line-height: 1.4; font-weight: 500; animation: slideup 0.4s ease-out both; }
.zone.info { background: #E6ECFA; color: #1F2A63; }
.zone.choice { background: var(--gold-soft); color: var(--ink); font-weight: 600; }
.zone .ic { margin-top: 3px; }
/* After the answer: a more compact card, so the explanation and the dilemma fit above the bottom bar. */
.qscreen.reveal .qcard { padding: 18px 30px 20px; }
.qscreen.reveal .qtop { margin-bottom: 12px; }
.qscreen.reveal .qbox { font-size: 30px; min-height: 0; padding: 12px 22px; }
.qscreen.reveal .opts { margin-top: 14px; gap: 14px; row-gap: 28px; }
.qscreen.reveal .opt { min-height: 62px; font-size: 24px; padding: 8px 18px; }
.qscreen.reveal .opt .L { width: 46px; height: 46px; font-size: 22px; }
.qscreen.reveal .opt[style*="--nw"] { padding-right: calc(22px + var(--nw) * 52px); }
.qscreen.reveal .opt .who { top: 50%; right: 12px; transform: translateY(-50%); }
.qscreen.reveal .zones { margin-top: 14px; gap: 10px; }
.qscreen.reveal .zone { padding: 12px 18px; font-size: 21px; }
.zone.choice .cz { display: grid; gap: 8px; flex: 1; min-width: 0; }
/* The dilemma as two tiles, as on the phones: the label's points or the consortium's confidence */
.zone.choice .czh { font-weight: 800; }
body.host .chopts { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
body.host .chopt { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 18px; border-radius: 16px; background: #fff; line-height: 1.2; }
body.host .chopt b { font-size: 32px; font-weight: 900; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
body.host .chopt span { font-size: 21px; font-weight: 700; }
body.host .chopt.label { box-shadow: inset 0 0 0 3px var(--gold); }
body.host .chopt.conf { box-shadow: inset 0 0 0 3px var(--green); }
body.host .chopts .or { font-size: 22px; font-weight: 900; color: var(--muted); }
.lstat { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.lstat .ls { display: inline-flex; align-items: center; gap: 8px; padding: 3px 14px 3px 3px; border-radius: 99px; background: rgba(255,255,255,0.75); font-size: 21px; font-weight: 600; }
.lstat .ls.done { background: var(--green-soft); }
.lstat .ls b { font-weight: 800; }
.zone.choice .rule { display: flex; gap: 8px; align-items: center; font-size: 19px; font-weight: 600; line-height: 1.35; }
/* The question being read aloud: the card fills the screen. */
.qscreen.intro { height: 100%; display: grid; align-content: center; gap: 30px; }
.qscreen.intro .qbox { font-size: 52px; min-height: 230px; }
body.host .chip.discuss { font-size: 26px; padding: 10px 20px; }
/* Clean sweep: a gold audit stamp by the stopwatch (and on the board); "sweep" is also a phone class, hence body.host */
body.host .sweep { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 12px; background: var(--gold); color: var(--navy); font-size: 28px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.1; white-space: nowrap; transform: rotate(-2deg); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px rgba(31, 42, 99, 0.35), 0 6px 18px rgba(160, 120, 0, 0.35); animation: sweepin 0.6s cubic-bezier(.2,.9,.3,1.2) 0.5s both; }
body.host .sweep i { font-style: normal; letter-spacing: 0; padding: 2px 12px; border-radius: 99px; background: var(--navy); color: #fff; font-size: 24px; }
body.host .qtop .sweep + .watch { margin-left: 0; }
body.host .sweep.still { margin-left: 0; animation: none; }
body.host .sweeprow { margin-top: 22px; }
@keyframes sweepin { 0% { transform: rotate(-2deg) scale(1.8); opacity: 0; } 70% { transform: rotate(-2deg) scale(0.95); opacity: 1; } 100% { transform: rotate(-2deg) scale(1); opacity: 1; } }

/* board */
.boardview { display: grid; grid-template-columns: 650px 1fr; gap: 34px; height: 100%; align-items: center; }
.boardview svg.board { width: 650px; height: 650px; margin-top: -6px; }
.legend { display: grid; gap: 14px; }
.legend .row { display: grid; grid-template-columns: 300px 1fr; gap: 14px; align-items: center; }
.legend .goal { margin: 6px 0 0 6px; font-size: 19px; font-weight: 700; color: var(--ink); }
.legend .tl { display: flex; flex-wrap: wrap; gap: 8px; }
.legend .tl span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 6px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-weight: 800; font-size: 24px; }
.legend .tl span.done { background: var(--green-soft); }
.deltas { display: grid; gap: 10px; margin-top: 26px; }
.deltas div { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 700; }
.deltas .good { color: var(--green-text); } .deltas .bad { color: var(--red); }
.deltas .tn { min-width: 90px; color: var(--ink); }

/* spotlight */
.spot { display: grid; grid-template-columns: 430px 1fr; gap: 46px; align-items: center; height: 100%; }
.speaker { text-align: center; display: grid; justify-items: center; gap: 16px; }
.speaker .nm { font-size: 48px; font-weight: 900; color: var(--navy); line-height: 1.1; }
.speaker .meta { font-size: 22px; color: var(--muted); font-weight: 600; line-height: 1.5; }
/* The speaker's countdown: a ring around the team badge that empties, red for the last 10 seconds */
body.host .spring { --p: 1; width: 244px; height: 244px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold) calc(var(--p) * 1turn), #E6E3D8 0); }
body.host .spring.low { background: conic-gradient(var(--red) calc(var(--p) * 1turn), #E6E3D8 0); }
body.host .chip.spotchip { background: var(--gold); font-size: 20px; }
.quote { padding: 54px 44px 40px; position: relative; }
.quote::before { content: '“'; position: absolute; left: 26px; top: -46px; font-size: 160px; font-weight: 900; color: var(--gold); line-height: 1; }
.quote .prompt { font-size: 46px; line-height: 1.25; font-weight: 700; }
.spot .cup { margin-top: 24px; }
.claps { display: flex; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
.claps i { width: 26px; height: 26px; border-radius: 50%; background: var(--soft); transition: background 0.3s, transform 0.3s; }
.claps i.on { background: var(--gold); transform: scale(1.1); }
.roller { font-size: 64px; font-weight: 900; color: var(--navy); height: 90px; }
.speaker .unmute { display: inline-flex; gap: 10px; align-items: center; padding: 10px 20px; border-radius: 99px; background: var(--navy); color: #fff; font-size: 22px; font-weight: 800; }
/* Show of hands after the story: a smaller speaker, the question in the quote card, three bars filled live */
.spot.withhands .speaker { gap: 12px; }
body.host .spot.withhands .spring { width: 180px; height: 180px; }
.spot.withhands .speaker .nm { font-size: 40px; }
.spot.withhands .speaker .cup { margin-top: 8px; padding: 12px 16px; font-size: 21px; text-align: left; }
.quote.hq { padding: 40px 40px 28px; }
.quote.hq::before { font-size: 120px; top: -34px; }
.quote.hq .prompt { font-size: 36px; }
/* "hand" is also a phone class: these rules stay on the big screen */
body.host .hands { display: grid; gap: 14px; margin-top: 22px; }
body.host .hand { display: grid; grid-template-columns: 52px 1fr 64px; gap: 16px; align-items: center; }
body.host .hand .L { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 900; background: var(--navy); color: #fff; }
body.host .hand .hm { min-width: 0; }
body.host .hand .hl { font-size: 28px; font-weight: 800; line-height: 1.2; margin-bottom: 6px; }
body.host .hand .hb { height: 36px; border-radius: 10px; background: var(--soft); overflow: hidden; }
body.host .hand .hb i { display: block; width: 0; height: 100%; border-radius: 10px; background: var(--gold-soft); transition: width 0.5s; }
body.host .hand.lead .hb i { background: var(--gold); }
body.host .hand .hc { font-size: 34px; font-weight: 900; font-variant-numeric: tabular-nums; text-align: right; color: var(--navy); }
body.host .handline { display: flex; align-items: center; gap: 18px; margin-top: 18px; font-size: 24px; font-weight: 700; }

/* crises */
.crisis-intro { position: absolute; inset: 14px 26px; border-radius: 30px; background: var(--red); color: #fff; display: grid; place-items: center; text-align: center; padding: 40px; overflow: hidden; }
.crisis-intro::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.05) 0 30px, transparent 30px 60px); }
.crisis-intro > div { position: relative; }
.crisis-intro .siren { display: inline-grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,0.15); animation: pulse 0.9s ease-in-out 3; margin-bottom: 14px; }
.crisis-intro .kicker { color: rgba(255,255,255,0.85); }
.crisis-intro .title { color: #fff; font-size: 68px; }
.crisis-intro .lead { max-width: 1100px; margin: 0 auto; font-weight: 600; }
.crisis-intro .repair { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 24px; border-radius: 99px; background: rgba(255,255,255,0.18); font-weight: 700; }
.crisis-intro.ok { background: var(--green); }
.crisis-intro.ok .siren { animation: none; }
.crisishead { display: flex; align-items: center; gap: 14px; color: var(--red); font-weight: 900; font-size: 30px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; min-height: 53px; }
.crisishead .tpill { margin-left: auto; }
.mapcrisis { display: grid; grid-template-columns: 1fr 420px; gap: 26px; height: calc(100% - 70px); align-items: center; }
.mapcrisis .mapcard { height: 100%; }
.counter { font-size: 120px; font-weight: 900; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.counter small { font-size: 50px; color: var(--muted); }
.ring { width: 100%; height: 14px; border-radius: 99px; background: var(--soft); overflow: hidden; margin: 24px 0; }
.ring i { display: block; height: 100%; background: var(--red); border-radius: 99px; }
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 6px 0 18px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 4px; background: var(--line); }
.slot { position: relative; min-height: 120px; border-radius: 18px; padding: 12px 14px; font-size: 20px; line-height: 1.3; font-weight: 600; display: grid; align-content: start; gap: 6px; background: #fff; border: 3px dashed #C4C8D4; }
.slot.filled { border: 3px solid var(--green); background: #fff; box-shadow: var(--shadow); animation: pop 0.45s both; }
.slot .yr { font-size: 30px; font-weight: 900; color: var(--royal); }
.slot .yr.q { color: #9AA0B4; }
.votes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.vote { display: grid; grid-template-columns: 1fr 220px 52px; gap: 14px; align-items: center; min-height: 84px; font-size: 28px; line-height: 1.25; font-weight: 600; background: #fff; border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow); }
.vote .vb { height: 22px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.vote .vb i { display: block; height: 100%; background: var(--gold); transition: width 0.4s; }
.vote b { font-size: 28px; font-weight: 900; font-variant-numeric: tabular-nums; text-align: right; color: var(--navy); }
.vote.bad { animation: shake 0.45s; background: var(--red-soft); }
.paper { padding: 30px 44px 40px; position: relative; max-width: 1180px; margin: 10px auto 0; background: #FFFDF7; }
.paper .mast { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 34px; text-align: center; border-bottom: 4px double var(--ink); padding-bottom: 10px; margin-bottom: 4px; letter-spacing: 0.04em; }
.paper .dateline { display: flex; justify-content: space-between; font-size: 20px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--ink); padding: 6px 0; margin-bottom: 24px; }
.paper .headline { font-family: Georgia, 'Times New Roman', serif; font-size: 58px; line-height: 1.15; font-weight: 700; min-height: 140px; }
/* Long statements (some come back from the day's questions) stay within three lines. */
.paper .headline.long { font-size: 46px; min-height: 0; }
/* A statement from a question the room missed earlier: a rubric in its theme's colours */
.paper .rubric { display: flex; width: fit-content; margin: -6px 0 14px; border-radius: 6px; font-family: var(--font); font-size: 20px; font-weight: 800; letter-spacing: 0.12em; }
.stampmark { position: absolute; right: 60px; bottom: 30px; font-size: 76px; font-weight: 900; letter-spacing: 0.08em; padding: 6px 26px; border: 8px solid currentColor; border-radius: 16px; animation: stamp 0.5s cubic-bezier(.2,.9,.3,1.2) both; background: rgba(255,255,255,0.8); }
.stampmark.true { color: var(--green-text); } .stampmark.false { color: var(--red); }
/* Two thirds of the room right on a question missed earlier: REPAIRED, just after TRUE or FAKE */
.stampmark.repaired { color: var(--royal); font-size: 44px; top: -22px; right: 36px; bottom: auto; border-width: 5px; animation: repaired 0.5s cubic-bezier(.2,.9,.3,1.2) 0.6s both; }
@keyframes repaired { 0% { transform: rotate(8deg) scale(2.6); opacity: 0; } 60% { transform: rotate(8deg) scale(0.92); opacity: 1; } 100% { transform: rotate(8deg) scale(1); opacity: 1; } }
.factline { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: center; margin-top: 22px; font-size: 24px; font-weight: 600; text-align: center; }
.factline .chip { font-size: 22px; }

/* verdict: a certificate */
.cert { position: relative; margin: 0 auto; width: 1180px; padding: 34px 60px; background: #FFFDF5; border-radius: 10px; box-shadow: var(--shadow), inset 0 0 0 10px #fff, inset 0 0 0 13px var(--gold), inset 0 0 0 18px #fff, inset 0 0 0 19px var(--gold); text-align: center; }
.cert .k { font-weight: 800; letter-spacing: 0.3em; color: var(--gold-text); font-size: 16px; }
.cert h1 { font-family: Georgia, 'Times New Roman', serif; font-size: 52px; margin: 6px 0 4px; color: var(--navy); }
.cert .sub { font-size: 20px; color: var(--muted); font-weight: 600; }
.cert .grid { display: grid; grid-template-columns: 1fr 290px 1fr; gap: 26px; align-items: center; margin: 22px 0 10px; text-align: left; }
/* Suspense: the criteria appear one by one, then the seal is stamped. */
.seal { width: 270px; height: 270px; border-radius: 50%; background: radial-gradient(circle, var(--gold) 0 56%, #D3A500 56% 60%, var(--gold) 60%); display: grid; place-items: center; text-align: center; color: var(--navy); box-shadow: 0 10px 24px rgba(160,120,0,0.35); animation: stamp 0.7s 3.2s cubic-bezier(.2,.9,.3,1.2) both; }
.seal.no { background: radial-gradient(circle, #D9DCE5 0 56%, #BFC4D2 56% 60%, #D9DCE5 60%); box-shadow: 0 10px 24px rgba(22,33,62,0.2); }
.seal b { font-size: 32px; font-weight: 900; line-height: 1.15; padding: 0 22px; }
.seal b.long { font-size: 24px; }
.crit { display: grid; gap: 12px; font-size: 21px; font-weight: 600; }
.crit div { display: flex; gap: 10px; align-items: center; }
.cert .crit div { animation: slideup 0.5s ease-out both; }
.cert .crit div:nth-child(1) { animation-delay: 0.8s; } .cert .crit div:nth-child(2) { animation-delay: 1.6s; } .cert .crit div:nth-child(3) { animation-delay: 2.4s; }
.crit .y { color: var(--green-text); } .crit .n { color: var(--red); }
.tlabels { display: grid; gap: 12px; }
.tlabels .t { display: flex; gap: 12px; align-items: center; font-size: 21px; font-weight: 700; }
.tlabels .t .lb { display: flex; gap: 6px; }
.tlabels .t .lb span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 2px solid transparent; }
.tlabels .t .lb span:not(.on) { opacity: 0.25; border: 2px dashed var(--ink); }
.cert .sign { display: flex; justify-content: space-between; align-items: end; margin-top: 14px; font-size: 20px; color: var(--muted); font-weight: 600; }
.cert .sign i { font-family: Georgia, serif; font-size: 26px; color: var(--navy); }

/* podium */
.podsub { font-weight: 600; font-size: 20px; margin-top: 4px; color: var(--muted); }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 26px; height: calc(100% - 64px); }
.pod { width: 330px; display: grid; justify-items: center; gap: 10px; animation: slideup 0.6s ease-out both; }
.pod.small { width: 260px; }
.pod.first .badge { box-shadow: 0 0 0 5px #fff, 0 0 0 11px var(--gold), 0 10px 30px rgba(160, 120, 0, 0.35); }
.pod .blk { width: 100%; border-radius: 22px 22px 0 0; display: grid; align-content: start; justify-items: center; padding-top: 14px; color: #fff; font-weight: 900; font-size: 56px; line-height: 1; transform-origin: bottom; animation: podium 0.8s cubic-bezier(.2,.9,.3,1) both; box-shadow: var(--shadow); }
.pod .blk small { font-size: 18px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.pod.small .blk { font-size: 34px; padding-top: 10px; }
.pod.small .blk small { font-size: 15px; margin-bottom: 2px; }
.pod .nm { font-size: 28px; font-weight: 900; }
.pod .sc { font-size: 20px; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.35; }
.pod .sc b { color: var(--ink); font-size: 28px; }
/* Each team's award, as a plate under its block. */
.pod .award { width: 100%; margin: -10px 0 0; display: flex; gap: 10px; align-items: center; padding: 10px 14px; background: #fff; border-radius: 0 0 16px 16px; box-shadow: var(--shadow); animation: slideup 0.5s ease-out both; }
.pod .award b { display: block; font-size: 23px; font-weight: 900; color: var(--navy); line-height: 1.2; }
.pod .award span { display: block; font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.3; }

/* gifts and feedback */
.giftgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gift { padding: 18px; display: grid; gap: 8px; font-size: 21px; font-weight: 700; line-height: 1.25; position: relative; }
.gift .ic2 { font-size: 46px; }
.gift .pr { font-size: 20px; color: var(--ink); font-weight: 700; }
.gift .vb { height: 16px; border-radius: 99px; background: var(--soft); overflow: hidden; } .gift .vb i { display: block; height: 100%; background: var(--turq); transition: width 0.4s; }
/* During the vote the two leaders are outlined; at the result the gifts not bought fade and the others get a stamp. */
.gift.lead { box-shadow: 0 0 0 4px var(--turq), var(--shadow); }
.giftgrid.result .gift:not(.bought) { opacity: 0.45; filter: grayscale(1); }
.gift.bought { box-shadow: 0 0 0 4px var(--green), var(--shadow); }
.gift.bought::after { content: 'BOUGHT'; position: absolute; right: 14px; top: 14px; font-size: 20px; font-weight: 900; letter-spacing: 0.1em; color: #fff; background: var(--green); border-radius: 10px; padding: 6px 14px; animation: stamp 0.5s cubic-bezier(.2,.9,.3,1.2) both; animation-delay: var(--d, 0s); }
.fbq .q { font-weight: 900; font-size: 32px; line-height: 1.2; color: var(--navy); margin: 18px 0 8px; }
.fbrow { display: grid; grid-template-columns: 380px 1fr 60px; gap: 16px; align-items: center; font-size: 24px; font-weight: 700; margin: 8px 0; }
.fbrow b { font-variant-numeric: tabular-nums; text-align: right; }
.fbrow .vb { height: 22px; border-radius: 99px; background: var(--soft); overflow: hidden; } .fbrow .vb i { display: block; height: 100%; background: var(--royal); transition: width 0.5s; }
.fbq.small .q { font-size: 20px; margin: 2px 0 4px; color: var(--ink); }
.fbq.small .fbrow { grid-template-columns: 230px 1fr 30px; gap: 10px; font-size: 18px; margin: 3px 0; line-height: 1.15; }
.fbq.small .fbrow .vb { height: 16px; }
.fbq.small + .fbq.small { margin-top: 10px; }

/* ============================================================ big screen: individual format */
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
body.host .sec { font-size: 18px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); }
/* Bottom bar, middle: who is playing and the leaders, or how many have answered the current item */
#livestrip { display: flex; justify-content: center; min-width: 0; }
.live { display: flex; align-items: center; justify-content: center; gap: 18px; width: 100%; min-width: 0; }
.live .chip { font-size: 22px; padding: 10px 18px; flex: none; }
.live .leaders { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 19px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.live .leaders span { display: inline-flex; gap: 6px; }
.live .leaders b { font-weight: 900; color: var(--navy); }
.live.ans { flex-direction: column; gap: 8px; align-items: stretch; max-width: 640px; }
.live .lnum { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.live .lnum b { font-size: 46px; font-weight: 900; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.live .lnum span { font-size: 22px; font-weight: 800; color: var(--muted); }
.live .lbar { height: 14px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.live .lbar i { display: block; height: 100%; border-radius: 99px; background: var(--turq); transition: width 0.4s; }
/* Maps: a legend for the pins; the lobby list ends with "+N more" */
.mlegend { position: absolute; right: 26px; bottom: 22px; z-index: 1; display: flex; gap: 18px; font-size: 18px; font-weight: 700; }
.mlegend span { display: inline-flex; align-items: center; gap: 8px; }
.mlegend i { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 2.5px #fff, 0 0 0 3.5px rgba(22, 33, 62, 0.2); }
.plist .chip.more { background: var(--navy); color: #fff; }
/* Questions: double points, % right, answer bars, higher or lower */
body.host .chip.x2 { background: var(--gold); font-size: 20px; font-weight: 900; letter-spacing: 0.06em; }
body.host .chip.rightchip { background: var(--navy); color: #fff; font-size: 22px; font-weight: 800; }
.qtop .chip.rightchip { animation: pop 0.5s 0.5s both; }
.opt .ot { position: relative; flex: 1; min-width: 0; }
.opt .L { position: relative; }
.opt .ob { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(31, 42, 99, 0.08); transform-origin: left; animation: grow 0.9s ease-out 0.3s both; }
.opt.right .ob { background: rgba(46, 158, 91, 0.22); }
.opt .cnt { position: relative; margin-left: auto; text-align: right; font-size: 30px; font-weight: 900; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.opt .cnt small { display: block; margin-top: 3px; font-size: 17px; font-weight: 800; color: var(--muted); }
.opt.wrong .cnt { color: #8F95A8; }
.qscreen.reveal .opts .opt { overflow: hidden; }
.qscreen:not(.reveal) .opts.two .opt { justify-content: center; min-height: 120px; font-size: 40px; font-weight: 900; letter-spacing: 0.06em; }
.qscreen:not(.reveal) .opts.two .opt .ot { flex: none; }
.qscreen.reveal .opts.two .opt { font-size: 28px; font-weight: 900; letter-spacing: 0.04em; }
.hlplate { display: flex; align-items: center; justify-content: center; gap: 22px; width: fit-content; margin: 18px auto 0; padding: 12px 34px; border-radius: 18px; background: #fff; border: 3px solid var(--navy); box-shadow: var(--shadow); color: var(--navy); }
.hlplate .k { font-size: 22px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hlplate b { font-size: 56px; font-weight: 900; line-height: 1.05; }
.hlplate.shown { border-color: var(--green); background: var(--green-soft); color: var(--green-text); animation: pop 0.5s both; }
.qscreen.intro .hlplate { margin-top: 0; }
.qscreen.intro .hlplate b { font-size: 72px; }
.qscreen.reveal .hlplate { margin-top: 12px; padding: 6px 28px; }
.qscreen.reveal .hlplate b { font-size: 44px; }
/* Pin it */
.pinintro { height: 100%; display: grid; align-content: center; justify-items: center; gap: 10px; text-align: center; }
.pname { font-size: 96px; font-weight: 900; line-height: 1.05; letter-spacing: -0.01em; color: var(--navy); overflow-wrap: anywhere; }
.phint { font-size: 30px; font-weight: 700; color: var(--gold-text); }
.pinintro .lead { margin-top: 26px; }
.pinv { display: grid; grid-template-columns: 790px minmax(0, 1fr); gap: 30px; height: 100%; }
.pinv .mapcard { height: 100%; }
.pside { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding-top: 6px; }
.pside .pname { font-size: 64px; }
.pside .phint { font-size: 24px; }
.pside .tpill { align-self: flex-start; }
.pres { display: grid; gap: 12px; animation: slideup 0.5s ease-out 1.1s both; }
.pres .chip { justify-self: start; }
.pinfo { margin: 0; font-size: 23px; font-weight: 600; line-height: 1.4; }
/* Short ranked lists: closest pins, closest guesses, best guesses */
.toprows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.toprows li { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 10px 18px 10px 10px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); font-size: 26px; font-weight: 700; animation: slideup 0.45s ease-out both; }
.toprows .rk { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy); font-weight: 900; }
.toprows li:nth-child(2) .rk { background: #D9DDE6; }
.toprows li:nth-child(3) .rk { background: #E7C9A5; }
.toprows .who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.toprows b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; }
.toprows .val { margin-left: auto; white-space: nowrap; font-weight: 900; color: var(--navy); font-variant-numeric: tabular-nums; }
.toprows.row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.toprows.row3 li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; row-gap: 0; font-size: 22px; }
.toprows.row3 .rk { grid-row: span 2; }
.toprows.row3 .val { margin-left: 0; font-size: 21px; }
/* Closest wins: the question, then the guesses on a number line */
.estv { height: 100%; display: grid; align-content: center; gap: 30px; }
.estv .qtop .tpill { margin-left: auto; }
.estv .qbox { font-size: 48px; min-height: 180px; }
.estv.reveal { align-content: start; gap: 16px; }
.esthead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; }
.esthead .eq { font-size: 30px; font-weight: 800; line-height: 1.25; color: var(--navy); }
.eans { padding: 12px 30px; border-radius: 20px; background: var(--gold); color: var(--navy); text-align: center; box-shadow: var(--shadow); }
.eans span { display: block; font-size: 18px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.eans b { display: block; font-size: 54px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.nlcard { display: grid; place-items: center; padding: 4px 0 0; overflow: hidden; }
.numline { display: block; max-width: 100%; height: auto; font-family: var(--font); }
.numline .flag { animation: slideup 0.6s ease-out 0.6s both; }
.estfoot { display: grid; grid-template-columns: minmax(0, 1fr) 500px; gap: 26px; align-items: start; }
.estfoot .sec { margin-bottom: 10px; }
.einfo { display: grid; gap: 10px; }
.einfo .chip { justify-self: start; }
.einfo p { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.4; }
/* Polls and guess the room */
.pollv { height: 100%; display: flex; flex-direction: column; gap: 18px; }
.ptitle { font-size: 54px; font-weight: 900; line-height: 1.15; color: var(--navy); }
.ptitle.small { font-size: 36px; }
.ptitle .hlopt { color: var(--royal); }
.popts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; }
.popt { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: 18px; background: #fff; border: 2px solid #D5D2C6; box-shadow: var(--shadow); font-size: 32px; font-weight: 700; line-height: 1.2; }
.popt .L, .pb2 .L { width: 54px; height: 54px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 900; background: var(--navy); color: #fff; }
.gscale { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin: 24px 40px; font-size: 26px; font-weight: 800; color: var(--muted); }
.gtrack { position: relative; height: 22px; border-radius: 99px; background: linear-gradient(90deg, var(--soft), var(--turq)); }
.gtrack i { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 5px #fff, var(--shadow); animation: gslide 3s ease-in-out infinite alternate; }
@keyframes gslide { from { left: 22%; } to { left: 78%; } }
.pres2 { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr; gap: 30px; }
.pres2.g { grid-template-columns: minmax(0, 1fr) 470px; }
.pbars2 { display: grid; gap: 16px; align-content: start; }
.pb2 { display: grid; grid-template-columns: 54px minmax(0, 1fr) 110px; gap: 18px; align-items: center; }
.pb2 .pl { margin-bottom: 6px; font-size: 28px; font-weight: 800; }
.pb2 .pt { height: 34px; border-radius: 10px; background: var(--soft); overflow: hidden; }
.pb2 .pt i { display: block; height: 100%; border-radius: 10px; background: var(--turq); transform-origin: left; animation: grow 0.9s ease-out both; }
.pb2.lead .pt i { background: var(--navy); }
.pb2 b { text-align: right; font-size: 40px; font-weight: 900; color: var(--navy); font-variant-numeric: tabular-nums; }
.greal { display: grid; gap: 10px; align-content: start; padding: 20px 24px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.greal .gk { font-size: 24px; font-weight: 800; color: var(--muted); }
.greal .gbig { font-size: 110px; font-weight: 900; line-height: 1; color: var(--navy); }
.greal .toprows li { font-size: 22px; }
/* Leaderboard */
.scoresv .title { margin: 0 0 14px; }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.board li { display: grid; grid-template-columns: 64px minmax(0, 1fr) 300px 110px 170px; gap: 18px; align-items: center; padding: 12px 24px 12px 14px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); font-size: 30px; font-weight: 800; }
.board .rk { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--navy); font-weight: 900; }
.board li.r1 { box-shadow: inset 0 0 0 3px var(--gold), var(--shadow); }
.board li.r1 .rk { background: var(--gold); }
.board li.r2 .rk { background: #D9DDE6; }
.board li.r3 .rk { background: #E7C9A5; }
.board .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--navy); }
.board .wh { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; font-weight: 700; color: var(--muted); }
.board .mv { font-size: 22px; font-weight: 900; }
.board .mv.up { color: var(--green-text); }
.board .mv.down { color: var(--red); }
.board b { text-align: right; font-size: 34px; font-weight: 900; font-variant-numeric: tabular-nums; }
.board.many { gap: 8px; }
.board.many li { padding: 6px 24px 6px 12px; font-size: 25px; }
.board.many .rk { width: 44px; height: 44px; }
.board.many b { font-size: 28px; }
/* The room's three labels (accuracy per theme), on the certificate and the end screen */
.tbars { display: grid; gap: 12px; }
.tb { display: grid; grid-template-columns: 230px minmax(0, 1fr) 64px; gap: 12px; align-items: center; }
.tb .chip { justify-content: center; }
.tb .tt { position: relative; height: 22px; border-radius: 99px; background: var(--soft); }
.tb .tt i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; transform-origin: left; animation: grow 1s ease-out both; }
.tb .tt .pass { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1px; background: var(--navy); }
.tb b { text-align: right; font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; }
.cert .sec { margin-bottom: 10px; text-align: left; }
.tbars.oncert .tb { grid-template-columns: minmax(0, 1fr) 56px; gap: 6px 10px; }
.tbars.oncert .tb .chip { grid-column: 1 / -1; justify-self: start; }
.tbars.oncert .tb .tt { height: 16px; }
/* Podium: the top three people (ties share a block), then the awards */
.podv { height: 100%; display: flex; flex-direction: column; }
.podium2 { flex: 1; min-height: 0; display: flex; justify-content: center; align-items: flex-end; gap: 30px; }
.ppl { width: 360px; display: grid; justify-items: center; gap: 8px; animation: slideup 0.6s ease-out both; }
.pp { text-align: center; }
.pp .nm { font-size: 34px; font-weight: 900; line-height: 1.1; color: var(--navy); }
.ppl.r1 .pp .nm { font-size: 42px; }
.pp .sc { font-size: 22px; font-weight: 800; color: var(--muted); }
.ppl .blk { width: 100%; border-radius: 22px 22px 0 0; display: grid; align-content: start; justify-items: center; padding-top: 14px; background: var(--royal); color: #fff; font-size: 56px; font-weight: 900; line-height: 1; transform-origin: bottom; animation: podium 0.8s cubic-bezier(.2,.9,.3,1) both; box-shadow: var(--shadow); }
.ppl.r1 .blk { background: var(--gold); color: var(--navy); }
.ppl.r2 .blk { background: var(--navy); }
.ppl .blk small { margin-bottom: 6px; font-size: 18px; letter-spacing: 0.12em; text-transform: uppercase; }
.awards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.aw { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.aw b { display: block; font-size: 22px; font-weight: 900; color: var(--navy); }
.aw span { display: block; font-size: 18px; font-weight: 600; line-height: 1.3; }
.aw em { font-style: normal; font-weight: 800; }
.hard.easy span { color: var(--green-text); }

/* ============================================================ phone */
body.play { min-height: 100%; }
.app { --gut: 14px; max-width: 560px; margin: 0 auto; padding: 14px var(--gut) calc(48px + env(safe-area-inset-bottom)); }
.app header { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 20px; margin-bottom: 16px; background: #fff; box-shadow: var(--shadow); border-top: 6px solid var(--tc, var(--royal)); }
.app header .who { font-weight: 800; font-size: 18px; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.app header .who small { display: block; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.app header img.logo { height: 34px; }
/* A long first name in one word breaks instead of pushing the page sideways. */
.app h2 { font-size: 24px; font-weight: 900; line-height: 1.25; color: var(--navy); margin: 8px 0 12px; overflow-wrap: anywhere; }
.app p { font-size: 18px; line-height: 1.5; }
.app label { display: block; font-size: 15px; font-weight: 800; letter-spacing: 0.04em; color: var(--muted); margin: 16px 0 8px; text-transform: uppercase; }
.app input, .app select { width: 100%; font: inherit; font-size: 18px; font-weight: 600; padding: 14px; background: #fff; color: var(--ink); border: 2px solid var(--line); border-radius: 14px; }
.app input:focus, .app select:focus { outline: none; border-color: var(--royal); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pbtn { display: flex; align-items: center; gap: 12px; width: 100%; font-family: var(--font); font-size: 18px; font-weight: 700; line-height: 1.3; text-align: left; padding: 15px 16px; margin: 0 0 12px; background: #fff; color: var(--ink); border: 2px solid var(--line); border-radius: 18px; box-shadow: 0 3px 0 var(--line); cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; }
.pbtn:active { transform: translateY(2px); box-shadow: none; }
.pbtn.sel { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 3px 0 #0E1640; }
.pbtn.sel .L { background: #fff; color: var(--navy); }
.pbtn.right { background: var(--green-soft); border-color: var(--green); }
.pbtn.right .L { background: var(--green); }
.pbtn.dim { opacity: 0.4; }
.pbtn.primary { background: var(--navy); color: #fff; border-color: var(--navy); justify-content: center; font-size: 19px; font-weight: 900; letter-spacing: 0.04em; padding: 18px; box-shadow: 0 4px 0 #0E1640; }
.pbtn.gold { background: var(--gold); border-color: var(--gold); box-shadow: 0 4px 0 #B08C00; }
.pbtn .L { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 900; flex: none; }
.pbtn .txt { flex: 1; }
.pbtn .mates { display: block; font-size: 15px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.pbtn.sel .mates { color: rgba(255,255,255,0.75); }
.pbtn.found { background: var(--green-soft); border-color: var(--green); opacity: 0.55; }
.pbtn.bad { background: var(--red-soft); border-color: var(--red); opacity: 0.6; }
.grid2p { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid2p .pbtn { margin: 0; justify-content: center; text-align: center; font-size: 16px; padding: 14px 8px; }
.qmeta { display: flex; gap: 6px 8px; flex-wrap: wrap; margin-bottom: 10px; }
.qmeta .chip { font-size: 15px; padding: 5px 11px; }
.qcardp { background: #fff; border: 2.5px solid var(--ink); border-radius: 14px; padding: 16px; font-size: 21px; line-height: 1.35; font-weight: 700; margin-bottom: 14px; }
.tbar { height: 8px; border-radius: 99px; background: var(--soft); margin: 0 0 14px; position: relative; overflow: hidden; }
.tbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--navy); border-radius: 99px; }
.note { font-size: 15px; color: var(--muted); line-height: 1.5; font-weight: 600; }
.banner { padding: 14px 16px; margin: 0 0 14px; font-size: 18px; line-height: 1.4; border-radius: 16px; background: #fff; box-shadow: var(--shadow); font-weight: 600; }
.banner.ok { background: var(--green-soft); } .banner.ko { background: var(--red-soft); } .banner.gold { background: var(--gold-soft); }
.clap { width: 100%; aspect-ratio: 1.7; font-size: 82px; background: #fff; border: 2px solid var(--line); border-radius: 26px; box-shadow: 0 6px 0 var(--line); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.clap:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--line); }
.reacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.reacts button { font-size: 34px; padding: 10px; background: #fff; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; }
.err { color: var(--red); font-size: 16px; margin-top: 10px; font-weight: 700; }
.bigbadge { display: grid; justify-items: center; gap: 10px; margin: 10px 0 18px; text-align: center; }
/* Taps: instant feedback (iOS needs the touchstart listener in play.js for :active), no double-tap zoom */
.play button { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.play [hidden] { display: none !important; }
.reacts button:active, .saybtn:active, .star:active, .sure:active { transform: translateY(2px); }
.pbtn:disabled { cursor: default; }
.pbtn.primary:disabled:not(.posted) { opacity: 0.55; }
.pbtn.mid { justify-content: center; text-align: center; }
.pbtn.pending { opacity: 0.85; }
.pbtn.pending::after { content: ''; position: absolute; right: 10px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: pspin 0.7s linear infinite; }
@keyframes pspin { to { transform: rotate(360deg); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.app .connecting { margin-top: 30vh; }
/* Connection lost, pause, refused taps */
.netbar { position: fixed; left: 0; right: 0; top: 0; z-index: 50; display: flex; align-items: center; justify-content: center; gap: 8px; padding: calc(9px + env(safe-area-inset-top)) 14px 9px; background: var(--red); color: #fff; font-weight: 800; font-size: 16px; box-shadow: 0 4px 14px rgba(22,33,62,0.2); }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60; max-width: 520px; margin: 0 auto; background: var(--ink); color: #fff; font-weight: 700; font-size: 17px; line-height: 1.35; padding: 13px 18px; border-radius: 14px; box-shadow: 0 8px 24px rgba(22,33,62,0.3); text-align: center; }
.toast.show { animation: slideup 0.25s ease-out both; }
.pausedov { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 45; display: grid; place-items: center; padding: 24px; background: rgba(244,242,236,0.9); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.pausedcard { background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 26px 24px; text-align: center; max-width: 360px; border-top: 6px solid var(--gold); }
.pausedcard h2 { margin: 12px 0 6px; font-size: 30px; font-weight: 900; color: var(--navy); }
.pausedcard p { margin: 0; font-size: 18px; line-height: 1.45; font-weight: 600; }
.pausedic { display: inline-flex; gap: 10px; }
.pausedic i { width: 14px; height: 44px; border-radius: 4px; background: var(--navy); }
/* One timer bar under the header, for whichever clock is running; sticks to the top when scrolling */
.ptimer { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 10px; height: 32px; margin: -6px calc(-1 * var(--gut)) 8px; padding: 0 var(--gut); background: var(--paper); }
.ptimer .track { flex: 1; height: 10px; border-radius: 99px; background: #E0E4EE; overflow: hidden; }
.ptimer .track i { display: block; height: 100%; width: 100%; border-radius: 99px; background: var(--navy); }
.ptimer b { min-width: 44px; text-align: right; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--navy); }
.ptimer.low .track i { background: var(--red); }
.ptimer.low b { color: var(--red); }
.stickline { position: sticky; top: 32px; z-index: 5; background: var(--paper); padding: 6px 0 8px; margin: 0 0 6px; font-size: 17px; font-weight: 700; line-height: 1.35; }
.stickline .bad, .stickline.ko { color: var(--red); }
.stickline.ok { color: var(--green); }
/* Compact header during questions, crises and the wall */
.app header.compact { padding: 6px 12px; gap: 10px; margin-bottom: 8px; border-radius: 14px; border-top-width: 4px; }
.app header.compact .who { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 16px; line-height: 1.2; white-space: nowrap; }
.app header.compact .who .nm { overflow: hidden; text-overflow: ellipsis; }
.app header.compact .who small { display: inline; font-size: 13px; }
.app header.compact img.logo { height: 24px; }
.app h2.teamtitle { color: var(--ink); text-decoration: underline; text-decoration-color: var(--tc); text-decoration-thickness: 6px; text-underline-offset: 8px; }
/* Join form */
.app fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.app legend { display: block; padding: 0; font-size: 15px; font-weight: 800; letter-spacing: 0.04em; color: var(--muted); margin: 16px 0 8px; text-transform: uppercase; }
/* Questions: "I'm sure", team talk, the decision */
.qcardp.long { font-size: 19px; }
/* "I'm sure" sits inside the right end of its answer: the answers line up with the question card and never change
   width. Only the selected answer shows it; the others are invisible (visibility), so a tap there reaches the answer. */
.optrow { position: relative; display: block; margin: 0 0 12px; }
.optrow .pbtn { margin: 0; padding-right: 76px; }
.optrow .sure { position: absolute; right: 8px; top: 8px; bottom: 8px; width: 60px; }
.sure { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; font-family: var(--font); font-size: 15px; font-weight: 800; line-height: 1.05; color: var(--ink); background: #fff; border: 2px solid var(--gold); border-radius: 12px; padding: 4px 2px; cursor: pointer; }
.sure .ic { width: 18px; height: 18px; }
.sure.sel { background: var(--gold); box-shadow: 0 3px 0 #B08C00; }
.sure:disabled { opacity: 0.5; }
.sure.sel svg { fill: currentColor; }
.sure.off { visibility: hidden; }
/* While an answer is on its way, its spinner takes the place of "I'm sure". */
.optrow .pbtn.pending::after { right: 31px; }
.optrow .pbtn.pending + .sure { visibility: hidden; }
.pbtn .mates .ic { vertical-align: -2px; }
/* Teammates' picks under each answer: one line, always reserved, so the answers never move down. */
.optrow .pbtn .txt { min-width: 0; overflow-wrap: break-word; }
.optrow .pbtn .mates { min-height: 1.3em; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.teamnow .banner { padding: 10px 14px; font-size: 17px; }
.app .teamnow p { margin: 4px 0 12px; }
.app .talk { margin: 12px 0 8px; }
.app .note.tight { margin: 10px 0 6px; font-size: 15px; letter-spacing: 0.04em; font-weight: 800; }
.saybtns { display: flex; flex-wrap: wrap; gap: 8px; }
.saybtn { min-height: 44px; padding: 9px 14px; font-family: var(--font); font-size: 15px; font-weight: 700; color: var(--navy); background: var(--soft); border: 2px solid #D5DBEA; border-radius: 999px; cursor: pointer; }
.saybtn:disabled { opacity: 0.5; }
.sayline { font-size: 16px; line-height: 1.4; font-weight: 600; padding: 8px 12px; margin: 0 0 6px; background: #fff; border-radius: 12px; border-left: 5px solid var(--tc, var(--royal)); }
.banner.decide { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.banner.decide b { flex: 1; }
.banner .cd { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--navy); white-space: nowrap; }
.pbtn.big { min-height: 84px; padding: 16px; font-size: 19px; }
.pbtn .cnt { flex: none; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 99px; background: var(--soft); color: var(--navy); font-size: 15px; font-weight: 900; display: grid; place-items: center; }
.pbtn .cnt:empty { display: none; }
.pbtn.sel .cnt { background: #fff; }
.app .note.first { display: flex; gap: 8px; align-items: flex-start; background: var(--soft); border-radius: 12px; padding: 10px 12px; color: var(--ink); }
.app .recap { font-size: 17px; margin: 16px 0 4px; padding-top: 12px; border-top: 2px solid var(--line); }
/* Clean sweep: every team got it right. */
.app .banner.sweep { display: flex; align-items: flex-start; gap: 10px; }
.app .banner.sweep .ic { margin-top: 1px; }
/* Spotlight */
.app .talktime { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.talktime b { font-size: 28px; font-variant-numeric: tabular-nums; color: var(--navy); }
.talktime.over b { color: var(--red); }
.pbtn.confirm { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.floatemo { position: fixed; z-index: 30; font-size: 44px; margin-left: -22px; pointer-events: none; animation: floatup 1.2s ease-out forwards; }
@keyframes floatup { 0% { transform: translateY(0) scale(0.6); opacity: 0; } 15% { transform: translateY(-24px) scale(1); opacity: 1; } 100% { transform: translateY(-200px) scale(1.1); opacity: 0; } }
/* Show of hands after a spotlight: the cup on one line, the question, three big buttons. */
.app .cupline { display: flex; align-items: center; gap: 10px; margin: 2px 0 6px; }
.app .cupline h2 { margin: 0; min-width: 0; }
.app .pbtn.big.hand { min-height: 76px; font-size: 20px; font-weight: 800; line-height: 1.25; }
.app .pbtn.hand .txt { min-width: 0; overflow-wrap: anywhere; }
/* The wall */
.app textarea { width: 100%; font: inherit; font-size: 18px; font-weight: 600; line-height: 1.4; padding: 14px; background: #fff; color: var(--ink); border: 2px solid var(--line); border-radius: 14px; resize: none; }
.app textarea:focus { outline: none; border-color: var(--royal); }
.wallmeta { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 700; color: var(--muted); margin: 6px 2px 12px; }
.wallmeta .low { color: var(--red); }
.wallmeta .warn { color: var(--red); text-align: right; }
.pbtn.posted { background: var(--green); border-color: var(--green); box-shadow: 0 4px 0 #1F7A43; color: #fff; }
.qcardp.mine { border-color: var(--green); }
/* Crises */
.banner.maphead { display: flex; gap: 8px; align-items: flex-start; font-size: 17px; }
.mapgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 360px) { .mapgrid { grid-template-columns: repeat(3, 1fr); } }
.mapgrid .pbtn { margin: 0; min-height: 48px; padding: 6px 4px; justify-content: center; text-align: center; font-size: 15px; line-height: 1.15; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.mapgrid .pbtn.found, .mapgrid .pbtn.bad { opacity: 0.5; box-shadow: none; }
.mapgrid .pbtn.pending::after { display: none; }
#cbtns .pbtn { min-height: 56px; }
.pchips { display: flex; flex-wrap: wrap; gap: 6px; }
.pchip { font-size: 15px; font-weight: 600; line-height: 1.3; padding: 5px 10px; border-radius: 10px; background: var(--green-soft); }
.pchip b { font-weight: 900; }
.qcardp.headline { font-family: Georgia, serif; font-size: 23px; }
.grid2p.tf .pbtn { font-size: 20px; padding: 22px 8px; }
/* A storm headline built from a question missed earlier today */
.app .fromchip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px; font-size: 15px; font-weight: 800; color: var(--navy); }
.app .fromchip .chip { font-size: 15px; padding: 5px 12px; }
.app .banner.repair { display: flex; align-items: flex-start; gap: 10px; }
.app .banner.repair .ic { margin-top: 1px; }
/* Gifts, feedback, end */
.gico { font-size: 28px; }
.stars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.star { min-height: 56px; padding: 8px 0; font-family: var(--font); font-size: 32px; line-height: 1; color: #C3C8D4; background: #fff; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; }
.star.on { color: #B08C00; border-color: var(--gold); background: var(--gold-soft); }
.star.sel { box-shadow: 0 0 0 3px var(--navy); }
.app .award { display: flex; gap: 14px; align-items: center; background: var(--gold-soft); border-radius: 18px; padding: 16px; margin: 0 0 16px; }
.app .award small { display: block; font-size: 15px; font-weight: 800; letter-spacing: 0.06em; color: var(--muted); }
.app .award b { display: block; font-size: 22px; font-weight: 900; color: var(--navy); }
.app .award .atext { display: block; font-size: 16px; font-weight: 600; }
/* Individual format: the streak, results, the pin map, numbers, polls, scores */
.app header .streak { margin-left: auto; display: flex; align-items: center; gap: 2px; font-size: 17px; font-weight: 900; color: var(--red); white-space: nowrap; }
.app header.compact .streak { font-size: 15px; }
.app .banner.res { display: flex; align-items: center; gap: 10px; }
.app .banner.res > span:not(.pt) { flex: 1; min-width: 0; }
.app .banner.res small { display: block; font-size: 15px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.app .banner.res .pt { margin-left: auto; font-size: 26px; font-weight: 900; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.qmeta .chip.x2 { background: var(--gold-soft); }
.grid2p.tf .pbtn.right { opacity: 1; }
.pmap { position: relative; margin: 0 0 12px; border-radius: 16px; overflow: hidden; background: #C9DBEF; box-shadow: var(--shadow); }
.pmap canvas { display: block; width: 100%; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; cursor: crosshair; }
.pmap .pzoom { position: absolute; top: 8px; right: 8px; display: flex; align-items: center; gap: 6px; padding: 8px 12px; font-family: var(--font); font-size: 14px; font-weight: 800; color: var(--navy); background: #fff; border: 2px solid var(--line); border-radius: 999px; box-shadow: 0 2px 0 var(--line); cursor: pointer; }
.app .pmap .pmsg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-items: center; margin: 0; padding: 16px; font-size: 16px; font-weight: 700; color: var(--muted); text-align: center; }
.pinhead { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; margin: 0 0 10px; }
.pinhead b { font-size: 28px; font-weight: 900; line-height: 1.15; color: var(--navy); overflow-wrap: anywhere; }
.pinhead span { font-size: 15px; font-weight: 700; color: var(--muted); }
.numrow { display: flex; align-items: center; gap: 10px; }
.app .numrow input { flex: 1; min-width: 0; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.numrow .unit { font-size: 18px; font-weight: 800; color: var(--muted); }
.app .numread { min-height: 1.5em; margin: 6px 2px 10px; }
.app .numread.bad { color: var(--red); }
.app .banner.bigans small { display: block; font-size: 14px; font-weight: 800; letter-spacing: 0.06em; color: var(--muted); }
.app .banner.bigans b { display: block; font-size: 30px; font-weight: 900; color: var(--navy); line-height: 1.2; }
.guessrow { display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; gap: 10px; margin: 4px 0 6px; }
.guessrow b { text-align: center; font-size: 46px; font-weight: 900; color: var(--navy); font-variant-numeric: tabular-nums; }
.guessrow button { height: 56px; font-family: var(--font); font-size: 28px; font-weight: 900; color: var(--navy); background: #fff; border: 2px solid var(--line); border-radius: 16px; box-shadow: 0 3px 0 var(--line); cursor: pointer; }
.guessrow button:active { transform: translateY(2px); box-shadow: none; }
.app input[type=range] { display: block; width: 100%; height: 44px; margin: 0 0 14px; padding: 0; border: 0; background: transparent; accent-color: var(--navy); }
.pbars { margin: 0 0 8px; }
.pbar { margin: 0 0 12px; }
.pbar .lab { display: flex; justify-content: space-between; gap: 10px; font-size: 17px; font-weight: 700; margin-bottom: 5px; }
.pbar .lab small { color: var(--muted); font-weight: 700; }
.pbar .tr { height: 14px; border-radius: 99px; background: #E0E4EE; overflow: hidden; }
.pbar .tr i { display: block; height: 100%; background: var(--turq); border-radius: 99px; }
.pbar.mine .tr i { background: var(--navy); }
.ranks { list-style: none; margin: 0 0 14px; padding: 0; }
.ranks li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 0 6px; background: #fff; border-radius: 12px; font-size: 17px; font-weight: 700; box-shadow: 0 1px 0 var(--line); }
.ranks li.me { background: var(--navy); color: #fff; }
.ranks .rk { width: 26px; flex: none; text-align: center; font-weight: 900; }
.ranks .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranks .mv { font-size: 14px; font-weight: 900; }
.ranks .mv.up { color: var(--green); }
.ranks .mv.down { color: var(--red); }
.ranks li.me .mv { color: #fff; }
.ranks b { font-variant-numeric: tabular-nums; }
.bigpts { font-size: 40px; font-weight: 900; color: var(--navy); text-align: center; margin: 0 0 14px; font-variant-numeric: tabular-nums; }
.bigpts small { font-size: 18px; font-weight: 800; color: var(--muted); }
/* English / French switch, at the right of the header */
.langsw { margin-left: auto; display: inline-flex; flex: none; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.langsw button { min-width: 42px; min-height: 36px; padding: 4px 10px; border: 0; background: none; font-family: var(--font); font-size: 14px; font-weight: 900; letter-spacing: 0.04em; color: var(--muted); cursor: pointer; }
.langsw button.on { background: var(--navy); color: #fff; }
.app header .streak + .langsw { margin-left: 10px; }
.app header.compact .langsw button { min-width: 36px; min-height: 30px; padding: 2px 8px; font-size: 13px; }
.langsw.one button { color: var(--navy); }
/* The one-line header keeps the name and the score readable next to the language button */
.app header.compact img.logo { display: none; }
/* Small phones (older iPhone SE): everything a little tighter */
@media (max-width: 360px) {
  .app { --gut: 10px; }
  .app header:not(.compact) { padding: 10px 12px; }
  .app h2 { font-size: 21px; }
  .qcardp { font-size: 18px; padding: 12px; }
  .qcardp.long { font-size: 17px; }
  .pbtn { padding: 12px; font-size: 17px; }
  .pbtn .L { width: 32px; height: 32px; }
  .optrow .pbtn { padding-right: 70px; }
  .optrow .sure { width: 56px; top: 6px; bottom: 6px; }
  .optrow .pbtn.pending::after { right: 29px; }
}

/* ============================================================ moderator */
.mod .pbtn { justify-content: center; text-align: center; font-weight: 900; font-size: 16px; padding: 20px; }
.mod .state { font-size: 15px; line-height: 1.7; color: var(--muted); font-weight: 700; margin-bottom: 14px; }

/* test screenshots only */
.noanim *, .noanim *::before, .noanim *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition: none !important; }

/* ============================================================ moderator, check and sheet */
body.mod [hidden], body.check [hidden], body.sheet [hidden] { display: none !important; }
/* The remote (/mod): one hand, a phone, a live session. Big targets, high contrast, NEXT always under the thumb. */
body.mod { background: var(--paper); }
.remote { max-width: 560px; margin: 0 auto; padding: 8px 12px calc(160px + env(safe-area-inset-bottom)); }
.remote button, .m-bar button { font-family: var(--font); -webkit-tap-highlight-color: transparent; touch-action: manipulation; cursor: pointer; }
.m-head { display: flex; align-items: center; gap: 12px; padding: 6px 4px 10px; }
.m-head img { height: 30px; }
.m-head b { display: block; font-size: 15px; font-weight: 900; letter-spacing: 0.08em; color: var(--navy); }
.m-head small { font-size: 13px; font-weight: 800; color: #17663A; letter-spacing: 0.04em; }
body.is-offline .m-head small { color: #A3141B; }
.m-offline { position: sticky; top: 0; z-index: 30; background: #E3262F; color: #fff; font-weight: 900; font-size: 21px; letter-spacing: 0.04em; text-align: center; padding: 16px 12px; box-shadow: 0 6px 18px rgba(227, 38, 47, 0.35); }
.m-paused { background: #F2C500; color: var(--ink); border-radius: 16px; padding: 14px 16px; font-size: 16px; font-weight: 600; line-height: 1.4; margin: 0 0 12px; }
.m-paused b { display: block; font-size: 20px; font-weight: 900; }
.m-status { background: #fff; border-radius: 18px; border: 1px solid var(--line); padding: 12px 14px; margin-bottom: 12px; }
.m-phase { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 15px; font-weight: 800; color: var(--muted); letter-spacing: 0.04em; }
.m-phase b { font-size: 21px; font-weight: 900; color: var(--navy); }
.m-timer { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--soft); border-radius: 99px; padding: 3px 11px; font-size: 16px; font-weight: 900; }
.m-timer:empty { display: none; }
.m-item { font-size: 16px; font-weight: 800; margin-top: 4px; }
.m-item i { font-style: normal; color: var(--muted); }
.m-line { font-size: 15px; font-weight: 600; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.m-line b { color: var(--ink); }
.m-red, .m-line b.m-red { color: #C41922; }
.m-card { background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 12px; }
.m-card.m-alert { border: 3px solid #E3262F; font-size: 16px; line-height: 1.45; }
.m-card.m-alert b { font-size: 19px; }
.m-k { font-size: 13px; font-weight: 900; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 6px; }
.m-k2 { font-size: 12px; font-weight: 900; letter-spacing: 0.1em; color: var(--muted); margin: 12px 0 6px; }
.m-qmeta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.m-qmeta .chip { font-size: 13px; padding: 5px 10px; }
.m-tag { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.m-tag.opt { color: var(--ink); background: var(--gold-soft); border-radius: 99px; padding: 3px 9px; }
.m-qtext { font-size: 17px; font-weight: 600; line-height: 1.4; margin: 10px 0; }
.m-ans { display: flex; align-items: center; gap: 14px; background: var(--green-soft); border: 3px solid #1E7F45; border-radius: 16px; padding: 12px 14px; }
.m-letter { flex: none; width: 60px; height: 60px; border-radius: 50%; background: #1E7F45; color: #fff; display: grid; place-items: center; font-size: 36px; font-weight: 900; }
.m-anstext { font-size: 24px; font-weight: 900; line-height: 1.2; }
.m-ans.tf { justify-content: center; }
.m-ans.tf .m-anstext { font-size: 40px; letter-spacing: 0.06em; }
.m-ans.fake { background: var(--red-soft); border-color: #E3262F; }
.m-info { font-size: 15px; line-height: 1.45; margin: 10px 0 0; }
.m-teams, .m-rank, .m-chain, .m-rapid { list-style: none; padding: 0; margin: 10px 0 0; }
.m-teams li, .m-rank li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 16px; font-weight: 600; padding: 7px 0; border-top: 1px solid var(--line); line-height: 1.35; }
.m-teams li.ok { color: #17663A; }
.m-teams li.ko { color: #A3141B; }
.m-rank { counter-reset: mrank; }
.m-rank li::before { counter-increment: mrank; content: counter(mrank) '.'; font-weight: 900; color: var(--muted); min-width: 20px; }
.m-dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; flex: none; vertical-align: middle; box-shadow: inset 0 0 0 1.5px rgba(22, 33, 62, 0.35); }
.m-speaker { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 4px 0 8px; }
.m-speaker b { font-size: 26px; font-weight: 900; }
.m-speaker span { font-size: 15px; font-weight: 700; color: var(--muted); }
.m-speaker .m-dot { width: 22px; height: 22px; }
.m-warn { background: var(--gold-soft); border-radius: 12px; padding: 10px 12px; font-size: 16px; font-weight: 700; line-height: 1.4; margin: 8px 0; }
.m-warn.red { background: var(--red-soft); color: #A3141B; }
.m-prompt { font-size: 18px; font-weight: 700; line-height: 1.4; margin: 8px 0; }
.m-sub { font-size: 14px; font-weight: 600; color: var(--muted); line-height: 1.45; margin: 6px 0 0; }
.m-big { font-size: 34px; font-weight: 900; color: var(--navy); font-variant-numeric: tabular-nums; margin: 6px 0; }
.m-big small { font-size: 15px; font-weight: 700; color: var(--muted); }
.m-title { font-size: 20px; font-weight: 900; color: var(--navy); margin: 2px 0 6px; }
.m-post { font-size: 15px; margin: 6px 0 0; }
.m-decoys { font-size: 17px; font-weight: 700; line-height: 1.5; margin: 0; }
.m-chain li { font-size: 16px; font-weight: 600; padding: 7px 0; border-top: 1px solid var(--line); }
.m-chain li b { display: inline-block; min-width: 50px; font-weight: 900; }
.m-chain li.done { color: var(--muted); }
.m-chain li.now { background: var(--gold-soft); font-weight: 800; border-radius: 8px; padding-left: 8px; }
.m-rapid li { font-size: 14px; line-height: 1.4; padding: 6px 0; border-top: 1px solid var(--line); }
.m-rapid li b { display: inline-block; min-width: 52px; font-weight: 900; }
.m-rapid li b.t { color: #17663A; }
.m-rapid li b.f { color: #A3141B; }
.m-rapid li.done { opacity: 0.5; }
.m-rapid li.now { background: var(--soft); font-weight: 700; }
/* Clean sweep, the show of hands after a spotlight, and storm headlines back from a question missed earlier. */
.m-sweep { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--gold-soft); border: 2px solid var(--gold); font-size: 15px; font-weight: 700; line-height: 1.4; }
.m-sweep b { margin-right: 6px; font-size: 17px; font-weight: 900; letter-spacing: 0.04em; color: var(--navy); }
.m-hands { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: 16px; font-weight: 700; line-height: 1.4; font-variant-numeric: tabular-nums; }
.m-hands b { font-weight: 900; color: var(--navy); }
.m-hands.done { background: var(--green-soft); color: #17663A; font-weight: 800; }
.m-from { font-weight: 800; color: var(--royal); }
.m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 14px; }
.m-grid button, .m-danger, .m-prow button { min-height: 60px; border-radius: 16px; border: 2.5px solid var(--navy); background: #fff; color: var(--navy); font-size: 16px; font-weight: 900; letter-spacing: 0.03em; padding: 10px 8px; }
.m-grid button.on { background: var(--navy); color: #fff; }
.m-grid button.off { opacity: 0.45; }
.m-danger { width: 100%; border-color: #E3262F; color: #A3141B; margin: 16px 0 10px; }
.m-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(244, 242, 236, 0.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(22, 33, 62, 0.1); padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); }
.m-upnext { max-width: 536px; margin: 0 auto 6px; font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-barrow { max-width: 536px; margin: 0 auto; display: flex; gap: 10px; }
.m-next { flex: 1; min-height: 84px; border: 0; border-radius: 20px; background: var(--navy); color: #fff; font-size: 21px; font-weight: 900; line-height: 1.2; padding: 10px 14px; box-shadow: 0 5px 0 #0E1640; }
.m-next.off { background: #8A90A6; box-shadow: 0 5px 0 #5E6886; }
.m-pausebtn { flex: none; width: 96px; min-height: 84px; border-radius: 20px; border: 2.5px solid var(--navy); background: #fff; color: var(--navy); font-size: 15px; font-weight: 900; }
.m-pausebtn.on { width: 140px; background: #F2C500; border-color: #B08C00; color: var(--ink); font-size: 18px; }
.m-next:active, .m-pausebtn:active, .m-grid button:active, .m-danger:active, .m-prow button:active { transform: translateY(3px); box-shadow: none; }
/* NEXT waits for the server's answer (and 700 ms) before it takes another tap: it stays pressed in meanwhile. */
.m-bar .m-next:disabled { opacity: 0.6; transform: translateY(3px); box-shadow: none; cursor: default; }
/* Tap twice within 3 s to confirm. */
.remote button.armed { background: #F2C500; border-color: #B08C00; color: var(--ink); }
.remote button.armed .lbl { display: none; }
.remote button.armed::after { content: 'TAP AGAIN TO CONFIRM'; }
.remote .m-prow button.armed::after { content: 'TAP AGAIN'; }
/* Every tap answers: green done, grey not applied (the screen had just changed: not an error), red failed. */
@keyframes m-ok { 0%, 55% { background: #1E7F45; border-color: #1E7F45; color: #fff; } }
@keyframes m-stale { 0%, 55% { background: #C9CCD6; border-color: #8A90A6; color: #16213E; } }
@keyframes m-err { 0%, 55% { background: #E3262F; border-color: #E3262F; color: #fff; } }
.remote button.f-ok, .m-bar button.f-ok { animation: m-ok 0.9s ease-out; }
.remote button.f-stale, .m-bar button.f-stale { animation: m-stale 0.9s ease-out; }
.remote button.f-err, .m-bar button.f-err { animation: m-err 0.9s ease-out; }
.remote button.busy, .m-bar button.busy { opacity: 0.75; }
.m-toast { position: fixed; left: 12px; right: 12px; bottom: calc(136px + env(safe-area-inset-bottom)); z-index: 25; max-width: 536px; margin: 0 auto; padding: 14px 16px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 17px; font-weight: 800; line-height: 1.35; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
.m-toast.ok { background: #1E7F45; }
.m-toast.stale { background: #4A5470; }
.m-toast.err { background: #E3262F; }
.m-log p { font-size: 14px; font-weight: 600; color: var(--muted); margin: 3px 0; }
.m-players { background: #fff; border-radius: 18px; border: 1px solid var(--line); padding: 2px 12px 8px; margin-top: 12px; }
.m-players summary { font-size: 14px; font-weight: 900; letter-spacing: 0.06em; color: var(--navy); padding: 13px 0; cursor: pointer; }
.m-prow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.m-prow.off { background: var(--red-soft); margin: 0 -12px; padding: 8px 12px; }
.m-tbar { width: 8px; align-self: stretch; border-radius: 4px; flex: none; box-shadow: inset 0 0 0 1px rgba(22, 33, 62, 0.2); }
.m-pname { flex: 1; min-width: 0; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.m-pname small { font-size: 13px; font-weight: 600; color: var(--muted); }
.m-pname div { font-size: 13px; font-weight: 800; }
.m-on, .m-ansd { color: #17663A; }
.m-offp { color: #A3141B; }
.m-noans { color: var(--muted); }
.m-ansd, .m-noans { margin-left: 6px; }
.m-prow button { flex: none; min-height: 48px; min-width: 96px; font-size: 14px; border-color: var(--line); color: var(--muted); }
.m-note { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.5; }

/* Pre-flight check (/check): the animator's laptop, before the session. */
body.check { background: var(--paper); }
.c-wrap { max-width: 1180px; margin: 0 auto; padding: 18px 16px 40px; }
.c-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 16px; }
.c-head img { height: 44px; }
.c-title { flex: 1; min-width: 200px; }
.c-title b { display: block; font-size: 24px; font-weight: 900; letter-spacing: 0.06em; color: var(--navy); }
.c-title small { font-size: 14px; font-weight: 700; color: var(--muted); }
.c-cols { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 920px) { .c-cols { grid-template-columns: 1.25fr 1fr; align-items: start; } }
.c-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 16px; }
.c-card h2 { font-size: 15px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin: 0 0 10px; }
.c-lines { list-style: none; margin: 0; padding: 0; }
.c-lines li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.c-lines li:first-child { border-top: 0; }
.c-lines li.bad { background: var(--red-soft); margin: 0 -18px; padding: 10px 18px; }
.c-st { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; font-weight: 900; color: #fff; background: var(--muted); }
.c-lines li.ok .c-st { background: #1E7F45; }
.c-lines li.warn .c-st { background: #F2C500; color: var(--ink); }
.c-lines li.bad .c-st { background: #E3262F; }
.c-lines b { display: block; font-size: 16px; font-weight: 800; line-height: 1.35; }
.c-lines small { display: block; font-size: 14px; font-weight: 600; color: var(--muted); line-height: 1.45; margin-top: 2px; overflow-wrap: anywhere; }
.c-p { font-size: 15px; font-weight: 600; color: var(--muted); line-height: 1.5; margin: 0 0 10px; }
.c-btn { font-family: var(--font); font-size: 15px; font-weight: 800; padding: 12px 16px; border-radius: 14px; border: 2.5px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; }
.c-btn.big { font-size: 18px; padding: 16px 22px; background: var(--navy); color: #fff; }
.c-qr { max-width: 460px; margin: 0 auto; background: #fff; border-radius: 16px; }
.c-qr svg { display: block; width: 100%; height: auto; }
.c-qr.small { max-width: 220px; margin: 10px 0; }
.c-url { text-align: center; font-size: 26px; font-weight: 900; color: var(--navy); margin: 10px 0 0; overflow-wrap: anywhere; }
.c-url.small { font-size: 16px; font-weight: 800; color: var(--royal); margin: 4px 0 10px; text-align: left; }
.c-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 14px; }
.c-link { display: block; text-decoration: none; color: var(--ink); background: var(--soft); border-radius: 14px; padding: 12px 14px; }
.c-link b { display: block; font-size: 16px; font-weight: 900; color: var(--royal); }
.c-link small { font-size: 13px; font-weight: 600; color: var(--muted); }
.c-todo { list-style: none; padding: 0; margin: 0 0 12px; }
.c-todo label { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 16px; font-weight: 700; line-height: 1.4; cursor: pointer; }
.c-todo input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: #1E7F45; }
.c-todo label.done span { color: var(--muted); text-decoration: line-through; }

/* Answer sheet (/sheet): printed on A4, readable at a glance during the game. */
@page { size: A4; margin: 11mm 11mm 12mm; }
body.sheet { background: #E9E6DD; }
.s-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 10px 16px; background: var(--navy); color: #fff; font-size: 14px; }
.s-bar b { flex: 1; min-width: 220px; }
.s-bar label { display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.s-bar button { font-family: var(--font); font-size: 15px; font-weight: 900; padding: 10px 18px; border: 0; border-radius: 12px; background: #fff; color: var(--navy); cursor: pointer; }
.s-page { max-width: 210mm; margin: 16px auto; background: #fff; padding: 12mm; box-shadow: var(--shadow); font-size: 13px; line-height: 1.4; }
.s-head { display: flex; align-items: center; gap: 14px; border-bottom: 3px solid var(--navy); padding-bottom: 8px; margin-bottom: 10px; }
.s-head img { height: 32px; }
.s-head h1 { flex: 1; font-size: 19px; font-weight: 900; color: var(--navy); margin: 0; }
.s-head small { font-size: 10.5px; font-weight: 600; color: var(--muted); text-align: right; }
.s-box { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; font-size: 11.5px; }
.s-box h3, .s-foot h3 { grid-column: 1 / -1; font-size: 10.5px; font-weight: 900; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 2px; }
.s-box code { font-family: var(--font); font-weight: 800; overflow-wrap: anywhere; }
.s-item { display: grid; grid-template-columns: 36px 1fr; gap: 0 10px; padding: 7px 0; border-top: 1px solid #C9CCD6; break-inside: avoid; page-break-inside: avoid; }
.s-n { font-size: 21px; font-weight: 900; color: var(--navy); text-align: center; line-height: 1.05; }
.s-n small { display: block; font-size: 7.5px; letter-spacing: 0.1em; color: var(--muted); }
.s-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.s-th { border: 1.5px solid; border-radius: 99px; padding: 0 7px; }
.s-th.entre { border-color: var(--gold); background: #FCF1C4; color: var(--ink); }
.s-th.frugal { border-color: var(--royal); color: var(--royal); }
.s-th.citizen { border-color: #7FA2F0; border-style: dotted; color: var(--royal); }
.s-opt { background: var(--ink); color: #fff; border-radius: 4px; padding: 0 6px; }
.s-q { font-size: 13px; font-weight: 600; margin: 3px 0; }
.s-a { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 900; line-height: 1.2; margin: 3px 0; }
.s-l { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 16px; }
.s-tfbig { font-size: 20px; letter-spacing: 0.06em; }
.s-opts { font-size: 10.5px; color: var(--muted); margin: 2px 0; }
.s-opts b { color: var(--ink); }
.s-info { font-size: 11px; color: #3D4560; margin: 2px 0 0; }
.s-list { margin: 3px 0 0; padding-left: 18px; font-size: 12.5px; }
.s-list li { margin: 2px 0; }
.s-list b { font-weight: 900; }
.s-tf { display: inline-block; min-width: 46px; font-weight: 900; }
.s-tf.t { color: #17663A; }
.s-tf.f { color: #A3141B; }
.s-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; border-top: 3px solid var(--navy); padding-top: 8px; margin-top: 6px; break-inside: avoid; page-break-inside: avoid; }
.s-foot ul { margin: 0; padding-left: 16px; font-size: 11.5px; }
.s-foot li { margin: 2px 0; }
.s-keys kbd { font-family: var(--font); font-size: 10.5px; font-weight: 900; border: 1.5px solid var(--ink); border-radius: 5px; padding: 0 5px; }
@media (max-width: 640px) { .s-page { padding: 14px; } .s-box, .s-foot { grid-template-columns: 1fr; } }
@media print {
  body.sheet { background: #fff; }
  body.sheet .s-bar { display: none; }
  body.sheet .s-page { max-width: none; margin: 0; padding: 0; box-shadow: none; }
  body.sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* end of moderator, check and sheet */

/* ============================================================ big screen additions */
/* Toast ("Press again to...", music volume), above the moderator controls */
#toast { position: absolute; left: 50%; bottom: 196px; z-index: 58; max-width: 1100px; padding: 14px 26px; border-radius: 16px; background: var(--navy); color: #fff; font-size: 24px; font-weight: 800; text-align: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity 0.2s, transform 0.2s; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
/* In-page dialog (menu, confirmations), so the browser stays in full screen */
#dialog { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(22, 33, 62, 0.45); }
#dialog[hidden], #qrover[hidden] { display: none; }
#dialog .dbox { width: 680px; max-width: calc(100% - 80px); padding: 28px 32px; border-radius: 22px; background: #fff; box-shadow: 0 20px 60px rgba(22, 33, 62, 0.3); }
#dialog .dtitle { font-size: 30px; font-weight: 900; color: var(--navy); margin-bottom: 10px; }
#dialog .dtext { font-size: 19px; line-height: 1.45; margin-bottom: 20px; }
#dialog .dtext:empty { display: none; }
#dialog .dbtns { display: grid; gap: 10px; }
#dialog button { font-family: var(--font); font-size: 19px; font-weight: 800; text-align: left; padding: 14px 18px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
#dialog button:hover, #dialog button:focus-visible { border-color: var(--royal); outline: none; }
#dialog button.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
#dialog button.danger { background: var(--red-soft); border-color: var(--red); color: #9E1018; }
#dialog .keys { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: 16px; font-weight: 600; color: var(--muted); }
#dialog kbd { display: inline-block; min-width: 72px; margin-right: 6px; padding: 2px 8px; border-radius: 6px; background: var(--soft); color: var(--ink); font-family: var(--font); font-weight: 800; text-align: center; }
/* Join QR code, full screen (J) */
#qrover { position: absolute; inset: 0; z-index: 55; display: grid; place-items: center; background: rgba(244, 242, 236, 0.98); }
#qrover .qrin { display: grid; grid-template-columns: 600px 620px; gap: 50px; align-items: center; }
#qrover canvas.qr { display: block; width: 600px; height: 600px; image-rendering: pixelated; border-radius: 18px; box-shadow: var(--shadow); }
#qrover .qrtxt { display: grid; gap: 22px; }
#qrover .u { font-size: 44px; font-weight: 900; line-height: 1.2; color: var(--royal); word-break: break-all; }
#qrover .steps, #qrover .wifi { font-size: 24px; }
#qrover .warnchip { font-size: 22px; }
#qrover .close { margin: 0; font-size: 18px; font-weight: 700; }
/* The wall: cards in columns, the team's colour on the left edge */
.wall { display: flex; flex-direction: column; height: 100%; }
.wallhead { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.wallhead .wicon { width: 64px; height: 64px; border-radius: 18px; background: var(--royal); display: grid; place-items: center; flex: none; }
.wallhead .wq { flex: 1; min-width: 0; }
.wallhead .prompt { margin-top: 4px; font-size: 36px; font-weight: 900; line-height: 1.2; color: var(--navy); }
.wall.show .wallhead .prompt { font-size: 30px; }
.wallhead .wside { display: grid; justify-items: end; gap: 10px; flex: none; }
.wcount { font-size: 22px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.wcount b { font-size: 40px; font-weight: 900; color: var(--ink); }
.wallbox { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.wallgrid { position: relative; height: 100%; columns: 4; column-gap: 22px; column-fill: auto; transition: transform 0.7s ease; }
.wall.show .wallgrid { columns: 3; }
/* While writing: a plain grid, the newest card first; when showing a single page: balanced columns */
.wall.write .wallgrid { columns: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 22px; align-content: start; }
.wall.write .wcard { margin: 0; }
.wall.show .wallgrid.one { column-fill: balance; height: auto; }
.wcard { break-inside: avoid; margin: 0 0 16px; padding: 14px 18px 14px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); border-left: 8px solid var(--tc); box-shadow: var(--shadow); }
.wcard .tx { font-size: 22px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.wall.show .wcard .tx { font-size: 28px; }
.wcard .by { margin-top: 8px; font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.wall.show .wcard .by { font-size: 18px; }
.wcard .by b { color: var(--ink); font-weight: 800; }
.wcard .tdot { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 50%; vertical-align: 1px; }
.wpages { display: flex; gap: 8px; }
.wpages i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.wpages i.on { background: var(--navy); }
/* End screen: what happened, then the discussion. Static on purpose: it stays up for ten minutes. */
.endv { display: flex; flex-direction: column; height: 100%; }
.endhead { margin-bottom: 16px; }
.endhead .headline { max-width: 1460px; margin-top: 6px; font-size: 28px; font-weight: 700; line-height: 1.3; color: var(--navy); }
.endhead .headline b { font-weight: 900; }
.endgrid { flex: 1; min-height: 0; display: grid; grid-template-columns: 490px 1.1fr 1fr; gap: 20px; }
.endcol { min-height: 0; overflow: hidden; padding: 20px 22px; }
.endcol .sec { margin-bottom: 10px; font-size: 18px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); }
.wf { display: grid; gap: 5px; }
.wf .axis { position: relative; height: 22px; margin: 0 74px 0 180px; }
.wf .axis span { position: absolute; transform: translateX(-50%); font-size: 18px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.wfr { display: grid; grid-template-columns: 170px 1fr 64px; gap: 10px; align-items: center; font-size: 20px; font-weight: 700; }
.wfr .tr { position: relative; height: 26px; border-radius: 6px; background: var(--soft); }
.wfr .tr::after { content: ''; position: absolute; top: -4px; bottom: -4px; left: var(--pass); width: 3px; margin-left: -1px; background: var(--navy); }
.wfr .tr i { position: absolute; top: 0; bottom: 0; border-radius: 6px; }
.wfr b { text-align: right; font-variant-numeric: tabular-nums; }
.wfr.base i, .wfr.final i { background: var(--navy); }
.wfr.final { font-weight: 900; }
.wfr.final.ok i { background: var(--green); }
.wfr.loss i { background: var(--red); } .wfr.loss b { color: var(--red); }
.wfr.gain i { background: var(--green); } .wfr.gain b { color: var(--green-text); }
.wfr.spot i { background: var(--gold); } .wfr.spot b { color: var(--gold-text); }
.dteams { display: grid; gap: 6px; }
.dt { display: grid; grid-template-columns: 34px 90px 1fr; gap: 10px; align-items: center; font-size: 20px; font-weight: 600; }
.dt b { font-weight: 900; }
.dt .sur { color: var(--gold-text); font-weight: 800; }
.endcol .note { margin: 10px 0 0; font-size: 18px; color: var(--ink); }
.hard p { margin: 0 0 4px; font-size: 20px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hard span { font-size: 20px; font-weight: 800; color: var(--red); }
/* What the room believed: one line under the hardest question */
.endcol .believed { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 0; font-size: 20px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.endcol .believed .ic { margin-top: 2px; }
/* Feedback in the end card: the answers get the width (one line each), the bars stay readable */
.endcol .fbq.small .fbrow { grid-template-columns: minmax(0, 1fr) 130px 30px; }
.endcol.endtalk { display: flex; flex-direction: column; margin: 0; background: var(--navy); border-color: var(--navy); color: #fff; }
.endcol.endtalk .sec { color: var(--sun); }
.prompts { display: grid; gap: 18px; margin: 0; padding: 0 0 0 28px; font-size: 23px; font-weight: 700; line-height: 1.35; }
.prompts li::marker { color: var(--sun); font-weight: 900; }
.credit { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--muted); }
.center .credit { margin-top: 50px; font-size: 20px; }
.mapcard #pins { position: absolute; inset: 0; pointer-events: none; }
/* The end screen gets the whole height: no bottom bar during the discussion. */
#stage.endphase #bottombar, #stage.endphase #saystrip { display: none; }
#stage.endphase #main { bottom: 0; }
/* One timer pill everywhere: a clock and the seconds; red and pulsing near the end; hidden when empty */
body.host .tpill { display: inline-flex; align-items: center; gap: 10px; flex: none; padding: 6px 20px 6px 14px; border-radius: 999px; background: #fff; border: 2px solid var(--line); box-shadow: var(--shadow); font-size: 32px; font-weight: 900; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: 0; text-transform: none; white-space: nowrap; color: var(--navy); }
body.host .tpill:empty { display: none; }
body.host .tpill.low { background: var(--red); border-color: var(--red); color: #fff; animation: pulse 0.5s ease-in-out infinite; }
body.host .tpill.over { background: var(--red); border-color: var(--red); color: #fff; }
body.host .tpill.done { background: var(--navy); border-color: var(--navy); color: #fff; }
/* Loudspeaker: an online player's team message, 6 s above their team's chip (one slot per team, as in the strip) */
#saystrip { position: absolute; left: 474px; right: 324px; bottom: 134px; display: flex; gap: 10px; justify-content: center; z-index: 6; pointer-events: none; }
#saystrip .sayslot { flex: 1 1 0; max-width: 290px; min-width: 0; display: flex; justify-content: center; align-items: flex-end; }
#saystrip .tsay { position: relative; display: flex; flex-direction: column; gap: 4px; width: max-content; max-width: 100%; padding: 8px 14px 10px 10px; border-radius: 16px; background: #fff; border-left: 6px solid var(--tc); box-shadow: 0 8px 24px rgba(22, 33, 62, 0.18); font-size: 21px; font-weight: 700; line-height: 1.25; color: var(--ink); animation: tsay 6s ease-out both; }
#saystrip .tsay::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 16px; height: 16px; margin-left: -8px; background: #fff; transform: rotate(45deg); box-shadow: 4px 4px 8px rgba(22, 33, 62, 0.08); }
#saystrip .tsay .sh { display: flex; align-items: center; gap: 8px; min-width: 0; }
#saystrip .tsay .sd { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
#saystrip .tsay b { min-width: 0; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#saystrip .tsay .msg { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
@keyframes tsay { 0% { opacity: 0; transform: translateY(12px) scale(0.92); } 5%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
.noanim #saystrip .tsay { animation: none !important; }
/* end of big screen additions */

/* The closing questions (1 Nov 2026): the reading layout of the wall, with the question as large as in the game. */
.wall.closing .wallhead .prompt { font-size: 36px; }
.wall.closing .wallhead .wicon { background: var(--navy); }
.endtalk .prompts .pn { display: block; margin-top: 4px; font-size: 18px; font-weight: 600; color: rgba(255, 255, 255, 0.75); }
.endtalk .pnote { margin: auto 0 0; padding-top: 16px; font-size: 18px; font-weight: 600; color: rgba(255, 255, 255, 0.75); }

/* The phone map can be moved and zoomed (1 Nov 2026): + and − for people who don't pinch, and for computers. */
.pmap .pctl { position: absolute; right: 8px; bottom: 8px; display: grid; gap: 6px; }
.pmap .pz { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; font-family: var(--font); font-size: 26px; font-weight: 900; line-height: 1; color: var(--navy); background: #fff; border: 2px solid var(--line); border-radius: 12px; box-shadow: 0 2px 0 var(--line); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pmap .pz:disabled { color: var(--line); cursor: default; }
.pmap canvas.grabbing { cursor: grabbing; }

/* The briefcase moves one step per item (1 Nov 2026): a short glide rather than a jump. */
#auditclock .track i { transition: background 0.6s, width 0.9s ease; }
#auditclock .walker { transition: left 0.9s ease; }

/* Photos beside the questions (1 Nov 2026), big screen only: they fill the height of the question card. */
.qhead.pic { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 22px; align-items: stretch; }
.qscreen.intro .qhead.pic, .estv .qhead.pic { grid-template-columns: minmax(0, 1fr) 460px; }
.qhead .qimg { position: relative; margin: 0; min-height: 200px; border-radius: 18px; overflow: hidden; background: #E9E6DC; box-shadow: var(--shadow); }
.qhead .qimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qhead .qimg figcaption { position: absolute; right: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 3px 9px; border-radius: 7px; background: rgba(22, 33, 62, 0.72); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
