/* Hamrazm Arcade 6.5 integration layer for Runner v3.9. Gameplay rendering remains untouched. */
html,body{min-height:100dvh}
body.hamrazm-core-host{background:#050b0e!important;min-height:var(--ha-viewport-stable-height,var(--tg-viewport-stable-height,100dvh));}
body.hamrazm-core-host #menu,body.hamrazm-core-host #gameOver,body.hamrazm-core-host #pauseOverlay{display:none!important;visibility:hidden!important;pointer-events:none!important}
body.hamrazm-core-host #mobileControls{display:none!important}
body.hamrazm-core-host #pauseBtn{display:none!important}
body.hz-run-active[data-hz-game="war-runner"] #hud .topRow{display:none!important}
body.hz-run-active[data-hz-game="war-runner"] #hud{padding-top:calc(var(--hz-safe-top) + 64px)!important;padding-bottom:max(12px,var(--hz-safe-bottom))!important}
body.hz-run-active[data-hz-game="war-runner"] #hud .bottomRow{padding-bottom:0!important;align-items:flex-end}
body.hz-run-active[data-hz-game="war-runner"] #combo,body.hz-run-active[data-hz-game="war-runner"] #mission{background:linear-gradient(180deg,rgba(5,19,30,.88),rgba(5,13,21,.82))!important;border-color:rgba(132,209,232,.18)!important;box-shadow:0 10px 35px rgba(0,0,0,.18)}
body.hz-run-active[data-hz-game="war-runner"] #mission{max-width:min(330px,48vw)}
body.game-reduced-fx #grain{display:none!important}body.game-reduced-fx #vignette{mix-blend-mode:normal;opacity:.78}
@media(max-width:760px),(pointer:coarse){body.hz-run-active[data-hz-game="war-runner"] #hud{padding-top:calc(var(--hz-safe-top) + 58px)!important}body.hz-run-active[data-hz-game="war-runner"] #combo{min-width:92px;padding:6px 8px}body.hz-run-active[data-hz-game="war-runner"] #mission{max-width:58vw;padding:6px 8px}body.hz-run-active[data-hz-game="war-runner"] #mission .missionLine{font-size:9px}}

/* v7: portrait is supported; landscape gets a much lighter HUD footprint. */
body.hamrazm-core-host #rotateHint{display:none!important}
@media (orientation:landscape){
 body.hz-run-active[data-hz-game="war-runner"] #hud{padding-top:max(8px,var(--hz-safe-top))!important;padding-bottom:max(6px,var(--hz-safe-bottom))!important}
 body.hz-run-active[data-hz-game="war-runner"] #hud .bottomRow{justify-content:flex-start;gap:6px;opacity:.72;transform:scale(.84);transform-origin:left bottom;max-width:58vw}
 body.hz-run-active[data-hz-game="war-runner"] #combo{min-width:82px;padding:5px 7px}
 body.hz-run-active[data-hz-game="war-runner"] #mission{max-width:260px;padding:5px 7px}
 body.hz-run-active[data-hz-game="war-runner"] #mission .missionLine{font-size:8px}
}
@media (orientation:portrait) and (pointer:coarse){
 body.hz-run-active[data-hz-game="war-runner"] #hud{padding-top:calc(var(--hz-safe-top) + 58px)!important}
}


/* v8 portrait camera/readability */
@media (orientation:portrait) and (pointer:coarse){
 body.hz-run-active[data-hz-game="war-runner"] #hud{padding-top:calc(var(--hz-safe-top) + 52px)!important;padding-left:8px!important;padding-right:8px!important}
 body.hz-run-active[data-hz-game="war-runner"] #hud .bottomRow{opacity:.68;transform:scale(.90);transform-origin:left bottom;max-width:92vw}
 body.hz-run-active[data-hz-game="war-runner"] #mission{max-width:54vw!important}
}


/* v8.1: Core owns the gameplay HUD. Keep only a tiny mission strip; no duplicate combo/status cards. */
body.hz-run-active[data-hz-game="war-runner"] #hud .topRow,
body.hz-run-active[data-hz-game="war-runner"] #combo{display:none!important}
body.hz-run-active[data-hz-game="war-runner"] #hud .bottomRow{transform:translateX(-50%)!important;max-width:none!important}

/* v8.2 hosted UI: shared Core is the only gameplay HUD. */
body.hz-run-active[data-hz-game="war-runner"] #hud{display:none!important}

/* v8.2.1 unified minimal mission strip */
body.hz-run-active[data-hz-game="war-runner"] #mission{background:linear-gradient(180deg,rgba(5,19,30,.80),rgba(5,13,21,.62))!important;border:1px solid rgba(132,209,232,.14)!important;border-radius:10px!important;box-shadow:0 6px 18px rgba(0,0,0,.14)!important;color:#dce8ee!important;padding:4px 7px!important}
body.hz-run-active[data-hz-game="war-runner"] #mission .missionLine{font-size:7px!important;line-height:1.35!important;color:#c8d6df!important}
@media (orientation:portrait) and (pointer:coarse){body.hz-run-active[data-hz-game="war-runner"] #mission{max-width:48vw!important;opacity:.80!important}}
