/* Heuballen on top of Survivor's HerpDerp skin (../css/style.css): Survivor's wood tab (#topbar),
   banner and modal panel, plus the shared Puddlehold menu. Jersey 10 is sharp only at 56/3 px or twice that. */
html, body { margin: 0; height: 100%; overflow: hidden; background: #3a2210; }
body { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
canvas#game { display: block; position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; }
/* HerpDerp v6: light haze at the top, soft dark edge and a warm wash over the world (as in Survivor) */
#atmosphere {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(206,214,222,.14) 0%, rgba(206,214,222,.05) 18%, rgba(206,214,222,0) 36%),
    radial-gradient(ellipse 78% 72% at 50% 55%, rgba(20,12,4,0) 60%, rgba(20,12,4,.26) 100%),
    linear-gradient(rgba(255,186,96,.06), rgba(255,186,96,.06));
}
#hurt-edge { position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: 0; background: radial-gradient(ellipse at center, rgba(200,20,10,0) 40%, rgba(200,20,10,.7) 78%, rgba(120,0,0,.95) 100%); }

/* no XP bar in this game, so the tab sits at the very top */
#topbar { top: env(safe-area-inset-top, 0px); }
#topbar .tb { display: flex; align-items: center; gap: 6px; }
#topbar .tb span { color: var(--muted); }
#topbar .hidden { display: none; }
/* 18 x 18 art bale at 24 CSS px would blur; 18 px keeps one art pixel per CSS pixel */
#topbar .ico { width: 18px; height: 18px; image-rendering: pixelated; display: block; }
#hud .banner { top: calc(env(safe-area-inset-top, 0px) + 60px); bottom: auto; white-space: nowrap; }

/* start and result windows: frame and content from ../css/phone.css */
#start, #result { z-index: 30; }
.hbtns .phm-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.hbtns a.phm-btn { text-decoration: none; }
#resNote { opacity: .85; }
