/* Let the scene reach every edge, while text and controls respect device cutouts. */
.western-preview .app-shell{padding-top:env(safe-area-inset-top,0px);padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px);min-height:100dvh}
.western-preview .auth.splash,.western-preview .password-page{padding-top:max(24px,env(safe-area-inset-top,0px));padding-bottom:max(24px,env(safe-area-inset-bottom,0px))}
.western-preview .site-footer{padding-bottom:max(24px,env(safe-area-inset-bottom,0px))}
#notice{bottom:calc(16px + env(safe-area-inset-bottom,0px))}
.western-preview dialog{max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 32px);overflow:auto}
@media(max-width:650px){
  .western-preview .hn-woodbar{margin:0;min-height:0;padding:10px 12px;gap:8px;border-radius:0;border-width:0 0 1px;background:#173449d9}
  .western-preview .hn-woodbar__title{font-size:20px}
  .western-preview .hn-woodbar__group{gap:8px;min-width:0;flex-wrap:wrap}
  .western-preview .hn-woodbar__group:last-child{width:100%}
  .western-preview .hn-woodbar .hn-btn{min-height:44px;font-size:12px;padding:10px}
  .western-preview .hn-woodbar .hn-bankroll{margin-left:auto;font-size:16px;white-space:nowrap}
  .western-preview .hn-woodbar .hn-avatar{width:44px;height:44px;flex-shrink:0}
  .western-preview .lobby{padding:20px 12px 28px;gap:24px}
  .western-preview .lobby>.section{gap:16px;min-width:0}
  .western-preview .welcome{margin:0;padding:0}
  .western-preview .welcome h1{font-size:40px;margin:6px 0 0}
  .western-preview .welcome .eyebrow{font-size:12px;letter-spacing:.08em}
  .western-preview .lobby .hn-banner{font-size:22px}
  .saloon-tables{gap:16px}
  .western-preview .saloon-room{grid-template-columns:1fr;gap:10px;border-width:5px;padding:14px 12px}
  .western-preview .saloon-room:before,.western-preview .saloon-room:after{width:12px;height:12px}
  .western-preview .saloon-room:before{top:-6px;left:-6px}
  .western-preview .saloon-room:after{bottom:-6px;right:-6px}
  .saloon-table-map{height:140px;max-width:300px}
  .saloon-mini-table{inset:30px 38px;border-width:6px;gap:4px}
  .saloon-mini-brand{font-size:14px}
  .saloon-mini-table strong{font-size:22px}
  .saloon-seat{width:76px}
  .saloon-seat-avatar{width:28px;height:28px;margin-bottom:2px}
  .saloon-seat-name{font-size:12px;line-height:1.25}
  .western-preview .saloon-room .table-title{margin-bottom:6px}
  .western-preview .saloon-room .table-title h3{font-size:24px;overflow-wrap:anywhere}
  .saloon-room .table-meta{font-size:14px;line-height:1.4;margin:4px 0}
  .saloon-occupancy{font-size:14px;line-height:1.4;margin:8px 0 12px}
  .western-preview .saloon-room .hn-btn{font-size:14px;min-height:48px}
  .western-preview .table-wrap{padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))}
  .western-preview .table-tools-content button,.western-preview .table-info .hn-btn,.western-preview .table-info .turn-chime-button{min-height:44px}
}
/* Horizontal system bars can exist in any pose, not just landscape. */
.western-preview .immersive .fp-top{left:calc(14px + env(safe-area-inset-left,0px));right:calc(14px + env(safe-area-inset-right,0px))}
.western-preview .immersive .fp-camera-badge{left:calc(14px + env(safe-area-inset-left,0px))}
.western-preview .immersive .fp-selfie{right:calc(14px + env(safe-area-inset-right,0px))}
.western-preview .immersive .fp-controls{left:env(safe-area-inset-left,0px);right:env(safe-area-inset-right,0px);transform:none;margin-inline:auto;width:min(740px,calc(100% - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px) - 24px))}
.western-preview dialog{inset:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);max-width:calc(100% - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px) - 32px);margin:auto}
@media(max-width:950px),(max-height:600px),(pointer:coarse){
  .western-preview .immersive .fp-tools-drawer{right:calc(12px + env(safe-area-inset-right,0px))}
  .western-preview .immersive .fp-tools-drawer[open]{width:min(330px,calc(100% - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px) - 24px))}
  .western-preview .immersive .fp-status{left:calc(14px + env(safe-area-inset-left,0px))}
  .western-preview .immersive .fp-controls{bottom:0}
}
@media(min-width:951px) and (min-height:601px) and (pointer:fine){
  .western-preview .immersive .fp-top{top:calc(22px + env(safe-area-inset-top,0px))}
  .western-preview .immersive .fp-tools-content>[data-exit],.western-preview .immersive .fp-tools-content>.fp-leave{top:calc(22px + env(safe-area-inset-top,0px))}
  .western-preview .immersive .fp-look-tools{top:calc(82px + env(safe-area-inset-top,0px))}
  .western-preview .immersive .fp-camera-badge{top:calc(70px + env(safe-area-inset-top,0px))}
  .western-preview .immersive .fp-voice{top:calc(100px + env(safe-area-inset-top,0px))}
  .western-preview .immersive .fp-chime,.western-preview .immersive .fp-admin-manage,.western-preview .immersive .fp-selfie{top:calc(156px + env(safe-area-inset-top,0px))}
  .western-preview .immersive.fp-has-admin .fp-chime{top:calc(206px + env(safe-area-inset-top,0px))}
  .western-preview .immersive .fp-controls{bottom:calc(18px + env(safe-area-inset-bottom,0px))}
}

@media(min-width:951px) and (min-height:601px) and (pointer:fine){
  .western-preview .immersive .fp-tools-content>[data-exit]{right:calc(28px + env(safe-area-inset-right,0px))}
  .western-preview .immersive .fp-tools-content>.fp-leave{right:calc(190px + env(safe-area-inset-right,0px))}
  .western-preview .immersive .fp-look-tools{right:calc(28px + env(safe-area-inset-right,0px))}
  .western-preview .immersive .fp-voice,.western-preview .immersive .fp-chime,.western-preview .immersive .fp-admin-manage,.western-preview .immersive .fp-quick-pitch{left:calc(20px + env(safe-area-inset-left,0px))}
}

/* Medium windows keep utilities in a drawer while giving the hand more room. */
@media(min-width:651px) and (min-height:601px) and (pointer:coarse){
  .western-preview .immersive .fp-title strong{font-size:18px}
  .western-preview .immersive .fp-controls{max-height:50dvh}
  .western-preview .immersive .fp-card-tray{justify-content:center;gap:24px}
  .western-preview .immersive .fp-board-card{width:46px;height:60px;font-size:26px}
  .western-preview .immersive .fp-private-hand .fp-board-card{width:50px;height:66px}
  .western-preview .immersive .fp-board-title{font-size:11px}
  .western-preview .immersive .fp-selfie{width:80px}
  .western-preview .immersive .fp-selfie-stage{height:90px}
}
