/* Portal iframe layout, keeping menus scrollable inside the game. */
html,body{overscroll-behavior:none;max-width:100%;-webkit-user-select:none;user-select:none}
input,textarea{user-select:text;-webkit-user-select:text}
button,canvas,a{touch-action:manipulation}
#race-canvas,#touch-controls button{touch-action:none}
#race-screen{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
.topbar{padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}
#content{padding-bottom:max(30px,env(safe-area-inset-bottom))}
dialog{max-height:90dvh;overflow:auto}
.portal-profile{display:flex;gap:8px;align-items:center;font-size:14px;color:var(--text)}
.portal-profile img{width:28px;height:28px;border-radius:50%}
.portal-privacy{font:14px var(--mono);color:var(--muted)}
#platform-busy{position:fixed;inset:0;z-index:2147483647;display:grid;place-items:center;background:#0c1015bb;color:var(--text);font:18px var(--mono)}
#platform-busy[hidden]{display:none}
.platform-busy #shell,.platform-busy #race-screen,.platform-busy dialog{pointer-events:none}
.race-help{font-size:12px}
.hud-overline,.hud-bar-label,.weapon-block small{font-size:12px}
@media(max-height:620px) and (min-width:700px){
 .topbar{min-height:52px;padding-top:6px;gap:8px}.topbar nav{height:36px;gap:20px}
 .topbar .brand-mark{font-size:30px}.brand-words{font-size:16px}.wallet-label{font-size:10px}
 #content{padding-top:12px}.section-heading{margin-bottom:12px}.section-heading h1{font-size:30px}
 .race-top{top:12px;left:18px;right:70px}.race-bottom{bottom:35px;left:18px;right:18px}
 .leaderboard{top:105px;left:18px}.leader-row{padding:3px 7px;font-size:12px}.leaderboard .rival-style{display:none}
 .speed-number{font-size:46px}.speed-panel{width:145px}.weapon-block{min-width:100px;padding:9px}.weapon-block b{font-size:13px}
 .race-help{font-size:10px;bottom:8px}.race-position{font-size:38px}.hud-stat{font-size:23px}
}
@media(pointer:coarse){
 .race-help{display:none}.race-bottom{bottom:115px}.touch-drive,.touch-combat{bottom:max(12px,env(safe-area-inset-bottom))}
 .touch-drive button,.touch-combat button{min-height:44px;min-width:44px}
}
