@media(pointer:coarse){
#sound{display:none!important}
#globalAudioSettings{left:max(20px,env(safe-area-inset-left))!important;bottom:max(20px,env(safe-area-inset-bottom))!important;width:46px!important;height:46px!important;min-height:46px!important;padding:0!important;border-radius:15px!important;font-size:0!important}
#globalAudioSettings::after{content:'⚙';font-size:28px;line-height:1}
#battleScreen .battle-corner{width:44px;height:44px;min-height:44px;border-radius:13px;font-size:25px;top:auto!important;left:auto!important;background:#55456460}
#battleScreen .corner-nw{right:calc(max(12px,env(safe-area-inset-right)) + 48px);bottom:calc(max(16px,env(safe-area-inset-bottom)) + 48px)}
#battleScreen .corner-ne{right:max(12px,env(safe-area-inset-right));bottom:calc(max(16px,env(safe-area-inset-bottom)) + 48px)}
#battleScreen .corner-sw{right:calc(max(12px,env(safe-area-inset-right)) + 48px);bottom:max(16px,env(safe-area-inset-bottom))}
#battleScreen .corner-se{right:max(12px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom))}
#battleActionDock{right:calc(max(12px,env(safe-area-inset-right)) + 106px)!important;max-width:calc(100% - 180px)}
}
@media(pointer:coarse){#battleScreen .battle-top{left:max(8px,env(safe-area-inset-left))!important;right:auto!important;transform:none!important;max-width:calc(100% - 16px)}}
@media(pointer:coarse){
#modal:has(#battleResultClose){max-height:94dvh!important;overflow:auto!important}
.relic-upgrade:has(#battleResultClose){padding:10px 14px!important}
.relic-upgrade:has(#battleResultClose)>header{padding:0 0 6px!important}
.relic-upgrade:has(#battleResultClose) h2{font-size:20px;margin:3px 0}
.relic-upgrade:has(#battleResultClose) .relic-kicker{font-size:10px}
.relic-upgrade:has(#battleResultClose)>header p{font-size:11px;margin:3px 0}
.relic-upgrade:has(#battleResultClose) .growth-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0 10px}
.relic-upgrade:has(#battleResultClose) .growth-card{padding:8px!important;min-height:0}
.relic-upgrade:has(#battleResultClose) .growth-card h3{font-size:12px;line-height:1.3;margin:3px 0}
.relic-upgrade:has(#battleResultClose) .result-total{font-size:25px;line-height:1.25}
.relic-upgrade:has(#battleResultClose) .growth-card p{font-size:10px;line-height:1.3;margin:5px 0 0}
.relic-upgrade:has(#battleResultClose)>button{min-height:36px!important;margin:4px 0!important;padding:6px 10px!important;font-size:12px!important}
}
@media(pointer:coarse){
#modal:has(.outing-map){max-height:94dvh!important;overflow:auto!important}
.outing-map{padding:4px!important}
.outing-map .map-heading{padding:6px 34px!important}
.outing-map .map-heading>span{font-size:8px!important}
.outing-map .map-heading h2{font-size:18px!important;margin:2px 0!important}
.outing-map .map-heading p{font-size:10px!important;margin:2px 0!important}
.outing-map .map-paper{min-height:0!important;height:auto!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;padding:8px!important;gap:8px!important;margin:7px 0!important}
.outing-map .map-pin{min-height:68px!important;padding:5px 3px!important}
.outing-map .map-icon{font-size:23px!important;line-height:25px!important}
.outing-map .map-pin strong{font-size:11px!important}
.outing-map .map-pin small{font-size:8px!important}
.outing-map .map-destinations{display:none!important}
.outing-map>.wide{min-height:32px!important;padding:5px 8px!important;margin:3px 0!important;font-size:12px!important}
.outing-map>.smalltext,.outing-map .map-note{font-size:9px!important;line-height:1.35!important;margin:3px 0!important;padding:3px!important}
}
@media(pointer:coarse) and (orientation:landscape){.outing-map .map-paper{grid-template-columns:repeat(6,minmax(0,1fr))!important}.outing-map .map-pin strong{font-size:10px!important}.outing-map .map-pin small{font-size:8px!important}}
@media(pointer:coarse) and (orientation:portrait){.outing-map .map-paper{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
#hudRight3 small{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.2;font-size:12px;box-sizing:border-box}
@media(pointer:coarse){#hudHelp{position:fixed!important;left:calc(max(20px,env(safe-area-inset-left)) + 52px)!important;bottom:max(20px,env(safe-area-inset-bottom))!important;width:40px!important;height:46px!important;min-height:46px!important;padding:0!important;margin:0!important}}
#screenHUD .hud-rail button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:4px!important;box-sizing:border-box}
#screenHUD .hud-rail button[hidden]{display:none!important}
#screenHUD .hud-rail button i{flex:none;line-height:1!important;margin:0!important}
#screenHUD .hud-rail button small{flex:none;position:static!important;white-space:nowrap!important;overflow-wrap:normal!important;line-height:1.15!important;margin:0!important;padding:0!important;max-width:100%;font-size:11px!important}
@media(min-height:600px){#screenHUD .hud-rail button small{font-size:12px!important}}
#nextDay.outside-hours,#screenHUD #hudPrimary.outside-hours{background:#dedbd5!important;color:#77736e!important;border-color:#aba69e!important;box-shadow:inset 0 1px #f4f2ef,0 2px #aaa39b!important;opacity:1!important;white-space:nowrap!important;font-size:12px!important;padding:6px 10px!important;box-sizing:border-box}
