:root{font-family:ui-rounded,'Trebuchet MS',system-ui,sans-serif;color:#fff7e2;background:#112d38;--gold:#ffda67;--ink:#173b43}*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:var(--ink);background:#fff8e7;border:1px solid #ffffff66;border-radius:18px;padding:11px 16px;min-height:46px;font-weight:800;transition:background .18s,box-shadow .18s}button:hover{background:#ffe7a2}button:focus-visible,a:focus-visible,[role=button]:focus-visible{outline:4px solid #6ee4ff;outline-offset:4px}button:disabled{opacity:.3;cursor:default}button[hidden],[hidden]{display:none!important}#universe,.museum,#scene,#materialBackdrop{position:fixed;inset:0;width:100%;height:100%;overflow:hidden}.museum{isolation:isolate}#scene{touch-action:pan-y}#materialBackdrop{background:#142f3c;pointer-events:none}.material-grain{position:absolute;inset:-15%;background-image:url('assets/textures.webp');background-size:200% 200%;filter:blur(13px);opacity:.24;transform:scale(2.3);transition:opacity .4s}.metal{background-position:0 100%}.rubber{background-position:0 0}.dirt{background-position:100% 0}.skin{background-position:100% 100%}#materialBackdrop:after{content:'';position:absolute;inset:0;background:linear-gradient(#0b243c70,transparent 50%,#0a243bc4)}header{position:fixed;z-index:10;top:0;left:0;right:0;display:flex;gap:24px;align-items:start;padding:max(18px,env(safe-area-inset-top)) 26px 12px;background:linear-gradient(#0d283ce8,#0d283c92,transparent);pointer-events:none}header>*{pointer-events:auto}.brand{display:flex;align-items:center;gap:10px;color:#fff3ce;text-decoration:none;font-size:28px;padding-top:2px;flex-shrink:0}.brand span{font-size:12px;line-height:1.2}.brand b{display:block;font-size:17px}.location{min-width:0;flex:1}.intro{display:flex;align-items:center;gap:12px}h1{font-size:25px;letter-spacing:-.5px;margin:0 0 8px}#step{font-size:11px;color:#c2dcd5;border:1px solid #b9e2d744;border-radius:14px;padding:5px 8px;white-space:nowrap}#trail{display:flex;align-items:center;gap:2px;white-space:nowrap;overflow-x:auto;scrollbar-width:none;max-width:100%;padding:3px 3px 8px}#trail button{background:transparent;color:#d2e5df;border:0;padding:4px 7px;min-height:30px;font-size:12px;border-radius:7px}#trail button:hover{background:#ffffff1f}#trail .current{color:var(--gold);font-weight:900}#trail .crumb-arrow{color:#d0e2da88;font-size:18px;padding:0 2px}#help{border-radius:50%;width:44px;height:44px;min-height:44px;padding:0;color:#fff5da;background:#ffffff1a;font-size:22px}.home-stage{position:absolute;width:min(100vw,150dvh);aspect-ratio:3/2;left:50%;top:47%;transform:translate(-50%,-50%)}.home-stage .photo{position:absolute;width:100%;height:100%;object-fit:contain}.home-backdrop{position:absolute;inset:-8%;width:116%;height:116%;object-fit:cover;filter:blur(22px) brightness(.55);opacity:.8}.driver-motion{position:absolute;inset:0;width:100%;height:100%;clip-path:ellipse(4.9% 8.6% at 29.8% 26.5%);transform-origin:30% 33.5%;animation:driverNod 6s ease-in-out infinite alternate;pointer-events:none}@keyframes driverNod{from{transform:rotate(-1deg)}to{transform:rotate(1deg)}}.truck-spark{position:absolute;left:22.5%;top:8.3%;width:2%;height:2%;border-radius:50%;background:#ffd05a;box-shadow:0 0 25px 9px #ffd05a77;animation:beacon 2.8s ease-in-out infinite;pointer-events:none}@keyframes beacon{50%{opacity:.2;box-shadow:0 0 10px 3px #ffd05a22}}.zoom-marker{background:#173c48e8;border:2px solid #fff0b6;color:white;font-size:14px;font-weight:800;border-radius:25px;box-shadow:0 0 0 6px #ffdb6b8c;animation:pulse 2.7s ease-out infinite;padding:11px 14px;white-space:nowrap}
.hotspot{position:absolute;transform:translate(-50%,-50%);z-index:2}
.zoom-marker::before{content:"🔎";display:inline-block;margin-right:6px}
.zoom-marker:hover,.svg-zoom-target:hover .zoom-marker,.svg-zoom-target:focus-visible .zoom-marker{background:#286b69;box-shadow:0 0 0 10px #ffe078a6}
.zoom-marker-slot{overflow:visible}
.zoom-marker-slot .zoom-marker{display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:0 8px;font-size:18px;line-height:1}
.svg-zoom-target{cursor:zoom-in;outline:none}
.zoom-marker-travel::before,.zoom-marker-travel .zoom-marker::before{content:none}
@media(max-width:650px){.zoom-marker-slot .zoom-marker{font-size:21px}}
@media(prefers-reduced-motion:reduce){.zoom-marker{animation:none}}
@keyframes pulse{0%{box-shadow:0 0 0 4px #ffdf6ba6}80%,100%{box-shadow:0 0 0 22px #ffdf6b00}}.texture{position:absolute;inset:-5%;background-image:url('assets/textures.webp');background-size:200% 200%;animation:drift 10s ease-in-out infinite alternate}@keyframes drift{from{transform:scale(1) rotate(-1deg)}to{transform:scale(1.05) rotate(1deg)}}.surface-shade{position:absolute;inset:0;background:linear-gradient(#102e3b66,transparent 30%,#102e3b55 65%,#102e3b);pointer-events:none}#scene>svg{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);width:min(calc(100vw - 140px),calc((100dvh - 250px) * 1.5));height:auto;max-height:calc(100dvh - 250px);overflow:visible}#sceneTag{position:fixed;top:108px;right:26px;border:1px solid #c7e5da3b;border-radius:20px;padding:7px 10px;background:#133b4666;color:#e7eee4;font-size:9px;letter-spacing:1px;pointer-events:none}.flashlight{position:fixed;z-index:12;left:22px;top:46%;display:flex;align-items:center;flex-direction:column;gap:3px;background:#153d4ee8;color:white;border:2px solid #ffe19c;padding:12px 8px;border-radius:22px;box-shadow:0 0 0 5px #ffdc6b44;animation:pulse 4s ease-out infinite;width:76px}.flash-icon{font-size:32px;display:block;transform:rotate(-35deg)}#lightLabel{font-size:10px}.flashlight[aria-pressed=true]{background:#ffe18b;color:#203d42;box-shadow:0 0 30px #ffe9a966}.flashlight:disabled{display:none}#beam{position:fixed;inset:0;background:conic-gradient(from 64deg at 3% 47%,transparent 0deg,#fff6c32b 12deg,#fff9d65e 26deg,#fff6c32b 40deg,transparent 50deg);mix-blend-mode:screen;pointer-events:none;z-index:1}.dock{position:fixed;z-index:6;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(760px,calc(100vw - 330px));border:1px solid #c0e8d43d;background:#0c293ae8;box-shadow:0 12px 50px #0003;backdrop-filter:blur(16px);border-radius:24px;padding:15px 20px}.discovery h2{font-size:21px;margin:3px 0 5px;letter-spacing:-.3px}.discovery p{font-size:14px;line-height:1.4;color:#d1e2dd;margin:0}.eyebrow{font-size:8px;letter-spacing:1.6px;color:#96c7b5;font-weight:bold}#choices{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}#choices button{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;font-size:13px;min-height:42px;padding:8px 12px;border-radius:14px;background:#f9f1d8;border:2px solid transparent}.swatch{width:13px;height:13px;border-radius:50%;border:1px solid #102f3c33;flex-shrink:0}#choices .chosen{border-color:#ffe075;background:#c8e9ce}.navigation{position:fixed;right:22px;bottom:28px;display:flex;flex-direction:column;gap:8px;z-index:12}.navigation button{width:52px;height:52px;font-size:26px;padding:0;border-radius:17px;background:#fff5d9;box-shadow:0 5px 16px #0003}.zoom-console #next{background:var(--gold)}#context{position:fixed;left:20px;bottom:24px;width:132px;height:108px;z-index:5;pointer-events:none}.context-photo{width:115px;height:78px;border-radius:14px;border:2px solid #d6f0e5aa;background-image:url('assets/textures.webp');background-size:200% 200%;box-shadow:0 8px 30px #0005}.context-focus{position:absolute;left:30px;top:20px;width:31px;height:31px;border:2px solid var(--gold);border-radius:50%;box-shadow:0 0 0 30px #10313b20}.context-lens{position:absolute;right:0;top:45px;background:#ffdd77;color:#1a4145;padding:2px 7px;border-radius:50%;font-size:25px}#contextLabel{font-size:10px;display:block;margin-top:7px;color:#d8ebe3}#context svg{position:absolute;left:33px;top:-35px;width:150px;height:80px;overflow:visible}#context svg path{stroke:#e5d88b80;stroke-width:1.5;stroke-dasharray:4 5;fill:none}#inspector{position:fixed;z-index:14;left:50%;bottom:235px;transform:translateX(-50%);background:#fff0c6;color:#173b43;border:1px solid #ffe292;border-radius:18px;padding:14px 18px;max-width:520px;width:max-content;max-width:min(520px,calc(100vw - 40px));font-size:14px;box-shadow:0 12px 35px #0005}#inspector button{font-size:12px;margin-left:8px;padding:6px 10px;min-height:36px;background:var(--gold)}#guide{position:fixed;right:90px;bottom:250px;display:flex;align-items:end;max-width:270px;pointer-events:none;animation:peek .6s ease-out;z-index:9;background:#fff0c4ed;color:#244247;border-radius:18px;padding:5px 24px 0 0;box-shadow:0 8px 30px #0003}#guide img{height:100px;width:70px;object-fit:cover;object-position:top;mix-blend-mode:multiply}#guideText{font-size:13px;align-self:center;padding:10px;font-weight:800}#dismiss{position:absolute;right:1px;top:0;pointer-events:auto;background:transparent;border:0;min-height:28px;padding:1px 8px}@keyframes peek{from{transform:translateX(100%);opacity:0}to{transform:translateX(0);opacity:1}}.particle{cursor:pointer}.grab{cursor:grab;touch-action:none}.grab:active{cursor:grabbing}.model-label{font:700 19px 'Trebuchet MS',sans-serif;fill:#fffef2;text-anchor:middle;pointer-events:none}.hint-label{font:16px 'Trebuchet MS',sans-serif;fill:#c5e0db;text-anchor:middle}.mini{fill:#bdd9d5;font:14px sans-serif;text-anchor:middle}.bond{stroke:#a5ecdf;stroke-width:8;stroke-linecap:round;opacity:.65}.bond-halo{stroke:#80f7e1;stroke-width:25;opacity:.09;stroke-linecap:round}.shared-electron{fill:#e9ffff;filter:drop-shadow(0 0 7px #8bffe2);pointer-events:none}.model-title{font:700 25px 'Trebuchet MS',sans-serif;fill:#fff6ca;text-anchor:middle}.model-neighbors{pointer-events:none}.ghost-layer{position:absolute;inset:0;pointer-events:none!important;z-index:4}.ghost-layer *{pointer-events:none!important}.ghost-layer>svg{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);width:min(calc(100vw - 140px),calc((100dvh - 250px) * 1.5));height:auto;max-height:calc(100dvh - 250px)}.arrival{animation:arrive .6s ease-out}@keyframes arrive{from{opacity:.15}to{opacity:1}}#questionDialog{border:1px solid #ebdba0;background:#fff8e7;color:#183b40;border-radius:24px;width:min(430px,calc(100vw - 24px));padding:28px;box-shadow:0 20px 80px #0008}#questionDialog::backdrop{background:#061c30bb;backdrop-filter:blur(8px)}#closeQuestion{position:absolute;right:10px;top:6px;border:0;background:transparent;font-size:24px;padding:4px;min-height:35px}#questionDialog h2{margin-top:0}form{display:grid;gap:12px}input{font:inherit;min-width:0;padding:13px;border:1px solid #8fa9a1;border-radius:12px}.primary{background:var(--gold)}small{font-size:11px;color:#60746e}body.paused *{animation-play-state:paused!important}@media(max-width:650px){header{padding:12px 13px;gap:10px}.brand{font-size:22px}.brand span{display:none}.location{padding-top:2px}h1{font-size:18px;margin-bottom:6px;letter-spacing:-.4px}#step{font-size:9px;padding:3px 6px}#trail button{font-size:10px;padding:3px 4px;min-height:28px}#trail .crumb-arrow{font-size:15px;padding:0}#help{width:34px;height:34px;min-height:34px;font-size:18px}#sceneTag{right:12px;top:89px;font-size:7px;padding:5px 7px}.home-stage{width:100vw;top:43%}.hotspot{font-size:10px;min-height:42px;padding:9px 8px}.flashlight{left:12px;top:28%;width:58px;padding:9px 5px;border-radius:17px}.flash-icon{font-size:28px}#lightLabel{font-size:8px}.dock{left:12px;right:77px;width:auto;bottom:max(12px,env(safe-area-inset-bottom));transform:none;padding:12px 13px;border-radius:19px}.discovery h2{font-size:17px;margin-bottom:4px}.discovery p{font-size:12px;line-height:1.35}.eyebrow{font-size:7px;letter-spacing:1px}#choices{gap:5px;margin-top:9px}#choices button{font-size:11px;padding:7px 8px;min-height:39px;flex-basis:40%;border-radius:11px}.navigation{right:12px;bottom:max(16px,env(safe-area-inset-bottom));gap:7px}.navigation button{width:49px;height:49px;border-radius:15px}.zoom-console #next{font-size:23px}#scene>svg,.ghost-layer>svg{top:43%;width:calc(100vw - 32px);max-height:calc(100dvh - 290px)}#context{left:12px;bottom:240px;width:92px;height:76px}.context-photo{width:80px;height:54px;border-radius:10px}.context-focus{width:23px;height:23px;left:20px;top:14px}#contextLabel{font-size:8px;margin-top:4px}.context-lens{font-size:17px;top:30px;padding:1px 6px}#context svg{width:90px;height:50px;left:30px;top:-20px}#inspector{font-size:12px;bottom:240px;width:calc(100vw - 100px);left:12px;transform:none;padding:10px;max-width:310px}#inspector button{margin:7px 0 0;display:block}#guide{right:16px;bottom:310px;max-width:210px}#guide img{width:50px;height:75px}#guideText{font-size:11px;padding:8px}.model-label{font-size:25px}.hint-label{font-size:22px}.model-title{font-size:30px}}@media(max-height:620px) and (min-width:651px){header{padding-top:10px}h1{font-size:20px}#scene>svg,.ghost-layer>svg{top:46%;width:min(60vw,calc((100dvh - 150px)*1.5));max-height:calc(100dvh - 150px)}.dock{padding:10px 15px;bottom:10px}.discovery p{font-size:11px}.discovery h2{font-size:17px}#choices{margin-top:7px}#choices button{min-height:34px;font-size:11px}#context{bottom:15px}#sceneTag{top:90px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

@media(max-width:650px){.home-stage [data-action="mat:dirt"]{left:53%!important}}

@media(max-width:650px){body[data-level="0"] .dock #choices,body[data-level="0"] .dock #factTitle,body[data-level="0"] .dock .eyebrow{display:none}body[data-level="0"] .dock{padding:11px 13px}body[data-level="0"] .dock #fact{font-size:12px}.dock .eyebrow{display:none}}
/* The third experience pass: one visual navigation rail, local annotations. */
@font-face{font-family:Adventure;src:url('assets/fredoka.ttf') format('truetype');font-weight:400 800;font-display:swap}:root{font-family:Adventure,'Comic Sans MS',ui-rounded,sans-serif}.model-label,.hint-label,.model-title,.mini{font-family:Adventure,'Comic Sans MS',sans-serif}.model-label{font-weight:600;paint-order:stroke;stroke:#153a4744;stroke-width:1px}.dark-label{fill:#173945;stroke:#fff9e155;stroke-width:1px}.brand{width:94px;height:61px;position:relative;padding:0}.brand img{width:44px;height:44px;object-fit:cover;object-position:50% 12%;border-radius:50%;border:2px solid #ffdd86}.brand .brand-scope{display:block;position:absolute;font-size:25px;left:35px;top:7px}.brand .brand-truck{display:block;position:absolute;font-size:29px;left:61px;top:18px}.location,#sceneTag,#context{display:none!important}header{justify-content:space-between;background:linear-gradient(#102d3899,transparent);padding:16px 22px;pointer-events:none}header .brand,header #help{pointer-events:auto}#help{width:auto;height:auto;min-height:42px;border-radius:24px;padding:9px 15px;font-size:13px;box-shadow:0 0 0 4px #ffde6c33;animation:pulse 5s ease-out infinite}#help span{font-size:19px}body[data-level="0"] header{background:none}.home-title{position:absolute;left:55%;top:12%;font-size:19px;line-height:1.2;color:#173e44;text-shadow:0 1px #fff9;pointer-events:none}.home-title b{font-size:clamp(22px,3vw,38px);font-weight:600}.scope-cue{position:fixed;left:22px;bottom:168px;display:flex;align-items:center;gap:10px;color:#fff2bc;font-size:15px;pointer-events:none}.scope-cue img{width:80px;height:85px;object-fit:contain}.driver-crop{position:absolute;left:25%;top:18%;width:10%;height:17%;overflow:hidden;border-radius:46%;transform-origin:50% 91%;animation:headTilt 6s ease-in-out infinite alternate;will-change:transform;isolation:isolate;pointer-events:none}.driver-crop .driver-motion{position:absolute;width:1000%;height:588.235%;max-width:none;inset:auto;left:-250%;top:-105.882%;clip-path:none;animation:none;transform:none;pointer-events:none;backface-visibility:hidden}@keyframes headTilt{from{transform:rotate(-1deg)}to{transform:rotate(1deg)}}.home-backdrop{filter:blur(10px) brightness(.55);transform:translateZ(0)}.truck-spark{animation:beacon 4s ease-in-out infinite;box-shadow:0 0 12px 3px #ffd05a66}.dock{bottom:125px;width:min(620px,calc(100vw - 240px));padding:12px 17px;z-index:6}.dock .eyebrow,.dock #factTitle{display:none}.dock #fact{font-size:14px;line-height:1.35}#choices{margin-top:9px}#choices button{font-family:Adventure,sans-serif;font-weight:500;font-size:14px}#choices button[data-el="H"]{color:#193744}#focusLabel{position:fixed;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:9px;z-index:5;pointer-events:none;white-space:nowrap;text-shadow:0 2px 7px #102d38;background:#133d4d88;border:1px solid #b9e3d82e;padding:7px 14px;border-radius:25px;backdrop-filter:blur(5px)}#focusName{font-size:25px;font-weight:500}#focusIcon{font-size:25px}#phaseBadge{font-size:12px;color:#ffe597}#focusLabel svg{position:absolute;left:45%;top:30px;width:65px;height:40px;overflow:visible}#focusLabel svg path{fill:none;stroke:#ffe697aa;stroke-width:2;stroke-linecap:round}#atomToggle{position:fixed;left:50%;transform:translateX(-50%);z-index:9;display:flex;gap:5px;white-space:nowrap;background:#173c4dcc;border-radius:20px;padding:4px}#atomToggle button{min-height:35px;font-size:12px;border-radius:16px;padding:6px 11px;background:#d7e9e1}#atomToggle button.chosen{background:#ffe08b;border-color:#ffe99f}#scene>svg,.ghost-layer>svg{top:42%;width:min(calc(100vw - 150px),calc((100dvh - 310px)*1.5));max-height:calc(100dvh - 310px)}.zoom-console{position:fixed;bottom:max(14px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:14;display:flex;align-items:center;gap:14px;width:min(1000px,calc(100vw - 32px));padding:9px 12px;background:#0d2c3bea;border:1px solid #c9ead83b;border-radius:22px;backdrop-filter:blur(12px)}#trail{flex:1;display:flex;align-items:center;gap:15px;overflow:auto;padding:2px 4px;scroll-behavior:smooth;min-width:0}#trail .picture-tile{position:relative;width:90px;min-width:90px;height:76px;border:1px solid #bfd9d84d;padding:4px;background:#204653;border-radius:12px;color:#e7f7f1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-height:0}#trail .picture-tile.current{border:2px solid #ffdf77;background:#375951}#trail .tile-picture{position:relative;display:block;width:76px;height:46px;overflow:hidden;border-radius:7px;background:#163642}#trail .tile-picture img{width:100%;height:100%;object-fit:cover}#trail .tile-picture>svg{width:100%;height:100%}.tile-texture{display:block;width:100%;height:100%;background-image:url('assets/textures.webp');background-size:200% 200%}.tile-symbol{font-size:23px;display:grid;place-items:center;height:100%}.trail-lens{position:absolute;width:20px;height:20px;border:1.5px solid #ffe89e;border-radius:50%;left:39%;top:27%;box-shadow:0 0 0 60px #091e3011}.tile-caption{font-size:10px;overflow:hidden;max-width:78px;text-overflow:ellipsis}.navigation{position:static;display:flex;flex-direction:row;gap:6px;flex-shrink:0}.navigation button{width:45px;height:45px;font-family:Adventure,sans-serif;font-size:22px;min-height:45px;border-radius:14px}.navigation #home{font-size:24px}#zoomConnections{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:4}#beam{background:none;mix-blend-mode:screen;z-index:1}#beam>svg{width:100%;height:100%;position:absolute;inset:0}.flashlight{left:-16px;transform:translateY(-50%);width:100px;padding:5px 0 6px;gap:0;top:42%;border-radius:0 20px 20px 0;background:#143b48e6;border-left:0;box-shadow:0 0 0 4px #ffdf6b55}.lamp-art{width:100px;height:60px;margin-left:-6px}#lightLabel{margin-left:20px;font-size:11px}.flashlight[aria-pressed=true]{background:#1c5b63;box-shadow:0 0 22px #ffdf6b66;color:#ffe4a4}.flash-icon{display:none}#inspector{bottom:auto;transform:none;max-width:260px;width:max-content;padding:12px 15px;font-family:Adventure,sans-serif;font-size:14px;line-height:1.35;border-radius:17px;z-index:20;box-shadow:0 8px 25px #0004}#inspector b,#inspector span{display:block}#inspector b{font-weight:600;font-size:17px;margin-bottom:4px}#inspector button{margin:8px 0 0}#guide{bottom:240px;right:25px}body[data-material="metal"][data-structure="paint"] #materialBackdrop{background:#9b873d}body[data-material="metal"][data-structure="paint"] .material-grain{opacity:.63;filter:blur(16px)}body[data-material="metal"][data-structure="paint"] #materialBackdrop:after{background:linear-gradient(#38392477,#8a793b22 45%,#252f3599)}body[data-structure="water"] #materialBackdrop{background:#315a67}body[data-structure="water"] .material-grain{opacity:.25}body[data-structure="steel"] #materialBackdrop{background:#354958}body[data-structure="steel"] .material-grain{filter:grayscale(.9) blur(16px);opacity:.22}body[data-structure="quartz"] #materialBackdrop{background:#3b4544}.material-grain{opacity:.36;filter:blur(14px)}.model-neighbors .model-label{fill:#d6f2e2;stroke:none}.local-electrons{pointer-events:none}.home-stage{top:43%}body[data-level="0"] .dock{width:min(680px,calc(100vw - 260px));bottom:125px}.ghost-layer{contain:paint;backface-visibility:hidden}
@media(max-width:650px){header{padding:12px}.brand{width:83px;height:50px}.brand img{width:35px;height:35px}.brand .brand-scope{font-size:21px;left:28px;top:4px}.brand .brand-truck{font-size:25px;left:50px;top:13px}#help{padding:7px 11px;font-size:11px;min-height:36px}#help span{font-size:16px}.home-title{left:36%;top:12%;font-size:13px}.home-title b{font-size:22px}.home-stage{top:44%}.scope-cue{left:14px;bottom:185px;font-size:11px;gap:5px}.scope-cue img{width:58px;height:65px}.dock,body[data-level="0"] .dock{left:12px;right:12px;transform:none;width:auto;bottom:114px;padding:10px 12px;border-radius:17px}.dock #fact{font-size:12px}#choices button{font-size:12px;flex-basis:40%;min-height:36px;padding:6px 7px}body[data-level="0"] .dock{bottom:114px}body[data-level="0"] .dock #choices{display:none}#focusLabel{padding:5px 9px;max-width:calc(100vw - 24px);gap:5px}#focusName{font-size:19px}#focusIcon{font-size:19px}#phaseBadge{font-size:9px}#focusLabel svg{height:28px;width:45px;top:23px}#atomToggle button{font-size:10px;min-height:30px;padding:5px 8px}#scene>svg,.ghost-layer>svg{top:39%;width:calc(100vw - 26px);max-height:calc(100dvh - 350px)}.zoom-console{left:8px;right:8px;width:auto;transform:none;bottom:max(8px,env(safe-area-inset-bottom));padding:7px;gap:7px;border-radius:18px}#trail{gap:9px;padding:0}#trail .picture-tile{width:56px;min-width:56px;height:63px;padding:3px;border-radius:10px}#trail .tile-picture{width:46px;height:36px}.tile-caption{font-size:7px;max-width:46px}.trail-lens{width:14px;height:14px;left:34%;top:25%}.tile-symbol{font-size:18px}.navigation{gap:4px;flex-direction:column}.navigation button{width:34px;height:24px;min-height:24px;font-size:17px;border-radius:8px}.navigation #home{font-size:17px}#light{width:77px;left:-15px}.lamp-art{width:78px;height:49px}#lightLabel{font-size:9px}.model-label{font-size:23px}.hint-label{font-size:20px}#guide{bottom:250px;max-width:175px;right:12px}#inspector{font-size:12px;max-width:220px;padding:10px}#inspector b{font-size:15px}.home-stage [data-action="mat:dirt"]{left:53%!important}}
@media(max-height:620px) and (min-width:651px){.dock{bottom:105px;max-width:540px}.dock #fact{font-size:11px}#choices button{font-size:11px;min-height:30px}.scope-cue{bottom:140px}#scene>svg,.ghost-layer>svg{top:41%;max-height:calc(100dvh - 250px);width:min(65vw,calc((100dvh - 250px)*1.5))}.home-title{top:12%;left:57%}.home-title b{font-size:24px}.zoom-console{padding:5px 10px}#trail .picture-tile{height:66px}}
[data-action="electron"] .model-label{fill:#ffe66d;stroke:#342c16;stroke-width:2.2px;font-size:15px;paint-order:stroke;dominant-baseline:central}[data-action="electron"] text{transform:translateY(-5px)}.shared-electron{fill:#ffe26c;filter:drop-shadow(0 0 5px #ffe26c66)}.tip-extra{font-size:.9em;margin-top:6px;border-top:1px solid #b9ac7e44;padding-top:5px}.nucleon-neighbor{pointer-events:none}
body[data-structure="paint"]:not([data-level="2"]):not([data-level="1"]):not([data-level="0"]) #materialBackdrop{background:#53604a}body[data-structure="paint"]:not([data-level="2"]):not([data-level="1"]) .material-grain{opacity:.30}
@media(max-width:650px){.home-title{color:#fff4cc;text-shadow:0 2px 5px #15323f}.tip-extra{font-size:11px}}
.dark-label{stroke:#fff7dc;stroke-width:3px;paint-order:stroke;fill:#163440}
/* Clear silhouettes and visual continuity across magnifications. */
.brand{width:auto;height:76px;gap:8px;align-items:center}.brand-emblem{display:block;width:100px;height:78px}.brand-emblem>svg{width:100%;height:100%}.brand .brand-wordmark{display:flex;flex-direction:column;gap:0;transform:rotate(-3deg);line-height:1.03;min-width:137px}.brand-wordmark>span{font-size:14px;color:#e5eee0}.brand-wordmark b{font-size:26px;letter-spacing:-1px;color:#ffe527;text-shadow:1px 2px #173946}.brand-wordmark em{font-size:14px;font-style:normal;letter-spacing:4px;color:#b6ecdf;margin-top:4px}.brand img{border:0}.brand:hover{filter:brightness(1.12)}
#light.flashlight,#light.flashlight[aria-pressed=true]{width:143px;left:-16px;border:0;border-radius:0;padding:0;background:transparent;box-shadow:none;animation:none;overflow:visible}#light .lamp-art{width:150px;height:85px;margin:0;filter:drop-shadow(0 0 7px #ffd95655);transition:filter .25s}#light:hover .lamp-art,#light[aria-pressed=true] .lamp-art{filter:drop-shadow(0 0 15px #ffe28b99)}#lightLabel{display:none}
.navigation button{width:53px;height:53px;min-height:53px;padding:6px;display:grid;place-items:center}.navigation button svg{width:37px;height:37px}.navigation button:disabled{display:grid!important;opacity:.3;cursor:not-allowed}.navigation #home{display:none!important}#trail{gap:29px;overflow-y:hidden}#trail .tile-picture{overflow:visible}.trail-lens{border-width:2.5px;box-shadow:0 0 0 2px #142f3c55}.trail-lens:after{content:'';position:absolute;width:10px;height:3px;right:-8px;bottom:-4px;background:#ffe89e;transform:rotate(44deg);border-radius:2px}#trail .future{opacity:.38}#trail .future:hover{opacity:.8}#zoomConnections{z-index:15}#focusLabel svg{top:calc(100% + 12px);height:46px;width:72px}#focusLabel svg path{stroke-width:4;stroke:#ffe58b}#focusLabel svg .arrow-head{fill:#ffe58b;stroke-width:1}.gluon-tube{cursor:pointer}.gluon-tube:hover{filter:drop-shadow(0 0 7px #ffe38d)}.gluon-tube:focus-visible{outline:none;filter:drop-shadow(0 0 9px #79ffff)}.electron-mark{pointer-events:none}.electron-mark circle{filter:none}.crystal-field{animation:crystalJiggle 3s ease-in-out infinite alternate;pointer-events:none}@keyframes crystalJiggle{to{transform:translate(1px,2px)}}
body[data-level="2"] #materialBackdrop .material-grain,body[data-level="3"] #materialBackdrop .material-grain{inset:0;transform:scale(1.22);opacity:.6;filter:blur(6px) brightness(.8)}body[data-material="rubber"][data-level="2"] #materialBackdrop .material-grain,body[data-material="rubber"][data-level="3"] #materialBackdrop .material-grain{opacity:.84;filter:blur(4px) brightness(1.1)}body[data-material="rubber"] #materialBackdrop:after{background:linear-gradient(#112f4477,#102e4233 48%,#0a243bc4)}body[data-structure="paint"][data-level="2"] #materialBackdrop .material-grain{opacity:.76;filter:blur(5px) brightness(.85)}body[data-structure="steel"][data-level="2"] #materialBackdrop .material-grain{opacity:.5;filter:grayscale(.9) blur(5px)}
#guide[data-side="left"]{left:22px;right:auto;animation:guideFromLeft .45s ease-out}#guide[data-side="right"]{right:22px;left:auto;animation:guideFromRight .45s ease-out}@keyframes guideFromLeft{from{transform:translateX(-140%);opacity:0}}@keyframes guideFromRight{from{transform:translateX(140%);opacity:0}}
@media(max-width:650px){.brand{height:59px;gap:4px}.brand-emblem{width:68px;height:58px}.brand .brand-wordmark{min-width:110px}.brand-wordmark>span{font-size:11px}.brand-wordmark b{font-size:20px}.brand-wordmark em{font-size:10px;letter-spacing:3px}.navigation{flex-direction:column;gap:5px}.navigation button{width:40px;height:40px;min-height:40px;padding:4px}.navigation button svg{width:31px;height:31px}#trail{gap:22px}#trail .picture-tile{height:68px}.zoom-console{min-height:99px}#light.flashlight{width:98px;left:-16px}#light .lamp-art{width:104px;height:65px}#focusLabel svg{width:55px;height:38px;top:calc(100% + 9px)}#guide[data-side="left"]{left:12px}#guide[data-side="right"]{right:12px}.dock{bottom:119px}.scope-cue{bottom:190px}}
@media(prefers-reduced-motion:reduce){.crystal-field,#guide[data-side]{animation:none!important}}
.brand .brand-emblem{display:block;flex-shrink:0}.brand .brand-wordmark>span{display:block}
/* Explore directly in the scene, without a second set of buttons. */
.dock,#atomToggle,.home-title,.scope-cue{display:none!important}.brand{isolation:isolate}.brand:before{content:'';position:absolute;inset:-6px -16px -5px -10px;background:#ffffffe0;opacity:.8;border-radius:25% 36% 29% 35% / 46% 31% 42% 34%;transform:rotate(-2deg);z-index:-1;box-shadow:0 5px 18px #123d4922}.brand .brand-wordmark>span{color:#315a59}.brand-wordmark b{color:#ffe323;-webkit-text-stroke:.6px #294b4c;text-shadow:1px 1px #244b50}.brand-wordmark em{color:#2e6363}
#help,.item-question{position:relative;display:inline-grid;place-items:center;width:42px;height:42px;min-height:42px;border-radius:50%;padding:6px;background:#fff4c6;color:#244a54;border:1px solid #e9fff080;animation:none;box-shadow:0 0 0 4px #ffe88922;pointer-events:auto;flex-shrink:0}#help svg,.item-question svg{width:29px;height:29px;overflow:visible}#help svg path,.item-question svg path{fill:none;stroke:currentColor;stroke-width:2.5}#help svg text,.item-question svg text{fill:currentColor;font:700 22px Adventure,sans-serif;stroke:none;pointer-events:none}#help .chatty-hover,.item-question .chatty-hover{display:none;position:absolute;right:0;top:calc(100% + 10px);padding:9px 12px;border-radius:12px;background:#fff5d0;color:#244a54;white-space:nowrap;font-size:13px;box-shadow:0 4px 15px #0002;pointer-events:none}#help:hover .chatty-hover,#help:focus-visible .chatty-hover,#help.tip-open .chatty-hover,.item-question:hover .chatty-hover,.item-question:focus-visible .chatty-hover{display:block}#focusLabel{padding-right:6px;pointer-events:none}#focusLabel #help{margin-left:8px;width:36px;height:36px;min-height:36px;box-shadow:none}#focusLabel #help svg{width:26px;height:26px}.proton-symbol,.neutron-symbol{display:inline-grid!important;place-items:center;border-radius:50%;width:1.15em;height:1.15em;line-height:1;color:white;font-weight:700;font-family:Adventure,sans-serif;background:#ed6d65;box-shadow:inset -2px -2px 5px #9d373e66;font-size:1em;vertical-align:middle}.neutron-symbol{background:#86bbef;box-shadow:inset -2px -2px 5px #41659c66}.nucleon-pair{display:inline-flex;gap:2px}.tile-symbol .proton-symbol,.tile-symbol .neutron-symbol{font-size:25px}[data-action="nucleon:proton"] .model-label,.nucleon-neighbor .model-label{fill:#fff;stroke:none;font-weight:700}.context-atom{opacity:.23;transition:opacity .18s;cursor:help}.context-atom:hover,.context-atom:focus{opacity:.6;outline:none}.atom-neighbor-context{isolation:isolate}.atom-context-shell{pointer-events:none}.nucleus-electrons{pointer-events:none}
#scene>svg,.ghost-layer>svg{top:48%;width:min(calc(100vw - 120px),calc((100dvh - 235px)*1.5));max-height:calc(100dvh - 235px)}.endpoint-scene{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);width:min(650px,calc(100vw - 120px));height:min(560px,calc(100dvh - 290px));display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;text-align:center;padding:20px}.giant-question{font-size:clamp(125px,20vh,225px);font-weight:600;line-height:1.05;color:#fff4bd;text-shadow:0 0 35px #ffdc6a88;animation:questionCurious 2.8s ease-in-out infinite;transform-origin:center}.endpoint-scene p{font-size:20px;line-height:1.55;margin:14px 0 0;color:#fff9e9;max-width:560px;text-shadow:0 2px 6px #142f3c}.endpoint-scene strong{display:block;margin-top:10px;font-weight:500;color:#ffe99e}.question-halo{position:absolute;top:10%;width:250px;height:250px;background:radial-gradient(ellipse,#fff0a81c,transparent 68%);pointer-events:none}@keyframes questionCurious{0%,100%{transform:rotate(-6deg) translateY(0)}50%{transform:rotate(6deg) translateY(-12px)}}
#inspector{max-width:310px;z-index:30}#inspector .tip-heading{display:flex;align-items:center;gap:9px;margin-bottom:10px}#inspector .tip-heading b{font-size:18px;margin:0;flex:1;line-height:1.15}#inspector .tip-photo{width:49px;height:49px;border-radius:50%;background-image:url('assets/textures.webp');background-size:200% 200%;border:2px solid #fff9e1;box-shadow:0 1px 6px #183d4433;flex-shrink:0}#inspector .tip-icon{width:43px;height:43px;font-size:28px;display:grid;place-items:center;flex-shrink:0}#inspector .item-question{width:35px;height:35px;min-height:35px;margin:0;padding:4px;background:#f3dc85}#inspector .item-question svg{width:25px;height:25px}#inspector .item-question .chatty-hover{font-size:11px}.tip-extra{max-width:275px}.zoomable,.hotspot{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ccircle cx='15' cy='15' r='11' fill='%23fff8cc88' stroke='%23204450' stroke-width='3'/%3E%3Cpath d='M23 23L36 36M9 15H21M15 9V21' stroke='%23204450' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") 15 15,zoom-in}.touch-lens{position:fixed;z-index:35;width:55px;height:55px;transform:translate(-50%,-50%);color:#fff1a5;pointer-events:none;animation:touchPeek .9s ease-out forwards}.touch-lens svg{width:100%;height:100%;filter:drop-shadow(0 1px 3px #123)}@keyframes touchPeek{0%{opacity:0;scale:.6}30%{opacity:1;scale:1.1}100%{opacity:0;scale:1.6}}[data-action="electron"].excited-electron>circle,[data-action="electron"].excited-electron>text{animation:excitedWiggle .14s linear infinite;transform-box:fill-box;transform-origin:center;filter:drop-shadow(0 0 8px #fff08a)}@keyframes excitedWiggle{0%,100%{translate:0 0}25%{translate:2px -2px}50%{translate:-2px 1px}75%{translate:1px 2px}}#guide{bottom:145px}
@media(max-width:650px){.brand:before{inset:-4px -8px -3px -7px}.brand-wordmark b{-webkit-text-stroke:.4px #294b4c}.brand .brand-wordmark>span{font-size:10px}.brand-wordmark b{font-size:19px}.brand-wordmark em{font-size:9px}.brand .brand-wordmark{min-width:99px}#help{width:37px;height:37px;min-height:37px;padding:4px}#focusName{font-size:18px}#focusLabel{gap:5px;white-space:normal;max-width:calc(100vw - 20px)}#focusLabel #help{width:31px;height:31px;min-height:31px;margin-left:3px}#focusLabel #help svg{width:23px;height:23px}#scene>svg,.ghost-layer>svg{top:47%;width:calc(100vw - 20px);max-height:calc(100dvh - 265px)}.endpoint-scene{top:47%;width:calc(100vw - 32px);height:calc(100dvh - 310px);padding:14px 20px}.giant-question{font-size:150px}.endpoint-scene p{font-size:16px;line-height:1.45}.endpoint-scene strong{margin-top:8px}.question-halo{width:200px;height:200px;top:0}#inspector{max-width:270px;font-size:13px}#inspector .tip-heading b{font-size:16px}#inspector .tip-photo{width:43px;height:43px}#guide{bottom:145px}}
@media(prefers-reduced-motion:reduce){.giant-question,.touch-lens,[data-action="electron"].excited-electron>circle,[data-action="electron"].excited-electron>text{animation:none!important}}
.detail-photo{background-image:url('assets/material-details.webp')!important;background-size:400% 200%!important}.detail-quartz{background-position:0 0!important}.detail-organic{background-position:33.333% 0!important}.detail-rubber{background-position:66.667% 0!important}.detail-black{background-position:100% 0!important}.detail-paint{background-position:0 100%!important}.detail-steel{background-position:33.333% 100%!important}.detail-water{background-position:66.667% 100%!important}.detail-protein{background-position:100% 100%!important}.material-detail-photo{position:absolute;inset:0;width:100%;height:100%;animation:detailDrift 16s ease-in-out infinite alternate}.detail-shade{position:absolute;inset:0;background:linear-gradient(#102e3b66,transparent 40%,#102e3b77);pointer-events:none}.detail-caption{position:absolute;top:22%;left:50%;transform:translateX(-50%);width:min(560px,80vw);font-size:18px;text-align:center;line-height:1.45;color:#fff9e3;background:#153f4ab8;border:1px solid #defff033;padding:12px 20px;border-radius:22px;pointer-events:none;text-shadow:0 1px 3px #123}.material-detail-photo~.hotspot{max-width:240px;white-space:normal}@keyframes detailDrift{from{transform:scale(1)}to{transform:scale(1.035)}}
@media(max-width:650px){.detail-caption{top:20%;font-size:14px;width:calc(100vw - 42px);padding:10px 14px}.material-detail-photo~.hotspot{max-width:155px;font-size:12px;padding:11px}.material-detail-photo~.hotspot:first-of-type{left:27%!important}}
@media(prefers-reduced-motion:reduce){.material-detail-photo{animation:none!important}}
#focusLabel #help svg{position:static;left:auto;top:auto;transform:none;overflow:visible}#focusLabel #help svg path{stroke-width:2.5;stroke:currentColor;fill:none;stroke-linecap:round}#focusLabel #help svg text{fill:currentColor;font-size:22px}.endpoint-scene~svg{pointer-events:none}
body[data-detail="true"] #focusLabel>svg{display:none}@media(max-width:650px){.detail-caption{top:24%}}
/* Title navigation and arrow form a single centered unit. */
#focusLabel{gap:10px;padding:5px 10px;min-height:58px;border-radius:30px;align-items:center;white-space:nowrap;max-width:calc(100vw - 36px)}#phaseBadge{display:none}#titleBack{width:40px;height:40px;min-height:40px;border-radius:50%;padding:6px;background:#d5f1e4;color:#1c4650;flex-shrink:0;pointer-events:auto;box-shadow:0 0 0 0 #a8f1d600;animation:noticeBack 8s ease-out infinite}#titleBack svg{position:static;width:26px;height:26px;overflow:visible}#titleBack svg path{fill:none;stroke:currentColor;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}#focusLabel>.title-curve{position:static!important;left:auto;top:auto!important;width:72px;height:60px;margin-left:3px;overflow:visible;flex-shrink:0;align-self:center}#focusLabel>.title-curve path{stroke-width:3.5}#focusLabel>.title-curve .arrow-head{stroke-width:1}#focusLabel #help{margin:0}#focusIcon .question-icon,#focusIcon .atom-symbol{display:grid;place-items:center;width:33px;height:33px;border-radius:50%;font-size:24px;background:#ffe59a;color:#244c53;border:1px solid #fff0b3;text-shadow:none;font-weight:600}#focusIcon .atom-symbol{font-size:17px;background:var(--atom-color)}@keyframes noticeBack{0%,82%,100%{box-shadow:0 0 0 0 #a8f1d600}88%{box-shadow:0 0 0 7px #a8f1d64d}96%{box-shadow:0 0 0 13px #a8f1d600}}
/* The old generic span rule must never reveal the Chatty hint. */
#inspector .item-question .chatty-hover,#help .chatty-hover{display:none!important;top:auto;bottom:calc(100% + 12px);right:-4px;z-index:40}#inspector .item-question:hover .chatty-hover,#inspector .item-question:focus-visible .chatty-hover,#help:hover .chatty-hover,#help:focus-visible .chatty-hover,#help.tip-open .chatty-hover{display:block!important}#help,#inspector .item-question{box-shadow:0 0 13px 3px #ffdf6866,0 0 0 3px #ffe28b55;animation:chattyBeacon 4s ease-in-out infinite}#focusLabel #help{box-shadow:0 0 13px 3px #ffdf6866,0 0 0 3px #ffe28b55}@keyframes chattyBeacon{50%{box-shadow:0 0 22px 7px #ffe58799,0 0 0 5px #ffe28b55}}
.zoom-console{width:max-content;min-width:0;max-width:calc(100vw - 30px);gap:14px;align-items:center}#trail{flex:0 1 auto;overflow:visible;flex-wrap:wrap;justify-content:center;gap:22px;padding:2px 4px;scroll-behavior:auto}#trail .picture-tile{flex-shrink:0}.navigation{flex-shrink:0}.tile-caption{white-space:nowrap}#funFacts{position:fixed;right:18px;top:50%;transform:translateY(-50%);width:230px;padding:20px 16px;z-index:6;background:#123b48d6;border:1px solid #c2eee539;border-radius:26px;backdrop-filter:blur(10px);box-shadow:0 8px 24px #0002;color:#fff5d8}#sceneFacts{list-style:none;margin:0;padding:0;display:grid;gap:23px}#sceneFacts li{display:flex;gap:11px;align-items:flex-start;font-size:17px;font-weight:500;line-height:1.4}#sceneFacts .fact-icon{font-size:25px;line-height:1.15;flex-shrink:0}#scene>svg,.ghost-layer>svg{top:50%;width:min(calc(100vw - 420px),calc((100dvh - var(--nav-height,110px) - 170px)*1.5));max-height:calc(100dvh - var(--nav-height,110px) - 170px)}.context-atom{opacity:.48}.context-atom:hover,.context-atom:focus{opacity:.8}.context-bond{pointer-events:none;filter:drop-shadow(0 0 4px #a3f5d366)}[data-context-bond]{opacity:.7}.endpoint-scene{width:min(620px,calc(100vw - 460px))}#light.flashlight{transition:transform .45s cubic-bezier(.2,.7,.2,1),opacity .35s;transform:translate(-140%,-50%);opacity:0;pointer-events:none}body[data-flashlight="true"] #light.flashlight{transform:translate(0,-50%);opacity:1;pointer-events:auto}#lightHint{position:fixed;left:5px;width:135px;text-align:center;font-size:13px;color:#fff0bd;text-shadow:0 2px 5px #112f3b;pointer-events:none;z-index:12;opacity:0;transition:opacity .35s}body[data-flashlight="true"] #lightHint{opacity:1}#guide[data-side="right"],#guide:not([data-side="left"]){top:110px;bottom:auto;right:20px;left:auto}#guide[data-side="left"]{top:110px;bottom:auto}#guide{z-index:18}
@media(max-width:1150px) and (min-width:651px){#funFacts{width:190px;padding:16px 12px}#sceneFacts li{font-size:15px}#scene>svg,.ghost-layer>svg{width:calc(100vw - 370px)}#trail .picture-tile{width:75px;min-width:75px}#trail .tile-picture{width:64px}#trail{gap:16px}.tile-caption{max-width:63px}#focusName{font-size:22px}}
@media(max-width:650px){#focusLabel{gap:5px;min-height:49px;max-width:calc(100vw - 14px);padding:4px 6px}#focusName{font-size:17px;max-width:155px;white-space:normal;line-height:1.1}#titleBack{width:33px;height:33px;min-height:33px;padding:4px}#titleBack svg{width:24px;height:24px}#focusLabel>.title-curve{width:44px;height:46px;margin-left:0}#focusIcon .question-icon,#focusIcon .atom-symbol{width:26px;height:26px;font-size:19px}#focusIcon .atom-symbol{font-size:14px}.zoom-console{left:7px;right:7px;width:auto;max-width:none;min-height:0;gap:6px;padding:7px}#trail{flex:1;gap:8px;justify-content:center}#trail .picture-tile{width:52px;min-width:52px;height:59px}#trail .tile-picture{width:44px;height:32px}.tile-caption{max-width:44px;font-size:7px}.navigation{flex-direction:column}#funFacts{left:12px;right:12px;top:auto;bottom:calc(var(--nav-height,90px) + 23px);width:auto;transform:none;padding:12px 14px;border-radius:20px}#sceneFacts{gap:7px}#sceneFacts li{font-size:12px;line-height:1.25;gap:8px}#sceneFacts .fact-icon{font-size:18px}#scene>svg,.ghost-layer>svg{top:40%;width:calc(100vw - 24px);max-height:calc(100dvh - var(--nav-height,110px) - 350px)}.endpoint-scene{top:40%;width:calc(100vw - 25px);height:calc(100dvh - var(--nav-height,110px) - 320px)}.endpoint-scene p{font-size:14px;line-height:1.35}.giant-question{font-size:110px}#lightHint{font-size:10px;width:91px;left:0}#guide[data-side="right"],#guide:not([data-side="left"]),#guide[data-side="left"]{top:155px;bottom:auto;right:10px}#help .chatty-hover{font-size:11px}.material-detail-photo~.hotspot{max-width:140px}.detail-caption{top:23%;font-size:12px}}
@media(prefers-reduced-motion:reduce){#titleBack,#help,#inspector .item-question{animation:none!important}#light.flashlight{transition:none!important}}
.meson-title,.meson-name,.meson-symbol,.meson-charge,.meson-note{text-anchor:middle;font-family:Adventure,sans-serif;fill:#fff7dd;paint-order:stroke;stroke:none;pointer-events:none}.meson-title{font-size:20px;font-weight:600}.meson-name{font-size:12px;font-weight:500}.meson-symbol{font-size:25px;fill:#173d48}.meson-charge{font-size:13px;fill:#ffedb5}.meson-note{font-size:11px;fill:#c4eade}body[data-level="5"] #scene>svg{overflow:hidden}
.brand{width:300px;height:123px;padding:0;display:block}.brand:before{display:none}.brand .brand-raster{display:block;width:300px;height:auto;max-height:123px;border:0;border-radius:0;object-fit:contain}.brand:hover{filter:brightness(1.04)}@media(max-width:1150px) and (min-width:651px){.brand,.brand .brand-raster{width:255px;height:auto;max-height:108px}}@media(max-width:650px){.brand{width:180px;height:74px}.brand .brand-raster{width:180px;height:auto;max-height:74px}}

/* Clear zoom cues and a livelier wave from Christopher. */
.driver-motion{animation:driverNod 3.6s ease-in-out infinite alternate}@keyframes driverNod{from{transform:rotate(-2.8deg)}to{transform:rotate(2.8deg)}}
/* Full-screen drawing surface, with controls floating above it. */
#scene>svg,.ghost-layer>svg{position:absolute;inset:0;left:0;top:0;width:100vw;height:100dvh;max-width:none;max-height:none;transform:none;overflow:visible}body[data-level="5"] #scene>svg{overflow:hidden}.endpoint-scene{width:min(700px,80vw)}
#focusLabel{display:flex;gap:12px;background:transparent;border:0;box-shadow:none;backdrop-filter:none;padding:0;max-width:calc(100vw - 24px);pointer-events:none;overflow:visible}#titleCard{display:flex;align-items:center;gap:10px;min-height:58px;padding:8px 15px;border:1px solid #c2eee539;border-radius:28px;background:#173e49cc;backdrop-filter:blur(10px);pointer-events:auto}#focusName{font-size:25px}#titleBack{position:relative;flex-shrink:0}#titleBack:after{content:'Zoom back out';display:none;position:absolute;top:calc(100% + 10px);left:0;background:#fff3cf;color:#173e49;padding:9px 12px;border-radius:13px;white-space:nowrap;font-size:13px;z-index:40}#titleBack:hover:after,#titleBack:focus-visible:after{display:block}#focusLabel>.title-curve,body[data-detail="true"] #focusLabel>.title-curve{display:block!important;width:72px;height:60px;margin-left:2px;flex-shrink:0}
#help,#focusLabel #help,#inspector .item-question{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;animation:bubbleGlow 4s ease-in-out infinite;padding:1px;min-height:38px;width:38px;height:38px;position:relative}#help svg,#inspector .item-question svg,#titleCard #help svg{width:35px;height:35px;position:static;transform:none;overflow:visible;filter:drop-shadow(0 0 7px #ffe68da6)}#help svg path,#inspector .item-question svg path{fill:#ffe8a2!important;stroke:#244b57!important;stroke-width:2.5!important}#help svg text,#inspector .item-question svg text{fill:#244b57;font-size:22px}#help .chatty-hover{right:0;bottom:calc(100% + 10px)}header>#help .chatty-hover,#titleCard #help .chatty-hover{top:calc(100% + 12px);bottom:auto;right:0}header>#help{margin-left:auto}@keyframes bubbleGlow{50%{filter:drop-shadow(0 0 8px #ffe48fd9)}}
#light.flashlight{border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0;padding:0;width:195px;height:auto;min-height:0;left:-15px;overflow:visible}#light.flashlight .lamp-art{display:block;width:195px;height:auto;max-width:none;filter:drop-shadow(0 3px 5px #001c2a66)}#lightLabel{display:none!important}#lightHint{left:0;width:180px}.material-detail-photo{animation:closeupDrift 9s ease-in-out infinite alternate!important;will-change:transform}@keyframes closeupDrift{from{transform:scale(1.02) translate(-.5%,0) rotate(-.35deg)}to{transform:scale(1.085) translate(.7%,-.6%) rotate(.4deg)}}
.bio-target{cursor:zoom-in;filter:drop-shadow(0 0 5px #ffe18b44)}.bio-target:hover rect,.bio-target:focus rect{fill:#2e656d;stroke:#fff8c7;stroke-width:4}.bio-target .model-label{font-size:18px;pointer-events:none}.cyto-speck{animation:cytoDrift 5s ease-in-out infinite alternate;transform-box:fill-box}.cyto-speck:nth-child(3n){animation-delay:-2s}.cell-nucleus-art{animation:cytoDrift 8s ease-in-out infinite alternate}@keyframes cytoDrift{to{translate:4px -5px}}#soundToggle{position:fixed;top:20px;right:75px;z-index:20;border:0;background:#163e48b3;color:#fff1bd;width:38px;height:38px;min-height:38px;padding:7px;border-radius:14px;font-size:20px}
@media(max-width:650px){#focusLabel{gap:7px}#titleCard{gap:6px;padding:7px 10px;min-height:46px}#focusName{font-size:18px;max-width:175px}#focusLabel>.title-curve,body[data-detail="true"] #focusLabel>.title-curve{width:37px;height:44px}#titleCard #help{width:30px;height:30px;min-height:30px}#titleCard #help svg{width:29px;height:29px}#light.flashlight{width:125px;left:-13px}#light.flashlight .lamp-art{width:125px}#lightHint{width:110px}.endpoint-scene{width:calc(100vw - 30px)}#soundToggle{top:15px;right:57px;width:30px;height:30px;min-height:30px;padding:4px;font-size:17px}}
@media(prefers-reduced-motion:reduce){.material-detail-photo,.cyto-speck,.cell-nucleus-art,#help,#inspector .item-question{animation:none!important}}
.title-material-photo{display:block;width:39px;height:39px;border-radius:50%;border:2px solid #fff2ca;background-image:url('assets/material-thumbnails.webp');background-size:400% 400%;background-position:var(--photo-x) var(--photo-y);flex-shrink:0;box-shadow:0 1px 5px #001d2a55}.context-atom{cursor:zoom-in}.context-atom:hover,.context-atom:focus{opacity:.85;filter:drop-shadow(0 0 6px #b8f9df)}@media(max-width:650px){.title-material-photo{width:30px;height:30px}}
.detail-photo.detail-rubber{background-image:url('assets/rubber-interior.webp');background-size:cover;background-position:center}.detail-photo.detail-hair{background-image:url('assets/material-thumbnails.webp');background-size:400% 400%;background-position:100% 33.3333%}.detail-photo.detail-cell{background-image:url('assets/material-thumbnails.webp');background-size:400% 400%;background-position:66.6667% 33.3333%}
.context-atom{pointer-events:bounding-box}#light.flashlight[aria-pressed="true"]{width:195px;left:-15px}#light.flashlight .lamp-art{margin:0}#light.flashlight{animation:none!important}@media(max-width:650px){#light.flashlight[aria-pressed="true"]{width:125px;left:-13px}}
.brand{transform-origin:top left;transition:transform .25s ease,filter .25s ease}.brand:hover,.brand:focus-visible{transform:scale(1.07);filter:brightness(1.1) drop-shadow(0 0 11px #fff1a5b3) drop-shadow(0 0 25px #ffcf5866)}@media(prefers-reduced-motion:reduce){.brand{transition:none}.brand:hover,.brand:focus-visible{transform:none}}
.nucleon-neighbor{pointer-events:bounding-box;opacity:.24;cursor:help;transition:opacity .18s,filter .18s}.nucleon-neighbor.sibling-link{cursor:zoom-in}.nucleon-neighbor:hover,.nucleon-neighbor:focus{opacity:.75;filter:drop-shadow(0 0 9px #fff0b99c);outline:none}
.zoom-console{background:transparent;border:0;box-shadow:none;backdrop-filter:none;padding:0;gap:14px}.zoom-console #trail{background:#123b48e8;border:1px solid #c2eee555;border-radius:24px;padding:12px 14px;box-shadow:0 8px 20px #001d2a33;min-width:0}.nav-direction{flex:0 0 53px;display:grid;place-items:center;width:53px;height:53px;min-height:53px;padding:6px;border-radius:17px;background:#ffe08a;box-shadow:0 0 0 3px #ffe28b26}.nav-direction svg{width:37px;height:37px}.nav-direction:disabled{display:grid!important;opacity:.3}#home{display:none!important}@media(max-width:650px){.zoom-console{padding:0;gap:7px;min-height:0}.zoom-console #trail{padding:7px;gap:8px;border-radius:18px}.nav-direction{flex-basis:36px;width:36px;height:42px;min-height:42px;padding:4px;border-radius:12px}.nav-direction svg{width:29px;height:29px}}
body[data-flashlight="true"] #lightHint[data-state="off"]{animation:inviteLight 2.4s ease-in-out infinite;font-weight:600;transform-origin:center;text-shadow:0 0 8px #ffda68aa,0 2px 4px #102f38}#lightHint[data-state="off"]:before{content:'↑';display:inline-block;margin-right:5px;font-size:1.2em}@keyframes inviteLight{0%,100%{translate:0 0;scale:1;color:#fff0bd}50%{translate:0 -5px;scale:1.09;color:#fff9d2;text-shadow:0 0 16px #ffe27a,0 2px 4px #102f38}}@media(prefers-reduced-motion:reduce){#lightHint{animation:none!important}}

.skin-microscopy{position:absolute;inset:-3%;background:url('assets/skin-microscopy.webp') center/cover;animation:closeupDrift 9s ease-in-out infinite alternate}.texture.rubber{background-image:url('assets/material-details.webp')!important;background-size:400% 200%!important;background-position:66.667% 0!important}.material-detail-photo.detail-rubber,.tip-photo.detail-rubber,#trail .detail-rubber{background-image:url('assets/textures.webp')!important;background-size:200% 200%!important;background-position:0 0!important}

.meson-charge,.meson-note{display:none}.atom-neighbor-context:has(.context-atom:hover) .context-atom:not(:hover){opacity:.48;filter:none}.context-atom:hover{opacity:.85;filter:drop-shadow(0 0 6px #b8f9df)}
#replicationDialog{width:min(850px,94vw);max-height:92dvh;overflow:auto;background:#173d4b;color:#fff5dc;border:2px solid #ffe195;border-radius:28px;padding:25px}#replicationDialog::backdrop{background:#061b2bd9;backdrop-filter:blur(6px)}#replicationDialog h2{text-align:center;margin:0 40px 12px}.rep-caption{text-align:center;font-size:20px;min-height:55px;line-height:1.4}.rep-close{position:absolute;right:12px;top:12px;font-size:22px;padding:3px 12px}.rep-controls{display:flex;align-items:center;justify-content:center;gap:25px}#replicationDialog svg{width:100%;max-height:48dvh}#replicationDialog small{display:block;text-align:center;margin-top:15px;font-size:12px;color:#bdd9d8}.polymerase-helper{animation:copyHelper 2.5s ease-in-out infinite alternate}@keyframes copyHelper{to{translate:0 -95px}}@media(prefers-reduced-motion:reduce){.polymerase-helper{animation:none}}

#trail .picture-tile.current{animation:currentTileGlow 3s ease-in-out infinite}@keyframes currentTileGlow{0%,100%{box-shadow:0 0 6px 2px #ffe18a66,0 0 0 2px #ffe18a33}50%{box-shadow:0 0 22px 9px #ffe18a80,0 0 0 7px #ffe18a22}}@media(prefers-reduced-motion:reduce){#trail .picture-tile.current{animation:none;box-shadow:0 0 12px 4px #ffe18a77}}

.plant-tissue-photo,.plant-cell-photo{position:absolute;inset:0;background-position:center;background-size:cover}.plant-tissue-photo{background-image:url('assets/plant-tissue.webp');animation:closeupDrift 10s ease-in-out infinite alternate}.plant-cell-photo{background-image:url('assets/plant-cell.webp')}#inspector .title-material-photo{width:49px;height:49px}@media(prefers-reduced-motion:reduce){.plant-tissue-photo{animation:none}}

.animal-cell-photo,.cell-part-photo{position:absolute;inset:0;background-image:url('assets/animal-cell.webp');background-size:cover;background-position:center}.photo-cytoplasm{background-size:170% auto;background-position:10% 50%}.photo-animal-nucleus{background-size:240% auto;background-position:75% 50%}.photo-plant-nucleus{background-image:url('assets/plant-cell.webp');background-size:240% auto;background-position:7% 50%}@media(max-width:650px){.photo-cytoplasm,.photo-animal-nucleus,.photo-plant-nucleus{background-size:auto 150%}}

.driver-motion{animation:driverNod 2.2s ease-in-out infinite alternate}@keyframes driverNod{from{transform:rotate(-5deg)}to{transform:rotate(5deg)}}

body[data-structure="water"]:not([data-level="0"]):not([data-level="1"]) #materialBackdrop{background:#28697e}body[data-structure="water"]:not([data-level="0"]):not([data-level="1"]) .material-grain{background-image:url('assets/material-details.webp')!important;background-size:400% 200%!important;background-position:66.667% 100%!important;filter:blur(4px)!important;opacity:.6!important;transform:scale(1.12)}

.photo-vacuole{background-image:url('assets/plant-cell.webp');background-size:225% auto;background-position:59% 50%}@media(max-width:650px){.photo-vacuole{background-size:auto 155%;background-position:58% 50%}}

#light.flashlight,#light.flashlight[aria-pressed="true"]{width:280px;left:-85px;pointer-events:none!important}#light.flashlight .lamp-art{width:280px}#lightHint{display:none!important}@media(max-width:650px){#light.flashlight,#light.flashlight[aria-pressed="true"]{width:180px;left:-65px}#light.flashlight .lamp-art{width:180px}}

#lightRays{display:none!important}

.hair-follicle-photo{position:absolute;inset:0;background:url('assets/hair-follicle.webp') center/cover;animation:closeupDrift 10s ease-in-out infinite alternate}.photo-membrane{background-image:url('assets/cell-membrane.webp');background-size:cover;background-position:center}.photo-cell-wall{background-image:url('assets/cell-wall.webp');background-size:cover;background-position:center}@media(prefers-reduced-motion:reduce){.hair-follicle-photo{animation:none}}

.dna-video{position:relative;aspect-ratio:16/9;margin-top:20px;background:#071c29;border-radius:16px;overflow:hidden}.dna-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.video-credit{text-align:center;font-size:15px;color:#d6e6df;margin-bottom:8px}.video-fallback{display:block;text-align:center;color:#ffe398;font-size:14px}#replicationDialog{width:min(950px,94vw)}

.mini-quark-triad{opacity:.42;pointer-events:none}.context-nucleon-charge{pointer-events:none;font-family:Adventure,sans-serif;font-weight:bold;paint-order:stroke;stroke:#294957;stroke-width:.7px}.nucleon-neighbor .mini-quark-triad{opacity:.65}

/* Animate the actual clipped head layer; the image itself stays aligned in its crop. */
.driver-crop{animation:headTilt 1s ease-in-out infinite alternate}@keyframes headTilt{from{transform:rotate(-10deg)}to{transform:rotate(10deg)}}
.driver-crop .driver-motion{animation:none;transform:none}
@media(prefers-reduced-motion:reduce){.driver-crop,.driver-crop .driver-motion{animation:none!important}}

/* Trace hair, ear, cheek, jaw and neck instead of rotating the oval cabin crop. */
.driver-crop{border-radius:0;clip-path:url(#christopherHeadOutline)}

.head-cleanplate{position:absolute;left:25%;top:18%;width:10%;height:17%;overflow:hidden;clip-path:url(#christopherHeadOutline);pointer-events:none}.head-cleanplate img{position:absolute;width:1000%;height:588.235%;max-width:none;left:-250%;top:-105.882%;pointer-events:none}

.driver-crop{transform-origin:34% 90%}

.head-cleanplate{clip-path:url(#christopherHeadClearance)}

#aboutUniverse{position:fixed;top:20px;right:121px;z-index:20;border:0;background:#163e48b3;color:#fff1bd;width:38px;height:38px;min-height:38px;padding:7px;border-radius:14px}#aboutUniverse svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}#aboutUniverse .info-dot{fill:currentColor;stroke:none}#aboutUniverse:hover,#aboutUniverse:focus-visible{background:#32636d;color:#fff9dc;box-shadow:0 0 13px #ffe59c55}
#welcomeDialog{width:min(850px,calc(100vw - 36px));max-height:92dvh;overflow:auto;border:2px solid #ffe398;border-radius:30px;padding:34px;background:linear-gradient(135deg,#fff9de,#fff0be);color:#1d4851;box-shadow:0 22px 100px #00111d80;font-family:Adventure,ui-rounded,sans-serif}#welcomeDialog::backdrop{background:#001323c4;backdrop-filter:blur(4px)}#welcomeClose{position:absolute;top:12px;right:12px;width:40px;height:40px;min-height:40px;padding:0;font-size:27px;border:0;background:#e5eadc;color:#244e57;border-radius:50%;z-index:2}.welcome-layout{display:grid;grid-template-columns:46% 1fr;gap:24px;align-items:center}.welcome-picture{overflow:hidden;border-radius:22px;background:#d9eacd}.welcome-picture img{width:100%;aspect-ratio:4/3;display:block;object-fit:cover;object-position:center 12%}.welcome-logo{display:block;width:min(100%,220px);height:auto;margin:0 0 8px}#welcomeTitle{font-size:38px;line-height:1.08;margin:0 15px 12px 0}#welcomeCopy{font-size:20px;line-height:1.45;margin:0 0 16px}#welcomeCopy strong{color:#32857b}.welcome-questions{list-style:none;padding:0;margin:0 0 16px;display:grid;gap:9px;font-size:20px}.welcome-invite{font-size:17px;line-height:1.45;margin:0 0 17px}#welcomeExplore{border:0;background:#245a60;color:#fff6cb;border-radius:18px;padding:12px 22px;font-size:20px;box-shadow:0 4px 0 #163f49}#welcomeExplore:hover{background:#337c7d}.welcome-words small{display:block;font-size:12px;line-height:1.4;color:#527b7b;margin-top:17px;max-width:330px}
@media(max-width:650px){#aboutUniverse{top:15px;right:95px;width:30px;height:30px;min-height:30px;padding:5px}#welcomeDialog{padding:26px 22px 23px;border-radius:25px;width:calc(100vw - 24px)}.welcome-layout{grid-template-columns:1fr;gap:12px}.welcome-picture img{aspect-ratio:16/9;max-height:190px}#welcomeTitle{font-size:31px;margin-bottom:13px}.welcome-logo{width:min(100%,165px);margin-bottom:6px}#welcomeCopy,.welcome-questions{font-size:18px}.welcome-questions{gap:7px;margin-bottom:12px}.welcome-invite{font-size:16px;margin-bottom:13px}.welcome-words small{font-size:11px;margin-top:13px}#welcomeExplore{font-size:18px;padding:10px 18px}}

/* Keep the global utilities in the corner; contextual Chatty stays with scene titles. */
#soundToggle{right:20px}#aboutUniverse{right:66px}
@media(max-width:650px){#soundToggle{right:15px}#aboutUniverse{right:53px}}
/* Every photographic microscope layer shares a gentle motion treatment; controls stay still. */
#scene :is(.texture,.material-detail-photo,.skin-microscopy,.hair-follicle-photo,.plant-tissue-photo,.plant-cell-photo,.animal-cell-photo,.cell-part-photo){animation:rasterSceneDrift 11s ease-in-out infinite alternate!important;transform-origin:50% 50%;will-change:transform}
@keyframes rasterSceneDrift{from{transform:scale(1.025) translate(-.45%,.2%) rotate(-.12deg)}to{transform:scale(1.065) translate(.45%,-.4%) rotate(.12deg)}}
@media(prefers-reduced-motion:reduce){#scene :is(.texture,.material-detail-photo,.skin-microscopy,.hair-follicle-photo,.plant-tissue-photo,.plant-cell-photo,.animal-cell-photo,.cell-part-photo){animation:none!important;transform:scale(1.025);will-change:auto}}

/* Context bonds and orbital decorations must not become large hover targets. */
.context-atom{pointer-events:none}.context-atom>*{pointer-events:none}.context-atom>.context-hit{pointer-events:all}
#inspector{padding-top:29px}#inspector .tooltip-close{position:absolute;right:5px;top:4px;width:25px;height:25px;min-height:25px;padding:0;border:0;border-radius:50%;background:#244e5712;color:#244e57;font-size:23px;line-height:1;display:grid;place-items:center}#inspector .tooltip-close:hover{background:#244e5728}#inspector .tooltip-close:focus-visible{outline-width:2px}

/* Keep the quartz network inside its own crystal material. */
body[data-structure="quartz"]:not([data-level="0"]):not([data-level="1"]) #materialBackdrop .material-grain{background-image:url("assets/material-details.webp");background-size:400% 200%;background-position:0 0;transform:scale(1.3)}

/* Shared, quiet white controls and readable museum callouts. */
#help,#focusLabel #help,#inspector .item-question{border-radius:50%!important;background:#1677ed!important;color:white;padding:5px;box-shadow:0 0 12px #63b5ff80!important;animation:chattyWiggle 8s ease-in-out infinite}
#help svg,#inspector .item-question svg,#titleCard #help svg{width:100%;height:100%;filter:none}
#help svg path,#inspector .item-question svg path{fill:white!important;stroke:none!important}
@keyframes chattyWiggle{0%,80%,100%{transform:rotate(0)}84%{transform:rotate(-9deg)}88%{transform:rotate(9deg)}92%{transform:rotate(-5deg)}96%{transform:rotate(4deg)}}
#inspector{background:rgba(255,255,255,.94);border:0;padding:16px;color:#173b43;overflow:visible}
#inspector:before{content:'';position:absolute;width:0;height:0;pointer-events:none;border:10px solid transparent}
#inspector[data-pointer="left"]:before{right:100%;top:calc(var(--pointer-y) - 10px);border-right-color:rgba(255,255,255,.94);border-left:0}
#inspector[data-pointer="right"]:before{left:100%;top:calc(var(--pointer-y) - 10px);border-left-color:rgba(255,255,255,.94);border-right:0}
#inspector[data-pointer="top"]:before{bottom:100%;left:calc(var(--pointer-x) - 10px);border-bottom-color:rgba(255,255,255,.94);border-top:0}
#inspector[data-pointer="bottom"]:before{top:100%;left:calc(var(--pointer-x) - 10px);border-top-color:rgba(255,255,255,.94);border-bottom:0}
#help .chatty-hover,#inspector .item-question .chatty-hover{background:rgba(255,255,255,.95);color:#173b43;font-size:12px;padding:9px 11px;border-radius:12px;box-shadow:0 4px 18px #0003}
#inspector .tip-extra{border-color:#173b4320}#guide{background:rgba(255,255,255,.94);color:#173b43;border-color:#ffffff99}
.zoom-console #back,.zoom-console #next{background:#0c293ae8;color:white;border:1px solid #c0e8d466;box-shadow:0 5px 16px #0003}
.zoom-console #back:hover,.zoom-console #next:hover{border-color:white;box-shadow:0 0 18px #ffffff77;background:#214553}
#trail .picture-tile.current{border-color:white;background:#375951;animation:currentTileWhiteGlow 3s ease-in-out infinite}
@keyframes currentTileWhiteGlow{0%,100%{box-shadow:0 0 6px 2px #ffffff66,0 0 0 2px #ffffff33}50%{box-shadow:0 0 22px 9px #ffffff80,0 0 0 7px #ffffff22}}
#focusLabel>.title-curve path{stroke:white}#focusLabel>.title-curve .arrow-head{fill:white;stroke:white}
#aboutUniverse,#soundToggle{color:white}#soundToggle svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#aboutUniverse:hover,#soundToggle:hover{color:white;box-shadow:0 0 13px #ffffff66}
.fact-number{font-weight:700;color:#b5edff;text-shadow:0 1px 3px #072a3a}#inspector .fact-number{color:#00659a;text-shadow:none}
@media(prefers-reduced-motion:reduce){#help,#focusLabel #help,#inspector .item-question,#trail .picture-tile.current{animation:none!important}#trail .picture-tile.current{box-shadow:0 0 12px 4px #ffffff77}}
:root{--chatty-blue:#1677ed;--guide-voice-blue:#092e5c}
/* Animate only Chatty's artwork, so its tooltip and click target stay steady. */
#help,#focusLabel #help,#inspector .item-question{background:transparent!important;box-shadow:none!important;animation:none;transform:none;filter:none;opacity:1;isolation:isolate}
#help:before,#inspector .item-question:before{content:'';position:absolute;inset:0;border-radius:50%;background:var(--chatty-blue);z-index:-1;pointer-events:none;animation:chattyInvite 2.4s ease-in-out infinite}
#help svg,#titleCard #help svg,#inspector .item-question svg{animation:chattyInvite 2.4s ease-in-out infinite;transform-origin:50% 55%;pointer-events:none}
@keyframes chattyInvite{0%,100%{transform:rotate(0) scale(1);opacity:1;filter:drop-shadow(0 0 7px #65baff)}12%{transform:rotate(-17deg) scale(1.08);opacity:1;filter:drop-shadow(0 0 12px #86d0ff)}25%{transform:rotate(17deg) scale(1.08);opacity:1;filter:drop-shadow(0 0 15px #b1e3ff)}38%{transform:rotate(-15deg) scale(1.06);opacity:1;filter:drop-shadow(0 0 12px #86d0ff)}51%{transform:rotate(14deg) scale(1.05);opacity:1;filter:drop-shadow(0 0 14px #9bdcff)}64%{transform:rotate(-10deg) scale(1.03);opacity:.9;filter:drop-shadow(0 0 9px #65baff)}76%{transform:rotate(5deg) scale(1);opacity:.55;filter:drop-shadow(0 0 4px #65baff)}86%{transform:rotate(0) scale(.97);opacity:.2;filter:drop-shadow(0 0 0px #65baff)}93%{transform:rotate(0) scale(1);opacity:.65;filter:drop-shadow(0 0 4px #65baff)}}
@media(prefers-reduced-motion:reduce){#help:before,#inspector .item-question:before,#help svg,#titleCard #help svg,#inspector .item-question svg{animation:none!important;filter:none;opacity:1;transform:none}}

/* Nested nucleus symbols must share one row within the heading icon. */
#inspector .tip-icon .nucleon-pair{display:inline-flex;align-items:center;gap:3px;line-height:1}
#inspector .tip-icon .nucleon-pair .proton-symbol,#inspector .tip-icon .nucleon-pair .neutron-symbol{width:20px;height:20px;font-size:19px;flex-shrink:0}
/* Face, eye macro, and a schematic color-vision experiment. */
.face-backdrop{position:absolute;inset:-6%;background:url('assets/christopher-face.webp') center/cover;filter:blur(25px) brightness(.5)}
.face-stage{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(100vw,150dvh);aspect-ratio:3/2}
.face-stage>img{width:100%;height:100%;object-fit:contain;animation:faceDrift 12s ease-in-out infinite alternate}
@keyframes faceDrift{to{transform:scale(1.025) translate(.2%,-.3%)}}
.face-invite,.eye-photo-caption{position:absolute;bottom:calc(var(--nav-height,100px) + 20px);left:50%;transform:translateX(-50%);margin:0;padding:10px 20px;border-radius:20px;background:#123848d9;font-size:17px;text-align:center;width:max-content;max-width:70vw;pointer-events:none}
.eye-closeup-photo{position:absolute;inset:-3%;background:url('assets/eye-closeup.webp') center/cover;animation:rasterSceneDrift 11s ease-in-out infinite alternate}
.retina-microscopy{position:absolute;inset:-3%;background:linear-gradient(#082d42c9,#082d42db),url('assets/retina-microscopy.webp') center/cover;animation:rasterSceneDrift 11s ease-in-out infinite alternate}
.cone-target{cursor:zoom-in}.cone-target:hover,.cone-target:focus{filter:drop-shadow(0 0 7px #fff5c5);outline:none}
.eye-light-controls{position:fixed;left:50%;bottom:calc(var(--nav-height,100px) + 23px);transform:translateX(-50%);width:min(530px,calc(100vw - 380px));border:1px solid #d2f5ed55;border-radius:24px;background:#123749ed;padding:13px 17px;z-index:8;text-align:center}
.eye-light-controls legend{font-size:20px;font-weight:600;padding:0 10px;color:#fff8d4}.eye-colors{display:flex;gap:8px;justify-content:center}.eye-colors button{border:2px solid transparent;display:grid;place-items:center;gap:4px;background:#204b5b;color:white;font-size:13px;min-width:65px;min-height:57px;padding:6px;border-radius:15px;text-transform:capitalize}.eye-colors button>span{width:20px;height:20px;border-radius:50%;background:var(--light-color);box-shadow:0 0 9px var(--light-color)}.eye-colors button[aria-pressed=true]{border-color:white;background:#39717b;box-shadow:0 0 10px #ffffff44}.eye-colors button:hover{background:#39717b}#eyeOutcome{font-size:13px;line-height:1.3;margin:9px 0 0;min-height:2.5em;color:#e2efed}
/* Christopher faces the words; no blend mode or rectangular photo backdrop. */
#guide{max-width:340px;min-height:115px;padding:10px 25px 0 8px;align-items:center;gap:8px;border-radius:24px;overflow:visible;pointer-events:none}
#guide img{width:78px;height:114px;object-fit:contain;object-position:bottom;mix-blend-mode:normal;flex-shrink:0;align-self:flex-end}
#guide[data-side="left"]{flex-direction:row;left:22px;right:auto;top:165px}
#guide[data-side="left"] img{transform:scaleX(-1)}
#guide[data-side="right"],#guide:not([data-side="left"]){flex-direction:row-reverse;right:22px;left:auto;padding:10px 8px 0 20px;top:90px}
#guideText{font-size:15px;line-height:1.4;padding:12px 0;flex:1}

#sceneFacts .fact-icon{display:inline-block;transform-origin:center;animation:factIconNotice 3.6s ease-in-out infinite;will-change:transform}
#sceneFacts li:nth-child(2) .fact-icon{animation-delay:-1.2s}#sceneFacts li:nth-child(3) .fact-icon{animation-delay:-2.4s}
@keyframes factIconNotice{0%,55%,100%{transform:translateY(0) rotate(0) scale(1);filter:drop-shadow(0 0 0 transparent)}15%{transform:translateY(-4px) rotate(-9deg) scale(1.12);filter:drop-shadow(0 0 5px #fff9b3)}30%{transform:translateY(-2px) rotate(8deg) scale(1.06);filter:drop-shadow(0 0 3px #fff9b3)}43%{transform:translateY(-3px) rotate(-4deg) scale(1.04)}}
@media(max-width:650px){.face-stage{width:150dvh;max-width:175vw}.face-stage .hotspot{font-size:12px;padding:9px}.face-invite,.eye-photo-caption{font-size:12px;bottom:calc(var(--nav-height,100px) + 155px);max-width:85vw}.eye-light-controls{width:calc(100vw - 22px);bottom:calc(var(--nav-height,100px) + 12px);padding:8px 10px;border-radius:17px}.eye-light-controls legend{font-size:16px}.eye-colors{gap:6px}.eye-colors button{min-width:48px;min-height:45px;font-size:10px;padding:4px}.eye-colors button>span{width:15px;height:15px}#eyeOutcome{font-size:11px}body[data-eye-lab=true] #funFacts{display:none}#guide{max-width:250px;min-height:90px}#guide img{width:56px;height:86px}#guideText{font-size:12px}#guide[data-side="left"]{left:10px}#guide[data-side="right"],#guide:not([data-side="left"]){right:10px}}
@media(prefers-reduced-motion:reduce){.face-stage>img,.eye-closeup-photo,.retina-microscopy,#sceneFacts .fact-icon{animation:none!important;will-change:auto}}

@media(max-width:650px){body[data-eye-lab=true] #light.flashlight{width:95px;left:-30px}body[data-eye-lab=true] #light.flashlight .lamp-art{width:95px}}

.title-material-photo.eye-material-photo{background-image:url('assets/eye-closeup.webp');background-size:cover;background-position:center}.detail-photo.detail-eyes{background-image:url('assets/eye-closeup.webp')!important;background-size:cover!important;background-position:center!important}.detail-photo.detail-retina{background-image:url('assets/retina-microscopy.webp')!important;background-size:cover!important;background-position:center!important}
/* Eye interior and continuous spectral streams, all on one zoomable surface. */
.eye-lab-backdrop{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 48%,#466079,#122c3e 75%)}
.eye-interior-art{pointer-events:none}.eye-background-photons,.eye-active-photons{pointer-events:none}.retina-cone-groups .cone-target{filter:drop-shadow(0 2px 3px #08233388)}.retina-cone-groups .cone-target:hover,.retina-cone-groups .cone-target:focus{filter:drop-shadow(0 0 5px #ffffcf);outline:none}
.eye-light-controls{width:min(760px,calc(100vw - 350px));padding:10px 14px}.eye-colors{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:5px}.eye-colors button{min-width:0;min-height:49px;font-size:11px;padding:5px 2px}.eye-colors button>span{width:17px;height:17px}#eyeOutcome{min-height:0;margin:7px 0 0;font-size:12px}#eyeSpectrum{margin:4px 0 0;font-size:10px;color:#c6e3e9;line-height:1.3}
.cone-cell-photo{position:absolute;inset:-3%;background:url('assets/cone-cell.webp') center/cover;animation:rasterSceneDrift 11s ease-in-out infinite alternate}.cone-cell-caption{position:absolute;bottom:calc(var(--nav-height,100px) + 22px);left:50%;transform:translateX(-50%);padding:10px 18px;border-radius:20px;background:#173d4de8;color:#fff5df;font-size:16px;text-align:center;width:max-content;max-width:75vw;margin:0}
.radio-transmitter{display:none;position:fixed;left:-14px;top:43%;width:165px;z-index:12;pointer-events:none}.radio-transmitter svg{width:100%;height:auto;filter:drop-shadow(0 4px 6px #062332)}.radio-transmitter>span{display:block;margin-top:-3px;font-size:12px;text-align:center;color:#e4f3f2}body[data-eye-radio=true] .radio-transmitter{display:block}body[data-eye-radio=true] #light.flashlight,body[data-eye-radio=true] #beam,body[data-eye-radio=true] #lightHint{visibility:hidden;pointer-events:none}
.detail-photo.detail-cone{background-image:url('assets/cone-cell.webp')!important;background-size:cover!important;background-position:center!important}
@media(max-width:650px){.eye-light-controls{width:calc(100vw - 20px);padding:7px 10px}.eye-colors{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.eye-colors button{min-height:37px;font-size:9px;padding:3px}.eye-colors button>span{width:12px;height:12px}#eyeOutcome{font-size:10px}#eyeSpectrum{font-size:9px}.eye-light-controls legend{font-size:14px}.radio-transmitter{width:105px;left:-19px;top:43%}.radio-transmitter>span{font-size:9px}.cone-cell-caption{font-size:12px;bottom:calc(var(--nav-height,100px) + 145px);max-width:90vw}}
@media(prefers-reduced-motion:reduce){.cone-cell-photo{animation:none!important}}

/* Clothing atlas deliberately uses static photographs; transition behavior is unchanged. */
.clothes-photo{position:absolute;inset:0;background-image:url('assets/clothes-atlas.webp');background-size:200% 200%;background-repeat:no-repeat}.clothes-overview,.tile-texture.clothes{background-image:url('assets/clothes-atlas.webp')!important;background-size:200% 200%!important;background-position:0 0!important}.clothes-cotton,.detail-photo.detail-cotton{background-image:url('assets/clothes-atlas.webp')!important;background-size:200% 200%!important;background-position:100% 0!important}.clothes-fleece,.detail-photo.detail-fleece{background-image:url('assets/clothes-atlas.webp')!important;background-size:200% 200%!important;background-position:0 100%!important}.clothes-zipper,.detail-photo.detail-zipper{background-image:url('assets/clothes-atlas.webp')!important;background-size:200% 200%!important;background-position:100% 100%!important}.clothes-caption,.clothes-note{position:absolute;left:50%;bottom:calc(var(--nav-height,110px) + 16px);transform:translateX(-50%);background:#143a48e8;color:#fff6dc;padding:12px 18px;border-radius:18px;text-align:center;max-width:70vw;width:max-content}.clothes-caption small,.clothes-note{font-size:12px}.clothes-note{padding:7px 12px}.clothes-photo~.hotspot{max-width:220px;white-space:normal}.face-stage [data-action="facepart:clothes"]{z-index:3}@media(max-width:650px){.clothes-photo~.hotspot{max-width:160px;font-size:12px}.clothes-caption{font-size:13px;max-width:90vw}.clothes-note{max-width:90vw;font-size:10px}.clothes-photo~.detail-caption{max-width:88vw}}

body[data-material="clothes"] #materialBackdrop .material-grain{background-image:url('assets/clothes-atlas.webp');background-position:0 0}.title-material-photo.clothing-title{background-size:200% 200%!important}

/* Keep each clothing branch's close-up behind its molecules and deeper views. */
body[data-material="clothes"] #materialBackdrop .material-grain{background-size:200% 200%}
body[data-material="clothes"][data-clothing-part="cotton"] #materialBackdrop .material-grain{background-position:100% 0}
body[data-material="clothes"][data-clothing-part="fleece"] #materialBackdrop .material-grain{background-position:0 100%}
body[data-material="clothes"][data-clothing-part="zipper"] #materialBackdrop .material-grain{background-position:100% 100%}

.home-stage .photo{cursor:zoom-in}

/* Closer fiber/coil photography; the outfit overview retains its original artwork. */
.clothes-cotton,.clothes-fleece,.clothes-zipper,.detail-photo.detail-cotton,.detail-photo.detail-fleece,.detail-photo.detail-zipper{background-image:url('assets/clothes-detail-atlas.webp')!important}
body[data-material="clothes"][data-clothing-part="cotton"] #materialBackdrop .material-grain,body[data-material="clothes"][data-clothing-part="fleece"] #materialBackdrop .material-grain,body[data-material="clothes"][data-clothing-part="zipper"] #materialBackdrop .material-grain{background-image:url('assets/clothes-detail-atlas.webp')}
/* Engine exploration: realistic housing with vector mechanics and molecular samples. */
.engine-photo{position:absolute;inset:0;background-image:url('assets/engine-atlas.webp');background-size:200% 100%;background-repeat:no-repeat}.engine-overview{background-position:0 50%}.engine-cylinder{background-position:100% 50%;opacity:.55}.engine-mixture-backdrop,.engine-spark-backdrop{background-position:100% 50%;filter:blur(7px);opacity:.38}.engine-spark-backdrop{opacity:.18}.engine-example{position:absolute;left:42%;bottom:calc(var(--nav-height,100px) + 35px);transform:translateX(-50%);padding:12px 18px;border-radius:20px;background:#163d4be8;color:#fff1c9;text-align:center;max-width:80vw}.engine-svg{pointer-events:none}.engine-sample{pointer-events:auto;cursor:zoom-in}.engine-sample:focus{outline:none;filter:drop-shadow(0 0 10px #ffda67)}.engine-sample:hover{filter:drop-shadow(0 0 7px #ffda67)}.engine-controls,.engine-spark-controls{position:absolute;left:40%;transform:translateX(-50%);bottom:calc(var(--nav-height,110px) + 12px);width:min(640px,calc(100vw - 44px));border:1px solid #bce5e44d;border-radius:22px;background:#123847ed;padding:10px 12px;color:#fff8de;z-index:5}.engine-strokes,.engine-playback{display:flex;justify-content:center;gap:6px;flex-wrap:wrap}.engine-strokes button{font-size:12px;min-height:34px;padding:7px 10px;background:#29515d;color:#fff6dd}.engine-strokes button[aria-pressed=true]{background:#ffdf8b;color:#173d49}.engine-playback{align-items:center;margin-top:8px}.engine-playback button,.engine-spark-controls button{font-size:13px;min-height:35px;padding:7px 12px}.engine-playback span,.engine-spark-controls span{font-size:12px}#engineStory{font-size:13px;text-align:center;margin:8px 0 0;line-height:1.4}.engine-molecule-menu{position:absolute;top:23%;left:44%;transform:translateX(-50%);display:flex;justify-content:center;gap:6px;flex-wrap:wrap;width:min(650px,80vw);z-index:4}.engine-molecule-menu button{font-size:12px;min-height:33px;padding:6px 10px;background:#193f4ce8;color:#fff5d9}.engine-spark-controls{width:max-content;max-width:90vw;display:flex;align-items:center;gap:10px}.engine-title,.tile-texture.engine{background-image:url('assets/engine-atlas.webp')!important;background-size:200% 100%!important;background-position:0 50%!important}body[data-material=engine] #materialBackdrop .material-grain{background-image:url('assets/engine-atlas.webp');background-size:200% 100%;background-position:100% 50%;transform:scale(1.3)}body[data-material=engine] #lightHint{display:none}.home-stage [data-action="engine:enter"]{font-size:13px}
@media(max-width:650px){.engine-controls{left:50%;width:calc(100vw - 20px);padding:8px;bottom:calc(var(--nav-height,100px) + 10px)}.engine-strokes{gap:4px}.engine-strokes button{font-size:10px;padding:6px;min-height:32px}.engine-playback{gap:5px}.engine-playback button{font-size:11px;padding:6px 9px}.engine-playback span{font-size:10px}#engineStory{font-size:11px;margin-top:5px}.engine-molecule-menu{top:22%;left:50%;width:94vw;gap:4px}.engine-molecule-menu button{font-size:10px;padding:5px 7px}.engine-example{left:50%;font-size:13px;width:86vw;max-width:86vw}.engine-spark-controls{left:50%;bottom:calc(var(--nav-height,100px) + 14px)}.home-stage [data-action="engine:enter"]{font-size:11px;padding:9px}.engine-photo~.hotspot{font-size:12px;max-width:180px;white-space:normal}}

@media(max-width:650px){body[data-material=engine][data-level="1"][data-engine-view=engineCycle] #funFacts,body[data-material=engine][data-level="1"][data-engine-view=engineMix] #funFacts,body[data-material=engine][data-level="1"][data-engine-view=engineSpark] #funFacts{display:none}body[data-material=engine][data-level="1"][data-engine-view=engineMix] .hotspot{top:25%!important}.engine-molecule-menu{top:32%}}

@media(max-width:650px){.engine-mixture-hint{display:none}}

/* Visual engine controls: words live in accessible names and optional help. */
body[data-material=engine][data-level="1"] #funFacts,body[data-material=engine][data-level="2"] #funFacts,body[data-material=engine][data-level="1"] #guide,body[data-material=engine][data-level="2"] #guide{display:none!important}
.engine-visual-controls{width:min(590px,calc(100vw - 40px));display:flex;align-items:center;justify-content:center;gap:12px;padding:10px 14px;border-radius:25px;bottom:calc(var(--nav-height,110px) + 14px)}.engine-visual-controls .engine-strokes{flex-wrap:nowrap;gap:5px}.engine-visual-controls button{font-size:19px;min-width:43px;min-height:41px;padding:6px}.engine-visual-controls input{width:130px;min-width:60px;accent-color:#ffdc83;cursor:ew-resize;touch-action:pan-x}.engine-visual-controls>span{font-size:19px}.engine-video{position:absolute;right:32px;bottom:calc(var(--nav-height,100px) + 22px);z-index:8;font-size:23px;padding:8px 13px;min-height:48px;background:#163e4ce8;color:#fff4cf}.engine-metal-photo{position:absolute;inset:0;background-image:url('assets/engine-metal-atlas.webp');background-size:200% 100%;background-repeat:no-repeat}.engine-crank-photo{background-position:0 50%}.engine-machining-photo{background-position:100% 50%}body[data-material=engine][data-engine-view=engineCrank] #materialBackdrop .material-grain,body[data-material=engine][data-engine-view=engineMetal] #materialBackdrop .material-grain{background-image:url('assets/engine-metal-atlas.webp')}body[data-material=engine][data-engine-view=engineMetal] #materialBackdrop .material-grain{background-position:100% 50%}.engine-sample{outline:none}.engine-sample:focus-visible{filter:drop-shadow(0 0 8px #ffe58d)}
@media(max-width:650px){.engine-visual-controls{left:50%;width:calc(100vw - 24px);gap:6px;padding:8px}.engine-visual-controls button{font-size:15px;min-width:32px;min-height:38px;padding:4px}.engine-visual-controls .engine-strokes{gap:3px}.engine-visual-controls input{width:66px}.engine-visual-controls>span{font-size:15px}.engine-video{right:16px;bottom:calc(var(--nav-height,100px) + 80px);font-size:20px}.engine-photo~.hotspot{max-width:130px}}

.engine-visual-controls{left:50%}body[data-material=engine][data-engine-view=engineSpark] .engine-strokes{display:none}

.tile-texture.engine.detail-engineCrank,.title-material-photo.engine-crank-title{background-image:url('assets/engine-metal-atlas.webp')!important;background-position:0 50%!important}.tile-texture.engine.detail-engineMetal,.title-material-photo.engine-metal-title{background-image:url('assets/engine-metal-atlas.webp')!important;background-position:100% 50%!important}

/* One continuous speed control; zero freezes the engine, including its sound. */
.engine-speed-only{left:50%;width:min(340px,calc(100vw - 40px));display:flex;justify-content:center;align-items:center;gap:14px;padding:10px 16px}.engine-speed-only input{width:260px;min-width:100px;accent-color:#ffda75;cursor:ew-resize;touch-action:pan-x}.engine-speed-only>span{font-size:20px;color:#ffe7ac}.engine-action-label{position:absolute;right:5%;top:42%;width:210px;padding:12px 15px;border-radius:18px;border:1px solid #b2dfdf42;background:#123745eb;color:#fff4ce;text-align:center;font-size:22px;line-height:1.2;pointer-events:none;z-index:4;margin:0}.engine-action-label:before{content:'←';display:block;color:#ffdf88;font-size:28px;line-height:1}.engine-svg [aria-hidden=true]{pointer-events:none}.engine-svg .engine-sample>.zoom-marker-slot{pointer-events:auto}
@media(max-width:650px){.engine-speed-only{width:min(300px,calc(100vw - 30px));padding:9px 14px;gap:10px}.engine-speed-only input{width:220px}.engine-action-label{left:50%;right:auto;top:auto;bottom:calc(var(--nav-height,100px) + 100px);transform:translateX(-50%);width:max-content;max-width:90vw;font-size:17px;padding:9px 14px}.engine-action-label:before{content:'↑';display:inline;margin-right:8px;font-size:20px}.engine-video{bottom:calc(var(--nav-height,100px) + 165px)}}

@media(min-width:651px){.engine-action-label{left:20px;right:auto;top:43%}.engine-action-label:before{content:'→'}}

/* Tactile speed control and a clear, glowing film invitation. */
.engine-speed-only{display:block;padding:9px 16px 12px;border:2px solid #f6d88a99;box-shadow:0 0 16px #ffd76935}.engine-speed-only label{display:block;text-align:center;font-size:14px;color:#fff1be;margin-bottom:8px;cursor:ew-resize}.engine-speed-track{display:flex;align-items:center;gap:12px}.engine-speed-track>span{font-size:20px}.engine-speed-only input{-webkit-appearance:none;appearance:none;padding:0;height:16px;border:1px solid #fff1b680;border-radius:20px;background:linear-gradient(to right,#ffda76 0%,#ffda76 var(--engine-speed,30%),#244a5d var(--engine-speed,30%),#244a5d 100%);outline-offset:8px}.engine-speed-only input::-webkit-slider-thumb{-webkit-appearance:none;width:30px;height:30px;border-radius:50%;background:linear-gradient(120deg,#fff7d2,#ffd365);border:4px solid #fff2ba;box-shadow:0 0 0 5px #ffd36a44,0 0 16px #ffe08399;cursor:grab}.engine-speed-only input:active::-webkit-slider-thumb{cursor:grabbing;box-shadow:0 0 0 9px #ffd36a55,0 0 25px #ffe083cc}.engine-speed-only input::-moz-range-thumb{width:25px;height:25px;border-radius:50%;background:#ffdc7e;border:3px solid #fff2ba;cursor:grab}.engine-drag-arrow{display:inline-block;color:#ffda76;font-size:20px;animation:engineDragHint 2.5s ease-in-out infinite;margin-right:5px}.engine-video{font-size:17px;border:2px solid #fff0b6;border-radius:25px;padding:13px 18px;background:#173c48ee;box-shadow:0 0 0 6px #ffdb6b8c;animation:pulse 2.7s ease-out infinite}.engine-video:hover,.engine-video:focus-visible{background:#286b69;box-shadow:0 0 0 10px #ffe078a6}@keyframes engineDragHint{0%,100%{transform:translateX(-3px)}50%{transform:translateX(3px)}}
@media(min-width:651px){body[data-engine-view=engineMix] .engine-speed-only{left:22%}}
@media(max-width:650px){.engine-speed-only label{font-size:12px;margin-bottom:6px}.engine-speed-only{padding:7px 15px 10px}.engine-video{font-size:14px;padding:10px 13px;right:16px}.engine-action-label{bottom:calc(var(--nav-height,100px) + 120px)}}
@media(prefers-reduced-motion:reduce){.engine-drag-arrow,.engine-video{animation:none}}
/* Christopher's brain: illustrative tissue with local, accessible exploration. */
.brain-world{position:absolute;inset:0;background:radial-gradient(ellipse at center,#23424a 0,#102d38 70%)}
.brain-world>svg{position:absolute;left:50%;top:43%;transform:translate(-50%,-50%);width:min(920px,95vw,calc((100dvh - 290px)*1.5));height:auto;overflow:visible}
.brain-hit{cursor:pointer;outline:none}.brain-hit circle,.brain-hit rect{fill:#123c4ad9;stroke:#ffe6a0;stroke-width:2;filter:drop-shadow(0 0 7px #ffd97888)}.brain-hit circle{animation:brain-marker 3s ease-in-out infinite}.brain-hit text{font:500 20px Adventure,sans-serif;fill:#fff0c4;paint-order:stroke;stroke:#153745;stroke-width:4px;stroke-linejoin:round}.brain-hit:hover circle,.brain-hit:focus circle,.brain-hit:hover rect,.brain-hit:focus rect{fill:#45695a;stroke-width:4}.brain-eye-marker text{font-size:15px;stroke:none}.brain-eye-marker rect{animation:brain-marker 3s ease-in-out infinite}.brain-small{font:400 17px Adventure,sans-serif;fill:#e6e7d7;paint-order:stroke;stroke:#153745;stroke-width:3px;stroke-linejoin:round}.brain-cell{cursor:zoom-in;outline:none}.brain-cell:focus{filter:drop-shadow(0 0 6px #ffe6a0)}.brain-cell:hover{filter:brightness(1.18)}.brain-controls{position:absolute;bottom:calc(var(--nav-height,110px) + 38px);left:50%;transform:translateX(-50%);width:min(580px,90vw);text-align:center;padding:12px 16px;border:1px solid #b6dad64d;border-radius:22px;background:#0c2b38eb;box-shadow:0 8px 30px #0003}.brain-messages{display:flex;gap:7px;justify-content:center}.brain-messages button{background:#214653;color:#f4ead1;border:1px solid #bdd8d344;border-radius:20px;padding:6px 12px;font:400 14px Adventure,sans-serif;min-height:36px;white-space:nowrap}.brain-messages button[aria-pressed=true]{border-color:var(--chem);box-shadow:0 0 9px color-mix(in srgb,var(--chem) 30%,transparent)}.brain-messages i{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--chem);margin-right:5px}.brain-controls p{font-size:13px;min-height:18px;margin:8px 0;color:#e4e9dc}.brain-speed{display:flex;align-items:center;justify-content:center;gap:14px;font-size:13px;color:#ffe5a0}.brain-speed input{padding:0;width:190px;height:24px;accent-color:#ffdc77;cursor:ew-resize}.brain-eye-link{position:absolute;right:5%;top:27%;background:#214a54;color:#ffedb9;border:1px solid #ffe6a0;border-radius:24px;padding:11px 18px;font:400 15px Adventure,sans-serif;box-shadow:0 0 18px #ffdc7844;animation:brain-marker 4s infinite}.brain-chemical{cursor:zoom-in;fill:#ffbb6b;stroke:#fff4cd55;stroke-width:1}
body[data-material="brain"][data-level="1"] .dock{display:none}body[data-material="brain"] .material-grain{background-image:url('assets/brain-atlas.webp');background-size:200% 200%;background-position:0 0}body[data-material="brain"][data-level="2"] .material-grain{background-position:100% 100%;opacity:.3}body[data-material="brain"][data-level="3"] .material-grain{background-position:100% 100%;opacity:.15}.tile-texture.brain{background-image:url('assets/brain-atlas.webp');background-size:200% 200%;background-position:0 0}.tile-texture.brain.detail-brainTissue,.tile-texture.brain.detail-brainNetwork{background-position:100% 0}.tile-texture.brain.detail-brainNeuron{background-position:0 100%}.tile-texture.brain.detail-brainSynapse{background-position:100% 100%}
@keyframes brain-marker{0%,100%{filter:drop-shadow(0 0 3px #ffda7877)}50%{filter:drop-shadow(0 0 10px #ffda78bb)}}
@media(max-width:650px){.brain-world>svg{top:41%;width:105vw;max-height:calc(100dvh - 290px)}.brain-controls{bottom:calc(var(--nav-height,90px) + 24px);padding:10px 8px;width:calc(100vw - 36px)}.brain-messages{gap:4px;flex-wrap:wrap}.brain-messages button{font-size:12px;padding:5px 8px;min-height:34px}.brain-controls p{font-size:11px;margin:7px 4px;min-height:28px}.brain-speed{font-size:12px}.brain-speed input{width:160px}.brain-eye-link{top:20%;right:4%;font-size:12px;padding:8px 12px}.brain-hit text{font-size:23px}.brain-small{font-size:20px}.home-stage [data-action="brain:enter"]{left:40%!important;top:13%!important}.brain-world.brain-brainNetwork>svg,.brain-world.brain-brainNeuron>svg,.brain-world.brain-brainSynapse>svg{top:39%}}
@media(prefers-reduced-motion:reduce){.brain-hit circle,.brain-hit rect,.brain-eye-link{animation:none}}
/* Leave room around labels and keep the eye return link clear of the facts. */
.brain-eye-link{right:auto;left:5%;top:24%}
body[data-material="brain"][data-level="1"] #guide{display:none!important}
@media(max-width:650px){.brain-eye-link{left:4%;top:20%;right:auto}.brain-world>svg{width:100vw}.brain-hit text{font-size:22px}}

.tile-texture.brain{background-image:url('assets/brain-atlas.webp')!important;background-size:200% 200%!important}.tile-texture.brain.detail-brainTissue,.tile-texture.brain.detail-brainNetwork{background-position:100% 0!important}.tile-texture.brain.detail-brainNeuron{background-position:0 100%!important}.tile-texture.brain.detail-brainSynapse{background-position:100% 100%!important}
@media(max-width:650px){body[data-material="brain"][data-level="1"] #funFacts{top:56%!important;bottom:auto!important;max-height:130px;overflow:auto;padding:10px 14px}body[data-material="brain"][data-level="1"] #funFacts li{font-size:11px;margin:4px 0}}
/* Tissue fills the viewport; only the teaching focus comes forward. */
.brain-environment{position:absolute;inset:0;overflow:hidden;pointer-events:none;background:#172e36}.brain-environment-photo,.brain-ambient-field{position:absolute;inset:0;width:100%;height:100%;max-height:none}.brain-environment-photo{opacity:.42;filter:blur(1.2px) saturate(.7)}.brain-ambient-field{opacity:.7;filter:blur(.65px)}.brain-environment-shade{position:absolute;inset:0;background:radial-gradient(ellipse at 48% 42%,#142b3220 5%,#102d3840 55%,#0b26358a 100%)}.brain-synapse-environment .brain-environment-photo{opacity:.6;filter:blur(2px) saturate(.8)}.brain-synapse-environment .brain-environment-shade{background:radial-gradient(ellipse at 48% 40%,#142b3210 0,#102d3840 55%,#0b263570 100%)}.brain-eye-input .brain-small{font-size:16px}.brain-eye-input{pointer-events:none}.brain-world>svg{z-index:1}.brain-controls,.brain-eye-link{z-index:2}.brain-brainSynapse .brain-hit text{font-size:19px}
@media(max-width:650px){.brain-eye-input .brain-small{font-size:20px}.brain-brainSynapse .brain-hit text{font-size:22px}}
@media(max-width:650px){body[data-brain-view="brainNeuron"] #funFacts,body[data-brain-view="brainSynapse"] #funFacts{display:none!important}.brain-brainSynapse .brain-hit text{font-size:26px}}
.brain-hit rect.brain-side-target{fill:transparent;stroke:none;filter:none}
/* Keep the brain destination over the outgoing optic nerve, clear of cone cells. */
.brain-eye-marker text{font-size:19px}
@media(max-width:650px){.brain-eye-marker rect{ x:820px;y:220px;width:220px;height:90px;rx:45px}.brain-eye-marker text{x:930px;y:275px;font-size:26px}}
body[data-eye-lab="true"] #funFacts{display:none}
@media(max-width:650px){.brain-eye-marker text{transform:translate(-65px,7px)}}
.brain-task-tools{position:absolute;z-index:3;left:50%;transform:translateX(-50%);bottom:calc(var(--nav-height,100px) + 174px);padding:8px 18px;border-radius:22px;border:1px solid #d6dbbc66;background:#133544ed;text-align:center;width:min(520px,87vw)}.brain-task-tools>div{display:flex;justify-content:center;gap:12px}.brain-task-tools button{font:500 15px Adventure,sans-serif;min-height:40px;border-radius:22px;background:#e9d5a5;color:#163640;padding:8px 18px;box-shadow:0 0 10px #ffe07833}.brain-task-tools p{font-size:12px;color:#f1ebd2;margin:7px 0 0;min-height:15px}.brain-memory-question{font:600 65px Adventure,sans-serif;fill:#efd9ff}.brain-brainOverview .brain-environment-photo{filter:blur(7px);opacity:.3}body[data-brain-region="move"] .brain-environment-shade{background:radial-gradient(ellipse at 45% 45%,#75512c16,#172d3988)}body[data-brain-region="memory"] .brain-environment-shade{background:radial-gradient(ellipse at 45% 45%,#663a6628,#182a4188)}body[data-brain-region="plan"] .brain-environment-shade{background:radial-gradient(ellipse at 45% 45%,#205d6020,#102d4188)}
@media(max-width:650px){.brain-task-tools{bottom:calc(var(--nav-height,90px) + 174px);padding:8px 10px}.brain-task-tools button{font-size:12px;padding:7px 12px;min-height:38px}.brain-task-tools p{font-size:11px;line-height:1.3}body[data-material="brain"][data-level="1"][data-brain-region="move"] #funFacts,body[data-material="brain"][data-level="1"][data-brain-region="memory"] #funFacts,body[data-material="brain"][data-level="1"][data-brain-region="plan"] #funFacts{display:none!important}}
@media(max-width:650px){body[data-material="brain"][data-level="1"] #funFacts{display:none!important}}
.brain-lesson-stages{list-style:none;display:flex;justify-content:center;gap:12px;margin:0 0 9px;padding:0;color:#b8c9cd;font-size:12px}.brain-lesson-stages li{padding:3px 7px;border-radius:12px}.brain-lesson-stages li[aria-current="step"]{color:#fff0b3;background:#52675a;box-shadow:0 0 8px #ffe28a33}.brain-task-tools button:disabled{opacity:.4;cursor:default}.brain-task-tools p{max-width:490px;margin:8px auto 0;min-height:30px;line-height:1.3}.brain-lesson-move p{min-height:15px}.brain-memory-context .brain-small,.brain-planning-context .brain-small{font-size:16px}
@media(max-width:650px){.brain-task-tools{bottom:calc(var(--nav-height,90px) + 174px)}.brain-task-tools>div{gap:5px}.brain-task-tools button{font-size:11px;padding:6px 8px;min-height:36px}.brain-lesson-stages{font-size:10px;gap:4px;margin-bottom:7px}.brain-lesson-stages li{padding:3px 5px}.brain-memory-context .brain-small,.brain-planning-context .brain-small{font-size:20px}.brain-task-tools p{min-height:28px;font-size:11px}}
.brain-task-tools button[aria-pressed="true"]{background:#fff1b8;box-shadow:0 0 0 3px #ffe79b55,0 0 14px #ffde6f44}
.brain-save-title{font:500 24px Adventure,sans-serif;fill:#eee2ff;paint-order:stroke;stroke:#153745;stroke-width:2px}.brain-saved-memory .brain-small{font-size:16px}
@media(max-width:650px){.brain-save-title{font-size:28px}.brain-saved-memory .brain-small{font-size:21px}}
.brain-memory-subtitle{position:absolute;left:50%;top:170px;transform:translateX(-50%);font-size:15px;color:#e6e4d8;margin:0;white-space:nowrap;z-index:2;text-shadow:0 2px 5px #102d38}body[data-brain-view="brainNetwork"][data-brain-region="memory"] .brain-task-tools{bottom:calc(var(--nav-height,100px) + 30px)}body[data-brain-view="brainNetwork"][data-brain-region="memory"] #funFacts{display:none!important}
@media(max-width:650px){.brain-memory-subtitle{top:150px;font-size:12px}body[data-brain-view="brainNetwork"][data-brain-region="memory"] .brain-task-tools{bottom:calc(var(--nav-height,90px) + 24px)}}
.brain-connections{position:absolute;right:22px;top:190px;z-index:8;color:#e3e9dc;font-size:13px;width:190px}.brain-connections summary{cursor:pointer;text-align:center;padding:8px 12px;border:1px solid #b9d0d566;border-radius:18px;background:#123743e6;list-style-position:inside}.brain-connections nav{display:flex;flex-direction:column;gap:5px;margin-top:6px;padding:8px;background:#123743f2;border:1px solid #b9d0d555;border-radius:16px}.brain-connections button{font:400 13px Adventure,sans-serif;padding:8px 10px;min-height:36px;border-radius:12px;background:#294d59;color:#f2e8c7;border:1px solid #b9d0d533;text-align:left}.brain-connections .brain-react-link{border-color:#ffe49a;color:#fff1b8;box-shadow:0 0 9px #ffdf8844}
@media(max-width:650px){.brain-connections{right:12px;top:177px;width:145px;font-size:11px}.brain-connections summary{padding:6px 8px}.brain-connections button{font-size:12px}}

/* Brain lessons use a fixed readable pace; connections live alongside the circuit. */
body[data-material="brain"][data-level="1"] .brain-task-tools{bottom:calc(var(--nav-height,100px) + 26px)}
body[data-brain-view="brainNetwork"] #funFacts{display:none!important}
.brain-area-fiber{fill:none;stroke:#c9b99a;stroke-width:5;opacity:.55}
.brain-neural-destination{cursor:pointer;outline:none}.brain-neural-destination rect{fill:#163d49e8;stroke:#d8d8b4;stroke-width:1.5}.brain-neural-destination circle{fill:#ffe59b}.brain-neural-destination text{fill:#f5e8c2;font-size:17px}.brain-neural-destination:hover rect,.brain-neural-destination:focus rect{stroke:#fff4b4;stroke-width:3}.brain-neural-destination.is-active rect{stroke:#ffe996;animation:brain-link-glow 1.6s ease-in-out infinite}
@keyframes brain-link-glow{50%{filter:drop-shadow(0 0 9px #ffe990)}}
.brain-brainOverview .brain-environment-photo{filter:saturate(.85);opacity:1;animation:brain-overview-drift 12s ease-in-out infinite alternate;transform:scale(1.04)}
.brain-brainOverview .brain-environment-shade{background:radial-gradient(ellipse at 50% 45%,transparent 30%,#102d3855)}
.brain-brainOverview .brain-ambient-field{opacity:.48;mix-blend-mode:screen}
@keyframes brain-overview-drift{to{transform:scale(1.09) translate(-.6%,.4%)}}
@media(max-width:650px){body[data-material="brain"][data-level="1"] .brain-task-tools{bottom:calc(var(--nav-height,90px) + 24px)}.brain-neural-destination text{font-size:20px}.brain-neural-destination rect{width:195px}body[data-brain-view="brainNetwork"][data-brain-region="plan"] .brain-world>svg{top:44%;width:100vw}}
@media(prefers-reduced-motion:reduce){.brain-brainOverview .brain-environment-photo,.brain-neural-destination.is-active rect{animation:none}}

@media(min-width:651px){body[data-brain-view="brainNetwork"][data-brain-region="plan"] .brain-world>svg{top:48%;width:min(850px,95vw,calc((100dvh - 290px)*1.5))}}

@media(max-width:650px){.brain-planning-context .brain-small{font-size:23px}}

.brain-visual-context .brain-small{font-size:16px}.brain-visual-outputs .brain-area-fiber{stroke-width:6}.brain-visual-destination rect{animation:brain-link-glow 2.3s ease-in-out infinite}.brain-visual-destination.is-active rect{stroke:#fff1b0;stroke-width:3}.brain-visual-outputs .brain-neural-destination text{font-size:18px}.brain-visual-outputs .brain-neural-destination rect{width:180px}
@media(max-width:650px){body[data-brain-view="brainNetwork"][data-brain-region="visual"] .brain-world>svg{top:45%}.brain-visual-context .brain-small{font-size:21px}.brain-visual-outputs .brain-neural-destination text{font-size:22px}.brain-visual-outputs .brain-neural-destination rect{width:180px}}
@media(prefers-reduced-motion:reduce){.brain-visual-destination rect{animation:none}}

/* Screen-edge labels sit at the same scaled height as their neural channels. */
.brain-brainNetwork{--brain-top:43%;--brain-width:min(920px,95vw,calc((100dvh - 290px)*1.5))}
.brain-channel-link{position:absolute;z-index:4;top:calc(var(--brain-top) + (var(--channel-y) - var(--brain-mid,300))*var(--brain-width)/900);transform:translateY(-50%);max-width:300px;min-height:44px;padding:10px 16px;font:400 14px Adventure,sans-serif;cursor:pointer}
.brain-channel-left{left:12px}.brain-channel-right{right:12px}.brain-channel-link.is-active{border-color:#fff5ba;box-shadow:0 0 22px #ffe88a99}.brain-channel-link:focus-visible{outline:3px solid #8dddf1;outline-offset:3px}
@media(min-width:651px){body[data-brain-region="plan"] .brain-brainNetwork{--brain-top:48%;--brain-width:min(850px,95vw,calc((100dvh - 290px)*1.5))}}
@media(max-width:650px){.brain-brainNetwork{--brain-top:39%;--brain-width:100vw}body[data-brain-region="visual"] .brain-brainNetwork{--brain-top:45%}body[data-brain-region="plan"] .brain-brainNetwork{--brain-top:44%}.brain-channel-link{font-size:11px;max-width:153px;min-height:36px;padding:6px 10px;line-height:1.2}.brain-channel-left{left:6px}.brain-channel-right{right:6px}}
@media(prefers-reduced-motion:reduce){.brain-channel-link{animation:none}}

@media(max-width:650px){body[data-brain-region="move"] .brain-channel-left,body[data-brain-region="plan"] .brain-channel-right{max-width:110px}}

.brain-brainSoma>svg{top:40%}
.brain-soma-tools{width:min(650px,92vw);padding:10px 14px}
.brain-soma-tools p{min-height:0;margin:0 auto 8px}
.brain-soma-tools label{font-size:13px;color:#fff4d4;display:flex;align-items:center;gap:5px}
.brain-soma-tools input{accent-color:#ffd585}
.brain-soma-tools input[type=range]{width:88px}
.brain-soma-tools .brain-soma-sliders{flex-wrap:wrap;margin:7px 0}
body[data-brain-view="brainSoma"] #funFacts{display:none!important}
@media(max-width:650px){.brain-brainSoma>svg{top:37%}.brain-soma-tools label{font-size:11px}}


/* Dense direct-manipulation targets stay uncovered so their shapes and colors remain readable. */
#scene svg :is(.particle,.brain-cell,.brain-chemical,.cone-target,.engine-sample,.sibling-link,.gluon-tube,[data-quark]):is(:hover,:focus-visible){filter:drop-shadow(0 0 7px #ffdf6ba6)}

.brain-brainSoma{--soma-width:min(920px,95vw,calc((100dvh - 290px)*1.5));--soma-top:40%}
.soma-input{position:absolute;z-index:3;background:#143542e8;border:1px solid #ffdb8b77;border-radius:17px;padding:10px 12px;width:178px;color:#fff3ce;font-size:13px}
.soma-input label{display:flex;flex-direction:column;gap:6px}
.soma-input input[type=range]{width:100%;accent-color:#ffcf78;cursor:ew-resize}
.soma-input span{font-size:11px;display:block;margin-top:5px}
.soma-input-go{left:calc(50% - var(--soma-width)/2);top:calc(var(--soma-top) - var(--soma-width)*115/900);border-color:#ffd079}
.soma-input-slow{left:calc(50% - var(--soma-width)/2);top:calc(var(--soma-top) + var(--soma-width)*55/900);border-color:#98cfff}
.soma-input-slow label{display:block}.soma-input-slow input{accent-color:#98cfff}
.soma-input-bias{left:calc(50% + var(--soma-width)*160/900);top:calc(var(--soma-top) + var(--soma-width)*135/900);width:180px}
@media(max-width:650px){
 .brain-brainSoma{--soma-width:100vw;--soma-top:37%}
 .soma-input{width:117px;padding:7px 8px;font-size:10px}
 .soma-input span{font-size:9px}
 .soma-input-go{left:6px;top:calc(var(--soma-top) - 106px)}
 .soma-input-slow{left:6px;top:calc(var(--soma-top) + 55px)}
 .soma-input-bias{left:auto;right:6px;top:calc(var(--soma-top) + 65px);width:125px}
}

.wire-photo{position:absolute;inset:0;background:url(assets/copper-wire-real.webp) center/cover no-repeat;opacity:.85;pointer-events:none}.tile-symbol>svg{width:38px;height:38px}

.brain-region-light{opacity:.2;animation:brain-region-activity 4s ease-in-out var(--region-delay,0s) infinite;pointer-events:none}
@keyframes brain-region-activity{0%,100%{opacity:.13}45%{opacity:.5;filter:drop-shadow(0 0 14px #ffe0a9)}}
.ear-photo{position:absolute;inset:0;background:url(assets/ear-cutaway.webp) center/cover no-repeat}
.ear-photo-note{position:absolute;bottom:calc(var(--nav-height,100px) + 25px);left:50%;transform:translateX(-50%);background:#123848e8;border-radius:20px;padding:12px 18px;width:max-content;max-width:90vw;text-align:center}
.ear-world{position:absolute;inset:0;overflow:hidden;background:#15313b}.ear-backdrop{filter:blur(20px) brightness(.45);transform:scale(1.1)}
.ear-world>svg{position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);width:min(1250px,100vw);height:auto;max-height:calc(100dvh - 235px);overflow:visible}
.ear-label,.ear-small{font-family:Adventure,sans-serif;fill:#fff3cf;paint-order:stroke;stroke:#183743;stroke-width:3px;stroke-linejoin:round;text-anchor:middle}.ear-label{font-size:18px}.ear-small{font-size:14px}
.ear-air-molecule[role=button]{cursor:zoom-in;outline:none}.ear-air-molecule[role=button]:is(:hover,:focus-visible){filter:drop-shadow(0 0 5px #ffdf6b)}
.ear-controls{position:absolute;bottom:calc(var(--nav-height,100px) + 20px);left:50%;transform:translateX(-50%);text-align:center;background:#123848ed;padding:12px 20px;border-radius:22px;max-width:90vw;width:max-content}.ear-controls button::before{content:none}.ear-controls p{margin:12px 0 0;font-size:14px}
body[data-face-branch=ears] #funFacts{display:none}
@media(max-width:650px){.ear-world>svg{width:100vw;left:50%;top:43%}.ear-world .zoom-marker-slot .zoom-marker{font-size:19px}.ear-controls{width:90vw;padding:12px}.ear-controls p{font-size:12px}.ear-photo-note{font-size:13px}}
@media(prefers-reduced-motion:reduce){.brain-region-light{animation:none}}

.ear-mobile-memory,.ear-mobile-legend{display:none}@media(max-width:650px){.ear-mobile-memory{display:block;position:absolute;right:10px;top:62%;font-size:12px;padding:10px}.ear-mobile-legend{display:block;position:absolute;top:24%;left:50%;transform:translateX(-50%);width:max-content;font-size:12px;background:#143c48d9;border-radius:14px;padding:9px}.ear-world .svg-zoom-target{display:none}.ear-label{font-size:24px}.ear-small{font-size:18px}}

body[data-brain-view="brainOverview"] #funFacts{display:none}

@media(max-width:650px){body[data-brain-region="hearing"] .brain-brainNetwork{--brain-top:50%;--brain-width:100vw;--brain-mid:550}body[data-brain-region="hearing"] .brain-brainNetwork>svg{top:50%;width:100vw;max-height:calc(100dvh - 250px)}.brain-hearing-model .brain-small{font-size:25px}}

@media(max-width:650px){.brain-hearing-model .hearing-input-label{display:none}}

.hand-world{position:absolute;inset:0;overflow:hidden;background:#12323d}
.hand-photo{position:absolute;inset:0;background-image:url(assets/hand-atlas.webp);background-size:200% 200%;background-repeat:no-repeat}
.hand-photo-0,.detail-handOverview{background-image:url(assets/hand-atlas.webp)!important;background-size:200% 200%!important;background-position:0 0!important}
.hand-photo-1,.detail-handNail{background-image:url(assets/hand-atlas.webp)!important;background-size:200% 200%!important;background-position:100% 0!important}
.hand-photo-2,.detail-handWrist,.detail-handMuscle,.detail-handNMJ,.detail-handNerve{background-image:url(assets/hand-atlas.webp)!important;background-size:200% 200%!important;background-position:0 100%!important}
.hand-photo-3,.detail-handKnuckle{background-image:url(assets/hand-atlas.webp)!important;background-size:200% 200%!important;background-position:100% 100%!important}
.hand-model-shade{position:absolute;inset:0;background:#0c2b35ce}
.hand-world>svg{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);width:min(1150px,98vw);height:auto;max-height:calc(100dvh - 230px);overflow:visible}
.hand-label,.hand-small{font-family:Adventure,sans-serif;fill:#fff0c8;text-anchor:middle;paint-order:stroke;stroke:#153542;stroke-width:3px;stroke-linejoin:round}.hand-label{font-size:20px}.hand-small{font-size:17px}
.hand-stage,.hand-move-button{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(var(--nav-height,100px) + 28px);background:#123846ed;border-radius:22px;padding:12px 20px;text-align:center;max-width:90vw;width:max-content}.hand-move-button{font-family:inherit;cursor:zoom-in}.hand-move-button::before{content:none}
body[data-face-branch="hand"] #funFacts{display:none}body[data-face-branch="hand"][data-level="2"] #materialBackdrop .material-grain{background-image:url(assets/hand-atlas.webp);background-size:200% 200%;background-position:100% 0}
@media(max-width:650px){.hand-world>svg{width:110vw;top:43%}.hand-world .zoom-marker-slot .zoom-marker{font-size:23px}.hand-label{font-size:24px}.hand-small{font-size:22px}.hand-stage{font-size:12px;width:90vw}.hand-handOverview .hotspot{font-size:12px}}

.hand-handKnuckle .hand-photo,.hand-handMuscle .hand-photo,.hand-handNMJ .hand-photo,.hand-handNerve .hand-photo{filter:blur(10px);transform:scale(1.05)}
@media(max-width:650px){.hand-world>svg{width:100vw}}
/* Full-bleed hand photographs preserve Christopher's original grip and camera. */
.hand-photo-0,.detail-handOverview{background-image:url(assets/hand-grip-real.webp)!important;background-size:cover!important;background-position:center!important}
.hand-photo-1,.detail-handNail{background-image:url(assets/nail-surface-real.webp)!important;background-size:cover!important;background-position:center!important}
.hand-handNerve .hand-photo,.hand-handWristNerve .hand-photo,.hand-handNMJ .hand-photo{display:none}
.hand-handWristNerve .hand-model-shade,.hand-handNerve .hand-model-shade,.hand-handNMJ .hand-model-shade{display:none}
.hand-handNerve>svg,.hand-handWristNerve>svg,.hand-handNMJ>svg{width:100%;height:100%;max-height:none;top:50%;object-fit:cover}
.hand-handKnuckle,.hand-handMuscle{background:radial-gradient(ellipse at 50% 45%,#886552,#243c40 75%)}
.hand-handKnuckle .hand-photo,.hand-handMuscle .hand-photo{display:none}
.hand-handKnuckle .hand-model-shade,.hand-handMuscle .hand-model-shade{display:none}
.hand-handKnuckle>svg,.hand-handMuscle>svg{width:min(1350px,100vw);max-height:calc(100dvh - 170px);top:48%}
.hand-small{paint-order:stroke;stroke:#18333c;stroke-width:4px;stroke-linejoin:round}
.sensory-tools{position:absolute;z-index:8;left:50%;transform:translateX(-50%);bottom:calc(var(--nav-height,100px) + 18px);width:max-content;max-width:90vw;text-align:center}
.sensory-tools>div{display:flex;justify-content:center;gap:7px;flex-wrap:wrap}
.sensory-tools button{border:1px solid #a6d9d5;border-radius:24px;background:#244852ed;color:#fff2d5;padding:9px 15px;font:inherit;cursor:pointer}
.sensory-tools button[aria-pressed=true]{background:#b8e2d3;color:#193f46;box-shadow:0 0 16px #c1ffe05c}
.sensory-tools details{position:relative;color:#fff4d4;font-size:13px;margin-top:8px}
.sensory-tools summary{cursor:pointer;list-style:none;display:inline-block;padding:6px 12px;border-radius:20px;background:#163b46e8}
.sensory-tools details p{position:absolute;bottom:30px;left:50%;transform:translateX(-50%);width:420px;max-width:82vw;line-height:1.5;padding:16px;border:1px solid #9ac9cb;border-radius:15px;background:#163a44fa;box-shadow:0 8px 40px #0007;text-align:left}
.hearing-lesson .brain-small{font-size:15px}.hearing-lesson{filter:drop-shadow(0 2px 3px #123a43)}
body[data-brain-region=touch] .brain-channel-link{max-width:30vw}
@media(max-width:650px){.hand-handNerve>svg,.hand-handWristNerve>svg{width:130vw;height:auto;top:45%;left:46%}.hand-handNMJ>svg{width:125vw;height:auto;top:43%}.hand-handOverview .hotspot{max-width:115px}.hand-handOverview .hotspot[data-action="hand:wrist"]{left:78%!important}.sensory-tools{bottom:calc(var(--nav-height,90px) + 16px)}.sensory-tools button{font-size:12px;padding:8px 11px}.hearing-lesson .brain-small{font-size:20px}body[data-brain-region=touch] .brain-world>svg{width:110vw;top:43%}body[data-brain-region=touch] .brain-channel-link{font-size:11px;max-width:39vw}}
@media(max-width:650px){.hand-handKnuckle>svg,.hand-handMuscle>svg{width:125vw;left:50%}.hand-handKnuckle .hand-small,.hand-handMuscle .hand-small{font-size:19px}.hand-handKnuckle .zoom-marker-slot .zoom-marker,.hand-handMuscle .zoom-marker-slot .zoom-marker{font-size:20px}}
.detail-handNMJ{background-image:url(assets/neuromuscular-real.webp)!important;background-size:cover!important;background-position:center!important}
.detail-handNerve,.detail-handWristNerve{background-image:url(assets/body-nerve-real.webp)!important;background-size:cover!important;background-position:center!important}
.detail-handKnuckle,.detail-handMuscle{background-image:url(assets/finger-joint-real.webp)!important;background-size:cover!important;background-position:center!important}
@media(max-width:650px){.hand-handOverview .hand-photo{background-size:100% auto!important;background-position:center!important}.hand-handOverview{background:radial-gradient(ellipse at center,#6a6456,#173943 75%)}.hand-handOverview [data-action="hand:nail"]{top:calc(50% - 7.333vw)!important}.hand-handOverview [data-action="hand:knuckle"]{top:calc(50% - 8.667vw)!important}.hand-handOverview [data-action="hand:wrist"]{left:85%!important;top:calc(50% + 18.667vw)!important}}

/* Nerve travel controls sit outside the scaled anatomy drawing. */
.hand-travel {
  position:absolute;
  z-index:3;
  min-height:40px;
  padding:7px 12px;
  font:500 clamp(12px,1.15vw,15px) Adventure,sans-serif;
  cursor:pointer;
}
.hand-travel-wrist,.hand-travel-knuckle,.hand-travel-motor,.hand-travel-touch {
  left:clamp(8px,2vw,28px);
}
.hand-travel-wrist {top:51%}
.hand-travel-knuckle {
  top:calc(48% - min(15.556vw,210px,(100dvh - 170px)*.233333));
  transform:translateY(-50%);
}
@media(max-width:650px) {
  .hand-travel-knuckle {top:calc(48% - 19.444vw)}
}
.hand-travel-motor {top:max(28%,135px)}
.hand-travel-touch {top:calc(max(28%,135px) + 49px)}
.hand-travel-return {right:clamp(8px,2vw,28px);top:59%}

/* Anchor these controls to the fitted body image on the wrist pathway. */
.hand-handWristNerve {
  --body-unit:min(100vw / 900, 100dvh / 600);
}
.hand-handWristNerve .hand-travel-motor,
.hand-handWristNerve .hand-travel-touch {
  left:calc(50% - 175 * var(--body-unit));
}
.hand-handWristNerve .hand-travel-motor {
  top:max(185px,calc(50% - 165 * var(--body-unit)));
}
.hand-handWristNerve .hand-travel-touch {
  top:calc(max(185px,50% - 165 * var(--body-unit)) + 47px);
}
.hand-handWristNerve .hand-travel-return {
  left:calc(50% + 280 * var(--body-unit));
  right:auto;
  top:calc(50% + 125 * var(--body-unit));
  transform:translateX(-50%);
}
@media(max-width:650px) {
  .hand-handWristNerve {--body-unit:calc(130vw / 900)}
  .hand-handWristNerve .hand-travel-motor,
  .hand-handWristNerve .hand-travel-touch {left:calc(46% - 175 * var(--body-unit))}
  .hand-handWristNerve .hand-travel-motor {top:max(150px,calc(45% - 165 * var(--body-unit)))}
  .hand-handWristNerve .hand-travel-touch {top:calc(max(150px,45% - 165 * var(--body-unit)) + 47px)}
  .hand-handWristNerve .hand-travel-return {left:calc(46% + 280 * var(--body-unit));top:calc(45% + 125 * var(--body-unit))}
}

.hand-handWristNerve .hand-travel-knuckle-target {
  left:calc(50% + 377 * var(--body-unit));
  top:calc(50% + 174 * var(--body-unit));
  transform:translateX(-50%);
}
@media(max-width:650px) {
  .hand-handWristNerve .hand-travel-knuckle-target {
    left:min(calc(46% + 377 * var(--body-unit)),calc(100% - 42px));
    top:calc(45% + 125 * var(--body-unit) + 44px);
  }
}

.home-cat{position:absolute;left:49%;top:85%;width:19%;padding:0;border:0;background:none;cursor:zoom-in;filter:drop-shadow(0 7px 3px #24170a88);z-index:2}
.home-cat img{display:block;width:100%;height:auto}.home-cat:hover{box-shadow:none}.home-cat:focus-visible{outline:2px solid #ffe7a0;outline-offset:4px}
.cat-world{position:absolute;inset:0;overflow:hidden;background:#183943}
.cat-photo{position:absolute;inset:0;background-size:cover;background-position:center;animation:cat-breathe 8s ease-in-out infinite}
.cat-portrait,.detail-catOverview{background-image:url(assets/norette-portrait.webp)}
.cat-panel-0,.detail-catWhiskers{background-image:url(assets/norette-detail-0.webp)}
.cat-panel-1,.detail-catPaws{background-image:url(assets/norette-detail-1.webp);background-position:center 15%}
.cat-panel-2,.detail-catPurr,.detail-catAir{background-image:url(assets/norette-detail-2.webp)}
.cat-panel-3,.detail-catBelly,.detail-catLifeline{background-image:url(assets/norette-detail-3.webp)}
.cat-micro.cat-panel-0,.detail-catFollicle,.detail-catShaft{background-image:url(assets/norette-micro-0.webp)}
.cat-micro.cat-panel-1,.detail-catPad,.detail-catClaw{background-image:url(assets/norette-micro-1.webp)}
.cat-micro.cat-panel-2,.detail-catFolds{background-image:url(assets/norette-micro-2.webp)}
.cat-micro.cat-panel-3,.detail-catKitten{background-image:url(assets/norette-micro-3.webp)}
.cat-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(#102c3638,transparent 30%,transparent 70%,#102c3655)}
.cat-fact{position:absolute;bottom:calc(var(--nav-height,100px) + 22px);left:50%;transform:translateX(-50%);z-index:5;text-align:center;color:#fff5d6;font-size:14px}
.cat-fact summary{display:inline-block;cursor:pointer;background:#163d47ed;padding:8px 18px;border-radius:25px;border:1px solid #f2d99580}
.cat-fact p{position:absolute;bottom:30px;left:50%;transform:translateX(-50%);width:330px;max-width:80vw;background:#173c47f5;border:1px solid #e9d49b;border-radius:18px;padding:18px;line-height:1.5;text-align:left}
.cat-live-caption{position:absolute;left:50%;bottom:calc(var(--nav-height,100px) + 74px);transform:translateX(-50%);border-radius:24px;padding:10px 18px;background:#163d47ed;color:#fff3ce;white-space:nowrap}
.cat-purr-shimmer{position:absolute;left:45%;top:30%;width:10%;height:42%;border-radius:50%;border:2px solid #fff0b377;box-shadow:0 0 30px #fff0b366;animation:cat-purr .13s ease-in-out infinite alternate;pointer-events:none}
.cat-airflow{position:absolute;left:43%;top:18%;width:16%;height:60%;pointer-events:none;overflow:hidden}
.cat-air-pair{position:absolute;left:calc(10% + mod(var(--air-index)*23,80)*1%);top:0;display:flex;animation:cat-air 3s linear infinite;animation-delay:calc(var(--air-index)*-.079s)}
.cat-air-pair i{display:block;width:9px;height:9px;border-radius:50%;background:#9bc9ff;box-shadow:inset 2px 2px 2px #fff8}.cat-air-oxygen i{background:#ff968c}
.cat-airflow.outward .cat-air-pair{animation-direction:reverse}
.app-update{position:fixed;z-index:80;left:50%;top:20px;transform:translateX(-50%);display:flex;align-items:center;gap:12px;max-width:92vw;padding:12px 15px;border-radius:22px;background:#fff1bf;color:#204450;box-shadow:0 5px 30px #0005;border:2px solid #ffe37f;font-size:14px}
.app-update[hidden]{display:none}.app-update button{font:inherit;cursor:pointer;border:0;border-radius:18px;padding:9px 15px;background:#22515c;color:#fff4cf;white-space:nowrap}.app-update .update-later{background:none;color:#22515c;font-size:23px;padding:2px 7px}
@keyframes cat-breathe{50%{transform:scale(1.018)}}@keyframes cat-purr{to{transform:scaleX(.83);opacity:.45}}@keyframes cat-air{from{transform:translateY(-25px)}to{transform:translateY(65vh)}}
@media(max-width:650px){.cat-world .hotspot{font-size:12px;max-width:140px;padding:9px 12px}.cat-portrait{background-size:auto 75%;background-repeat:no-repeat;background-position:28% 42%}.cat-catOverview .hotspot[data-action="cat:catWhiskers"]{left:18%!important;top:36%!important}.cat-catOverview .hotspot[data-action="cat:catPurr"]{left:25%!important;top:51%!important}.cat-catOverview .hotspot[data-action="cat:catPaws"]{left:40%!important;top:67%!important}.cat-catOverview .hotspot[data-action="cat:catBelly"]{left:76%!important;top:54%!important}.app-update{top:8px;font-size:12px;gap:8px;padding:9px 11px}.cat-live-caption{font-size:12px}.home-cat{width:22%;left:48%}}
@media(prefers-reduced-motion:reduce){.cat-photo,.cat-purr-shimmer,.cat-air-pair{animation:none}}
.cat-fold-motion{position:absolute;inset:0;background:url(assets/norette-detail-2.webp) center/cover;pointer-events:none;animation:cat-fold-vibrate .15s ease-in-out infinite alternate}
.cat-fold-left{clip-path:polygon(28% 10%,49% 10%,49% 80%,28% 80%)}.cat-fold-right{clip-path:polygon(51% 10%,72% 10%,72% 80%,51% 80%);animation-direction:alternate-reverse}
@keyframes cat-fold-vibrate{from{transform:translateX(-2px)}to{transform:translateX(2px)}}
@media(prefers-reduced-motion:reduce){.cat-fold-motion{animation:none}}

body[data-material="cat"][data-level="1"] #funFacts{display:none}

.cat-shaft-photo,.detail-photo.detail-catShaft{background-image:url(assets/norette-whisker-shaft.webp);background-size:cover;background-position:center}

.cat-lifeline-photo,.detail-photo.detail-catLifeline{background-image:url(assets/norette-lifeline.webp);background-size:cover;background-position:center}
/* Shared reading, discovery guide and saved places. */
#narrate{position:fixed;z-index:23;right:116px;top:14px;width:68px;height:68px;padding:0;border:2px solid #fff0bd;border-radius:50%;background:linear-gradient(145deg,#fff2b5,#ffc957);box-shadow:0 0 0 6px #ffe28655;animation:listenGlow 2.4s ease-out infinite;cursor:pointer;overflow:visible}#narrate .talking-portrait{position:absolute;inset:3px;border-radius:50%;overflow:hidden;background:#27626a}#narrate img{position:absolute;left:0;top:-2%;width:100%;height:145%;object-fit:cover;object-position:center top}.talk-waves{position:absolute;right:-9px;bottom:-2px;width:32px;height:32px;padding:4px;border:2px solid #fff3ca;border-radius:50%;background:#1d6570;color:#fff4cf}.talk-waves svg{width:100%;height:100%}#narrate[data-voice=playing] .talk-waves{animation:talkBounce .7s ease-in-out infinite alternate}#narrate[data-voice=playing] .talk-waves svg{display:none}#narrate[data-voice=playing] .talk-waves:after{content:'';position:absolute;inset:9px;background:#fff4c4;border-radius:3px}#narrate[data-voice=loading] .talk-waves{animation:voiceSpin 1.5s linear infinite}.voice-progress{position:absolute;inset:-6px;border:3px solid transparent;border-radius:50%}#narrate[data-voice=loading] .voice-progress{border-top-color:#fff9dc;animation:voiceSpin 1s linear infinite}#voiceStatus{position:fixed;z-index:24;top:91px;right:60px;max-width:260px;padding:10px 14px;background:#fff1c2;color:#183d47;border-radius:14px;font-size:13px;box-shadow:0 4px 18px #092e4540}.speak-fact{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:35px;height:35px;min-height:35px;border:1px solid #ffe5a0;background:#fff1b9;color:#1e5964;border-radius:50%;padding:6px;box-shadow:0 0 0 3px #ffe37c22;animation:factGlow 3s ease-out infinite;cursor:pointer}.speak-fact svg{width:100%;height:100%}.speak-fact.reading{background:#ffd261;animation:talkBounce .65s infinite alternate}#sceneFacts li{position:relative;padding-right:34px}#sceneFacts li .speak-fact{position:absolute;right:-5px;top:50%;transform:translateY(-50%);width:30px;height:30px;min-height:30px;padding:5px}#sceneFacts li .fact-icon{font-size:22px}#sceneFacts li{gap:8px}#sceneFacts{gap:20px}#guide{isolation:isolate;background:linear-gradient(135deg,#fffef5,#fff0c9);color:#183d47;border:1px solid #fff3ca;box-shadow:0 12px 45px #06263344,0 0 0 4px #ffffff22;max-width:360px!important;min-height:140px;padding:20px 46px 18px 110px;gap:0;animation:guideArrive .55s cubic-bezier(.18,.8,.3,1);backdrop-filter:blur(16px);pointer-events:auto}#guide img{position:absolute;width:128px;height:180px;left:-19px;bottom:0;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 5px 8px #244b4322);transform:rotate(-3deg)}#guide #guideText{cursor:inherit;font-size:16px;line-height:1.4;padding:3px 0}#guide[data-side=right],#guide:not([data-side=left]){padding:20px 110px 18px 22px;right:22px;top:118px}#guide[data-side=right] img,#guide:not([data-side=left]) img{left:auto;right:-18px;transform:scaleX(-1) rotate(-3deg)}#guide[data-side=left]{top:170px;left:22px;padding:20px 22px 18px 110px}#guide[data-side=left] img{transform:rotate(-3deg)}#guide #dismiss{right:8px;top:6px;background:#143e4b0a;border-radius:50%;color:#486361;font-size:19px;width:27px;height:27px}#guideSpeak{position:absolute;bottom:-13px;left:50%;pointer-events:auto;width:40px;height:40px}#guide:before{content:'✨';position:absolute;top:-15px;left:45%;font-size:25px;filter:drop-shadow(0 2px 3px #d6ac3444)}#favoriteDock{position:fixed;left:18px;bottom:max(24px,env(safe-area-inset-bottom));display:flex;gap:7px;align-items:center;z-index:19}#favoriteDock button{position:relative;width:53px;height:53px;min-height:53px;padding:9px;border:1px solid #fff2b280;border-radius:18px;background:#163d49e8;color:#fff0b7;backdrop-filter:blur(12px);box-shadow:0 4px 18px #082e3d30}#favoriteDock svg{width:100%;height:100%}#favoritePage svg>path{fill:transparent;stroke:#ffe699;stroke-width:2.4}#favoritePage[aria-pressed=true]{background:#fff5cb}#favoritePage[aria-pressed=true] svg>path{fill:url(#favoriteGold);stroke:#b87c1b;stroke-width:1.5}.star-pop{animation:starPop .45s cubic-bezier(.2,.9,.3,1)}#openFavorites{width:46px!important;height:46px!important;min-height:46px!important;padding:10px!important}.favorite-count{position:absolute;right:-4px;top:-5px;border-radius:20px;min-width:20px;padding:2px 4px;background:#ffe08b;color:#21464e;font-size:11px;border:1px solid #fff3c7}.favorites-sheet>header{position:static;display:flex;align-items:center;justify-content:space-between;padding:26px 28px 20px;background:linear-gradient(120deg,#fff7d9,#f3ebcd);border-bottom:1px solid #e4d9b5}.favorites-eyebrow{font-size:11px;letter-spacing:1.5px;color:#58716b}.favorites-sheet h2{font-size:29px;margin:6px 0 0}.favorites-sheet h2 span{color:#dfaa2a}.favorites-close,.remove-favorite{border:0;border-radius:50%;background:#173e4b0c;color:#355f64;width:38px;height:38px;min-height:38px;padding:0;font-size:25px;cursor:pointer}.favorites-list{padding:14px 22px 24px;max-height:calc(85dvh - 125px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.favorite-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid #e6dfc8;padding:12px 0}.favorite-row>a{display:flex;align-items:center;gap:18px;flex:1;min-width:0;text-decoration:none;color:#173e49;padding:6px;border-radius:14px}.favorite-row>a:hover{background:#f1e5b8}.favorite-row strong{font-size:18px;line-height:1.3}.favorite-preview{display:flex;position:relative;align-items:center;justify-content:center;overflow:hidden;width:100px;height:68px;border-radius:13px;flex-shrink:0;background:#16404c;border:2px solid #ddd3ac;font-size:30px}.favorite-preview>img{width:100%;height:100%;object-fit:cover}.favorite-preview>.tile-texture{position:absolute;inset:0}.favorite-preview>svg{width:95%;height:95%}.favorites-empty{text-align:center;padding:35px 20px;color:#55736c}.favorites-empty>span{font-size:70px;color:#e1b749}.favorites-empty h3{font-size:22px;margin:12px}.favorites-empty p{font-size:16px;line-height:1.5;max-width:300px;margin:auto}@keyframes listenGlow{0%{box-shadow:0 0 0 4px #ffdc8080,0 0 15px #ffdd7d55}80%,100%{box-shadow:0 0 0 16px #ffdc8000,0 0 22px #ffdd7d44}}@keyframes factGlow{0%,100%{box-shadow:0 0 0 2px #ffe37c44}60%{box-shadow:0 0 0 7px #ffe37c00}}@keyframes talkBounce{to{scale:1.1}}@keyframes voiceSpin{to{rotate:360deg}}@keyframes guideArrive{from{opacity:0;translate:35px 12px;scale:.92}to{opacity:1;translate:0 0;scale:1}}@keyframes starPop{50%{scale:1.23;rotate:-12deg}}
@media(max-width:650px){#narrate{width:53px;height:53px;right:94px;top:12px}.talk-waves{width:27px;height:27px;right:-7px}#voiceStatus{top:76px;right:12px;font-size:12px}#favoriteDock{left:12px;bottom:calc(var(--nav-height,90px) + 14px);gap:7px}#favoriteDock button{width:45px;height:45px;min-height:45px;padding:7px;border-radius:15px}#openFavorites{width:40px!important;height:40px!important;min-height:40px!important;padding:8px!important}#guide{max-width:300px!important;min-height:130px!important}#guide[data-side=left]{left:12px;top:180px;padding-left:95px}#guide[data-side=right],#guide:not([data-side=left]){top:165px;right:12px;padding-right:95px}#guide img{width:110px;height:155px}#guide #guideText{cursor:inherit;font-size:14px}#sceneFacts li{padding-right:32px}.favorites-sheet>header{padding:22px 18px 16px}.favorites-sheet h2{font-size:25px}.favorites-list{padding:8px 12px 18px}.favorite-preview{width:78px;height:56px}.favorite-row>a{gap:12px}.favorite-row strong{font-size:16px}#brand{max-width:calc(100vw - 180px)}}
@media(prefers-reduced-motion:reduce){#narrate,.speak-fact,#guide,#favoritesDialog,#favoritesDialog::backdrop,.star-pop{animation:none!important}}

#sceneFacts li,#guideText,#guide img{cursor:pointer}#sceneFacts li:focus-visible{outline:2px solid #ffe188;outline-offset:6px;border-radius:8px}#sceneFacts li:hover{color:#fff8dc}#sceneFacts li.reading .speak-fact{background:#ffd261;animation:talkBounce .65s infinite alternate}

@media(max-width:650px){#funFacts{bottom:calc(var(--nav-height,90px) + 83px)}}

#welcomeNarrate{width:auto;height:48px;min-height:48px;border-radius:18px;gap:10px;padding:10px 18px;font-size:17px;margin:4px 10px 10px 0;vertical-align:middle}#welcomeNarrate>span:first-child{font-size:25px}#welcomeNarrate.reading{background:#ffd05f}
/* Keep the guide and voice controls inside the viewport, including their portraits. */
#narrate{top:max(22px,env(safe-area-inset-top));right:122px}
#narrate img{inset:0;width:100%;height:100%;object-fit:cover;object-position:center 12%;transform:scale(1.04)}
#guide{box-sizing:border-box;width:min(360px,calc(100vw - 44px));max-width:360px!important;min-height:170px;height:auto;bottom:auto!important;padding-bottom:48px!important;overflow:visible}
#guide[data-side=right],#guide:not([data-side=left]){right:28px;padding-right:122px}
#guide[data-side=left]{left:28px;padding-left:122px}
#guide img{width:112px;height:154px;bottom:0}
#guide[data-side=right] img,#guide:not([data-side=left]) img{right:3px;left:auto;transform:scaleX(-1)}
#guide[data-side=left] img{left:3px;transform:none}

#guide #guideSpeak{bottom:10px;left:20px;width:34px;height:34px;min-height:34px}
#guide[data-side=left] #guideSpeak{left:auto;right:20px}
@media(max-width:650px){#narrate{top:max(20px,env(safe-area-inset-top));right:98px}#guide{width:min(310px,calc(100vw - 38px));min-height:156px!important}#guide[data-side=right],#guide:not([data-side=left]){right:19px;padding-right:107px}#guide[data-side=left]{left:19px;padding-left:107px}#guide img{width:98px;height:140px}}
/* Professor Christopher is anchored to the screen edge. Only the bubble grows. */
#funFacts{display:none!important}
body #guide,body[data-material] #guide,body[data-material=engine][data-level="1"] #guide,body[data-material=engine][data-level="2"] #guide,body[data-material=brain][data-level="1"] #guide{
 --pose-width:clamp(148px,25vw,290px);
 --pose-height:var(--short-pose-height,clamp(135px,35dvh,320px));
 --anchor:var(--short-anchor,clamp(82px,16dvh,160px));
 --bubble-bottom:calc(var(--pose-height) + 20px);
 display:block!important;position:fixed;z-index:22;inset:auto 0 var(--peek-anchor,var(--anchor)) auto!important;
 width:min(300px,calc(100vw - 20px));height:var(--pose-height);min-height:0!important;
 padding:0!important;border:0;background:none;box-shadow:none;backdrop-filter:none;
 animation:none;pointer-events:none;touch-action:pan-y;isolation:isolate
}
#guide:before{display:none}
#guide[data-open=false]{--peek-anchor:clamp(110px,21dvh,205px)}
#guide #guidePeek{
 position:absolute;right:0;bottom:0;top:auto;width:clamp(90px,15vw,157px);height:var(--pose-height);
 min-height:0;padding:0;border:0;background:transparent;box-shadow:none;pointer-events:auto;
 overflow:hidden;cursor:pointer;animation:none
}
#guide[data-open=true] #guidePeek{width:var(--pose-width)}
#guide #guidePeek:focus-visible{outline:2px solid #ffe38c;outline-offset:-4px;border-radius:16px}
#guide #guidePeek img{
 position:absolute;inset:auto 0 0 auto;height:auto;transform:none;
 filter:drop-shadow(0 4px 7px #123b4540);pointer-events:none
}
#guide #guidePeek .professor-peek{
 width:clamp(90px,15vw,157px);max-height:88%;object-fit:contain;object-position:right bottom;
 animation:professor-peek-idle 6s ease-in-out infinite
}
#guide #guidePeek img.professor-expanded{
 width:auto;max-width:100%;max-height:100%;object-fit:contain;object-position:right bottom;visibility:hidden;
 transform:rotate(-8deg);transform-origin:top right
}
#guide[data-open=true] #guidePeek .professor-peek{animation:professor-duck .15s ease-in both}
#guide[data-open=true] #guidePeek img.professor-expanded{
 visibility:visible;animation:professor-enter .30s .15s cubic-bezier(.2,.8,.25,1) both,professor-idle 6s .45s ease-in-out infinite
}
@keyframes professor-peek-idle{
 0%,100%{translate:15% 1px} 20%,70%{translate:31% 2px} 38%,54%{translate:0 0} 78%{translate:16% 0}
}
@keyframes professor-duck{to{translate:110% 2px}}
@keyframes professor-enter{from{translate:110% 10px}to{translate:0 0}}
@keyframes professor-idle{0%,100%{translate:0 0}50%{translate:1px -2px}}
#guide .guide-bubble{
 position:absolute;inset:auto 14px var(--bubble-bottom) auto;width:100%;max-width:calc(100vw - 28px);
 box-sizing:border-box;padding:15px 16px 11px;border:1px solid #fff4c9;border-radius:35px 42px 35px 40px;
 background:linear-gradient(135deg,#fffef5,#fff1cc);box-shadow:0 10px 36px #123b4533;
 opacity:0;visibility:hidden;translate:12px 7px;transition:opacity .18s,translate .18s,visibility .18s;
 pointer-events:none
}
#guide .guide-bubble:after{
 content:"";position:absolute;right:31px;bottom:-13px;width:13px;height:13px;border-radius:50%;
 background:#fff3d4;box-shadow:9px 12px 0 -3px #fff3d4
}
#guide .guide-content{
 max-height:max(0px,calc(100dvh - var(--anchor) - var(--bubble-bottom) - 154px));
 overflow:auto;overscroll-behavior:contain;scrollbar-width:thin
}
#guide #guideText{cursor:inherit;font-size:clamp(14px,2vw,16px);line-height:1.45;font-weight:600;margin:0;padding:0;max-height:none;color:#234e58}
#guide .guide-controls{
 position:relative;display:flex;justify-content:center;align-items:center;gap:9px;margin-top:10px;
 color:#234e58
}
#guide .guide-controls button{
 position:static;display:grid;place-items:center;flex:none;width:40px;height:40px;min-height:40px;
 padding:0;border:1px solid #d9b86d;border-radius:50%;background:#ffdf91;color:inherit;cursor:pointer
}
#guide .guide-controls #guideSpeak{
 width:52px;height:52px;min-height:52px;background:var(--guide-voice-blue);border-color:var(--guide-voice-blue);color:#fff;cursor:default
}
#guide .guide-controls :is(#guidePrev,#guideNext){
 background:var(--chatty-blue);color:#fff;border-color:var(--chatty-blue)
}
#guide .guide-controls :is(#guidePrev,#guideNext):hover{background:var(--chatty-blue);filter:brightness(1.1)}
#guide .thought-chevron{
 width:10px;height:10px;border-top:2.5px solid currentColor;border-right:2.5px solid currentColor;
 rotate:var(--chevron-angle);animation:thought-arrow 2.4s ease-in-out infinite
}
#guidePrev .thought-chevron{--arrow-nudge:-4px;--chevron-angle:-135deg;margin-left:3px}
#guideNext .thought-chevron{--arrow-nudge:4px;--chevron-angle:45deg;margin-right:3px}
@keyframes thought-arrow{0%,58%,85%,100%{translate:0 0}70%{translate:var(--arrow-nudge) 0}}
#guide .guide-controls button:focus-visible,#guide #dismiss:focus-visible{outline:2px solid #234e58;outline-offset:2px}
#guide #dismiss{
 position:absolute;inset:auto 9px 4px auto;display:grid;place-items:center;width:42px;height:42px;
 min-height:42px;padding:0;border:0;border-radius:50%;background:color-mix(in srgb,var(--chatty-blue) 68%,transparent);color:#fff;
 font-size:24px;cursor:pointer;visibility:hidden;opacity:0;pointer-events:none
}
#guide #dismiss:hover{background:var(--chatty-blue)}
#guidePosition{position:absolute;right:0;bottom:0;margin:0;color:#637071;font-size:10px;font-variant-numeric:tabular-nums}
#guide[data-open=true] .guide-bubble,#guide[data-open=true] #dismiss{visibility:visible;opacity:1;translate:0 0;pointer-events:auto}
#guide[data-open=true] .guide-bubble{transition-delay:.17s}
.guide-related{display:grid;gap:7px;margin-top:10px}
.guide-related:empty{display:none}
.guide-related a{display:block;border:1px solid var(--chatty-blue);border-radius:15px;padding:8px 10px;background:var(--chatty-blue);color:#fff;text-decoration:none;font-size:13px;line-height:1.3}
.guide-related a:hover,.guide-related a:focus-visible{background:var(--chatty-blue);filter:brightness(1.1);outline:2px solid #f2ce71;outline-offset:-2px}
@media(max-height:530px){
 #guide{--short-anchor:62px;--short-pose-height:112px}
}
@media(prefers-reduced-motion:reduce){
 #guide #guidePeek .professor-peek,#guide[data-open=true] #guidePeek img.professor-expanded{animation:none}
 #guide[data-open=true] #guidePeek .professor-peek{visibility:hidden;animation:none}
 #guide .guide-controls button span{animation:none}
 #guide .guide-bubble{transition:none}
}

/* Keep the fade stationary while the Favorites sheet travels through it. */
#favoritesDialog{
 --favorites-fade:clamp(16px,4.5dvh,44px);
 --favorites-duration:360ms;
 position:fixed;inset:auto auto var(--favorites-bottom,70px) var(--favorites-left,16px);
 margin:0;width:min(406px,calc(100vw - var(--favorites-left,16px) - 12px));max-width:none;
 padding:0;border:0;background:transparent;color:#163b46;overflow:visible
}
#favoritesDialog::backdrop{
 background:#08263426;animation:favoritesDim var(--favorites-duration) ease-in-out
}
#favoritesDialog.closing::backdrop{
 animation:favoritesUndim var(--favorites-duration) ease-in-out both
}
.favorites-mask{
 padding:8px 6px calc(var(--favorites-fade) + 3px) 0;overflow:hidden;
 mask-image:linear-gradient(to bottom,#000 0,#000 calc(100% - var(--favorites-fade)),transparent 100%)
}
#favoritesDialog .favorites-sheet{
 display:flex;flex-direction:column;max-height:min(620px,max(100px,calc(100dvh - var(--favorites-bottom,70px) - var(--favorites-fade) - 24px)));
 border:1px solid #fbe6a3;border-radius:24px;overflow:hidden;
 background:rgb(255 253 247 / 94%);box-shadow:0 9px 22px #001a3340;
 backdrop-filter:blur(12px)
}
#favoritesDialog .favorites-sheet>header{
 flex-shrink:0;background:linear-gradient(120deg,#fff7d9eb,#f3ebcde8)
}
#favoritesDialog .favorites-list{min-height:0;max-height:none}
#favoritesDialog[open] .favorites-sheet{
 animation:favoritesRise var(--favorites-duration) ease-in-out both
}
#favoritesDialog.closing .favorites-sheet{
 animation:favoritesRetreat var(--favorites-duration) ease-in-out both
}
@keyframes favoritesRise{
 from{transform:translateY(calc(100% + var(--favorites-fade)))}
 to{transform:none}
}
@keyframes favoritesRetreat{
 from{transform:none}
 to{transform:translateY(calc(100% + var(--favorites-fade)))}
}
@keyframes favoritesDim{from{opacity:0}to{opacity:1}}
@keyframes favoritesUndim{from{opacity:1}to{opacity:0}}
@media(prefers-reduced-motion:reduce){
 #favoritesDialog[open] .favorites-sheet,#favoritesDialog.closing .favorites-sheet{animation:none}
}

#guide[data-dna=true] .guide-related{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
#guide[data-dna=true] .guide-related a{
 display:grid;place-items:center;padding:6px 4px;text-align:center;font-size:12px;line-height:1.2
}

/* Keep scene titles above the interactive model. */
#focusLabel{top:max(12px,env(safe-area-inset-top))}
@media(max-width:850px){
 #focusLabel{top:calc(env(safe-area-inset-top) + 62px)}
}


/* Let gas targets receive clicks through the ear's animated photo layers. */
.ear-world>svg{pointer-events:none}
.ear-world>svg :is(.ear-air-molecule,.svg-zoom-target)[role=button]{pointer-events:all}
.ear-gases{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:9px}
.ear-gases button{
 min-height:36px;padding:5px 9px;border:1px solid #c9e5ed66;border-radius:10px;
 background:#22576b;color:#fff;font:inherit;font-size:13px;cursor:zoom-in
}
.ear-gases button span{white-space:nowrap;color:#d5edf5;font-size:11px}
.ear-gases button:is(:hover,:focus-visible){background:#2c6a85}

/* Keep edge navigation clear of Christopher's clickable portrait. */
.brain-channel-right{right:calc(clamp(90px,15vw,157px) + 10px)}
body:has(#guide[data-open=true]) .brain-channel-right{
 right:calc(clamp(148px,25vw,290px) + 10px)
}


#scene [data-action="electron"]{cursor:zoom-in;pointer-events:auto}
#scene [data-action="electron"]>.electron-mark{pointer-events:visiblePainted}
#scene .local-electrons,#scene .local-electrons *{pointer-events:none}
#scene .excited-electron>.electron-mark{animation:excitedWiggle .14s linear infinite;transform-box:fill-box;transform-origin:center}
#scene:has([data-action="electron"]:is(:hover,:focus)) .excited-electron>.electron-mark,
body:has(#inspector[data-electron=true]:not([hidden])) #scene .excited-electron>.electron-mark{animation-play-state:paused}
#guideSpeak[aria-pressed="true"] svg{visibility:hidden}
#guideSpeak[aria-pressed="true"]::after{content:"";width:16px;height:16px;border-radius:3px;background:white;grid-area:1/1}
#guideSpeak svg{grid-area:1/1}
@media(prefers-reduced-motion:reduce){
 #scene .excited-electron>.electron-mark{animation:none}
}


#favoriteDock .favorite-tooltip{
 position:absolute;left:0;bottom:calc(100% + 9px);display:none;
 padding:7px 10px;border-radius:10px;background:#fff9e8;color:#173e49;
 font:500 13px Adventure,sans-serif;white-space:nowrap;pointer-events:none;
 box-shadow:0 3px 12px #001a3340
}
#favoriteDock button:is(:hover,:focus-visible) .favorite-tooltip{display:block}

.engine-photo{background-color:#102735}
.engine-phase{
 position:absolute;left:24px;top:29%;display:grid;justify-items:center;min-width:110px;
 padding:10px 14px;color:#fff5c8;background:#102d3acc;border:1px solid #bce5e44d;border-radius:18px;
}
.engine-phase strong{font-size:64px;line-height:1;font-variant-numeric:tabular-nums}
.engine-phase span{font-size:13px}
.engine-controls.engine-speed-only{
 left:24px;bottom:calc(var(--nav-height,100px) + 16px);transform:none;width:min(220px,36vw)
}
.engine-controls.engine-speed-only input{width:100%;min-width:0}
body[data-material=engine] .engine-mixture-backdrop + .engine-svg{scale:1.12;transform-origin:50% 44%}
@media(max-width:650px){
 .engine-phase{left:8px;top:23%;min-width:64px;padding:6px}
 .engine-phase strong{font-size:40px}
 .engine-phase span{font-size:10px}
 .engine-controls.engine-speed-only{left:8px;width:min(176px,44vw)}
 body[data-material=engine] .engine-mixture-backdrop + .engine-svg{scale:1.04}
}
.engine-photo.engine-overview,.engine-photo.engine-cylinder,.engine-photo.engine-mixture-backdrop{
 background-image:url('assets/engine-bay.webp');background-size:cover;background-position:center
}
.engine-photo.engine-cylinder{opacity:.74}
.engine-photo.engine-mixture-backdrop{opacity:.6}

.engine-photo.engine-overview{filter:blur(4px) brightness(.48);transform:scale(1.02)}
.engine-overview-atlas{filter:drop-shadow(0 10px 14px #08151a)}
.engine-part-label{fill:#eef8fb;font:700 18px system-ui;paint-order:stroke fill;stroke:#102b38;stroke-width:6px;stroke-linejoin:round}

.road-sky,.road-piles,.road-ground{position:absolute;inset:0;pointer-events:none}
.road-sky{background:#88c5ea url('assets/road-sky.webp') repeat-x 0 top/200vw 100%;animation:road-parallax 130s linear infinite}
@keyframes road-parallax{to{background-position-x:200vw}}
.road-piles,.road-ground{background-repeat:repeat-x}
.road-piles{top:34%;bottom:27%;background-image:url('assets/road-mountains.webp');background-size:200vw 100%;animation:road-parallax 48s linear infinite}
.road-ground{top:72%;background-image:url('assets/road-ground-tile.webp');background-size:200vw 100%;animation:road-parallax 34s linear infinite}
.rolling-home{animation:truck-bump 8s ease-in-out infinite}
.rolling-truck-layer{position:absolute;inset:0;transform:translateX(1.2%) scale(.985);transform-origin:right center}
@keyframes truck-bump{0%,73%,83%,100%{transform:translate(-50%,-50%)}77%{transform:translate(-50%,calc(-50% - 4px))}}
.rolling-wheel{position:absolute;width:26%;aspect-ratio:1;pointer-events:none;animation:roll-wheel 7s linear infinite;z-index:1}
.rolling-front{left:16.2%;top:63.4%}
.rolling-rear{left:68.7%;top:64.3%;width:24.7%}
@keyframes roll-wheel{to{transform:rotate(-360deg)}}
.rolling-home .home-cat{left:max(.75%,calc((100% - 100vw)/2 + 4px));top:82%;width:18%;z-index:3;transform-origin:50% 90%;animation:norette-trot .55s ease-in-out infinite}
@keyframes norette-trot{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-5px) rotate(2deg)}}
.rolling-home .hotspot{z-index:4}
 .drive-world,.drive-backdrop{position:absolute;inset:0}
.drive-wheel-world{background:#9d805e;overflow:hidden}
.wheel-road{position:absolute;inset:0;background:url('assets/road-ground-tile.webp') repeat-x 0 50%/200vw 100%;animation:road-parallax 10s linear infinite}
.wheel-contact-shadow{fill:#24170f;opacity:.48;filter:blur(19px)}
.full-wheel{position:absolute!important;top:47%!important;left:50%!important;width:max(105dvh,78vw)!important;height:auto!important;max-height:none!important;transform:translate(-50%,-50%)!important;overflow:visible}
.drive-wheel-photo,.under-wheel{transform-box:fill-box;transform-origin:center;animation:roll-wheel 8s linear infinite}
.full-wheel .context-hit,.drive-model .context-hit{pointer-events:painted}
.drive-underbody{overflow:hidden;background:#211b17}
.drive-backdrop{background:linear-gradient(#050e1430,#09151d28 62%,#07041299),url('assets/drivetrain-bay.webp') center/cover;mask-image:linear-gradient(#000 82%,transparent)}
.drive-road{position:absolute;inset:58% -20% -12%;background:url('assets/road-ground.webp') repeat-y center top/100% 70%;transform:perspective(520px) rotateX(34deg);transform-origin:50% 0;animation:drive-ground 2.4s linear infinite}
@keyframes drive-ground{to{background-position:center 0;background-position-y:0}}
.drive-road{background-position-y:-26.5dvh}
.drive-world .drive-model{position:absolute;left:50%;top:47%;width:100%;height:100%;max-height:none;transform:translate(-50%,-50%);overflow:visible}
.paused :is(.road-sky,.wheel-road,.road-piles,.road-ground,.rolling-home,.rolling-wheel,.home-cat,.driver-crop,.drive-wheel-photo,.under-wheel,.drive-road){animation-play-state:paused}
@media(max-width:650px){
 .rolling-home .home-cat{width:19%}
 .full-wheel{width:max(75dvh,115vw)!important}
}
@media(prefers-reduced-motion:reduce){:is(.road-piles,.road-ground,.rolling-home,.rolling-wheel,.rolling-home .home-cat,.drive-wheel-photo,.under-wheel,.drive-road){animation:none}}
.norette-trot-sprite{display:block;width:100%;aspect-ratio:320/180;background:url('assets/norette-trot.webp') 0 0/400% 100% no-repeat;animation:norette-footfalls .62s steps(1,end) infinite}
@keyframes norette-footfalls{0%{background-position:0 0}25%{background-position:33.3333% 0}50%{background-position:66.6667% 0}75%,100%{background-position:100% 0}}
.paused .norette-trot-sprite{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.norette-trot-sprite{animation:none}}
.rolling-home .driver-crop{z-index:2;animation-duration:2.1s}

.engine-overview + svg{overflow:visible!important}
.drive-road{inset:51% -45% -35%;background-size:100% 48%;background-position:center 0;animation:drive-ground 1.9s linear infinite}
@keyframes drive-ground{to{background-position:center 92.3077%}}
.drive-backdrop{mask-image:linear-gradient(#000 66%,transparent 89%)}
.drive-underbody .drive-model{top:50%}
.axle-photo{mask-image:linear-gradient(#000 82%,transparent 95%)}

.rolling-home .driver-crop{left:25%;top:20.5%;width:10%;height:17%}
.rolling-home{width:min(106vw,143dvh);top:44%}
@media(max-width:650px){.rolling-home{width:103vw}}

.rolling-home .home-cat:hover{background:none;box-shadow:none;filter:drop-shadow(0 7px 3px #24170a88)}
.drive-underbody .drive-model{inset:0;width:100%;height:100%;transform:none;filter:none}
.under-wheel{animation-direction:reverse}
.axle-ground-motion{animation:axle-ground-flow 1.9s linear infinite}
@keyframes axle-ground-flow{to{transform:translateY(200px)}}
.paused .axle-ground-motion{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.axle-ground-motion{animation:none}}
.axle-navigation{position:absolute;left:10%;right:10%;bottom:calc(var(--nav-height,95px) + 20px);display:flex;justify-content:space-between;gap:10px;pointer-events:none}
.axle-navigation button{pointer-events:auto;color:#fff4cf;background:#173c48ee;border:2px solid #fff0b6;font-size:clamp(12px,1.7vw,20px)}
.rolling-home .driver-crop{transform-origin:37% 90%;animation-name:cab-head-sway}
@keyframes cab-head-sway{from{transform:rotate(-3deg)}to{transform:rotate(3deg)}}

.drive-underbody{--drivetrain-period:4s}
.drive-underbody .under-wheel{animation-duration:var(--drivetrain-period)}
.forward-shaft-glint{animation:forward-shaft-spin var(--drivetrain-period) linear infinite reverse}
@keyframes forward-shaft-spin{
 from{transform:translateX(-14px);opacity:0}
 35%,65%{opacity:.46}
 to{transform:translateX(23px);opacity:0}
}
.engine-toolbar{
 position:absolute;left:clamp(8px,2vw,26px);bottom:calc(var(--nav-height,95px) + 17px);
 display:flex;align-items:end;gap:10px;z-index:7;
}
.engine-toolbar .engine-controls,.engine-toolbar .engine-video{
 position:static;transform:none;margin:0;
}
.engine-toolbar .engine-video{white-space:nowrap;animation:none}
@media(max-width:520px){
 .engine-toolbar{gap:6px}
 .engine-toolbar .engine-video{padding:6px 9px;font-size:11px;min-height:36px}
}

.bevel-gear{animation:roll-wheel var(--drivetrain-period) linear infinite reverse}
.axle-shaft-mark{animation:axle-shaft-spin var(--drivetrain-period) linear infinite reverse}
@keyframes axle-shaft-spin{
 from{transform:translateY(-16px);opacity:0}
 28%,72%{opacity:.62}
 to{transform:translateY(16px);opacity:0}
}
.differential-label{
 fill:#ecf7f6;stroke:#17262c;stroke-width:3;paint-order:stroke;stroke-linejoin:round;
 font:700 15px system-ui;
}

.axle-wheel-shaft{filter:drop-shadow(0 4px 4px #000b)}
.axle-engine-marker .zoom-marker{font-size:14px;height:36px;min-height:0;margin-top:8px}
@media(max-aspect-ratio:3/4){
 .axle-engine-marker .zoom-marker-slot{transform:translateX(-27px)}
}
