html, body, #app, #game-container {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0f0f0f;
}

#app { height: 100dvh; }
canvas { display: block; }

.reader-summary {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
.credits-link {position:fixed;bottom:3px;right:8px;z-index:20;color:#d8bd89;background:#1a1816dd;padding:2px 7px;border-radius:4px;font:11px Arial,sans-serif;text-decoration:none;}

#touch-tools{display:none;}
@media(pointer:coarse){#game-container{height:calc(100% - 58px);}#touch-tools{display:flex;position:fixed;bottom:0;left:0;right:0;height:58px;gap:6px;padding:5px 7px;box-sizing:border-box;background:#211d18;z-index:25;}#touch-tools button{flex:1;min-height:48px;background:#4e713c;color:#fff0c9;border:1px solid #c39753;border-radius:7px;font:700 14px Arial,sans-serif;touch-action:manipulation;}#touch-tools button:nth-child(2){background:#794735}.credits-link{bottom:60px;}}

@media(pointer:coarse){#game-container{height:calc(100% - 84px);}#touch-tools{height:84px;flex-wrap:wrap;align-content:space-between;gap:4px 6px;}#touch-readout{flex-basis:100%;height:22px;line-height:22px;text-align:center;font:600 12px/22px Arial,sans-serif;color:#ffe5a4;white-space:nowrap;overflow:hidden;}#touch-tools button{height:48px;flex-basis:25%;}#touch-tools button:disabled{opacity:.45;}.credits-link{bottom:86px;}}
