.butterfly-page .page-intro{padding-bottom:1.6rem}.butterfly-page .page-intro h1{max-width:900px;font-size:clamp(2rem,4vw,3.7rem)}.butterfly-game{background:#fffaf1;border:2px solid #dfddcd;border-radius:24px;overflow:hidden;box-shadow:0 14px 38px #304f2620}.game-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;flex-wrap:wrap}.game-toolbar strong{display:block;font-size:1.1rem}.game-round{font-size:.8rem;text-transform:uppercase;letter-spacing:.08em}.game-score{font-size:1.6rem;white-space:nowrap;color:#314e42}.game-score progress{display:block;width:150px;height:9px;accent-color:#669970}.game-tools{display:flex;flex-wrap:wrap;gap:6px}.game-tools button,.game-reset,.game-help button{border:1px solid #c9cfb7;border-radius:12px;padding:8px 12px;background:#fffdf6;color:#304939;font:inherit;cursor:pointer}.game-tools button[aria-pressed=true]{background:#e1efc7}.game-tools button:disabled{opacity:.5}.game-stage{position:relative;line-height:0;background:#def2ba;aspect-ratio:8/5}.game-stage canvas{width:100%;height:100%;display:block;touch-action:none;outline-offset:-5px}.game-stage canvas:focus-visible{outline:4px solid #88662c}.game-overlay{position:absolute;inset:0;display:grid;place-items:center;background:#334b3740;line-height:1.5;padding:14px}.game-overlay[hidden]{display:none}.game-dialog{max-width:410px;text-align:center;background:#fffaf2ee;border:2px solid #fff;border-radius:25px;padding:24px;box-shadow:0 12px 30px #223c3324}.game-dialog h2{font-size:1.8rem;line-height:1.15;margin:12px 0}.game-dialog p{margin:14px 0}.game-reset{display:block;margin:12px auto 0;font-size:.85rem}.game-reset[hidden]{display:none}.game-joystick{position:absolute;width:100px;height:100px;border:3px solid #ffffffaa;border-radius:50%;bottom:18px;left:18px;background:#fff9;touch-action:none;display:none;line-height:0}.game-joystick span{position:absolute;width:44px;height:44px;left:25px;top:25px;border-radius:50%;background:#f8bd3f;border:3px solid #fff;box-shadow:0 3px 10px #314f3330;pointer-events:none}.game-message{margin:0;padding:12px 20px;min-height:48px;background:#f5f4e5;color:#304939;font-weight:600}.game-help{display:grid;grid-template-columns:1fr 1fr;gap:30px;padding:35px 0}.game-help h2{font-size:1.4rem}.game-help button{font-size:.8rem}.butterfly-game:fullscreen{display:flex;flex-direction:column;width:100%;height:100%;border:0;border-radius:0;background:#fffaf1}.butterfly-game:fullscreen .game-stage{flex:1;min-height:0;aspect-ratio:auto}.butterfly-game:fullscreen canvas{object-fit:contain}.butterfly-game:fullscreen .game-toolbar{padding:8px 16px}.butterfly-game:fullscreen .game-message{min-height:0;padding:6px 16px}@media(pointer:coarse){.game-joystick{display:block}}@media(max-width:650px){.game-toolbar{padding:10px;gap:8px}.game-toolbar strong{font-size:.9rem}.game-score{font-size:1.25rem}.game-score progress{width:110px}.game-tools{width:100%}.game-tools button{font-size:.75rem;padding:7px 9px}.game-dialog{padding:14px;max-width:340px}.game-dialog h2{font-size:1.3rem;margin:6px 0}.game-dialog p{font-size:.85rem;margin:6px 0}.game-dialog .button{padding:9px 15px}.game-help{grid-template-columns:1fr;gap:8px}.game-joystick{width:78px;height:78px;bottom:8px;left:8px}.game-joystick span{width:34px;height:34px;left:19px;top:19px}.game-message{font-size:.85rem}.game-stage{aspect-ratio:8/6}}@media(prefers-reduced-motion:reduce){.butterfly-game *{scroll-behavior:auto}}
.game-stage canvas{object-fit:contain}
@media(max-height:500px) and (orientation:landscape){.game-toolbar{padding:5px 10px;gap:8px;flex-wrap:nowrap}.game-toolbar strong{font-size:.8rem}.game-round{font-size:.65rem}.game-score{font-size:1.1rem}.game-score progress{width:80px;height:6px}.game-tools{width:auto;flex-wrap:nowrap;gap:4px}.game-tools button{font-size:.7rem;padding:6px}.game-stage{height:calc(100svh - 94px);aspect-ratio:auto}.game-message{min-height:0;font-size:.75rem;padding:5px 10px}.game-dialog{padding:10px}.game-dialog h2{font-size:1.25rem;margin:4px 0}.game-dialog p{font-size:.85rem;margin:6px 0}.game-dialog .button{padding:8px 16px}.game-joystick{width:78px;height:78px;bottom:8px;left:8px}.game-joystick span{width:34px;height:34px;left:19px;top:19px}}
.butterfly-game{scroll-margin-top:0}
