:root{color:#1f2937;font-synthesis:none;text-rendering:optimizelegibility;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body{min-height:100%}body{background:#eef3f4;justify-content:center;align-items:center;min-height:100svh;margin:0;display:flex;overflow:hidden}button{font:inherit}#app{aspect-ratio:1180/620;width:min(100vw - 24px,190.3svh - 45.672px,1180px);max-width:1180px;position:relative}#game-canvas{aspect-ratio:1180/620;cursor:grab;touch-action:none;background:#e5eef0;border:1px solid #1f293729;border-radius:8px;width:100%;height:100%;display:block;box-shadow:0 18px 54px #1f293729}#game-canvas:active{cursor:grabbing}.level-select-button{color:#fff;cursor:pointer;z-index:2;background:#264653;border:0;border-radius:8px;min-height:42px;padding:0 18px;font-weight:800;position:absolute;top:16px;right:16px;box-shadow:0 8px 20px #1118272e}.level-overlay{z-index:6;background:#18252d94;border-radius:8px;justify-content:center;align-items:center;padding:24px;display:none;position:absolute;inset:0}.level-overlay.is-visible{display:flex}.level-dialog{background:#fffdf7;border:1px solid #1f29371f;border-radius:8px;flex-direction:column;gap:18px;width:min(760px,100%);max-height:min(560px,100svh - 48px);padding:22px;display:flex;box-shadow:0 22px 60px #11182747}.level-dialog-header{justify-content:space-between;align-items:start;gap:16px;display:flex}.level-dialog h1{margin:0 0 8px;font-size:1.75rem;line-height:1}.level-dialog p{margin:0;font-size:.95rem;font-weight:800}.level-close-button,.level-tile{cursor:pointer;border:0;border-radius:8px;font-weight:800}.level-close-button{color:#fff;background:#264653;min-height:40px;padding:0 16px}.level-grid{grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:8px;min-height:0;padding-right:4px;display:grid;overflow:auto}.level-tile{aspect-ratio:1;color:#14532d;background:#e7f7ef;border:1px solid #1f29371f;min-width:0}.level-tile.is-current{color:#3f2f00;background:#f5b700;outline:3px solid #f5b70047}.level-tile:disabled{color:#6b7280;cursor:not-allowed;opacity:.62;background:#e5e7eb}.level-select-button:focus-visible,.level-close-button:focus-visible,.level-tile:focus-visible{outline-offset:3px;outline:3px solid #f5b700}.win-overlay{z-index:5;background:#18252d94;border-radius:8px;justify-content:center;align-items:center;padding:24px;display:none;position:absolute;inset:0}.win-overlay.is-visible{display:flex}.win-dialog{color:#1f2937;text-align:center;background:#fffdf7;border:1px solid #1f29371f;border-radius:8px;width:100%;max-width:min(360px,100%);padding:30px;box-shadow:0 22px 60px #11182747}.win-dialog h1{margin:0 0 14px;font-size:clamp(2rem,7vw,3.5rem);line-height:1}.win-dialog p{margin:0 0 24px;font-size:1.2rem;font-weight:700}.win-actions{flex-wrap:wrap;justify-content:center;gap:10px;display:flex}.win-dialog button{color:#fff;cursor:pointer;background:#e84f3d;border:0;border-radius:8px;min-height:46px;padding:0 24px;font-weight:800}.win-dialog button+button{background:#264653}.win-dialog button:focus-visible{outline-offset:3px;outline:3px solid #f5b700}
