/* The machine is a generated pixel sprite; its chamber, shutter and effects are live layers. */
#page-fuse{--fuse-edge:#49345f;--fuse-muted:#b4a1c7;--fuse-ink:#efe5fa;--fuse-accent:#c18aff;color:var(--fuse-ink)}
.fuse-workbench{position:relative;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:18px;align-items:start;isolation:isolate}
.fuse-machine-scene,.fuse-arena,.fuse-panel{border:1px solid var(--fuse-edge);background:#171020;min-width:0}
.fuse-machine-scene{position:relative;aspect-ratio:1/1.04;overflow:hidden;isolation:isolate;background:#100b1c;box-shadow:inset 0 0 0 4px #21182e}
.fuse-scene-heading{position:relative;text-align:center;z-index:2;padding:22px 12px 0;pointer-events:none}
.fuse-lab-label{font:9px/1.4 monospace;letter-spacing:.2em;color:#9885b3}
.fuse-scene-heading h1{font:900 clamp(19px,2.1vw,28px)/1.2 monospace;letter-spacing:.1em;margin:8px 0 10px;color:#ead8ff;text-shadow:2px 2px #5b3c7b}
.fuse-machine-status{font-size:11px;color:#b5a3cc}
.fuse-lab-wall{position:absolute;inset:0;background-image:radial-gradient(#b1a3d34d 1px,transparent 1px);background-size:38px 38px;opacity:.6;z-index:-1}
.fuse-lab-wall:before,.fuse-lab-wall:after{content:"";position:absolute;left:0;right:0;height:1px;background:#48305d55;top:42%}.fuse-lab-wall:after{top:70%}
.fuse-lab-wall i{position:absolute;width:11px;top:30%;bottom:10%;border:3px solid #30243d;border-top:0;border-bottom:0;left:6%;box-shadow:3px 0 #090714}
.fuse-lab-wall i:nth-child(2){left:auto;right:7%;top:20%}.fuse-lab-wall i:nth-child(3){top:80%;left:0;right:0;width:auto;height:16px;border:0;background:repeating-linear-gradient(90deg,#30243d 0 3px,transparent 3px 35px)}
.fuse-machine-rig{position:absolute;width:83%;aspect-ratio:1;left:8.5%;bottom:4%;z-index:2;transform-origin:60% 90%}
.fuse-machine-art{position:absolute;width:100%;height:100%;inset:0;object-fit:contain;image-rendering:pixelated;pointer-events:none;user-select:none}
.fuse-chamber{position:absolute;inset:47.3% 19.7% 20.3% 41.6%;overflow:hidden;clip-path:polygon(7% 0,93% 0,100% 9%,100% 91%,93% 100%,7% 100%,0 91%,0 9%);isolation:isolate;background:radial-gradient(ellipse at 50% 66%,#231044,#10071f)}
.fuse-shutter{position:absolute;z-index:5;inset:0;background:repeating-linear-gradient(0deg,#22263e 0 3px,#525971 3px 5px,#747d91 5px 17px,#3b4159 17px 20px);box-shadow:inset 7px 0 #252b42,inset -7px 0 #292d43;transform:translateY(-103%)}
.fuse-shutter:after{content:"";position:absolute;left:0;right:0;bottom:0;height:9px;border-top:3px solid #a9aec1;background:repeating-linear-gradient(135deg,#c8a963 0 8px,#302638 8px 16px)}
.fuse-shutter span{position:absolute;top:47%;left:36%;width:28%;height:7%;background:#23243a;border:2px solid #a0a4b5;box-shadow:0 3px #191a2b}
.fuse-energy-grid{position:absolute;inset:0;opacity:0;background:repeating-linear-gradient(0deg,transparent 0 17px,#ba7fff33 17px 19px),repeating-linear-gradient(90deg,transparent 0 17px,#ba7fff33 17px 19px),#723bb844}
.fuse-core-pixel{position:absolute;left:50%;top:50%;width:24%;aspect-ratio:1;translate:-50% -50%;opacity:0;background:#f0d6ff;box-shadow:8px 0 #bd7beb,-8px 0 #bd7beb,0 8px #bd7beb,0 -8px #bd7beb,14px 0 #7242a8,-14px 0 #7242a8,0 14px #7242a8,0 -14px #7242a8}
#fuse-machine-prize{position:absolute;left:10%;top:8%;width:80%;height:82%;object-fit:contain;z-index:3;image-rendering:auto;filter:drop-shadow(0 5px 0 #09041144)}
#fuse-machine-prize[hidden]{display:none}
.fuse-machine-lights{position:absolute;left:58.5%;top:31.6%;width:3.1%;height:5.3%;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none}
.fuse-machine-lights i{height:25%;background:#e7b2ff;opacity:.12}
.fuse-steam{position:absolute;inset:0;pointer-events:none;z-index:-1}
.fuse-steam i{position:absolute;top:16.5%;left:40%;width:5%;height:5%;opacity:0;background:#c2b8e1;clip-path:polygon(20% 0,70% 0,70% 20%,100% 20%,100% 75%,70% 75%,70% 100%,20% 100%,20% 75%,0 75%,0 25%,20% 25%)}
.fuse-steam i:nth-child(3n+2){left:59%;top:10%}.fuse-steam i:nth-child(3n){left:78%;top:18%}.fuse-steam i:nth-child(n+4){width:4%;height:4%}
.fuse-platform{position:absolute;left:5%;right:5%;bottom:8%;height:5%;background:#38344b;border-top:5px solid #80798f;border-bottom:5px solid #08060e;box-shadow:5px 5px #08060e,-5px 0 #242036;z-index:1;display:flex;justify-content:space-around;align-items:center}
.fuse-platform i{width:10%;height:3px;background:#b47be4}
.fuse-scene-footer{position:absolute;left:6%;right:6%;bottom:3%;display:flex;justify-content:space-between;font:8px/1 monospace;letter-spacing:.08em;color:#a595b9}
.fuse-scene-footer i{display:inline-block;width:5px;height:5px;background:#92ca95;margin-right:5px}
.fuse-machine-scene[data-phase="closing"] .fuse-shutter,.fuse-machine-scene[data-phase="charging"] .fuse-shutter,.fuse-machine-scene[data-phase="charged"] .fuse-shutter{transform:translateY(0)}
.fuse-machine-scene[data-phase="loading"] .fuse-energy-grid{opacity:.45}
.fuse-machine-scene[data-phase="charging"] .fuse-machine-lights i,.fuse-machine-scene[data-phase="charged"] .fuse-machine-lights i{animation:fuse-lights .36s steps(2,end) infinite alternate}
.fuse-machine-lights i:nth-child(2){animation-delay:.12s!important}.fuse-machine-lights i:nth-child(3){animation-delay:.24s!important}
.fuse-machine-scene:is([data-phase="charging"],[data-phase="charged"],[data-phase="revealing"]) .fuse-steam i{animation:fuse-steam 1.3s steps(12,end) infinite}
.fuse-steam i:nth-child(2){animation-delay:.22s!important}.fuse-steam i:nth-child(3){animation-delay:.44s!important}.fuse-steam i:nth-child(4){animation-delay:.65s!important}.fuse-steam i:nth-child(5){animation-delay:.87s!important}.fuse-steam i:nth-child(6){animation-delay:1.08s!important}
.fuse-machine-scene[data-phase="charging"] .fuse-machine-rig{animation:fuse-rattle .16s steps(2,end) infinite}
.fuse-machine-scene[data-phase="complete"] .fuse-energy-grid{opacity:.22}
@keyframes fuse-rattle{0%,100%{translate:0 0}25%{translate:1px -1px}75%{translate:-1px 0}}
@keyframes fuse-lights{to{opacity:.9}}
@keyframes fuse-steam{0%{transform:translateY(0) scale(.5);opacity:0}20%{opacity:.6}100%{transform:translate(-8px,-46px) scale(1.7);opacity:0}}
.fuse-arena{position:relative;padding:24px;border-radius:6px;min-height:100%;display:flex;flex-direction:column;overflow:hidden}
.fuse-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.fuse-heading h2{font-size:20px;margin:0}.fuse-heading p{font-size:12px;color:var(--fuse-muted);margin:5px 0 0}.fuse-heading>span{font:700 20px monospace;color:#cbb6e2;white-space:nowrap}
.fuse-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;min-height:138px}
.fuse-slot{position:relative;min-width:0;padding:23px 5px 10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid #534064;border-radius:4px;background:repeating-linear-gradient(90deg,#191323 0 11px,#21182e 11px 13px);color:#d1bce8;overflow:hidden;transition:border-color .2s,background-color .2s;box-shadow:inset 0 0 0 3px #110c19}
.fuse-slot:disabled{opacity:1}.fuse-slot.filled{border-color:#bd8beb;background:#2b1a3d}.fuse-slot img{width:100%;height:64px;object-fit:contain;transition:opacity .15s}.fuse-slot strong{font-size:10px;line-height:1.25;height:27px;overflow:hidden;text-align:center;width:100%}.fuse-slot small{font-size:10px;color:#c9b5da;text-align:center}.fuse-slot-number{position:absolute;left:7px;top:6px;font:10px monospace;color:#9f87b9}.fuse-slot-plus{font:28px monospace;color:#b897d4}.fuse-remove{position:absolute;right:7px;top:3px;font-size:17px;color:#d5b5ec}
.fuse-pick-actions{display:grid;grid-template-columns:1fr 42px;gap:8px;margin:12px 0 18px}.fuse-pick-actions button{min-height:40px;font-size:12px}.fuse-pick-actions #fuse-auto{background:#7e48b033;border-color:#9d69c3;color:#e6d0f6}.fuse-pick-actions #fuse-clear{display:grid;place-items:center;font-size:24px;line-height:1;padding:0}
.fuse-summary{display:grid;grid-template-columns:1fr 1fr;border:1px solid #3f2d53;background:#1e1729;margin-bottom:16px}.fuse-summary>div{padding:20px 8px;text-align:center;min-width:0;display:grid;gap:10px}.fuse-summary>div+div{border-left:1px solid #3f2d53}.fuse-summary small{font-size:10px;color:var(--fuse-muted);text-transform:uppercase;letter-spacing:.04em}.fuse-summary strong{font-size:20px;color:#e4c2ff}.fuse-summary #fuse-range{font-size:15px;align-self:center}
#fuse-start{width:100%;min-height:50px;flex-shrink:0;font-size:16px}#fuse-start:disabled{opacity:.5}.fuse-risk{font-size:11px;line-height:1.6;color:var(--fuse-muted);margin:12px 0 0;text-align:center}
.fuse-panel{padding:20px;margin-top:18px;border-radius:6px}.fuse-panel-heading,.fuse-inventory-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.fuse-panel h2{font-size:18px;margin:0}.fuse-inventory-heading h2{display:flex;align-items:center;gap:9px;white-space:nowrap}.fuse-inventory-heading h2 span{font-size:11px;color:#c8afd9;border:1px solid #4b335f;border-radius:4px;padding:3px 6px}
.fuse-filters{display:flex;gap:8px;min-width:0}.fuse-filters input,.fuse-filters select{min-width:0;background:#130d1e;color:#e8dcf5;border:1px solid #49315e;padding:10px 12px;border-radius:6px;font-size:11px}.fuse-filters input{width:190px}.fuse-filters select{max-width:160px}
.fuse-inventory{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:10px;max-height:420px;overflow:auto;overscroll-behavior:contain;padding:4px;scrollbar-color:#75459d #180e23;scrollbar-width:thin}
.fuse-inventory-card{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;background:#1b1326;border:1px solid #423052;border-radius:7px;padding:12px 8px;color:#ece1f6;min-width:0;transition:border-color .2s,box-shadow .2s}.fuse-inventory-card img{width:100%;height:80px;object-fit:contain}.fuse-inventory-card strong{font-size:11px;min-height:30px;line-height:1.35}.fuse-inventory-card>span{color:#cda6ed;font-size:12px}.fuse-check{position:absolute;top:6px;right:8px;color:#b582e3}.fuse-inventory-card.selected{border-color:#c791f1;box-shadow:inset 0 0 0 1px #8c54bb;background:#342046}.fuse-inventory-card:disabled:not(.selected){opacity:.45}
.fuse-drop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}.fuse-drop{background:#1a1226;border:1px solid #423052;border-radius:7px;display:flex;align-items:center;flex-direction:column;text-align:center;padding:12px 8px;gap:7px;min-width:0}.fuse-drop img{width:100%;height:80px;object-fit:contain}.fuse-drop strong{font-size:11px;min-height:30px}.fuse-drop>span{color:#c8a6e3;font-size:12px}.fuse-drop b{font-size:12px;background:#8d43c522;padding:4px 10px;border-radius:4px;color:#e1bcff}.fuse-empty{grid-column:1/-1;color:var(--fuse-muted);padding:24px;text-align:center;font-size:13px;line-height:1.6}
.fuse-result{display:flex;align-items:center;gap:12px;padding:14px;margin-top:16px;border:1px solid #a26bcc;background:#2a193c;border-radius:6px}.fuse-result[hidden]{display:none}.fuse-result>img{width:75px;height:90px;object-fit:contain}.fuse-result>div{min-width:0}.fuse-result h2{font-size:16px;line-height:1.3;margin:4px 0}.fuse-result p,.fuse-result small{font-size:10px;color:#cbb2dd}.fuse-result p{margin:4px 0}.fuse-result strong{font-size:16px;color:#e4baff}.fuse-result-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.fuse-result-actions a,.fuse-result-actions button{font-size:11px;padding:8px 11px;border-radius:4px;border:1px solid #72438e;background:#43215d;color:#f4e8ff;text-decoration:none}
.fuse-working .fuse-slot img{opacity:.1}.fuse-working .fuse-remove{visibility:hidden}.fuse-working .fuse-pick-actions{opacity:.5}
.fuse-transport-layer{position:absolute;inset:0;pointer-events:none;z-index:10;overflow:hidden}.fuse-flying-item{position:absolute;object-fit:contain;will-change:transform,opacity}.fuse-pixel-spark{position:absolute;width:5px;height:5px;background:#e3b6ff;box-shadow:3px 0 #8e58b7;pointer-events:none}.fuse-impact-flash{position:absolute;inset:0;background:#dbb3ff;opacity:0;pointer-events:none}
#page-fuse button:focus-visible,#page-fuse a:focus-visible{outline:2px solid #e6bdff;outline-offset:3px}
@media(max-width:1100px){.fuse-arena{padding:18px}.fuse-slots{gap:6px}.fuse-slot img{height:54px}.fuse-summary>div{padding:16px 6px}.fuse-scene-heading{padding-top:16px}.fuse-inventory-heading{flex-wrap:wrap}.fuse-filters{flex:1;justify-content:flex-end}}
@media(max-width:800px){.fuse-workbench{grid-template-columns:1fr;gap:14px}.fuse-machine-scene{aspect-ratio:1/1.06;max-width:560px;width:100%;margin:auto}.fuse-machine-rig{width:83%;left:8.5%;bottom:3%}.fuse-scene-heading{padding-top:16px}.fuse-scene-heading h1{font-size:24px;margin:5px 0 7px}.fuse-scene-footer{bottom:3%}.fuse-platform{bottom:5%;left:8%;right:8%;height:5%}.fuse-arena{min-height:0;padding:18px}.fuse-slots{gap:10px;min-height:142px}.fuse-slot img{height:67px}.fuse-summary>div{padding:16px 8px}.fuse-heading{margin-bottom:14px}.fuse-summary{margin-bottom:12px}.fuse-pick-actions{margin-bottom:14px}.fuse-panel{padding:14px}.fuse-filters{justify-content:stretch;width:100%;flex:auto}.fuse-filters input{flex:1;width:0}.fuse-inventory{grid-template-columns:repeat(4,minmax(0,1fr))}.fuse-inventory-card img{height:64px}.fuse-drop-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.fuse-drop img{height:64px}}
@media(max-width:480px){.fuse-scene-heading h1{font-size:21px}.fuse-lab-label{font-size:8px}.fuse-machine-status{font-size:10px}.fuse-arena{padding:14px}.fuse-heading h2{font-size:18px}.fuse-slots{gap:6px;min-height:126px}.fuse-slot{padding:22px 3px 8px}.fuse-slot img{height:54px}.fuse-slot strong{font-size:9px;height:24px}.fuse-slot small{font-size:9px}.fuse-slot-number{font-size:9px;left:5px}.fuse-summary strong{font-size:18px}.fuse-summary #fuse-range{font-size:13px}.fuse-summary small{font-size:9px}.fuse-inventory,.fuse-drop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.fuse-filters select{max-width:135px;padding:10px 6px}.fuse-panel h2{font-size:16px}.fuse-inventory-card strong,.fuse-drop strong{font-size:10px}.fuse-scene-footer{font-size:7px}.fuse-machine-rig{width:80%;left:10%;bottom:3%}}
@media(max-width:360px){.fuse-machine-rig{width:74%;left:13%}.fuse-scene-heading h1{font-size:19px}.fuse-scene-heading{padding-top:12px}}
@media(min-width:1200px){.fuse-machine-scene{aspect-ratio:1.15}.fuse-machine-rig{width:72%;left:14%;bottom:2%}}
@media(prefers-reduced-motion:reduce){#page-fuse *,#page-fuse *:before,#page-fuse *:after{animation:none!important;transition:none!important}.fuse-steam{display:none}}


.fuse-machine-scene,.fuse-arena,.fuse-panel{border-radius:20px}
.fuse-machine-scene{
 background:radial-gradient(ellipse at 52% 58%,#382266 0,transparent 66%),#100c1c;
 border-color:#674a86;
 box-shadow:inset 0 0 0 4px #221633;
}
.fuse-lab-wall{
 background-image:
  repeating-radial-gradient(ellipse at 50% 58%,transparent 0 42px,#a17ee029 43px 44px,transparent 45px 66px),
  radial-gradient(#b4a2df55 1px,transparent 1px);
 background-size:auto,24px 24px;
}
.fuse-lab-wall i{opacity:.35}
.fuse-machine-status{
 display:inline-block;
 border:1px solid #705495;
 border-radius:999px;
 background:#1b102e;
 padding:4px 10px;
 color:#e2cbfc;
}
.fuse-machine-scene[data-phase="charging"] .fuse-machine-status,
.fuse-machine-scene[data-phase="revealing"] .fuse-machine-status{
 border-color:#72d8e0;
 color:#b4f9ff;
}
.fuse-arena,.fuse-panel{background:linear-gradient(150deg,#251934,#15101f 74%)}
.fuse-heading>span{
 border:1px solid #7652a1;
 border-radius:999px;
 padding:6px 12px;
 background:#301b49;
 color:#e6caff;
}
.fuse-slot,.fuse-inventory-card,.fuse-drop,.fuse-result{border-radius:13px}
.fuse-slot{background:linear-gradient(145deg,#241831,#170f23);box-shadow:none}
.fuse-slot:not(.filled){border-style:dashed}
.fuse-slot.filled{background:linear-gradient(155deg,#3a2552,#231735);border-color:#9e78cb}
.fuse-slot-number{padding:2px 5px;border-radius:6px;background:#3a2851;color:#e3cef8}
.fuse-slot-plus{color:#ac87d9}
.fuse-summary{gap:8px;border:0;background:none}
.fuse-summary>div,.fuse-summary>div+div{
 border:1px solid #59416f;
 border-radius:12px;
 background:#20152d;
}
#page-fuse :is(#fuse-start,#fuse-auto,#fuse-clear,.fuse-filters input,.fuse-filters select){border-radius:11px}

.fuse-result-reveal{
 display:grid;
 grid-template-rows:0fr;
 flex-shrink:0;
 transition:grid-template-rows .42s cubic-bezier(.2,.75,.25,1);
}
.fuse-result-reveal:has(#fuse-result:not([hidden])){grid-template-rows:1fr}
.fuse-result-clip{min-height:0;overflow:hidden}
#fuse-result:not([hidden]){animation:fuse-result-enter .42s cubic-bezier(.2,.75,.25,1) both}
@keyframes fuse-result-enter{
 from{opacity:0;transform:translateY(14px)}
 to{opacity:1;transform:translateY(0)}
}
