/* NEON WAVE RUNNER — v1.24.37 horde fixes.
   ALL new/override styles for the v1.24.37 horde batch live here.
   style.css is NOT edited by this build. This file loads AFTER style.css,
   so same-specificity rules below win by source order. */

/* ============ Issue 1 — RESET VIEW must NEVER show during horde ============
   Belt-and-braces behind the checkZoom() force-hide in game.js: horde.js
   toggles .nn-horde on <body> in start()/quit(). Even if iOS reports a
   spurious visualViewport.scale > 1 mid-run, the button can never appear
   over (or overlap) horde UI. */
body.nn-horde #viewReset { display: none !important; }

/* ============ Issue 2 — wave text vs AUTO button ============
   The breather line ('NEXT WAVE IN n — CHOOSE AN UPGRADE', baseline y=156)
   was drawn straight through the 🎯 AUTO button on touch (top:146px), so the
   button covered the line's tail ('CHOOSE AN…'). Move AUTO clear below the
   line on touch pointers. Line glyph box ≈ y 141–160; AUTO now starts at
   200px (+ safe-area), so the two can never touch on a phone. Desktop keeps
   the bottom-right AUTO from style.css. */
@media (hover:none), (pointer:coarse) {
  #hordeAim {
    top: calc(200px + env(safe-area-inset-top));
    bottom: auto;
    right: max(12px, env(safe-area-inset-right));
  }
}

/* ============ Issue 4 — MODS button vs MOVE stick touch zone ============
   #hordeMods sat at bottom:8px/left:8px — inside the MOVE stick's touch zone
   (bottom-left, z-index 7 above the HUD's z-index 5, pointer-events:auto),
   so the zone swallowed every tap. Lift the button clear above the zone and
   carry its panel with it. Zone heights mirror style.css exactly:
   portrait = 36vh, landscape = min(48vh,320px). */
@media (hover:none) and (pointer:coarse) and (orientation:portrait) {
  #hordeMods { bottom: calc(36vh + 10px); }
  #hordeModsPanel { bottom: calc(36vh + 44px); }
}
@media (hover:none) and (pointer:coarse) and (orientation:landscape) {
  #hordeMods { bottom: calc(min(48vh, 320px) + 10px); }
  #hordeModsPanel { bottom: calc(min(48vh, 320px) + 44px); }
}
