/* Stage: 1280×720 canvas scaled into its host. Deck-specific look lives in /decks/<id>/deck.css. */
.stage-wrap { position: absolute; inset: 0; overflow: hidden; }
.stage {
  position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px;
  transform-origin: center; overflow: hidden; background: #000;
}
.stage .sl { position: absolute; inset: 0; padding: 64px 88px 72px; display: flex; flex-direction: column; }
.stage .sl.enter { animation: sl-in .45s cubic-bezier(.2,.7,.2,1); }
@keyframes sl-in { from { opacity: 0; transform: translateX(calc(var(--d, 1) * 24px)); } to { opacity: 1; transform: none; } }
.stage .r { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s cubic-bezier(.2,.7,.2,1); }
.stage .r.on { opacity: 1; transform: none; }
.stage [data-r] { opacity: 0; transition: opacity .35s ease; }
.stage [data-r].on { opacity: 1; }
.stage aside.notes { display: none; }

/* Question block on a slide (filled by the app) */
.stage .poll { display: flex; flex-direction: column; gap: 22px; flex: 1; min-height: 0; justify-content: center; }
.stage .two .poll { justify-content: flex-start; }
.stage .poll .pq { font-size: 40px; font-weight: 700; line-height: 1.15; margin: 0; }
.stage .poll .pcode { margin: 0; font: 22px/1.4 ui-monospace, monospace; background: rgba(127,127,127,.14); padding: 14px 18px; border-radius: 10px; white-space: pre-wrap; }
.stage .poll .optlist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; margin-bottom: 10px; }
.stage .poll .optlist div { display: flex; gap: 16px; align-items: center; font-size: 28px; }
.stage .poll .optlist b { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; border: 2px solid currentColor; font-size: 20px; }
.stage .poll .waiting { font-size: 24px; opacity: .75; }
.stage .poll .waiting b { font-size: 64px; line-height: 1; margin-right: 12px; font-variant-numeric: tabular-nums; }

/* ---------- results (projector, viewer, stats). Monochrome: follows the text color. ---------- */
.res { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.res .bar { display: grid; grid-template-columns: 40px minmax(120px, 36%) 1fr 70px; align-items: center; gap: 14px; font-size: 22px; transition: opacity .3s; }
.res .bar.dim { opacity: .35; }
.res .key { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; border: 2px solid currentColor; font-weight: 700; font-size: 18px; }
.res .bar.ok .key { background: #2fb86f; border-color: #2fb86f; color: #fff; }
.res .bar.mine .lbl { text-decoration: underline; text-underline-offset: 4px; }
.res .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res .track { height: 28px; background: rgba(127,127,127,.15); border-radius: 6px; overflow: hidden; }
.res .fill { display: block; height: 100%; border-radius: 6px; background: currentColor; opacity: .85; transition: width .5s cubic-bezier(.2,.7,.2,1); }
.res .bar.ok .fill { background: #2fb86f; opacity: 1; }
.res .num { text-align: right; font-variant-numeric: tabular-nums; opacity: .8; }
.res .hist { display: flex; align-items: flex-end; justify-content: center; gap: 10px; height: 260px; }
.res .col { flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.res .colbar { width: 100%; background: currentColor; opacity: .85; border-radius: 6px 6px 0 0; min-height: 2px; transition: height .5s; }
.res .col.ok .colbar { background: #2fb86f; opacity: 1; }
.res .cnt, .res .clbl { font-size: 18px; font-variant-numeric: tabular-nums; }
.res .cloud { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; align-items: center; min-height: 120px; line-height: 1.1; font-weight: 700; }
.res .word { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.res .res-total { font-size: 15px; opacity: .6; text-align: right; }
.stage .res { color: inherit; }
.pq code, .qprompt code { font-family: ui-monospace, 'JetBrains Mono', monospace; background: rgba(127,127,127,.18); padding: 0 .3em; border-radius: .25em; }
