/* Studio · videozid — tablet PWA (izgled preuzet iz tablet aplikacije Sveučilišta) */
:root{
  --orange:#EE7623;
  --red:#DB3F45;
  --magenta:#C8175D;
  --green:#2FD36B;
  --stop:#FF6B70;
  --mute-d:#A4A4AC;
  --mute-l:#56565D;
  --card:#121215;
  --line:#26262C;
  --grad:linear-gradient(100deg,var(--orange) 0%,var(--red) 52%,var(--magenta) 100%);
  --rail:96px;
  --ease:cubic-bezier(.2,.8,.2,1);
  --font:"Urbanist",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:#000;color:#fff;font-family:var(--font);font-size:18px;line-height:1.45;
  overflow:hidden;overscroll-behavior:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;
  touch-action:manipulation;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
button{font:inherit;color:inherit;cursor:pointer;-webkit-appearance:none;appearance:none}
img{display:block;max-width:100%;-webkit-user-drag:none}
h1,h2,h3,p,ul,ol{margin:0}
ul,ol{padding:0;list-style:none}
:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
.ic{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.gt{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}

/* ---------------- okvir ---------------- */
/* Fiksno vodoravno platno 1280×800 (16:10, kao 10" FHD tablet) koje se samo skalira na ekran. */
#app{position:fixed;left:50%;top:50%;width:1280px;height:800px;transform:translate(-50%,-50%) scale(var(--s,1));transform-origin:50% 50%;
  display:grid;grid-template-columns:var(--rail) minmax(0,1fr);background:#000;overflow:hidden;overflow:clip}
#app.norail{grid-template-columns:minmax(0,1fr)}
#app.norail .rail{display:none}
.stage{position:relative;overflow:hidden;overflow:clip;min-width:0;touch-action:pan-y}
.screen{position:absolute;inset:0;display:none;flex-direction:column}
.screen.on{display:flex}

/* bočna traka */
.rail{position:relative;z-index:20;display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 0 12px;background:#000;border-right:1px solid #1e1e22}
.rail-logo{border:0;background:none;padding:6px;margin-bottom:4px;border-radius:14px}
.rail-logo img{width:50px;height:auto}
.rail-items{display:flex;flex-direction:column;gap:3px;flex:1;justify-content:center}
.rb{position:relative;width:80px;min-height:66px;border:0;border-radius:14px;background:none;color:var(--mute-d);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  font-size:12px;font-weight:800;line-height:1.1;text-align:center;padding:6px 4px;transition:background .25s,color .25s}
.rb .ic{width:26px;height:26px}
.rb-n{position:absolute;top:5px;right:9px;font-size:11px;font-weight:900;color:#5e5e67}
.rb.on{color:#fff;background:var(--grad)}
.rb.on .rb-n{color:#fff}
.rb-sep{display:block;width:44px;height:1px;background:#2a2a30;margin:8px auto}

/* ---------------- MIROVANJE ---------------- */
.standby{background:#000;align-items:center;justify-content:space-between;padding:54px 0 46px;overflow:hidden;cursor:pointer}
.sb-glow{position:absolute;inset:-20%;pointer-events:none;
  background:radial-gradient(40% 45% at 22% 30%,rgba(238,118,35,.30),transparent 70%),radial-gradient(45% 50% at 80% 72%,rgba(200,23,93,.34),transparent 70%);
  animation:drift 18s ease-in-out infinite alternate}
@keyframes drift{to{transform:translate3d(4%,-3%,0) scale(1.06)}}
.sb-logo{position:relative;height:72px;width:auto}
.sb-center{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center}
.sb-k{font-size:17px;font-weight:900;letter-spacing:.2em;text-transform:uppercase;color:var(--orange)}
.sb-t{margin-top:10px;font-size:84px;font-weight:900;line-height:1;letter-spacing:-.035em;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;padding-bottom:.08em}
.sb-s{margin-top:10px;font-size:23px;font-weight:600;color:#cfcfd6}
.sb-flow{margin-top:56px;display:flex;flex-direction:column;align-items:center;gap:16px}
.sb-fl{font-size:14px;font-weight:900;letter-spacing:.18em;text-transform:uppercase;color:var(--mute-d)}
.sb-chips{display:flex;align-items:center;gap:12px}
.sb-ar{width:26px;height:26px;color:#5a5a63}
.sb-chip{position:relative;display:flex;align-items:center;gap:12px;padding:12px 24px 12px 12px;border-radius:999px;background:#141417;border:1px solid #2a2a30;font-size:22px;font-weight:800;white-space:nowrap;overflow:hidden;isolation:isolate}
.sb-chip b{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#26262c;font-size:17px;font-weight:900}
.sb-chip::after{content:"";position:absolute;inset:0;z-index:-1;background:var(--grad);opacity:0;animation:chip 6s infinite;animation-delay:calc(var(--i) * 1.1s)}
@keyframes chip{0%{opacity:0}5%,20%{opacity:1}28%,100%{opacity:0}}
.sb-cta{position:relative;display:flex;align-items:center;gap:14px;background:#fff;color:#000;font-weight:800;font-size:20px;padding:14px 28px 14px 18px;border-radius:999px;white-space:nowrap}
.pulse{position:relative;width:16px;height:16px;border-radius:50%;background:var(--grad)}
.pulse::after{content:"";position:absolute;inset:-6px;border-radius:50%;border:3px solid var(--magenta);animation:ping 1.6s ease-out infinite}
@keyframes ping{from{transform:scale(.6);opacity:1}to{transform:scale(2);opacity:0}}

/* ---------------- POČETNA ---------------- */
.home.on{display:grid;grid-template-columns:500px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);column-gap:28px;padding:0 44px 34px}
.hm-top{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;padding:26px 0 24px}
.hm-top img{height:62px;width:auto}
.hm-hello{font-size:15px;color:var(--orange);font-weight:900;letter-spacing:.16em;text-transform:uppercase;text-align:right}
.hm-hello b{display:block;color:#fff;font-size:34px;font-weight:900;letter-spacing:-.02em;line-height:1.1;text-transform:none}
.hm-left{display:flex;flex-direction:column;gap:14px;min-height:0}
.hm-start{position:relative;flex:1;display:flex;flex-direction:column;justify-content:space-between;gap:18px;border:0;border-radius:8px;background:var(--grad);color:#fff;text-align:left;padding:28px 28px 24px;overflow:hidden;transition:transform .2s var(--ease)}
.hm-start::after{content:"";position:absolute;right:-60px;top:-60px;width:260px;height:260px;border-radius:50%;border:40px solid rgba(255,255,255,.12)}
.hm-start:active{transform:scale(.98)}
.hm-play{width:80px;height:80px;border-radius:50%;background:#fff;color:#000;display:grid;place-items:center}
.hm-play .ic{width:38px;height:38px;fill:#000;stroke-width:1.5;margin-left:5px}
.hm-st-t b{display:block;font-size:48px;font-weight:900;line-height:1;letter-spacing:-.03em}
.hm-st-t small{display:block;margin-top:10px;font-size:19px;font-weight:700;opacity:.95;line-height:1.3}
.hm-st-chips{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hm-st-chips i{width:30px;height:30px;border-radius:50%;background:rgba(0,0,0,.25);display:grid;place-items:center;font-style:normal;font-weight:900;font-size:15px}
.hm-st-chips em{font-style:normal;font-weight:800;font-size:18px;margin-right:2px}
.hm-st-chips span{display:grid;place-items:center;opacity:.8}
.hm-st-chips span .ic{width:18px;height:18px}
.hm-stop{display:flex;align-items:center;gap:14px;padding:14px 18px;border:2px solid var(--red);border-radius:8px;background:rgba(219,63,69,.1)}
.hm-stop .ic{width:32px;height:32px;color:var(--stop)}
.hm-stop p{font-size:16px;font-weight:600;color:#e4e4ea;line-height:1.3}
.hm-stop b{display:block;font-size:18px;font-weight:900;color:var(--stop);letter-spacing:.01em}
.hm-mini{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.hm-m{display:flex;align-items:center;gap:12px;border:0;border-radius:8px;background:var(--card);color:#fff;text-align:left;padding:16px;min-width:0}
.hm-m .ic{width:30px;height:30px;color:var(--orange)}
.hm-m b{display:block;font-size:20px;font-weight:800;line-height:1.1}
.hm-m small{display:block;font-size:14px;color:var(--mute-d);font-weight:600;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-m span{min-width:0}
.hm-m:active,.hm-card:active{transform:scale(.97);background:#1b1b20}
.hm-right{display:flex;flex-direction:column;min-height:0}
.hm-gl{font-size:14px;font-weight:900;letter-spacing:.16em;text-transform:uppercase;color:var(--mute-d);margin:0 0 10px}
.hm-gl:not(:first-child){margin-top:22px}
.hm-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.hm-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-height:0;border:0;border-radius:8px;background:var(--card);color:#fff;text-align:left;padding:18px 18px 16px 22px;overflow:hidden;transition:transform .2s var(--ease)}
.hm-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--grad)}
.hm-n{font-size:38px;font-weight:900;line-height:1;letter-spacing:-.03em;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.hm-ic{position:absolute;right:16px;top:18px;width:30px;height:30px;color:#5c5c66}
.hm-card b{display:block;margin-top:18px;font-size:21px;font-weight:800;line-height:1.15;letter-spacing:-.01em}
.hm-card small{display:block;margin-top:8px;font-size:14.5px;font-weight:600;color:var(--mute-d);line-height:1.32}
.hm-cnt{margin-top:auto;padding-top:10px;font-style:normal;font-size:13px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;color:var(--orange)}
.hm-temp{margin-top:14px;font-size:14px;font-weight:600;color:#6c6c75}
.home.enter .hm-card,.home.enter .hm-m,.home.enter .hm-stop{animation:hm-in .55s var(--ease) both;animation-delay:calc(var(--i,3) * 50ms + 330ms)}
.home.enter .hm-start{animation:hm-in .55s var(--ease) both;animation-delay:.3s}
@keyframes hm-in{from{opacity:0;transform:translateY(22px)}}

/* ---------------- TEMA (vodič) ---------------- */
.topic,.page{padding:28px 40px 24px}
.t-head{display:flex;align-items:center;gap:24px;min-height:104px}
.t-num{width:96px;flex:none;font-size:70px;font-weight:900;line-height:1;letter-spacing:-.04em;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;padding-bottom:.06em}
.page .t-num{display:grid;place-items:center;width:88px;height:88px;border-radius:50%;background:var(--grad);color:#fff;-webkit-background-clip:border-box;background-clip:border-box;padding:0}
.page .t-num .ic{width:42px;height:42px}
.t-k{font-size:13px;font-weight:900;letter-spacing:.16em;text-transform:uppercase;color:var(--orange)}
.t-ttl h1{margin-top:4px;font-size:42px;font-weight:900;line-height:1.05;letter-spacing:-.025em}
.t-lead{margin-top:6px;font-size:18px;font-weight:500;color:#c9c9d0;max-width:62ch}
.t-main{flex:1;min-height:0;display:grid;grid-template-columns:470px minmax(0,1fr);gap:30px;margin-top:20px}

/* koraci */
.steps{display:flex;flex-direction:column;gap:10px;min-height:0}
.stp{position:relative;width:100%;display:flex;align-items:flex-start;gap:16px;border:0;border-radius:8px;background:#111114;color:#c4c4cc;text-align:left;padding:14px 18px 14px 14px;overflow:hidden;
  transition:background .3s,color .3s,transform .2s var(--ease)}
.stp::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--grad);opacity:0;transition:opacity .3s}
.stp-n{position:relative;width:40px;height:40px;flex:none;border-radius:50%;border:2px solid #3a3a42;display:grid;place-items:center;font-size:18px;font-weight:900;transition:background .3s,border-color .3s,color .3s}
.stp-n i{font-style:normal}
.stp-n .ic{position:absolute;width:22px;height:22px;opacity:0;stroke-width:3}
.stp-n .stp-i{stroke-width:2.4}
.stp.info .stp-n i{opacity:0}
.stp.info .stp-n .stp-i{opacity:1}
.stp-b{flex:1;min-width:0;padding-top:6px}
.stp-b b{display:block;font-size:21px;font-weight:800;line-height:1.2}
.stp-d{display:block;max-height:0;opacity:0;overflow:hidden;font-size:18px;font-weight:500;line-height:1.38;transition:max-height .45s var(--ease),opacity .3s,margin .3s}
.stp.on{background:#fff;color:#000;transform:translateX(6px)}
.stp.on::before{opacity:1}
.stp.on .stp-n{background:var(--grad);border-color:transparent;color:#fff}
.stp.on .stp-d{max-height:150px;opacity:1;margin-top:8px;color:#36363d}
.stp.done{color:#7c7c86}
.stp.done .stp-n{border-color:transparent;background:#1f1f25;color:var(--orange)}
.stp.done .stp-n i,.stp.done .stp-n .stp-i{opacity:0}
.stp.done .stp-n .ic:not(.stp-i){opacity:1}
.stp:active{transform:scale(.98)}

/* shema + napomena */
.t-side{display:flex;flex-direction:column;gap:14px;min-height:0}
.fig-wrap{position:relative;flex:1;min-height:0;display:grid;place-items:center;padding:10px 12px 26px;border-radius:10px;background:#0a0a0c;border:1px solid #1d1d22}
.fig{width:100%;height:100%;display:block;overflow:visible}
.fig-cap{position:absolute;left:16px;bottom:9px;font-size:11.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#55555e}
.note{display:flex;align-items:center;gap:14px;padding:13px 18px;border-radius:8px;border:2px solid var(--orange);background:rgba(238,118,35,.1)}
.note .ic{width:30px;height:30px;color:var(--orange)}
.note p{font-size:17px;font-weight:600;line-height:1.32;color:#ececf1}
.note b{display:block;font-size:14px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:var(--orange);margin-bottom:1px}
.note.stop{border-color:var(--red);background:rgba(219,63,69,.12)}
.note.stop .ic,.note.stop b{color:var(--stop)}
.note.ok{border-color:var(--green);background:rgba(47,211,107,.09)}
.note.ok .ic,.note.ok b{color:var(--green)}
.note.ok .ic{stroke-width:3}
.note.pop{animation:pop .6s var(--ease)}
.note{transition:opacity .35s,transform .35s var(--ease)}
.note.hide{opacity:0;transform:translateY(10px)}
@keyframes pop{30%{transform:scale(1.03)}}

/* podnožje */
.t-foot{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:20px;margin-top:18px}
.btn{height:64px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:0 28px;border:0;border-radius:999px;font-size:20px;font-weight:800;white-space:nowrap;transition:transform .2s var(--ease)}
.btn .ic{width:24px;height:24px;stroke-width:2.6}
.btn.ghost{background:#141417;color:#fff;border:2px solid #2a2a30;padding-left:20px}
.btn.grad{min-width:230px;background:var(--grad);color:#fff;padding-right:22px}
.btn.grad .ic:first-child{margin-left:-4px}
.btn:active{transform:scale(.96)}
.t-prog{display:flex;justify-content:center;gap:8px}
.t-prog i{width:46px;height:7px;border-radius:4px;background:#26262c;transition:background .3s}
.t-prog i.done{background:#6b3a2a}
.t-prog i.on{background:var(--grad)}

/* ---------------- PODSJETNIK ---------------- */
.rm{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;gap:12px;margin-top:10px}
.rm-row,.rm-stop{display:grid;grid-template-columns:230px minmax(0,1fr);align-items:center;gap:16px;padding:16px 22px;border-radius:8px;background:var(--card);position:relative;overflow:hidden}
.rm-row::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--grad)}
.rm-l{font-size:21px;font-weight:900;line-height:1.15}
.rm-chips{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.rm-chip{background:#fff;color:#000;font-size:20px;font-weight:800;padding:9px 18px;border-radius:999px;white-space:nowrap}
.rm-ar{width:22px;height:22px;color:var(--orange);stroke-width:2.6}
.rm-stop{grid-template-columns:34px 180px minmax(0,1fr);border:2px solid var(--red);background:rgba(219,63,69,.1)}
.rm-stop>.ic{width:32px;height:32px;color:var(--stop)}
.rm-stop .rm-l{color:var(--stop)}
.rm-chip.x{background:transparent;color:var(--stop);border:2px solid var(--red)}
.rm-more{font-size:16px;font-weight:600;color:#cfcfd6}
.page.enter .rm-row,.page.enter .rm-stop{animation:hm-in .5s var(--ease) both;animation-delay:calc(var(--i,4) * 60ms + 330ms)}

/* ---------------- POMOĆ ---------------- */
.hp{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:48px;align-items:center;padding:0 10px}
.hp-k{font-size:14px;font-weight:900;letter-spacing:.16em;text-transform:uppercase;color:var(--mute-d)}
.hp-mail{display:flex;align-items:center;gap:16px;margin-top:10px;font-size:46px;font-weight:900;letter-spacing:-.02em;line-height:1.1}
.hp-mail .ic{width:46px;height:46px;color:var(--orange)}
.hp-tips{margin-top:30px;display:flex;flex-direction:column;gap:12px}
.hp-tips li{display:flex;align-items:center;gap:12px;font-size:19px;font-weight:600;color:#dcdce2}
.hp-tips .ic{color:var(--orange);stroke-width:3}
.hp-temp{margin-top:34px;font-size:15px;font-weight:600;color:#6c6c75}
.hp-qr{background:#fff;border-radius:12px;padding:22px 22px 18px;color:#000;text-align:center}
.qr svg{width:100%;height:auto;display:block}
.hp-qr span{display:block;margin-top:12px;font-size:16px;font-weight:800;line-height:1.25}

/* =============================================================
   SHEME (js/figs.js) — stanje dolazi iz klasa at-N / ge-N
   ============================================================= */
.fig text{font-family:var(--font)}
.fig [data-show]{opacity:0;transition:opacity .45s}
.fig [data-show].shown{opacity:1}

/* zajedničko: okvir programa */
.fx-win{fill:#141418;stroke:#34343c;stroke-width:2}
.fx-bar{fill:#1d1d23}
.fx-tt{fill:#d7d7de;font-size:14px;font-weight:900;letter-spacing:.06em}
.fx-dot{fill:#3a3a42}
.pill rect{fill:#1f1f25;stroke:#3a3a43;stroke-width:1.5;transition:fill .3s,stroke .3s}
.pill text{fill:#a8a8b2;font-size:13px;font-weight:800;letter-spacing:.05em;transition:fill .3s}
.pill.p-off rect{fill:#17171c;stroke:#2a2a31}
.pill.p-off text{fill:#5b5b64}
.pill.lit rect{fill:url(#gGrad);stroke:#fff;stroke-width:1.5}
.pill.lit text{fill:#fff}
.nope rect{fill:rgba(219,63,69,.08);stroke:var(--red);stroke-width:2;stroke-dasharray:6 5}
.nope line{stroke:var(--red);stroke-width:2.5;opacity:.7}
.nope text{fill:var(--stop);font-size:13px;font-weight:900;letter-spacing:.04em}
.fx-canvas{fill:#0b0b0e;stroke:#24242a}
.fx-wall{fill:none;stroke:#4a4a54;stroke-width:1.5;stroke-dasharray:5 5}
.fx-lbl{fill:#6e6e78;font-size:12px;font-weight:800;letter-spacing:.12em}

/* klik i dvoklik */
.clk-r{fill:none;stroke:#fff;stroke-width:2.5;transform-box:fill-box;transform-origin:center;animation:clk 1.5s ease-out infinite both;animation-delay:var(--dl,0s)}
.clk-r.r2{animation-delay:calc(var(--dl,0s) + .22s)}
.clk-d{fill:#fff}
.clk-x{fill:#fff;font-size:15px;font-weight:900}
@keyframes clk{0%{transform:scale(.4);opacity:1}70%,100%{transform:scale(2.3);opacity:0}}

/* HDMI prozori (shema 2) */
.hw,.hw-r,.hw-b{transition:transform .8s var(--ease)}
.hw-r{transform-box:fill-box;transform-origin:0 0}
.hw-r rect{fill:url(#gSoft);stroke:#9a9aa4;stroke-width:1.5;vector-effect:non-scaling-stroke}
.hw-t{fill:#fff;font-size:14px;font-weight:900}
.hw-b rect{fill:#2a2a31;stroke:#5a5a63;transition:fill .3s}
.hw-b text{fill:#d0d0d6;font-size:12px;font-weight:900}
.hw-b.lit rect{fill:url(#gGrad);stroke:#fff}
.hw-b.lit text{fill:#fff}
.w1{transform:translate(60px,128px)}
.w1 .hw-r,.w2 .hw-r{transform:scale(.43,.47)}
.w1 .hw-b,.w2 .hw-b{transform:translate(86px,8px)}
.w2{transform:translate(360px,150px)}
.fig.ge-2 .w1{transform:translate(40px,110px)}
.fig.ge-2 .w1 .hw-r,.fig.ge-3 .w2 .hw-r{transform:none}
.fig.ge-2 .w1 .hw-b,.fig.ge-3 .w2 .hw-b{transform:translate(242px,8px)}
.fig.ge-3 .w2{transform:translate(250px,110px)}
.fig.at-4 .w2{animation:w2move 3.4s var(--ease) infinite}
@keyframes w2move{0%,18%{transform:translate(250px,110px)}58%,100%{transform:translate(320px,110px)}}
.drag-l{fill:none;stroke:#fff;stroke-width:3;stroke-dasharray:9 7;animation:dash .9s linear infinite}
.drag-h{fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
@keyframes dash{to{stroke-dashoffset:-16}}

/* shema 1: paljenje */
.tl-bg{fill:#111115;stroke:#26262d;stroke-width:2;transition:fill .3s}
.tile{transition:opacity .4s}
.tile.lit .tl-bg{stroke:url(#gGrad);stroke-width:3;fill:#17171c}
.tile.todo{opacity:.45}
.bd circle{fill:#24242b;stroke:#3a3a42;stroke-width:1.5;transition:fill .3s}
.bd-n{fill:#cfcfd6;font-size:15px;font-weight:900;transition:opacity .3s}
.ck{fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;opacity:0;transition:opacity .3s}
.bd.lit circle,.bd.done circle{fill:url(#gGrad);stroke:none}
.bd.lit .bd-n{fill:#fff}
.bd.done .bd-n{opacity:0}
.bd.done .ck{opacity:1}
.tl-l{fill:#fff;font-size:19px;font-weight:900}
.tl-s{fill:#8f8f99;font-size:14px;font-weight:700}
.tl-arr{fill:none;stroke:#5a5a64;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.sw-base{fill:#1b1b20;stroke:#3a3a42;stroke-width:2}
.sw-ring{fill:none;stroke:#2c2c33;stroke-width:2}
.sw-hand{fill:#d9d9df}
.tile.lit .sw-hand{fill:url(#gGrad)}
.sw-hub{fill:#0b0b0e}
.sw-h{transform-box:fill-box;transform-origin:center;transition:transform .8s var(--ease)}
.fig.at-0 .sw-h{animation:swTurn 2.6s var(--ease) infinite}
.fig.ge-1 .sw-h{transform:rotate(90deg)}
@keyframes swTurn{0%,22%{transform:rotate(0)}62%,100%{transform:rotate(90deg)}}
.sw-arc,.sw-arc-h{fill:none;stroke:var(--orange);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.lp-plate{fill:#0d0d10;stroke:#2c2c33;stroke-width:2}
.lamp{fill:#2a2a31;stroke:#3a3a42;stroke-width:1.5}
.fig.at-1 .lamp{animation:lamp 5s infinite both;animation-delay:calc(var(--i) * .4s)}
.fig.ge-2 .lamp{fill:var(--green);stroke:#7fe8a6}
@keyframes lamp{0%,6%{fill:#2a2a31}14%,90%{fill:#2FD36B}100%{fill:#2a2a31}}
.pr-box{fill:#1a1a1f;stroke:#3a3a42;stroke-width:2}
.pr-vent{stroke:#34343b;stroke-width:3;stroke-linecap:round}
.pr-knob{fill:#2a2a31;stroke:#4a4a54;stroke-width:2}
.led{fill:#2a2a31;transition:fill .4s}
.fig.at-2 .led{animation:led 1.1s ease-in-out infinite alternate}
.fig.ge-3 .led{fill:var(--green)}
@keyframes led{from{fill:#2a2a31}to{fill:#2FD36B}}
.mn{fill:#0d0d10;stroke:#4a4a54;stroke-width:2}
.mn-st{fill:none;stroke:#4a4a54;stroke-width:3;stroke-linecap:round}
.mn-w{fill:#1f1f25;stroke:#55555e}
.mn-wb{fill:url(#gGrad)}
.mn-wt{fill:#fff;font-size:9px;font-weight:900}

/* shema 3: tri ekrana */
.vw{fill:#0d0d10;stroke:#6a6a74;stroke-width:2.5}
.vw-g{stroke:#24242a;stroke-width:1.2}
.vw-pic{fill:url(#gSoft)}
.vw-split{stroke:#fff;stroke-width:2;stroke-dasharray:6 6}
.vw-h{fill:#fff;font-size:14px;font-weight:900}
.mv-l{fill:none;stroke:var(--orange);stroke-width:3;stroke-dasharray:9 7;animation:dash .9s linear infinite}
.mv-h{fill:none;stroke:var(--orange);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.cw{transform:translate(200px,166px)}
.cw-r{fill:#26262d;stroke:#9a9aa4;stroke-width:1.5}
.cw-b{fill:#3a3a44}
.cw-t{fill:#fff;font-size:8.5px;font-weight:800}
.cw-p{fill:none;stroke:var(--orange);stroke-width:2;stroke-linejoin:round}
.fig.at-1 .cw{animation:cwMove 3.2s var(--ease) infinite}
@keyframes cwMove{0%,18%{transform:translate(200px,166px)}62%,100%{transform:translate(436px,159px)}}

/* shema 4: grafike */
.gw{transform:translate(230px,128px)}
.gw-r{fill:#22222a;stroke:#9a9aa4;stroke-width:1.5;vector-effect:non-scaling-stroke}
.gw-sun{fill:var(--orange)}
.gw-m{fill:url(#gSoft);stroke:var(--magenta);stroke-width:1.5}
.gw-sel{fill:none;stroke:transparent;stroke-width:2.5}
.gw-sel.lit{stroke:#fff;stroke-dasharray:7 5}
.gw-mv{fill:none;stroke:#fff;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.gw-rs{fill:#fff}
.fig.at-3 .gw{animation:gwMove 4.2s var(--ease) infinite alternate}
@keyframes gwMove{0%,12%{transform:translate(230px,128px) scale(1)}50%{transform:translate(150px,118px) scale(1)}88%,100%{transform:translate(150px,118px) scale(1.4,1.3)}}
.rp{transform:translateX(24px);transition:opacity .45s,transform .5s var(--ease)}
.rp.shown{transform:none}
.rp-bg{fill:#1a1a20;stroke:#3a3a43;stroke-width:1.5}
.rp-t{fill:#d0d0d6;font-size:12px;font-weight:900;letter-spacing:.12em}
.rp-th{fill:url(#gSoft);stroke:#3a3a43}

/* shema 5: svjetlina */
.lcd{fill:#08080a;stroke:#2c2c33;stroke-width:2}
.lcd-k{fill:#6e6e78;font-size:12px;font-weight:900;letter-spacing:.14em}
.lcd-row rect{fill:none;stroke:#3a3a43;stroke-width:1.5;transition:fill .3s}
.lcd-row text{fill:#e8e8ee;font-size:17px;font-weight:900}
.lcd-row .lcd-1{fill:#6e6e78;font-size:13px}
.lcd-row.lit rect{fill:url(#gGrad);stroke:none}
.lcd-row.lit text{fill:#fff}
.lcd-ph{fill:#24242a}
.lcd-T{fill:var(--orange);font-size:15px;font-weight:900;letter-spacing:.14em}
.lcd-bar{fill:none;stroke:#3a3a43;stroke-width:2}
.lcd-fill{fill:url(#gGrad);transform-box:fill-box;transform-origin:0 50%;transform:scaleX(.6)}
.lcd-pm{fill:#cfcfd6;font-size:26px;font-weight:900}
.kn-o{fill:#141418;stroke:#33333b;stroke-width:2}
.kn-b{fill:url(#gKnob);stroke:#4a4a54;stroke-width:2}
.kn-n{stroke:#5a5a64;stroke-width:2.5;stroke-linecap:round}
.kn-i{stroke:var(--orange);stroke-width:5;stroke-linecap:round}
.kn{transform-box:fill-box;transform-origin:center}
.fig.at-0 .kn,.fig.at-2 .kn{animation:press 1.5s ease-in-out infinite}
.fig.at-3 .kn{animation:turn 3.6s ease-in-out infinite}
.fig.at-3 .lcd-fill{animation:lvl 3.6s ease-in-out infinite}
.kn-ar path{fill:none;stroke:var(--orange);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
@keyframes press{0%,40%,100%{transform:scale(1)}55%{transform:scale(.9)}70%{transform:scale(1)}}
@keyframes turn{0%,100%{transform:rotate(-50deg)}50%{transform:rotate(50deg)}}
@keyframes lvl{0%,100%{transform:scaleX(.25)}50%{transform:scaleX(.95)}}

/* shema 6: prozori */
.ghost{fill:none;stroke:#8a8a94;stroke-width:2;stroke-dasharray:6 5}
.ghost-t{fill:#8a8a94;font-size:13px;font-weight:800}
.ww{transform:translate(70px,80px)}
.ww-r{fill:url(#gSoft);stroke:#a0a0aa;stroke-width:1.5;vector-effect:non-scaling-stroke}
.ww-bar{fill:#2a2a31}
.fig.at-0 .ww{animation:wwMove 4.4s var(--ease) infinite alternate}
.fig.at-1 .ww{animation:ww11 3.6s var(--ease) infinite}
@keyframes wwMove{0%,12%{transform:translate(70px,80px) scale(1)}50%{transform:translate(300px,140px) scale(1)}88%,100%{transform:translate(300px,140px) scale(1.3,1.25)}}
@keyframes ww11{0%,35%{transform:translate(300px,140px) scale(1.3,1.25)}58%,100%{transform:translate(70px,80px) scale(1)}}

/* ---------------- prijelaz / dodir / postavke ---------------- */
.wipe{position:absolute;inset:0;z-index:40;background:var(--grad);pointer-events:none;clip-path:polygon(0 0,0 0,-25% 100%,-25% 100%)}
.wipe.go{animation:wipe .72s cubic-bezier(.7,0,.25,1) forwards}
.wipe.go.rev{animation-name:wipe-rev}
@keyframes wipe-rev{
  0%{clip-path:polygon(100% 0,100% 0,125% 100%,125% 100%)}
  48%{clip-path:polygon(100% 0,-25% 0,0 100%,125% 100%)}
  52%{clip-path:polygon(100% 0,-25% 0,0 100%,125% 100%)}
  100%{clip-path:polygon(-25% 0,-25% 0,0 100%,0 100%)}}
@keyframes wipe{
  0%{clip-path:polygon(0 0,0 0,-25% 100%,-25% 100%)}
  48%{clip-path:polygon(0 0,125% 0,100% 100%,-25% 100%)}
  52%{clip-path:polygon(0 0,125% 0,100% 100%,-25% 100%)}
  100%{clip-path:polygon(125% 0,125% 0,100% 100%,100% 100%)}}
.taps{position:fixed;inset:0;z-index:100;pointer-events:none;overflow:hidden}
.tap{position:absolute;width:90px;height:90px;margin:-45px 0 0 -45px;border-radius:50%;border:3px solid var(--orange);animation:tap .6s ease-out forwards}
.tap.b{border-color:var(--magenta);animation-delay:.07s;opacity:0}
@keyframes tap{0%{transform:scale(.2);opacity:1}100%{transform:scale(1.4);opacity:0}}
.admin{position:fixed;inset:0;z-index:120;background:rgba(0,0,0,.75);display:none;align-items:center;justify-content:center}
.admin.on{display:flex}
.admin-card{background:#fff;color:#000;padding:30px;width:560px;border-radius:8px}
.admin-card h3{font-size:26px;font-weight:900;margin-bottom:16px}
.admin-card label{display:block;font-weight:700;margin-bottom:18px}
.admin-card input{width:100%;margin-top:10px;accent-color:var(--magenta)}
.admin-row{display:flex;flex-wrap:wrap;gap:10px}
.admin-row button{height:46px;padding:0 16px;border:2px solid #000;background:#fff;font-weight:800;border-radius:6px}
.admin-meta{margin-top:16px;font-size:14px;color:var(--mute-l)}
.idle-toast{position:absolute;left:50%;bottom:26px;z-index:110;display:flex;align-items:center;gap:16px;max-width:640px;background:#fff;color:#000;padding:14px 22px 14px 14px;
  border-radius:999px;box-shadow:0 18px 44px rgba(0,0,0,.45);transform:translate(-50%,140%);opacity:0;transition:transform .45s var(--ease),opacity .3s;pointer-events:none}
.idle-toast.on{transform:translate(-50%,0);opacity:1}
.idle-n{width:52px;height:52px;flex:none;border-radius:50%;background:var(--grad);color:#fff;display:grid;place-items:center;font-weight:900;font-size:24px;font-variant-numeric:tabular-nums}
.idle-toast b{display:block;font-size:18px;font-weight:900}
.idle-toast span:last-child{font-size:15px;font-weight:600;line-height:1.3}

/* ukrasne animacije se gase uz smanjeno kretanje; one u shemama ostaju jer pokazuju radnju */
@media (prefers-reduced-motion:reduce){
  .sb-glow,.sb-chip::after,.pulse::after,.home.enter *,.wipe.go{animation:none!important}
}
