/* Bauernhaufen on top of Survivor's HerpDerp skin (../css/style.css): same HUD and panel frame
   as the other Puddlehold games; start and result windows come from ../css/phone.css, buttons are
   the shared menu's (.phm-btn). Jersey 10 is sharp only at 56/3 px or twice that. */
img { image-rendering: pixelated; }

/* HUD: Survivor's own #hud, .xpbar, #topbar, .bossbar and .banner; numbers in gold like Angelpfütze.
   Icons are 32 px files shown 1:1 so every art pixel lands on whole device pixels. */
#topbar .tb { display: flex; align-items: center; gap: 4px; }
#topbar img { width: 32px; height: 32px; display: block; }
#topbar b { font-size: var(--nx2, 28px); line-height: 1; }

/* Phones: Survivor moves its level bar into the hero block, which Bauernhaufen has not, so the
   progress bar would sit under the status bar and the menu button. Put it just below them. */
@media (max-width: 640px), (max-height: 520px) {
  #hud > .xpbar { position: fixed; left: calc(12px + var(--sal)); right: calc(12px + env(safe-area-inset-right, 0px));
    top: calc(56px + var(--sat)); z-index: 1; margin: 0; }
}

/* "Loading ..." sits in the middle of the road, above the steering hint */
#wait { top: 40%; bottom: auto; }

/* Level list in the start window (BH-09): newest first, the reached level is chosen. Tiles are 48 px
   tall; the star pictures are 2x files shown at 18 px, so one art pixel is one CSS pixel. */
.hlevels { text-align: center; }
.lvgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 4px; margin: 4px 0; }
.lv { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-height: 48px; padding: 2px 0;
  font-family: inherit; color: var(--phm-ink); background: var(--phm-parch-hi); border: 3px solid var(--phm-brown); border-radius: 8px; cursor: pointer; }
.lv b { line-height: 1; }
.lv span { display: flex; justify-content: center; }
.lv img { width: 18px; height: 18px; image-rendering: pixelated; }
.lv[aria-pressed="true"] { background: var(--phm-btn-hi); border-color: var(--phm-ink); box-shadow: 0 0 0 3px var(--phm-gold); }
.lv:focus-visible { outline: 3px solid var(--phm-ink); outline-offset: 2px; }
#lvlMore { margin: 4px auto 0; }
.hlocal { margin: 4px 0 0; text-align: center; color: var(--phm-brown); }
/* Short screens (a phone held sideways): the three figures make room for the list */
@media (max-height: 420px) { #startArt, .hlevels h3 { display: none; } }
