/* Styl wzorowany na wytycznych marki Orange (Boosted): #FF7900, czerń, biel, ostre rogi,
   pogrubiona typografia Helvetica Neue ze zwężonymi literami. Własne pliki czcionek można
   dodać do /public/fonts (patrz README) – bez nich używana jest Helvetica Neue/Arial z systemu. */
@font-face { font-family: "HelvNeueOrange"; font-weight: 400; font-style: normal; src: local("Helvetica Neue"), local("HelveticaNeue"), local("Helvetica Neue Regular"), url("../fonts/HelveticaNeue-Roman.woff2") format("woff2"); }
@font-face { font-family: "HelvNeueOrange"; font-weight: 700; font-style: normal; src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), url("../fonts/HelveticaNeue-Bold.woff2") format("woff2"); }

:root {
  --orange: #ff7900; --orange-a11y: #f16e00; --black: #000; --white: #fff;
  --g900: #333; --g800: #595959; --g700: #666; --g600: #999; --g500: #ccc; --g400: #ddd; --g300: #eee; --g100: #f4f4f4;
  --blue: #4bb4e6; --green: #50be87; --yellow: #ffd200; --purple: #a885d8; --pink: #ffb4e6;
  --ok: #32c832; --err: #cd3c14; --info: #527edb;
  --font: "HelvNeueOrange", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.25; letter-spacing: -.1px; color: var(--black); background: var(--g100); -webkit-font-smoothing: antialiased; min-height: 100vh; }
h1, h2, h3, h4, h5 { font-weight: 700; margin: 0 0 .4em; }
h1 { font-size: clamp(28px, 4vw, 34px); line-height: 1.05; letter-spacing: -1px; }
h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.07; letter-spacing: -.8px; }
h3 { font-size: 22px; line-height: 1.1; letter-spacing: -.5px; }
h4 { font-size: 18px; letter-spacing: -.3px; }
p { margin: .5em 0; line-height: 1.4; }
.lead { font-size: 20px; line-height: 1.45; letter-spacing: -.25px; }
.muted { color: var(--g700); }
.small { font-size: 14px; }
.block { display: block; }
.pre { white-space: pre-wrap; }
.hidden { display: none !important; }
a { color: inherit; }
.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: #000; padding: 10px 16px; z-index: 999; font-weight: 700; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; box-shadow: 0 0 0 2px var(--white); }
.top :focus-visible, .hero :focus-visible, .hero-join :focus-visible { outline-color: var(--white); box-shadow: 0 0 0 2px var(--black); }
.ico { flex: none; vertical-align: middle; }

