/* ---------- HUD ---------- */
/* the HUD is an OVERLAY inside the shop scene, exactly as in the reference:
   its pills sit at y10..42 of the 450x800 scene, drawn over the ceiling beam
   and the top of the wall. It takes no flow space at all — there is no
   separate brown band above the shop any more. Sizes are in cqw so the pills
   keep the reference's proportions (94x32 pills, 32x32 buttons) at any size. */
.hud{
  position:absolute; top:2.05%; left:2.2%; right:2.2%; z-index:40;
  display:flex; align-items:center; gap:1.1cqw; margin:0; pointer-events:none;
}
.hud>*{pointer-events:auto}
/* HUD chrome follows the reference: dark-brown wooden pills with an inset
   lighter-brown ring, cream lettering and a dark outline shadow */
.hud .pill{
  display:flex; align-items:center; gap:1.3cqw;
  background:linear-gradient(180deg,#5A3921,#3B2211);
  border:2px solid #241207; border-radius:999px; padding:0 3.1cqw 0 2.2cqw;
  font-family:"Fredoka","M PLUS Rounded 1c",sans-serif;
  font-weight:700; font-size:3.8cqw; color:#FFF8EB; height:7.1cqw; min-height:0;
  box-shadow:inset 0 0 0 2px rgba(140,92,54,.85), 0 4px 10px rgba(10,5,2,.45);
  text-shadow:1.5px 0 0 #2A1408, -1.5px 0 0 #2A1408, 0 1.5px 0 #2A1408, 0 -1.5px 0 #2A1408;
}
/* the level pill carries the green check of the reference Lv badge */
#lvPill::before{content:"✓"; color:#4FE33B; font-weight:900; font-size:4.2cqw; margin-right:1px; text-shadow:0 1.5px 0 #14520C}
#coinPill{margin-left:auto; position:relative;}
#coinPill.bump{animation:bump .35s ease;}
@keyframes bump{30%{transform:scale(1.12)}}
.coin-ic{width:4.9cqw;height:4.9cqw;flex:none}
.icon-btn{
  background:linear-gradient(180deg,#5A3921,#3B2211); border:2px solid #241207; border-radius:2cqw;
  color:#FFF8EB;
  font-size:4.2cqw; width:7.1cqw; height:7.1cqw; min-width:0; min-height:0; padding:0; flex:none;
  box-shadow:inset 0 0 0 2px rgba(140,92,54,.85), 0 4px 10px rgba(10,5,2,.45);
  display:flex; align-items:center; justify-content:center;
}
.icon-btn svg{width:5.1cqw; height:5.1cqw}
