*{box-sizing:border-box} :root{font-family:ui-rounded,"Arial Rounded MT Bold","Trebuchet MS",system-ui,sans-serif;color:#fff0ce;background:#081e27;font-synthesis:none;--mix:#ff9d37;--jelly-light:#ffdc8a;--jelly-dark:#cd5a24}body{margin:0;min-width:280px;min-height:100svh;background:radial-gradient(ellipse at 52% 49%,#123d47 0,#0a2833 36%,#071a24 75%);overflow-x:hidden}button,a,summary{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}button:disabled{cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible{outline:4px solid #fff3b5;outline-offset:6px}button{border:0}button svg{pointer-events:none}button[hidden],[hidden]{display:none!important}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.topbar{width:min(1320px,100%);padding:25px 34px 0;margin:auto;display:flex;justify-content:space-between;align-items:center}.back{display:flex;align-items:center;gap:11px;color:#fceac6;text-decoration:none;font-weight:800;font-size:19px;min-height:48px}.back>span:first-child{font-family:system-ui;font-size:34px;line-height:1}.tools{display:flex;gap:12px}.tool{width:50px;height:50px;background:#16404a;border:1px solid #57827e;border-radius:50%;display:grid;place-items:center;box-shadow:inset 0 1px #a0e3cf24}.tool:hover{background:#20535b}.tool svg{width:23px;height:23px;fill:#ffedc9;stroke:#ffedc9;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}#sound-waves{fill:none;display:none}#sound-slash{fill:none}#sound[aria-pressed=true] #sound-waves{display:block}#sound[aria-pressed=true] #sound-slash{display:none}main{max-width:1180px;margin:auto;padding:0 24px}.heading{text-align:center;margin:3px auto 12px}.eyebrow{font-size:10px;letter-spacing:3.2px;font-weight:700;color:#90bbb5;margin:0 0 11px}h1{font-size:clamp(32px,4.5vw,58px);line-height:1.1;letter-spacing:-2px;margin:0;font-weight:900;text-shadow:0 4px 25px #0002}h1 span{color:#fff1d2}.intro{color:#c7d5ca;font-size:17px;margin:13px 0 0;letter-spacing:.2px}.workbench{width:100%;max-width:1000px;aspect-ratio:1000/570;position:relative;margin:0 auto;isolation:isolate}.ambient{position:absolute;left:14%;right:0;bottom:3%;height:20%;border-radius:50%;background:radial-gradient(ellipse,#75d8c133,#003e4900 68%);filter:blur(8px)}.ambient:after{content:"";position:absolute;inset:40% 3%;border-radius:50%;box-shadow:0 40px 30px #020e16}.tanks{display:flex;justify-content:space-between;position:absolute;left:31%;top:3%;width:49%;height:36%;z-index:4}.dispenser{background:transparent;position:relative;width:29%;height:100%;padding:0;--paint:#fa544a;--paint-light:#ff9c7b;transition:transform .18s ease,filter .18s ease;filter:drop-shadow(0 8px 10px #0004)}.dispenser.yellow{--paint:#ffd133;--paint-light:#fff19c}.dispenser.blue{--paint:#2aa8f4;--paint-light:#94e8ff}.dispenser:not(:disabled):hover{transform:translateY(-4px);filter:drop-shadow(0 0 14px color-mix(in srgb,var(--paint),transparent 60%))}.dispenser:not(:disabled):active,.dispenser.pressed{transform:translateY(7px) scale(.97)}.cap{position:absolute;left:0;top:0;width:100%;height:37%;border-radius:35% 35% 10% 10%;background:linear-gradient(105deg,#ffeac2 10%,#ebc78e 65%,#c89052);box-shadow:inset 3px 3px 3px #fff9e5,inset -2px -3px 5px #9c713a,0 3px 0 #fff1bbaa;z-index:3}.cap:before{content:"";position:absolute;top:-5%;left:15%;width:70%;height:17%;border-radius:50%;background:#f9e3b9;box-shadow:inset 0 -2px 5px #c89d5e}.shape{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);width:29%;aspect-ratio:1;display:block;background:var(--paint);filter:drop-shadow(0 3px 0 #0005)}.shape.circle{border-radius:50%;box-shadow:0 0 0 4px #328f8a,inset 2px 3px 3px #ffc4ab}.shape.triangle{clip-path:polygon(50% 0,100% 96%,0 96%);width:32%;background:linear-gradient(#fff4b2,#f6bd19)}.shape.square{border-radius:20%;box-shadow:0 0 0 4px #328f8a,inset 2px 3px 3px #b9f0ff}.tank-glass{position:absolute;left:3%;right:3%;top:29%;height:55%;border:2px solid #f2fce3b0;border-radius:10% 10% 41% 41%;overflow:hidden;background:linear-gradient(90deg,#def8ee48,#def8ee0a 20%,#2b5b5e77 65%,#a1ebdc55);box-shadow:inset 4px 0 4px #fff7e138,inset -4px 0 5px #fff2}.tank-liquid{position:absolute;left:0;bottom:0;width:100%;height:82%;background:linear-gradient(95deg,var(--paint-light),var(--paint) 30%,var(--paint) 80%,var(--paint-light));box-shadow:0 -4px 0 var(--paint-light),0 -5px 7px #fff5}.tank-liquid:before{content:"";position:absolute;top:-3px;left:-10%;width:120%;height:12px;border-radius:50%;background:var(--paint-light);opacity:.7}.shine{position:absolute;top:9%;left:8%;width:6%;height:60%;border-radius:10px;background:#fff;opacity:.45}.tank-bubbles{position:absolute;left:26%;top:62%;width:11px;height:11px;border-radius:50%;box-shadow:inset 2px 2px 3px #fff7,29px -18px 0 -2px #fff3,45px 9px 0 2px #fff3,-7px -24px 0 -3px #fff5}.neck{position:absolute;top:79%;left:35%;width:30%;height:13%;border-radius:20%;background:linear-gradient(90deg,#319c97,#82dbbd 45%,#247f7c);box-shadow:0 2px 4px #052e31;z-index:3}.colour-label{position:absolute;bottom:-8%;left:-4%;width:108%;color:#dbe5d0;font-size:13px;letter-spacing:1px;display:flex;justify-content:center;gap:7px}.colour-label small{font-size:10px;color:var(--paint-light);line-height:18px}.dose-count{position:absolute;top:35%;left:38%;z-index:5;font-size:23px;font-weight:900;color:#fff7dc;text-shadow:0 2px 4px #3a2e26}.pipes{position:absolute;left:31%;top:31%;width:49%;height:19%;z-index:1}.flow-paths path{opacity:0;stroke-dasharray:12 22}.flow-paths path.flowing{opacity:1;animation:flow .55s linear infinite}.machine{position:absolute;left:24%;top:46%;width:73%;height:46%;filter:drop-shadow(0 20px 16px #020e1680);z-index:2}.chamber{position:absolute;left:34%;top:50%;width:43%;height:35%;border:10px solid #2b928b;border-bottom-width:12px;border-radius:32% 24% 25% 26%;background:#133e42;box-shadow:0 0 0 3px #155b5b,inset 0 0 0 3px #93d5b3,0 4px 5px #5d542e;overflow:hidden;z-index:3}.chamber:after{content:"";position:absolute;inset:1px;pointer-events:none;border-radius:inherit;border-top:3px solid #b7f3d2aa;border-left:2px solid #b7f3d2aa;z-index:4}.chamber-interior{position:absolute;inset:0;overflow:hidden;border-radius:24% 20% 22% 23%;background:radial-gradient(ellipse at 40% 0,#85bb9b20,#092f35cc)}.portion{position:absolute;left:0;width:100%;height:0;bottom:0;transition:height .65s cubic-bezier(.3,0,.3,1);background:var(--portion-colour);opacity:.9;box-shadow:0 -3px 7px #fff3}.portion.filled{height:34%}#portion-1{bottom:34%}.mixed-liquid{position:absolute;inset:32% 0 0;background:linear-gradient(120deg,var(--jelly-light),var(--mix) 35%,var(--jelly-dark));opacity:0;transition:opacity .45s;border-radius:45% 15% 0 0/8% 5% 0 0}.mixed .portion,.revealed .portion{opacity:0}.mixed .mixed-liquid,.mixing .mixed-liquid{opacity:.92}.mixing .mixed-liquid{animation:swish .5s ease-in-out 3}.chamber-bubbles{position:absolute;inset:0;opacity:0}.mixed .chamber-bubbles,.mixing .chamber-bubbles{opacity:1}.chamber-bubbles i{position:absolute;width:15px;height:15px;border-radius:50%;border:1px solid #fff7;background:#fff2;left:20%;bottom:15%;animation:bubble 2.7s ease-in-out infinite}.chamber-bubbles i:nth-child(2){left:60%;bottom:10%;width:25px;height:25px;animation-delay:-1s}.chamber-bubbles i:nth-child(3){left:80%;bottom:25%;width:12px;height:12px;animation-delay:-.5s}.chamber-bubbles i:nth-child(4){left:44%;bottom:40%;width:9px;height:9px;animation-delay:-2s}.chamber-bubbles i:nth-child(5){left:10%;bottom:35%;width:8px;height:8px;animation-delay:-1.5s}.chamber-bubbles i:nth-child(6){left:70%;bottom:48%;width:7px;height:7px;animation-delay:-.7s}.chamber-bubbles i:nth-child(7){left:35%;bottom:10%;width:19px;height:19px;animation-delay:-2.3s}.glass-reflection{position:absolute;inset:0;background:linear-gradient(113deg,transparent 5%,#e8fff11a 6%,#e8fff12b 12%,transparent 13%,transparent 78%,#e8fff116 78%);pointer-events:none}.measure{position:absolute;right:5%;top:25%;height:60%;display:flex;flex-direction:column;justify-content:space-around}.measure i{width:11px;height:2px;background:#d7eac955}.measure i:nth-child(2){width:17px}.empty-spark{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:#80aaa0;opacity:.45;font-size:43px}.has-colour .empty-spark{display:none}.pour-stream{position:absolute;top:49%;left:53%;width:1.5%;height:31%;background:var(--pour-colour);z-index:4;opacity:0;transform-origin:top;border-radius:3px}.pouring .pour-stream{opacity:.8;animation:pour .6s ease-out}.crank,.lever{position:absolute;padding:0;background:transparent;z-index:6}.crank{left:77.5%;top:45%;width:18%;height:30%}.crank svg{width:100%;height:100%;overflow:visible}.crank-arm{transform-origin:68px 100px}.crank.turning .crank-arm{animation:crank .8s ease-in-out}.crank:disabled,.lever:disabled{filter:saturate(.7)}.crank:enabled,.lever:enabled{filter:drop-shadow(0 0 12px #ffdf7850)}.crank:enabled:hover,.lever:enabled:hover{filter:drop-shadow(0 0 16px #ffe5a599)}.action-label{position:absolute;font-size:14px;letter-spacing:.6px;color:#ffe9b4;white-space:nowrap;text-shadow:0 2px 4px #08262d;font-weight:800}.crank .action-label{top:-7%;left:31%}.lever .action-label{bottom:-12%;left:5%}.action-label span{font-size:20px;vertical-align:middle}.crank:disabled .action-label,.lever:disabled .action-label{opacity:.48}.lever{left:83%;top:70%;width:10%;height:21%}.lever svg{width:100%;height:100%;overflow:visible}.lever-arm{transform-origin:52px 131px;transition:transform .4s ease}.lever.pulled .lever-arm{transform:rotate(-39deg)}.glee{position:absolute;width:29%;left:0;bottom:7%;z-index:5;pointer-events:none}.glee img{width:100%;height:auto;display:block;filter:drop-shadow(0 12px 10px #03121980)}.glee-spark{position:absolute;right:0;top:8%;font-size:37px;color:#f8d777;text-shadow:0 0 25px #ffdd8977;transform:rotate(10deg)}.jelly{position:absolute;left:43%;top:45%;width:27%;height:46%;background:transparent;padding:0;z-index:7;animation:emerge .65s cubic-bezier(.2,.8,.4,1.3)}.jelly svg{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 0 22px color-mix(in srgb,var(--mix),transparent 60%))}.jelly-body{transform-origin:120px 215px;animation:dance 1.8s ease-in-out 2}.jelly.reacting .jelly-body{animation:wiggle .7s ease-in-out}.jelly-hint{position:absolute;top:95%;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:13px;font-weight:800;letter-spacing:.7px;color:#d7efe0}.jelly-hint>span{color:#f4b393;font-size:19px}.revealed .chamber{box-shadow:0 0 0 3px #155b5b,0 0 30px color-mix(in srgb,var(--mix),transparent 70%)}.revealed .chamber-interior{background:radial-gradient(ellipse at 50% 70%,color-mix(in srgb,var(--mix),transparent 70%),#092f35)}.reveal-sparks{position:absolute;inset:44% 21% 12% 36%;pointer-events:none;z-index:7;display:none}.revealed .reveal-sparks{display:block}.reveal-sparks span{position:absolute;color:var(--jelly-light);font-size:30px;animation:spark .8s ease both}.reveal-sparks span:first-child{left:3%;top:9%;transform:rotate(-15deg)}.reveal-sparks span:nth-child(2){right:3%;top:31%;font-size:23px;animation-delay:.1s}.reveal-sparks span:nth-child(3){left:10%;bottom:5%;font-size:17px;animation-delay:.25s}.play-controls{width:min(760px,100%);margin:9px auto 0;display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:29px;border-top:1px solid #749b8640;padding-top:20px}.instruction-wrap{text-align:left}#instruction{font-size:22px;font-weight:900;margin:0;color:#fff0c9;letter-spacing:-.4px}#detail{color:#abc5bb;font-size:12px;margin:7px 0 0;min-height:17px}.recipe{display:flex;gap:9px;align-items:center;color:#8daea4;font-size:19px}.recipe-dot,.recipe-result{width:35px;height:35px;border:1px dashed #749f9699;border-radius:50%;display:grid;place-items:center;font-size:17px;color:#accbc1;background:#183d45}.recipe-dot.filled{background:var(--dot);border:2px solid #e5e3bc77;color:#102d34;box-shadow:inset 0 3px 5px #fff6}.recipe-result{border-radius:12px;color:#f3df9b;border:1px solid #749f9650}.recipe-result.ready{background:var(--mix);color:#102d34;box-shadow:inset 0 3px 5px #fff5}.reset{display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;min-width:128px;padding:9px 15px;border:1px solid #7dafa580;border-radius:100px;background:#163d45;color:#e0e8d2;font-size:13px;transition:background .15s}.reset>span:first-child{font-family:system-ui;font-size:25px}.reset:hover{background:#24545b}.demo-caption{width:min(760px,100%);margin:14px auto 0;padding:10px 15px;background:#29544c;border-radius:12px;display:flex;align-items:center;gap:12px;font-size:13px}.demo-caption>span:first-child{color:#ffda7c}.demo-caption button{margin-left:auto;min-height:44px;border-radius:100px;padding:8px 14px;background:#ffe7a9;color:#173b40;font-weight:800}.demo-target:after{content:"";position:absolute;inset:-6px;border:3px solid #fff4c3;border-radius:22px;animation:demo-pulse .8s ease-in-out infinite;pointer-events:none}.tool.active{background:#4c7770}footer{max-width:1040px;margin:32px auto 0;padding:15px 24px 22px;display:flex;justify-content:center;gap:12px;color:#88aaa3;font-size:11px;letter-spacing:.6px;flex-wrap:wrap}footer details{letter-spacing:0;flex-basis:100%;text-align:center;margin-top:2px}footer summary{width:max-content;margin:auto;min-height:44px;cursor:pointer;padding:9px;text-decoration:underline;text-underline-offset:4px}footer details p{max-width:660px;margin:9px auto;line-height:1.6;color:#bbcec2}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.noscript{padding:30px;text-align:center}.demo-running .dispenser{pointer-events:none}
@keyframes flow{to{stroke-dashoffset:-68}}@keyframes pour{0%{transform:scaleY(0)}30%,75%{transform:scaleY(1)}100%{transform:scaleY(0)}}@keyframes crank{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes swish{0%,100%{border-radius:45% 15% 0 0/8% 5% 0 0;transform:rotate(0) scale(1.05)}50%{border-radius:10% 45% 0 0/8% 12% 0 0;transform:rotate(-3deg) scale(1.1)}}@keyframes bubble{0%,100%{transform:translateY(0);opacity:.4}50%{transform:translateY(-19px);opacity:.8}}@keyframes emerge{from{opacity:0;transform:translateY(30%) scale(.3)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes dance{0%,100%{transform:rotate(0) scale(1)}25%{transform:rotate(-7deg) scale(.97,1.04)}75%{transform:rotate(7deg) scale(1.03,.96)}}@keyframes wiggle{0%,100%{transform:scale(1)}25%{transform:scale(1.15,.78) rotate(-8deg)}55%{transform:scale(.84,1.14) rotate(9deg)}80%{transform:scale(1.04,.96) rotate(-4deg)}}@keyframes spark{0%{opacity:0;scale:.3}70%{opacity:1;scale:1.1}100%{opacity:.8;scale:1}}@keyframes demo-pulse{50%{box-shadow:0 0 0 8px #ffe7a930}}
@media(min-width:1500px){.topbar{padding-top:35px}.heading{margin-top:20px}.workbench{max-width:1100px}.play-controls{margin-top:15px}}
@media(max-width:760px){main{padding:0 18px}.topbar{padding:16px 20px 0}.heading{margin-top:17px}.eyebrow{font-size:9px;letter-spacing:2.4px}h1{font-size:42px}.intro{font-size:15px;margin-top:10px}.workbench{margin-top:17px}.play-controls{gap:17px;padding-top:17px}.recipe{gap:5px}.recipe-dot,.recipe-result{width:30px;height:30px}.reset{min-width:110px;padding:8px 12px}.action-label{font-size:12px}.colour-label{font-size:11px}#instruction{font-size:20px}#detail{font-size:11px}}
@media(max-width:540px){.topbar{padding:10px 17px 0}.back{font-size:16px;gap:7px}.back>span:first-child{font-size:28px}.tools{gap:9px}.tool{width:44px;height:44px}.tool svg{width:21px;height:21px}main{padding:0 13px}.heading{margin-top:16px}.eyebrow{font-size:8px;letter-spacing:2px;margin-bottom:9px}h1{font-size:clamp(29px,8.5vw,43px);letter-spacing:-1px;white-space:nowrap}.intro{font-size:14px;margin-top:9px}.workbench{aspect-ratio:440/474;margin-top:27px;max-width:440px}.tanks{left:7%;top:0;width:86%;height:34%}.dispenser{width:27%}.colour-label{font-size:12px;bottom:-10%}.neck{top:80%;height:12%}.pipes{left:7%;top:27%;width:86%;height:19%}.machine{left:0;top:43%;width:100%;height:41%}.chamber{left:10%;top:47%;width:65%;height:30%;border-width:7px;border-bottom-width:9px}.crank{left:75%;top:43%;width:24%;height:28%}.lever{left:82%;top:67%;width:15%;height:20%}.glee{width:31%;bottom:0;left:0}.glee-spark{font-size:22px;right:-5px}.ambient{left:0;bottom:8%;height:20%}.crank .action-label{top:-8%;left:23%}.lever .action-label{bottom:-10%;left:10%;font-size:12px}.action-label span{font-size:18px}.jelly{left:27%;top:46%;width:41%;height:39%}.jelly-hint{top:99%;font-size:11px}.reveal-sparks{inset:44% 24% 18% 13%}.pour-stream{top:45%;height:29%;left:41%;width:2%}.play-controls{margin-top:3px;grid-template-columns:1fr auto;gap:12px;padding:17px 5px 0}.instruction-wrap{grid-column:1;grid-row:1}.recipe{grid-column:2;grid-row:1;gap:5px}.recipe-dot,.recipe-result{width:29px;height:29px;font-size:14px}.recipe-arrow,.recipe-plus{font-size:14px}.reset{grid-column:1/-1;min-height:48px;width:100%;margin:3px auto 0;background:#17414a;font-size:13px}#instruction{font-size:20px}#detail{font-size:11px;margin-top:6px}.demo-caption{font-size:11px;gap:7px;padding:8px}.demo-caption button{padding:7px 11px;white-space:nowrap}footer{margin-top:21px;font-size:10px;padding-bottom:max(12px,env(safe-area-inset-bottom))}.tank-bubbles{width:8px;height:8px}.dose-count{font-size:20px}.empty-spark{font-size:31px}.jelly-hint>span{font-size:16px}}
@media(max-width:360px){.workbench{margin-top:23px}.recipe{gap:3px}.recipe-dot,.recipe-result{width:24px;height:24px}.play-controls{gap:10px}.intro{font-size:13px}#instruction{font-size:18px}#detail{font-size:10px}.colour-label{font-size:11px}.back{font-size:15px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.dispenser:not(:disabled):hover{transform:none}.jelly-body{transform:none}.demo-target:after{box-shadow:0 0 0 4px #ffe7a930}}
.jelly.reacting svg{filter:drop-shadow(0 0 25px var(--jelly-light)) brightness(1.14)}.jelly.reacting .jelly-hint{color:#fff5cf}.lever{min-width:44px}
/* Play equipment and buttons resist long-press browser actions; page text stays selectable. */
.workbench{touch-action:manipulation} /* Missed taps must not trigger double-tap zoom; pinch and page panning stay native. */
:is(.workbench,.play-controls button,.tool,.demo-caption button),:is(.workbench,.play-controls button,.tool,.demo-caption button) *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none}
:is(.workbench,.play-controls button,.tool,.demo-caption button) :is(input,textarea,select,[contenteditable]:not([contenteditable="false"])),:is(.workbench,.play-controls button,.tool,.demo-caption button) [contenteditable]:not([contenteditable="false"]) *{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default;-webkit-user-drag:auto}

/* Clear sound state, with enough room for the mobile back and demonstration controls. */
#sound{width:auto;min-width:120px;border-radius:28px;display:flex;gap:8px;padding:0 13px;font-size:12px;font-weight:800;white-space:nowrap}
#sound[aria-pressed=true]{background:#27645e;border-color:#8ccfc0}
#sound svg{flex:none;width:20px;height:20px}
.sound-hint{font-size:11px;color:#a9c9bd;margin:8px 0 0;line-height:1.5}
@media(max-width:540px){#sound{min-width:111px;padding:0 10px;gap:6px;font-size:11px}.tools{gap:7px}.topbar{padding-left:13px;padding-right:13px}.sound-hint{font-size:10px;margin-top:6px}.heading{margin-top:13px}}
