/* 2026-09-10 — bounded edge-device/accessibility layer. */
html,body,.game-shell{width:100%;max-width:100%;min-height:100%;overflow-x:clip}
.game-shell{min-height:100vh;min-height:100dvh}
.game-bar{height:auto;min-height:46px;padding-top:max(6px,env(safe-area-inset-top));padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}
.game-wrap{min-height:0;height:calc(100dvh - 46px - env(safe-area-inset-top));overflow:hidden}
#game-canvas{max-width:100%;max-height:100%;touch-action:none}
.icon-btn,.hud-btn,.pad-btn,.cool-btn,.base-actions button,.mine-world button,.field-sheet button,.workshop button,.shift-wall button,.emergency-stop button,.weigh-station button,.nn-nudge-later,.nn-nudge-signup{min-width:44px;min-height:44px;touch-action:manipulation}
button:focus-visible,a:focus-visible{outline:3px solid #59d8ff;outline-offset:3px}
.hud-top{padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right));padding-top:max(8px,env(safe-area-inset-top))}
.screen{padding-left:max(0px,env(safe-area-inset-left));padding-right:max(0px,env(safe-area-inset-right));padding-bottom:max(0px,env(safe-area-inset-bottom));overscroll-behavior:contain}
@media(max-width:520px){
  .game-bar-title{max-width:34vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.player-pill{max-width:22vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .hud-top{gap:4px}.hud-chip{min-width:0;padding-left:6px;padding-right:6px}.hud-chip span{font-size:.54rem}.hud-chip b{font-size:.8rem}
  .bar-stack{max-width:min(62vw,250px)}.haul-pill{right:max(6px,env(safe-area-inset-right));max-width:58vw;white-space:normal;text-align:right}
  .field-sheet,.workshop,.shift-wall,.weigh-station{max-width:100%}
}
@media(max-height:500px) and (orientation:landscape){
  .game-bar{min-height:44px;padding-top:max(3px,env(safe-area-inset-top));padding-bottom:3px}.game-wrap{height:calc(100dvh - 44px - env(safe-area-inset-top))}
  .mine-surface{min-height:96px;height:28%;padding-top:8px;padding-bottom:6px}.mine-brand h1{font-size:clamp(1.8rem,8vh,2.8rem)}.mine-brand p{display:none}
  .mine-rock,.mine-shaft{top:28%}.mine-cage{top:34%;height:126px}.mine-depth-gate{bottom:5%}.mine-building--garage{top:31%}.mine-board--manual{top:33%}
  .field-sheet,.workshop,.shift-wall,.weigh-station{max-height:calc(100dvh - 58px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}
