/* V102: minimal in-game HUD - game state and records remain unchanged.
   Time meter, floor, acquired pickups only. */
#hud:not(.hide){
  min-height:0!important;
  height:auto!important;
  padding:clamp(10px,2.2vh,17px) 13px 7px!important;
  gap:5px!important;
  justify-content:flex-start!important;
  background:none!important;
  border:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  text-shadow:none!important;
  pointer-events:none;
}
#hud.boost:not(.hide){border:0!important;box-shadow:none!important}
#hud .hudTimer{
  width:100%!important;
  height:21px!important;
  flex:none;
  border:2px solid #fff1c5!important;
  border-radius:18px!important;
  background:#171b32a6!important;
  box-shadow:0 2px 5px #09162c99,0 0 0 1px #26354b52!important;
}
#hud .hudCenter{gap:2px!important;width:100%!important}
#hud #scoreHud{
  font-size:clamp(29px,8vw,40px)!important;
  line-height:1.05!important;
  font-weight:1000!important;
  color:#fffef2!important;
  text-shadow:0 3px 5px #0c172ce8,0 0 2px #0c172c!important;
}
#hud #stageHud,#hud .hudNumbers,#hud .hudMeta{display:none!important}
#hud .lootHud{
  margin-top:2px!important;
  gap:clamp(14px,5vw,24px)!important;
  font-size:clamp(13px,3.3vw,16px)!important;
  color:#fff8dd!important;
  text-shadow:0 2px 4px #06182bd9!important;
}
#hud .lootHud img{width:25px!important;height:25px!important;filter:drop-shadow(0 2px 2px #111c2d9c)}
#hud .lootHud b{font-variant-numeric:tabular-nums}
/* Time attack uses an independent chronometer; preserve it and its behavior. */
body.time-attack-active #hud .hudTimer{display:none!important}
/* Prior tutorial phase intentionally hides the meter until its timer explanation.
   Keep those rules working even with the new HUD geometry. */
body.tutorial-active:not(.tutorial-timed) #hud .hudTimer{visibility:hidden!important}
body.tutorial-active.tutorial-timed #hud .hudTimer{visibility:visible!important}
@media(max-height:700px){
 #hud:not(.hide){padding-top:9px!important;gap:3px!important}
 #hud .hudTimer{height:18px!important}
 #hud #scoreHud{font-size:29px!important}
 #hud .lootHud{gap:15px!important}
}

/* In-game sound toggles are unnecessary: keep their original IDs for the
   music/settings code, but never paint them over the running action. */
.topActions #musicButton,
.topActions #sound{display:none!important}
/* Single pause action directly below the timer, clear of the floor counter. */
.topActions{
  top:40px!important;
  right:12px!important;
  left:auto!important;
  z-index:8!important;
  gap:0!important;
  pointer-events:none!important;
}
.topActions #pause:not(.hide){
  position:relative;
  width:44px!important;
  height:44px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  border-radius:50%!important;
  box-shadow:none!important;
  color:transparent!important;
  font-size:0!important;
  line-height:1!important;
  text-shadow:none!important;
  pointer-events:auto!important;
  touch-action:manipulation;
}
.topActions #pause:not(.hide)::before{
  content:"";
  display:block;
  width:22px;
  height:25px;
  border-left:7px solid #fff6dc;
  border-right:7px solid #fff6dc;
  border-radius:2px;
  filter:drop-shadow(0 2px 2px #071628) drop-shadow(0 0 2px #071628);
}
.topActions #pause:not(.hide):focus-visible{
  outline:2px solid #ffe47c!important;
  outline-offset:1px;
}
.topActions #pause:not(.hide):active{transform:scale(.9)}
@media(max-height:700px){
  .topActions{top:33px!important;right:8px!important}
}
