.gx-equation{--eq-cream:#f6dfae;max-width:780px;margin:22px auto;color:var(--eq-cream);font:600 15px/1.5 system-ui,sans-serif;isolation:isolate}.gx-equation *{box-sizing:border-box}.gx-equation [hidden]{display:none!important}.gx-equation button{font:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;border:1px solid #a18053;border-radius:8px;background:#665244;color:#fff0cd;min-width:44px;min-height:44px;padding:8px 12px}.gx-equation button:disabled{opacity:.4;cursor:default}.gx-equation button:focus-visible,.gx-equation summary:focus-visible{outline:3px solid #ffe08e;outline-offset:2px}.eq-shell{display:flex;flex-direction:column;border:3px solid #b88c54;border-radius:16px;background:#342d2a;overflow:hidden;position:relative;box-shadow:0 16px 38px #3c322530}.eq-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 16px;background:#593e30;border-bottom:1px solid #ac8058}.eq-brand strong{display:block;color:#ffe1a5;font-size:24px;line-height:1.3}.eq-brand small{display:block;color:#cfb38e;font-size:10px;letter-spacing:.08em}.eq-top{display:flex;gap:5px}.eq-top button{font-size:12px;padding:6px 9px;white-space:nowrap}.eq-hud{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#856744}.eq-hud>div{background:#392b24;text-align:center;padding:6px}.eq-hud span{display:block;color:#d2b692;font-size:10px}.eq-hud strong{color:#f7ce7e;font-size:23px;line-height:1.2;font-variant-numeric:tabular-nums}.eq-stage{position:relative;display:flex;flex-direction:column;min-height:420px;background:#352f2b}.eq-scene{display:block;width:100%;height:135px;min-height:60px;flex:1 1 auto}.eq-board{margin:0 16px 10px;padding:10px 12px;border:2px solid #bb8d4e;border-radius:6px;background:linear-gradient(110deg,#fff1cf,#e4c994);color:#3c3427;box-shadow:0 3px 0 #251f1c;min-height:126px;flex-shrink:0}.eq-label{font-size:12px;font-weight:800}.eq-formula{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px;min-height:52px;font-size:clamp(17px,3.2vw,27px);line-height:1.4;font-weight:900;font-variant-numeric:tabular-nums}.gx-equation .eq-slot{border:2px solid #84683f;padding:0;width:46px;height:46px;background:#f5e1b5;color:#5b442a;font-size:27px;line-height:1}.gx-equation .eq-slot[aria-pressed=true]{border-color:#a94c27;box-shadow:0 0 0 2px #d48a46}.gx-equation .eq-slot:disabled{opacity:.8}.eq-equals{white-space:nowrap}.eq-hint{min-height:19px;font-size:11px;color:#635641}.eq-controls{padding:0 16px 10px;width:100%;max-width:510px;align-self:center;flex-shrink:0}.eq-ops{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.eq-ops button{background:linear-gradient(#dcba78,#a97a3e);color:#302920;font-size:32px;line-height:1;min-height:52px;box-shadow:0 3px 0 #231c19;border:1px solid #d9bd80;user-select:none}.eq-ops button:active{background:#ffdc8e;transform:translateY(1px)}.eq-edit{display:grid;grid-template-columns:1fr 2fr;gap:7px;margin-top:8px}.gx-equation .eq-primary{background:linear-gradient(#c6753c,#9c4e25);color:#fff0ca;border-color:#e2ad71}.eq-tools{display:flex;gap:7px;margin-top:8px}.eq-tools button{flex:1;font-size:12px;padding:5px}.eq-bottom{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:7px 16px 2px;font-size:11px;color:#d8bd95}.eq-status{margin:0!important;min-height:27px;padding:2px 16px 7px;color:#d8c1a0;font-size:11px}.eq-panel{position:absolute;inset:0;z-index:3;overflow:auto;overscroll-behavior:contain;padding:20px 23px;display:flex;flex-direction:column;justify-content:center;gap:12px;background:linear-gradient(135deg,#674431fc,#2d2b29fc)}.eq-panel h2{margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;color:#ffdda0!important;font-size:25px!important;line-height:1.3!important;letter-spacing:0!important}.eq-panel h2:before,.eq-panel h2:after{display:none!important}.eq-panel p{margin:0!important;color:#e3cda9;font-size:13px;line-height:1.6}.eq-modes,.eq-levels,.eq-actions{display:flex;gap:6px;flex-wrap:wrap}.eq-modes button{flex:1;font-size:13px;white-space:nowrap;padding:9px 6px}.eq-levels button{flex:1;white-space:nowrap;padding:8px;font-size:13px}.eq-modes [aria-pressed=true],.eq-levels [aria-pressed=true]{background:#a86c36;border-color:#f5cb7f}.eq-panel>.eq-primary{font-size:18px;min-height:48px}.eq-history{font-size:11px;color:#dbc399}.eq-history summary{cursor:pointer}.eq-history p{font-size:11px}.eq-note{font-size:11px!important;color:#d1bda0!important}.eq-answers{display:grid;gap:6px;padding:12px;background:#f1deb6;color:#493b28;border-radius:7px}.eq-answers>span{font-size:11px}.eq-answers strong{font-variant-numeric:tabular-nums;font-size:clamp(17px,3.1vw,25px);overflow-wrap:anywhere;line-height:1.4}.eq-score{font-size:47px;font-weight:900;color:#f6d39b;line-height:1.2}.eq-actions button{flex:1}.eq-supply{display:grid;grid-template-columns:1fr auto;gap:2px 12px;text-align:left;padding:11px!important}.eq-supply small{grid-column:1;font-size:11px;color:#e0c8a5;font-weight:400}.eq-supply span{grid-column:2;grid-row:1/3;align-self:center;font-size:12px;color:#f6d08b}.eq-shell:fullscreen,.eq-shell.eq-expanded{width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);margin:0}.eq-expanded{position:fixed;inset:0;z-index:2147483000}.gx-equation.eq-portal{position:relative;max-width:none!important;margin:0!important;z-index:2147483000}.eq-shell:is(:fullscreen,.eq-expanded) .eq-stage{flex:1;min-height:0}.eq-shell:is(:fullscreen,.eq-expanded) .eq-scene{height:0;min-height:0}.eq-shell:is(:fullscreen,.eq-expanded) .eq-brand small{display:none}.eq-shell:is(:fullscreen,.eq-expanded)[data-panel]:not([data-panel='']) :is(.eq-hud,.eq-bottom){display:none}
@media(max-width:580px){.gx-equation{font-size:13px;margin:14px auto}.eq-head{display:block;padding:9px 10px}.eq-brand{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.eq-brand strong{font-size:20px}.eq-brand small{font-size:8px;order:2}.eq-top{margin-top:7px;justify-content:flex-end}.eq-top button{font-size:11px;padding:6px 10px}.eq-hud strong{font-size:20px}.eq-stage{min-height:416px}.eq-scene{height:110px}.eq-board{margin:0 10px 9px;padding:8px;min-height:126px}.eq-formula{font-size:18px;gap:3px}.eq-controls{padding:0 10px 10px}.eq-panel{padding:17px 13px;gap:10px}.eq-panel h2{font-size:22px!important}.eq-modes{display:grid;grid-template-columns:1fr 1fr}.eq-modes button:first-child{grid-column:1/-1}.eq-modes button{font-size:12px}.eq-levels button{font-size:12px;padding:7px 4px}.eq-bottom{padding:7px 10px 2px}.eq-status{padding:2px 10px 7px}.eq-score{font-size:38px}}
@media(max-height:520px) and (min-width:560px){.eq-shell:is(:fullscreen,.eq-expanded) .eq-head{display:flex;height:53px;min-height:53px;padding:4px 10px;flex-shrink:0}.eq-shell:is(:fullscreen,.eq-expanded) .eq-brand strong{font-size:19px}.eq-shell:is(:fullscreen,.eq-expanded) .eq-top{margin:0}.eq-shell:is(:fullscreen,.eq-expanded) .eq-hud>div{padding:3px}.eq-shell:is(:fullscreen,.eq-expanded) .eq-hud strong{font-size:18px}.eq-shell:is(:fullscreen,.eq-expanded) .eq-stage{display:grid;grid-template-columns:56% 44%;grid-template-rows:minmax(0,1fr);align-items:center}.eq-shell:is(:fullscreen,.eq-expanded) .eq-scene{position:absolute;inset:0;width:56%;height:100%}.eq-shell:is(:fullscreen,.eq-expanded) .eq-board{grid-column:1;z-index:1;margin:8px 12px;min-height:125px}.eq-shell:is(:fullscreen,.eq-expanded) .eq-controls{grid-column:2;padding:7px 10px 7px 0}.eq-shell:is(:fullscreen,.eq-expanded) .eq-ops button{min-height:48px;font-size:28px;padding:5px}.eq-shell:is(:fullscreen,.eq-expanded) .eq-edit,.eq-shell:is(:fullscreen,.eq-expanded) .eq-tools{margin-top:6px}.eq-shell:is(:fullscreen,.eq-expanded) .eq-panel{grid-column:1/-1;grid-row:1;gap:7px;padding:10px 16px;justify-content:center}.eq-shell:is(:fullscreen,.eq-expanded)[data-panel=menu] .eq-panel{display:grid;grid-template-columns:1fr 1fr;align-content:center}.eq-shell:is(:fullscreen,.eq-expanded)[data-panel=menu] .eq-panel :is(h2,p){grid-column:1/-1}.eq-shell:is(:fullscreen,.eq-expanded)[data-panel=menu] .eq-modes{display:flex}.eq-shell:is(:fullscreen,.eq-expanded)[data-panel=supply] .eq-panel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:center}.eq-shell:is(:fullscreen,.eq-expanded)[data-panel=supply] .eq-panel :is(h2,p){grid-column:1/-1}.eq-shell:is(:fullscreen,.eq-expanded) .eq-supply{display:flex;flex-direction:column;padding:8px!important}.eq-shell:is(:fullscreen,.eq-expanded) .eq-answers{padding:8px;gap:3px}.eq-shell:is(:fullscreen,.eq-expanded) .eq-answers strong{font-size:17px}.eq-shell:is(:fullscreen,.eq-expanded) .eq-bottom{padding:2px 10px}.eq-shell:is(:fullscreen,.eq-expanded) .eq-status{min-height:22px;padding:1px 10px 3px}.eq-shell:is(:fullscreen,.eq-expanded)[data-panel]:not([data-panel='']) .eq-status{display:none}}
@media(max-height:520px) and (max-width:559px){.eq-shell:is(:fullscreen,.eq-expanded) .eq-head{padding:4px 10px}.eq-shell:is(:fullscreen,.eq-expanded) .eq-brand strong{font-size:18px}.eq-shell:is(:fullscreen,.eq-expanded) .eq-top{margin-top:4px}.eq-shell:is(:fullscreen,.eq-expanded) .eq-hud>div{padding:3px}.eq-shell:is(:fullscreen,.eq-expanded) .eq-hud strong{font-size:18px}.eq-shell:is(:fullscreen,.eq-expanded) .eq-scene{display:none}.eq-shell:is(:fullscreen,.eq-expanded) .eq-board{padding:6px;min-height:110px;margin-bottom:6px}.eq-shell:is(:fullscreen,.eq-expanded) .eq-controls{padding-bottom:3px}.eq-shell:is(:fullscreen,.eq-expanded) .eq-bottom{padding-top:3px}.eq-shell:is(:fullscreen,.eq-expanded) .eq-status{min-height:22px;padding-bottom:3px}.eq-shell:is(:fullscreen,.eq-expanded) .eq-panel{gap:8px}}
@media(prefers-reduced-motion:reduce){.gx-equation *{animation:none!important;transition:none!important}.eq-ops button:active{transform:none}}
