.explorer{width:9%;max-width:112px;min-width:48px;top:61%}.explorer-character{display:block;width:100%;filter:drop-shadow(0 9px 4px #35564c55);animation:characterIdle 4s ease-in-out infinite}.explorer.walking .explorer-character{animation:characterWalk .28s ease-in-out infinite alternate}.immersive-modal{width:min(1080px,96vw);background:#fff8e9;border-radius:25px}.immersive .mission{margin-bottom:12px;font-size:14px;padding:12px 16px}.immersive{padding:15px 20px}.zone-stage{display:block!important;min-height:0;aspect-ratio:3/2;width:100%;background:url('assets/lab-interior-v4.webp') center/cover;border-radius:22px;border:1px solid #d9c5a2;isolation:isolate;overflow:hidden}.zone-stage:after{display:none}.zone-3{background-image:url('assets/factory-interior-v4.webp')}.scene-haze{position:absolute;inset:0;pointer-events:none;z-index:0;background:linear-gradient(transparent 42%,#49321c12)}.scene-work{position:absolute;inset:0;z-index:1;display:block}.scene-tools{position:absolute;inset:0;z-index:3;pointer-events:none;display:block}.scene-tools button{pointer-events:auto}.guide{display:flex;gap:10px;align-items:center;min-height:100px;padding-top:10px;position:relative}.guide img{width:75px;height:105px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 4px 4px #49402533)}.guide-bubble{background:#e6efdf;border:1px solid #c6d6b9;border-radius:19px 4px 19px 19px;padding:14px 20px;color:#254e4f;font-weight:bold;line-height:1.8;font-size:14px;flex:1}.guide-bubble.speaking{animation:pop .25s ease-out}.scene-end{display:flex;gap:10px;justify-content:center}.scene-end:empty{display:none}.scene-end button{font-size:13px;padding:10px 17px}.bottle-shelf{position:absolute;left:5%;bottom:3%;width:49%;display:flex;justify-content:space-around;gap:5px;direction:rtl}.scene-bottle{background:transparent;color:#183e49;width:30%;padding:0;transition:transform .3s}.scene-bottle svg{display:block;width:100%;height:clamp(70px,11vw,140px);filter:drop-shadow(0 10px 5px #49342b44)}.scene-bottle span{display:block;padding:5px 6px;background:#fff8eadd;border-radius:10px;font-size:clamp(10px,1.3vw,14px);white-space:nowrap}.scene-bottle.selected{transform:translateY(-10px);filter:drop-shadow(0 0 8px #ffe7a7)}.scene-bottle.pouring{animation:bottlePour .65s ease-in-out}.dropper{position:absolute;right:12%;top:25%;width:12%;height:28%;background:none;padding:0;color:#284753;touch-action:none;transition:transform .5s;filter:drop-shadow(0 6px 5px #41273d33)}.dropper svg{width:100%;height:100%}.dropper span{display:block;background:#fff6e9;border-radius:10px;padding:4px;font-size:12px}.dropper:disabled{opacity:.55;cursor:default}.dropper.dispensing{transform:translate(-60%,30%) rotate(-30deg)}.beaker-wrap{position:absolute;right:25%;bottom:13%;width:21%;height:45%;z-index:2}.beaker{height:80%;width:100%;position:relative;border:5px solid #edf9f2bd;border-top:0;border-radius:5px 5px 27px 27px;background:linear-gradient(90deg,#faffef99,#ecffff22 40%,#ffffff44 70%,#87bab477);box-shadow:inset 10px 0 9px #fff5,inset -8px 0 10px #3e8b9022,0 15px 16px #422a2933;overflow:visible}.beaker:before{content:'';position:absolute;left:-7%;right:-7%;top:-5px;height:10px;border-radius:50%;border:4px solid #f1fff4bb;background:#d7ece077;z-index:3}.beaker:after{content:'';position:absolute;left:12%;top:10%;width:7%;height:58%;background:#fff6;border-radius:15px;pointer-events:none;z-index:4}.beaker-liquid{--solution:#d4e6de;position:absolute;left:3%;right:3%;bottom:3%;height:65%;border-radius:0 0 22px 22px;background:linear-gradient(100deg,#fff6,transparent 40%),var(--solution);transition:background 1s;overflow:hidden}.liquid-wave{position:absolute;left:-10%;right:-10%;top:-8px;height:20px;border-radius:50%;background:#ffffff44;animation:wave 3s ease-in-out infinite}.liquid-swirl{position:absolute;left:17%;top:15%;width:60%;height:60%;border-radius:50%;border:8px solid transparent;border-top-color:#ffffff50;opacity:0}.mixing .liquid-swirl{opacity:1;animation:spin 1.2s linear 2}.beaker-mark{position:absolute;right:10%;width:20%;height:3px;background:#fff9;z-index:4}.m1{top:25%}.m2{top:45%}.m3{top:65%}.sample-tag{margin-top:8px;background:#fff6eae8;padding:7px;border-radius:9px;color:#294f56;text-align:center;font-size:clamp(10px,1.2vw,14px)}.drop-stream{position:absolute;top:-30%;left:45%;height:90%;width:10px;opacity:0;pointer-events:none;z-index:5}.drop-stream i{position:absolute;background:#9d6ccb;width:10px;height:15px;border-radius:50% 50% 60% 60%;animation:drip .8s linear infinite}.drop-stream i:nth-child(2){animation-delay:.27s}.drop-stream i:nth-child(3){animation-delay:.54s}.drop-stream.falling{opacity:1}.garden-rewards{position:absolute;left:10%;top:33%;display:flex;width:26%;justify-content:space-around;align-items:flex-end;z-index:1}.reward-flower{position:relative;width:28%;height:100px;filter:drop-shadow(0 5px 3px #72512f33)}.pot{position:absolute;bottom:0;left:10%;right:10%;height:30%;background:linear-gradient(90deg,#eab87f,#c67d53);clip-path:polygon(0 0,100% 0,82% 100%,18% 100%);border-radius:5px}.flower-stem{position:absolute;bottom:20%;height:45%;left:46%;width:7%;background:#57936a}.flower-stem:after{content:'';position:absolute;left:3px;top:30%;width:22px;height:12px;background:#80b78c;border-radius:0 80%}.flower-head{position:absolute;top:5%;left:50%;width:35px;height:35px;transform:translateX(-50%) scale(.55);filter:grayscale(1);transition:transform 1s,filter 1s}.flower-head i{position:absolute;top:8px;left:8px;width:20px;height:30px;border-radius:70%;background:var(--flower);transform-origin:10px 10px;box-shadow:inset 2px 2px 6px #fff5}.flower-head b{position:absolute;top:7px;left:7px;width:20px;height:20px;border-radius:50%;background:#f9d075;z-index:1}.bloom .flower-head{filter:none;transform:translateX(-50%) scale(1.2)}.water-machine{position:absolute;left:12%;right:12%;bottom:20%;filter:drop-shadow(0 12px 8px #223b4733)}.water-machine svg{width:100%;display:block}.water-moving{stroke-dasharray:10 17;animation:waterflow 2s linear infinite}.water-machine .removed{opacity:0;transform:translateY(-10px);transition:opacity .8s,transform .8s}.machine-switches{position:absolute;bottom:4%;left:13%;right:13%;display:flex;gap:15px;justify-content:space-around}.lever{width:30%;background:#faf5e6ed;border-radius:14px;padding:10px 5px;color:#254c53;box-shadow:0 5px 0 #bbab90;display:flex;align-items:center;gap:8px;justify-content:center}.lever i{display:block;width:19px;height:30px;background:linear-gradient(#ec9275 0 30%,#6e888a 30% 70%,#cfdfd5 70%);border-radius:7px;transform:rotate(-25deg);transition:transform .5s}.lever.active i{transform:rotate(25deg);background:linear-gradient(#89c595 0 30%,#6e888a 30% 70%,#cfdfd5 70%)}.lever span{font-size:clamp(10px,1.2vw,14px)}.factory-play{position:absolute;inset:0}.factory-status{position:absolute;left:25%;right:25%;top:3%;display:flex;flex-direction:column;gap:9px;background:#fff8eae8;padding:10px 18px;border-radius:15px;z-index:4;box-shadow:0 4px 15px #5a483322}.factory-status>div{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:clamp(10px,1.2vw,14px)}.factory-status .meter{width:38%;min-width:60px}.production-machine{position:absolute;left:20%;bottom:28%;width:26%;height:27%;background:linear-gradient(135deg,#f6cf77,#c99943);border-radius:18px 20px 7px 8px;border:5px solid #f8e3b1;box-shadow:inset -12px 0 0 #b1863822,0 8px 0 #866c4277}.machine-window{position:absolute;right:6%;top:16%;width:40%;height:40%;border:4px solid #c3decf;border-radius:8px;background:#294e5e;overflow:hidden}.machine-window span{display:block;width:20%;height:70%;margin:10% auto;background:#78d4d6;animation:scan 1.5s ease-in-out infinite}.gear{position:absolute;color:#417c86;font-size:clamp(24px,7vw,75px);line-height:1;animation:spin 5s linear infinite;text-shadow:0 2px 2px #fff8}.g1{left:5%;top:12%}.g2{font-size:clamp(20px,4.5vw,48px);left:30%;bottom:9%;animation-direction:reverse}.machine-light{position:absolute;right:8%;bottom:12%;width:10px;height:10px;border-radius:50%;background:#dce798;box-shadow:0 0 12px #a7e0b4;animation:twinkle 2s infinite}.conveyor{position:absolute;left:23%;right:12%;bottom:19%;height:12%;background:linear-gradient(#8fb3b6,#3b6a73);border-radius:20px;border:6px solid #dfdaca;box-shadow:0 7px 0 #415e6255}.belt{position:absolute;inset:4px;background:repeating-linear-gradient(90deg,#355b65 0 14px,#63939b 14px 20px);border-radius:12px;animation:belt 3s linear infinite;background-size:40px 100%}.products{position:absolute;left:0;right:0;top:-60%;height:100%;overflow:hidden}.products i{position:absolute;left:-10%;top:0;width:11%;height:80%;background:linear-gradient(135deg,#f0b088,#d17c59);border:3px solid #fff1d4;border-radius:7px;box-shadow:3px 4px 0 #91644766;animation:product 6s linear infinite}.products i:nth-child(2){animation-delay:-2s}.products i:nth-child(3){animation-delay:-4s}.conveyor-leg{position:absolute;bottom:-75%;height:75%;width:9%;background:#46747c}.l1{left:12%}.l2{right:12%}.waste-bin{position:absolute;right:10%;bottom:3%;width:14%;height:13%;background:linear-gradient(90deg,#c2baa6,#8e9786);border:3px solid #dbe0c8;border-radius:5px 5px 13px 13px;display:flex;align-items:center;justify-content:center;z-index:3}.waste-bin span{font-size:clamp(9px,1.1vw,13px);color:#25464b;background:#f9f5dd;padding:4px;border-radius:5px}.offcuts{position:absolute;right:14%;bottom:12%;height:24%;width:8%;z-index:2}.offcuts i{position:absolute;width:12px;height:10px;background:#d19365;border:1px solid #fff0cc;animation:offcut 1.5s linear infinite}.offcuts i:nth-child(2){animation-delay:-.3s;left:50%}.offcuts i:nth-child(3){animation-delay:-.6s;left:30%}.offcuts i:nth-child(4){animation-delay:-.9s;left:70%}.offcuts i:nth-child(5){animation-delay:-1.2s;left:10%}.efficient .offcuts i:nth-child(n+2){opacity:0;animation:none}.power-link{position:absolute;left:8%;top:37%;width:17%;height:7%;background:#765f3766;border-radius:15px;transform:rotate(15deg);overflow:hidden}.power-link i{position:absolute;left:-20%;width:12px;height:8px;top:35%;background:#ddba72;animation:product 2s linear infinite}.power-link i:nth-child(2){animation-delay:-.7s}.power-link i:nth-child(3){animation-delay:-1.4s}.solar-active .power-link{background:#8abb7b55}.solar-active .power-link i{background:#dfff93;box-shadow:0 0 8px #dfff93}.factory-plant{position:absolute;left:8%;bottom:17%;font-size:clamp(22px,5vw,52px);opacity:0;transform:scale(.6);transition:all 1s}.efficient.solar-active .factory-plant{opacity:1;transform:scale(1)}.solar-panel{position:absolute;left:3%;top:21%;width:19%;height:27%;background:transparent;padding:0;transform:rotate(-7deg);color:#274954}.panel-grid{width:100%;height:75%;border:7px solid #e9dcad;border-radius:8px;background:repeating-linear-gradient(0deg,transparent 0 24%,#c0d9e5 24% 25%),repeating-linear-gradient(90deg,#2d5984 0 24%,#a6cde0 24% 25%);box-shadow:8px 10px 0 #66705c55;transition:filter .5s}.solar-panel.active .panel-grid{filter:drop-shadow(0 0 12px #fff899)}.solar-panel span,.machine-dial span{display:block;background:#fff5ddeb;border-radius:10px;font-size:clamp(9px,1.2vw,13px);padding:7px;margin-top:8px}.machine-dial{position:absolute;left:24%;bottom:32%;width:19%;background:none;color:#274954}.machine-dial i{display:block;margin:auto;width:40px;height:40px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fff2bd,#d89662);border:5px solid #e9e6cb;box-shadow:0 5px 5px #55482955;transition:transform .5s}.machine-dial i:after{content:'';display:block;margin:4px auto;width:4px;height:17px;border-radius:3px;background:#315b69;transform:rotate(-45deg);transform-origin:bottom}.machine-dial.active i{transform:rotate(90deg)}.machine-dial span{font-size:clamp(9px,1.1vw,12px);margin-top:3px}.molecule-scene .scene-work{display:flex;justify-content:center;align-items:center;padding-top:18%}.molecule-scene .scene-tools{display:flex;justify-content:center;align-items:flex-end;gap:10px;padding:0 6% 3%;flex-wrap:wrap}.molecule-scene .drop{width:clamp(175px,33vw,330px);height:clamp(115px,17vw,180px);background:#d4e9e3dc;box-shadow:0 12px 0 #538f9388,0 25px 25px #41382a44}.molecule-scene .scene-work p{background:#fff9e8dd;border-radius:12px;padding:7px;font-size:12px}.molecule-scene .scene-tools .atom{width:clamp(40px,6vw,65px);height:clamp(40px,6vw,65px);font-size:20px}.molecule-scene .primary,.molecule-scene .secondary{font-size:clamp(10px,1.2vw,14px);padding:10px 13px}.molecule-success svg{animation:moleculeReveal .8s ease-out}.celebration{position:absolute;inset:0;z-index:8;pointer-events:none;overflow:hidden}.celebration i{font-style:normal;position:absolute;left:var(--x);bottom:20%;font-size:28px;color:var(--c);animation:celebrate 2s var(--d) ease-out both}.shake{animation:shake .4s}.immersive .stage .beaker-wrap,.immersive .stage .water-machine{z-index:2}button[disabled]{cursor:default}@keyframes characterIdle{50%{transform:translateY(-3px)}}@keyframes characterWalk{to{transform:translateY(-5px) rotate(2deg)}}@keyframes pop{from{transform:scale(.98)}to{transform:scale(1)}}@keyframes bottlePour{50%{transform:translate(20px,-20px) rotate(-25deg)}}@keyframes wave{50%{transform:translateX(5px) rotate(3deg)}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes drip{from{top:0;opacity:1}to{top:100%;opacity:.1}}@keyframes waterflow{to{stroke-dashoffset:-54}}@keyframes scan{50%{transform:translateX(20px)}}@keyframes belt{to{background-position:80px 0}}@keyframes product{to{left:110%}}@keyframes offcut{from{top:0;transform:rotate(0)}to{top:100%;transform:rotate(180deg)}}@keyframes moleculeReveal{from{transform:scale(.5);opacity:0}to{transform:scale(1);opacity:1}}@keyframes celebrate{to{transform:translateY(-230px) rotate(90deg);opacity:0}}@keyframes shake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}@media(max-width:600px){.immersive{padding:10px}.immersive .mission{font-size:12px;padding:10px}.immersive-modal .dlghead{padding:12px 15px}.immersive-modal .dlghead h2{font-size:21px}.zone-stage{aspect-ratio:1.25;min-height:0;background-size:cover}.guide{gap:7px;padding-top:7px;min-height:85px}.guide img{width:54px;height:85px}.guide-bubble{padding:9px 12px;font-size:12px}.scene-end button{padding:8px 12px;font-size:11px}.garden-rewards{left:6%;top:33%;width:30%}.reward-flower{height:65px}.flower-head{width:25px;height:25px;transform:translateX(-50%) scale(.4)}.bloom .flower-head{transform:translateX(-50%) scale(.8)}.dropper{right:8%;top:25%;width:15%;height:24%}.dropper span{font-size:10px}.beaker-wrap{width:24%;right:23%;height:43%;bottom:17%}.beaker{border-width:3px}.sample-tag{font-size:10px;padding:5px}.bottle-shelf{left:3%;bottom:3%;width:53%}.scene-bottle svg{height:70px}.molecule-scene .scene-work{padding-top:5%}.molecule-scene .scene-tools{padding:0 3% 3%;gap:6px}.molecule-scene .drop{width:180px;height:120px}.molecule-scene .scene-work p{font-size:10px;margin:8px}.water-machine{left:4%;right:4%;bottom:25%}.machine-switches{left:5%;right:5%;gap:7px}.lever{padding:7px 3px;gap:4px}.lever i{width:13px;height:23px}.factory-status{left:20%;right:10%;top:3%;padding:8px;gap:7px}.factory-status>div{font-size:9px}.production-machine{border-width:3px}.machine-dial i{width:27px;height:27px;border-width:3px}.machine-dial i:after{height:12px;width:3px}.panel-grid{border-width:4px}.solar-panel{left:2%;top:25%;width:20%;height:25%}.machine-dial{left:24%;bottom:30%;width:22%}.waste-bin{height:12%}.conveyor{border-width:3px}.offcuts i{width:6px;height:6px}.explorer{width:11%;min-width:45px}.beaker-liquid{border-radius:0 0 19px 19px}}@media(prefers-reduced-motion:reduce){.zone-stage *,.explorer-character{animation:none!important;transition:none!important}}
/* Place interactive controls on the illustrated factory machinery. */
.zone-3 .conveyor{left:20%;right:20%;bottom:43%;height:6%;background:transparent;border:0;box-shadow:none}.zone-3 .conveyor-leg{display:none}.zone-3 .belt{opacity:.35;inset:0}.zone-3 .products{top:-80%;height:120%}.zone-3 .production-machine{left:3%;top:22%;bottom:auto;width:19%;height:28%;background:none;border:0;box-shadow:none}.zone-3 .g1{left:10%;top:10%;font-size:clamp(30px,7vw,82px);color:#bc974c}.zone-3 .g2,.zone-3 .machine-window{display:none}.zone-3 .machine-light{left:65%;top:50%}.zone-3 .machine-dial{left:6%;bottom:38%;width:21%}.zone-3 .solar-panel{left:43%;top:20%;width:17%;height:23%}.zone-3 .power-link{left:24%;top:35%;width:27%;transform:rotate(0)}.zone-3 .waste-bin{right:12%;bottom:29%;height:11%}.zone-3 .offcuts{right:16%;bottom:35%;height:20%}.zone-3 .factory-plant{left:10%;bottom:12%}@media(max-width:600px){.zone-3 .machine-dial{left:3%;bottom:36%;width:26%}.zone-3 .solar-panel{left:43%;top:22%;width:20%;height:22%}.zone-3 .factory-status{left:22%;right:5%}.zone-3 .products i{border-width:2px}}
