/* Interactive equipment is independent of the photographic room. */
.mx{color:#183a38;direction:rtl}.mx button{font:inherit;color:#064e4a;border:1px solid #d7e4dd;background:white;border-radius:12px;padding:10px 14px;min-height:44px;cursor:pointer}.mx button:focus-visible,.mx [tabindex]:focus-visible,.mx input:focus-visible{outline:3px solid #ffad81;outline-offset:3px}.mx button:disabled{opacity:.5;cursor:default}.mx-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.mx-heading h2{font-size:28px;margin:12px 0}.mx-heading p{font-size:14px;color:#637570}.mx-heading>button{white-space:nowrap}.mx-mixtures{display:flex;gap:10px;margin:22px 0}.mx-mixtures button{flex:1;text-align:right;font-weight:700;padding:12px 18px}.mx-mixtures small{display:block;color:#637570;font-size:10px;font-weight:400;margin-top:4px}.mx-mixtures [aria-pressed=true]{background:#064e4a;color:white;border-color:#064e4a}.mx-mixtures [aria-pressed=true] small{color:#d4e8df}.mx-steps{display:flex;list-style:none;padding:0;gap:10px;margin:20px 0}.mx-steps li{flex:1;display:flex;align-items:center;gap:12px;border:1px solid #e2eae7;background:#fff;padding:12px;border-radius:15px;font-size:13px;color:#637570}.mx-steps b{border-radius:50%;background:#f0f5f2;padding:6px 12px}.mx-steps .active{border-color:#a1bab1;color:#064e4a;background:#f2f8f4}.mx-steps .active b{background:#ffad81}.mx-steps .done{color:#0d4a40}.mx-grid{display:grid;grid-template-columns:270px minmax(0,1fr);gap:20px;align-items:start}.mx-controls{background:#f4f8f5;border:1px solid #dce7e0;border-radius:24px;padding:18px}.mx-controls h3{margin:0;font-size:17px}.mx-controls p{font-size:12px;color:#637570;line-height:1.8}.mx-shelf{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mx-shelf button{padding:7px;display:flex;align-items:center;flex-direction:column;touch-action:none;user-select:none;font-size:10px;line-height:1.5;min-height:90px;box-shadow:0 4px 12px #173b3210}.mx-shelf svg{width:52px;height:58px;filter:drop-shadow(0 3px 2px #183a3820)}.mx .selected{outline:3px solid #ffad81}.mx-action{margin-top:18px;display:grid;gap:10px}.mx-action label{font-size:12px;display:flex;justify-content:space-between}.mx-action input{width:100%;min-height:44px;accent-color:#064e4a;direction:ltr}.mx-action .mx-primary{background:#ffad81;border-color:#ffad81;color:#183a38;font-weight:700;touch-action:none;user-select:none}.mx-safety{display:block;font-size:10px;line-height:1.9;color:#637570;margin-top:16px}.mx-display{min-width:0}.mx-scene{position:relative;aspect-ratio:16/10;min-height:320px;border-radius:24px;overflow:hidden;background:#e9eee8 url('media/mixture-bench-room.png') center/cover;direction:ltr;isolation:isolate;--progress:0;--flow:0;--angle:0deg;--left:1;box-shadow:inset 0 0 0 1px #183a3810}.mx-status,.mx-scene-note,.mx-readout{position:absolute;z-index:12;border-radius:12px;padding:7px 11px;background:#fffffff0;color:#064e4a;font-size:11px;direction:rtl;pointer-events:none;box-shadow:0 2px 8px #183a3810}.mx-status{top:16px;right:16px;background:#ffe5d4}.mx-scene-note{left:16px;top:16px;color:#637570;font-size:9px}.mx-readout{bottom:16px;right:16px}.mx-stand{position:absolute;left:47%;top:20%;width:43%;height:66%;border-radius:15px;cursor:pointer;outline:1px dashed #638e7a50}.mx-rod{position:absolute;right:12%;height:90%;width:7px;background:linear-gradient(90deg,#6f7773,#fcfffc,#626d68);border-radius:4px}.mx-base{position:absolute;right:0;bottom:0;width:85%;height:11%;border-radius:8px;background:linear-gradient(#44776e,#174940);box-shadow:2px 8px 10px #162e3c30}.mx-zone{position:absolute;top:-2px;left:5%;background:#fff9;border-radius:9px;padding:5px 8px;font-size:10px;color:#57766d;direction:rtl}.mx-apparatus{position:absolute;top:11%;left:8%;width:65%;height:58%;filter:drop-shadow(2px 5px 4px #3332)}.mx-apparatus>svg{width:100%;height:100%}.mx-paper{position:absolute;left:9%;top:5%;width:82%;height:63%}.mx-paper svg{width:100%;height:100%}.mx-residue{position:absolute;left:25%;bottom:10%;width:50%;height:20%;background:radial-gradient(#977445 1px,#cfb88e 2px);clip-path:polygon(0 0,100% 0,50% 100%);opacity:var(--progress)}.mx-receiver{position:absolute;left:53%;top:58%;width:22%;height:28%;filter:drop-shadow(3px 6px 3px #263e3225)}.mx-receiver svg{width:100%;height:100%;position:relative;z-index:2}.mx-receiver>span{position:absolute;bottom:-6px;left:7%;width:100%;font-size:9px;text-align:center;direction:rtl;color:#47625b}.mx-received{position:absolute;left:57.5%;bottom:17%;width:13.5%;height:calc(var(--progress)*14%);background:linear-gradient(#c6eff099,#71b9cb88);border-radius:40% 40% 16% 16%;z-index:0;transition:height .1s}.mx-cup{position:absolute;left:8%;top:49%;width:25%;height:37%;padding:0!important;border:0!important;background:transparent!important;touch-action:none;user-select:none;filter:drop-shadow(5px 9px 5px #263e3230);z-index:6;transform-origin:85% 18%;transition:left .5s,top .5s;transform:rotate(var(--angle))}.mx-cup svg{width:100%;height:100%}.mx-cup span{position:absolute;left:15%;bottom:8%;font-size:10px;direction:rtl;background:#fff9;border-radius:7px;padding:3px 5px}.mx-cup.positioned{left:28%;top:18%;width:24%;height:34%}.mx-cup.positioned svg>path:nth-of-type(2),.mx-cup.positioned svg>ellipse:first-of-type{opacity:var(--left)}.mx-stream{position:absolute;left:52.3%;top:36%;height:27%;width:1.6%;background:linear-gradient(90deg,#cee9e688,#7aaebbb0,#e1f9fbd0);opacity:var(--flow);z-index:5;border-radius:50%;animation:mx-stream .35s linear infinite}.mx-scene.sand .mx-stream{background:linear-gradient(90deg,#b39c6b99,#d9c4a799,#9fb6ae)}.mx-magnet{display:none;position:absolute;width:22%;height:28%;left:18%;top:37%;z-index:7;touch-action:none;cursor:grab;filter:drop-shadow(5px 6px 4px #3334)}.mx-magnet.placed{display:block}.mx-magnet svg{width:100%;height:100%;transform:rotate(35deg)}.mx-tray{position:absolute;left:8%;top:63%;width:36%;height:20%;border:4px solid #c0d4cf;border-radius:50%;background:radial-gradient(ellipse,#c3aa7e,#e4d9b8);box-shadow:3px 8px 10px #3332;z-index:3;pointer-events:none}.mx-tray b{position:absolute;left:var(--x);top:var(--y);width:7px;height:2px;background:#42494a;transform:translateY(calc(var(--progress)* -130px)) rotate(var(--r));transition:transform .15s}.mx-scene.iron .mx-cup{top:30%;height:28%}.mx-scene.iron:not(.magnetic) .mx-tray{opacity:.3}.mx-condenser{position:absolute;left:72%;top:44%;width:24%;height:32%;z-index:4}.mx-condenser svg{width:100%;height:100%}.mx-condenser span{position:absolute;top:0;left:20%;font-size:9px;background:#fff9;padding:3px;border-radius:6px;direction:rtl}.mx-scene.salt:not(.filtering) .mx-apparatus{top:62%;height:35%}.mx-scene.salt:not(.filtering) .mx-receiver{top:53%}.mx-vapor{position:absolute;left:56%;top:40%;width:15%;height:30%;pointer-events:none;opacity:0}.heating .mx-vapor{opacity:1}.mx-vapor i{position:absolute;width:15%;height:50%;left:25%;border-radius:50%;filter:blur(3px);background:#fff9;animation:mx-steam 1.7s infinite}.mx-vapor i:nth-child(2n){left:55%;animation-delay:-.7s}.mx-vapor i:nth-child(3n){left:75%;animation-delay:-1.2s}.mx-crystals{position:absolute;left:58%;top:76%;width:12%;height:4%;border-radius:50%;background:radial-gradient(#fff 1px,#d8dedc 2px);opacity:0}.salt.heating .mx-crystals,.salt.done:not(.filtering) .mx-crystals{opacity:var(--progress)}.mx-over{outline:3px solid #ffad81!important;background-color:#ffad8122!important}.mx-caption{font-size:10px;color:#637570;line-height:1.8;margin:10px 3px}.mx-observe{display:grid;grid-template-columns:1fr 1.2fr;gap:14px}.mx-lens,.mx-result{padding:20px;border-radius:22px;border:1px solid #dbe8df;background:#fff}.mx-lens strong{font-size:12px}.mx-lens p{font-size:11px;color:#637570;line-height:1.9}.mx-particles{position:relative;border:1px dashed #aec8be;border-radius:50%;height:135px;max-width:180px;margin:15px auto;overflow:hidden;background:radial-gradient(#e9f6f7,#fff)}.mx-particles i{position:absolute;left:var(--x);top:var(--y);width:7px;height:7px;border-radius:50%;background:#8ab9c9;animation:mx-drift 3s var(--delay) ease-in-out infinite alternate}.mx-particles i.solid{width:11px;height:11px;background:#b79c70}.mx-particles.sand i.solid{top:15%;animation:none}.mx-particles.sand i:not(.solid){top:75%}.mx-particles.iron i.solid{top:8%;background:#525b60;animation:none}.mx-particles.salt i.solid{top:80%;background:#e4ded1;animation:none}.mx-result{background:#eaf6f1}.mx-result.warning{background:#fff1e8}.mx-result h3{font-size:19px;margin:8px 0}.mx-eyebrow{font-size:10px;color:#637570}.mx-result p{font-size:13px;line-height:1.95;margin:10px 0;min-height:72px}.mx-result button{font-size:12px;padding:6px 12px}.mx-mass{border-top:1px solid #d0e2d6;padding-top:13px;margin-top:14px;font-size:11px;line-height:1.8}.mx-challenge{display:flex;align-items:center;gap:16px;padding:18px;background:white;border:1px solid #e2eae7;border-radius:18px;margin-top:16px}.mx-challenge strong{font-size:14px}.mx-challenge p{font-size:11px;color:#637570}.mx-challenge>b{font:700 22px Arial;color:#064e4a;margin-inline-start:auto;white-space:nowrap}.mx-challenge button{font-size:11px}.mx-ghost{position:fixed;width:105px;height:125px;transform:translate(-50%,-65%) rotate(12deg);pointer-events:none;z-index:10000;filter:drop-shadow(5px 9px 5px #183a3840)}.mx-ghost svg{width:100%;height:100%}
@keyframes mx-stream{to{background-position:0 20px}}@keyframes mx-steam{to{transform:translateY(-60px) scale(1.6);opacity:0}}@keyframes mx-drift{to{transform:translate(7px,-8px)}}
@media(max-width:1100px){.mx-grid{grid-template-columns:220px minmax(0,1fr)}.mx-observe{grid-template-columns:1fr}.mx-scene{min-height:310px}}@media(max-width:800px){.mx-grid{display:flex;flex-direction:column}.mx-controls{width:100%;padding:14px}.mx-display{width:100%}.mx-shelf{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.mx-shelf button{min-height:80px;font-size:9px;padding:4px}.mx-shelf svg{height:46px;width:42px}.mx-action{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:8px}.mx-action label,.mx-action input{grid-column:span 2}.mx-heading{align-items:flex-start}.mx-heading h2{font-size:23px}.mx-heading p{font-size:12px}.mx-heading>button{font-size:10px;padding:8px}.mx-scene{min-height:280px}.mx-mixtures{gap:5px}.mx-mixtures button{padding:10px 7px;font-size:11px}.mx-steps{gap:5px}.mx-steps li{gap:5px;font-size:10px;padding:8px 4px}.mx-steps b{padding:5px 8px}.mx-observe{grid-template-columns:1fr 1.1fr;gap:8px}.mx-lens,.mx-result{padding:12px}.mx-lens strong{font-size:10px}.mx-result h3{font-size:16px}.mx-result p{font-size:11px}.mx-particles{height:110px}.mx-challenge{gap:9px;padding:12px;flex-wrap:wrap}.mx-status{top:10px;right:10px;font-size:9px}.mx-scene-note{left:10px;top:10px;font-size:8px}.mx-zone{font-size:8px}.mx-stand{top:23%;height:61%}.mx-readout{font-size:9px;bottom:9px}.mx-cup{width:29%;left:5%}.mx-cup.positioned{left:25%;width:28%}}
@media(max-width:420px){.mx-observe{grid-template-columns:1fr}.mx-heading{display:block}.mx-heading>button{margin-top:6px}.mx-scene{min-height:260px}.mx-action button{font-size:10px;padding:8px}.mx-mixtures small{font-size:8px}}
@media(prefers-reduced-motion:reduce){.mx *, .mx-ghost{animation:none!important;transition:none!important}}
.mx-receiver .mx-received{left:20%;bottom:10%;width:60%;height:calc(var(--receiver)*60%);border-radius:40% 40% 12% 12%;z-index:1}.mx-clamp{position:absolute;top:37%;left:35%;width:52%;height:6px;background:linear-gradient(#92b7aa,#345e52);border-radius:3px;z-index:3}.mx-cup.positioned{cursor:grab}.mx-cup.positioned:active{cursor:grabbing}.mx-adding{position:absolute;left:1%;top:22%;width:25%;height:33%;z-index:10;transform:rotate(55deg);transform-origin:85% 18%;animation:mx-add .8s ease-in-out}.mx-adding svg{width:100%;height:100%}.mx-adding i{position:absolute;left:90%;top:18%;height:80%;width:8%;background:#a5c5b5aa;transform:rotate(-55deg)}@keyframes mx-add{0%{opacity:0;transform:rotate(0)}30%,75%{opacity:1;transform:rotate(55deg)}100%{opacity:0;transform:rotate(0)}}.mx-stand:has(.mx-apparatus>svg) .mx-zone{display:none}.mx-scene.iron .mx-stand,.mx-scene.iron .mx-receiver{opacity:.3}.mx-scene.iron .mx-cup{z-index:6}.mx-scene.salt:not(.filtering) .mx-clamp{opacity:0}.mx-scene:not(.filtering) .mx-stream{height:39%;left:61%;top:33%}.mx .mx-mixtures button,.mx .mx-challenge>b{unicode-bidi:plaintext}.mx-result.warning{background:#fff1e8}
@media(min-width:801px){.mx-shelf{grid-template-columns:repeat(3,minmax(0,1fr))}.mx-shelf button{font-size:9px;min-height:80px}.mx-shelf svg{height:46px}.mx-controls{padding:14px}.mx-grid{grid-template-columns:260px minmax(0,1fr)}}
.mx-receiver,.mx-condenser,.mx-stream,.mx-crystals,.mx-clamp,.mx-vapor,.mx-adding{pointer-events:none}
.mx-tube-line{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3}.mx-distill-cup{position:absolute;left:79%;top:66%;width:19%;height:22%;pointer-events:none;z-index:4}.mx-distill-cup svg{position:relative;width:100%;height:100%;z-index:2}.mx-distill-cup i{position:absolute;left:20%;bottom:8%;width:60%;height:calc(var(--progress)*58%);background:#95d4e0a0;border-radius:35% 35% 15% 15%}.mx-distill-cup span{position:absolute;bottom:-5%;left:5%;width:100%;font-size:8px;direction:rtl;text-align:center;color:#064e4a;background:#ffffffaa}.mx-condenser{left:70%;top:38%;width:23%;height:28%;transform:rotate(80deg)}.mx-condenser span{transform:rotate(-80deg);top:-15%}.mx-scene.salt:not(.filtering) .mx-crystals{left:57.5%;top:77%;width:13%}
.mx-scene{width:100%;max-width:100%}.mx-grid>*{min-width:0}
@media(max-width:800px){.mx-scene{aspect-ratio:auto;min-height:0;height:300px}.mx-action{grid-template-columns:repeat(2,minmax(0,1fr))}.mx-action button{min-width:0;overflow-wrap:anywhere}.mx-steps li,.mx-mixtures button{min-width:0}.mx-heading h2{font-size:21px}.matter-lab:has(.mx){padding:10px}.ml-bench:has(.mx){padding:10px}.mx-display{min-width:0}.mx-readout{max-width:90%;font-size:8px}.mx-receiver{width:26%;left:51%}.mx-cup.positioned{width:30%}.mx-scene .mx-scene-note{font-size:7px}}
/* Filings converge on the lower pole instead of moving a fixed pixel distance. */
.mx-tray b{left:calc(var(--x) + (35% - var(--x))*var(--progress));top:calc(var(--y)*(1 - var(--progress)));transform:rotate(var(--r))}.mx-tray{overflow:visible}.mx-scene.iron .mx-cup svg>path:nth-of-type(2){opacity:calc(1 - var(--progress))}.mx .mx-shelf [data-mx-item=iron] svg>path:nth-of-type(2){fill:#65706d}.mx .mx-shelf [data-mx-item=salt] svg>path:nth-of-type(2){fill:#e7e8db}.mx .mx-shelf [data-mx-item=sand] svg>path:nth-of-type(2){fill:#c4a16b}
/* Align the pouring lip with the funnel inlet at every scene size. */
.mx-cup.positioned{left:40%;top:9%}.mx-stream,.mx-scene:not(.filtering) .mx-stream{left:63%;top:24%;height:39%}.mx-scene.done .mx-cup.positioned{left:8%;top:49%;transform:none}.mx-scene.done .mx-cup span{display:none}
@media(max-width:800px){.mx-cup.positioned{left:34%;top:9%}.mx-scene.done .mx-cup.positioned{left:5%;top:49%}}
/* Liquid and glass share the same aspect ratio, so water stays inside the vessel. */
.mx-receiver{left:55%;width:18%;height:auto;aspect-ratio:140/160;top:auto;bottom:14%}.mx-receiver svg{display:block}.mx-scene.salt:not(.filtering) .mx-receiver{top:auto;bottom:15%}.mx-distill-cup{height:auto;aspect-ratio:140/160;top:auto;bottom:13%;width:15%;left:82%}.mx-scene.salt:not(.filtering) .mx-crystals{top:auto;bottom:17%;left:58.6%;width:10.8%}
@media(max-width:800px){.mx-receiver{width:23%;left:52.5%;bottom:14%}.mx-scene.salt:not(.filtering) .mx-receiver{bottom:15%}}
.mx-cup.positioned{left:46%;top:20%;width:18%;height:26%}.mx-stream,.mx-scene:not(.filtering) .mx-stream{top:26%;height:37%}
@media(max-width:800px){.mx-cup.positioned{left:41%;top:20%;width:23%;height:27%}}

/* Photographic equipment shares one light direction and perspective. */
.mx-shelf svg{width:70px;height:80px;filter:drop-shadow(2px 4px 3px #183a3825)}
.mx-shelf button{min-height:112px;font-size:11px}.mx-scene{aspect-ratio:16/10;min-height:390px;background-position:center;box-shadow:inset 0 0 0 1px #183a3815,0 12px 28px #183a3810}
.mx-base{background:linear-gradient(135deg,#5b6261,#202b29);border:1px solid #3e4643;box-shadow:3px 7px 6px #13241e44}.mx-rod{width:9px;background:linear-gradient(90deg,#505b56,#f1f5ef 35%,#7f8c83 70%,#3d4c43)}.mx-clamp{background:linear-gradient(#f6faf5,#717d74,#afb8b0);height:9px}.mx-stand{outline:none}.mx-stand:focus-visible,.mx-stand:hover{outline:2px dashed #7a9c90}.mx-apparatus{filter:drop-shadow(3px 6px 3px #213c2e24)}.mx-cup{filter:drop-shadow(4px 10px 5px #213c2e30)}.mx-scene .mx-received{left:24%;width:52%;bottom:16%;height:calc(var(--receiver)*53%)}.mx-distill-cup i{left:24%;width:52%;bottom:16%;height:calc(var(--progress)*53%)}
.mx-cup.positioned .mx-liquid-fill{opacity:var(--left)}.mx-stream{filter:drop-shadow(1px 0 1px #fff8);border-radius:40% 40% 20% 20%;background-size:100% 12px}.mx-paper{left:16%;top:10%;width:68%;height:52%}.mx-magnet svg{transform:rotate(20deg)}
@media(max-width:800px){.mx-shelf svg{width:52px;height:60px}.mx-shelf button{min-height:88px;font-size:10px}.mx-scene{min-height:0;height:330px}.mx-controls{background:#f6f9f7}.mx-shelf{gap:8px}.mx-scene .mx-received{left:24%;width:52%}}
@media(prefers-reduced-motion:reduce){.mx *, .mx-ghost{animation:none!important;transition:none!important}}

.mx-next{display:flex;gap:14px;align-items:center;padding:18px;margin:16px 0;background:#eaf6f1;border:1px solid #c6e1d3;border-radius:20px}.mx-next>span{display:grid;place-items:center;background:#ffad81;border-radius:14px;width:46px;height:46px;font-size:25px;flex:none}.mx-next small{display:block;font-size:11px;color:#637570}.mx-next strong{display:block;font-size:17px;line-height:1.8}.mx-shelf button{font-size:12px}.mx-caption{font-size:11px}
@media(max-width:700px){.mx-next{padding:12px}.mx-next strong{font-size:14px}.mx-shelf{grid-template-columns:repeat(3,minmax(0,1fr))}.mx-shelf button{font-size:11px;min-height:94px}}

.mx-liquid-fill{mix-blend-mode:multiply}.mx-receiver .mx-received,.mx-distill-cup i{z-index:3;mix-blend-mode:multiply;pointer-events:none}

.mx-full-steps summary{cursor:pointer;min-height:44px;font-weight:700;display:flex;align-items:center}.mx-full-steps summary:before{content:"＋";margin-inline-end:10px}.mx-full-steps[open] summary:before{content:"−"}
/* Keep the hotplate visible below its vessel; the glass must not cover its controls. */
.mx-scene.salt:not(.filtering) .mx-receiver{bottom:26%;z-index:4}
.mx-scene.salt:not(.filtering) .mx-crystals{bottom:28%;z-index:5}
.mx-scene.salt:not(.filtering) .mx-apparatus{z-index:3}
.mx-scene.salt:not(.filtering) .mx-base{opacity:.35}
