.gx-neon{--nl-ink:#111d36;--nl-coral:#ffae9e;--nl-mint:#a7f2cd;max-width:800px;margin:22px auto;color:#f6e8d3;font:600 15px/1.5 system-ui,sans-serif;isolation:isolate}.gx-neon *{box-sizing:border-box}.gx-neon [hidden]{display:none!important}.gx-neon button{font:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;border:1px solid #708e9f;border-radius:8px;background:#223f55;color:#ffebd6;min-width:44px;min-height:44px;padding:8px 11px}.gx-neon button:disabled{opacity:.42;cursor:default}.gx-neon button:focus-visible,.gx-neon summary:focus-visible{outline:3px solid #ffd984;outline-offset:2px}.nl-shell{--nl-safe-top:env(safe-area-inset-top,0px);--nl-safe-right:env(safe-area-inset-right,0px);--nl-safe-bottom:env(safe-area-inset-bottom,0px);--nl-safe-left:env(safe-area-inset-left,0px);position:relative;display:flex;flex-direction:column;overflow:hidden;border:3px solid #4c7585;border-radius:16px;background:#14263d;box-shadow:0 16px 38px #11243935}.nl-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px;background:#163349;border-bottom:1px solid #7a9c9e}.nl-brand strong{display:block;color:#ffe4c4;font-size:23px;line-height:1.3;text-shadow:0 0 14px #e45d5555}.nl-brand small{display:block;color:#9bc7c5;font-size:9px;letter-spacing:.1em}.nl-top{display:flex;gap:5px}.nl-top button{font-size:12px;padding:6px 9px;white-space:nowrap}.nl-hud{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#527b81}.nl-hud>div{background:#102b42;text-align:center;padding:5px}.nl-hud span{display:block;color:#bed6ce;font-size:10px}.nl-hud strong{color:#ffe3ad;font-size:23px;line-height:1.2;font-variant-numeric:tabular-nums}.nl-stage{position:relative;min-height:475px;display:flex;align-items:end;background:#14283e}.nl-scene{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none}.nl-work{position:relative;z-index:1;display:flex;align-items:center;gap:20px;width:100%;padding:100px 22px 24px}.nl-board{flex:1 0 230px;max-width:340px;aspect-ratio:1;display:grid;grid-template-columns:repeat(var(--n,3),minmax(0,1fr));grid-template-rows:repeat(var(--n,3),minmax(0,1fr));gap:6px;padding:12px;border:3px solid #c5a880;border-radius:13px;background:linear-gradient(135deg,#23384b,#101d32);box-shadow:0 6px 0 #071627,0 0 0 2px #103748,0 0 23px #91dfb522;touch-action:none;user-select:none}.gx-neon .nl-cell{display:flex;align-items:center;justify-content:center;padding:0;min-height:44px;min-width:44px;border:2px solid #527285;border-radius:10px;background:linear-gradient(140deg,#385a71,#18364c);color:#d4f8e8;font-size:clamp(20px,3.8vw,32px);line-height:1;box-shadow:inset 0 2px 0 #95b8c238,0 3px 0 #071c31;opacity:1;cursor:default}.gx-neon .nl-cell:not(:disabled){cursor:pointer}.gx-neon .nl-cell:disabled{opacity:1}.gx-neon .nl-cell.lit{border-color:#fff2b5;background:linear-gradient(145deg,#fff2bf,#ebaa62);color:#7c5027;box-shadow:0 0 18px #ffd38a70,inset 0 0 8px #ffefc4}.gx-neon .nl-cell.selected{border-color:#c3ffe5;background:linear-gradient(145deg,#5a9b90,#29697a);color:#d1ffe9;box-shadow:inset 0 0 0 2px #0f3f4d,0 0 14px #8cffd430}.gx-neon .nl-cell.selected.lit{border-color:#f4e4a6;background:linear-gradient(145deg,#b0efc4,#54a698);color:#174e4a}.gx-neon .nl-cell.locked{border-style:dashed}.gx-neon .nl-cell.wrong{border-color:#ffc1b7;background:#863e50;color:#ffe2d5}.nl-controls{flex:1;display:grid;grid-template-columns:1fr 1fr;align-content:center;gap:9px;min-width:0;background:#11283ee8;padding:16px;border:1px solid #6b8b92;border-radius:10px}.nl-label{grid-column:1/-1;font-size:18px;color:#ffe2b1;line-height:1.4}.nl-hint{grid-column:1/-1;margin:0!important;min-height:20px;font-size:13px;color:#c8ded3;line-height:1.5}.nl-progress{grid-column:1/-1;height:4px;background:#3d596b}.nl-progress i{display:block;height:100%;background:#ffd394}.nl-tools{display:flex;gap:6px;grid-column:1/-1}.nl-tools button{flex:1;font-size:12px;padding:5px 3px}.nl-controls>[data-act=erase],.nl-controls>[data-act=submit],.nl-controls>[data-act=reveal],.nl-controls>[data-act=next]{font-size:13px;white-space:nowrap;padding:8px 5px}.gx-neon .nl-primary{background:linear-gradient(#af6658,#793d49);border-color:#f0b390;color:#fff1d9}.nl-bottom{display:flex;justify-content:space-between;gap:7px;flex-wrap:wrap;padding:7px 14px 2px;font-size:11px;color:#bed5cb}.nl-status{margin:0!important;min-height:30px;padding:1px 14px 8px;color:#c3ddd2;font-size:11px;line-height:1.5}.nl-panel{position:absolute;inset:0;z-index:3;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;justify-content:center;gap:12px;padding:24px;background:linear-gradient(135deg,#214a5dee,#15293af5)}.nl-panel h2{margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;color:#ffdfb0!important;font-size:25px!important;line-height:1.3!important;letter-spacing:0!important}.nl-panel h2:before,.nl-panel h2:after{display:none!important}.nl-panel p{margin:0!important;color:#c7ded1;font-size:13px;line-height:1.6}.nl-modes,.nl-levels,.nl-actions{display:flex;gap:6px;flex-wrap:wrap}.nl-modes button,.nl-levels button{flex:1;font-size:13px;white-space:nowrap;padding:8px 5px}.nl-modes [aria-pressed=true],.nl-levels [aria-pressed=true]{background:#9d5c54;border-color:#ffd19d;color:#fff0d3}.nl-panel>.nl-primary{font-size:18px;min-height:48px}.nl-history{font-size:11px;color:#bdd6c9}.nl-history summary{cursor:pointer}.nl-history p{font-size:11px}.nl-note{font-size:11px!important;color:#b8d1c7!important}.nl-score{font-size:48px;font-weight:900;line-height:1.2;color:#ffdea7}.nl-result-stats{display:flex;gap:14px;flex-wrap:wrap;color:#d8ead9}.nl-actions button{flex:1}.nl-supply{display:grid;grid-template-columns:1fr auto;gap:2px 10px;text-align:left;padding:12px!important}.nl-supply small{grid-column:1;font-size:11px;color:#bdd9cd;font-weight:400}.nl-supply span{grid-column:2;grid-row:1/3;align-self:center;font-size:12px;color:#f9d19d}.nl-shell:fullscreen,.nl-shell.nl-expanded{width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:var(--nl-safe-top) var(--nl-safe-right) var(--nl-safe-bottom) var(--nl-safe-left);margin:0}.nl-expanded{position:fixed;inset:0;z-index:2147483000}.gx-neon.nl-portal{position:relative;max-width:none!important;margin:0!important;z-index:2147483000}.nl-shell:is(:fullscreen,.nl-expanded) .nl-stage{flex:1;min-height:0;align-items:center}.nl-shell:is(:fullscreen,.nl-expanded) .nl-work{justify-content:center;padding:15px 22px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-board{flex-grow:0;width:min(48vw,50vh,400px);max-width:none}.nl-shell:is(:fullscreen,.nl-expanded) .nl-controls{max-width:340px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-brand small{display:none}.nl-shell:is(:fullscreen,.nl-expanded)[data-panel]:not([data-panel='']) :is(.nl-hud,.nl-bottom){display:none}
@media(max-width:580px){.gx-neon{font-size:13px;margin:14px auto}.nl-head{display:block;padding:8px 10px}.nl-brand{display:flex;align-items:baseline;gap:8px}.nl-brand strong{font-size:19px}.nl-brand small{display:none}.nl-top{margin-top:6px;justify-content:flex-end}.nl-top button{font-size:11px;padding:6px 9px}.nl-hud strong{font-size:20px}.nl-stage{min-height:575px}.nl-work{flex-direction:column;gap:12px;padding:95px 12px 14px}.nl-board{flex:0 0 auto;width:100%;max-width:300px;padding:8px;gap:4px;border-width:2px}.gx-neon .nl-cell{border-radius:7px;font-size:25px}.nl-controls{width:100%;padding:9px;gap:6px;flex:0 0 auto;max-width:400px}.nl-label{font-size:15px}.nl-hint{font-size:12px}.nl-controls>.nl-primary{font-size:14px}.nl-panel{padding:18px 12px;gap:11px}.nl-panel h2{font-size:22px!important}.nl-modes button{font-size:12px}.nl-levels button{font-size:12px}.nl-bottom{padding:6px 10px 2px}.nl-status{padding:1px 10px 7px}.nl-score{font-size:40px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-work{padding:8px 12px;gap:9px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-board{width:min(100%,38vh,300px);max-width:300px;min-width:256px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-controls{max-width:400px}}
@media(max-height:700px) and (max-width:559px){.nl-shell:is(:fullscreen,.nl-expanded) .nl-head{display:flex;align-items:center;padding:4px 8px;min-height:52px;gap:4px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-brand strong{font-size:13px;max-width:86px;line-height:1.25}.nl-shell:is(:fullscreen,.nl-expanded) .nl-top{margin:0;gap:3px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-top button{padding:4px;font-size:10px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-hud>div{display:flex;align-items:center;justify-content:center;gap:4px;padding:3px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-hud span{font-size:9px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-hud strong{font-size:17px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-board{width:256px;min-width:256px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-work{padding:4px 10px;gap:5px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-label{display:none}.nl-shell:is(:fullscreen,.nl-expanded) .nl-controls{grid-template-columns:repeat(4,minmax(0,1fr));padding:4px 5px;gap:4px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-hint{font-size:10px;min-height:15px;line-height:1.5}.nl-shell:is(:fullscreen,.nl-expanded) .nl-progress{position:absolute;width:calc(100% - 26px);bottom:2px;height:2px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-tools{display:contents}.nl-shell:is(:fullscreen,.nl-expanded) .nl-tools button{font-size:10px;white-space:normal}.nl-shell:is(:fullscreen,.nl-expanded) .nl-controls>button{font-size:11px;grid-column:span 2;padding:4px}.nl-shell:is(:fullscreen,.nl-expanded)[data-mode=route] .nl-controls>button{grid-column:span 1}.nl-shell:is(:fullscreen,.nl-expanded) .nl-bottom{padding:2px 8px;font-size:10px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-status{padding:1px 8px 3px;font-size:10px;min-height:20px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-panel{gap:8px;padding:14px 10px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-panel h2{font-size:20px!important}}
@media(max-height:520px) and (min-width:560px){.nl-shell:is(:fullscreen,.nl-expanded) .nl-head{display:flex;min-height:55px;height:55px;padding:5px 10px;flex-shrink:0}.nl-shell:is(:fullscreen,.nl-expanded) .nl-brand strong{font-size:17px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-top{margin:0}.nl-shell:is(:fullscreen,.nl-expanded) .nl-hud{position:absolute;top:calc(55px + var(--nl-safe-top));right:var(--nl-safe-right);width:calc(49% - (var(--nl-safe-left) + var(--nl-safe-right)) * .49);z-index:2}.nl-shell:is(:fullscreen,.nl-expanded) .nl-hud>div{padding:3px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-hud span{font-size:9px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-hud strong{font-size:17px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-stage{min-height:0}.nl-shell:is(:fullscreen,.nl-expanded) .nl-work{display:grid;grid-template-columns:49% 51%;align-items:center;padding:6px 8px;gap:0}.nl-shell:is(:fullscreen,.nl-expanded) .nl-board{width:236px;min-width:236px;max-width:236px;justify-self:center;padding:2px;gap:2px;border-width:2px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-controls{padding:41px 9px 6px;margin:0 2px 0 8px;gap:5px;max-width:none}.nl-shell:is(:fullscreen,.nl-expanded) .nl-label{font-size:13px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-hint{font-size:11px;min-height:17px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-tools button{font-size:11px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-controls>button{font-size:12px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-bottom{display:none}.nl-shell:is(:fullscreen,.nl-expanded) .nl-status{position:absolute;width:1px;height:1px;min-height:0;padding:0;overflow:hidden;clip-path:inset(50%)}.nl-shell:is(:fullscreen,.nl-expanded) .nl-panel{justify-content:center;gap:4px;padding:8px 12px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-panel h2{font-size:19px!important}.nl-shell:is(:fullscreen,.nl-expanded) .nl-panel p{font-size:11px;line-height:1.4}.nl-shell:is(:fullscreen,.nl-expanded) .nl-panel>.nl-primary{font-size:15px;min-height:44px}.nl-shell:is(:fullscreen,.nl-expanded) .nl-history{font-size:10px}.nl-shell:is(:fullscreen,.nl-expanded)[data-panel=supply] .nl-panel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:center;gap:8px}.nl-shell:is(:fullscreen,.nl-expanded)[data-panel=supply] .nl-panel :is(h2,p){grid-column:1/-1}.nl-shell:is(:fullscreen,.nl-expanded) .nl-supply{display:flex;flex-direction:column;padding:8px!important}.nl-shell:is(:fullscreen,.nl-expanded) .nl-score{font-size:34px}}
@media(prefers-reduced-motion:reduce){.gx-neon *{animation:none!important;transition:none!important}}

@media(max-height:520px) and (max-width:559px){.nl-shell:is(:fullscreen,.nl-expanded) .nl-board{width:236px;min-width:236px;padding:2px;gap:2px}}
