/* ============================================================
   Slajdový režim – snímka 1600×900 (škáluje sa na okno)
   ============================================================ */
.slide-frame { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: #000000; perspective: 2400px; }
.slide-scaler { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; }

.slide {
  --mc: #ea0029;
  --s-ink: #f4f4f6; --s-ink2: #d6d6dc; --s-muted: #9c9ca8; --s-line: #26262d; --s-card: rgba(16,16,20, .82);
  position: absolute; inset: 0; color: var(--s-ink); font-family: var(--font);
  background: #000; overflow: hidden;
  perspective: 2200px;
  /* tmavé tokeny pre bloky vnútri snímky */
  --bg: #000000; --surface: #121215; --surface-2: #0e0e11; --surface-3: #1b1b20; --ink: #f4f4f6; --ink-2: #d6d6dc; --muted: #9c9ca8; --faint: #6e6e7a; --line: #26262d; --line-strong: #34343d;
  --accent: #ff2d4b; --accent-2: #ff5a71; --accent-soft: rgba(255,45,75,.15); --cyan: #3cc8e0; --cyan-soft: rgba(60,200,224,.14); --violet: #9d86ff; --violet-soft: rgba(157,134,255,.15); --ok: #3ad08a; --ok-soft: rgba(58,208,138,.14); --warn: #ffb547; --warn-soft: rgba(255,181,71,.14); --bad: #ff5c74; --bad-soft: rgba(255,92,116,.15);
}
.slide::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.slide-inner { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; padding: 54px 90px 40px; transform-style: preserve-3d; z-index: 1; }
.slide-inner.is-enter { animation: slideIn .42s var(--ease) both; }
.slide-inner.is-enter-back { animation: slideInBack .42s var(--ease) both; }
@keyframes slideIn { from { opacity: 0; transform: translate3d(80px, 0, -260px) rotateY(-12deg); } to { opacity: 1; transform: none; } }
@keyframes slideInBack { from { opacity: 0; transform: translate3d(-80px, 0, -260px) rotateY(12deg); } to { opacity: 1; transform: none; } }

.slide-top { display: flex; justify-content: space-between; align-items: center; font-size: 19px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--s-muted); padding-bottom: 22px; }
.slide-k b { color: var(--mc); margin-right: 14px; }
.slide-n { font-variant-numeric: tabular-nums; letter-spacing: .06em; padding: 6px 14px; border: 1px solid var(--s-line); border-radius: 99px; font-size: 17px; }
.slide-body { position: relative; min-height: 0; display: flex; flex-direction: column; }
.slide-foot { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-top: 22px; font-size: 16px; color: var(--s-muted); }
.slide-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 650; }
.slide-brand { gap: 16px; }
.slide-brand .kia-logo { height: 26px; color: #fff; }
.slide-brand .kia-logo + span { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.25); }
.slide-prog { flex: 0 0 420px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.slide-prog i { display: block; height: 100%; background: var(--mc); border-radius: inherit; }

/* ---------- titulná snímka: sklenená 3D kocka s číslom vnútri ---------- */
.st { flex: 1; display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: center; position: relative; z-index: 1; }
.st h1 { font-size: 100px; line-height: .95; letter-spacing: -.045em; font-weight: 800; margin: 0 0 26px; text-shadow: 0 16px 60px rgba(0,0,0,.55); }
.st h1.is-long { font-size: 88px; }
.st h1.is-xlong { font-size: 76px; line-height: 1; }
.st-q { font-size: 40px; line-height: 1.2; font-weight: 650; color: var(--mc); margin: 0 0 22px; max-width: 1020px; text-shadow: 0 6px 30px rgba(0,0,0,.5); }
.st-lead { font-size: 24px; line-height: 1.5; color: var(--s-ink2); margin: 0; max-width: 980px; }
.st-meta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.st-meta span { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--s-line); background: rgba(0,0,0,.55); font-size: 18px; color: var(--s-ink2); font-weight: 650; backdrop-filter: blur(6px); }
.st-cube { position: relative; display: grid; place-items: center; height: 440px; }
.cube-glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--mc) 38%, transparent), transparent); filter: blur(18px); animation: glowPulse 4.5s ease-in-out infinite alternate; }
@keyframes glowPulse { from { opacity: .55; transform: scale(.92); } to { opacity: 1; transform: scale(1.06); } }
/* scéna je zámerne „plochá“: poradie kreslenia = vzdialené steny → číslo → predné steny */
.cube-scene { position: relative; width: 250px; height: 250px; perspective: 1000px; animation: sceneFloat 6s ease-in-out infinite alternate; }
.cube3d { position: absolute; inset: 0; transform-style: preserve-3d; animation: cubeSpin 24s linear infinite; }
@keyframes cubeSpin { from { transform: rotateX(-20deg) rotateY(0deg); } to { transform: rotateX(-20deg) rotateY(360deg); } }
.cube3d i { position: absolute; inset: 0; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
/* predné (k divákovi otočené) steny: sklo s odleskom */
.cube3d--front i { border: 2.5px solid color-mix(in srgb, var(--mc) 85%, #fff);
  background: linear-gradient(150deg, rgba(255,255,255,.07), color-mix(in srgb, var(--mc) 6%, transparent) 45%, color-mix(in srgb, var(--mc) 18%, transparent));
  box-shadow: inset 0 0 50px color-mix(in srgb, var(--mc) 26%, transparent), 0 0 24px color-mix(in srgb, var(--mc) 32%, transparent); }
.cube3d--front i:nth-child(1) { transform: translateZ(125px); }
.cube3d--front i:nth-child(2) { transform: rotateY(180deg) translateZ(125px); }
.cube3d--front i:nth-child(3) { transform: rotateY(90deg) translateZ(125px); }
.cube3d--front i:nth-child(4) { transform: rotateY(-90deg) translateZ(125px); }
.cube3d--front i:nth-child(5) { transform: rotateX(90deg) translateZ(125px); }
.cube3d--front i:nth-child(6) { transform: rotateX(-90deg) translateZ(125px); }
/* vzdialené steny: tie isté steny otočené dovnútra – vidno ich len na odvrátenej strane, za číslom */
.cube3d--back i { border: 2px solid color-mix(in srgb, var(--mc) 50%, transparent); background: color-mix(in srgb, var(--mc) 9%, transparent); box-shadow: inset 0 0 44px color-mix(in srgb, var(--mc) 18%, transparent); }
.cube3d--back i:nth-child(1) { transform: translateZ(125px) rotateY(180deg); }
.cube3d--back i:nth-child(2) { transform: rotateY(180deg) translateZ(125px) rotateY(180deg); }
.cube3d--back i:nth-child(3) { transform: rotateY(90deg) translateZ(125px) rotateY(180deg); }
.cube3d--back i:nth-child(4) { transform: rotateY(-90deg) translateZ(125px) rotateY(180deg); }
.cube3d--back i:nth-child(5) { transform: rotateX(90deg) translateZ(125px) rotateY(180deg); }
.cube3d--back i:nth-child(6) { transform: rotateX(-90deg) translateZ(125px) rotateY(180deg); }
/* číslo v strede kocky: 9 vrstiev do hĺbky, jemne sa kolíše */
.cube-num { position: absolute; inset: 0; transform-style: preserve-3d; animation: numSway 7s ease-in-out infinite alternate; }
@keyframes numSway { from { transform: rotateX(-6deg) rotateY(-18deg); } to { transform: rotateX(-2deg) rotateY(18deg); } }
.cube-num b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 112px/1 var(--font-display); letter-spacing: -.05em;
  color: color-mix(in srgb, var(--mc) var(--p), #000); transform: translateZ(var(--z)); }
.cube-num b.is-top { color: #fff; text-shadow: 0 0 26px var(--mc), 0 0 2px #fff; }
.cube-floor { position: absolute; bottom: 4px; width: 340px; height: 70px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--mc) 55%, transparent), transparent); filter: blur(10px); animation: floorPulse 6s ease-in-out infinite alternate; }
@keyframes floorPulse { from { transform: scale(.85); opacity: .7; } to { transform: scale(1.05); opacity: 1; } }
@keyframes sceneFloat { from { transform: translateY(-8px); } to { transform: translateY(8px); } }

/* úseky dňa (8:30 – 14:00) */
.st-day { display: flex; align-items: center; gap: 14px; margin-top: 26px; max-width: 980px; font-size: 16px; font-weight: 700; color: var(--s-muted); font-variant-numeric: tabular-nums; }
.st-day-bar { flex: 1; display: flex; gap: 3px; height: 12px; }
.st-day-bar i { border-radius: 4px; background: rgba(255,255,255,.12); transition: transform .3s; }
.st-day-bar i.is-done { background: color-mix(in srgb, var(--mc) 45%, transparent); }
.st-day-bar i.is-break { background: rgba(255,255,255,.05); }
.st-day-bar i.is-lunch { background: repeating-linear-gradient(45deg, rgba(255,255,255,.55) 0 4px, rgba(255,255,255,.12) 4px 8px); }
.st-day-bar i.is-cur { background: var(--mc); box-shadow: 0 0 18px var(--mc); transform: scaleY(1.8); opacity: 1; }

/* reálna fotka modulu v pozadí úvodných snímok */
.slide-photo { position: absolute; inset: 0 0 0 34%; background-size: cover; background-position: center; opacity: .55;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 48%); mask-image: linear-gradient(90deg, transparent, #000 48%); filter: grayscale(1) contrast(1.15) brightness(.78); }
.slide-photo::before { content: ""; position: absolute; inset: 0; background: var(--mc); mix-blend-mode: color; opacity: .32; }
.slide-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55), transparent 30%, rgba(0,0,0,.75)); }
.slide-photo small { position: absolute; right: 90px; top: 64px; z-index: 1; font-size: 12px; color: rgba(255,255,255,.7); letter-spacing: .02em; }

