/* Fixed game scene uses the whole available viewport; safe areas protect controls. */
body.playing{overflow:hidden;overscroll-behavior:none;height:100dvh;background:#dce9e8}body.playing>header,body.playing>footer{display:none}body.playing main{min-height:0}body.playing #game:not([hidden]){position:fixed;inset:0;width:100%;height:100dvh;max-width:none;margin:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);display:flex;flex-direction:column;align-items:center;gap:0}body.playing .game-top{flex:0 0 48px;width:min(100%,600px);padding:5px 12px;font-size:12px;gap:7px}body.playing .game-top>div{flex:1}#fullscreen{font-size:24px;background:#fff9df;border-radius:10px;padding:3px 10px}body.playing #pause{padding:9px;font-size:11px}body.playing .play-wrap{flex:1;min-height:0;width:min(100%,calc((100dvh - 143px)*.685714));border-radius:12px}body.playing #canvas{width:100%;height:100%;max-height:none;aspect-ratio:auto}body.playing .controls{flex:0 0 91px;width:min(100%,480px);padding:9px 18px;gap:10px}body.playing .controls>button{width:90px;height:62px}body.playing .wind-control small{margin:0}body.playing #help:not([hidden]){position:absolute;bottom:100px;z-index:4;font-size:11px;padding:8px}.gift-total{background:#fff1cb;border-radius:20px;padding:16px}
@media(orientation:landscape) and (max-height:600px){body.playing #game:not([hidden]){display:grid;grid-template-columns:1fr minmax(0,calc((100dvh - 49px)*.685714)) 1fr;grid-template-rows:46px 1fr}body.playing .game-top{grid-column:1/4;grid-row:1;width:min(100%,700px);justify-self:center}body.playing .play-wrap{grid-column:2;grid-row:2;width:100%;height:100%;min-height:0}body.playing .controls{display:contents}body.playing #left{grid-column:1;grid-row:2;justify-self:center;width:72px;height:72px;align-self:end;margin-bottom:18px}body.playing #right{grid-column:3;grid-row:2;justify-self:center;width:72px;height:72px;align-self:end;margin-bottom:18px}body.playing .wind-control{position:absolute;right:12px;top:70px;width:110px}body.playing .wind-control button{width:105px}body.playing #help:not([hidden]){bottom:20px;left:10px;width:110px}}

.game-top .home-nav{white-space:nowrap;min-width:64px;min-height:40px;border-radius:12px;background:#fff9e8;padding:8px 10px;font-size:12px;font-weight:600}.death-layer .home-nav{min-height:44px;border:1px solid #b7cbbd;background:#fffdf4;margin-top:0}.death-layer{overflow-y:auto}.death-layer .home-nav:focus-visible{outline:3px solid #d8a750}@media(max-width:450px){body.playing .game-top{font-size:10px;padding:4px 7px;gap:4px}.game-top .home-nav{min-width:58px;padding:7px;font-size:11px}body.playing #pause{font-size:10px;padding:8px}#fullscreen{padding:3px 6px}}
