
#touchBtns #numBtn {
  width: 44px; height: 44px; font: 800 12px/1 system-ui, sans-serif; letter-spacing: .04em;
  color: #e6ebff; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.32);
}
body.nums-off #touchBtns #numBtn { text-decoration: line-through; border-style: dashed; color: #9aa3c7; }

#slotCount {
  position: fixed; z-index: 47; pointer-events: none; top: calc(var(--slot-top, 170px) - 8px); right: calc(var(--hud-r) - 2px);
  font: 800 11px/1 system-ui, sans-serif; color: #0a0c1a; background: #c9d4e8; border-radius: 9px; padding: 3px 7px;
  box-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.slot-held { visibility: hidden !important; }

@media (max-width: 760px) and (min-height: 561px) {
  
body.touch-device { --deck-foot: calc(var(--hud-y1) + 114px); --slot-top: calc(var(--deck-foot) + 6px); }
  body.touch-device #scoreboard { top: calc(var(--hud-y1) + 50px); min-height: 0; justify-content: flex-start; }
  body.touch-device #roomChip#roomChip {
    top: calc(var(--hud-y1) + 70px); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 2px; min-height: 44px;
  }
  body.touch-device #roomChip .rc-label { font-size: 9px; }
  
body.touch-device.playing #hudBand { height: calc(var(--deck-foot) - var(--hud-y1) + 16px); }

  
body.touch-device #lockInPrompt, body.touch-device .li-toast { top: var(--slot-top); }
  html body.touch-device.playing #rewardToast { top: var(--slot-top); }
  body.touch-device #prestige { top: var(--slot-top); }
  
html body.touch-device #coachHint { top: var(--slot-top) !important; }

  
body.touch-device #lockInPrompt { right: var(--hud-r); left: var(--hud-l); padding: 6px 10px 9px; }
  body.touch-device #lockInPrompt:not([hidden]) { display: flex; align-items: center; gap: 10px; }
  body.touch-device #lockInPrompt .li-head { display: flex; flex-direction: column; gap: 1px; flex: none; font-size: 11px; }
  body.touch-device #lockInPrompt .li-head b { font-size: 20px; line-height: 1; }
  body.touch-device #lockInPrompt .li-acts { flex: 1; margin: 0; }
  body.touch-device #lockInPrompt .li-act { flex: 1; min-height: 48px; padding: 0 8px; font-size: 13px; line-height: 1.15; }
  body.touch-device #lockInPrompt .li-bar { position: absolute; left: 10px; right: 10px; bottom: 3px; margin: 0; }

  
body.touch-device {
    --tb-r: max(14px, env(safe-area-inset-right, 0px));
    --tb-b: max(20px, env(safe-area-inset-bottom, 0px));
  }
  body.touch-device #touchBtns { display: block; right: 0; bottom: 0; width: 0; height: 0; }
  body.touch-device #touchBtns button { position: absolute; }
  body.touch-device #touchBtns #gunBtn { right: var(--tb-r); bottom: var(--tb-b); width: 84px; height: 84px; font-size: 32px; }
  body.touch-device #touchBtns #dashBtn { right: calc(var(--tb-r) + 8px); bottom: calc(var(--tb-b) + 100px); width: 68px; height: 68px; font-size: 26px; }
  body.touch-device #touchBtns #swingBtn { right: calc(var(--tb-r) + 90px); bottom: calc(var(--tb-b) + 70px); width: 72px; height: 72px; font-size: 28px; }
  body.touch-device #touchBtns #numBtn { right: calc(var(--tb-r) + 100px); bottom: calc(var(--tb-b) + 2px); }
  
html body.touch-device.playing #resBar { right: calc(var(--tb-r) + 17px); bottom: calc(var(--tb-b) + 108px); }

  
body.touch-device #aimStick:not(.on) {
    right: calc(var(--tb-r) - 10px); bottom: calc(var(--tb-b) - 10px); width: 104px; height: 104px;
    background: none; border: 2px dashed rgba(255,120,120,.5); opacity: .7;
  }
  body.touch-device #aimStick:not(.on) #aimKnob { opacity: 0; }
}

@media (max-width: 340px) and (min-height: 561px) {
  body.touch-device #touchBtns #swingBtn { right: calc(var(--tb-r) + 84px); bottom: calc(var(--tb-b) + 78px); }
}
