:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,sans-serif;color:#202422;background:#eceeea;font-synthesis:none;text-rendering:optimizeLegibility;letter-spacing:0;--ink: #202422;--muted: #68706c;--line: #bcc3be;--paper: #f7f7f3;--teal: #1f8176;--teal-dark: #145f58;--coral: #d8574e;--yellow: #d6a832}*{box-sizing:border-box;letter-spacing:0}body{min-width:320px;min-height:100vh;min-height:100dvh;margin:0;background:#eceeea}button{font:inherit}button:focus-visible{outline:3px solid #20a594;outline-offset:3px}button:disabled{cursor:not-allowed;opacity:.46}[hidden]{display:none!important}.blast-shell{width:min(1080px,100%);min-height:100dvh;margin:0 auto;padding:0 26px 34px}.topbar{min-height:68px;display:grid;grid-template-columns:44px minmax(0,1fr) auto 44px;align-items:center;gap:13px;border-bottom:1px solid var(--line)}.brand-copy{min-width:0;display:flex;align-items:baseline;gap:10px}.brand-copy strong{font-size:1.05rem;white-space:nowrap}.brand-copy span,.board-meta,.feedback,.inventory-button small{color:var(--muted)}.brand-copy span{overflow:hidden;font-size:.72rem;text-overflow:ellipsis;white-space:nowrap}.top-status{display:flex;align-items:center;gap:10px;font-size:.76rem;font-weight:760}.target-count{min-width:45px;display:inline-flex;align-items:center;justify-content:center;gap:5px;color:#2e4e49}.target-count svg{width:16px;height:16px;color:var(--coral)}.play-layout{display:grid;grid-template-columns:minmax(440px,620px) minmax(280px,340px);justify-content:center;align-items:start;gap:clamp(30px,5vw,64px);padding-top:30px}.board-section,.control-section{min-width:0}.board-meta{height:25px;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:.68rem;font-weight:760;text-transform:uppercase}.board-wrap{position:relative;width:100%;aspect-ratio:1;overflow:hidden;border:2px solid #242a27;border-radius:6px;background:#191d1c;box-shadow:0 15px 32px #161c1929;touch-action:none}.board-wrap canvas{position:absolute;inset:0;width:100%!important;height:100%!important;pointer-events:none}.board-grid{position:absolute;z-index:2;inset:3%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(5,minmax(0,1fr))}.board-cell-input{min-width:0;min-height:0;width:100%;height:100%;padding:0;border:0;border-radius:0;background:transparent;cursor:pointer}.board-cell-input:focus-visible{outline:4px solid #fff;outline-offset:-7px;box-shadow:inset 0 0 0 8px #177f74}.board-cell-input:disabled{opacity:1}.feedback{min-height:24px;margin:10px 2px 0;font-size:.76rem;font-weight:650}.control-section{margin-top:25px;padding-left:30px;border-left:1px solid var(--line)}.section-row{display:flex;justify-content:space-between;align-items:center;gap:16px}.eyebrow{margin:0 0 4px;color:#747b77;font-size:.68rem;font-weight:780;text-transform:uppercase}.section-row h1,.result-dialog h2{margin:0;line-height:1.1}.section-row h1{font-size:1.35rem}.utility-actions,.access-toolbar,.tool-tray,.action-bar{display:flex;align-items:center}.utility-actions{gap:7px}.inventory{display:grid;gap:8px;margin-top:22px}.inventory-button{min-height:66px;display:grid;grid-template-columns:40px minmax(0,1fr) 32px;align-items:center;gap:11px;padding:9px 12px;border:1px solid #aeb6b1;border-radius:6px;color:var(--ink);background:var(--paper);cursor:pointer;text-align:left;transition:border-color .12s ease,box-shadow .12s ease,background .12s ease}.inventory-button:hover:not(:disabled),.inventory-button.is-selected{border-color:var(--teal);box-shadow:inset 4px 0 0 var(--teal);background:#f1f8f5}.inventory-button>span:nth-child(2){min-width:0;display:grid;gap:2px}.inventory-button strong{font-size:.86rem}.inventory-button small{font-size:.68rem}.inventory-button em{width:30px;height:30px;display:grid;place-items:center;border:1px solid #89928d;border-radius:50%;font-size:.8rem;font-style:normal;font-weight:800;font-variant-numeric:tabular-nums}.inventory-icon{position:relative;width:40px;height:40px;display:grid;place-items:center;border:2px solid #34403b;border-radius:50%;color:#f7f7f3;background:#34403b}.inventory-icon svg{width:22px;height:22px}.standard-mark b{position:absolute;right:-3px;bottom:-5px;color:var(--yellow);font-size:1.1rem}.tool-tray{min-height:62px;justify-content:center;gap:7px;margin-top:14px;padding:8px 0;border-top:1px solid #ccd1cd;border-bottom:1px solid #ccd1cd}.icon-button,.tool-button,.setting-button{display:inline-grid;place-items:center;padding:0;border:1px solid #9ca59f;border-radius:5px;color:#303633;background:transparent;cursor:pointer}.icon-button{width:44px;height:44px}.speed-button{grid-template-columns:auto auto;gap:2px;width:53px;font-size:.66rem;font-weight:800}.tool-button{width:48px;height:46px}.setting-button{width:44px;height:44px}.icon-button:hover:not(:disabled),.tool-button:hover:not(:disabled),.setting-button:hover:not(:disabled),.tool-button.is-active,.setting-button[aria-pressed=true]{border-color:var(--teal);color:var(--teal-dark);background:#e8f4f0}.tool-button.danger:hover:not(:disabled){border-color:var(--coral);color:#a93e37;background:#faece9}.icon-button svg,.tool-button svg,.setting-button svg{width:19px;height:19px}.action-bar{min-height:66px;gap:9px;margin-top:12px}.hint-button,.execute-button{min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 15px;border-radius:5px;cursor:pointer;font-weight:780}.hint-button{border:1px solid #b79029;color:#6b5215;background:#fbf1cf}.hint-button.is-active{color:#1e2421;background:#e6bc49}.execute-button{min-width:114px;margin-left:auto;border:1px solid var(--teal-dark);color:#fff;background:var(--teal);box-shadow:0 4px 0 var(--teal-dark)}.execute-button:hover:not(:disabled){background:#187267}.execute-button:active:not(:disabled){transform:translateY(2px);box-shadow:0 2px 0 var(--teal-dark)}.hint-button svg,.execute-button svg{width:18px;height:18px}.access-toolbar{gap:7px;padding-top:18px;border-top:1px solid #ccd1cd}.tooltip{position:relative}.tooltip:after{content:attr(data-tooltip);position:absolute;z-index:10;right:0;bottom:calc(100% + 7px);width:max-content;max-width:130px;padding:5px 7px;border-radius:4px;color:#fff;background:#202422;font-size:.66rem;opacity:0;pointer-events:none;transform:translateY(3px);transition:opacity .12s ease,transform .12s ease}.tooltip:hover:after,.tooltip:focus-visible:after{opacity:1;transform:translateY(0)}.result-backdrop{position:fixed;z-index:30;inset:0;display:grid;place-items:center;padding:18px;background:#121614c2}.result-dialog{width:min(360px,100%);padding:30px 26px 28px;border:1px solid #aeb6b1;border-radius:7px;background:var(--paper);box-shadow:0 22px 58px #00000047;text-align:center}.result-icon{width:54px;height:54px;display:grid;place-items:center;margin:0 auto 16px;border:2px solid #303633;border-radius:50%;color:#303633;background:#e3b744}.result-dialog h2{font-size:1.8rem}.result-dialog>p:not(.eyebrow){margin:15px 0 22px;color:var(--muted)}.result-dialog .execute-button{margin:0 auto}.high-contrast{--ink: #000;--muted: #171717;--line: #000;--paper: #fff;--teal: #006e65;--teal-dark: #003e39;--coral: #d00000;--yellow: #b07c00}.high-contrast body{color:#000;background:#fff}.high-contrast .inventory-button,.high-contrast .control-section,.high-contrast .topbar,.high-contrast .tool-tray,.high-contrast .access-toolbar{border-color:#000}.high-contrast .inventory-button.is-selected{background:#dffffa}@media(max-width:800px){.blast-shell{padding:0 12px 28px}.topbar{min-height:60px;gap:8px}.brand-copy{display:grid;gap:1px}.brand-copy strong{font-size:.92rem}.brand-copy span{font-size:.62rem}.top-status{display:grid;justify-items:end;gap:1px;font-size:.68rem}.play-layout{grid-template-columns:minmax(0,1fr);gap:12px;padding-top:10px}.control-section{margin-top:0;padding:16px 0 0;border-top:1px solid var(--line);border-left:0}.section-row h1{font-size:1.14rem}.inventory{grid-template-columns:1fr 1fr;margin-top:12px}.inventory-button{min-height:60px;grid-template-columns:34px minmax(0,1fr) 27px;gap:7px;padding:7px 8px}.inventory-icon{width:34px;height:34px}.inventory-button em{width:27px;height:27px}.tool-tray{min-height:56px;margin-top:10px}.action-bar{min-height:58px;margin-top:7px}.access-toolbar{padding-top:12px}}@media(max-width:370px){.brand-copy span,.inventory-button small{display:none}.inventory-button strong{font-size:.76rem}.hint-button,.execute-button{padding:0 10px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important}}.reduced-motion *,.reduced-motion *:before,.reduced-motion *:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}.loading-screen{min-height:100dvh;display:grid;place-content:center;justify-items:center;gap:8px}.loading-screen span,.select-footer span{color:var(--muted);font-size:.72rem}.loading-mark{width:58px;height:58px;display:grid;place-items:center;border:2px solid var(--ink);border-radius:50%;background:var(--yellow)}.level-select-screen{width:min(920px,100%);min-height:100dvh;margin:0 auto;padding:44px 28px 32px}.select-header{display:flex;align-items:start;justify-content:space-between;gap:20px;padding-bottom:22px;border-bottom:1px solid var(--line)}.select-header h1{margin:0;font-size:clamp(2rem,5vw,3.3rem);line-height:1}.select-header>div>p:last-child{margin:10px 0 0;color:var(--muted);font-weight:700}.profile-notice{margin:16px 0 0;padding:11px 13px;border-left:4px solid var(--yellow);color:#4f421e;background:#fff7dc;font-size:.78rem}.level-grid{display:grid;grid-template-columns:repeat(5,minmax(92px,1fr));gap:9px;margin-top:22px}.level-button{position:relative;min-width:0;min-height:92px;display:grid;align-content:center;justify-items:start;gap:4px;padding:13px;border:1px solid #aeb6b1;border-radius:6px;color:var(--ink);background:var(--paper);cursor:pointer;text-align:left}.level-button>span{font-size:1.45rem;font-weight:850;font-variant-numeric:tabular-nums}.level-button small{color:var(--muted);font-size:.66rem;font-weight:700}.level-button svg{position:absolute;top:12px;right:12px;width:16px;height:16px}.level-button[data-state=available]{border-color:var(--teal);box-shadow:inset 0 -4px 0 var(--teal)}.level-button[data-state=completed]{border-color:#9b7a1f;background:#fff7dc;box-shadow:inset 0 -4px 0 var(--yellow)}.level-button[data-state=unavailable]{opacity:.68}.select-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.select-footer>div{display:grid;gap:3px;font-size:.76rem}.settings-shortcut{margin-left:auto}.modal-backdrop{position:fixed;z-index:28;inset:0;display:grid;place-items:center;padding:18px;background:#121614c2}.settings-backdrop{z-index:32}.modal-dialog{width:min(380px,100%);padding:26px;border:1px solid #aeb6b1;border-radius:7px;background:var(--paper);box-shadow:0 22px 58px #00000047}.modal-dialog h2{margin:0 0 20px;font-size:1.65rem}.pause-dialog,.result-actions{display:grid;gap:9px}.pause-dialog h2{margin-bottom:12px}.settings-dialog header{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:12px}.setting-row{min-height:55px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #d6dad7;cursor:pointer}.setting-row>span{display:inline-flex;align-items:center;gap:10px}.setting-row svg{width:19px;height:19px}.setting-row input{width:44px;height:24px;accent-color:var(--teal)}.capability-status{margin:7px 0 4px;color:var(--muted);font-size:.7rem}.secondary-command{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 14px;border:1px solid #8f9892;border-radius:5px;color:var(--ink);background:var(--paper);cursor:pointer;font-weight:760}.secondary-command svg{width:18px;height:18px}.full-command,.result-actions .execute-button,.result-actions .secondary-command{width:100%;margin:0}.save-status{margin:8px 0!important;color:#9a302a!important;font-size:.76rem}.result-actions{margin-top:20px}@media(max-width:800px){.level-select-screen{padding:24px 14px}.level-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.level-button{min-height:72px;padding:9px}.level-button>span{font-size:1.1rem}.level-button svg{top:9px;right:9px}.select-footer{align-items:stretch}}