/* ---------- przyciski ---------- */
.btn { font: inherit; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 20px; border: 2px solid var(--orange); background: var(--orange); color: var(--black); border-radius: 0; cursor: pointer; text-decoration: none; letter-spacing: -.1px; line-height: 1.1; transition: background .12s, color .12s, border-color .12s; }
.btn:hover:not(:disabled) { background: var(--black); border-color: var(--black); color: var(--white); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.secondary { background: var(--white); border-color: var(--black); }
.btn.secondary:hover:not(:disabled) { background: var(--black); color: var(--white); }
.btn.danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn.danger:hover:not(:disabled) { background: #000; border-color: #000; }
.btn.small { min-height: 34px; padding: 4px 12px; font-size: 14px; gap: 6px; }
.btn.big { min-height: 56px; font-size: 18px; padding: 12px 28px; }
.btn.tog.on { background: var(--black); color: var(--white); }
.btn.tog.on:hover:not(:disabled) { background: var(--g800); border-color: var(--g800); }
.btn.danger-text, .danger-text { color: var(--err); }
.btn.danger-text:hover:not(:disabled) { color: #fff; background: var(--err); border-color: var(--err); }
.btn.block-btn { width: 100%; margin-top: 10px; }
.top .btn.secondary { background: transparent; border-color: #fff; color: #fff; }
.top .btn.secondary:hover:not(:disabled) { background: #fff; color: #000; }
.top .btn { min-height: 36px; padding: 4px 14px; font-size: 14px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: 0; padding: 0; }
.icon-btn:hover:not(:disabled) { background: var(--black); color: #fff; }
.icon-btn.danger-text:hover:not(:disabled) { background: var(--err); }
.icon-btn:disabled { opacity: .3; cursor: not-allowed; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
.btn-row.tight { margin-top: 0; gap: 8px; }
.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 20px; }

/* ---------- pola ---------- */
input[type=text], input[type=password], input[type=number], textarea, select { font: inherit; font-size: 16px; width: 100%; background: #fff; color: #000; border: 2px solid var(--black); border-radius: 0; padding: 10px 12px; min-height: 44px; letter-spacing: -.1px; }
textarea { resize: vertical; line-height: 1.35; min-height: 80px; }
input::placeholder, textarea::placeholder { color: var(--g700); opacity: 1; }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--orange); outline-offset: 0; box-shadow: none; }
input:disabled, textarea:disabled { background: var(--g300); color: var(--g800); border-color: var(--g600); }
.field { display: block; margin: 16px 0 0; }
.field.narrow input { max-width: 140px; }
.field-label, .field > .q { display: block; font-weight: 700; margin-bottom: 6px; font-size: 16px; }
.q { font-size: 18px; letter-spacing: -.3px; }
.hint { display: block; font-size: 13px; color: var(--g700); margin-top: 5px; line-height: 1.35; }
.hint.warn { color: var(--err); font-weight: 700; }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 700; margin: 14px 0 0; }
.check input { width: 22px; height: 22px; accent-color: #000; flex: none; margin: 0; }
.form-err { color: var(--err); font-weight: 700; min-height: 22px; margin-top: 10px; }
.status { font-size: 15px; color: var(--g700); font-weight: 700; }
.status.ok { color: #1a7a1a; } .status.warn { color: var(--err); }
fieldset.sub { border: 1px solid var(--g500); padding: 4px 18px 18px; margin: 18px 0 0; background: #fff; }
fieldset.sub legend { font-weight: 700; padding: 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.img-prev { margin-top: 8px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.img-prev img { max-height: 90px; max-width: 160px; border: 1px solid var(--g500); }

/* ---------- układ strony ---------- */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.top { background: #000; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 24px; min-height: 64px; border-bottom: 4px solid var(--orange); position: sticky; top: 0; z-index: 30; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; min-width: 0; }
.logo-sq { width: 40px; height: 40px; background: var(--orange); flex: none; display: grid; place-items: center; overflow: hidden; }
.logo-sq img { width: 100%; height: 100%; object-fit: contain; display: none; }
.logo-sq.has-img { background: transparent; } .logo-sq.has-img img { display: block; }
.brand-t { font-weight: 700; font-size: 20px; letter-spacing: -.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.top-link { color: #fff; background: none; border: 0; font: inherit; font-weight: 700; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; text-decoration: none; padding: 6px 4px; }
.top-link:hover { color: var(--orange); }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--g300); color: #000; font: inherit; font-size: 14px; font-weight: 700; padding: 5px 11px; border: 0; border-radius: 0; cursor: default; }
button.chip { cursor: pointer; } button.chip:hover { background: var(--orange); color: #000; }
.top .chip { background: transparent; border: 1px solid #777; color: #fff; }
.top button.chip:hover { background: var(--orange); border-color: var(--orange); color: #000; }
.dot { width: 12px; height: 12px; background: var(--ok); display: inline-block; flex: none; }
.dot.off { background: var(--err); animation: blink 1s infinite; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 28px 20px 80px; flex: 1; }
.container.narrow { max-width: 760px; }
.container.wide { max-width: 1560px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; background: var(--g300); color: #000; margin-left: 8px; vertical-align: middle; }
.tag.live { background: var(--orange); }
.section-title { margin: 34px 0 12px; } .section-title.nm { margin-top: 0; }
.panel-title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--g800); margin: 20px 0 10px; font-weight: 700; }
.panel-title:first-child { margin-top: 0; }
.mini-title { margin: 22px 0 4px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- karty / scena ---------- */
.stage { max-width: 960px; margin: 0 auto; }
.stage.enter > * { animation: rise .35s ease both; }
.card { background: #fff; border: 1px solid var(--g500); border-top: 6px solid var(--orange); padding: 28px; }
.card + .card, .card + .board, .board { margin-top: 18px; }
.act-head { margin-bottom: 8px; }
.kicker { display: inline-flex; align-items: center; gap: 7px; background: var(--orange); color: #000; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 5px 10px; margin-bottom: 14px; }
.body-text { font-size: 19px; line-height: 1.5; margin-top: 12px; }
.info-img { max-width: 100%; max-height: 420px; margin-top: 18px; display: block; border: 1px solid var(--g500); }
.qlist { font-size: 19px; line-height: 1.6; padding-left: 26px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.ans-card { background: #fff; border: 1px solid var(--g500); border-left: 6px solid var(--black); padding: 16px; animation: rise .3s ease both; }
.ans-card.me { border-left-color: var(--orange); }
.ans-name { font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.ans-item { margin-top: 10px; }
.ans-q { font-size: 12px; color: var(--g700); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.ans-t { font-size: 16px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.ans-item .btn { margin-top: 6px; }
.plain-list { list-style: none; margin: 0; padding: 0; } .plain-list li { padding: 4px 0; }

/* ankieta */
.opts { display: grid; gap: 10px; margin-top: 20px; }
.opt { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; background: #fff; border: 2px solid #000; color: #000; border-radius: 0; padding: 14px 16px; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; min-height: 56px; }
.opt:hover:not(:disabled):not(.ro) { background: var(--g300); }
.opt.ro { cursor: default; } .opt:disabled { cursor: not-allowed; opacity: .6; }
.opt.sel { border-color: var(--orange); box-shadow: inset 0 0 0 3px var(--orange); background: #fff3e6; }
.opt .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255, 121, 0, .35); transition: width .7s cubic-bezier(.2, .8, .2, 1); z-index: 0; }
.opt .ot, .opt .cnt { position: relative; z-index: 1; }
.scale { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-top: 22px; }
.scale-btn { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-height: 130px; background: #fff; border: 2px solid #000; border-radius: 0; font: inherit; font-weight: 700; cursor: pointer; padding: 8px 4px; overflow: hidden; }
.scale-btn:hover:not(:disabled):not(.ro) { background: var(--g300); } .scale-btn.ro { cursor: default; }
.scale-btn.sel { background: var(--orange); }
.scale-btn .hist { position: absolute; left: 0; right: 0; bottom: 0; top: 0; display: flex; align-items: flex-end; pointer-events: none; }
.scale-btn .hist .fill { width: 100%; background: rgba(0, 0, 0, .18); transition: height .6s; height: 0; }
.scale-btn .num { position: relative; font-size: 28px; } .scale-btn .cnt { position: relative; font-size: 14px; color: var(--g800); min-height: 16px; }
.scale-labels { display: flex; justify-content: space-between; color: var(--g800); font-weight: 700; margin-top: 8px; font-size: 14px; }
.avg { margin-top: 14px; font-size: 22px; font-weight: 700; }

/* chmura słów */
.word-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 18px; }
.cloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 22px; padding: 26px 10px; margin-top: 18px; background: #fff; border: 1px solid var(--g500); min-height: 160px; }
.cloud-word { font-weight: 700; line-height: 1.1; letter-spacing: -1px; animation: pop .4s ease both; }

/* Q&A */
.qna-ask { display: grid; gap: 10px; margin-top: 14px; } .qna-ask .btn { justify-self: start; }
.qna-list { margin-top: 18px; display: grid; gap: 10px; }
.qna-item { display: flex; gap: 14px; background: #fff; border: 1px solid var(--g500); padding: 14px; align-items: flex-start; animation: rise .3s ease both; }
.qna-item.done { opacity: .55; }
.qna-vote { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 52px; background: #fff; border: 2px solid #000; padding: 6px 4px; cursor: pointer; font: inherit; border-radius: 0; }
.qna-vote:hover { background: var(--g300); } .qna-vote.on { background: var(--orange); }
.qna-votes { min-width: 52px; text-align: center; } .qna-votes b { display: block; font-size: 24px; } .qna-votes span { font-size: 11px; color: var(--g700); }
.qna-body { flex: 1; min-width: 0; } .qna-text { font-size: 18px; line-height: 1.35; word-break: break-word; } .qna-who { color: var(--g700); font-size: 14px; margin-top: 4px; } .qna-body .btn-row { margin-top: 10px; }

/* zespoły */
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; }
.team-card { background: #fff; border: 2px solid #000; animation: pop .4s ease both; }
.team-card.mine { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange); }
.team-name { background: #000; color: #fff; font-weight: 700; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 18px; }
.team-card.mine .team-name { background: var(--orange); color: #000; }
.team-name .tag { background: #000; color: #fff; margin: 0; }
.team-card ul { list-style: none; margin: 0; padding: 10px 14px 14px; } .team-card li { padding: 5px 0; border-bottom: 1px solid var(--g300); }
.waiting { text-align: center; padding: 34px 10px; }
.pulse { display: flex; justify-content: center; gap: 10px; margin: 24px 0 10px; }
.pulse i { width: 14px; height: 14px; background: var(--orange); animation: bounce 1.2s infinite ease-in-out; }
.pulse i:nth-child(2) { animation-delay: .15s; } .pulse i:nth-child(3) { animation-delay: .3s; }

/* ekrany powitalne */
.hero { background: #000; color: #fff; text-align: center; padding: 64px 28px; border-bottom: 8px solid var(--orange); }
.hero h1 { color: #fff; font-size: clamp(34px, 6vw, 56px); letter-spacing: -1.6px; margin-top: 18px; }
.hero .lead { color: #ddd; max-width: 600px; margin: 0 auto; }
.hero-mark { width: 92px; height: 92px; background: var(--orange); color: #000; display: grid; place-items: center; margin: 0 auto; font-size: 46px; }
.hero .muted { color: #bbb; }

/* koło */
.wheelbox { background: #fff; border: 1px solid var(--g500); border-top: 6px solid var(--orange); padding: 28px; text-align: center; }
.wheelbox .act-head { text-align: left; }
canvas.wheel { display: block; width: min(86vw, 520px); aspect-ratio: 1; margin: 12px auto 4px; }
.wheel-res { min-height: 130px; margin-top: 12px; }
.wr { display: inline-block; max-width: 100%; padding: 18px 28px; font-size: 20px; }
.wr.wait { color: var(--g700); font-weight: 700; }
.wr.win { background: #000; color: #fff; border-bottom: 8px solid var(--orange); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both; min-width: min(100%, 420px); }
.wr-k { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.wr-t { font-size: clamp(26px, 4.6vw, 40px); font-weight: 700; margin-top: 6px; line-height: 1.15; word-break: break-word; letter-spacing: -1px; }
.wheel-hist { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin-top: 8px; }

/* tablica */
.wb-card { padding-bottom: 20px; }
.wb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 12px 0; padding: 10px 12px; background: var(--g300); }
.wb-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wb-tools .sep { width: 1px; height: 26px; background: var(--g600); margin: 0 4px; }
.wb-sw { width: 30px; height: 30px; border: 2px solid #fff; outline: 2px solid transparent; cursor: pointer; border-radius: 0; padding: 0; }
.wb-sw.on { outline-color: #000; } .wb-sw:disabled { opacity: .4; }
.wb-w { width: 34px; height: 34px; display: grid; place-items: center; background: #fff; border: 2px solid transparent; cursor: pointer; border-radius: 0; padding: 0; }
.wb-w.on { border-color: #000; } .wb-w i { background: #000; border-radius: 50%; display: block; }
.wb-sws { display: flex; gap: 8px; }
.wb-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; border: 2px solid #000; background: #fff; overflow: hidden; user-select: none; -webkit-user-select: none; }
.wb-stage.locked { opacity: .85; }
.wb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wb-canvas.fg { touch-action: none; cursor: crosshair; }
.wb-stage.locked .wb-canvas.fg { cursor: not-allowed; }
.wb-notes { position: absolute; inset: 0; pointer-events: none; }
.wb-note { position: absolute; width: 16.6%; min-width: 90px; pointer-events: auto; color: #000; box-shadow: 2px 3px 0 rgba(0, 0, 0, .35); font-size: 12px; line-height: 1.25; animation: pop .25s ease both; }
.wb-note.drag { box-shadow: 4px 8px 0 rgba(0, 0, 0, .4); z-index: 5; }
.wb-note-h { display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: 3px 6px; background: rgba(0, 0, 0, .13); font-weight: 700; font-size: .78em; min-height: 1.8em; }
.wb-note.mine .wb-note-h { cursor: grab; touch-action: none; }
.wb-note-h .by { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-note-x { background: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 1.3em; line-height: 1; padding: 0 3px; color: #000; }
.wb-note-x:hover { background: #000; color: #fff; }
.wb-note-t { padding: 6px 8px 9px; word-break: break-word; white-space: pre-wrap; }
.wb-note-t[contenteditable=true] { background: rgba(255, 255, 255, .6); outline: 2px solid #000; }

/* quiz */
.quiz { margin-top: 14px; }
.q-meta { display: flex; gap: 16px; justify-content: space-between; color: var(--g800); font-weight: 700; align-items: center; flex-wrap: wrap; }
.q-left { font-size: 28px; color: #000; font-variant-numeric: tabular-nums; }
.q-timer { height: 10px; background: var(--g300); margin: 8px 0 18px; } .q-timer i { display: block; height: 100%; width: 100%; background: var(--orange); transition: width .25s linear; }
.q-text { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.12; letter-spacing: -1px; margin: 6px 0 18px; }
.q-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q-opt { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; text-align: left; font: inherit; font-size: 19px; font-weight: 700; background: var(--c); color: #000; border: 3px solid #000; border-radius: 0; padding: 16px; cursor: pointer; min-height: 76px; }
.q-opt:hover:not(:disabled) { filter: brightness(.93); } .q-opt:disabled { cursor: default; }
.q-opt.picked { box-shadow: inset 0 0 0 5px #000; } .q-opt.wrong { opacity: .4; filter: grayscale(.5); } .q-opt.right { box-shadow: 0 0 0 5px #000; }
.q-letter { background: #000; color: #fff; width: 36px; height: 36px; display: grid; place-items: center; font-weight: 700; flex: none; } .q-ot { flex: 1; }
.q-dist { display: flex; align-items: center; gap: 8px; min-width: 70px; } .q-dist i { display: block; height: 10px; background: #000; max-width: 60px; } .q-dist b { font-variant-numeric: tabular-nums; }
.q-result { margin: 16px 0; padding: 14px 18px; font-size: 22px; font-weight: 700; } .q-result.good { background: var(--ok); } .q-result.bad { background: var(--g300); }
.lb { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lb li { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--g500); padding: 9px 12px; } .lb li.me { border: 2px solid var(--orange); background: #fff3e6; }
.rk { background: #000; color: #fff; min-width: 30px; height: 30px; display: grid; place-items: center; font-weight: 700; } .lb .nm { flex: 1; font-weight: 700; word-break: break-word; } .lb .pt { font-variant-numeric: tabular-nums; }
.podium { display: flex; gap: 12px; align-items: flex-end; justify-content: center; margin: 18px 0 26px; flex-wrap: wrap; }
.pod { background: #000; color: #fff; text-align: center; padding: 16px 14px; min-width: 150px; border-top: 8px solid var(--orange); } .pod.p1 { padding-bottom: 46px; background: var(--orange); color: #000; border-top-color: #000; } .pod.p2 { padding-bottom: 28px; } .pod.p3 { padding-bottom: 14px; }
.pod-n { font-size: 40px; font-weight: 700; } .pod-name { font-weight: 700; font-size: 17px; word-break: break-word; } .pod-pts { margin-top: 4px; }

/* puzzle */
.puz-msg { font-weight: 700; font-size: 17px; } .puz-msg.good { color: #1a7a1a; } .puz-msg.bad { color: var(--err); }
.order-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; counter-reset: none; }
.order-item { display: flex; align-items: center; gap: 12px; background: #fff; border: 2px solid #000; padding: 8px 8px 8px 0; cursor: grab; transition: background .1s; }
.order-item.dragging { opacity: .4; } .order-item.over { background: #fff3e6; border-color: var(--orange); } .order-item.done { background: #eaf9ea; cursor: default; }
.onum { background: #000; color: #fff; min-width: 40px; align-self: stretch; display: grid; place-items: center; font-weight: 700; font-size: 18px; } .order-item .ot { flex: 1; font-size: 18px; font-weight: 700; } .ob { display: flex; gap: 2px; }
.match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 18px; } .match-col { display: grid; gap: 8px; align-content: start; }
.match-item { display: flex; align-items: center; gap: 10px; text-align: left; font: inherit; font-size: 16px; font-weight: 700; background: #fff; border: 2px solid #000; border-radius: 0; padding: 10px; cursor: pointer; min-height: 52px; }
.match-item:hover:not(:disabled) { background: var(--g300); } .match-item.sel { background: #fff3e6; box-shadow: inset 0 0 0 3px var(--orange); border-color: var(--orange); }
.match-item.paired { border-color: var(--pc); box-shadow: inset 6px 0 0 var(--pc); } .match-item:disabled { cursor: default; }
.pn { width: 28px; height: 28px; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; color: #000; } .match-item .ot { flex: 1; }
.sort-pool { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 14px; background: var(--g300); min-height: 66px; align-items: center; }
.chip-item { font: inherit; font-weight: 700; font-size: 16px; background: #fff; border: 2px solid #000; border-radius: 0; padding: 8px 12px; cursor: pointer; text-align: left; } .chip-item:hover:not(:disabled) { background: #fff3e6; } .chip-item.sel { background: var(--orange); } .chip-item:disabled { cursor: default; }
.sort-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 14px; }
.sort-cat { border: 2px solid #000; background: #fff; min-height: 150px; } .sort-cat.target { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange); cursor: pointer; }
.sort-cat-t { background: #000; color: #fff; font-weight: 700; padding: 10px 12px; font-size: 18px; } .sort-cat-items { padding: 10px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.jig { display: grid; gap: 4px; width: min(100%, 560px); aspect-ratio: 1; margin: 18px auto 0; background: #000; padding: 4px; } .jig.solved { gap: 0; padding: 0; }
.jig-tile { border: 0; border-radius: 0; background-repeat: no-repeat; cursor: pointer; padding: 0; min-width: 0; min-height: 0; } .jig-tile.sel { outline: 5px solid var(--orange); outline-offset: -5px; filter: brightness(1.1); } .jig-tile:disabled { cursor: default; }
.jig-prev { display: block; max-width: 240px; max-height: 240px; margin: 14px auto 0; border: 3px solid #000; }

/* ---------- strona startowa i logowanie ---------- */
.hero-join { background: #000; color: #fff; padding: 40px 32px 56px; border-bottom: 8px solid var(--orange); }
.hero-join h1 { color: #fff; font-size: clamp(36px, 7vw, 60px); letter-spacing: -2px; } .hero-join .lead { color: #ddd; margin: 0; }
.join-card { background: #fff; border: 1px solid var(--g500); padding: 28px; max-width: 520px; margin: 28px auto 0; position: relative; box-shadow: 0 8px 0 rgba(0, 0, 0, .08); } .hero-join ~ .join-card { margin-top: -28px; }
.join-card .btn { width: 100%; margin-top: 18px; }
.code-in { font-size: 30px !important; font-weight: 700; text-align: center; letter-spacing: .3em !important; text-transform: uppercase; padding: 12px !important; }
.resume { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--orange); color: #000; text-decoration: none; padding: 14px 18px; margin: 20px auto 0; max-width: 520px; font-size: 17px; } .resume .btn { background: #000; border-color: #000; color: #fff; }

/* ---------- panel ---------- */
.tabs { display: flex; gap: 0; border-bottom: 2px solid #000; margin-bottom: 26px; flex-wrap: wrap; }
.tab { padding: 12px 22px; font-weight: 700; text-decoration: none; font-size: 17px; border: 2px solid transparent; border-bottom: 0; margin-bottom: -2px; } .tab:hover { background: var(--g300); } .tab.on { background: #000; color: #fff; border-color: #000; }
.toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px,100%), 1fr)); gap: 18px; }
.tpl-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--g500); border-top: 6px solid #000; padding: 20px; display: flex; flex-direction: column; } .tpl-card h3 { margin-bottom: 6px; }
.tpl-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0; } .tpl-meta .tag { margin: 0; }
.mini-agenda { list-style: none; padding: 0; margin: 10px 0 16px; display: grid; gap: 5px; font-size: 14px; } .mini-agenda { min-width: 0; } .mini-agenda li { display: flex; gap: 8px; align-items: center; min-width: 0; } .mini-agenda li > span { min-width: 0; flex: 1 1 auto; } .mini-agenda li.more { color: var(--g700); padding-left: 22px; } .mini-agenda span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-foot { margin-top: auto; padding-top: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--g300); }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--g500); }
.tbl { width: 100%; border-collapse: collapse; } .tbl th { text-align: left; background: #000; color: #fff; padding: 11px 14px; font-size: 14px; } .tbl td { padding: 11px 14px; border-bottom: 1px solid var(--g300); vertical-align: middle; } .tbl .actions { white-space: nowrap; text-align: right; } .tbl .actions > * { margin-left: 6px; }
.code { font-family: "SFMono-Regular", Consolas, monospace; letter-spacing: .1em; background: var(--g300); padding: 3px 8px; } .code.big { display: block; font-size: 38px; letter-spacing: .25em; background: #000; color: var(--orange); padding: 6px 14px; margin-top: 4px; }
.user-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; background: #fff; border: 1px solid var(--g500); padding: 16px; margin: 16px 0 20px; } .user-form .field { margin: 0; }

/* ---------- realizacja sesji ---------- */
.container.run { padding-top: 20px; }
.run-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr) 400px; gap: 16px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--g500); padding: 16px; }
.center { min-width: 0; }
.join-bar { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; background: #fff; border: 1px solid var(--g500); border-left: 6px solid var(--orange); padding: 12px 16px; margin-bottom: 12px; } .join-bar > div { display: flex; flex-direction: column; } .join-bar .join-link b { word-break: break-all; }
.live-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #000; color: #fff; padding: 14px 18px; margin-bottom: 10px; } .live-bar .muted { color: #bbb; font-size: 13px; } .lb-t { display: flex; flex-direction: column; flex: 1; min-width: 180px; } .lb-t b { font-size: 19px; }
.live-bar .btn.secondary { background: transparent; border-color: #fff; color: #fff; } .live-bar .btn.secondary:hover:not(:disabled) { background: #fff; color: #000; } .live-bar .btn:hover:not(:disabled):not(.secondary) { background: #fff; color: #000; border-color: #fff; }
.pulse-dot { width: 12px; height: 12px; background: var(--err); animation: blink 1.2s infinite; flex: none; }
.ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; background: #fff; border: 1px solid var(--g500); margin-bottom: 8px; } .ctl .lbl { font-weight: 700; margin-right: 6px; display: inline-flex; gap: 6px; align-items: center; } .ctl input[type=number] { width: 80px; }
.preview-h { display: flex; align-items: center; gap: 10px; margin: 22px 2px 12px; color: var(--g800); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; } .preview-h::after { content: ""; flex: 1; height: 1px; background: var(--g500); }
.stage.preview { max-width: none; }
.quick-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.quick { display: flex; flex-direction: column; align-items: center; gap: 4px; font: inherit; font-size: 13px; font-weight: 700; padding: 8px 2px; background: #fff; border: 2px solid #000; border-radius: 0; cursor: pointer; } .quick:hover:not(:disabled) { background: var(--g300); } .quick.on { background: #000; color: #fff; } .quick:disabled { opacity: .4; cursor: not-allowed; }
.agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ag { position: relative; display: flex; align-items: flex-start; gap: 10px; text-align: left; width: 100%; font: inherit; font-size: 14px; font-weight: 700; background: #fff; border: 2px solid var(--g500); border-radius: 0; padding: 9px 10px; cursor: pointer; line-height: 1.25; } .ag:hover:not(:disabled) { border-color: #000; background: var(--g100); } .ag.on { border-color: #000; background: #000; color: #fff; } .ag:disabled { cursor: not-allowed; opacity: .6; }
.ag-i { flex: none; padding-top: 1px; } .ag.on .ag-i { color: var(--orange); } .ag-t { flex: 1; min-width: 0; } .ag-n { color: var(--g700); } .ag.on .ag-n { color: var(--orange); }
.live-tag { position: absolute; right: 6px; top: 6px; background: var(--orange); color: #000; font-size: 10px; letter-spacing: .06em; padding: 2px 5px; }
.ag.on .ag-t { padding-right: 70px; }
.quick-col { display: grid; gap: 6px; } .quick-col .btn { justify-content: flex-start; }
.person { display: flex; align-items: center; gap: 8px; padding: 7px 2px; border-bottom: 1px solid var(--g300); font-size: 15px; } .person .nm { flex: 1; word-break: break-word; font-weight: 700; }
.pdot { width: 10px; height: 10px; background: var(--g600); flex: none; } .pdot.on { background: var(--ok); }
.ok-mark { color: #1a7a1a; display: inline-flex; } .answered { margin: 0 0 8px; font-weight: 700; }
.big-code { text-align: center; padding: 10px 0 6px; } .bc-url { font-size: clamp(26px, 5vw, 44px); font-weight: 700; letter-spacing: -1.5px; } .bc-code { font-size: clamp(54px, 12vw, 110px); font-weight: 700; letter-spacing: .12em; background: #000; color: var(--orange); padding: 8px 0 8px .12em; margin: 8px 0 14px; }

/* ---------- edytor szablonu ---------- */
.ed-top { display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; background: #fff; border: 1px solid var(--g500); border-left: 6px solid var(--orange); padding: 14px 18px; margin-bottom: 16px; } .ed-top-l { flex: 1; min-width: 260px; }
.ed-name { font-size: 22px !important; font-weight: 700; } .check.pub { margin: 0 0 8px; }
.ed-state { font-size: 14px; font-weight: 700; color: var(--g700); margin-right: 6px; } .ed-state.warn { color: var(--err); } .ed-state.ok { color: #1a7a1a; }
.ed-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; align-items: start; }
.ed-list { display: grid; gap: 6px; }
.ed-item { display: flex; align-items: stretch; border: 2px solid var(--g500); background: #fff; } .ed-item.on { border-color: #000; background: #fff3e6; box-shadow: inset 6px 0 0 var(--orange); }
.ed-pick { flex: 1; display: flex; gap: 10px; align-items: flex-start; text-align: left; font: inherit; font-size: 14px; font-weight: 700; background: none; border: 0; padding: 9px 8px 9px 12px; cursor: pointer; min-width: 0; } .ed-pick .ag-t { word-break: break-word; }
.ed-ops { display: flex; flex-direction: column; justify-content: center; padding: 2px; } .ed-ops { flex-direction: row; flex-wrap: wrap; align-content: center; width: 70px; }
.ed-ops .icon-btn { width: 28px; height: 24px; }
.ed-panel { padding: 22px; } .ed-head h2 { margin-bottom: 4px; } .ed-head .kicker { margin-bottom: 10px; }
.empty { text-align: center; padding: 50px 10px; color: var(--g700); }
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.pal-card { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; text-align: left; font: inherit; background: #fff; border: 2px solid #000; border-radius: 0; padding: 14px; cursor: pointer; } .pal-card:hover { background: var(--orange); } .pal-card:hover .muted { color: #000; } .pal-card .muted { font-size: 13px; line-height: 1.35; }
.pal-i { background: #000; color: var(--orange); width: 44px; height: 44px; display: grid; place-items: center; }

/* ---------- okna, wyróżnienie, zegar ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .72); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow-y: auto; animation: fade .15s both; }
.modal { background: #fff; width: 100%; max-width: 520px; border-top: 8px solid var(--orange); animation: pop .2s both; } .modal.wide { max-width: 920px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 0; } .modal-head h2 { margin: 0; font-size: 24px; } .modal-body { padding: 14px 22px 24px; }
.spot { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .93); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade .25s both; }
.spot-card { max-width: 1000px; width: 100%; background: #000; color: #fff; border: 3px solid var(--orange); padding: clamp(24px, 5vw, 60px); text-align: center; animation: pop .4s both; }
.spot-k { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); } .spot-q { margin-top: 10px; color: #bbb; font-size: clamp(14px, 2vw, 18px); }
.spot-t { font-size: clamp(26px, 4.6vw, 52px); line-height: 1.18; letter-spacing: -1.5px; font-weight: 700; margin: 20px 0; white-space: pre-wrap; word-break: break-word; } .spot-n { font-size: clamp(18px, 2.4vw, 26px); color: var(--orange); font-weight: 700; } .spot .btn { margin-top: 28px; }
.timer { background: var(--orange); color: #000; font-weight: 700; font-size: 20px; padding: 4px 14px; font-variant-numeric: tabular-nums; min-width: 78px; text-align: center; } .timer.low { background: var(--yellow); } .timer.done { background: var(--err); color: #fff; animation: blink .8s infinite; }
#toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 200; background: #000; color: #fff; padding: 13px 20px; font-weight: 700; border-left: 8px solid var(--orange); max-width: 90vw; transition: .25s; } #toast.show { opacity: 1; transform: translate(-50%, 0); } #toast.ok { border-left-color: var(--ok); } #toast.err { border-left-color: var(--err); }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes bounce { 0%, 80%, 100% { transform: scale(.55); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }
@keyframes blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 1100px) { .run-grid { grid-template-columns: 1fr; } .run-grid > .center { order: 1; } .run-grid > aside:first-child { order: 2; } .run-grid > aside:last-child { order: 3; } .ed-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .top { padding: 8px 14px; } .container { padding: 18px 14px 60px; } .card, .wheelbox { padding: 18px; } .q-opts, .match-grid { grid-template-columns: 1fr; } .brand-t { font-size: 17px; } .hero { padding: 40px 18px; } .scale-btn { min-height: 100px; } .scale-btn .num { font-size: 22px; } }

/* ===== v3: notatki trenera, przydział, odsłonięcie, kciuki, kolumny, import ===== */
.trainer-notes { background: #fff; border: 1px solid var(--g500); border-left: 6px solid #000; margin-top: 18px; }
.trainer-notes > summary { cursor: pointer; padding: 12px 16px; font-weight: 700; display: flex; gap: 8px; align-items: center; list-style: none; }
.trainer-notes > summary::-webkit-details-marker { display: none; }
.trainer-notes[open] > summary { border-bottom: 1px solid var(--g300); }
.tn-body { padding: 14px 18px 18px; white-space: pre-wrap; font-size: 15px; line-height: 1.5; max-height: 460px; overflow: auto; }
.assign-box { border-left: 6px solid #ff7900; background: #fff4e8; padding: 14px 18px; margin: 4px 0 18px; }
.assign-box .ab-l { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #666; }
.assign-box .ab-t { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 4px 0; }
.assign-box .ab-h { color: #333; font-size: 15px; }
.assign-wait { padding: 12px 0; font-weight: 700; }
.reveal-box { background: #000; color: #fff; padding: 16px 20px; margin: 18px 0 8px; border-bottom: 4px solid #ff7900; }
.reveal-box .rb-l { color: #ff7900; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.reveal-box .rb-t { font-size: 20px; font-weight: 700; margin-top: 6px; }
.step2 { margin-top: 18px; padding-top: 14px; border-top: 2px solid #000; }
.thumb { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; background: #fff; border: 2px solid #000; padding: 3px 9px; font-weight: 700; cursor: pointer; font-size: 14px; }
.thumb:hover { background: #000; color: #fff; }
.thumb.on { background: #ff7900; border-color: #000; color: #000; }
.thumb.static { cursor: default; border-color: #bbb; color: #777; background: transparent; }
.thumb.static.has { border-color: #ff7900; color: #000; }
.ans-name { display: flex; align-items: center; gap: 8px; }
.grp-cols { display: grid; gap: 16px; align-items: start; }
.grp { min-width: 0; } .grp .ans-card { margin-bottom: 12px; }
.grp-t { background: #000; color: #fff; padding: 10px 14px; margin: 0 0 12px; font-size: 18px; border-bottom: 4px solid #ff7900; }
.grp-t .muted { color: #bbb; font-weight: 400; }
@media (max-width: 760px) { .grp-cols { grid-template-columns: 1fr !important; } }
.deal-box { background: #fff; border: 1px solid var(--g500); border-left: 6px solid #ff7900; padding: 14px 18px; margin-bottom: 18px; }
.deal-box .tbl.small td { padding: 6px 10px; font-size: 14px; }
details.adv { border: 1px solid var(--g500); margin-top: 14px; padding: 0 14px 12px; background: #fafafa; }
details.adv > summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.imp-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .imp-grid { grid-template-columns: 1fr; } }
.import-area { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.45; min-height: 260px; margin-bottom: 12px; }
.import-result { margin-top: 16px; display: grid; gap: 12px; }
.imp-box { padding: 12px 16px; border: 1px solid var(--g500); border-left: 6px solid #000; background: #fff; }
.imp-box ul { margin: 6px 0 0 18px; padding: 0; } .imp-box li { margin: 3px 0; }
.imp-box.err { border-left-color: #cd3c14; background: #fff1ed; } .imp-box.warn { border-left-color: #ffb400; background: #fff9e6; } .imp-box.ok { border-left-color: #32c832; background: #f2fbf2; }
.imp-steps { margin: 0 0 14px 18px; padding: 0; } .imp-steps li { margin: 6px 0; }
.panel-title.spaced { margin-top: 26px; }
.lib-list { display: grid; gap: 10px; } .lib-item { display: flex; gap: 12px; justify-content: space-between; align-items: center; border: 1px solid var(--g500); padding: 10px 12px; background: #fff; }
.tpl-card { min-width: 0; overflow: hidden; }
.mini-agenda, .mini-agenda li { min-width: 0; } .mini-agenda li > span { min-width: 0; flex: 1 1 auto; }

/* ---- współprowadzący / czas ---- */
.team-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px 14px; background: #fff; border: 2px solid #000; margin-top: 12px; }
.team-m { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; background: var(--g100, #f4f4f4); font-weight: 700; } .team-m.me { background: var(--orange); }
.check.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.lim-other { width: 110px; }
.cards-ed .card-ed { border: 2px solid #000; padding: 12px; margin: 10px 0; background: #fff; }
/* ---- karty na tablicy ---- */
.wb-cardn { background: #fff; border: 3px solid #000; width: 18%; min-width: 120px; padding: 0; }
.wb-card-h { background: #000; color: #fff; padding: 6px 10px; display: flex; justify-content: space-between; align-items: center; gap: 6px; cursor: default; }
.wb-cardn.mine .wb-card-h { cursor: grab; } .wb-card-t { font-weight: 700; font-size: 1.15em; }
.wb-card-b { padding: 8px 10px; white-space: pre-wrap; font-size: 1em; }
.wb-card-tools { display: inline-flex; gap: 2px; } .wb-card-h .wb-note-x { color: #fff; }
/* ---- rozdziel punkty ---- */
.pt-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--g300); flex-wrap: wrap; } .pt-l { font-weight: 700; flex: 1 1 200px; }
.pt-ctl { display: inline-flex; gap: 6px; align-items: center; } .pt-in { width: 84px; text-align: center; font-weight: 700; }
.pt-total { margin: 12px 0; font-weight: 700; padding: 8px 12px; background: #fff3e6; border-left: 6px solid var(--orange); } .pt-total.ok { background: #e6f7ee; border-color: #32c832; } .pt-total.over { background: #fde8e4; border-color: #cd3c14; }
.pt-bar { display: grid; grid-template-columns: 28px minmax(100px, 1.2fr) 3fr auto auto; gap: 10px; align-items: center; margin: 8px 0; } .pt-rank { background: #000; color: #fff; text-align: center; font-weight: 700; }
.pt-track { background: #eee; height: 18px; display: block; } .pt-track i { display: block; height: 100%; background: var(--orange); }
/* ---- cztery rogi ---- */
.corners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 14px 0; } .corners.n3, .corners.n5, .corners.n6 { grid-template-columns: repeat(3, 1fr); } .corners.n2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .corners, .corners.n3, .corners.n5, .corners.n6 { grid-template-columns: 1fr; } }
.corner { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 18px 14px; font: inherit; font-weight: 700; font-size: 1.1em; background: #fff; border: 3px solid var(--c, #000); cursor: pointer; text-align: left; }
.corner.sel { background: var(--c); color: #000; box-shadow: 0 0 0 4px #000; } .cr.ro .corner { cursor: default; } .cr-n { font-size: 1.6em; }
.cr-p { padding: 6px 4px; border-bottom: 1px solid var(--g300); font-size: .95em; }
/* ---- luki ---- */
.cloze { line-height: 2.6; font-size: 1.1em; } .cz-in { width: 11em; margin: 0 4px; border: 0; border-bottom: 3px solid #000; background: #fff3e6; font: inherit; padding: 2px 6px; } .cz-in.ok { border-color: #32c832; background: #e6f7ee; } .cz-in.bad { border-color: #cd3c14; background: #fde8e4; }
.cz-v { display: inline-block; margin: 2px 6px 2px 0; padding: 2px 8px; background: #eee; } .cz-v.ok { background: #cdf0d6; } .cz-v.bad { background: #f8cfc7; } .cz-keys li { margin: 4px 0; }
/* ---- zgłoszenia ---- */
.hand-box { text-align: center; padding: 18px 0; } .hand-btn { font-size: 1.5em; padding: 22px 36px; } .hand-btn.on { background: #000; color: #fff; } .hand-msg { margin-top: 12px; font-weight: 700; } .hand-msg.called { color: #1b7f3b; font-size: 1.3em; }
.hand-q { list-style: none; padding: 0; margin: 14px 0 0; } .hand-q li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--g300); } .hand-q li.done { opacity: .5; } .hq-n { background: #000; color: #fff; min-width: 28px; text-align: center; font-weight: 700; }
/* ---- scenki ---- */
.sc-group { border: 2px solid #000; background: #fff; padding: 12px 14px; margin: 12px 0; } .sc-members { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; } .sc-m { background: #f1f1f1; padding: 3px 10px; } .sc-m i { font-style: normal; font-weight: 700; color: #b85500; } .sc-m.me { background: var(--orange); }
.sc-sc { margin: 8px 0; padding: 8px 12px; border-left: 6px solid #000; background: #fafafa; } .sc-secret { margin: 8px 0; padding: 8px 12px; border-left: 6px solid var(--orange); background: #fff3e6; }
.sc-top { display: flex; gap: 8px; } .sc-role { margin: 12px 0; font-size: 1.6em; display: flex; flex-direction: column; } .sc-eval { margin-top: 16px; border-top: 3px solid #000; padding-top: 10px; }
.sc-crit { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; flex-wrap: wrap; } .rate-row { display: inline-flex; gap: 4px; } .rate-b { width: 40px; height: 40px; font: inherit; font-weight: 700; border: 2px solid #000; background: #fff; cursor: pointer; } .rate-b.on { background: var(--orange); }
/* ---- prezentacja z pliku ---- */
.deck-card { padding: 10px; } .deck-stage { background: #000; display: flex; justify-content: center; align-items: center; min-height: 200px; }
.deck-img { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain; background: #fff; }
.deck-text { background: #fff; color: #000; width: 100%; padding: 28px; min-height: 260px; } .deck-text h1 { font-size: clamp(24px, 4vw, 40px); } .deck-text li { font-size: 1.15em; margin: 6px 0; }
.deck-nav { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.deck-panel { border: 2px solid #000; background: #fff; padding: 12px; margin: 10px 0; } .deck-cur { font-size: 1.1em; }
.deck-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 12px 0; } @media (max-width: 760px) { .deck-grid { grid-template-columns: 1fr; } }
.deck-notes { white-space: pre-wrap; min-height: 90px; max-height: 240px; overflow: auto; background: #fff3e6; border-left: 6px solid var(--orange); padding: 10px 12px; }
.deck-next-img { width: 100%; max-height: 240px; object-fit: contain; border: 2px solid #000; background: #fff; } .deck-next-txt { margin-top: 6px; }
.deck-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; }
.deck-th { position: relative; flex: 0 0 auto; width: 120px; height: 68px; border: 2px solid var(--g500); background: #fff; padding: 0; cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.deck-th img { width: 100%; height: 100%; object-fit: contain; } .deck-th i { position: absolute; left: 0; bottom: 0; background: #000; color: #fff; font-style: normal; font-size: 11px; padding: 1px 5px; }
.deck-th.on { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange); }
.prog { height: 10px; background: var(--g300); margin: 10px 0 4px; } .prog i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .2s; }
/* ---- ekran z czasem ---- */
.clock-screen { background: #000; color: #fff; text-align: center; padding: 48px 20px; border-bottom: 8px solid var(--orange); min-height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.clock-ttl { font-size: clamp(26px, 5vw, 48px); font-weight: 700; letter-spacing: -1px; } .clock-sub { color: #ddd; font-size: 1.2em; margin: 8px 0 18px; max-width: 800px; }
.clock-n { font-size: clamp(80px, 20vw, 220px); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; } .clock-t { font-size: 1.6em; color: var(--orange); min-height: 1.5em; }
.clock-screen.low .clock-n { color: var(--orange); } .clock-screen.done .clock-n { color: var(--err); animation: blink 1s steps(2) infinite; } @keyframes blink { 50% { opacity: .35; } }
/* ---- ekran przerwy ---- */
.break-screen { text-align: center; padding: 56px 24px; border-bottom: 8px solid var(--orange); background: #000; color: #fff; } .break-screen h1 { color: inherit; font-size: clamp(32px, 6vw, 56px); margin: 8px 0; } .break-screen .lead { color: inherit; opacity: .85; max-width: 640px; margin: 0 auto; }
.bk-emoji { font-size: clamp(56px, 12vw, 110px); line-height: 1.1; } .bk-clock { font-size: clamp(56px, 14vw, 150px); font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 14px; }
.break-screen.theme-orange { background: var(--orange); color: #000; border-color: #000; } .break-screen.theme-white { background: #fff; color: #000; border: 2px solid #000; border-bottom: 8px solid var(--orange); }
.break-screen.theme-blue { background: #1c4f8a; color: #fff; } .break-screen.theme-green { background: #1f6b47; color: #fff; } .break-screen.theme-purple { background: #5b3a91; color: #fff; }
.break-screen.mini { padding: 18px 12px; } .break-screen.mini h1 { font-size: 26px; } .break-screen.mini .bk-emoji { font-size: 48px; } .break-screen.mini .bk-clock { font-size: 40px; }
/* ---- pomoc i kolejka pytań ---- */
.help-row { text-align: center; margin: 14px 0 4px; } .help-btn.on { background: #000; color: #fff; }
.ask-banner { background: var(--orange); color: #000; font-weight: 700; font-size: 1.3em; padding: 14px 18px; text-align: center; border: 3px solid #000; margin-bottom: 10px; } .ask-banner.other { background: #fff; font-size: 1.05em; }
.fair-box, .help-box { border: 2px solid #000; background: #fff; padding: 10px 12px; margin-bottom: 12px; } .fair-t { display: flex; gap: 6px; align-items: center; } .fair-cur { font-size: 1.35em; font-weight: 700; margin: 8px 0; color: var(--g700); } .fair-cur.on { color: #000; background: #fff3e6; border-left: 6px solid var(--orange); padding: 6px 10px; }
.help-box { border-color: var(--err); background: #fff1ee; } .help-row2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 6px 0; font-weight: 700; }
.person.asking { background: #fff3e6; border-left: 6px solid var(--orange); } .help-flag { color: var(--err); display: inline-flex; } .cnt-btn { border: 1px solid var(--g500); background: #fff; font: inherit; font-size: 12px; padding: 1px 6px; cursor: pointer; min-width: 30px; } .cnt-btn:hover { background: var(--g300); }
/* ---- zespoły: pokoje ---- */
.room-box { background: #000; color: #fff; text-align: center; padding: 18px; margin: 12px 0; border-bottom: 6px solid var(--orange); } .room-cd { font-size: clamp(48px, 12vw, 100px); font-weight: 700; font-variant-numeric: tabular-nums; } .room-cd.low { color: var(--orange); } .room-cd.done { color: var(--err); } .room-cd-l { color: #ddd; }
.room-link { margin-top: 10px; } .room-link .lead { color: #fff; } .room-back { background: var(--orange); border: 3px solid #000; padding: 16px; text-align: center; margin: 12px 0; } .room-back h2 { margin-bottom: 12px; } .btn.accent { background: #000; color: #fff; }
.room-links { margin: 8px 0; }
/* ---- ustawienia ---- */
.set-sec { margin: 14px 0; } .preset-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; } .preset { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 128px; padding: 10px 6px; border: 2px solid #000; cursor: pointer; font: inherit; background: #000; color: #fff; }
.preset.theme-orange { background: var(--orange); color: #000; } .preset.theme-white { background: #fff; color: #000; } .preset.theme-blue { background: #1c4f8a; } .preset.theme-green { background: #1f6b47; } .preset.theme-purple { background: #5b3a91; } .preset span { font-size: 26px; } .preset b { font-size: 12px; text-align: center; }
.brk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } @media (max-width: 760px) { .brk-grid { grid-template-columns: 1fr; } } .emo-in { width: 5em; }
/* ---- test wiedzy i pigułka PDF ---- */
.kt-q-box { border: 2px solid #000; background: #fff; margin: 12px 0; padding: 10px 14px; } .kt-q-box legend { font-weight: 700; padding: 0 6px; } .kt-q-box.ok { border-color: var(--ok); background: #effaf1; } .kt-q-box.bad { border-color: var(--err); background: #fff1ee; }
.kt-opt { display: flex; gap: 10px; align-items: center; padding: 8px 6px; border-bottom: 1px solid var(--g300); cursor: pointer; } .kt-opt.on { background: #fff3e6; } .kt-opt.right { background: #cdf0d6; } .kt-ok { color: #0b6b2a; }
.kt-ex { margin: 8px 0 0; padding: 8px 12px; background: #fff3e6; border-left: 6px solid var(--orange); } .kt-res { padding: 12px 16px; margin-bottom: 8px; font-size: 1.2em; border-left: 8px solid #000; } .kt-res.good { background: #cdf0d6; border-color: var(--ok); } .kt-res.bad { background: #f8cfc7; border-color: var(--err); }
.kt-perq { list-style: none; padding: 0; margin: 8px 0; } .kt-perq li { display: grid; grid-template-columns: minmax(120px, 3fr) 2fr auto; gap: 10px; align-items: center; margin: 6px 0; } .kt-marks { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 10px; } .kt-sum { margin: 8px 0; }
.pdf-box { text-align: center; padding: 24px 10px; border: 2px dashed #000; margin: 12px 0; } .pdf-ico { color: var(--orange); } .pdf-name { display: block; margin: 8px 0 14px; font-size: 1.2em; }
/* ---- hasła ---- */
.pw-box { display: grid; gap: 10px; margin: 12px 0; padding: 14px; border: 2px solid #000; background: #fff3e6; } .pw-v { display: block; font-size: 1.5em; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 1px; user-select: all; word-break: break-all; }
.pw-cell { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .pw-mask { font-size: 1.05em; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 10px 0; } .filter-row .field { min-width: 150px; } .tag.warn { background: var(--err); color: #fff; }

/* kategorie, grupy, historia, kosz */
.cat-title{display:flex;align-items:center;gap:8px;margin:22px 0 10px;font-size:1.1rem;border-bottom:2px solid #ff7900;padding-bottom:6px}
.tag.warn{background:#fff3e0;color:#8a4b00;border-color:#ffb366}
.chk-list{display:flex;flex-wrap:wrap;gap:6px 16px;margin:6px 0 12px}.chk-list.col{flex-direction:column}
.check.inline{display:inline-flex;align-items:center;gap:6px}
.tpl-meta-panel{border-top:1px solid #ddd;margin-top:14px;padding-top:10px}
.panel-sub{margin:10px 0}
.hist-item{border:1px solid #ddd;border-radius:8px;padding:10px 12px;margin:10px 0}
.hist-h{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.hist-sum{margin:6px 0 6px 18px;padding:0}
.meta-row{display:flex;gap:8px;margin:6px 0}.meta-row input{flex:1}
.meta-add{display:flex;gap:8px;margin-top:8px}.meta-add input{flex:1}

/* podgląd uczestników i połączenie */
.pdot.idle{background:#f5a623}.person.offl{opacity:.62}.person .ago{font-weight:400;font-size:12px;color:var(--g600)}
.prog-box{margin:10px 0;padding:8px 10px;border:1px solid var(--g300);background:#fafafa}.prog-t{display:flex;justify-content:space-between;margin-bottom:6px}
.prog-bar{height:10px;background:var(--g300)}.prog-bar span{display:block;height:100%;background:var(--ok);transition:width .4s}
.ok-text{color:var(--ok);font-weight:700;font-size:14px}.conn-sum{margin:2px 0 6px}
.offline-banner{background:#fff3e0;border-left:6px solid #ff7900;padding:10px 14px;margin-bottom:12px;font-size:15px}.offline-banner.hidden{display:none}
.logo-only{display:flex;flex-direction:column;align-items:center;gap:18px;padding:18vh 0 0}.logo-sq.big{width:96px;height:96px}.logo-sq.big img{width:100%;height:100%}.logo-name{font-size:28px;font-weight:700;letter-spacing:-1px}

/* „?” z objaśnieniem */
.qh{position:relative;display:inline-grid;place-items:center;width:18px;height:18px;margin-left:6px;border:1.5px solid var(--g600);background:#fff;color:#333;font-weight:700;font-size:12px;line-height:1;font-family:inherit;cursor:help;vertical-align:middle;flex:none;border-radius:50%}
.qh:hover,.qh:focus-visible,.qh.open{background:var(--orange);border-color:#000;color:#000;outline:none}
.qh-tip{display:none;position:fixed;z-index:10000;left:8px;top:8px;width:max-content;max-width:min(300px,80vw);padding:10px 12px;background:#000;color:#fff;font-weight:400;font-size:13px;line-height:1.45;font-family:inherit;text-align:left;text-transform:none;letter-spacing:0;white-space:normal;box-shadow:0 4px 14px rgba(0,0,0,.3)}
.qh:hover .qh-tip,.qh:focus .qh-tip,.qh.open .qh-tip{display:block}
.right .qh-tip,.run-grid > aside:last-child .qh-tip{left:auto;right:-8px;transform:none}
.run-grid > aside:first-child .qh-tip,.mini-title .qh-tip{left:-8px;transform:none}

/* film */
.vid-frame{position:relative;width:100%;aspect-ratio:16/9;background:#000}.vid-frame iframe,.vid-iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.vid-el{width:100%;max-height:70vh;background:#000}.vid-stat{margin:8px 0}.vid-manual{margin-top:12px;padding:10px 12px;border-left:6px solid var(--orange);background:#fff3e0}
.vid-rows{display:grid;gap:4px;margin-top:8px}.vid-row{display:grid;grid-template-columns:minmax(120px,1fr) 120px 56px 20px;gap:8px;align-items:center;font-size:14px}.vid-row .pc{text-align:right}.prog-bar.sm{height:8px}
.tpl-who{font-size:12.5px;color:#555;margin:6px 0;line-height:1.5}.tpl-who b{color:#222;font-weight:700}
.meta-item{margin:8px 0;padding:6px 0;border-bottom:1px solid #eee}.meta-grp{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center;margin:4px 0 0 2px}
.meet-btn{white-space:nowrap}.top-right .meet-btn{margin-right:4px}

/* linki i ważne informacje */
.pinned-note{display:flex;gap:10px;align-items:flex-start;background:#000;color:#fff;border-left:8px solid var(--orange);padding:12px 14px;margin:0 0 12px;font-size:17px;font-weight:700;line-height:1.4}.pinned-note svg{flex:none;color:var(--orange);margin-top:2px}.pinned-note.hidden{display:none}
.res-panel{margin:12px 0}.res-row{display:flex;gap:8px;align-items:flex-start;justify-content:space-between;padding:6px 0;border-bottom:1px solid var(--g300)}.res-t{display:flex;flex-direction:column;gap:2px;min-width:0;word-break:break-word}.res-t .pre,.res-card .pre,.pinned-note .pre{white-space:pre-wrap}
.res-add{margin:8px 0}.res-add select{flex:1;min-width:0}.res-own{margin-top:8px}.res-own-f{display:grid;gap:6px;margin-top:6px}
.res-tab{position:fixed;right:0;top:38%;z-index:40;display:flex;flex-direction:column;align-items:center;gap:6px;background:#000;color:#fff;border:0;border-left:4px solid var(--orange);padding:12px 8px;cursor:pointer;font:inherit;font-weight:700;writing-mode:vertical-rl}.res-tab.hidden{display:none}.res-tab svg{writing-mode:horizontal-tb}
.res-tab .res-n{background:var(--orange);color:#000;padding:1px 6px;font-size:12px;writing-mode:horizontal-tb}.res-tab.new{animation:resPulse 1.4s ease-in-out 3}@keyframes resPulse{50%{background:var(--orange);color:#000}}
.res-drawer{position:fixed;top:0;right:0;bottom:0;width:min(360px,92vw);z-index:70;background:#fff;border-left:6px solid var(--orange);box-shadow:-6px 0 20px rgba(0,0,0,.25);transform:translateX(105%);transition:transform .2s;overflow:auto;padding:14px}.res-drawer.open{transform:none}
.res-dh{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:18px}.res-card{border:1px solid var(--g300);padding:10px 12px;margin-bottom:10px;display:grid;gap:8px}.res-card p{margin:0}
.lib-item{margin:10px 0;padding:12px}.lib-row{display:grid;grid-template-columns:2fr 1fr;gap:10px}
@media (max-width:560px){.lib-row{grid-template-columns:1fr}.res-add{flex-wrap:wrap}.res-add select{flex:1 1 100%}.res-add .btn{flex:1 1 100%}.vid-row{grid-template-columns:minmax(80px,1fr) 70px 48px 18px}}
.lib-item{display:block;max-width:100%;box-sizing:border-box}.lib-item .field{display:block;min-width:0}.lib-item input,.lib-item select,.lib-item textarea{width:100%;box-sizing:border-box;min-width:0}.lib-item>.btn{margin-top:8px}

/* kafelki kategorii szablonów */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 14px 0 6px; }
.cat-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 16px; background: #fff; border: 2px solid #000; cursor: pointer; font: inherit; color: #000; min-height: 98px; transition: background .12s; }
.cat-tile:hover { background: #fff3e6; } .cat-tile:focus-visible { outline: 3px solid #ff7900; outline-offset: 2px; }
.cat-tile.on { background: #000; color: #fff; border-color: #000; box-shadow: 0 5px 0 #ff7900; } .cat-tile.on svg { color: #ff7900; }
.cat-tile .cat-name { font-weight: 700; font-size: 1.05rem; line-height: 1.2; } .cat-tile .cat-count { font-size: .85rem; opacity: .7; margin-top: auto; }
.cat-out { margin-top: 14px; } .cat-out .cat-title { margin: 6px 0 10px; }
@media (max-width: 520px) { .cat-tiles { grid-template-columns: 1fr 1fr; gap: 8px; } .cat-tile { padding: 12px; min-height: 84px; } }

.sel-sm { font: inherit; font-size: .85rem; padding: 6px 8px; border: 2px solid #000; background: #fff; max-width: 190px; } .creator.on .sel-sm { background: #e8f7ee; border-color: #1f8a4c; }
.actions { flex-wrap: wrap; }

.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: #000; text-decoration: underline dotted; cursor: pointer; } .link-btn:hover { color: #ff7900; }

/* wyraźne podświetlenie zakładek menu po najechaniu */
.tab:not(.on):hover, .tab:not(.on):focus-visible { background: #ff7900; color: #000; border-color: #000; outline: none; }

.res-files { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; } .res-file { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 2px solid #000; background: #fff; color: #000; text-decoration: none; font-weight: 600; font-size: .9rem; word-break: break-word; } .res-file:hover { background: #ff7900; }
.lib-files { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; } .lib-file { display: flex; align-items: center; gap: 8px; border: 1px solid #ccc; background: #fafafa; padding: 4px 8px; max-width: 100%; word-break: break-word; }

.grp-panel { margin: 14px 0; } .grp-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; } .grp-row { display: flex; align-items: center; gap: 10px; } .grp-row input { flex: 1; max-width: 360px; }
.top span.brand { cursor: default; }
.grp-row .grp-name{flex:0 1 360px;min-width:120px}
.cat-tile { position: relative; overflow: hidden; border-top: 6px solid #ff7900; border-radius: 0; transition: transform .12s, box-shadow .12s, background .12s; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: 0 6px 0 #ff7900; }
.cat-tile .cat-top { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.cat-tile .cat-ico { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: #ff7900; color: #000; }
.cat-tile .cat-chev { font-size: 1.1rem; font-weight: 700; color: #ff7900; }
.cat-tile .cat-count { font-weight: 700; opacity: 1; color: #666; } .cat-tile.on .cat-count { color: #ddd; }
.cat-tile .cat-hint { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #ff7900; font-weight: 700; }
.cat-tile.on .cat-ico svg { color: #000; }
.cat-out { border-left: 6px solid #ff7900; padding-left: 14px; margin-top: 14px; animation: catIn .18s ease-out; }
.cat-out .cat-title { margin: 4px 0 10px; font-size: 1.25rem; }
@keyframes catIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cat-out { animation: none; } .cat-tile:hover { transform: none; } }
.meta-row .grp-name{flex:1}
.obs-banner { background: #000; color: #fff; border-left: 6px solid #ff7900; padding: 12px 16px; margin: 0 0 12px; font-size: 1rem; }
.obs-banner b { color: #ff7900; }
.stage.observer-mode { opacity: .92; }
.stage.observer-mode input, .stage.observer-mode textarea, .stage.observer-mode select, .stage.observer-mode button, .stage.observer-mode canvas, .stage.observer-mode [role=button], .stage.observer-mode label { pointer-events: none; }
.obs-tag { margin-left: 6px; padding: 1px 6px; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; background: #000; color: #ff7900; }
.obs-btn { opacity: .55; } .obs-btn:hover, .obs-btn.on { opacity: 1; } .obs-btn.on { color: #ff7900; }

/* Widok trenera: trzy kolumny, bez przewijania całej strony (podgląd uczestnika po prawej) */
.side-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.side-right .preview-h { margin: 0 0 8px; justify-content: space-between; }
.pv-wrap { height: 300px; overflow: auto; border: 1px solid var(--g500); background: #fff; }
.pv-wrap .stage.preview { zoom: .56; margin: 0; padding: 8px; max-width: none; }
.pv-wrap.big { height: 62vh; } .pv-wrap.big .stage.preview { zoom: .9; }
.pv-panel { padding: 12px; }
@media (min-width: 1101px) {
  .run-grid { height: calc(100vh - 96px); }
  .run-grid > aside, .run-grid > .center { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
  .side-right { overflow-y: auto; }
  .ppl-panel { flex: 1 1 auto; min-height: 160px; }
  .container.run { padding-bottom: 0; }
}
@media (max-width: 1100px) { .run-grid > .side-right { order: 3; } .pv-wrap { height: 340px; } }
/* kompaktowy pasek kodu i krótszy panel „Kogo zapytać?” */
@media (min-width: 1101px) {
  .join-bar { padding: 8px 14px; gap: 14px; } .join-bar .code.big { font-size: 26px; padding: 2px 10px; margin: 0; }
  .join-bar .btn-row { margin-left: auto; flex-wrap: nowrap; } .join-bar .btn-row .btn { white-space: nowrap; }
  .side-right .fair-box { padding: 8px 10px; } .side-right .fair-box .fair-cur { font-size: 1.05em; margin: 4px 0; }
  .pv-wrap { height: 250px; }
}
.sol-box { background: #fff; border: 2px solid #50be87; border-left: 8px solid #50be87; padding: 12px 16px; margin: 0 0 12px; }
.sol-t { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.sol-only { margin-left: auto; font-size: .72rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: #666; }
.sol-list { margin: 0; padding-left: 22px; } .sol-list li { padding: 2px 0; white-space: pre-wrap; }
.obs-hint{margin:-4px 0 10px}
.pres-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #999; vertical-align: middle; } .pres-dot.on { background: #32c832; }
td.pres-doing { max-width: 300px; }

.right .qh-tip,.run-grid > aside:last-child .qh-tip,.run-grid > aside:first-child .qh-tip,.mini-title .qh-tip{transform:none}

/* ===== ekrany powitania i przerwy: pory roku, animacje, układy ===== */
.break-screen.scr { position: relative; overflow: hidden; min-height: 360px; display: flex; align-items: center; justify-content: center; }
.scr-body { position: relative; z-index: 2; width: 100%; }
.scr-mark { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 3vw, 32px); }
.scr-deco { font-size: clamp(32px, 7vw, 72px); line-height: 1; opacity: .95; } .scr.eanim-sway .scr-deco.l, .scr.eanim-sway .scr-deco.r { display: inline-block; animation: scrSway 3.6s ease-in-out infinite; transform-origin: 50% 100%; } .scr-deco.r { animation-delay: -1.8s !important; }
.scr .bk-emoji { position: relative; display: inline-block; }
.scr.eanim-sway .scr-em { display: inline-block; animation: scrSway 3s ease-in-out infinite; transform-origin: 50% 90%; }
.scr.eanim-float .scr-em { display: inline-block; animation: scrFloat 4s ease-in-out infinite; }
.scr.eanim-bounce .scr-em { display: inline-block; animation: scrBounce 1.8s ease-in-out infinite; }
.scr .steam { display: none; position: absolute; left: 50%; top: -6%; width: 60%; height: 40%; transform: translateX(-50%); pointer-events: none; }
.scr.eanim-steam .steam { display: block; }
.steam i { position: absolute; bottom: 0; width: 10%; height: 100%; border-radius: 50%; background: rgba(255,255,255,.55); filter: blur(5px); opacity: 0; animation: scrSteam 3.2s ease-in infinite; }
.steam i:nth-child(1) { left: 22%; } .steam i:nth-child(2) { left: 44%; animation-delay: -1.1s; } .steam i:nth-child(3) { left: 66%; animation-delay: -2.1s; }
.scr .hero-count { font-size: 1.15rem; margin-top: 18px; color: inherit; opacity: .9; }
.scr-fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.scr-fx .p { position: absolute; top: -8%; font-style: normal; animation-name: scrFall; animation-timing-function: linear; animation-iteration-count: infinite; }
.anim-bubbles, .scr-fx .p { color: rgba(255,255,255,.9); }
@keyframes scrFall { from { transform: translate3d(0, -10%, 0) rotate(0deg); } 50% { transform: translate3d(18px, 55vh, 0) rotate(120deg); } to { transform: translate3d(-12px, 115vh, 0) rotate(280deg); } }
@keyframes scrSway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes scrFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes scrBounce { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-18px) scale(1.04); } 60% { transform: translateY(0) scale(.98); } }
@keyframes scrSteam { 0% { transform: translateY(10px) scaleX(1); opacity: 0; } 25% { opacity: .75; } 100% { transform: translateY(-70px) scaleX(1.8); opacity: 0; } }
/* układy */
.scr.layout-split .scr-body { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 5vw, 60px); text-align: left; max-width: 1000px; margin: 0 auto; }
.scr.layout-split .lead { margin: 0; } .scr.layout-split .scr-txt { flex: 1 1 auto; }
.scr.layout-big h1 { font-size: clamp(44px, 9vw, 96px); } .scr.layout-big .bk-emoji { font-size: clamp(40px, 7vw, 72px); }
/* kolorystyka sezonowa */
.break-screen.theme-spring { background: linear-gradient(160deg, #d9f2d0, #f6e1ee); color: #1d3b16; border-color: #6bbf59; } .theme-spring .scr-fx .p { color: #e58fb4; }
.break-screen.theme-summer { background: linear-gradient(160deg, #ffe07a, #ff9d3d 60%, #35b6d8); color: #1c2a33; border-color: #ff7900; } .theme-summer .scr-fx .p { color: rgba(255,255,255,.85); }
.break-screen.theme-autumn { background: linear-gradient(160deg, #6b3a1c, #b5651d); color: #fff4e3; border-color: #e0a030; }
.break-screen.theme-winter { background: linear-gradient(170deg, #0f2744, #2d5b8c); color: #fff; border-color: #bfe3ff; } .theme-winter .scr-fx .p { color: #fff; }
.scr-fx .p { text-shadow: 0 0 2px rgba(0,0,0,.15); }
.break-screen.scr.mini { min-height: 190px; padding: 14px 10px; } .break-screen.scr.mini .scr-deco { font-size: 28px; } .break-screen.scr.mini .scr-fx .p { font-size: 12px !important; }
@media (prefers-reduced-motion: reduce) { .scr-fx .p, .scr .scr-em, .scr .scr-deco, .steam i { animation: none !important; } }
.mode-row { display: flex; gap: 22px; flex-wrap: wrap; margin: 10px 0; } .season-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 12px; }
.season-tab { border: 2px solid #000; background: #fff; padding: 6px 14px; font-weight: 700; cursor: pointer; font-family: inherit; } .season-tab.on { background: #000; color: #fff; } .season-tab:hover:not(.on) { background: #ff7900; }
.scr-prev { border: 1px solid #999; }

/* panel prowadzącego: czas, ekran, kogo zapytać */
.own-wrap { display: inline-flex; align-items: center; gap: 6px; } .own-min { width: 70px; padding: 4px 6px; font-size: 14px; border: 2px solid #000; }
.ctl-screen { gap: 10px 18px; } .seg-grp { display: inline-flex; align-items: center; gap: 6px; } .seg-l { font-size: 14px; font-weight: 700; }
.seg { display: inline-flex; border: 2px solid #000; } .seg-b { font: inherit; font-size: 14px; padding: 4px 10px; background: #fff; color: #000; border: 0; cursor: pointer; } .seg-b + .seg-b { border-left: 2px solid #000; } .seg-b.on { background: #000; color: #fff; font-weight: 700; } .seg-b:focus-visible { outline: 3px solid var(--orange); outline-offset: 1px; }
.fair-box, .fair-box * { font-size: 14px; } .fair-box .fair-t { font-size: 15px; } .fair-box .fair-desc { margin: 6px 0; color: var(--g700); line-height: 1.35; } .fair-stat { display: flex; flex-direction: column; gap: 2px; margin: 6px 0; }
.fair-box .fair-cur, .side-right .fair-box .fair-cur { font-size: 14px; margin: 8px 0; display: flex; flex-direction: column; gap: 2px; } .fair-box .fair-cur b { font-size: 16px; } .fair-lbl { color: var(--g700); }

.rt-wrap { display: flex; flex-direction: column; } .rt-bar { display: flex; align-items: center; gap: 6px; padding: 4px 0; flex-wrap: wrap; }
.rt-btn { min-width: 34px; height: 30px; border: 2px solid #000; background: #fff; font-size: 15px; cursor: pointer; } .rt-btn:hover, .rt-btn:focus-visible { background: var(--orange); outline: none; }
.tn-body, .lead.pre, .body-text.pre { white-space: pre-wrap; } .tn-body strong, .lead strong, .body-text strong { font-weight: 800; } .tn-body u, .lead u, .body-text u { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }

.q-tag { margin-left: auto; font-size: 13px; font-weight: 800; padding: 2px 8px; background: #000; color: #fff; white-space: nowrap; } .q-tag.good { background: #2e7d32; }
.q-opt.picked { outline: 4px solid #000; outline-offset: 2px; } .q-opt.picked.right { outline-color: #2e7d32; } .q-opt.picked.wrong { outline-color: #c62828; }
.who-box { margin-top: 14px; border-top: 2px solid #000; } .who-cols { display: flex; gap: 14px; flex-wrap: wrap; } .who-col { flex: 1 1 180px; border: 2px solid #000; padding: 8px 10px; } .who-col ul { margin: 6px 0 0; padding-left: 18px; } .who-col.good { border-color: #2e7d32; } .who-col.bad { border-color: #c62828; } .who-col.good b { color: #2e7d32; } .who-col.bad b { color: #c62828; }
.q-opt.picked.wrong { opacity: 1; filter: none; }

.sol-show { margin-top: 14px; } .sol-show .chip-item { cursor: default; } .sol-show .chip-item.ok { background: #e3f4e5; border-color: #2e7d32; } .sol-show .chip-item.miss { background: #fff; }

.rt-prev { margin-top: 6px; padding: 8px 10px; border: 2px dashed var(--g300, #bbb); background: #fafafa; min-height: 2.2em; white-space: pre-wrap; } .rt-prev.empty { color: #777; font-style: italic; } .rt-prev strong { font-weight: 800; } .rt-prev u { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }

.res-collapse { border: 2px solid #000; background: #fff; margin: 14px 0 0; } .res-collapse > summary { cursor: pointer; padding: 10px 12px; font-weight: 800; display: flex; align-items: center; gap: 8px; } .res-collapse > .res-panel { border: 0; border-top: 2px solid #000; margin: 0; }

.person-card .chip-item.ok { background: #e3f4e5; border-color: #2e7d32; } .person-card .chip-item.bad { background: #fdeaea; border-color: #c62828; } .arrow { color: #c62828; white-space: nowrap; } .person-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--g300, #ddd); } .ppl-box { margin: 10px 0; }

.round-tag { background: #000; color: #fff; font-weight: 800; margin: 8px 0; display: inline-block; } .round-tag.hidden { display: none; }

.fair-box { padding: 8px 10px !important; margin-bottom: 8px !important; } .fair-box, .fair-box * { font-size: 13px; } .fair-box .fair-t { font-size: 14px; }
.fair-box .fair-cur, .side-right .fair-box .fair-cur { font-size: 15px; font-weight: 800; margin: 6px 0; display: block; padding: 4px 8px; } .fair-box .fair-stat { display: block; margin: 6px 0 0; color: var(--g700); }
.link-btn { background: none; border: 0; padding: 0 0 0 8px; font: inherit; text-decoration: underline; cursor: pointer; color: inherit; }

.help-tab { position: fixed; right: 0; top: 62%; z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; color: #000; border: 2px solid #000; border-right: 0; border-left: 4px solid var(--orange); padding: 12px 8px; cursor: pointer; font: inherit; font-weight: 700; writing-mode: vertical-rl; }
.help-tab svg { writing-mode: horizontal-tb; } .help-tab:hover, .help-tab:focus-visible { background: var(--orange); outline: none; } .help-tab.on { background: #000; color: #fff; }
@media (max-width: 640px) { .help-tab { padding: 10px 6px; font-size: 13px; top: 66%; } }
