/* Each scene is lightweight SVG + CSS. Interactive targets keep their original geometry. */
.sc-setting{position:relative;border-radius:15px;background:var(--sc-bg);border:1px solid var(--sc-accent);overflow:hidden;margin:2px auto 10px;max-width:420px;pointer-events:none}.sc-setting>svg{display:block;width:100%!important;height:83px!important}.sc-setting>span{display:block;text-align:center;font-size:10px;font-weight:700;padding:0 5px 6px;color:#365366}.ex-group-space .sc-setting>span,.sc-lights>span{color:#e6edf0}.sc-setting .sc-bot{transform-box:fill-box;transform-origin:center bottom;animation:sc-breathe 4s ease-in-out infinite}.sc-delivery{animation:sc-deliver 5s ease-in-out infinite}.sc-belt{animation:sc-conveyor 3s linear infinite}.sc-tool{transform-origin:85px 30px;animation:sc-wrench 4s ease-in-out infinite}.sc-signal{animation:sc-transmit 3s ease-in-out infinite}.sc-orbiter{animation:sc-orbit 12s linear infinite}.sc-scope{transform-origin:160px 45px;animation:sc-scan 6s ease-in-out infinite alternate}.sc-star{animation:sc-twinkle 3s ease-in-out infinite;animation-delay:var(--delay)}.sc-rover-drive{animation:sc-drive 6s ease-in-out infinite alternate}.sc-sun{animation:sc-sunlight 5s ease-in-out infinite}.sc-react .ng-fox>.rw-fox{animation:sc-nod .45s ease-out}.ex-game[data-active=yes] .sc-bot{animation:sc-nod .7s ease-in-out infinite}.ex-game[data-phase=success] .sc-setting{box-shadow:0 0 18px #f5da8c77}.ex-game[data-phase=success] .sc-power,.ex-game[data-phase=success] .sc-window{fill:#ffe59b;filter:drop-shadow(0 0 5px #ffdf83)}.ex-game[data-phase=success] .sc-bot{animation:rw-cheer .55s ease-in-out 3}.ex-game[data-phase=retry] .sc-setting{border-color:#d6b37e}.ex-game .ex-cell:active{scale:.96}.ex-game .ex-cell.selected{box-shadow:0 0 0 3px #ffe19b80}.ex-bin-items>svg,.ex-slot-wrap>.ex-cell>svg{animation:ex-piece-in .3s ease-out}
/* Coding workshops */
.ex-id-robotpost .ng-world{background:linear-gradient(#f7ecd4dd,#edc997dd),url('assets/workshop-v1.webp') center/cover}.ex-id-robotpost .ex-grid{background:#b99a7355}.ex-id-robotpost .ex-cell.road{background:#fff0c8;border-color:#c2a277}.ex-id-robotpost .ex-cell.rock{background:#c9b596;color:#a18868}.ex-id-robotpost .ex-program{background:#e6d9bd;border-color:#b79a6f}
.ex-id-robotloops .ng-world{background:radial-gradient(at 15% 10%,#f7efff,#e3d8f1 70%);border-color:#b6a3c8}.ex-id-robotloops .ex-model-row{border:5px solid #b7a7c9;border-radius:30px;background:#faf4ff}.ex-id-robotloops .ex-program{background:#d8cce9;border-color:#a494b5}.ex-id-robotloops .ex-palette>.ex-cell{border-color:#b4a1c2;box-shadow:0 3px 0 #b0a0be}
.ex-id-robotsort .ng-world{background:linear-gradient(150deg,#c9eee3,#eaf3d7);border-color:#81b4a1}.ex-id-robotsort .ex-bins{gap:9px}.ex-id-robotsort .ex-bin{background:linear-gradient(#b2d4c1 0 12px,#f6f6dd 13px);border:3px solid #86ae9e;border-radius:10px 10px 22px 22px;box-shadow:0 5px 0 #678f7e44}.ex-id-robotsort .ex-palette{padding:8px 3px;border-top:7px dashed #80a699;border-bottom:7px dashed #80a699;background:#b8d9c8}
.ex-id-robotdebug .ng-world{background:repeating-linear-gradient(0deg,#e8d3af 0 30px,#efdfbf 31px 32px);border-color:#bea174}.ex-id-robotdebug .ex-program{border:3px solid #c9a15d;background:#fff2cf;box-shadow:inset 0 0 0 3px #ecd197}.ex-id-robotdebug .ex-cell.road{background:#fff1c9;border-color:#b6a17a}.ex-id-robotdebug .ex-grid{background:#baa38166}
.ex-id-robotevents .ng-world{background:radial-gradient(ellipse at top,#c4cfe9,#7e92ba);border-color:#8b9fc0}.ex-id-robotevents .ex-palette{padding:12px 6px;background:#687da7;border:3px solid #bccbe3;border-radius:18px;box-shadow:0 6px 0 #4c6287}.ex-id-robotevents .ex-cell{border-radius:50%;background:radial-gradient(at 35% 25%,#fffced,#d7e5ec);box-shadow:0 4px 0 #405b80}.ex-id-robotevents .ex-flash{box-shadow:0 0 22px #ffecaa!important}.ex-id-robotevents .ex-program{background:#e1e7f2;border-color:#879cbd}
.ex-id-robotlights .ng-world{background:linear-gradient(#1e3354,#455d7c);border-color:#7a94b1}.ex-id-robotlights .ex-model-row{background:#3b5273;border-color:#7b91ab}.ex-id-robotlights .ex-palette{padding:15px 5px;background:#233e5a;border-radius:20px;border:3px solid #7795aa;box-shadow:0 5px 0 #18304a}.ex-id-robotlights .ex-rule-arrow{color:#cee1d8}.ex-id-robotlights .ex-lamp.on{box-shadow:0 0 18px #ffe19799!important}.ex-id-robotlights .ex-scene-caption{color:#e0eadf}
.ex-id-robotcipher .ng-world{background:linear-gradient(130deg,#e2dfec,#c2c3d7);border-color:#999db9}.ex-id-robotcipher .ex-key{border:5px double #969bb6;background:#fcf4dc;box-shadow:0 4px 0 #9799b233}.ex-id-robotcipher .ex-program{border:4px solid #8993a8;border-radius:15px;background:#e9ead9}.ex-id-robotcipher .ex-model-row{background:#fbefd0;border-color:#b9ad90}
.ex-id-robotfactory .ng-world{background:linear-gradient(#d6eee5,#a9cfcc);border-color:#7ca7a5}.ex-id-robotfactory .ex-slots{padding:13px 5px;border-top:8px solid #7eaaaa;border-bottom:8px dashed #7eaaaa;background:#c6ded7;border-radius:12px}.ex-id-robotfactory .ex-slot-wrap>.ex-cell{border:2px solid #79a2a3;border-radius:10px;background:#f5f3da}.ex-id-robotfactory .ex-model-row{background:#eaf4eb;border-color:#88afac}
.ex-id-robotduo .ng-world{background:linear-gradient(#e4f1d9,#a8c8b6);border-color:#92b4a0}.ex-id-robotduo .ex-grid{background:linear-gradient(90deg,#9fbcbc,#9ab39b);border:4px solid #c3b68a}.ex-id-robotduo .ex-actors button:first-child{border-bottom:5px solid #82b9a7}.ex-id-robotduo .ex-actors button:last-child{border-bottom:5px solid #d5b17a}.ex-id-robotduo[data-actor="1"] .ex-program{background:#efdeb8;border-color:#c0a271}
/* Space destinations */
.ex-group-space:not(.ex-id-rocketbuild) .ng-world:after{display:none}.ex-group-space:not(.ex-id-rocketbuild) .ex-grid{max-width:286px;margin:12px auto}.ex-id-moonrover .ng-world{background:linear-gradient(#253b57,#7d8d9f);border-color:#a5b5c1}.ex-id-moonrover .ex-grid{padding:8px;border-radius:23px;background:#a5afba;border:3px solid #c3c7c6}.ex-id-moonrover .ex-cell.road{background:#e1dfd0;border-color:#b5b8b1}.ex-id-moonrover .ex-cell.rock{background:radial-gradient(ellipse,#7f8c99 35%,#a4afb7 39%,#8796a4 64%);color:transparent}.ex-id-moonrover .ex-program{background:#e3e3d2;border-color:#a3b4b9}
.ex-id-planetmap .ng-world{background:linear-gradient(150deg,#273857,#505983)}.ex-id-planetmap .ex-model-row{position:relative;background:#1e3453;border:2px solid #859bbc;border-radius:25px}.ex-id-planetmap .ex-slots{padding:14px 5px;background:#59749a55;border-top:1px dashed #99b4c7;border-bottom:1px dashed #99b4c7}.ex-id-planetmap .ex-slot-wrap>.ex-cell{border-radius:50%;background:#355174;border-color:#aac4ce;color:#eff3db}.ex-id-planetmap .ex-palette>.ex-cell{background:#e9eeec;border-color:#a8becb;border-radius:50%}
.ex-id-daynight .ng-world{background:linear-gradient(100deg,#bea55f 0%,#536d81 34%,#193856 65%)}.ex-id-daynight .ex-model{padding:7px;border:2px solid #c3d9dc;border-radius:50%;background:#d7e2d8}.ex-id-daynight .ex-turn-model{padding:8px;border:1px solid #accbd555;border-radius:50%;background:radial-gradient(#90b5c844,transparent 70%)}.ex-id-daynight .ex-turn-model>svg:last-child{filter:drop-shadow(0 0 10px #a9d8e35c)}
.ex-id-moonphases .ng-world{background:linear-gradient(#2c3554,#626b8b)}.ex-id-moonphases .ex-model{padding:8px;background:#1a2b48;border:3px solid #a9b6c8;border-radius:50%;box-shadow:0 0 0 5px #536784}.ex-id-moonphases .ex-turn-model{border:5px solid #a3b1c2;border-radius:50%;max-width:190px;margin:auto;padding:8px;background:#172b47;box-shadow:0 0 0 5px #536780}.ex-id-moonphases .ex-turn-model>svg{width:145px!important;height:145px!important}
.ex-id-starpaths .ng-world{background:radial-gradient(at 40% 10%,#665e89,#26344f 70%)}.ex-id-starpaths .ex-model-row{background:#273752;border-color:#9ba9bd;color:#ffe6a0}.ex-id-starpaths .ex-palette{padding:14px 8px;border-radius:25px;background:#425174;border:2px solid #8299b6}.ex-id-starpaths .ex-palette>.ex-cell{border-radius:50%;box-shadow:0 0 9px #dcdbbd44}.ex-id-starpaths .ex-program{background:#c9d6d8;border-color:#94abbf}
.ex-id-orbitlab .ng-world{background:radial-gradient(at 50% 45%,#496f86,#1f3655 75%)}.ex-id-orbitlab .ex-model-row{background:#d3e2df;border-color:#8db3ba}.ex-id-orbitlab .ex-orbits{background:radial-gradient(ellipse,#f2d18c22,transparent 65%)}.ex-id-orbitlab .ex-orbits:before{text-shadow:0 0 16px #ffdb73;font-size:35px}.ex-id-orbitlab .ex-orbits>.ex-slot-wrap{border-color:#aacbd0}.ex-id-orbitlab .ex-palette>.ex-cell{border-radius:50%;background:#edf2df}
.ex-id-spacecargo .ng-world{background:linear-gradient(#253f58,#4d7885)}.ex-id-spacecargo .ex-scales{border:3px solid #96b4ba;border-radius:18px;background:#bfd3cc;max-width:300px;height:170px;margin:10px auto}.ex-id-spacecargo .ex-pan{background:linear-gradient(#f4d5a0,#e1b97e);border:3px solid #b58d54;border-radius:8px;box-shadow:0 4px 0 #577b7c44}.ex-id-spacecargo .ex-palette>.ex-cell{border:3px solid #d1ac72;background:#f7e3b8;border-radius:9px;box-shadow:0 4px 0 #966d45}
.ex-id-telescope .ng-world{background:linear-gradient(135deg,#263857,#64768c)}.ex-id-telescope .ex-model{position:relative;width:135px;max-width:135px;padding:12px;border:8px solid #9ab6c5;border-radius:50%;background:radial-gradient(#e2edf0,#b9d9dd);box-shadow:0 0 0 4px #486583,0 0 0 7px #8298af;overflow:hidden}.ex-id-telescope .ex-model>b{color:#365b72;margin:0;font-size:10px}.ex-id-telescope .ex-palette>.ex-cell{border-radius:50%;border:3px solid #a0bdcc;box-shadow:0 3px 0 #3f5d79}.ex-id-telescope .ex-model svg{animation:sc-reveal .6s ease-out}
.ex-id-spacestation .ng-world{background:linear-gradient(150deg,#254159,#547c8c)}.ex-id-spacestation .ex-grid{padding:8px;background:#163347;border:4px solid #9fbdc4;border-radius:20px;box-shadow:0 0 0 3px #577c8b}.ex-id-spacestation .ex-cell{border:2px solid #81a9b4;background:linear-gradient(#dce5d8,#b1c9c6);border-radius:11px}.ex-id-spacestation .ex-cell.rock{background:#284858;border:1px dashed #6e929d}.ex-id-spacestation[data-phase=success] .ex-cell svg path{stroke:#f3d88f;filter:drop-shadow(0 0 3px #ffe09a)}
@keyframes sc-breathe{50%{translate:0 -2px}}@keyframes sc-deliver{0%,20%{translate:0 0}65%,100%{translate:28px 0}}@keyframes sc-conveyor{to{stroke-dashoffset:-42}}@keyframes sc-wrench{50%{rotate:12deg}}@keyframes sc-transmit{50%{opacity:.45}}@keyframes sc-orbit{to{rotate:360deg}}@keyframes sc-scan{to{rotate:7deg}}@keyframes sc-twinkle{50%{opacity:.4}}@keyframes sc-drive{to{translate:25px 0}}@keyframes sc-sunlight{50%{filter:drop-shadow(0 0 7px #ffe3a6)}}@keyframes sc-nod{50%{rotate:3deg;translate:0 -3px}}@keyframes sc-reveal{from{opacity:.4;scale:.85}to{opacity:1;scale:1}}
@media(max-width:650px),(max-height:500px) and (pointer:coarse){.sc-setting>svg{height:68px!important}.sc-setting{margin-bottom:7px}.sc-setting>span{font-size:9px;padding-bottom:4px}.ex-game .ex-controls button{min-width:44px!important}.ex-group-space .ex-cell{min-height:44px!important}.ex-game .ex-model-row{gap:5px}.ex-id-robotsort .ex-bin{min-height:88px!important}.ex-id-robotsort .ex-palette{gap:7px}.ex-id-robotfactory .ex-slots{gap:6px}.ex-id-moonrover .ex-grid>.ex-cell{min-width:44px!important;min-height:44px!important}.ex-id-spacestation .ex-grid>.ex-cell{min-height:44px!important}.ex-game .ex-controls{isolation:isolate}.ex-game .ex-scene-caption{display:none}.ex-id-rocketbuild .ex-scene-caption{display:flex}}
.pre-calm .sc-setting *,.pre-calm .ex-game *{animation:none!important;transition:none!important}.pre-hidden .sc-setting *{animation-play-state:paused!important}@media(prefers-reduced-motion:reduce){.sc-setting *,.ex-game *{animation:none!important;transition:none!important}}
