.game-layout{display:grid;grid-template-areas:"top" "play" "bottom";gap:1rem;width:100%;margin:1.25rem auto 2rem;touch-action:manipulation}.game-top,.game-play,.game-bottom{width:100%;max-width:560px;min-width:0;margin-block:0;margin-inline:auto}.game-top{grid-area:top;display:flex;flex-direction:column;gap:.75rem}.game-play{grid-area:play;display:flex;flex-direction:column;gap:.35rem}.game-bottom{grid-area:bottom;display:flex;flex-direction:column;gap:.75rem}.game-top>section,.game-play>section,.game-bottom>section{margin-block:0}@media(min-width:900px){.game-layout{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);grid-template-areas:"play top" "play bottom";gap:1.5rem 2rem;align-items:start}.game-top,.game-bottom{max-width:none;margin-inline:0}.game-play{max-width:560px;margin-inline:0}}.game-layout.game-layout--single{grid-template-columns:minmax(0,1fr);grid-template-areas:"top" "play" "bottom";gap:1rem}.game-layout.game-layout--single .game-top,.game-layout.game-layout--single .game-play,.game-layout.game-layout--single .game-bottom{max-width:560px;margin-inline:auto}@media(min-width:900px){.game-layout.game-layout--single{max-width:800px;margin-inline:auto}.game-layout.game-layout--single .game-top,.game-layout.game-layout--single .game-play,.game-layout.game-layout--single .game-bottom{max-width:none}}.game-sound-controls{display:flex;gap:.4rem;width:100%}.game-mute{flex:1 1 0;display:inline-flex;align-items:center;justify-content:center;gap:.35rem;min-width:0;margin:0;padding-block:.5rem;font-size:clamp(.76rem,3vw,.86rem)}.game-mute.is-muted{color:var(--pico-muted-color, var(--muted-color))}.game-tabs{display:flex;gap:.4rem;width:100%}.game-tab{flex:1 1 0;min-width:0;margin:0;padding-block:.55rem;font-size:clamp(.78rem,3.2vw,.92rem);font-weight:700;border-radius:var(--pico-border-radius, var(--border-radius, .25rem));background:#f1f5f9;border:1px solid #cbd5e1;color:#1f2937;box-shadow:none}.game-tab.is-active{background:var(--pico-primary-background, var(--primary, #1095c1));border-color:var(--pico-primary-background, var(--primary, #1095c1));color:#fff}html{scrollbar-gutter:stable}.os-layout{width:100%;min-width:0}.os-message{width:100%;max-width:560px;margin:1.5rem auto;padding:1rem;text-align:center;color:var(--pico-muted-color)}.os-message.is-error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:var(--pico-border-radius)}.os-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.35rem;color:var(--pico-muted-color);font-size:clamp(.72rem,2.8vw,.82rem);font-weight:700;letter-spacing:.04em}.os-status{min-height:2.5rem;margin:0;padding:.55rem .85rem;color:#4a3512;font-size:clamp(.78rem,3vw,.9rem);font-weight:700;line-height:1.45;text-align:center;overflow-wrap:anywhere;background:#f6c9452e;border:1px solid rgba(217,154,31,.55);border-radius:2rem}.os-status.is-warn{color:#9a3412;background:#fb923c29;border-color:#fb923c}.os-status.is-success{color:#166534;background:#22c55e24;border-color:#4ade80}.os-stats{display:flex;flex-wrap:wrap;gap:.45rem .9rem;align-items:baseline;color:#4a3512;font-size:clamp(.74rem,2.9vw,.86rem)}.os-stats strong{font-variant-numeric:tabular-nums}.os-best{color:var(--pico-muted-color);font-size:.86em}.os-size-tabs{display:flex;gap:.3rem;width:100%;margin-bottom:.6rem;padding-bottom:.1rem;overflow-x:auto;scrollbar-width:none}.os-size-tabs::-webkit-scrollbar{display:none}.os-size-tab{flex:1 1 0;min-width:0;margin:0;padding:.4rem .25rem;color:#5b431b;font-size:clamp(.66rem,2.6vw,.78rem);font-weight:800;line-height:1.2;background:#f6c94524;border:1px solid rgba(185,121,16,.4);border-radius:.6rem;box-shadow:none}.os-size-tab small{display:block;margin-top:.1rem;font-size:.62em;font-weight:600;opacity:.72;font-variant-numeric:tabular-nums}.os-size-tab.is-active{color:#fff8dc;background:#8a5a12;border-color:#8a5a12}.os-board-wrap{position:relative;width:100%;max-width:560px;margin-inline:auto;aspect-ratio:1 / 1;min-width:0}.os-board-host{position:absolute;inset:0;display:block;overflow:hidden;border-radius:1.6rem;outline:none;touch-action:none;cursor:crosshair;box-shadow:0 1px #fff1c840 inset,0 -10px 24px #78480c4d inset,0 16px 36px #1e140547}.os-board-host:focus-visible{outline:3px solid #2563eb;outline-offset:4px}.os-board-host .os-board{display:block;width:100%;height:100%;border-radius:inherit;pointer-events:none}.os-board-host .os-board-select{pointer-events:auto;cursor:default}.os-panel{filter:drop-shadow(0 2px 0 rgba(120,72,12,.32))}.os-block{fill:#221404;stroke:#3a2410;stroke-width:2}.os-diamond{fill:#a9f2dd;stroke:#e8fff8;stroke-width:4;filter:url(#os-soft-glow)}.os-diamond-core{fill:#5fc9ad}.os-required.is-hit .os-diamond{fill:#fff;stroke:#fff}.os-required.is-hit .os-diamond-core{fill:#bff3e2}.os-start{animation:os-blink-blue 2.2s ease-in-out infinite}.os-goal{animation:os-blink-red 2.2s ease-in-out infinite;animation-delay:1.1s}.os-start-ring{fill:none;stroke:#bfe9ff;stroke-width:5;opacity:.95}.os-start-core{fill:#8fd4ff}.os-start-label{font-family:var(--pico-font-family-sans);font-size:30px;font-weight:800;fill:#0b3a5a}.os-goal-ring{fill:none;stroke:#ffc2c2;stroke-width:5}.os-goal-ring2{fill:none;stroke:#ff9d9d;stroke-width:3;opacity:.9}.os-goal-core{fill:#ff9d9d}.os-goal-label{font-family:var(--pico-font-family-sans);font-size:30px;font-weight:800;fill:#5a1414}@keyframes os-blink-blue{0%,to{opacity:1}50%{opacity:.52}}@keyframes os-blink-red{0%,to{opacity:1}50%{opacity:.52}}.os-tip{fill:#fff6d8;filter:url(#os-soft-glow);transform-box:fill-box;transform-origin:center;animation:os-pulse 1.2s ease-in-out infinite}@keyframes os-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.55;transform:scale(.85)}}.os-level{cursor:pointer}.os-level.is-locked{cursor:not-allowed}.os-level-bg{fill:#f7e3a8;stroke:#5a340873;stroke-width:2}.os-level.is-cleared .os-level-bg{fill:#7fd6b8;stroke:#2f8f6f}.os-level.is-locked .os-level-bg{fill:#1e12068c;stroke:#fff6d824}.os-level.is-current .os-level-bg{stroke:#fff6d8;stroke-width:5;filter:url(#os-soft-glow)}.os-level-num{font-family:var(--pico-font-family-sans);font-size:30px;font-weight:800;fill:#2f220d;pointer-events:none}.os-level.is-locked .os-level-num{fill:#8a7a5a}.os-level-check{font-family:var(--pico-font-family-sans);font-size:20px;font-weight:900;fill:#14523f;pointer-events:none}.os-level-lock{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:24px;pointer-events:none}.os-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:1rem;background:#0e090394;border-radius:1.6rem}.os-start-card,.os-clear-card{width:min(100%,22rem);padding:1.15rem;color:#2f220d;background:radial-gradient(circle at 80% 0%,rgba(255,245,210,.55),transparent 45%),linear-gradient(160deg,#fff8dc,#f2cf70);border:1px solid rgba(120,72,12,.35);border-radius:1rem;box-shadow:0 14px 30px #140c0259}.os-kicker{margin:0 0 .25rem;color:#8a5a12;font-size:.7rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.os-start-card h2,.os-clear-card h2{margin:0 0 .55rem;color:#2f220d;font-size:clamp(1.15rem,5vw,1.45rem)}.os-start-card ul{margin:0 0 .85rem;padding-left:1.1rem;color:#4a3512;font-size:clamp(.72rem,2.8vw,.82rem);line-height:1.6}.os-start-card li+li{margin-top:.15rem}.os-start-button,.os-clear-button{display:block;width:100%;margin:0;padding:.65rem .8rem;color:#2f220d;font-size:clamp(.9rem,3.6vw,1.02rem);font-weight:800;background:#ffe27a;border:1px solid #b97910;border-radius:.75rem;box-shadow:0 5px #b97910}.os-start-button:hover,.os-clear-button:hover{background:#fff0a6}.os-start-button:active,.os-clear-button:active{transform:translateY(2px);box-shadow:0 3px #b97910}.os-start-button small{display:block;margin-top:.12rem;font-size:.64rem;font-weight:400;opacity:.75}.os-countdown-overlay{background:#0a0704}.os-countdown-text{color:#fff6d8;font-size:clamp(3.4rem,16vw,6rem);font-weight:900;line-height:1;white-space:nowrap;text-shadow:0 0 24px rgba(255,246,216,.6),0 6px 0 rgba(90,52,8,.45)}.os-go-overlay{background:transparent;pointer-events:none}.os-go-text{color:#fff6d8;font-size:clamp(2.6rem,12vw,5rem);font-weight:900;line-height:1;white-space:nowrap;text-shadow:0 0 26px rgba(255,246,216,.8),0 6px 0 rgba(90,52,8,.45);animation:os-go-pop .7s ease-out}@keyframes os-go-pop{0%{opacity:0;transform:scale(.7)}40%{opacity:1;transform:scale(1.06)}to{opacity:1;transform:scale(1)}}.os-clear-time{margin:0 0 .35rem;font-size:clamp(.82rem,3.2vw,.95rem)}.os-clear-note{margin:0 0 .85rem;color:#6b4a16;font-size:.76rem}.os-clear-actions{display:flex;flex-direction:column;gap:.5rem}.os-clear-actions .outline.secondary{width:100%;margin:0;font-weight:700}.os-clear-actions .outline.secondary:disabled{opacity:.45;cursor:not-allowed}.game-sound-controls{margin-bottom:.55rem}.os-actions{display:flex;gap:.5rem;width:100%}.os-actions button{flex:1 1 0;min-width:0;margin:0;padding-block:.55rem;font-size:clamp(.78rem,3vw,.88rem);font-weight:700}.os-help{margin:0;padding:.85rem 1rem;background:#f6c9451a;border:1px solid rgba(217,154,31,.35);border-radius:var(--pico-border-radius)}.os-help h3{margin:0 0 .4rem;font-size:clamp(.9rem,3.4vw,1rem)}.os-help ul{margin:0;padding-left:1.1rem;color:#5b431b;font-size:clamp(.72rem,2.8vw,.82rem);line-height:1.65}.os-help li+li{margin-top:.2rem}.os-note{margin:.5rem 0 0;color:var(--pico-muted-color);font-size:clamp(.68rem,2.6vw,.76rem);line-height:1.5}@media(min-width:900px){.os-board-wrap{max-width:560px}}@media(prefers-reduced-motion:reduce){.os-tip,.os-start,.os-goal,.os-go-text{animation:none}}
