/* Quizy i sondy na zywo: telefon uczestnika (lp-), ekran prezentacji (ls-) i pilot (lpi-).
   Kolory i czcionki pochodza z motywu prowadzacego (--s-*), kolory odpowiedzi A-F sa stale,
   zeby uczestnik latwo dopasowal przycisk w telefonie do kafelka na ekranie. */
:root {
  --s-primary: #5b4cf0; --s-on-primary: #fff; --s-bg: #f3f4fb; --s-card: #fff; --s-text: #1f2333;
  --s-radius: 14px; --s-font: system-ui, sans-serif; --s-heading-font: var(--s-font); --s-logo-height: 56px;
  --s-muted: color-mix(in srgb, var(--s-text) 62%, var(--s-card));
  --s-line: color-mix(in srgb, var(--s-text) 14%, var(--s-card));
  --s-soft: color-mix(in srgb, var(--s-primary) 9%, var(--s-card));
  --o0: #d1453b; --o1: #2b6cd4; --o2: #c07a0a; --o3: #23894a; --o4: #7d4fd1; --o5: #0d8a96;
  --ok: #15803d; --bad: #d92d20;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.live-body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--s-bg); color: var(--s-text); font-family: var(--s-font); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--s-primary); }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--s-primary) 55%, transparent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Znak DarmoweSondy.pl */
.live-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--s-text); font-size: 15px; white-space: nowrap; }
.live-brand__icon { width: 26px; height: 26px; flex: none; }
.live-brand__name { font-weight: 600; letter-spacing: -.01em; }
.live-brand__name strong { font-weight: 800; color: #5b4cf0; }
.live-brand__name span { opacity: .65; font-weight: 500; }

/* Kolory odpowiedzi */
.lp-opt--0, .ls-opt--0 .ls-opt__letter { --o: var(--o0); }
.lp-opt--1, .ls-opt--1 .ls-opt__letter { --o: var(--o1); }
.lp-opt--2, .ls-opt--2 .ls-opt__letter { --o: var(--o2); }
.lp-opt--3, .ls-opt--3 .ls-opt__letter { --o: var(--o3); }
.lp-opt--4, .ls-opt--4 .ls-opt__letter { --o: var(--o4); }
.lp-opt--5, .ls-opt--5 .ls-opt__letter { --o: var(--o5); }
.ls-opt--0 { --o: var(--o0); } .ls-opt--1 { --o: var(--o1); } .ls-opt--2 { --o: var(--o2); }
.ls-opt--3 { --o: var(--o3); } .ls-opt--4 { --o: var(--o4); } .ls-opt--5 { --o: var(--o5); }

/* ---------- Telefon uczestnika ---------- */
.lp { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.lp-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: color-mix(in srgb, var(--s-card) 92%, transparent); border-bottom: 1px solid var(--s-line); }
.lp-bar__me { max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: 99px; background: var(--s-soft); color: var(--s-text); }
.lp-main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 18px 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.lp-logo { display: block; max-height: var(--s-logo-height); max-width: min(100%, 280px); margin: 0 auto; object-fit: contain; }
.lp-card { background: var(--s-card); border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: clamp(18px, 5vw, 32px); box-shadow: 0 1px 3px rgba(0, 0, 0, .05), 0 18px 48px -30px rgba(0, 0, 0, .35); }
.lp-foot { padding: 12px 16px 18px; padding-bottom: max(18px, env(safe-area-inset-bottom)); text-align: center; font-size: 12px; color: var(--s-muted); }
.lp-foot a { margin-left: 6px; color: inherit; }
.lp-kicker { margin: 0 0 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--s-muted); }
.lp-title { font-family: var(--s-heading-font); font-size: clamp(1.35rem, 6vw, 1.75rem); line-height: 1.2; margin: 0 0 10px; overflow-wrap: anywhere; }
.lp-question { font-family: var(--s-heading-font); font-size: clamp(1.15rem, 5vw, 1.45rem); line-height: 1.3; margin: 0 0 14px; overflow-wrap: anywhere; }
.lp-muted { color: var(--s-muted); margin: 0 0 10px; }
.lp-small { font-size: 14px; }
.lp-center { text-align: center; }
.lp-note { text-align: center; font-size: 14px; color: var(--s-muted); margin: 0; }
.lp-alert { background: color-mix(in srgb, var(--bad) 9%, var(--s-card)); color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 30%, var(--s-card)); border-radius: calc(var(--s-radius) * .6); padding: 10px 14px; margin: 0 0 14px; font-weight: 600; font-size: 15px; }
.lp-join { display: grid; gap: 10px; }
.lp-join .lp-title, .lp-join .lp-muted, .lp-join .lp-alert, .lp-join .lp-kicker { margin-bottom: 0; }
.lp-label { font-weight: 700; margin-top: 4px; }
.lp-input { width: 100%; min-height: 54px; padding: 0 16px; font: inherit; font-size: 20px; color: var(--s-text); background: color-mix(in srgb, var(--s-text) 3%, var(--s-card)); border: 2px solid var(--s-line); border-radius: calc(var(--s-radius) * .7); }
.lp-input:focus { outline: none; border-color: var(--s-primary); }
.lp-input--sm { min-height: 42px; font-size: 16px; margin: 6px 0 10px; }
.lp-code-input { width: 100%; min-height: 72px; text-align: center; font: inherit; font-size: 40px; font-weight: 800; letter-spacing: .12em; font-variant-numeric: tabular-nums; color: var(--s-text); background: color-mix(in srgb, var(--s-text) 3%, var(--s-card)); border: 2px solid var(--s-line); border-radius: calc(var(--s-radius) * .7); }
.lp-code-input:focus { outline: none; border-color: var(--s-primary); }
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 54px; padding: 0 22px; border: 0; border-radius: calc(var(--s-radius) * .7); background: var(--s-primary); color: var(--s-on-primary); font-size: 18px; font-weight: 700; text-decoration: none; cursor: pointer; }
.lp-btn:disabled { opacity: .45; cursor: default; }
.lp-btn--block { width: 100%; margin-top: 6px; }
.lp-btn--ghost { background: transparent; color: var(--s-primary); border: 2px solid currentColor; font-size: 16px; min-height: 46px; }
.lp-btn--danger { background: transparent; color: var(--bad); border: 2px solid color-mix(in srgb, var(--bad) 40%, transparent); font-size: 16px; min-height: 46px; }
.lp-suggest { justify-self: start; border: 1px dashed var(--s-primary); background: var(--s-soft); color: var(--s-text); border-radius: 99px; padding: 8px 16px; cursor: pointer; }
.lp-pulse { width: 64px; height: 64px; margin: 6px auto 18px; border-radius: 50%; background: var(--s-primary); animation: lp-pulse 1.6s ease-out infinite; }
@keyframes lp-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--s-primary) 55%, transparent); } 100% { box-shadow: 0 0 0 26px transparent; } }
.lp-ready { font-size: 20px; font-weight: 700; margin: 18px 0 4px; }
.lp-ready strong { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--s-primary); color: var(--s-on-primary); margin-left: 6px; }
.lp-q__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lp-q__time { font-weight: 700; font-variant-numeric: tabular-nums; }
.lp-q__time strong { font-size: 22px; }
.lp-timebar { height: 6px; border-radius: 99px; background: var(--s-line); overflow: hidden; margin: 2px 0 14px; }
.lp-timebar i { display: block; height: 100%; width: 100%; background: var(--s-primary); border-radius: inherit; transition: width .2s linear; }
.lp-opts { display: grid; gap: 10px; }
.lp-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 14px; border: 0; border-radius: calc(var(--s-radius) * .7); background: var(--o); color: #fff; text-align: left; font-size: 18px; font-weight: 700; cursor: pointer; touch-action: manipulation; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18); }
.lp-opt:active { transform: translateY(2px); box-shadow: none; }
.lp-opt[aria-pressed="false"] { opacity: .78; }
.lp-opt[aria-pressed="true"] { outline: 4px solid color-mix(in srgb, var(--o) 45%, var(--s-text)); outline-offset: 2px; }
.lp-opt__letter { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .22); font-weight: 800; }
.lp-opt__label { overflow-wrap: anywhere; line-height: 1.25; }
.lp-done, .lp-verdict { display: grid; place-items: center; width: 84px; height: 84px; margin: 6px auto 14px; border-radius: 50%; font-size: 44px; font-weight: 800; background: var(--s-soft); color: var(--s-primary); }
.lp-done--late { font-size: 38px; }
.lp-verdict--ok { background: var(--ok); color: #fff; }
.lp-verdict--bad { background: var(--bad); color: #fff; }
.lp-verdict--none { background: var(--s-line); color: var(--s-muted); }
.lp-chosen { font-weight: 700; margin: 0 0 10px; overflow-wrap: anywhere; }
.lp-score { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; padding: 12px; border-radius: calc(var(--s-radius) * .6); background: var(--s-soft); }
.lp-score strong { font-size: 18px; }
.lp-final { display: flex; justify-content: center; align-items: baseline; gap: 8px; margin: 6px 0 12px; }
.lp-final strong { font-size: 64px; line-height: 1; color: var(--s-primary); }
.lp-final span { font-size: 18px; color: var(--s-muted); }
.lp-cta { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--s-line); }
.lp-cta p { margin: 0 0 10px; font-size: 15px; }

/* ---------- Ekran prezentacji ---------- */
.live-screen { overflow: hidden; }
.ls { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; font-size: clamp(14px, 1.15vw + .6vh, 30px); }
.ls-top { display: flex; align-items: center; justify-content: space-between; gap: 2em; padding: 1em 2em .4em; min-height: 3.6em; }
.ls-top__host { display: flex; align-items: center; gap: .9em; min-width: 0; }
.ls-logo { max-height: calc(var(--s-logo-height) * 1.1); max-width: 22vw; object-fit: contain; }
.ls-top__title { font-weight: 700; color: var(--s-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-top__join { font-size: 1.15em; padding: .35em 1em; border-radius: 99px; background: var(--s-card); border: 1px solid var(--s-line); white-space: nowrap; }
.ls-top__join strong { letter-spacing: .06em; color: var(--s-primary); }
.ls-top__people { font-weight: 800; font-size: 1.15em; padding: .35em .9em; border-radius: 99px; background: var(--s-card); border: 1px solid var(--s-line); white-space: nowrap; }
.ls-stage { min-height: 0; padding: .6em 2em 1em; display: flex; flex-direction: column; justify-content: safe center; overflow: hidden; }
.ls-foot { display: flex; align-items: center; justify-content: space-between; gap: 1.5em; padding: .5em 2em 1em; }
.ls-foot .live-brand { font-size: 1em; padding: .35em .9em .35em .45em; border-radius: 99px; background: var(--s-card); border: 1px solid var(--s-line); }
.ls-foot .live-brand__icon { width: 1.6em; height: 1.6em; }
.ls-controls { display: flex; align-items: center; gap: .6em; transition: opacity .3s; }
.is-idle .ls-controls, .is-idle .ls-again { opacity: 0; }
.is-idle { cursor: none; }
.ls-keys { font-size: .75em; color: var(--s-muted); }
.ls-ctl { min-height: 2.3em; padding: 0 1em; border-radius: .6em; border: 1px solid var(--s-line); background: var(--s-card); color: var(--s-text); font-size: .8em; font-weight: 700; cursor: pointer; }
.ls-ctl--primary { background: var(--s-primary); color: var(--s-on-primary); border-color: transparent; }
.ls-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; max-width: min(90vw, 560px); background: #1b1d2e; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.ls-kicker { margin: 0 0 .5em; font-size: .85em; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--s-muted); }
.ls-h1 { font-family: var(--s-heading-font); font-size: 2.6em; line-height: 1.1; margin: 0 0 .4em; letter-spacing: -.02em; overflow-wrap: anywhere; }
.ls-h1--xl { font-size: 3.4em; }
.ls-lead { font-size: 1.25em; max-width: 40em; margin: 0 auto 1em; }
.ls-muted { color: var(--s-muted); margin: 0 0 .6em; }
.ls-small { font-size: .8em; }
.ls-center { text-align: center; max-width: 52em; margin: 0 auto; }
.ls-start { margin: 1em 0 .8em; min-height: 3.2em; padding: 0 2em; border: 0; border-radius: .7em; background: var(--s-primary); color: var(--s-on-primary); font-size: 1.3em; font-weight: 800; cursor: pointer; box-shadow: 0 .6em 1.6em -.6em color-mix(in srgb, var(--s-primary) 70%, transparent); }
.ls-again { margin-top: 1em; padding: .5em 1.2em; border-radius: .6em; border: 1px solid var(--s-line); background: var(--s-card); color: var(--s-muted); font-size: .8em; cursor: pointer; transition: opacity .3s; }

/* Poczekalnia */
.ls-lobby { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2em; align-items: stretch; height: 100%; max-height: 40em; }
.ls-join { display: flex; flex-direction: column; justify-content: center; background: var(--s-card); border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 1.6em 2em; box-shadow: 0 1.2em 3em -2em rgba(0, 0, 0, .35); }
.ls-step { display: flex; align-items: center; gap: .6em; font-size: 1.35em; margin: 0 0 .5em; }
.ls-step strong { color: var(--s-primary); }
.ls-step__n { display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--s-soft); color: var(--s-primary); font-weight: 800; font-size: .85em; flex: none; }
.ls-code { font-size: 4.4em; font-weight: 800; letter-spacing: .08em; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--s-text); margin: .1em 0 .3em; white-space: nowrap; }
.ls-qr-row { display: flex; align-items: center; gap: 1em; }
.ls-qr { width: 7.5em; height: 7.5em; padding: .4em; background: #fff; border-radius: .5em; flex: none; }
.ls-qr img, .ls-qr canvas { display: block; width: 100% !important; height: 100% !important; }
.ls-crowd { display: flex; flex-direction: column; min-height: 0; }
.ls-crowd__title { font-family: var(--s-heading-font); font-size: 2.1em; line-height: 1.15; margin: 0 0 .3em; overflow-wrap: anywhere; }
.ls-crowd__count { font-size: 1.3em; margin: 0 0 .6em; }
.ls-crowd__count strong { font-size: 1.6em; color: var(--s-primary); font-variant-numeric: tabular-nums; }
.ls-names { display: flex; flex-wrap: wrap; align-content: flex-start; gap: .45em; overflow: hidden; min-height: 0; flex: 1; }
.ls-chip { display: inline-block; padding: .3em .8em; border-radius: 99px; background: var(--s-card); border: 1px solid var(--s-line); font-weight: 700; max-width: 14em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-chip.is-new { animation: ls-pop .5s cubic-bezier(.2, 1.4, .4, 1); border-color: var(--s-primary); }
.ls-chip--more { background: var(--s-soft); color: var(--s-muted); }
@keyframes ls-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Pytanie i wyniki */
.ls-q { display: flex; flex-direction: column; gap: .9em; height: 100%; justify-content: center; }
.ls-q__head { display: flex; justify-content: space-between; align-items: center; gap: 1em; min-height: 3.5em; }
.ls-q__head .ls-kicker { margin: 0; }
.ls-q__title { font-family: var(--s-heading-font); font-size: 2.7em; line-height: 1.15; margin: 0; letter-spacing: -.015em; overflow-wrap: anywhere; }
.ls-timer { --p: 100; position: relative; display: grid; place-items: center; align-content: center; width: 5.2em; height: 5.2em; border-radius: 50%; background: conic-gradient(var(--s-primary) calc(var(--p) * 1%), var(--s-line) 0); }
.ls-timer::before { content: ""; position: absolute; inset: .38em; border-radius: 50%; background: var(--s-bg); }
.ls-timer span, .ls-timer small { position: relative; line-height: 1; }
.ls-timer span { font-size: 2em; font-weight: 800; font-variant-numeric: tabular-nums; }
.ls-timer small { font-size: .55em; color: var(--s-muted); margin-top: .15em; }
.ls-timer.is-ready { background: var(--s-soft); }
.ls-timer.is-ending { background: conic-gradient(var(--bad) calc(var(--p) * 1%), var(--s-line) 0); }
.ls-timer.is-ending span { color: var(--bad); }
.ls-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1em; }
.ls-opts--3, .ls-opts--5, .ls-opts--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ls-opt { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "letter label check" "result result result"; align-items: center; gap: .4em .9em; padding: 1em 1.2em; min-height: 6em; background: var(--s-card); border: 1px solid var(--s-line); border-left: .45em solid var(--o); border-radius: var(--s-radius); box-shadow: 0 .6em 1.6em -1.2em rgba(0, 0, 0, .35); transition: opacity .4s, transform .4s; }
.ls-opt__letter { grid-area: letter; display: grid; place-items: center; width: 2.3em; height: 2.3em; font-size: 1.15em; border-radius: .45em; background: var(--o); color: #fff; font-weight: 800; }
.ls-opt__label { grid-area: label; font-size: 1.6em; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.ls-opt__check { grid-area: check; display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--ok); color: #fff; font-weight: 800; }
.ls-opt__result { grid-area: result; display: none; align-items: center; gap: .8em; }
.ls-opts--results .ls-opt__result { display: flex; }
.ls-opt__bar { flex: 1; height: .8em; border-radius: 99px; background: var(--s-line); overflow: hidden; }
.ls-opt__bar i { display: block; height: 100%; width: 0; background: var(--o); border-radius: inherit; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.ls-opt__value { min-width: 5.5em; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.ls-opt.is-correct { border-color: var(--ok); box-shadow: 0 0 0 .18em color-mix(in srgb, var(--ok) 45%, transparent); }
.ls-opt.is-wrong { opacity: .55; }
.ls-q__foot { display: flex; justify-content: space-between; gap: 1em; font-size: 1.35em; font-weight: 700; color: var(--s-muted); }
.ls-summary { display: grid; gap: .6em; }
.ls-summary__line { margin: 0; font-size: 1.3em; }
.ls-summary__line strong { color: var(--ok); }
.ls-names--correct { flex: none; max-height: 6.5em; }
.ls-names--correct .ls-chip { border-color: color-mix(in srgb, var(--ok) 45%, var(--s-line)); }

/* Ranking i podsumowanie */
.ls-board, .ls-final { text-align: center; max-width: 46em; width: 100%; margin: 0 auto; }
.ls-rank { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: .45em; text-align: left; }
.ls-rank__row { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto; align-items: center; gap: .8em; padding: .55em 1em; background: var(--s-card); border: 1px solid var(--s-line); border-radius: calc(var(--s-radius) * .8); font-size: 1.2em; }
.ls-rank__row--top { border-color: color-mix(in srgb, var(--s-primary) 40%, var(--s-line)); }
.ls-rank__pos { display: grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--s-soft); color: var(--s-primary); font-weight: 800; }
.ls-rank__nick { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-rank__score { font-weight: 800; font-variant-numeric: tabular-nums; }
.ls-rank--two { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); grid-auto-flow: column; gap: .5em 1.2em; }
.ls-board { max-width: 60em; }
.ls-rank--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4em .8em; margin: 1em 0; }
.ls-rank--compact .ls-rank__row { font-size: .95em; padding: .4em .8em; }
.ls-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: .8em; max-width: 36em; margin: .4em auto .2em; }
.ls-podium__place { display: flex; flex-direction: column; align-items: center; gap: .25em; min-width: 0; }
.ls-podium__nick { font-weight: 800; font-size: 1.3em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-podium__score { color: var(--s-muted); font-weight: 700; }
.ls-podium__block { width: 100%; display: grid; place-items: center; border-radius: .6em .6em 0 0; background: var(--s-primary); color: var(--s-on-primary); font-size: 2.2em; font-weight: 800; animation: ls-rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.ls-podium__place--1 .ls-podium__block { height: 3.2em; }
.ls-podium__place--2 .ls-podium__block { height: 2.3em; opacity: .85; animation-delay: .25s; }
.ls-podium__place--3 .ls-podium__block { height: 1.7em; opacity: .7; animation-delay: .5s; }
@keyframes ls-rise { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }

@media (max-aspect-ratio: 4/3) {
  .ls-lobby { grid-template-columns: 1fr; max-height: none; }
  .ls-opts--3, .ls-opts--5, .ls-opts--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .ls { font-size: 13px; }
  .ls-top, .ls-stage, .ls-foot { padding-left: 16px; padding-right: 16px; }
  .ls-keys { display: none; }
  .ls-opts { grid-template-columns: 1fr !important; }
}

/* ---------- Pilot prowadzacego ---------- */
.lpi { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.lpi-badge { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 99px; background: #1b1d2e; color: #fff; }
.lpi-main { width: 100%; max-width: 560px; margin: 0 auto; padding: 14px 16px 32px; display: grid; gap: 12px; }
.lpi-title { font-family: var(--s-heading-font); font-size: 20px; margin: 4px 0 0; overflow-wrap: anywhere; }
.lpi-main > div[data-pilot] { display: grid; gap: 12px; }
.lpi-status__row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; font-size: 15px; }
.lpi-status__row strong { font-size: 18px; letter-spacing: .04em; }
.lpi-chip { margin-left: auto; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: var(--s-soft); color: var(--s-primary); }
.lpi-chip--question { background: color-mix(in srgb, var(--ok) 14%, var(--s-card)); color: var(--ok); }
.lpi-chip--finished { background: var(--s-line); color: var(--s-muted); }
.lpi-card { background: var(--s-card); border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 18px; box-shadow: 0 1px 3px rgba(0, 0, 0, .05); }
.lpi-card:empty { display: none; }
.lpi-h2 { font-size: 19px; line-height: 1.3; margin: 0 0 12px; overflow-wrap: anywhere; }
.lpi-code { font-size: 44px; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; margin: 0 0 4px; }
.lpi-big { font-size: 17px; margin: 0 0 10px; }
.lpi-big strong { font-size: 26px; color: var(--s-primary); }
.lpi-primary { min-height: 64px; font-size: 20px; margin-top: 12px; }
.lpi-qhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lpi-timer { font-weight: 700; font-variant-numeric: tabular-nums; }
.lpi-timer strong { font-size: 22px; }
.lpi-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lpi-opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--s-line); border-radius: 10px; }
.lpi-opt.is-correct { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 7%, var(--s-card)); }
.lpi-opt__letter { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--o); color: #fff; font-weight: 800; font-size: 14px; }
.lpi-opt__label { overflow-wrap: anywhere; line-height: 1.3; }
.lpi-opt__ok { color: var(--ok); font-weight: 800; }
.lpi-opt__count { font-weight: 700; font-size: 14px; color: var(--s-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lpi-answered { font-weight: 700; margin: 12px 0 0; }
.lpi-rank { margin: 0 0 6px; padding: 0; list-style: none; display: grid; gap: 6px; }
.lpi-rank li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--s-soft); }
.lpi-rank__nick { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lpi-preview { background: var(--s-card); border: 1px dashed var(--s-line); border-radius: var(--s-radius); padding: 12px 14px; }
.lpi-preview summary { cursor: pointer; overflow-wrap: anywhere; }
.lpi-preview .lpi-opts { margin-top: 10px; }
.lpi-people { background: var(--s-card); border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 12px 14px; }
.lpi-people summary { cursor: pointer; font-weight: 700; }
.lpi-people > .lp-muted { margin-top: 8px; }
.lpi-people__list { display: grid; gap: 6px; max-height: 50vh; overflow-y: auto; }
.lpi-person { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 4px 6px 10px; border-radius: 8px; background: color-mix(in srgb, var(--s-text) 3%, var(--s-card)); }
.lpi-person span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lpi-person__remove { flex: none; border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); background: transparent; color: var(--bad); border-radius: 8px; padding: 6px 12px; font-size: 14px; font-weight: 700; cursor: pointer; }
.lpi-footer:empty { display: none; }
