:root{color-scheme:light;--ink:#263332;--muted:#667572;--line:#dce9e4;--mint-deep:#2f8f70;font-family:"Hiragino Kaku Gothic ProN","Yu Gothic","Meiryo",system-ui,sans-serif;color:var(--ink)}*{box-sizing:border-box}html,body{min-width:0;margin:0}body{background:linear-gradient(180deg,#fff,#f8fcfa);font-size:16px;line-height:1.8}a{color:inherit}button{font:inherit;min-height:44px;cursor:pointer;touch-action:manipulation}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #67bba0;outline-offset:3px}[hidden]{display:none!important}.stack-page{width:min(1120px,calc(100% - 32px));margin:auto;padding:10px 0 42px}.breadcrumb{display:flex;flex-wrap:wrap;gap:7px;color:var(--muted);font-size:12px}.breadcrumb a{text-decoration:none}.stack-hero{padding:12px 0 20px}.series-label{margin:0 0 4px;color:var(--mint-deep);font-size:.78rem;font-weight:800;letter-spacing:.12em}h1{margin:0;font-size:clamp(28px,5vw,42px);line-height:1.2}.stack-hero>p:last-child{margin:8px 0 0;color:#3f504d}.game-shell,.info-section article,.related-section{border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 10px 28px #2a574a12}.game-shell{width:min(880px,100%);margin:auto;padding:12px}.game-stage{position:relative;isolation:isolate;width:100%;height:540px;overflow:hidden;border:1px solid #d4e8e1;border-radius:8px;background:#edf8f4}#game-canvas{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none}.score-bar{position:absolute;z-index:3;top:10px;left:10px;right:104px;display:flex;gap:18px;min-height:54px;padding:6px 10px;background:#fffffff2;border:1px solid #cbe5dc;border-radius:10px}.score-item{min-width:0;display:grid}.score-item span{font-size:10px;color:var(--muted);white-space:nowrap}.score-item strong{font-size:17px;line-height:1.2;font-variant-numeric:tabular-nums}.fullscreen-button{position:absolute;top:10px;right:10px;z-index:5;width:84px;border:1px solid #c8e3da;border-radius:10px;background:#fff;color:#246b5b;font-weight:700;font-size:13px}.route-controls{position:absolute;z-index:4;top:76px;left:10px;right:10px;display:flex;gap:8px}.route-controls button{flex:1;min-width:0;padding:6px;border:1px solid #b3d7c9;border-radius:8px;background:#fffffff2;color:#315d54;font-size:13px;font-weight:700}.route-controls button[aria-pressed=true]{background:#2f8f70;color:#fff}.route-controls button:disabled{opacity:.55}.action-button{position:absolute;z-index:5;bottom:12px;left:50%;transform:translateX(-50%);width:min(280px,calc(100% - 24px));min-height:58px;border:0;border-radius:10px;background:#2f8f70;color:#fff;font-size:17px;font-weight:800;touch-action:none;user-select:none}.action-button:active{background:#247457}.action-button:disabled{opacity:.5}.stage-message{position:absolute;z-index:3;bottom:78px;left:10px;right:10px;margin:0;padding:5px 8px;color:#315d54;background:#ffffffe0;border-radius:7px;font-size:12px;line-height:1.5;text-align:center;pointer-events:none}.anchor-marker{position:absolute;z-index:3;transform:translate(-50%,-50%);min-width:76px;padding:5px 9px;border:2px solid #fff;border-radius:22px;background:#2f8f70;color:#fff;font-size:12px;font-weight:800;touch-action:none;user-select:none}.anchor-marker.unreachable{background:#697b74}.result-panel{position:absolute;z-index:6;top:50%;left:50%;transform:translate(-50%,-50%);width:min(340px,calc(100% - 24px));padding:20px;background:#fffffff5;border:1px solid #b3d7c9;border-radius:12px;text-align:center;box-shadow:0 10px 28px #2a574a22}.result-panel h2{font-size:22px;line-height:1.4;margin:0 0 10px}.result-panel p{font-size:14px;line-height:1.6;margin:0 0 16px}.result-panel button{width:100%;border:0;border-radius:7px;color:#fff;background:#2f8f70;font-weight:700}.info-section{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px auto 0}.info-section article{padding:18px}.info-section h2,.related-section h2{margin:0 0 6px;color:#315d54;font-size:1rem;line-height:1.4}.info-section p,.related-section p{margin:0;color:var(--muted);font-size:.9rem;line-height:1.7}.related-section{margin-top:14px;padding:18px}.related-section a{color:#246f58;font-weight:700}#game-stage:fullscreen,#game-stage.is-fullscreen-fallback{position:fixed;z-index:10000;inset:0;width:100vw;height:100vh;height:100dvh;margin:0;border:0;border-radius:0}.has-fullscreen-fallback{overflow:hidden}@media(max-width:760px){.info-section{grid-template-columns:1fr;gap:10px}.info-section article{padding:15px 16px}}@media(max-width:640px){body{font-size:15px}.stack-page{width:calc(100% - 24px);padding-top:8px}.stack-hero{padding:10px 0 16px}.game-shell{padding:10px}.game-stage{height:500px}.score-bar{gap:10px;padding:6px 8px}.score-item strong{font-size:15px}.result-panel h2{font-size:20px}}@media(max-width:380px){.stack-page{width:calc(100% - 20px)}.game-shell{padding:8px}.score-bar{left:7px;right:91px;top:7px;gap:6px;padding:6px}.score-item strong{font-size:13px}.fullscreen-button{width:76px;right:7px;top:7px}.route-controls{left:7px;right:7px}.game-stage{height:480px}}@media(max-height:480px){.route-controls{top:65px}.stage-message{bottom:73px}.result-panel{padding:12px}.result-panel p{margin-bottom:8px}}
:root .game-stage .action-button{left:14px;bottom:14px;transform:none;width:128px;min-height:78px;background:#4f7768;border:2px solid #dcefe5;box-shadow:0 3px 0 #345648;touch-action:none}
:root .game-stage .action-button.is-aiming{background:#2f8f70;border-color:#7bdcaa;box-shadow:0 0 0 3px #b8eed2,0 3px 0 #246f58}
:root .game-stage .action-button.is-holding{background:#2479aa;border-color:#78c6ef;box-shadow:0 3px 0 #195573}
#game-canvas{cursor:grab;user-select:none}
#game-canvas:active{cursor:grabbing}
.map-controls{position:absolute;z-index:7;top:74px;left:10px;right:10px;display:flex;align-items:center;gap:8px;padding:4px 8px;background:#fffffff2;border:1px solid #cbe5dc;border-radius:8px;font-size:12px;color:#315d54}.map-controls label{font-weight:700;white-space:nowrap}.map-controls select{min-width:0;min-height:44px;max-width:100%;flex:1;font:inherit;font-size:14px;border:1px solid #b3d7c9;border-radius:6px;background:#fff;color:#263332;padding:4px 6px}.map-controls select:focus-visible{outline:3px solid #67bba0;outline-offset:2px}#map-summary{font-size:12px;max-width:40%;line-height:1.4}.result-panel .result-map{font-weight:700;color:#246b5b;margin-bottom:5px}.result-panel #map-description{font-size:13px;margin-bottom:10px}.result-panel{top:max(134px,calc(50% - 130px));transform:translateX(-50%);max-height:calc(100% - 162px);overflow:auto;padding:16px}.result-panel #result-text{font-size:13px;margin-bottom:12px}
@media(max-width:640px){#map-summary{display:none}.map-controls{gap:6px}.map-controls select{font-size:13px}.result-panel{padding:12px}.result-panel h2{margin-bottom:6px}}
@media(max-width:380px){.map-controls{left:7px;right:7px;top:71px}}
@media(max-height:480px){.result-panel{top:134px;max-height:calc(100% - 146px)}}
@media(max-width:380px){:root .game-stage .action-button{left:10px;bottom:10px;width:116px}}
.game-stage{height:min(540px,calc(100vh - 32px));height:min(540px,calc(100dvh - 32px))}.score-bar{right:auto;max-width:calc(100% - 96px);gap:14px;background:#ffffffd9;padding:5px 8px;min-height:0;pointer-events:none}.stage-tools{position:absolute;z-index:8;top:10px;right:10px;display:flex;gap:6px}.stage-tools button{min-width:64px;padding:5px 8px;border:1px solid #c8e3da;border-radius:8px;background:#fffffff2;color:#246b5b;font-size:13px;font-weight:700}.menu-panel{position:absolute;z-index:6;top:50%;left:50%;transform:translate(-50%,-50%);width:min(360px,calc(100% - 24px));max-height:calc(100% - 120px);overflow:auto;padding:20px;border:1px solid #b3d7c9;border-radius:12px;background:#fffffff5;text-align:center;box-shadow:0 10px 28px #2a574a22}.menu-panel h2{margin:0 0 8px;font-size:22px}.menu-panel p{margin:0 0 16px;font-size:13px;line-height:1.6}.level-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.level-buttons button{min-height:54px;border:1px solid #b3d7c9;border-radius:8px;background:#eaf7f0;color:#246b5b;font-weight:700}.ready-panel{position:absolute;z-index:6;inset:0;pointer-events:none}.ready-panel button,.ready-panel select{pointer-events:auto}.ready-caption{position:absolute;bottom:calc(50% + 48px);left:50%;transform:translateX(-50%);width:min(340px,calc(100% - 24px));padding:8px 12px;border:1px solid #b3d7c9;border-radius:10px;background:#fffffff2;text-align:center}.ready-caption p{margin:0 0 4px;font-weight:700;font-size:14px}.ready-caption label{font-size:12px;margin-right:6px}.ready-caption select{max-width:100%;min-height:44px;font:inherit;font-size:13px;border:1px solid #b3d7c9;border-radius:6px;background:#fff;color:#263332;padding:4px}#start-button{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:180px;min-height:68px;border:2px solid #dcefe5;border-radius:12px;background:#2f8f70;color:#fff;font-size:22px;font-weight:800;box-shadow:0 3px 0 #246f58}.ready-instructions{position:absolute;top:calc(50% + 48px);left:50%;transform:translateX(-50%);width:min(340px,calc(100% - 24px));text-align:center}.ready-instructions p{margin:0 0 8px;padding:6px;background:#ffffffe8;border-radius:8px;font-size:13px;line-height:1.6}.ready-instructions button{border:1px solid #b3d7c9;border-radius:8px;background:#fff;color:#246b5b;padding:4px 12px;font-size:13px}.result-panel{top:50%;transform:translate(-50%,-50%);max-height:calc(100% - 120px)}.result-panel button+button{margin-top:8px;background:#eaf7f0;color:#246b5b}:root .game-stage .action-button{width:128px;min-height:78px}.game-stage:not(.is-playing) #game-canvas{cursor:default}
@media(max-width:640px){.score-bar{top:8px;left:8px;gap:6px;padding:4px 6px;max-width:calc(100% - 88px)}.score-item strong{font-size:13px}.stage-tools{top:8px;right:8px;flex-direction:column;gap:4px}.stage-tools button{min-width:64px;min-height:44px;font-size:12px}.menu-panel{padding:16px}.result-panel{padding:12px}}
@media(max-height:480px){.game-stage{height:calc(100vh - 16px);height:calc(100dvh - 16px)}.menu-panel{max-height:calc(100% - 100px);padding:12px}.menu-panel p{margin-bottom:8px}.level-buttons{gap:6px}.level-buttons button{min-height:44px}.ready-caption{bottom:calc(50% + 40px);padding:4px 8px}.ready-caption p{font-size:12px}.ready-caption select{min-height:44px}.ready-instructions{top:calc(50% + 40px)}.ready-instructions p{font-size:11px;margin-bottom:4px;padding:2px}#start-button{min-height:60px}.result-panel{max-height:calc(100% - 100px)}}
@media(max-height:480px) and (max-width:640px){.game-stage:not(.is-playing) .stage-tools{top:auto;bottom:8px}.game-stage:not(.is-playing) .score-bar{max-width:calc(100% - 16px)}.ready-instructions{width:calc(100% - 160px);min-width:140px}.ready-instructions p{display:none}}

/* Reading layout only; game stage and controls retain their original rules. */
.info-section{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:880px;margin-top:26px}
.info-section article{padding:22px;min-width:0}.info-section .howto-card{grid-column:1/-1}
.info-section h2{font-size:1.12rem;margin-bottom:14px}.info-section p,.info-section li,.info-section dd{color:var(--muted);font-size:.9rem;line-height:1.85}
.play-steps{margin:0;padding-left:1.5em;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}.play-steps strong{color:#315d54}.play-steps p{margin:6px 0 0}
.control-list{margin:0}.control-list dt{color:#315d54;font-weight:700;margin:16px 0 4px}.control-list dt:first-child{margin-top:0}.control-list dd{margin:0}.info-section .control-note{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.rule-list{margin:0;padding-left:1.2em}.rule-list li+li{margin-top:8px}.info-section details{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}.info-section summary{color:#315d54;font-weight:700;cursor:pointer;min-height:44px}.info-section details[open] summary{margin-bottom:10px}
.related-section,.game-comment-section{max-width:880px;margin-left:auto;margin-right:auto}.game-comment-section{margin-top:24px}
@media(max-width:760px){.info-section{grid-template-columns:1fr;gap:12px}.info-section article{padding:18px}.play-steps{grid-template-columns:1fr;gap:16px}.info-section .howto-card{grid-column:auto}}
.stack-page .app-comment-form input[name="name"],.stack-page .app-comment-form select[name="rating"],.stack-page .app-comment-form textarea[name="body"]{font:inherit;min-height:44px;max-width:100%;padding:8px 10px;border:1px solid #b3d7c9;border-radius:6px;background:#fff;color:var(--ink)}
.stack-page .app-comment-form textarea[name="body"]{min-height:128px}
