/* Android: independent two-thumb controls, also on wide tablets. */
html,body{height:100%;overscroll-behavior:none;user-select:none;-webkit-user-select:none}
header{height:48px;padding:0 12px;gap:8px}header .brand{font-size:13px}header button,#map-toggle,#sound{font-size:13px;min-height:38px;padding:8px 12px}
main{height:calc(100dvh - 48px);min-height:0}footer{display:none}
#touch{display:flex;flex-direction:column;align-items:center;position:fixed;bottom:14px;left:18px;right:auto;z-index:5}
#touch button{width:60px;height:54px;border-radius:14px;font-size:24px;background:#152936dd;border:1px solid #d8ebbd55;box-shadow:0 3px 12px #0004}
#touch button:active,#look-controls button:active{background:#65846f;color:#fff}
#look-controls{position:fixed;bottom:18px;right:18px;left:auto;display:flex;gap:10px;z-index:5;touch-action:none}
#look-controls button{width:78px;min-height:66px;font-size:16px;line-height:1.4;background:#152936dd;border:1px solid #d8ebbd55;border-radius:14px;padding:8px;touch-action:none}
body.controls-right #touch{left:auto;right:18px}body.controls-right #look-controls{right:auto;left:18px}
#turn-hint{top:9px;left:12px;font-size:12px;padding:8px 12px}
aside{top:9px;right:12px;width:auto;padding:8px 12px;display:flex;gap:16px;align-items:center}.stat{padding:0;border:0}.stat small{font-size:10px}.stat strong{font-size:19px;margin-top:3px}#lives{letter-spacing:2px}.power{display:none}
.map-panel{top:55px;bottom:auto;left:12px;right:auto}.map-panel canvas{width:135px;height:108px}
.card{max-width:620px;max-height:calc(100dvh - 60px);overflow:auto;padding:20px}.card h2{font-size:28px;margin:10px 0}.card p{font-size:15px;line-height:1.5;margin:8px 0}.card button{margin-top:8px}.card .eyebrow{font-size:11px}
@media(max-width:650px){header{gap:4px;padding:0 8px}header .brand{font-size:10px}header button,#map-toggle,#sound{font-size:11px;padding:6px}#touch{left:8px;bottom:8px}#touch button{width:52px;height:48px}#look-controls{right:8px;bottom:10px}#look-controls button{width:64px;min-height:60px}body.controls-right #touch{right:8px}body.controls-right #look-controls{left:8px}aside{gap:10px}.card p{font-size:14px}#turn-hint{max-width:55%;font-size:10px}}

#joystick{position:relative;width:152px;height:152px;border-radius:50%;touch-action:none;background:radial-gradient(circle,#415362b8,#111e2be6);border:2px solid #d8ebbd66;box-shadow:inset 0 0 24px #0008,0 4px 18px #0008}
.stick-knob{position:absolute;left:calc(50% - 27px);top:calc(50% - 27px);width:54px;height:54px;border-radius:50%;background:radial-gradient(circle at 35% 25%,#e2edc6,#879d79 65%,#465e4c);border:2px solid #e3efcaaa;box-sizing:border-box;box-shadow:0 4px 10px #0008;pointer-events:none}
#joystick.active{border-color:#d8ff67}.stick-arrow{position:absolute;color:#e2edc6aa;font-size:22px;pointer-events:none}.north{top:7px;left:calc(50% - 7px)}.south{bottom:7px;left:calc(50% - 7px)}.west{left:9px;top:calc(50% - 14px)}.east{right:9px;top:calc(50% - 14px)}
@media(max-height:420px){#joystick{width:128px;height:128px}}

/* Keep the minimap visible above the 3D canvas on every Android layout. */
.map-panel{z-index:2;top:48px;left:12px;right:auto;bottom:auto;padding:8px}.map-panel canvas{width:135px;height:108px}.map-panel small{margin-bottom:4px}.map-panel>span{margin-top:4px}
@media(max-height:420px){.map-panel canvas{width:100px;height:80px}.map-panel{top:40px}.map-panel small,.map-panel>span{display:none}}