/* perspektívna „podlaha“ – hĺbka na každej snímke */
.slide-floor { position: absolute; left: -20%; right: -20%; bottom: 0; height: 46%; pointer-events: none; opacity: .5; overflow: hidden;
  transform: perspective(700px) rotateX(64deg); transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,.55), transparent 85%); mask-image: linear-gradient(0deg, rgba(0,0,0,.55), transparent 85%); }
.slide--title .slide-floor, .slide--break .slide-floor { opacity: .8; }

/* ---------- prestávka ---------- */
.sb { flex: 1; display: grid; place-content: center; justify-items: center; text-align: center; gap: 18px; position: relative; z-index: 1; }
.sb-ico { font-size: 120px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.sb h1 { font-size: 104px; letter-spacing: -.04em; margin: 0; text-shadow: 0 16px 60px rgba(0,0,0,.6); }
.sb p { font-size: 32px; color: var(--s-ink2); margin: 0; max-width: 1100px; }
.sb-time { padding: 10px 24px; border-radius: 99px; background: var(--mc); color: #000000; font-size: 24px; font-weight: 800; }
.sb .st-day { width: 900px; margin-top: 10px; }

/* ---------- obsahová snímka ---------- */
.slide-title { font-size: 58px; line-height: 1.05; letter-spacing: -.035em; font-weight: 800; margin: 0 0 30px; max-width: 1350px; }
.slide-title small { font-size: 26px; color: var(--s-muted); font-weight: 600; letter-spacing: 0; margin-left: 10px; }
.slide-title--ctx { font-size: 44px; color: var(--s-ink2); }
.slide-content { flex: 1; min-height: 0; overflow: hidden; }
.slide-content > * { margin: 0 !important; }
.slide .b-title { display: none; }

.slide .b-p { font-size: 34px; line-height: 1.5; max-width: 1300px; }
.slide .points-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 22px; }
.slide .point { padding: 28px 30px; border-radius: 22px; background: var(--s-card); border-color: var(--s-line); }
.slide .point-n { font-size: 18px; color: var(--mc); }
.slide .point h4 { font-size: 32px; margin: 12px 0 10px; }
.slide .point p { font-size: 22.5px; line-height: 1.5; color: var(--s-ink2); }

.slide .slide-content--compare { display: flex; flex-direction: column; justify-content: center; }
.slide .compare { gap: 26px; }
.slide .cmp { padding: 40px; border-radius: 24px; gap: 20px; min-height: 340px; justify-content: center; }
.slide .cmp--bad { background: var(--s-card); border-color: var(--s-line); }
.slide .cmp--good { background: #f4f4f6; color: #000000; border-color: #f4f4f6; }
.slide .cmp--good .cmp-label { color: #0a7a4a; }
.slide .cmp--neutral { background: var(--s-card); border-color: var(--s-line); }
.slide .cmp-label { font-size: 18px; }
.slide .cmp--bad .cmp-label::before { content: '✕  '; }
.slide .cmp--good .cmp-label::before { content: '✓  '; }
.slide .cmp--warn .cmp-label::before { content: '!  '; }
.slide .cmp-text { font-size: 29px; line-height: 1.5; }
.slide .b-copy { display: none; }
.slide .b-note { font-size: 19px; color: var(--s-muted); margin-top: 16px !important; }

.slide .b-callout { font-size: 34px; line-height: 1.45; padding: 34px 40px 34px 44px; border-radius: 22px; border-left-width: 8px; }
.slide .b-callout strong { font-size: 22px; letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: 10px; }
.slide .callout--key { font-weight: 650; }

.slide .b-quote p { font-size: 46px; }
.slide .b-quote cite { font-size: 22px; }

.slide .table-wrap { border-color: var(--s-line); border-radius: 18px; }
.slide table.t { font-size: 22px; }
.slide table.t th { font-size: 16px; padding: 16px 20px; background: #0e0e11; color: var(--s-muted); }
.slide table.t td { padding: 16px 20px; border-color: var(--s-line); line-height: 1.4; }
.slide table.t tr:nth-child(even) td { background: rgba(255,255,255,.02); }

.slide ol.steps { gap: 18px; }
.slide ol.steps li { grid-template-columns: 64px 1fr; gap: 24px; padding: 24px 28px; border-radius: 20px; background: var(--s-card); border-color: var(--s-line); }
.slide ol.steps li + li::before { display: none; }
.slide .step-n { width: 64px; height: 64px; border-radius: 18px; font-size: 28px; background: var(--mc); color: #fff; }
.slide ol.steps h4 { font-size: 30px; }
.slide ol.steps p { font-size: 22px; color: var(--s-ink2); }

.slide .flow { gap: 0; padding-top: 40px; perspective: 1400px; }
.slide .flow-node { min-width: 0; padding: 30px 24px; border-radius: 22px; background: var(--s-card); border-color: var(--s-line); transform: rotateY(-8deg); transform-origin: left center; box-shadow: 18px 24px 50px rgba(0,0,0,.35); }
.slide .flow-node span { font-size: 20px; color: var(--mc); }
.slide .flow-node strong { font-size: 28px; }
.slide .flow-node small { font-size: 19px; }
.slide .flow-arrow { flex-basis: 40px; height: 3px; }

.slide .timeline::before { left: 222px; }
.slide .tl { grid-template-columns: 200px 44px 1fr; padding: 14px 0; }
.slide .tl-date { font-size: 24px; }
.slide .tl-dot { width: 22px; height: 22px; margin: 6px 0 0 11px; border-width: 4px; background: #000000; }
.slide .tl-text { font-size: 25px; line-height: 1.45; }

.slide .b-case { padding: 40px; border-radius: 24px; }
.slide .b-case h3 { font-size: 40px; margin-bottom: 18px; }
.slide .b-case p { font-size: 24px; line-height: 1.55; }
.slide .case-head .chip { font-size: 16px; padding: 6px 14px; }

.slide .codebox pre { font-size: 21px; padding: 24px 28px; }
.slide .codebox-head { font-size: 16px; padding: 10px 18px; }

.slide .layers3d { gap: 14px; perspective: 1800px; }
.slide .layer { grid-template-columns: 58px 1fr; padding: 18px 26px; border-radius: 18px; background: var(--s-card); border-color: var(--s-line); }
.slide .layer-n { width: 58px; height: 58px; font-size: 24px; background: var(--mc); color: #fff; }
.slide .layer h4 { font-size: 26px; }
.slide .layer p { font-size: 19px; color: var(--s-ink2); }

.slide ul.ticks { gap: 18px; }
.slide ul.ticks li { font-size: 30px; padding-left: 46px; line-height: 1.4; }
.slide ul.ticks li::before { color: var(--mc); }

.slide .b-kia { padding: 50px 56px; border-radius: 28px; height: 100%; }
.slide .kia-head { font-size: 17px; }
.slide .b-kia h3 { font-size: 58px; margin: 40px 0 18px; }
.slide .b-kia p { font-size: 27px; max-width: 1200px; }
.slide .kia-kpi { font-size: 20px; margin-top: 34px; }

/* vizualizácie na snímke vyplnia priestor */
.slide--b-viz .slide-body { justify-content: stretch; }
.slide-content--viz { display: flex; flex-direction: column; }
.slide-content--viz .viz-slot, .slide-content--viz .viz3d { flex: 1; display: flex; flex-direction: column; }
.slide-content--viz .viz3d-stage { flex: 1; height: auto !important; min-height: 560px; }
.slide-content--viz .viz3d-bar { font-size: 18px; }
.slide-content--viz .viz3d-cap { font-size: 18px; }
.slide-content--viz .loopviz { padding: 40px; gap: 28px; }
.slide-content--viz .loopviz-text { font-size: 30px; }
.slide-content--viz .loopviz-probs li { grid-template-columns: 170px 1fr 70px; font-size: 22px; }
.slide-content--viz .loopviz-cube { width: 90px; height: 90px; }
.slide-content--viz .loopviz-back { font-size: 20px; }
.slide-vizph, .slide-actph { flex: 1; display: grid; place-content: center; justify-items: center; text-align: center; gap: 16px; border: 2px dashed var(--s-line); border-radius: 28px; padding: 40px; }
.slide-vizph span { font-size: 80px; color: var(--mc); }
.slide-vizph strong { font-size: 40px; }
.slide-vizph small { font-size: 22px; color: var(--s-muted); }

/* ---------- snímka s aktivitou ---------- */
.slide-act { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; }
.slide-act.act--screen { padding: 0; }
.slide .act--screen .act-title { font-size: 54px; line-height: 1.05; }
.slide .act--screen .act-prompt { font-size: 26px; line-height: 1.45; color: var(--s-ink2); }
.slide .act-foot { font-size: 20px; }
.slide .bars--big .barrow-label { font-size: 26px; }
.slide .bars--big .barrow-val { font-size: 32px; }
.slide .wc-sphere--big { height: 520px; }
.slide .explain--big { font-size: 24px; }
.slide-actph-ico { width: 110px; height: 110px; border-radius: 30px; display: grid; place-items: center; font-size: 54px; background: color-mix(in srgb, var(--mc) 20%, transparent); color: var(--mc); }
.slide-actph h2 { font-size: 54px; max-width: 1200px; margin: 0; }
.slide-actph p { font-size: 26px; color: var(--s-ink2); max-width: 1150px; margin: 0; }
.slide-actph .chip { font-size: 20px; padding: 10px 18px; margin-top: 8px; }

/* ============================ konzola – slajdový režim ============================ */
.pc-slides { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 14px; align-items: start; }
.pc-slide-main .slide-frame { box-shadow: var(--shadow-3); }
.pc-slide-side { display: grid; gap: 8px; }
.pc-slide-side .slide-frame { border-radius: 10px; opacity: .9; }
.pc-slide-side .kicker { font-size: 10px; }
.pc-slide-hint { font-size: 12.5px; color: var(--muted); line-height: 1.45; padding: 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.pc-film { display: flex; gap: 6px; overflow-x: auto; padding: 12px 2px 6px; scrollbar-width: thin; }
.pc-film button { flex: 0 0 auto; max-width: 190px; display: grid; grid-template-columns: auto 1fr; gap: 6px; align-items: center; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; text-align: left; color: var(--ink-2); }
.pc-film button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-film button b { font-size: 11px; color: var(--muted); }
.pc-film button.is-on { background: var(--mc, var(--accent)); border-color: var(--mc, var(--accent)); color: #fff; }
.pc-film button.is-on b { color: #fff; }
.pc-film button.is-act { border-color: var(--accent); }
.pc-slide-act { margin-top: 12px; }
.pc-slide-act:empty { display: none; }
.pc-fullsec { margin-top: 18px; border: 1px dashed var(--line-strong); border-radius: 14px; padding: 0 14px; }
.pc-fullsec > summary { cursor: pointer; padding: 12px 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.pc-viewmode { margin-left: auto; }
.pc-slide-nav { display: flex; align-items: center; gap: 10px; }
.pc-slide-nav b { font-variant-numeric: tabular-nums; }

/* ============================ plátno – slajdový režim ============================ */
.scr-slides { position: absolute; inset: 0; z-index: 2; }
.scr-slides .slide-frame { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; background: transparent; }
/* za nepriehľadnou snímkou je 3D pozadie zbytočné – skryté = jeho slučka sa zastaví (IntersectionObserver) */
.scr[data-mode="slides"]:not([data-layout="rail"]) .scr-bg { display: none; }
.scr[data-mode="slides"] .scr-corner { opacity: .85; }
.scr[data-mode="slides"] .slide { background: #000; }

/* účastník – zvýraznenie aktuálnej snímky */
.is-live-slide { position: relative; outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 16px; transition: outline-color .3s; }
.pv-slidepill { position: fixed; left: 50%; top: 70px; transform: translateX(-50%); z-index: 70; display: flex; gap: 10px; align-items: center; padding: 7px 14px; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700; box-shadow: var(--shadow-2); }
.pv-slidepill button { border: 0; background: var(--accent); color: #fff; border-radius: 99px; padding: 3px 10px; font-weight: 700; font-size: 12px; }

@media (max-width: 1280px) { .pc-slides { grid-template-columns: 1fr; } .pc-slide-side { grid-template-columns: 220px 1fr; align-items: start; } }

.scr[data-mode="slides"][data-slide-kind="block"] .scr-corner { display: none; }
.scr[data-mode="slides"] .scr-corner { transform: scale(.8); transform-origin: bottom right; }

/* plátno: čakanie na hlasy (výsledky sa ukážu až po zverejnení) */
.act-wait:empty, .act-res:empty { display: none; }
.act-wait { display: grid; gap: 28px; }
.wait-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.wait-opts li { display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px; align-items: center; padding: 16px 20px; border-radius: 18px; background: rgba(16,16,20, .8); border: 1px solid #26262d; font-size: 26px; font-weight: 650; }
.wait-opts li b { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--mc, #ea0029); color: #fff; font-size: 26px; grid-row: span 2; }
.wait-opts li small { font-size: 19px; color: #9c9ca8; font-weight: 500; line-height: 1.45; }
.wait-q { font-size: 36px; font-weight: 700; line-height: 1.25; margin: 0; display: grid; gap: 10px; }
.wait-count { display: grid; grid-template-columns: auto 1fr; gap: 2px 18px; align-items: center; padding: 18px 24px; border-radius: 20px; border: 1px dashed #34343d; }
.wait-count b { font-size: 64px; line-height: 1; color: var(--mc, #ea0029); grid-row: span 2; font-variant-numeric: tabular-nums; }
.wait-count span { font-size: 26px; font-weight: 700; }
.wait-count small { font-size: 19px; color: #9c9ca8; }
.wait-count strong { color: #ff2d4b; letter-spacing: .06em; }
.scr[data-mode="slides"]:not([data-slide-kind="block"]) .slide-foot { padding-right: 250px; }
.wait-opts:has(li:nth-child(5)) { grid-template-columns: 1fr 1fr; }
.wait-opts:has(li:nth-child(5)) li { font-size: 23px; padding: 12px 16px; }

/* body vyplnia výšku snímky; 3 body = 3 stĺpce */
.slide .slide-content--points .b-points { height: 100%; }
.slide .slide-content--points .points-grid { height: 100%; grid-auto-rows: 1fr; }
.slide .slide-content--points .point { display: flex; flex-direction: column; justify-content: center; }
.slide .points-grid:has(> .point:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr) !important; grid-auto-rows: auto; align-content: center; }
.slide .points-grid:has(> .point:nth-child(3):last-child) .point { min-height: 420px; }
.slide .points-grid:has(> .point:only-child), .slide .points-grid:has(> .point:nth-child(2):last-child) { align-content: center; grid-auto-rows: auto; }
.slide .points-grid:has(> .point:nth-child(2):last-child) .point { min-height: 380px; }
.slide table.t { font-size: 26px; }
.slide table.t th { font-size: 17px; padding: 18px 24px; }
.slide table.t td { padding: 22px 24px; }

/* horizontálna 3D časová os na snímkach */
.slide .slide-content--timeline { display: flex; align-items: center; }
.slide .b-timeline { width: 100%; }
.slide .timeline { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 28px; perspective: 1400px; }
.slide .timeline::before { display: none; }
.slide .tl { position: relative; grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 18px; padding: 0; }
.slide .tl::before { content: ""; position: absolute; left: 0; right: -28px; top: 73px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--mc), rgba(255,255,255,.12)); }
.slide .tl:last-child::before { right: 0; }
.slide .tl-date { text-align: left; padding: 0; font-size: 34px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.slide .tl-dot { position: relative; z-index: 1; margin: 0; width: 32px; height: 32px; border-width: 6px; background: #000000; }
.slide .tl--now .tl-dot { box-shadow: 0 0 0 10px var(--accent-soft), 0 0 30px var(--accent); }
.slide .tl-text { padding: 26px 28px; font-size: 24px; line-height: 1.45; border-radius: 22px; background: var(--s-card); border: 1px solid var(--s-line); min-height: 230px; transform: rotateX(12deg); transform-origin: top center; box-shadow: 0 26px 50px rgba(0,0,0,.35); }
.slide .tl--now .tl-text { border-color: var(--accent); box-shadow: 0 26px 50px rgba(0,0,0,.35), inset 0 4px 0 var(--accent); }
.slide .tl--future .tl-text { color: var(--s-ink2); border-style: dashed; }
.slide .tl--future .tl-date { color: var(--s-muted); }

/* 3D vrstvy na snímke: jemnejší sklon kvôli čitateľnosti */
.slide .layers3d { gap: 12px; }
.slide .layer { transform: rotateX(5deg) translateZ(calc((var(--n) - var(--i)) * 3px)); padding: 16px 26px; align-items: center; }
.slide .layer h4 { font-size: 28px; margin: 0 0 4px; }
.slide .layer p { font-size: 21px; margin: 0; }
.sec-blocks > *, .sec-acts > *, .act-slot { scroll-margin-top: 84px; scroll-margin-bottom: 70px; }
.pv-slidepill { top: auto; bottom: 24px; }
@media (max-width: 1050px) { .pv-slidepill { bottom: calc(68px + env(safe-area-inset-bottom)); } }

/* ============================ LIVE demo snímka ============================ */
.slide.slide--b-demo { --mc: #ffa23a; }
.slide .b-demo { height: 100%; padding: 40px 46px; gap: 22px; border-radius: 28px; border-color: rgba(255, 162, 58, .45); background: linear-gradient(135deg, rgba(255,162,58,.13), rgba(16,16,20,.86) 55%); align-content: start; }
.slide .demo-live { font-size: 20px; padding: 10px 22px 10px 18px; gap: 14px; }
.slide .demo-live i { width: 14px; height: 14px; }
.slide .demo-step { font-size: 22px; color: #ffa23a; }
.slide .demo-title { font-size: 54px; line-height: 1.05; }
.slide .demo-path { gap: 12px; font-size: 24px; }
.slide .demo-path span { padding: 10px 18px; border-radius: 14px; background: rgba(255,255,255,.06); border-color: #34343d; }
.slide .demo-path span:last-child { background: #ffa23a; color: #000000; border-color: #ffa23a; }
.slide .demo-path i { font-size: 28px; }
.slide .demo-grid { gap: 26px; grid-template-columns: 1.05fr .95fr; }
.slide .demo-do { gap: 14px; }
.slide .demo-do li { font-size: 23px; padding: 14px 18px 14px 70px; border-radius: 16px; background: rgba(0,0,0,.55); border-color: #26262d; }
.slide .demo-do li::before { width: 40px; height: 40px; left: 16px; top: 12px; border-radius: 11px; font-size: 20px; background: #ffa23a; color: #000000; }
.slide .demo-copy pre { font-size: 18px; max-height: 300px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent); mask-image: linear-gradient(180deg, #000 75%, transparent); }
.slide .demo-copy-head { font-size: 16px; padding: 10px 16px; }
.slide .demo-expect { padding: 18px 22px; border-radius: 18px; }
.slide .demo-expect span { font-size: 16px; }
.slide .demo-expect p { font-size: 21px; }
.slide .demo-files, .slide .demo-fallback { display: none; }
.slide--b-demo .slide-foot::after { content: "▶ ukážka naživo v Copilot Studiu"; order: 2; margin-left: auto; margin-right: 24px; padding: 6px 14px; border-radius: 99px; border: 1px solid rgba(255,162,58,.5); color: #ffa23a; font-weight: 700; font-size: 16px; }
.slide--b-demo .slide-prog { order: 3; }

/* súbory na snímke */
.slide .files-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
.slide .file-card { padding: 18px 22px; border-radius: 18px; background: var(--s-card); border-color: var(--s-line); }
.slide .file-card strong { font-size: 24px; }
.slide .file-card small { font-size: 18px; }
.slide .file-ext { width: 60px; height: 60px; font-size: 15px; border-radius: 16px; background: #ffa23a; color: #000000; }
.slide .b-files [data-labzip] { display: none; }

/* ============================ konzola: pomôcky pre živé demo ============================ */
.pc-film button.is-demo { border-color: #ffa23a; }
.pc-film button.is-demo b { color: #ffa23a; }
.pc-film button.is-demo.is-on { background: #ffa23a; color: #000000; }
.pc-film button.is-demo.is-on b { color: #000000; }
.demo-helper { display: grid; gap: 12px; padding: 16px; border-radius: 18px; border: 1px solid rgba(255,162,58,.5); background: linear-gradient(135deg, rgba(255,162,58,.10), var(--surface) 60%); }
.demo-helper-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.demo-helper-head strong { font-size: 16px; flex: 1; min-width: 160px; }
.demo-helper-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.demo-helper .demo-copy pre { max-height: 220px; }
@media (max-width: 1280px) { .demo-helper-grid { grid-template-columns: 1fr; } }

/* ============================ demo panel (úzke okno) ============================ */
.route-demo { background: var(--bg); }
.dp { display: grid; gap: 12px; padding: 14px; max-width: 560px; margin: 0 auto; }
.dp-top { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.dp-code { font-weight: 800; color: var(--accent); letter-spacing: .08em; font-size: 16px; }
.dp-status { display: inline-flex; gap: 6px; align-items: center; }
.dp-pos { margin-left: auto; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dp-nav { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.dp-nav .btn { min-width: 52px; min-height: 48px; font-size: 20px; }
.dp-now { display: grid; min-width: 0; }
.dp-now strong { font-size: 14.5px; line-height: 1.25; }
.dp-screen { width: 100%; justify-content: space-between; }
.dp-screen button { flex: 1; }
.dp-card { display: grid; gap: 10px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.dp-card h3 { font-size: 18px; line-height: 1.25; }
.dp-card--demo { border-color: rgba(255,162,58,.55); background: linear-gradient(135deg, rgba(255,162,58,.10), var(--surface) 60%); }
.dp-card .demo-copy pre { max-height: 300px; font-size: 12.5px; }
.dp-card .demo-do li { font-size: 13.5px; }
.dp-say ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; }
.dp-next { margin: 0; font-size: 13px; color: var(--muted); }
.dp-donecheck { font-size: 13.5px; font-weight: 650; }
.dp-list, .dp-files { border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; background: var(--surface); }
.dp-list summary, .dp-files summary { cursor: pointer; padding: 10px 0; font-weight: 700; font-size: 13px; color: var(--muted); }
.dp-list ol { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
.dp-list li { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; }
.dp-list li.is-cur { background: rgba(255,162,58,.14); }
.dp-list li.is-done .link-btn { color: var(--muted); text-decoration: line-through; }
.dp-list .link-btn { color: var(--ink); text-decoration: none; text-align: left; font-weight: 600; font-size: 13.5px; display: grid; }
.dp-list .link-btn small { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: #ffa23a; text-transform: uppercase; }
.dp-filelist { display: grid; gap: 6px; margin-bottom: 10px; font-size: 13.5px; }
.dp-files .btn { margin-bottom: 12px; }
.dp-hint { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }

/* ============================ účastník – režim „Snímka“ ============================ */
.pv-modebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.pv-modebar .seg button { padding: 7px 14px; }
.pv-modestat { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ps-mode { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); white-space: nowrap; }
.ps-mode i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.ps-mode.is-live { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-soft); }
.ps-mode.is-live i { background: var(--accent); animation: pulse 1.3s infinite; }
.ps-mode.is-here i { background: var(--ok); }
.ps-pos { font-variant-numeric: tabular-nums; }
.pv.is-slides .pv-section, .pv.is-slides .pv-foot { display: none; }
.pv:not(.is-slides) .pv-ps { display: none; }

.ps { display: grid; gap: 12px; }
.ps-wrap { position: relative; }
.ps-stage { box-shadow: 0 18px 50px rgba(0, 0, 0, .28); cursor: zoom-in; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ps-expand { position: absolute; right: 10px; top: 10px; z-index: 3; width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.6); color: #fff; font-size: 17px; backdrop-filter: blur(6px); }
.ps-ui { display: none; }
.ps-wrap.is-max { position: fixed; inset: 0; z-index: 300; background: #000; display: grid; place-items: center; }
.ps-wrap.is-max .ps-stage { width: min(100vw, calc(100vh * 16 / 9)); width: min(100vw, calc(100dvh * 16 / 9)); border-radius: 0; box-shadow: none; cursor: default; touch-action: none; }
.ps-wrap.is-max.is-rot .ps-stage { position: absolute; left: 50%; top: 50%; width: min(100vh, calc(100vw * 16 / 9)); width: min(100dvh, calc(100vw * 16 / 9)); transform: translate(-50%, -50%) rotate(90deg); }
.ps-wrap.is-max .ps-expand { display: none; }
.ps-wrap.is-max .ps-ui { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 99px; background: rgba(0,0,0,.8); border: 1px solid rgba(255,255,255,.16); color: #fff; opacity: 0; transition: opacity .25s; backdrop-filter: blur(8px); }
.ps-wrap.is-max.show-ui .ps-ui, .ps-wrap.is-max .ps-ui:hover { opacity: 1; }
.ps-ui button { border: 0; background: rgba(255,255,255,.12); color: #fff; min-width: 40px; height: 40px; border-radius: 99px; font-size: 18px; font-weight: 700; padding: 0 12px; }
.ps-ui .ps-ui-live { background: var(--accent); font-size: 13px; }
.ps-ui span { font-size: 13px; font-weight: 700; min-width: 54px; text-align: center; font-variant-numeric: tabular-nums; }
body.ps-maxed { overflow: hidden; }

.ps-nav { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 10px; align-items: center; }
.ps-arrow { height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 26px; font-weight: 700; line-height: 1; }
.ps-arrow:active { transform: scale(.95); }
.ps-dots { display: flex; gap: 4px; align-items: center; min-width: 0; }
.ps-dot { flex: 1; min-width: 0; border: 0; background: none; padding: 14px 0; position: relative; cursor: pointer; }
.ps-dot i { display: block; height: 6px; border-radius: 99px; background: var(--line-strong); transition: background .2s, height .2s; }
.ps-dot.is-act i { background: color-mix(in srgb, var(--violet) 60%, var(--line-strong)); }
.ps-dot.is-demo i { background: color-mix(in srgb, var(--c4) 65%, var(--line-strong)); }
.ps-dot.is-cur i { background: var(--ink); height: 10px; }
.ps-dot.is-live::after { content: ""; position: absolute; left: 50%; top: 1px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); animation: pulse 1.4s infinite; }
.ps-dot.has-note::before { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--warn); }

.ps-card { min-width: 0; }
.ps-card-in.is-in { animation: psIn .35s var(--ease) both; }
.ps-card-in.is-in-back { animation: psInBack .35s var(--ease) both; }
@keyframes psIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes psInBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.ps.is-collapsed .ps-card { display: none; }
.ps-readmore { justify-self: center; border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 700; padding: 4px 10px; cursor: pointer; }
.ps-extra { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.ps-notebox { display: grid; gap: 6px; }
.ps-notebox .textarea { min-height: 96px; }
@media (max-width: 899px) { .ps-readmore { display: none; } .ps-extra [data-ps-max-btn] { display: none; } }
@media (max-width: 700px) { .ps.is-act .ps-wrap { display: none; } }

.ps-return { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 75; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 18px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-3); max-width: calc(100vw - 24px); animation: psPop .3s var(--ease); }
.ps-return span { display: grid; min-width: 0; }
.ps-return b { font-size: 13.5px; white-space: nowrap; }
.ps-return small { font-size: 12px; opacity: .72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.ps-return button { border: 0; background: var(--accent); color: #fff; border-radius: 12px; padding: 10px 14px; font-weight: 800; font-size: 13px; white-space: nowrap; cursor: pointer; }
.ps-return.is-act { background: var(--accent); color: #fff; }
.ps-return.is-act button { background: #fff; color: var(--accent); }
@keyframes psPop { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translateX(-50%); } }
@media (max-width: 1050px) { .ps-return { bottom: calc(66px + env(safe-area-inset-bottom)); } }

/* čitateľná karta snímky (účastník aj pás na plátne) */
.sc { display: grid; gap: 14px; min-width: 0; }
.sc-head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sc-k { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-k b { color: var(--mc); margin-right: 6px; }
.sc-type { padding: 3px 9px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); letter-spacing: .06em; white-space: nowrap; }
.sc--act .sc-type, .sc--b-demo .sc-type { display: none; }
.sc-n { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.sc-h { font-size: clamp(22px, 5.4vw, 30px); line-height: 1.15; letter-spacing: -.02em; margin: 0; }
.sc-h small { font-size: .55em; color: var(--muted); font-weight: 650; letter-spacing: 0; }
.sc-h--ctx { font-size: clamp(18px, 4.4vw, 24px); color: var(--ink-2); }
.sc-body { min-width: 0; }
.sc-body > * { margin: 0 !important; }
.sc-title h2 { font-size: clamp(28px, 7.4vw, 44px); line-height: 1.06; letter-spacing: -.035em; margin: 0 0 12px; }
.sc-q { font-size: clamp(18px, 4.6vw, 22px); font-weight: 650; color: var(--mc); margin: 0 0 10px; line-height: 1.3; }
.sc-lead { color: var(--ink-2); margin: 0; line-height: 1.6; }
.sc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sc-meta span { padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 650; color: var(--muted); }
.sc-break { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 26px 10px; }
.sc-break > span:first-child { font-size: 56px; }
.sc-break h2 { margin: 0; font-size: 30px; }
.sc-break p { margin: 0; color: var(--ink-2); }

/* ============================ plátno ako pás vedľa Copilot Studia ============================ */
.rail { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; padding: clamp(18px, 3.2vw, 34px) clamp(16px, 2.8vw, 30px) 16px; color: #f4f4f6; }
.rail-card { min-height: 0; overflow: hidden; font-size: 18px; }
.rail-in.is-in { animation: psIn .4s var(--ease) both; }
.rail-in.is-in-back { animation: psInBack .4s var(--ease) both; }
.rail .sc { gap: 18px; }
.rail .sc-head { font-size: 14px; }
.rail .sc-type { background: rgba(255,255,255,.08); }
.rail .sc-h { font-size: clamp(26px, 4.4vw, 40px); }
.rail .sc-title h2 { font-size: clamp(34px, 6.4vw, 58px); }
.rail .sc-q { font-size: clamp(20px, 3.4vw, 28px); }
.rail .sc-lead { font-size: 19px; }
.rail .b-demo { padding: 22px; gap: 16px; border-color: rgba(255,162,58,.5); background: linear-gradient(160deg, rgba(255,162,58,.16), rgba(16,16,20,.92) 60%); }
.rail .demo-live { font-size: 14px; padding: 7px 14px 7px 12px; }
.rail .demo-step { font-size: 15px; color: #ffa23a; }
.rail .demo-title { font-size: clamp(26px, 4.2vw, 40px); line-height: 1.1; }
.rail .demo-path { font-size: 17px; gap: 8px; }
.rail .demo-path span { padding: 7px 12px; }
.rail .demo-path span:last-child { background: #ffa23a; color: #000000; border-color: #ffa23a; }
.rail .demo-grid { grid-template-columns: 1fr; gap: 14px; }
.rail .demo-do li { font-size: 18px; padding: 11px 14px 11px 54px; }
.rail .demo-do li::before { width: 30px; height: 30px; left: 12px; top: 10px; font-size: 15px; background: #ffa23a; color: #000000; }
.rail .demo-copy pre { font-size: 14px; max-height: 24vh; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.rail .demo-expect p { font-size: 17px; }
.rail .demo-files, .rail .demo-fallback, .rail .b-copy, .rail [data-labzip] { display: none; }
.rail .wait-opts, .rail .wait-opts:has(li:nth-child(5)) { grid-template-columns: 1fr; }
.rail .wait-opts li { font-size: 20px; padding: 10px 14px; grid-template-columns: 40px 1fr; }
.rail .wait-opts li b { width: 40px; height: 40px; font-size: 18px; }
.rail .wait-q { font-size: 26px; }
.rail-foot { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); color: #9c9ca8; font-size: 13px; }
.rail-foot .qr { width: 62px; height: 62px; padding: 4px; background: #fff; border-radius: 8px; flex: none; }
.rail-foot .qr svg { width: 100%; height: 100%; display: block; }
.rail-foot small { display: block; }
.rail-foot b { display: block; color: #fff; font-size: 20px; letter-spacing: .08em; }
.rail-prog { flex: 1; height: 5px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.rail-prog i { display: block; height: 100%; width: 0; background: var(--mc); transition: width .4s var(--ease); }
.scr[data-layout="rail"] .scr-corner, .scr[data-layout="rail"] .scr-fs { display: none; }
.scr[data-layout="rail"] .scr-bg { opacity: .25; }

/* ============================ konzola – zdieľaný monitor (Teams) ============================ */
.pc-teams { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 8px 10px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--c4) 45%, var(--line)); background: color-mix(in srgb, var(--c4) 6%, transparent); }
.pc-teams .seg button { font-size: 12px; padding: 5px 10px; }
.pc-teams.is-nowin .seg { opacity: .55; }
.pc-teams small { font-size: 12px; }
.tg { display: grid; gap: 18px; }
.tg-map { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; }
.tg-mon { display: grid; gap: 8px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13px; }
.tg-mon > small { color: var(--muted); }
.tg-mon--shared { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: 0 0 0 3px var(--accent-soft); }
.tg-screen { display: flex; gap: 6px; height: 140px; min-width: 0; padding: 6px; border-radius: 10px; background: #000000; }
.tg-screen span { display: grid; place-content: center; text-align: center; gap: 4px; border-radius: 6px; font-weight: 800; color: #fff; font-size: 13px; padding: 4px; }
.tg-screen small { font-weight: 500; font-size: 11px; opacity: .8; }
.tg-cs { flex: 7; background: linear-gradient(135deg, #3b2b8f, #6d4bd8); }
.tg-rail { flex: 3; background: linear-gradient(160deg, #a35a00, #121215); border: 1px solid #ffa23a; }
.tg-console { flex: 1; background: #1b1b20; }
.tg-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.55; }
.tg-actions { flex-wrap: wrap; }
.tg-tips { margin: 0; font-size: 13px; }
@media (max-width: 760px) { .tg-map { grid-template-columns: 1fr; } }

/* ============================ obrázky (blok img) ============================ */
.b-img { margin: 0; display: grid; gap: 10px; min-width: 0; }
.b-img .img-body { display: grid; gap: 16px; min-width: 0; }
.b-img--side .img-body { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; }
.b-img .img-wrap { display: block; min-width: 0; border-radius: 16px; overflow: hidden; }
.b-img img { display: block; width: 100%; height: auto; }
.b-img figcaption { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.img-side { display: grid; gap: 10px; }
.img-pt h4 { margin: 0 0 4px; }
.img-pt p { margin: 0; color: var(--ink-2); }
.slide .slide-content--img { display: flex; }
.slide .b-img { flex: 1; height: 100%; grid-template-rows: minmax(0, 1fr) auto; }
.slide .b-img .img-body { min-height: 0; height: 100%; }
.slide .b-img .img-wrap { height: 100%; display: flex; align-items: center; justify-content: center; border-radius: 22px; }
.slide .b-img img { width: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.slide .b-img figcaption { font-size: 21px; color: var(--s-muted); }
.slide .b-img figcaption .btn { display: none; }
.rail .b-img figcaption .btn { display: none; }
/* SQL a code runner: otázka, brána, prompt */
.sql-ask:empty { display: none; }
.sql-ask { display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; background: var(--surface-3); }
.sql-guard { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13px; color: var(--ok); }
.sql-guard-badge { font-weight: 800; padding: 3px 10px; border-radius: 99px; background: var(--ok-soft); }
.sqlplay [data-presets] .is-on { background: var(--ink); color: var(--bg); }
.cr-prompt { margin: 8px 0; }

/* ============================ viac 3D: obsah prilieta z hĺbky ============================ */
.slide-inner:is(.is-enter, .is-enter-back) :is(.point, .cmp, .flow-node, ol.steps > li, .layer, .tl, .file-card, .demo-do > li, .wait-opts > li, .b-img .img-wrap, .b-kia, .b-case, .b-callout, .table-wrap) {
  animation: depthIn .6s var(--ease) both;
}
.slide-inner :is(.point, .cmp, .flow-node, ol.steps > li, .layer, .tl, .file-card, .demo-do > li, .wait-opts > li):nth-child(2) { animation-delay: .04s; }
.slide-inner :is(.point, .cmp, .flow-node, ol.steps > li, .layer, .tl, .file-card, .demo-do > li, .wait-opts > li):nth-child(3) { animation-delay: .08s; }
.slide-inner :is(.point, .cmp, .flow-node, ol.steps > li, .layer, .tl, .file-card, .demo-do > li, .wait-opts > li):nth-child(4) { animation-delay: .12s; }
.slide-inner :is(.point, .cmp, .flow-node, ol.steps > li, .layer, .tl, .file-card, .demo-do > li, .wait-opts > li):nth-child(5) { animation-delay: .16s; }
.slide-inner :is(.point, .cmp, .flow-node, ol.steps > li, .layer, .tl, .file-card, .demo-do > li, .wait-opts > li):nth-child(n+6) { animation-delay: .2s; }
@keyframes depthIn { from { opacity: 0; transform: perspective(1200px) translate3d(0, 46px, -260px) rotateX(24deg); } }
.slide .point, .slide .cmp, .slide .flow-node, .slide ol.steps li, .slide .b-callout, .slide .b-kia, .slide .b-case { box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06); }
/* sklenené karty: jemný prechod a svetlá horná hrana */
.slide .point, .slide .flow-node, .slide ol.steps li { background: linear-gradient(165deg, rgba(255,255,255,.055), rgba(255,255,255,.012) 55%), #0d0d10; border-color: rgba(255,255,255,.08); }
.slide .point-n { display: inline-flex; align-items: center; gap: 10px; }
.slide .point-n::after { content: ""; width: 34px; height: 2px; border-radius: 2px; background: var(--mc); opacity: .7; }

/* reálne fotky: 3D náklon s hĺbkou */
.b-img--photo .img-wrap { border-radius: 18px; box-shadow: 0 26px 60px -18px rgba(0,0,0,.6); }
.slide .b-img--photo .img-wrap { transform: perspective(1800px) rotateY(-7deg) rotateX(2deg); border-radius: 26px; box-shadow: 40px 50px 90px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.08); }
.slide .b-img--photo.b-img--side .img-wrap { transform: perspective(1800px) rotateY(9deg); }
.slide .b-img--photo img { object-fit: cover; height: 100%; width: 100%; max-height: none; }
.img-credit { font-size: 11.5px; opacity: .75; }
.slide .img-credit { font-size: 14px; }

/* ============================ Teams: hlasovanie a návrat ============================ */
.ps.is-act .ps-card { order: -2; }
.ps.is-act .ps-nav { order: -1; }
.ps.is-act .ps-wrap { max-width: 560px; width: 100%; justify-self: center; opacity: .9; }
.ps-done { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; padding: 14px 16px; border-radius: 16px; background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 50%, transparent); animation: psPop .35s var(--ease); }
.ps-done > span { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #000000; font-size: 22px; font-weight: 800; }
.ps-done strong { display: block; font-size: 16px; }
.ps-done small { display: block; color: var(--ink-2); font-size: 13.5px; margin-top: 2px; }
.scr-vote { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 18px; padding: 12px 26px; border-radius: 99px; background: rgba(0,0,0,.92); border: 2px solid var(--mc); box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 30px color-mix(in srgb, var(--mc) 35%, transparent); font-size: clamp(16px, 1.4vw, 26px); color: #f4f4f6; white-space: nowrap; }
.scr-vote b { color: var(--mc); letter-spacing: .02em; }
.scr-vote-url { font-weight: 700; }
.scr-vote-code { color: #9c9ca8; }
.scr-vote-code strong { color: #fff; letter-spacing: .08em; }
.scr-vote-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--mc); animation: pulse 1.2s infinite; }
.slide .b-img--side .img-body { gap: 48px; }
.slide .img-side { gap: 26px; align-content: center; }
.slide .img-pt h4::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 4px; background: var(--mc); margin-right: 14px; vertical-align: 4px; box-shadow: 0 0 14px var(--mc); }
.slide .img-pt h4 { font-size: 30px; line-height: 1.15; margin-bottom: 8px; }
.slide .img-pt p { font-size: 23px; line-height: 1.45; color: var(--s-ink2); }


/* ============================ Živé snímky – pohyb na plátne a v náhľade lektora ============================ */
/* svetelné škvrny vo farbe modulu (radiálne prechody – lacné na GPU, pohybuje sa len transform) */
.slide-aura { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.slide-aura i { position: absolute; border-radius: 50%; will-change: transform; }
.slide-aura i:nth-child(1) { width: 1200px; height: 1200px; left: 52%; top: -62%; background: radial-gradient(closest-side, color-mix(in srgb, var(--mc) 34%, transparent), transparent); }
.slide-aura i:nth-child(2) { width: 950px; height: 950px; left: -24%; top: 40%; background: radial-gradient(closest-side, rgba(255, 255, 255, .045), transparent); }
.slide-aura i:nth-child(3) { width: 820px; height: 820px; left: 26%; top: 58%; background: radial-gradient(closest-side, color-mix(in srgb, var(--mc) 18%, transparent), transparent); }
.slide--live .slide-aura i:nth-child(1) { animation: auraA 17s ease-in-out infinite alternate; }
.slide--live .slide-aura i:nth-child(2) { animation: auraB 23s ease-in-out infinite alternate; }
.slide--live .slide-aura i:nth-child(3) { animation: auraC 29s ease-in-out infinite alternate; }
@keyframes auraA { to { transform: translate(-300px, 200px) scale(1.25); } }
@keyframes auraB { to { transform: translate(360px, -170px) scale(.8); } }
@keyframes auraC { to { transform: translate(-420px, -140px) scale(1.35); } }

/* podlaha: mriežka plynie k divákovi */
.slide-floor i { position: absolute; inset: -80px 0 0; background-size: 80px 80px;
  background-image: linear-gradient(color-mix(in srgb, var(--mc) 34%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--mc) 34%, transparent) 1px, transparent 1px); }
.slide--live .slide-floor i { animation: floorRun 2.6s linear infinite; will-change: transform; }
@keyframes floorRun { to { transform: translateY(80px); } }
.slide--live::after { animation: dotsDrift 40s linear infinite; }
@keyframes dotsDrift { to { background-position: 34px 68px; } }

/* filmové zrno */
.slide-grain { position: absolute; inset: -40%; z-index: 3; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"); }

@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-5%, 3%); } 50% { transform: translate(4%, -4%); } 75% { transform: translate(-3%, -2%); } 100% { transform: translate(2%, 5%); } }

/* svetelný prechod cez snímku pri príchode */
.slide-sweep { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.slide-sweep::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: -45%; width: 40%; opacity: 0;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.05) 40%, rgba(255,255,255,.11) 50%, rgba(255,255,255,.05) 60%, transparent); transform: skewX(-14deg); }
.slide--live .slide-inner:is(.is-enter, .is-enter-back) ~ .slide-sweep::before { animation: sweep 1.5s .3s cubic-bezier(.5, 0, .2, 1) both; }
@keyframes sweep { from { opacity: 1; transform: translateX(0) skewX(-14deg); } to { opacity: 1; transform: translateX(420%) skewX(-14deg); } }

/* kinetická typografia: slová nadpisu sa vysunú zdola */
.slide--live .kw { display: inline-block; overflow: hidden; vertical-align: top; padding: .16em .03em .12em; margin: -.16em -.03em -.12em; }
.slide--live .kw > span { display: inline-block; animation: wordUp .7s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(.05s + var(--i) * 32ms); }
@keyframes wordUp { from { transform: translateY(118%) rotate(5deg); } }
.slide--live .slide-top { animation: topIn .9s var(--ease) both; }
@keyframes topIn { from { opacity: 0; letter-spacing: .42em; } }

/* postup v module – lesk */
.slide-prog i { position: relative; overflow: hidden; }
.slide--live .slide-prog i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); transform: translateX(-100%); animation: progShine 3.2s 1.2s ease-in-out infinite; }
@keyframes progShine { 55%, 100% { transform: translateX(100%); } }

/* titulná snímka a prestávka: obrysový text plynie za obsahom, fotka sa pomaly približuje */
.slide-marquee { position: absolute; left: 0; right: 0; bottom: 118px; overflow: hidden; pointer-events: none; }
.slide-marquee > div { display: flex; width: max-content; }
.slide-marquee span { font: 800 210px/1 var(--font-display); letter-spacing: -.045em; white-space: nowrap; padding-right: 90px; color: rgba(255,255,255,.045); }
.slide--live .slide-marquee > div { animation: marquee 70s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.slide--break .slide-marquee { bottom: auto; top: 40px; }
.slide--live .slide-photo { animation: kenBurns 24s ease-in-out infinite alternate; transform-origin: 70% 40%; }
@keyframes kenBurns { from { transform: scale(1.02); } to { transform: scale(1.15) translate(-1.5%, 1%); } }
.slide--live .st-day-bar i { animation: segIn .7s var(--ease) both; animation-delay: calc(.5s + var(--k) * 40ms); transform-origin: left center; }
.slide--live .st-day-bar i.is-cur { animation: segIn .7s var(--ease) both, curPulse 1.6s ease-in-out infinite alternate; animation-delay: calc(.5s + var(--k) * 40ms), 1.6s; }
@keyframes segIn { from { transform: scaleX(0); opacity: 0; } }
@keyframes curPulse { from { box-shadow: 0 0 10px var(--mc); } to { box-shadow: 0 0 34px var(--mc), 0 0 4px #fff; } }
.slide--live .st-meta span { animation: depthIn .8s var(--ease) both; }
.slide--live .st-meta span:nth-child(2) { animation-delay: .08s; }
.slide--live .st-meta span:nth-child(3) { animation-delay: .16s; }
.slide--live .st-cube { animation: cubeIn .9s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes cubeIn { from { opacity: 0; transform: translate3d(120px, 40px, -400px) rotateY(-40deg); } }

/* prestávka: živý odpočet */
.sb-count { font: 800 128px/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 0 70px color-mix(in srgb, var(--mc) 70%, transparent); }
.sb-count:empty, .sb-count[hidden] { display: none; }
.sb-count.is-over { color: var(--mc); }
.slide--live .sb-ico { animation: icoBob 3.2s ease-in-out infinite alternate; }
@keyframes icoBob { from { transform: translateY(-6px) rotate(-4deg); } to { transform: translateY(8px) rotate(4deg); } }

/* obsah: kľúčové posolstvo jemne dýcha, fotka sa vznáša */
.slide--live .slide-inner:is(.is-enter, .is-enter-back) .b-callout { animation: depthIn .85s var(--ease) both, calloutGlow 3.6s 1.2s ease-in-out infinite alternate; }
@keyframes calloutGlow { to { box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), 0 0 60px -6px color-mix(in srgb, var(--mc) 38%, transparent), inset 0 1px 0 rgba(255,255,255,.08); } }
.slide--live .slide-inner:is(.is-enter, .is-enter-back) .b-img--photo .img-wrap { animation: depthIn .85s var(--ease) both, photoFloat 9s 1s ease-in-out infinite alternate; }
@keyframes photoFloat { from { transform: perspective(1800px) rotateY(-7deg) rotateX(2deg); } to { transform: perspective(1800px) rotateY(-2deg) rotateX(0deg) translateY(-10px); } }
.slide--live .slide-inner:is(.is-enter, .is-enter-back) .b-img--photo.b-img--side .img-wrap { animation-name: depthIn, photoFloatR; }
@keyframes photoFloatR { from { transform: perspective(1800px) rotateY(9deg); } to { transform: perspective(1800px) rotateY(3deg) translateY(-10px); } }

@media (prefers-reduced-motion: reduce) {
  .slide--live *, .slide--live *::before, .slide--live *::after, .slide--live::after { animation: none !important; }
}

/* konzola lektora: náhľad snímky bez neustáleho pohybu pozadia (plátno beží na tom istom počítači) */
.pc .slide--live .slide-aura i, .pc .slide--live .slide-floor i, .pc .slide--live .slide-marquee > div,
.pc .slide--live .slide-photo, .pc .slide--live::after, .pc .slide--live .st-day-bar i.is-cur,
.pc .slide--live .slide-prog i::after, .pc .cube-glow, .pc .cube-floor { animation: none !important; }
