:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#ecf5eb;background:#0d1c19;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}html,body,#app{min-width:320px;min-height:100%;margin:0}body{min-height:100vh;overflow-x:hidden;background:#0d1c19}button{font:inherit}.game-shell{width:min(1480px,100%);min-height:100vh;margin:0 auto;padding:22px clamp(14px,3vw,42px) 28px}.topbar{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}.brand-kicker,.panel-kicker{color:#8fb9a5;font-size:11px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}.brand h1{margin:5px 0 0;font-family:Georgia,serif;font-size:clamp(26px,4vw,42px);font-weight:600;letter-spacing:0}.brand h1 span{color:#edc46a}.level-meta{color:#aac0b4;text-align:right;font-size:13px}.level-meta strong{display:block;color:#f0f5e9;font-size:15px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}.stage-card{position:relative;min-width:0;overflow:hidden;border:1px solid #28483b;border-radius:8px;background:#122a24;box-shadow:0 22px 70px #00000040}.stage-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 17px;border-bottom:1px solid #28483b;background:#16352d}.stage-header strong{font-size:14px}.status-pill{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border:1px solid #3b6654;border-radius:999px;color:#bfe6cc;background:#1d4739;font-size:12px;font-weight:700}.canvas-wrap{position:relative;width:100%;aspect-ratio:16 / 9;min-height:300px;background:#19352e}.canvas-wrap canvas{display:block;width:100%;height:100%;touch-action:none}.canvas-hint{position:absolute;right:16px;bottom:14px;pointer-events:none;color:#e2f3ddad;font-size:11px}.sidebar{display:grid;gap:12px}.panel{border:1px solid #28483b;border-radius:8px;background:#142b25}.panel-content{padding:16px}.panel h2{margin:5px 0 12px;color:#f0f5e9;font-size:19px;font-weight:700}.goal-copy{margin:0;color:#b6cbbd;font-size:13px;line-height:1.55}.goal-progress{display:flex;align-items:center;justify-content:space-between;margin-top:16px;color:#e9f2e4;font-size:13px;font-weight:700}.progress-track{height:7px;margin-top:8px;overflow:hidden;border-radius:99px;background:#2a493e}.progress-value{width:0;height:100%;border-radius:inherit;background:#edc46a;transition:width .25s ease}.inventory{display:grid;gap:8px}.inventory-item{display:flex;align-items:center;justify-content:space-between;min-height:45px;padding:8px 10px;border:1px solid #315446;border-radius:6px;background:#19382f}.inventory-item button{flex:1;display:flex;align-items:center;gap:9px;padding:0;border:0;color:#eaf4e7;background:transparent;text-align:left;cursor:grab}.inventory-item button:disabled{cursor:not-allowed;opacity:.42}.item-icon{display:grid;width:26px;height:26px;place-items:center;border-radius:5px;color:#152b22;background:#edc46a;font-weight:900}.item-name{font-size:13px;font-weight:700}.item-hint{display:block;margin-top:2px;color:#8eada0;font-size:10px;font-weight:500}.item-count{min-width:28px;color:#edc46a;font-weight:800;text-align:right}.controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}.button{display:inline-flex;min-height:44px;align-items:center;justify-content:center;gap:7px;padding:0 13px;border:1px solid #3e6453;border-radius:6px;color:#eaf5e8;background:#21463a;font-weight:800;cursor:pointer;transition:background .15s ease,transform .15s ease,border-color .15s ease}.button:hover:not(:disabled){border-color:#73a488;background:#2a5948}.button:active:not(:disabled){transform:translateY(1px)}.button:disabled{cursor:not-allowed;opacity:.4}.button-primary{border-color:#d5a94e;color:#1f2d21;background:#edc46a}.button-primary:hover:not(:disabled){border-color:#f4d994;background:#f2d17f}.button-danger{color:#ffd5c8;background:#4c2f2d}.button-wide{width:100%;margin-top:8px}.selection-tools,.utility-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.hint-copy{margin:10px 0 0;padding:9px 10px;border-left:3px solid #edc46a;color:#dce9cf;background:#1c382f;font-size:12px;line-height:1.45}.selection-label{min-height:30px;color:#98b4a4;font-size:12px;line-height:1.45}.result-panel{border-color:#8f6d31;background:#332b1d}.result-panel.success{border-color:#6a9f75;background:#1d382b}.result-panel h2{margin-bottom:7px}.result-panel p{margin:0;color:#d6e5d4;font-size:13px;line-height:1.5}.star-result{margin-top:12px!important;color:#f2d17f!important;font-size:17px!important;font-weight:800;letter-spacing:.08em}.level-list{display:grid;gap:6px}.level-button{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:7px;min-height:42px;padding:7px 9px;border:1px solid #315446;border-radius:6px;color:#dce9cf;background:#19382f;text-align:left;cursor:pointer}.level-button:hover:not(:disabled),.level-button.active{border-color:#d5a94e;background:#25483a}.level-button:disabled{cursor:not-allowed;opacity:.42}.level-button span{color:#8fb9a5;font-size:11px;font-weight:800}.level-button strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.level-button em{color:#edc46a;font-size:11px;font-style:normal;white-space:nowrap}.hidden{display:none!important}.loading-screen,.error-screen{display:grid;min-height:100vh;place-items:center;align-content:center;gap:8px;color:#b6cbbd}.error-screen{text-align:center}.error-screen h1{margin:0;color:#f0f5e9}.error-screen p{margin:0 0 10px}.error-mark{display:grid;width:52px;height:52px;place-items:center;border-radius:50%;color:#251b17;background:#edc46a;font-size:28px;font-weight:900}@media(max-width:900px){.workspace{grid-template-columns:1fr}.sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar .panel:first-child{grid-column:1 / -1}}@media(max-width:560px){.game-shell{padding:14px 10px 20px}.topbar{align-items:flex-start}.level-meta{display:none}.stage-header{padding:11px 12px}.canvas-wrap{min-height:220px}.canvas-hint{display:none}.sidebar{grid-template-columns:1fr}.sidebar .panel:first-child{grid-column:auto}.panel-content{padding:13px}.button{min-height:46px}}
