/* Plátno: projekce místnosti a aula (design manuál, kap. 11). Čte se z dálky, proto nic menšího než 20 px a nejvýš šest řádků. */

.screen { min-height: 100dvh; display: flex; flex-direction: column; background: var(--bc-bg); color: var(--bc-text); font-size: 24px; line-height: 1.4; position: relative; overflow: hidden; }
.screen .bc-head { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 20px 48px; border-bottom: 1px solid var(--bc-border); }
.screen .bc-room { display: flex; align-items: baseline; gap: 16px; min-width: 0; }
.screen .bc-room .dot { width: 18px; height: 18px; border-radius: 50%; flex: none; align-self: center; }
.screen .bc-room b { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -.02em; white-space: nowrap; }
.screen .bc-round { font-size: 24px; color: var(--bc-muted); white-space: nowrap; }
.screen .bc-right { display: flex; align-items: center; gap: 32px; flex: none; }
.screen .bc-right .timer { font-family: var(--font-mono); font-weight: 700; font-size: 56px; line-height: 1; }
.screen .brand { color: var(--bc-text); font-size: 22px; }
.screen .content { flex: 1; display: flex; flex-direction: column; padding: 32px 48px 48px; min-height: 0; }
.screen h1 { font-family: var(--font-display); font-weight: 800; font-size: 64px; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 16px; }
.screen h2 { font-family: var(--font-display); font-weight: 700; font-size: 40px; letter-spacing: -.02em; margin: 0 0 24px; }
.screen h3 { font-family: var(--font-display); font-weight: 700; font-size: 30px; margin: 0; display: flex; align-items: center; gap: 14px; }
.screen p { margin: 0; }
.screen .muted, .screen .bc-sub { color: var(--bc-muted); }
.screen .bc-sub { font-size: 30px; margin-top: 20px; }
.screen .pill { font-size: 20px; padding: 4px 14px; background: var(--bc-surface-2); border: 1px solid var(--bc-border); color: var(--bc-text); border-radius: var(--radius-full); white-space: nowrap; font-weight: 500; }
.screen .pill.ok { background: color-mix(in srgb, var(--bc-ok) 18%, transparent); border-color: var(--bc-ok); color: var(--bc-ok); }
.screen .timer.low { color: var(--bc-warn); } .screen .timer.over { color: var(--bc-bad); }
.screen .hero { flex: 1; display: grid; place-items: center; text-align: center; }
.screen .hero h1 { max-width: 22ch; margin-inline: auto; }
.screen .hero .timer { font-family: var(--font-mono); font-weight: 700; font-size: 180px; line-height: 1; letter-spacing: -.02em; }
.screen .bc-event-line { display: inline-flex; align-items: center; gap: 12px; margin-top: 36px; font-size: 30px; color: var(--bc-warn); font-weight: 600; }

