.ex-game .ng-heading h2{font-size:24px}.ex-game .ng-world{background:#f3edcf;border:1px solid #d6ddbf}.ex-group-space .ng-world{background:radial-gradient(at 20% 0,#354e76,#1e334f);color:#fff4db}.ex-group-space .ng-guide{background:#fdf8e9;color:#304b3b;border-radius:15px}.ex-scene-caption{display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;opacity:.9;margin-bottom:10px}.ex-scene-caption>svg{width:27px;height:27px}.ex-grid{display:grid;grid-template-columns:repeat(var(--cols,3),minmax(0,1fr));gap:7px;max-width:360px;margin:14px auto}.ex-cell,.ex-grid>button{display:grid;place-items:center;aspect-ratio:1;border:2px solid #c6d1b4;border-radius:14px;background:#fff9e5;padding:6px;font-size:30px;min-width:0!important;min-height:52px!important;color:#325c59;position:relative}.ex-cell svg{width:100%!important;height:100%!important;max-width:74px;max-height:74px}.ex-cell.selected{outline:4px solid #e8b65a;outline-offset:1px}.ex-cell.placed{opacity:.6}.ex-cell.matched{background:#d7e9b6;opacity:1}.ex-cell.rock{background:#72838133;border-color:transparent;color:#7b897c}.ex-cell.road{background:#f9edca}.ex-path-dot{width:10px;height:10px;border-radius:50%;background:#baa575}.ex-palette{display:flex;flex-wrap:wrap;justify-content:center;gap:9px;margin:16px auto}.ex-palette>.ex-cell{width:64px;height:64px;flex:0 0 64px}.ex-program{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;padding:10px;background:#d5e1c9;border:2px dashed #9cb88d;border-radius:14px;min-height:58px;margin:12px 0;color:#2f5b59}.ex-program>span{width:39px;height:39px;display:grid;place-items:center;background:#fff9df;border-radius:8px;font-size:25px}.ex-program svg{width:35px;height:35px}.ex-model{max-width:110px;margin:10px auto 20px;text-align:center}.ex-model>b{display:block;font-size:12px;margin:8px}.ex-model>svg{width:100%!important;height:100%!important}.ex-model-row{display:flex;justify-content:center;gap:5px;flex-wrap:wrap;background:#fff6dfee;border:1px solid #cbd4b9;border-radius:12px;padding:10px;color:#325c59}.ex-model-row>span{width:43px;height:43px;display:grid;place-items:center;font-size:25px}.ex-model-row svg{width:100%!important;height:100%!important}.ex-watch{display:block;margin:14px auto;border:1px solid #b1c394;border-radius:12px;background:#f6f2d6;padding:10px 18px;font-size:17px}.ex-flash{outline:5px solid #eab34b!important;background:#fff59f!important;box-shadow:0 0 14px #f7e182;transform:scale(1.06)}.ex-key{display:flex;justify-content:center;flex-wrap:wrap;gap:5px;margin:12px auto;background:#fff8e5;border-radius:13px;color:#325c59;padding:9px}.ex-key>span{display:flex;align-items:center;gap:3px}.ex-key svg{width:35px;height:35px}.ex-bins{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ex-bin{border:2px solid #c3cda6;border-radius:18px;background:#f7edcf;padding:8px;min-height:100px!important}.ex-rule{display:flex;align-items:center;justify-content:center;height:38px;border-bottom:1px solid #c6c9a7}.ex-rule svg{width:34px;height:34px}.ex-rule>i{width:20px;height:20px;border-radius:50%;display:inline-block;margin:8px}.ex-bin-items{display:flex;flex-wrap:wrap;min-height:44px;align-items:center;justify-content:center}.ex-bin-items svg{width:38px;height:38px}.ex-controls{display:flex;justify-content:center;gap:9px;margin:14px auto}.ex-controls button{border:1px solid #b4c59e;background:#fff9df;border-radius:14px;display:grid;place-items:center;padding:9px 14px;min-width:72px!important;color:#315b48}.ex-controls button:first-child{background:#39704d;color:#fff9e4}.ex-controls span{font-size:25px}.ex-controls small{font-size:12px;margin-top:3px}.ex-actors{display:flex;justify-content:center;gap:12px}.ex-actors button{display:flex;align-items:center;gap:5px;background:#f6efd3;border:2px solid #a8bb94;border-radius:14px;padding:6px 12px}.ex-actors [aria-pressed=true]{background:#e4c87d;border-color:#b88a35}.ex-actors svg{width:35px;height:35px}.ex-scales{height:190px;display:flex;align-items:end;gap:22px;padding:30px 10px;position:relative;max-width:350px;margin:auto}.ex-scales:after{content:'';position:absolute;left:calc(50% - 6px);width:12px;height:130px;bottom:10px;background:#8e775d;border-radius:5px}.ex-scale-bar{position:absolute;left:5%;right:5%;height:9px;top:36px;transform:rotate(var(--tilt));background:#b2916b;border-radius:6px;transition:transform .3s}.ex-pan{z-index:1;flex:1;min-width:0;background:#f4ddb0;border:2px solid #c29c60;border-radius:10px 10px 40% 40%;padding:10px 5px;min-height:82px;display:grid;place-items:center}.ex-dots{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;max-width:100%;padding:5px}.ex-dots>i{display:block;flex:0 0 9px;width:9px;height:9px;background:#557a63;border-radius:50%}.ex-slots{display:flex;gap:7px;justify-content:center;flex-wrap:wrap;margin:18px 0}.ex-slot-wrap{flex:0 0 55px;min-width:0}.ex-slot-wrap>.ex-cell{width:100%;height:60px}.ex-no{display:flex;justify-content:center;flex-wrap:wrap;gap:2px;min-height:50px;margin-bottom:5px}.ex-no>span{position:relative;display:block;width:25px;height:25px}.ex-no svg{width:25px;height:25px}.ex-no b{position:absolute;inset:0;color:#9a604a;font-size:27px;text-align:center;line-height:25px}.ex-mosaic-model{display:flex;align-items:center;justify-content:center;gap:16px}.ex-mosaic-model>.ex-grid{width:130px;margin:10px 0}.ex-mosaic-model .ex-grid>span{aspect-ratio:1;border-radius:5px}.ex-mosaic-model strong{font-size:42px}.ex-mosaic .ex-grid>button{min-height:52px!important}.ex-lamp{background:#748689!important;color:#d6dbcf!important;border-radius:50%!important}.ex-lamp.on{background:#f8de86!important;color:#be8e24!important;box-shadow:0 0 12px #efce8080}.ex-turn-model{display:flex;align-items:center;justify-content:center;gap:10px}.ex-turn-model>svg{width:160px!important;height:160px!important}.ex-turn-model>svg:first-child:not(:last-child){width:45px!important;height:45px!important}.ex-note,.ex-limit{font-size:12px;text-align:center;line-height:1.5}.ex-rule-arrow{text-align:center;font-size:25px}.ex-orbits{height:285px;position:relative;margin:15px 0}.ex-orbits:before{content:'✦';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:#e4b450;font-size:30px}.ex-orbits>.ex-slot-wrap{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:calc(70px + var(--ring)*45px);height:calc(70px + var(--ring)*45px);border:1px dashed #b3c9cf;border-radius:50%;pointer-events:none}.ex-orbits .ex-cell{position:absolute;right:-17px;top:calc(50% - 20px);width:42px;height:42px;min-width:42px!important;min-height:42px!important;border-radius:50%;padding:3px;pointer-events:auto}.pre-missions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));max-width:550px;margin:24px auto}.pre-missions button{min-width:0}.pre-sections{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.pre-sections button{flex:1;min-width:90px;border:1px solid #aabf94;border-radius:14px;padding:13px 8px;background:#fff9e5;font-weight:750}.pre-sections button[aria-pressed=true]{background:#3c7352;color:#fff9dd}.pre-more{display:block;margin:25px auto;padding:14px 25px;border:1px solid #a6bb8c;background:#fff6dc;border-radius:14px}.pre-card.ex-code .pre-card-art{background-image:url('assets/workshop-v1.webp')}.pre-card.ex-space .pre-card-art{background-image:url('assets/sky-port-v1.webp')}.pre-card.ex-space .pre-card-icon{color:#466391}.pre-map-note{font-size:12px;line-height:1.5;color:#677857}.ex-game .ng-scene{padding:10px!important}@media(max-width:400px){.ex-grid{gap:5px}.ex-cell,.ex-grid>button{border-radius:10px;padding:4px;min-height:49px!important}.ex-palette>.ex-cell{width:56px;height:56px;flex-basis:56px}.ex-model-row>span{width:34px;height:34px}.ex-controls{gap:6px}.ex-controls button{min-width:65px!important;padding:8px 10px}.ex-slot-wrap{flex-basis:48px}.ex-no{min-height:55px}.pre-missions{grid-template-columns:repeat(3,minmax(0,1fr))}.pre-sections button{font-size:13px}.ex-scales{gap:18px}.ex-game .ng-heading h2{font-size:21px}.ex-orbits{transform:scale(.92);transform-origin:center}}@media(prefers-reduced-motion:reduce){.ex-game *{animation:none!important;transition:none!important}}

.ex-load-slots{display:flex;justify-content:center;gap:6px;flex-wrap:wrap}.ex-load-slots>span{width:44px;min-height:44px;display:grid;place-items:center;border:2px dashed #9cab98;border-radius:10px;background:#fffae8}.ex-load-slots .ex-dots{max-width:38px}

.ex-orbits .ex-cell{left:calc(var(--orbit-x) - 22px);top:calc(var(--orbit-y) - 22px);right:auto;width:44px;height:44px;min-height:44px!important;min-width:44px!important}
/* Illustrated launch workshop; puzzle geometry and validators are unchanged. */
.ex-group-space .ng-world{background:radial-gradient(ellipse at 85% 12%,#6875b077,transparent 42%),linear-gradient(155deg,#152e54,#234878 60%,#467387);border-color:#9ac4d0}
.ex-group-space .ng-world:before{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 9% 8%,#ffefbb 0 2px,transparent 3px),radial-gradient(circle at 80% 18%,#fff 0 1px,transparent 2px),radial-gradient(circle at 93% 42%,#d8ffff 0 2px,transparent 3px),radial-gradient(circle at 12% 59%,#fff 0 1px,transparent 2px);animation:ex-starlight 4s ease-in-out infinite alternate}
.ex-group-space .ng-world:after{content:'';position:absolute;right:-20px;top:27px;width:92px;height:92px;border-radius:50%;background:repeating-linear-gradient(155deg,#dbb4ab 0 12px,#b995a9 13px 24px);opacity:.6;box-shadow:0 0 30px #dec2d533;pointer-events:none;animation:ex-planet 13s ease-in-out infinite alternate}
.ex-group-code .ng-world{background:linear-gradient(#eaf8ecbb,#c5e1d4dd),url('assets/workshop-v1.webp') center/cover}
.ex-group-code .ex-grid{background:#769d8b77;padding:8px;border-radius:18px;box-shadow:0 5px 0 #4f766c33}.ex-group-code .ex-cell.road{background:linear-gradient(135deg,#fffbdf,#e2edcf);border-color:#99b6a1}.ex-group-code .ex-cell.rock{background:linear-gradient(#a8bdaf,#849e8f);box-shadow:inset 0 -5px 0 #78928255;color:#668476}.ex-group-code .ex-cell.road svg{filter:drop-shadow(0 3px 0 #537f7022);animation:ex-robot 3s ease-in-out infinite}.ex-program{box-shadow:inset 0 2px 5px #32564822}.ex-program>span{animation:ex-piece-in .25s ease-out}
.ex-launchpad{position:relative;width:280px;height:360px;max-width:100%;margin:0 auto}.ex-rocket-hull{position:absolute;inset:0;width:100%!important;height:100%!important;max-width:none!important;filter:drop-shadow(0 9px 8px #07172d55)}.ex-launchpad .ex-pack{position:absolute;top:116px;left:calc(50% - 100px);width:200px;margin:0;gap:3px;padding:4px;border:3px solid #6e9ca9;border-radius:13px;background:#274963;box-shadow:0 0 0 4px #d0e3da}.ex-launchpad .ex-pack>.ex-cell{min-height:0!important;height:auto!important;aspect-ratio:1;border-radius:5px;padding:0;font-size:23px;border-width:1px}.ex-launchpad .ex-pack>.rock{background:#15344c;border-color:#35566a}.ex-launchpad .ex-pack>.road{background:#e7f0d8;color:#63857b}.ex-build-count{position:absolute;right:34px;top:93px;border-radius:8px;background:#173650;color:#d7f5ea;padding:3px 7px;font-size:11px}.ex-exhaust{opacity:0;transform-origin:150px 337px}.ex-id-rocketbuild[data-phase=success] .ex-rocket-hull{animation:ex-liftoff 1.9s ease-in both}.ex-id-rocketbuild[data-phase=success] .ex-pack,.ex-id-rocketbuild[data-phase=success] .ex-build-count{animation:ex-liftoff 1.9s ease-in both}.ex-id-rocketbuild[data-phase=success] .ex-exhaust{opacity:1;animation:ex-flame .18s ease-in-out infinite alternate}.ex-id-rocketbuild .ex-pieces{margin:0 auto 8px;gap:7px}.ex-pieces>.ex-cell{width:64px;height:64px;flex-basis:64px;padding:8px;box-shadow:0 3px 0 #0d294c55}.ex-pieces>.ex-cell svg{width:100%!important;height:100%!important;max-width:48px;max-height:48px}.ex-fitted{display:grid;place-items:center;width:100%;height:100%;border-radius:4px;background:var(--part);color:#ffffffb0;animation:ex-piece-in .3s ease-out}.ex-pieces>.selected{animation:ex-selected 1.8s ease-in-out infinite}.ex-game .ng-fox .rw-fox{width:100%;height:100%}.ex-game[data-phase=success] .rw-fox{animation:rw-cheer .6s ease-in-out 3}.ex-game[data-phase=retry] .rw-fox{animation:ex-think .6s ease-in-out 1}.ex-game .ng-guide{background:#f8f7e5e8;border-radius:16px;margin:0 5px 5px}.ex-game .ng-bubble{box-shadow:none;background:transparent;border:0}
@keyframes ex-starlight{from{opacity:.45}to{opacity:1}}@keyframes ex-planet{to{transform:translate(-8px,12px) rotate(8deg)}}@keyframes ex-robot{50%{transform:translateY(-3px) rotate(2deg)}}@keyframes ex-piece-in{from{transform:scale(.8);opacity:.4}to{transform:scale(1);opacity:1}}@keyframes ex-selected{50%{box-shadow:0 0 0 3px #f5d48188,0 0 15px #f5d48166}}@keyframes ex-liftoff{0%,25%{translate:0 0}40%{translate:0 4px}100%{translate:0 -470px}}@keyframes ex-flame{to{transform:scaleY(.8)}}@keyframes ex-think{50%{rotate:-5deg}}
@media(max-width:650px),(max-height:500px) and (pointer:coarse){
body:has(.ex-game) .pre-top{margin:4px auto 7px}.pre-top:has(~main .ex-game) .adv-brand{font-size:23px}.pre-top:has(~main .ex-game) .adv-brand>.art{width:42px;height:42px}.pre-top:has(~main .ex-game) button{min-height:40px;padding:8px 12px}
body:has(.ex-game) .pre-play-nav{margin-bottom:7px}body:has(.ex-game) .pre-play-nav button{min-height:42px;padding:6px 12px}body:has(.ex-game) .pre-toolbar{margin-bottom:8px;gap:7px}body:has(.ex-game) .pre-toolbar button{min-height:44px;padding:6px 12px;font-size:14px}body:has(.ex-game) .pre-toolbar svg{width:23px;height:23px}body:has(.ex-game) #pre-mount{padding:7px;border-radius:18px}.ex-game .ng-heading h2{font-size:19px;margin:0 0 7px}.ex-game .ng-scene{padding:7px!important}.ex-scene-caption{margin-bottom:3px;font-size:11px}.ex-scene-caption>svg{width:19px;height:19px}.ex-game .ng-guide{min-height:72px;padding:0 7px 0 0}.ex-game .ng-fox{width:76px;height:76px;flex-basis:76px}.ex-game .ng-guide-text{font-size:12px}.ex-game .ng-bubble{padding:4px 7px}.ex-game .ng-bubble>b{font-size:9px}.ex-game .ng-panel{padding-top:0}
body:has(.ex-game:not([data-phase=success])) .rw-nav{display:none}.ex-game:not([data-phase=success]) .ex-controls{position:fixed;z-index:30;bottom:0;left:50%;transform:translateX(-50%);width:min(650px,100%);margin:0;padding:9px 12px calc(9px + env(safe-area-inset-bottom));background:#fff9edf5;border:1px solid #c2cfb1;border-radius:20px 20px 0 0;box-shadow:0 -4px 18px #193e3026;backdrop-filter:blur(8px)}.ex-game .ex-controls button{min-height:52px!important;flex:1;padding:6px 10px;gap:2px}.ex-game .ex-controls button:first-child{flex:1.5}.ex-controls span{font-size:23px}.ex-controls small{margin:0;font-size:12px}.ex-game[data-phase=success] .ex-controls{display:none}body:has(.ex-game) .pre-adult-hint{margin:10px auto 100px}.ex-group-code .ex-grid{max-width:280px;margin:8px auto}.ex-group-code .ex-program{min-height:44px;padding:6px;margin:8px 0}.ex-group-code .ex-palette{margin:8px auto}.ex-group-code .ex-palette>.ex-cell{width:52px;height:52px;flex-basis:52px}.ex-group-code .ex-grid>.ex-cell{min-height:44px!important}
}
@media(max-width:360px){.ex-launchpad{width:260px;height:340px}.ex-launchpad .ex-pack{top:106px}.ex-id-rocketbuild .ex-pieces{gap:5px}.ex-pieces>.ex-cell{width:60px;height:60px;flex-basis:60px}.ex-game .ng-heading h2{font-size:18px}}
.pre-calm .ex-game *,.pre-calm .ex-game *::before,.pre-calm .ex-game *::after{animation:none!important;transition:none!important}.pre-hidden .ex-game *,.pre-hidden .ex-game *::before,.pre-hidden .ex-game *::after{animation-play-state:paused!important}@media(prefers-reduced-motion:reduce){.ex-game *,.ex-game *::before,.ex-game *::after{animation:none!important;transition:none!important}}

.ex-id-rocketbuild .ex-pieces>.ex-cell{width:56px;height:60px;flex-basis:56px;padding:6px}.ex-id-rocketbuild .ex-controls button{min-width:44px!important}.ex-id-rocketbuild .ex-controls small{font-size:11px}

/* Real rocket parts replace the old two-square filling board. */
.ex-rocket-goal{text-align:center;margin:4px auto 10px;max-width:360px;font-size:15px;line-height:1.45}
.ex-rocket-workshop{position:relative;width:264px;max-width:100%;height:296px;margin:0 auto 8px;border-bottom:4px solid #9bbfc5;border-radius:45% 45% 12px 12px;background:radial-gradient(ellipse at 50% 80%,#7cadd230,transparent 70%)}
.ex-rocket-assembled{position:absolute;inset:0}
.ex-rocket-slot{position:absolute;display:grid;place-items:center;min-width:0!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;border-radius:6px;box-shadow:none!important}
.ex-rocket-slot svg{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important}
.ex-rocket-slot>span{position:absolute;font-size:22px;color:#fff8dc;line-height:1;text-shadow:0 1px 4px #183952}
.ex-rocket-slot.fitted{animation:ex-piece-in .25s ease-out}
.ex-rocket-slot.fitted>svg{filter:drop-shadow(0 2px 2px #10284155)}
.ex-part-nose{width:84px;height:70px;top:3px;left:90px}
.ex-part-cabin{width:84px;height:74px;top:63px;left:90px}
.ex-part-body{width:84px;height:98px;top:124px;left:90px}
.ex-part-left{width:68px;height:78px;top:175px;left:37px}
.ex-part-right{width:68px;height:78px;top:175px;left:159px}
.ex-part-engine{width:80px;height:64px;top:216px;left:92px}
.ex-part-antenna{width:44px;height:58px;top:70px;left:180px}
.ex-porthole{fill:#84d2e1;stroke:#fff4c8;stroke-width:6}.outline .ex-porthole{fill:transparent;stroke:#c7dcd2;stroke-width:2}
.ex-part-stripe{fill:#ffe4a3;stroke:none}.outline .ex-part-stripe{fill:transparent;stroke:#afc8c8;stroke-width:1}
.ex-assembly-count,.ex-flight-badge{position:absolute;top:18px;left:12px;background:#173a58;border:1px solid #709da9;padding:6px 9px;border-radius:9px;font-size:13px;color:#f8eac5}.ex-flight-badge{left:auto;right:10px}
.ex-rocket-flame{position:absolute;left:108px;top:252px;font-size:44px;opacity:0}
.ex-rocket-parts{margin:8px auto!important;gap:7px!important;max-width:360px}.ex-rocket-parts>.ex-cell{width:54px;height:58px;flex-basis:54px;min-height:54px!important;padding:5px}.ex-rocket-parts>.placed{opacity:.35}
.ex-charge-panel{max-width:330px;margin:10px auto 4px;background:#f5f3df;color:#315748;border-radius:13px;padding:9px;border:1px solid #a9c9be}.ex-charge-target{display:flex;justify-content:center;align-items:center;gap:12px;font-size:13px}.ex-charge-current{min-height:29px;border:1px dashed #87a394;border-radius:8px;max-width:210px;margin:5px auto}.ex-charge-buttons,.ex-charge-slots{display:flex;justify-content:center;gap:10px;margin:6px auto 0}.ex-charge-buttons button{display:flex;justify-content:center;align-items:center;min-width:64px;min-height:44px;border:1px solid #96b29e;background:#fff8da;border-radius:9px;font-size:18px}.ex-charge-slots>span{display:grid;place-items:center;width:42px;min-height:30px;border:1px dashed #91a58d;border-radius:6px}.ex-id-rocketbuild[data-phase=success] .ex-rocket-assembled{animation:ex-liftoff 1.4s ease-in both}.ex-id-rocketbuild[data-phase=success] .ex-rocket-flame{opacity:1;animation:ex-flame .2s infinite alternate}
@media(max-width:360px){.ex-rocket-workshop{height:282px}.ex-rocket-parts{gap:5px!important}.ex-rocket-parts>.ex-cell{width:48px;height:52px;flex-basis:48px;min-height:48px!important}.ex-rocket-goal{font-size:13px}.ex-charge-panel{padding:7px}}

.ex-rocket-fixed{position:absolute;display:block;opacity:.6;pointer-events:none}.ex-rocket-fixed svg{width:100%;height:100%}.ex-rocket-pilot{position:absolute;left:7px;top:63px;width:48px;height:48px;animation:ex-robot 3s ease-in-out infinite}.ex-rocket-pilot svg{width:100%;height:100%}.ex-charge-label{font-size:12px;text-align:center;margin:6px 0 2px}.ex-part-engine{top:208px}

.ex-rocket-assembled:before{content:"";position:absolute;left:105px;top:60px;width:54px;height:176px;background:var(--rocket-paint);opacity:.12;pointer-events:none}.ex-rocket-assembled.assembled:before{opacity:1}.ex-part-left{left:51px}.ex-part-right{left:145px}
