/* Sortierstall on top of Survivor's HerpDerp skin (../css/style.css): #hud, the #topbar wood tab,
   .slot boxes and .banner as they are, plus the shared Puddlehold menu. */
html, body { margin: 0; height: 100%; overflow: hidden; background: #3a2210; }
canvas#game { display: block; position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; touch-action: none; }

/* no XP bar in this game, so the tab sits at the very top */
#topbar { top: env(safe-area-inset-top, 0px); }
/* phones: left-aligned like Idle-Dorf, clear of the menu button top right */
@media (max-width: 520px) { #topbar { left: 6px; transform: none; max-width: calc(100vw - 72px); } }
#topbar .tb { display: flex; align-items: center; gap: 6px; }
#topbar .ico { width: 18px; height: 18px; object-fit: contain; image-rendering: auto; }
#parLbl { color: var(--muted); margin-left: 2px; }
/* stars are Rucksack-Rumpel's 12 px pixel star at whole multiples */
#starRow img { width: 24px; height: 24px; image-rendering: pixelated; }
#starRow img.off, #resStars img.off { filter: grayscale(1) brightness(.55); }
#resStars img { width: 48px; height: 48px; }
#hud .banner { top: calc(env(safe-area-inset-top, 0px) + 60px); bottom: auto; white-space: nowrap; }

/* bottom row: the player's own helpers, Survivor's slot boxes with a count badge */
#bottom {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
  display: flex; align-items: flex-end; gap: 14px;
}
#hud .tool { pointer-events: auto; width: 52px; height: 52px; padding: 0; cursor: pointer; display: grid; place-items: center; }
#hud .tool img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; box-sizing: border-box; padding: 6px; image-rendering: auto; }
#hud .tool i { position: absolute; right: -4px; bottom: -6px; font-style: normal; color: var(--gold); text-shadow: var(--ink-outline); font-size: var(--px); }
#hud .tool.off { filter: saturate(.3) brightness(.7); }

/* "restart" waits for a second tap (SO-03) */
#hud .tool.armed { box-shadow: 0 0 0 3px var(--gold); }

/* start and win windows: frame and content from ../css/phone.css */
#start, #result { z-index: 30; }
.hbtns .phm-btn { min-height: 44px; }