/* karty: sektory, tabule trhu, vítězové */
.bc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-content: start; }
.bc-card { background: var(--bc-surface); border: 1px solid var(--bc-border); border-radius: 20px; padding: 24px 28px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.bc-card h3 .pill { margin-left: auto; }
.bc-card p { font-size: 22px; color: var(--bc-muted); }
.bc-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--sec-fill, var(--bc-accent)) 22%, transparent); color: var(--sec-fill, var(--bc-accent)); }
.bc-ico.small { width: 40px; height: 40px; border-radius: 10px; }
.bc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 20px; }
.bc-facts small { display: block; font-size: 20px; color: var(--bc-muted); }
.bc-facts b { display: block; font-family: var(--font-mono); font-weight: 700; font-size: 34px; line-height: 1.2; white-space: nowrap; }
.bc-facts em { display: block; font-style: normal; font-size: 20px; color: var(--bc-muted); white-space: nowrap; }
.bc-facts em.pos { color: var(--bc-ok); } .bc-facts em.neg { color: var(--bc-bad); }
.bc-facts .warn b { color: var(--bc-warn); }
.bc-kicker { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--bc-warn); }
.bc-cards.winners .bc-kicker { color: var(--bc-muted); } .bc-cards.winners h3 { font-size: 40px; }
.bc-rooms { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.bc-rooms .pill { font-size: 22px; padding: 8px 18px; display: inline-flex; align-items: center; gap: 10px; }

/* žebříček a vyhlášení */
.bc-rank { display: grid; gap: 14px; }
.bc-row { display: grid; grid-template-columns: 80px 40px minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 18px 28px; background: var(--bc-surface); border: 1px solid var(--bc-border); border-radius: 18px; font-size: 34px; min-height: 92px; }
.bc-pos { font-family: var(--font-display); font-weight: 800; font-size: 44px; color: var(--bc-accent); }
.bc-move { font-size: 30px; } .bc-move.up { color: var(--bc-ok); } .bc-move.down { color: var(--bc-bad); }
.bc-name { display: flex; align-items: center; gap: 16px; font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-bar { height: 16px; border-radius: 8px; background: var(--bc-surface-2); overflow: hidden; }
.bc-bar i { display: block; height: 100%; border-radius: 8px; background: var(--sec-fill, var(--bc-accent)); transition: width .6s ease; }
.bc-row > b { font-family: var(--font-mono); font-weight: 700; white-space: nowrap; text-align: right; min-width: 12ch; }
.bc-rank.reveal .bc-row { grid-template-columns: 96px minmax(0, 1fr) auto auto; }
.bc-rank.reveal .bc-row.hidden { opacity: .45; } .bc-rank.reveal .bc-row.hidden .bc-name { color: var(--bc-muted); }
.bc-rank.reveal .bc-row.fresh { border-color: var(--bc-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bc-accent) 30%, transparent); animation: bc-pop .5s ease-out; }
.bc-rank.reveal .bc-row.podium .bc-pos { color: var(--bc-warn); }
@keyframes bc-pop { from { transform: scale(.97); opacity: .4; } to { transform: scale(1); opacity: 1; } }

/* událost se třemi kartami dopadu */
.bc-event { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 1500px; margin-inline: auto; width: 100%; }
.bc-event.positive .bc-kicker { color: var(--bc-ok); }
.bc-event h1 { font-size: 80px; margin: 12px 0 20px; }
.bc-text { font-size: 34px; line-height: 1.4; max-width: 44ch; }
.bc-impacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.bc-impacts > div { background: var(--bc-surface); border: 1px solid var(--bc-border); border-top: 5px solid var(--bc-warn); border-radius: 18px; padding: 22px 26px; }
.bc-event.positive .bc-impacts > div { border-top-color: var(--bc-ok); }
.bc-impacts small { display: block; font-size: 22px; color: var(--bc-muted); margin-bottom: 6px; }
.bc-impacts b { font-size: 30px; line-height: 1.25; font-weight: 700; }
.bc-news { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.bc-news li { font-size: 30px; padding: 18px 26px; background: var(--bc-surface); border: 1px solid var(--bc-border); border-left: 6px solid var(--bc-accent); border-radius: 0 16px 16px 0; }

/* kvíz na plátně */
.screen .row.between { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.screen .row.between .timer { font-family: var(--font-mono); font-weight: 700; font-size: 120px; line-height: 1; }
.bc-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 12px; }
.screen .opt { display: grid; grid-template-columns: auto minmax(0, 1fr) 220px auto; align-items: center; gap: 18px; margin: 0; padding: 20px 26px; font-size: 30px; background: var(--bc-surface); border: 2px solid var(--bc-border); border-radius: 18px; color: var(--bc-text); cursor: default; }
.screen .opt .letter { width: 52px; height: 52px; border-radius: 12px; font-size: 28px; background: var(--bc-accent-solid, var(--bc-accent)); color: #fff; display: grid; place-items: center; font-family: var(--font-display); }
.screen .opt.correct { border-color: var(--bc-ok); background: color-mix(in srgb, var(--bc-ok) 16%, var(--bc-surface)); font-weight: 700; }
.screen .opt.correct .letter { background: var(--bc-ok); }
.screen .opt.wrong { opacity: .6; }
.opt-bar { height: 16px; border-radius: 8px; background: var(--bc-surface-2); overflow: hidden; }
.opt-bar i { display: block; height: 100%; background: var(--bc-accent); border-radius: 8px; transition: width .6s ease; }
.screen .opt.correct .opt-bar i { background: var(--bc-ok); }
.opt-n { font-family: var(--font-mono); font-weight: 700; min-width: 2ch; text-align: right; }
.screen .histogram { height: 300px; gap: 14px; margin-top: 40px; }
.screen .histogram div { background: var(--bc-accent); border-radius: 8px 8px 0 0; min-height: 4px; }
.screen .histogram div.correct { background: var(--bc-ok); }
.screen .histogram div span { font-size: 22px; top: -34px; color: var(--bc-text); }
.screen .quiz-box.screen-box { background: var(--bc-surface); border: 1px solid var(--bc-border); border-left: 6px solid var(--bc-ok); border-radius: 0 16px 16px 0; margin-top: 24px; padding: 20px 26px; }
.screen .quiz-box.screen-box .label { font-size: 26px; color: var(--bc-text); } .screen .quiz-box.screen-box p { font-size: 24px; color: var(--bc-muted); }
.screen table { font-size: 28px; width: 100%; } .screen th, .screen td { padding: 14px 18px; border-bottom: 1px solid var(--bc-border); }
.screen th { font-size: 20px; color: var(--bc-muted); background: none; }

/* přepínač světlého režimu: nenápadný, ukáže se při najetí myší */
.bc-light { position: absolute; right: 16px; bottom: 12px; min-height: 0; padding: 6px 14px; font-size: 20px; border-radius: var(--radius-full); border: 1px solid var(--bc-border); background: var(--bc-surface); color: var(--bc-muted); box-shadow: none; opacity: 0; transition: opacity .2s; }
.screen:hover .bc-light, .bc-light:focus-visible { opacity: .9; }
@media (max-width: 1100px) { .bc-cards, .bc-impacts, .bc-opts { grid-template-columns: 1fr; } .screen h1 { font-size: 44px; } .screen .hero .timer { font-size: 110px; } .bc-row { font-size: 24px; grid-template-columns: 56px 28px minmax(0, 1fr) auto; } .bc-bar { display: none; } }
@media print { .bc-light { display: none; } }
.screen .brand .brand-text b { font-size: 24px; } .screen .brand .brand-text span { display: none; }
.screen .brand .logo-mark { width: 40px; height: 40px; }

/* čekárna před hrou: kód hry, QR a připojení */
.screen .bc-join { display: grid; grid-template-columns: 1.2fr auto; grid-template-areas: "how qr" "who who"; gap: 40px 56px; align-items: center; height: 100%; align-content: center; }
.screen .bc-join-how { grid-area: how; }
.screen .bc-join-code { font-family: var(--font-mono); font-weight: 700; font-size: clamp(88px, 11vw, 180px); letter-spacing: .12em; line-height: 1.05; margin-top: 16px; color: var(--bc-accent); }
.screen .bc-join-qr { grid-area: qr; background: var(--qr-bg); padding: 16px; border-radius: 20px; line-height: 0; }
.screen .bc-join-who { grid-area: who; }
.screen .bc-join-who h2 { font-size: 34px; margin: 0 0 14px; }
.screen .bc-join-who ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.screen .bc-join-who li { display: grid; padding: 10px 18px; border-radius: 14px; background: var(--bc-surface); font-size: 26px; }
.screen .bc-join-who li small { font-size: 18px; color: var(--bc-muted); }
/* rozbor hry na plátně: pořadí vlevo, otázky k rozboru vpravo */
.bc-class { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.bc-class .bc-row { font-size: 28px; min-height: 72px; padding: 12px 22px; grid-template-columns: 60px minmax(0, 1fr) auto; } .bc-class .bc-sector { display: none; }
.bc-moments { margin: 0; padding-left: 1.2em; display: grid; gap: 20px; font-size: 26px; } .bc-moments li b { display: block; } .bc-moments li span { color: var(--bc-muted); font-size: 22px; }
