:root{
  --bg:#07090f;--panel:#0d1320;--panel2:#101827;--line:#273044;--text:#f5f7fb;
  --muted:#96a0b5;--orange:#ff7a00;--purple:#9b19ff;--green:#19f58b;--red:#ff3d4d;
}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--bg);color:var(--text);font-family:"Segoe UI",Arial,sans-serif}button,input{font:inherit}button{cursor:pointer}[hidden]{display:none!important}
body{background:radial-gradient(circle at 15% -10%,rgba(155,25,255,.10),transparent 34rem),radial-gradient(circle at 85% -15%,rgba(255,122,0,.08),transparent 34rem),var(--bg)}
.app-shell{height:100%;display:grid;grid-template-rows:76px minmax(0,1fr)}
.topbar{display:grid;grid-template-columns:minmax(430px,1fr) auto auto;gap:24px;align-items:center;padding:0 22px;border-bottom:1px solid #202738;background:#080c13f2;z-index:20}
.brand{display:flex;align-items:center;color:inherit;text-decoration:none;min-width:0}.brand-logo{width:54px;height:54px;border-radius:50%;object-fit:cover;margin-right:12px}.brand-copy{display:flex;align-items:center;min-width:0}.brand-name{font-size:21px;font-weight:900;letter-spacing:.05em;white-space:nowrap}.brand-name span{color:var(--orange)}.brand-divider{width:1px;height:34px;background:var(--orange);margin:0 20px}.page-title{font-size:24px;font-weight:800}.tagline{font-size:10px;letter-spacing:.19em;color:#8e99ad;margin-top:2px}
.top-status{display:flex;align-items:center;gap:8px;color:#abb4c5;font-size:10px;font-weight:900;letter-spacing:.08em}.status-dot{width:9px;height:9px;border-radius:50%;background:#596273}.status-dot.online{background:var(--green);box-shadow:0 0 12px #19f58b99}
.tabs{height:100%;display:flex;align-items:stretch}.tab{min-width:110px;border:0;background:transparent;color:#9ea8bb;font-weight:800;position:relative}.tab.active{color:#fff}.tab.active:after{content:"";position:absolute;left:12px;right:12px;bottom:0;height:4px;border-radius:4px 4px 0 0;background:linear-gradient(90deg,var(--orange),var(--purple))}
.main-shell{min-height:0;overflow:hidden}.state-screen{display:none;height:100%;min-height:0;padding:16px}.state-screen.active{display:block}
.eyebrow{color:var(--orange);font-size:11px;font-weight:900;letter-spacing:.18em}

/* Lobby */
.lobby-screen{padding:0!important;overflow:auto}.lobby-hero{position:relative;min-height:calc(100vh - 76px - 185px);display:grid;grid-template-columns:minmax(0,1.35fr) minmax(330px,.65fr);align-items:center;gap:50px;padding:52px clamp(26px,5vw,78px);overflow:hidden}.lobby-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.78) brightness(.48)}.lobby-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,7,12,.92) 0%,rgba(5,7,12,.70) 48%,rgba(5,7,12,.84) 100%),linear-gradient(0deg,#07090f 0%,transparent 28%)}.lobby-copy,.lobby-card{position:relative;z-index:2}.lobby-copy h1{margin:13px 0 16px;font-size:clamp(48px,5.2vw,82px);line-height:.98;letter-spacing:-.035em;max-width:850px}.lobby-copy h1 span{color:#f3f4fa}.lobby-copy>p{max-width:670px;color:#c0c6d1;font-size:17px;line-height:1.55}.lobby-live-row{display:flex;gap:11px;flex-wrap:wrap;margin-top:30px}.live-fact{min-width:170px;display:flex;align-items:center;gap:11px;padding:12px 14px;border:1px solid #ffffff20;border-radius:12px;background:#090e17c7;backdrop-filter:blur(6px)}.live-fact b,.live-fact small{display:block}.live-fact b{font-size:12px}.live-fact small{font-size:9px;color:#8f9aaf;margin-top:3px}.fact-dot{width:11px;height:11px;border-radius:50%;background:#626b7d}.fact-dot.online{background:var(--green);box-shadow:0 0 13px #19f58b99}.fact-icon{font-size:26px;color:var(--orange)}
.lobby-card{border:1px solid #323a4c;border-radius:20px;background:linear-gradient(145deg,rgba(17,24,39,.96),rgba(7,10,16,.96));padding:28px;box-shadow:0 28px 90px #0009}.card-kicker{font-size:10px;letter-spacing:.16em;color:var(--purple);font-weight:900}.lobby-card h2{font-size:28px;margin:8px 0 8px}.lobby-card>p{color:#9aa5b8;margin:0 0 24px;line-height:1.5}.field-label{display:block;font-size:9px;font-weight:900;letter-spacing:.12em;color:#98a3b7;margin:13px 0 7px}.text-input{width:100%;height:48px;border:1px solid #30394b;border-radius:10px;background:#070b12;color:#fff;padding:0 13px;font-size:16px;outline:none}.text-input:focus{border-color:var(--orange);box-shadow:0 0 0 3px #ff7a001c}.primary-btn,.secondary-btn{height:48px;border-radius:10px;font-weight:900;letter-spacing:.07em}.primary-btn{width:100%;margin-top:13px;border:0;background:linear-gradient(90deg,var(--orange),#ff9a00);color:#090909}.primary-btn:disabled{opacity:.45;cursor:default}.secondary-btn{width:100%;border:1px solid #303a4e;background:#171f2d;color:#fff}.form-message{min-height:18px;margin-top:9px;color:#929db1;font-size:10px;letter-spacing:.05em}.controller-check{display:flex;justify-content:space-between;align-items:center;margin-top:15px;padding:12px;border:1px solid #293244;border-radius:10px;background:#0a0f18}.controller-check small,.controller-check b{display:block}.controller-check small{font-size:8px;color:#838fa4;letter-spacing:.12em}.controller-check b{font-size:12px;margin-top:3px}.controller-dot{width:12px;height:12px;border-radius:50%;background:#5d6677}.controller-dot.online{background:var(--green);box-shadow:0 0 12px #19f58b99}
.lobby-footer-grid{min-height:185px;display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#242b39;border-top:1px solid #252d3a}.lobby-footer-grid article{padding:25px clamp(24px,4vw,58px);background:#090d14}.lobby-footer-grid article span{color:var(--orange);font-size:10px;font-weight:900}.lobby-footer-grid article b{display:block;font-size:18px;margin:8px 0}.lobby-footer-grid article p{margin:0;color:#8792a7;font-size:12px;line-height:1.5}

/* Waiting */
.waiting-screen{background:#070a10}.waiting-layout{height:100%;display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:14px}.waiting-main{position:relative;overflow:hidden;border:1px solid #2b3344;border-radius:18px;min-height:0}.waiting-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.68) brightness(.46)}.waiting-shade{position:absolute;inset:0;background:linear-gradient(90deg,#080c13ec 0%,#080c1399 48%,#080c1366 100%)}.waiting-title{position:absolute;left:44px;top:48px;z-index:2}.waiting-title h1{font-size:58px;margin:8px 0 8px}.waiting-title p{color:#aab4c5;margin:0}.queue-big{position:absolute;z-index:2;left:44px;bottom:120px}.queue-big small{display:block;color:#939db1;font-size:10px;letter-spacing:.15em}.queue-big strong{display:block;font-size:100px;line-height:.92;margin-top:8px;background:linear-gradient(90deg,var(--orange),var(--purple));-webkit-background-clip:text;color:transparent}.queue-big span{display:block;color:#bdc5d3;margin-top:10px;font-size:13px}.waiting-pulse{position:absolute;left:44px;bottom:46px;z-index:2;display:flex;align-items:center;gap:8px;color:#aab4c4;font-size:11px}.waiting-pulse i{width:7px;height:7px;border-radius:50%;background:var(--purple);animation:pulse 1.2s infinite}.waiting-pulse i:nth-child(2){animation-delay:.18s}.waiting-pulse i:nth-child(3){animation-delay:.36s}@keyframes pulse{0%,80%,100%{opacity:.25;transform:scale(.75)}40%{opacity:1;transform:scale(1.1)}}
.waiting-side{display:grid;grid-template-rows:auto minmax(0,1fr);gap:14px;min-height:0}.waiting-card{border:1px solid #2d3547;border-radius:15px;background:linear-gradient(180deg,#101622,#0b1019);padding:16px;min-height:0}.panel-title{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:900;letter-spacing:.08em;color:#cdd4e2;margin-bottom:12px}.panel-title span{width:25px;height:2px;background:var(--orange)}.panel-title .purple-line{background:var(--purple)}.waiting-kv{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid #252d3d}.waiting-kv span{color:#8e99ad;font-size:11px}.waiting-kv b{font-size:12px;text-align:right}.waiting-drivers{display:grid;gap:7px;overflow:auto}.waiting-driver{display:grid;grid-template-columns:10px 1fr auto;gap:9px;align-items:center;padding:10px;border:1px solid #283143;border-radius:9px;background:#0b111b}.waiting-driver i{width:9px;height:9px;border-radius:50%;background:var(--driver-colour,#8893a7)}.waiting-driver small{color:#8d98ac}.empty-note{color:#7f8a9e;font-size:11px;padding:12px 0}

/* Drive */
.drive-screen{padding:16px}.drive-grid{height:100%;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:14px;max-width:1900px;margin:auto}.left-stack{min-width:0;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) 86px;gap:12px}.camera-panel{position:relative;min-height:0;overflow:hidden;border-radius:16px;background:#000;border:1px solid #3b2b58;box-shadow:0 0 30px #8d19ff18}.camera-panel:before{content:"";position:absolute;inset:0;border-radius:16px;padding:2px;background:linear-gradient(120deg,var(--orange),transparent 20%,transparent 76%,var(--purple));-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;z-index:4;pointer-events:none}.accent-line{position:absolute;top:0;left:18px;right:18px;height:4px;z-index:5;background:linear-gradient(90deg,var(--orange),transparent 36%,transparent 64%,var(--purple))}#video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#000;z-index:2}.camera-head{position:absolute;z-index:6;top:14px;left:14px;right:14px;height:44px;display:flex;align-items:center;gap:14px;pointer-events:none}.camera-label,.live-pill,.icon-btn,.state-chip-top{background:#080c13dc;border:1px solid #2b3342;border-radius:9px;height:42px;display:flex;align-items:center}.camera-label{padding:0 15px;font-weight:800}.live-pill{padding:0 14px;color:#ff5260;font-weight:900}.live-pill span{width:9px;height:9px;border-radius:50%;background:var(--red);box-shadow:0 0 12px var(--red);margin-right:8px}.state-chip-top{padding:0 12px;color:#d1a2ff;font-size:10px;font-weight:900;letter-spacing:.1em}.icon-btn{pointer-events:auto;margin-left:auto;width:42px;justify-content:center;color:#fff;font-size:22px}.assigned-overlay{position:absolute;z-index:5;inset:0;display:grid;place-content:center;text-align:center;padding:30px;background:linear-gradient(180deg,#070b1290,#070b12c9);backdrop-filter:blur(2px)}.assigned-overlay[hidden]{display:none}.assigned-badge{justify-self:center;border:1px solid #b34cff;border-radius:999px;padding:7px 11px;color:#c47aff;font-size:9px;font-weight:900;letter-spacing:.12em}.assigned-overlay h2{font-size:38px;margin:12px 0 8px}.assigned-overlay p{margin:0 auto;color:#b0b9ca;max-width:520px}.assigned-meta{margin-top:17px;color:#f0b24b;font-size:11px;font-weight:900;letter-spacing:.12em}
/* V1.16 fullscreen rules follow the lobby styles below. */
.status-strip{min-height:86px;display:grid;grid-template-columns:1.25fr repeat(4,1fr) auto;background:linear-gradient(180deg,#101623,#0c111b);border:1px solid #2b3343;border-radius:14px;overflow:hidden}.stat{min-width:0;padding:12px 16px;display:flex;align-items:center;gap:13px;border-right:1px solid #2a3243}.stat b{display:block;font-size:20px}.stat small{display:block;font-size:10px;color:#98a2b6;letter-spacing:.08em;margin-top:4px}.stat-icon{font-size:27px;color:#c6cee0}.stat-icon.good{color:var(--green)}.stat-icon.purple{color:#b53aff}.battery-icon{color:var(--green);font-size:34px}.mini-car{width:58px;height:42px;border-radius:12px;display:grid;place-items:center;font-weight:1000;background:linear-gradient(135deg,var(--purple),var(--orange));color:#090b0f;transform:skewX(-10deg)}.stop-btn{align-self:center;margin:0 14px;height:48px;min-width:90px;padding:0 18px;border:1px solid #ff5a65;background:#4b1017;color:#fff;border-radius:10px;font-weight:1000;letter-spacing:.09em}.battery-copy{min-width:0;flex:1}.battery-numbers{display:flex;align-items:baseline;gap:8px;white-space:nowrap}.battery-numbers span{font-size:11px;color:#aeb7c7;font-weight:700}.battery-bar{height:6px;margin:6px 0 2px;border-radius:999px;background:#222a38;overflow:hidden;border:1px solid #30394b}.battery-fill{height:100%;width:0%;background:linear-gradient(90deg,#ff7a00,#19f58b);transition:width .25s ease}
.sidebar{min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:12px;overflow:hidden}.panel{border:1px solid #2c3446;background:linear-gradient(180deg,#0f1522,#0b1019);border-radius:14px;padding:14px}.session-card{min-height:104px;border:1px solid #273044;background:#101724;border-radius:12px;padding:16px;display:grid;grid-template-columns:44px 1fr auto;gap:12px;align-items:center}.session-icon{font-size:36px;color:var(--orange)}.session-card b{font-size:18px}.session-card p{margin:5px 0 0;font-size:11px;color:#a4aec1}.session-status{text-align:right;border-left:1px solid #2a3242;padding-left:14px}.session-status b{font-size:11px;color:var(--green)}.session-status small{display:block;font-size:8px;color:#8893a8;margin-top:4px}.arena-map-wrap{position:relative;border-radius:11px;overflow:hidden;border:1px solid #32394a;background:#06090e}.arena-map{width:100%;height:auto;display:block}.map-note{position:absolute;left:8px;right:8px;bottom:8px;padding:7px 9px;background:#080c13d9;border:1px solid #ffffff1c;border-radius:7px;font-size:9px;color:#b8c1d0}.drivers-panel{min-height:0;overflow:auto}.drivers-title{justify-content:space-between}.drivers-title>div{display:flex;align-items:center;gap:8px}.hub-status{font-size:9px;color:#ff6b77}.hub-status.online{color:var(--green)}.drivers-list{display:grid;gap:7px}.driver-row{display:grid;grid-template-columns:12px 1fr auto;gap:9px;align-items:center;padding:9px;border:1px solid #272f40;border-radius:9px;background:#0c121d}.driver-row i{width:10px;height:10px;border-radius:50%;background:#7d8799}.driver-main span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.driver-main small{display:block;margin-top:3px;color:#8994a8;font-size:9px}.driver-row em{font-size:8px;font-style:normal;font-weight:900;background:#252d3d;color:#b8c0cf;border-radius:10px;padding:3px 7px}.assigned-driver{box-shadow:inset 3px 0 0 var(--driver-colour,#888)}.assigned-driver i{background:var(--driver-colour,#888)}
.touch-pad{position:absolute;z-index:8;left:24px;bottom:24px;width:210px;height:210px;border:2px solid #ffffff55;border-radius:50%;background:#0b1016aa;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;overscroll-behavior:contain}.touch-h,.touch-v{position:absolute;background:#ffffff28}.touch-h{left:8%;right:8%;top:50%;height:1px}.touch-v{top:8%;bottom:8%;left:50%;width:1px}.touch-stick{position:absolute;width:62px;height:62px;border-radius:50%;background:#e8ebf0c9;border:3px solid #767f91;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none}.touch-h,.touch-v{pointer-events:none}

/* Results */
.results-screen{overflow:auto;background:radial-gradient(circle at 50% 20%,rgba(155,25,255,.14),transparent 32rem),#07090f}.results-wrap{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:45px 24px;text-align:center}.results-kicker{color:var(--orange);font-size:11px;font-weight:900;letter-spacing:.2em}.results-wrap h1{font-size:58px;margin:10px 0 6px}.results-copy{color:#919caf;margin:0}.score-hero{margin:32px 0 24px;min-width:280px;padding:28px 34px;border:1px solid #3b3452;border-radius:22px;background:linear-gradient(145deg,#14101f,#0a0e16);box-shadow:0 24px 80px #0008}.score-hero small{display:block;color:#939caf;font-size:10px;letter-spacing:.18em}.score-hero strong{display:block;font-size:96px;line-height:1;margin:9px 0;background:linear-gradient(90deg,var(--orange),var(--purple));-webkit-background-clip:text;color:transparent}.score-hero span{color:#aab4c5;font-size:11px}.results-grid{display:grid;grid-template-columns:repeat(4,minmax(130px,180px));gap:10px}.results-grid div{padding:16px;border:1px solid #283143;border-radius:12px;background:#0d131f}.results-grid small,.results-grid b{display:block}.results-grid small{font-size:8px;color:#8994a8;letter-spacing:.13em}.results-grid b{font-size:16px;margin-top:7px}.results-btn{max-width:320px;margin-top:25px}

/* Settings */
.settings-screen{overflow:auto}.settings-grid{max-width:1500px;margin:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.settings-card{border:1px solid #2d3548;background:linear-gradient(180deg,#101622,#0a0f18);border-radius:14px;padding:20px}.settings-card h2{margin:4px 0 20px;font-size:23px}.setting-line{min-height:62px;border-top:1px solid #232c3c;display:flex;justify-content:space-between;align-items:center;gap:14px}.setting-line b,.setting-line small{display:block}.setting-line small{font-size:11px;color:#909aad;margin-top:3px}.setting-line strong{color:var(--green);font-size:12px}.control-label{display:flex;justify-content:space-between;margin:18px 0 8px;font-weight:700}input[type=range]{width:100%;accent-color:var(--orange)}.check-row{display:flex;align-items:center;gap:10px;margin-top:18px;color:#cbd2df}.check-row input{width:18px;height:18px;accent-color:var(--purple)}.mapping-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mapping-grid div{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid #273044;border-radius:9px;background:#101622}kbd{min-width:90px;text-align:center;padding:5px 7px;background:#080c13;border:1px solid #353e52;border-radius:6px}.mapping-grid span{font-size:13px;color:#aeb6c6}.muted{color:#8f99ad;font-size:12px;line-height:1.55}
@media(max-width:1100px){html,body{overflow:auto}.app-shell{height:auto;min-height:100vh}.main-shell{overflow:visible}.topbar{grid-template-columns:1fr auto}.top-status{display:none}.lobby-hero{grid-template-columns:1fr;min-height:auto}.lobby-card{max-width:520px}.lobby-footer-grid{grid-template-columns:1fr}.waiting-layout,.drive-grid{grid-template-columns:1fr;height:auto}.waiting-main{min-height:600px}.sidebar{overflow:visible}.left-stack{display:block}.camera-panel{aspect-ratio:16/9}.status-strip{margin-top:12px;grid-template-columns:repeat(3,1fr)}.settings-grid{grid-template-columns:1fr}}
@media(max-width:680px){.topbar{height:auto;min-height:70px;padding:9px 12px;grid-template-columns:1fr}.brand-divider,.tagline,.brand-name{display:none}.tabs{height:42px}.state-screen{padding:8px}.lobby-copy h1{font-size:46px}.lobby-hero{padding:34px 18px}.waiting-layout{display:block}.waiting-side{margin-top:10px}.waiting-main{min-height:520px}.queue-big strong{font-size:82px}.results-grid{grid-template-columns:1fr 1fr}.status-strip{grid-template-columns:1fr 1fr}.mapping-grid{grid-template-columns:1fr}}

/* V1.7 accounts / credits / play codes */
.auth-tabs{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;margin:18px 0 14px}
.auth-tab{min-height:36px;border:1px solid #2e3749;border-radius:8px;background:#0b1018;color:#8f9aaf;font-size:9px;font-weight:900;letter-spacing:.07em}
.auth-tab.active{color:#fff;border-color:var(--orange);background:#3a200b}
.prototype-access{margin-top:16px;border-top:1px solid #252e3f;padding-top:12px}
.prototype-access summary{cursor:pointer;color:#707b8e;font-size:9px;letter-spacing:.06em}
.prototype-btn{margin-top:9px}
.account-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0;padding:14px;border:1px solid #2b3447;border-radius:12px;background:#0a1019}
.account-summary small,.account-summary b,.account-summary span{display:block}
.account-summary small{font-size:8px;color:#8995aa;letter-spacing:.12em}
.account-summary b{margin-top:4px;font-size:15px}
.account-summary span{margin-top:3px;color:#79869b;font-size:9px}
.credit-balance{text-align:right;min-width:82px}
.credit-balance strong{font-size:30px!important;line-height:1;color:var(--orange)}
.credit-balance small{margin-top:5px}
.logout-btn{margin-top:8px}
.code-input{text-transform:uppercase;letter-spacing:.12em;font-weight:800}


/* V1.8 free checkout bridge — ready to swap to Stripe later */
.buy-play-card{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:2px 0 10px;padding:14px 15px;border:1px solid #3a3348;border-radius:12px;background:linear-gradient(135deg,#15101e,#0b111b)}
.buy-play-card small,.buy-play-card b,.buy-play-card span{display:block}.buy-play-card small{font-size:8px;color:#9ba5b8;letter-spacing:.13em}.buy-play-card b{margin-top:4px;font-size:17px}.buy-play-card span{margin-top:3px;font-size:9px;color:#818da2}.buy-play-card strong{font-size:25px;color:var(--green);white-space:nowrap}.buy-play-btn{margin-top:0}.checkout-note{margin:8px 2px 13px;text-align:center;color:#6f7b91;font-size:8px;letter-spacing:.03em}.code-divider{display:flex;align-items:center;gap:10px;margin:12px 0;color:#667287;font-size:8px;font-weight:900;letter-spacing:.11em}.code-divider:before,.code-divider:after{content:"";height:1px;flex:1;background:#273044}

.settings-link{display:flex;align-items:center;justify-content:center;text-decoration:none;margin:0}

.account-credit-tools{margin:4px 0 16px}.credit-pack-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.credit-pack-btn{min-height:62px;border:1px solid #303a4e;border-radius:10px;background:#111824;color:#fff;padding:8px;cursor:pointer}.credit-pack-btn:hover{border-color:var(--orange)}.credit-pack-btn:disabled{opacity:.45;cursor:default}.credit-pack-btn b,.credit-pack-btn span{display:block}.credit-pack-btn b{font-size:10px;letter-spacing:.05em}.credit-pack-btn span{margin-top:5px;font-size:13px;color:var(--green);font-weight:900}@media(max-width:520px){.credit-pack-grid{grid-template-columns:1fr}}


/* V1.14 — wide account lobby. Presentation only; auth and checkout are unchanged.
   :has follows the existing hidden attribute, so no JS/state changes are needed.
   Keep overflow available on short screens and at increased browser zoom. */
.lobby-hero{
  min-height:calc(100vh - 76px - 112px);
  min-height:calc(100dvh - 76px - 112px);
  padding:24px clamp(24px,3vw,64px);
  gap:32px;
}
.lobby-card{padding:24px;min-width:0}
.lobby-card h2{font-size:26px}
.lobby-card>p{font-size:14px;margin-bottom:18px}
.lobby-hero:has(#accountSignedIn:not([hidden])){
  grid-template-columns:minmax(210px,.65fr) minmax(660px,1.65fr);
}
.lobby-card:has(#accountSignedIn:not([hidden])){
  width:100%;max-width:1040px;justify-self:end;
}
.lobby-hero:has(#accountSignedIn:not([hidden])) .lobby-copy h1{
  font-size:clamp(36px,3.3vw,64px);line-height:1.04;
}
.lobby-hero:has(#accountSignedIn:not([hidden])) .lobby-copy>p{
  font-size:14px;line-height:1.5;
}
.lobby-hero:has(#accountSignedIn:not([hidden])) .lobby-live-row{
  margin-top:20px;gap:8px;
}
.account-lobby-grid{
  display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  align-items:start;gap:24px;
}
.account-wallet,.driver-setup{min-width:0}
.account-wallet .account-summary{margin:0 0 14px;padding:14px;min-height:76px}
.account-summary>div:first-child{min-width:0}
.account-summary b,.account-summary span{overflow-wrap:anywhere}
.account-wallet .credit-balance{min-width:64px;flex-shrink:0}
.account-wallet .account-credit-tools{margin:0}
.account-wallet .code-divider{margin:12px 0 10px}
.account-wallet .credit-pack-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.account-wallet .credit-pack-btn{min-width:0;min-height:60px;padding:8px 4px}
.account-wallet .credit-pack-btn b{font-size:10px;letter-spacing:.03em}
.account-wallet .credit-pack-btn span{font-size:13px}
.account-wallet .checkout-note{margin:8px 0 10px;font-size:10px;line-height:1.4}
.account-wallet .field-label{margin:10px 0 6px}
.account-wallet .code-input{font-size:14px;letter-spacing:.06em}
.account-wallet #redeemGiftBtn{margin-top:8px;font-size:12px;letter-spacing:.05em}
.account-wallet .form-message:empty{display:none}
.account-lobby-grid .text-input{height:44px}
.account-lobby-grid .form-message{line-height:1.5;overflow-wrap:anywhere}
.driver-setup{
  padding:18px;border:1px solid #293244;border-radius:14px;
  background:linear-gradient(145deg,#111a28,#0a1019);
}
.driver-setup .panel-title{font-size:11px;margin-bottom:18px}
.driver-setup .field-label{margin:0 0 7px}
.driver-setup .controller-check{margin-top:12px;gap:12px}
.driver-setup .controller-check>div{min-width:0}
.driver-setup .controller-check b{overflow-wrap:anywhere}
.driver-setup .controller-dot{flex-shrink:0}
.driver-setup .primary-btn,.driver-setup .secondary-btn{
  height:44px;font-size:12px;letter-spacing:.05em;
}
.driver-setup .primary-btn{margin-top:12px}
.driver-setup .logout-btn{background:transparent}
.driver-setup .form-message{margin-top:10px}

@media(min-width:720px){
  .lobby-footer-grid{grid-template-columns:repeat(3,minmax(0,1fr));min-height:112px}
  .lobby-footer-grid article{padding:16px clamp(18px,2.5vw,44px)}
  .lobby-footer-grid article b{font-size:15px;margin:6px 0}
  .lobby-footer-grid article p{font-size:11px;line-height:1.4}
}
@media(min-width:1000px) and (max-height:820px){
  .lobby-hero{padding-top:16px;padding-bottom:16px}
  .lobby-card{padding:20px}
  .lobby-card h2{font-size:24px}
  .lobby-card>p{margin-bottom:14px}
  .lobby-hero:has(#accountSignedIn:not([hidden])) .lobby-copy h1{font-size:38px}
  .lobby-hero:has(#accountSignedIn:not([hidden])) .lobby-live-row{margin-top:16px}
  .lobby-hero:has(#accountSignedIn:not([hidden])) .live-fact{padding:10px 12px}
}
@media(max-width:999px){
  .lobby-hero:has(#accountSignedIn:not([hidden])){
    grid-template-columns:minmax(0,1fr);gap:14px;padding:16px 20px;min-height:0;
  }
  .lobby-card:has(#accountSignedIn:not([hidden])){
    justify-self:center;max-width:880px;
  }
  /* Returning players keep live arena status, without the tall marketing intro. */
  .lobby-hero:has(#accountSignedIn:not([hidden])) .lobby-copy{width:100%;max-width:880px;justify-self:center}
  .lobby-hero:has(#accountSignedIn:not([hidden])) .lobby-copy>.eyebrow,
  .lobby-hero:has(#accountSignedIn:not([hidden])) .lobby-copy>h1,
  .lobby-hero:has(#accountSignedIn:not([hidden])) .lobby-copy>p{display:none}
  .lobby-hero:has(#accountSignedIn:not([hidden])) .lobby-live-row{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;gap:8px;
  }
  .lobby-hero:has(#accountSignedIn:not([hidden])) .live-fact{
    min-width:0;padding:10px 12px;gap:8px;
  }
  .lobby-hero:has(#accountSignedIn:not([hidden])) .live-fact>div{min-width:0}
  .lobby-hero:has(#accountSignedIn:not([hidden])) .live-fact b{overflow-wrap:anywhere}
  .lobby-card:has(#accountSignedIn:not([hidden])){padding:20px}
  .account-lobby-grid{gap:18px}
  .driver-setup{padding:16px}
}
@media(max-width:719px){
  .account-lobby-grid{grid-template-columns:minmax(0,1fr);gap:20px}
  .lobby-hero:has(#accountSignedIn:not([hidden])){padding:16px 12px}
  .lobby-card:has(#accountSignedIn:not([hidden])){padding:20px 16px}
  .lobby-hero:has(#accountSignedIn:not([hidden])) .live-fact{padding:9px 8px;gap:6px}
  .lobby-hero:has(#accountSignedIn:not([hidden])) .live-fact b{font-size:10px}
  .lobby-hero:has(#accountSignedIn:not([hidden])) .live-fact small{font-size:8px}
  .lobby-hero:has(#accountSignedIn:not([hidden])) .fact-icon{font-size:18px}
  .lobby-hero:has(#accountSignedIn:not([hidden])) .fact-dot{width:8px;height:8px;flex-shrink:0}
  .driver-setup .primary-btn,.driver-setup .secondary-btn{font-size:13px}
}

@media(min-width:720px) and (max-width:999px){
  .lobby-hero:has(#accountSignedIn:not([hidden])){padding-top:12px;padding-bottom:12px;gap:10px}
  .lobby-card:has(#accountSignedIn:not([hidden])){padding:18px}
  .lobby-card:has(#accountSignedIn:not([hidden]))>p{margin-bottom:10px}
}

/* The original narrow-screen header used a fixed 76px grid row even after its
   tabs wrapped. Give that row its actual height and one page scrollbar. */
@media(max-width:1100px){
  html:has(#lobbyScreen.active),body:has(#lobbyScreen.active){
    height:auto;min-height:100%;overflow:visible;
  }
  html:has(#lobbyScreen.active){overflow-x:hidden;overflow-y:auto}
  #lobbyScreen.active{height:auto;overflow:visible}
}
@media(max-width:680px){
  .app-shell{grid-template-rows:auto minmax(0,1fr)}
  .topbar{row-gap:4px}
  .lobby-footer-grid article{padding:16px 20px}
  .lobby-footer-grid article b{font-size:15px;margin:6px 0}
  .lobby-footer-grid article p{font-size:11px}
}


/* V1.16 — slim fullscreen instrument bar.
   All existing telemetry IDs and STOP/exit handlers are preserved.
   The bar follows the assigned CAR colour; safety colours stay distinct.
   Only fullscreen uses this layout; the wide lobby and normal camera do not. */
.fs-hud{display:none}
.camera-panel.is-camera-fullscreen{
  --fs-hud-height:86px;
  width:100%;height:100%;max-width:none;max-height:none;aspect-ratio:auto;
  border:0;border-radius:0;box-shadow:none;
}
.camera-panel.is-camera-fullscreen:before,.camera-panel.is-camera-fullscreen>.accent-line{display:none}
.camera-panel.is-camera-fullscreen #video{
  object-fit:contain;bottom:auto;height:calc(100% - var(--fs-hud-height));
}
.camera-panel.is-camera-fullscreen .camera-head{display:none}
.camera-panel.is-camera-fullscreen .assigned-overlay{bottom:var(--fs-hud-height)}
.camera-panel.is-camera-fullscreen .fs-hud{
  display:grid;grid-template-columns:112px minmax(0,1fr) 258px auto;
  grid-template-areas:"identity metrics status actions";
  align-items:center;gap:14px;position:absolute;z-index:12;
  left:0;right:0;bottom:0;top:auto;max-width:none;
  padding:10px max(16px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));
  border:0;border-top:3px solid var(--car-accent,#8994a7);border-radius:0;
  background:linear-gradient(180deg,#111722,#090e16);
  box-shadow:0 -8px 28px #0005;color:var(--text);
}
.fs-hud-head{grid-area:identity;min-width:0;display:grid;gap:6px;align-content:center}
.fs-car{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;min-width:0}
.fs-car b{font-size:17px;letter-spacing:.04em;line-height:1.1;color:var(--car-accent,#c3cede);white-space:nowrap}
.fs-car small{font-size:8px;color:#aab6c9;letter-spacing:.08em}
.fs-state{display:inline-flex;justify-self:start;align-items:center;gap:5px;white-space:nowrap;
  padding:3px 6px;background:#241733;border:1px solid #6e488a;border-radius:5px;color:#d1a2ff;
  font-size:8px;font-weight:900;letter-spacing:.08em;line-height:1.1}
.fs-state[data-state="live"]{background:#31141b;color:#ff8d98;border-color:#74313f}
.fs-state[data-state="live"]:before{content:"";width:5px;height:5px;border-radius:50%;background:#ff5260}
.fs-state[data-state="offline"]{background:#32121a;color:#ff8c95;border-color:#aa394a}
.fs-telemetry-grid{grid-area:metrics;min-width:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0}
.hud-chip{min-width:0;align-self:stretch;border-left:1px solid #ffffff1a;padding:0 10px;}
.hud-chip small{display:block;color:#aab6c9;font-size:8px;line-height:1.2;letter-spacing:.07em;white-space:nowrap}
.hud-chip b{display:block;margin-top:4px;font-size:18px;line-height:1.12;font-variant-numeric:tabular-nums;white-space:nowrap}
.hud-chip>span{display:block;margin-top:4px;font-size:9px;line-height:1.15;color:#9caabe;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#fsTimeRemaining{font-size:21px}
#fsController{font-size:12px;line-height:1.68}
.fs-status{grid-area:status;min-width:0;display:grid;grid-template-columns:94px 150px;gap:14px;align-items:center}
.fs-inputs{display:grid;gap:7px;min-width:0;border-left:1px solid #ffffff1a;padding-left:12px;
  color:#aab6c9;font-size:8px;letter-spacing:.02em}
.fs-inputs>span{display:flex;justify-content:space-between;align-items:center;gap:5px;white-space:nowrap}
.fs-inputs b{color:#edf3ff;font-size:10px;font-variant-numeric:tabular-nums}
.fs-links{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px;border-left:1px solid #ffffff1a;padding-left:12px;min-width:0}
.fs-links>span{display:flex;flex-wrap:wrap;row-gap:2px;min-width:0;justify-content:space-between;align-items:center;gap:5px;color:#aab6c9;font-size:8px;white-space:nowrap}
.fs-links b{font-size:8px;color:#afbbcc;font-weight:800}
.fs-actions{grid-area:actions;display:flex;align-items:center;gap:8px;min-width:0}
.fs-actions .stop-btn,.fs-exit-btn{
  height:44px;min-width:0;margin:0;padding:0 14px;border-radius:8px;
  font-size:10px;font-weight:900;letter-spacing:.05em;touch-action:manipulation;white-space:nowrap;
}
.fs-actions .stop-btn{background:#a51f2d;border-color:#ff707c;font-size:13px;min-width:72px}
.fs-actions .stop-btn:hover{background:#c02738}
.fs-exit-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #4d5c72;background:#1a2536;color:#fff}
.fs-exit-btn svg{flex:none}
.fs-exit-btn:hover{background:#293a51;border-color:#91a3c0}
.fs-actions button:focus-visible,.icon-btn:focus-visible{outline:3px solid #fff;outline-offset:3px}
.fs-actions button:disabled{opacity:.65;cursor:wait}
.camera-message{position:absolute;z-index:13;left:14px;right:14px;bottom:14px;padding:12px;
  border:1px solid #b47742;border-radius:9px;background:#211a10ed;color:#ffd9a8;font-size:12px}
.camera-panel.is-camera-fullscreen .camera-message{bottom:calc(var(--fs-hud-height) + 12px)}
.camera-panel.is-camera-fullscreen .touch-pad{bottom:calc(var(--fs-hud-height) + 14px)}
@media(max-width:1199px){
  .camera-panel.is-camera-fullscreen{--fs-hud-height:104px}
  .camera-panel.is-camera-fullscreen .fs-hud{
    grid-template-columns:100px minmax(0,1fr) auto;
    grid-template-areas:"identity metrics actions" "status status status";
    gap:8px 12px;padding-top:8px;padding-bottom:max(8px,env(safe-area-inset-bottom));
  }
  .fs-car b{font-size:16px}
  .hud-chip{padding:0 8px}
  .hud-chip b{font-size:17px}
  .fs-status{display:flex;justify-content:space-between;gap:12px}
  .fs-inputs{display:flex;gap:12px;padding-left:0;border:0}
  .fs-inputs>span{gap:4px}
  .fs-links{display:flex;justify-content:flex-end;gap:18px;padding:0;border:0}
  .fs-links>span{gap:6px}
  .fs-exit-wide{display:none}
  .fs-actions .stop-btn{min-width:64px}
  .fs-actions .stop-btn,.fs-exit-btn{padding:0 12px}
}
@media(min-width:700px) and (max-width:900px){
  .camera-panel.is-camera-fullscreen .fs-hud{grid-template-columns:86px minmax(0,1fr) auto;gap:8px;padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
  .hud-chip{padding:0 6px}
  .hud-chip small{font-size:7px}
  .hud-chip b{font-size:15px}
  .hud-chip>span{font-size:8px}
  #fsController{font-size:10px;line-height:1.68}
  #fsTimeRemaining{font-size:18px}
}
@media(max-width:699px){
  .camera-panel.is-camera-fullscreen{--fs-hud-height:146px}
  .camera-panel.is-camera-fullscreen .fs-hud{
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"identity actions" "metrics metrics" "status status";
    gap:9px 12px;padding:8px max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
  }
  .fs-hud-head{display:flex;align-items:center;gap:10px}
  .fs-car{display:grid;gap:4px}
  .fs-car b{font-size:15px}
  .hud-chip{padding:0 6px}
  .hud-chip:first-child{border-left:0;padding-left:0}
  .hud-chip:last-child{padding-right:0}
  .hud-chip small{font-size:7px;letter-spacing:.01em}
  .hud-chip b{font-size:14px}
  .hud-chip>span{font-size:8px}
  #fsTimeRemaining{font-size:17px}
  #fsController{font-size:10px;line-height:1.55}
  .fs-inputs{display:grid;gap:5px;align-content:center}
  .fs-inputs>span{justify-content:start;gap:7px}
  .fs-links{display:grid;grid-template-columns:1fr 1fr;gap:5px 12px;align-content:center}
  .fs-links>span{font-size:7px;gap:5px}
  .fs-links b{font-size:7px}
  .fs-actions{gap:6px}
  .fs-actions .stop-btn,.fs-exit-btn{padding:0 10px}
  .fs-actions .stop-btn{min-width:62px}
}
@media(max-width:359px){
  .camera-panel.is-camera-fullscreen .fs-hud{padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right));gap:8px}
  .fs-hud-head{gap:6px}
  .fs-car b{font-size:14px}
  .fs-state{font-size:7px;padding:3px 4px}
  .hud-chip{padding:0 4px}
  .hud-chip b{font-size:12px}
  #fsController{font-size:9px}
  .fs-actions .stop-btn{min-width:56px}
  .fs-actions .stop-btn,.fs-exit-btn{padding:0 8px}
}
@media(max-width:520px){
  .camera-head{gap:6px;left:10px;right:10px}
  .camera-label{font-size:12px;padding:0 9px;min-width:0}
  .live-pill{padding:0 9px;font-size:12px}
  .state-chip-top{font-size:9px;padding:0 7px}
  .icon-btn{flex-shrink:0}
}

/* V1.17 — quieter signed-in lobby.
   Credits are visible at a glance; payment/redeem controls stay collapsed until needed. */
.account-lobby-grid{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr)}
.compact-account-summary{align-items:center;gap:12px;padding:13px!important;min-height:0!important}
.account-profile-copy{min-width:0}
.account-profile-copy b{font-size:14px}
.account-profile-copy span{max-width:230px;overflow:hidden!important;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal!important}
.profile-logout{margin-top:7px;padding:0;border:0;background:transparent;color:#738098;font-size:8px;font-weight:900;letter-spacing:.1em;cursor:pointer}
.profile-logout:hover{color:#fff}
.account-wallet .credit-balance{min-width:72px;padding-left:12px;border-left:1px solid #263044;text-align:right}
.account-wallet .credit-balance strong{font-size:28px;line-height:1;font-variant-numeric:tabular-nums}
.account-wallet .credit-balance small{margin-top:5px!important}
.compact-credit-tools{margin-top:10px!important}
.account-quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.wallet-action-btn{height:36px;border:1px solid #303a4d;border-radius:9px;background:#111a27;color:#d9e0ec;font-size:10px;font-weight:900;letter-spacing:.06em}
.wallet-action-btn:hover,.wallet-action-btn.active{border-color:#7f5f9e;background:#1a1730;color:#fff}
.wallet-action-btn:first-child.active{border-color:#9a5d1e;background:#2b1a0c}
.low-balance-note{margin-top:8px;padding:8px 10px;border:1px solid #7e5528;border-radius:8px;background:#21170d;color:#ffc47c;font-size:9px;font-weight:900;letter-spacing:.08em;text-align:center}
.account-tool-panel{margin-top:10px;padding:12px;border:1px solid #293245;border-radius:11px;background:#090f18}
.tool-panel-head{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin-bottom:10px}
.tool-panel-head b{font-size:12px}
.tool-panel-head small{color:#7e899e;font-size:8px;text-align:right;line-height:1.35}
.account-tool-panel .credit-pack-grid{margin:0}
.account-tool-panel .checkout-note{margin-bottom:0}
.redeem-inline{display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:8px;align-items:center}
.redeem-inline .text-input,.redeem-inline .secondary-btn{height:40px;margin:0}
.redeem-inline .secondary-btn{font-size:10px;letter-spacing:.06em}
.play-cost-note{margin-top:7px;text-align:center;color:#758299;font-size:8px;font-weight:900;letter-spacing:.09em}
.driver-setup{align-self:start}
.driver-setup .primary-btn{height:48px;font-size:13px}
.driver-setup .form-message{min-height:14px}

@media(min-width:1000px){
  .lobby-card:has(#accountSignedIn:not([hidden])){max-width:720px}
  .lobby-hero:has(#accountSignedIn:not([hidden])){grid-template-columns:minmax(0,1.05fr) minmax(620px,.95fr)}
}
@media(max-width:999px){
  .account-lobby-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}
@media(max-width:719px){
  .account-lobby-grid{grid-template-columns:minmax(0,1fr)}
  .tool-panel-head{display:block}
  .tool-panel-head small{display:block;margin-top:3px;text-align:left}
}
@media(max-width:420px){
  .account-quick-actions{grid-template-columns:1fr}
  .redeem-inline{grid-template-columns:1fr}
  .redeem-inline .secondary-btn{width:100%}
}

/* V1.18 — controller choice moves out of the lobby and into matchmaking. */
.waiting-side{grid-template-rows:auto auto minmax(0,1fr)}
.controller-choice-card{padding-bottom:14px}
.controller-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.controller-choice-btn{min-width:0;min-height:68px;padding:10px 6px;border:1px solid #30394b;border-radius:10px;background:#0a0f18;color:#e9eef7;display:grid;gap:5px;align-content:center;text-align:center;cursor:pointer;transition:border-color .15s,background .15s,transform .15s}
.controller-choice-btn:hover{border-color:#56627a;background:#101827}
.controller-choice-btn:active{transform:translateY(1px)}
.controller-choice-btn b{font-size:10px;letter-spacing:.06em}
.controller-choice-btn small{font-size:8px;line-height:1.25;color:#8e99ad;overflow:hidden;text-overflow:ellipsis}
.controller-choice-btn.selected{border-color:var(--orange);background:linear-gradient(180deg,#2a1b0f,#12141b);box-shadow:0 0 0 1px #ff7a0030 inset,0 0 18px #ff7a0014}
.controller-choice-btn.selected b{color:#ffab5d}
.controller-choice-btn.selected small{color:#d5dbe6}
.controller-choice-btn.gamepad-ready.selected{border-color:var(--green);box-shadow:0 0 0 1px #19f58b2b inset,0 0 18px #19f58b12}
.controller-choice-btn.gamepad-ready.selected b{color:#78f8b6}
.controller-choice-msg{min-height:14px;margin-top:9px;color:#8f9bae;font-size:9px;letter-spacing:.03em;text-align:center}
@media(max-width:1100px){.waiting-side{grid-template-rows:auto auto auto}.controller-choice-grid{grid-template-columns:repeat(3,minmax(120px,1fr))}}
@media(max-width:560px){.controller-choice-grid{grid-template-columns:1fr}.controller-choice-btn{min-height:54px;grid-template-columns:auto 1fr;align-items:center;justify-items:start;text-align:left;padding:9px 12px}.controller-choice-btn small{justify-self:end;text-align:right}}


/* V1.19 — multiplayer rooms + teams. Kept compact so Quick Play stays clean. */
.match-type-toggle{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:10px;padding:4px;border:1px solid #252e40;border-radius:10px;background:#090e17}
.match-type-btn{height:34px;border:0;border-radius:7px;background:transparent;color:#78859a;font-size:9px;font-weight:900;letter-spacing:.06em;cursor:pointer}
.match-type-btn:hover{color:#fff;background:#121a28}
.match-type-btn.active{background:#202b3d;color:#fff;box-shadow:inset 0 0 0 1px #4a5870}
.room-lobby-panel{margin-top:9px;padding:10px;border:1px solid #2d3547;border-radius:10px;background:#080e17}
.room-create-btn{height:38px;margin:0;width:100%}
.room-join-row{display:grid;grid-template-columns:minmax(0,1fr) 82px;gap:7px;margin-top:7px}
.room-join-row .text-input,.room-join-row .secondary-btn{height:38px;margin:0}
.room-code-input{text-transform:uppercase;letter-spacing:.12em;font-weight:900}
.room-headline{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.room-headline>div{display:grid;gap:2px}.room-headline small{font-size:7px;color:#7f8da3;font-weight:900;letter-spacing:.12em}.room-headline b{font-size:22px;letter-spacing:.12em;color:#fff}
.room-mini-btn,.room-leave-btn{border:1px solid #344056;border-radius:7px;background:#121a26;color:#cbd4e2;font-size:8px;font-weight:900;letter-spacing:.07em;cursor:pointer}
.room-mini-btn{height:29px;padding:0 10px}.room-leave-btn{width:100%;height:30px;margin-top:7px;background:#0b1018;color:#8f9aab}
.room-mini-btn:hover,.room-leave-btn:hover{border-color:#6d7c95;color:#fff}
.room-team-title{font-size:7px;color:#7f8da3;font-weight:900;letter-spacing:.12em;margin-bottom:5px}
.room-team-picker{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:9px}
.room-team-btn{height:34px;border:1px solid #303a4d;border-radius:8px;background:#101722;color:#aab4c5;font-size:9px;font-weight:900;letter-spacing:.06em;cursor:pointer}
.room-team-btn.orange.selected{border-color:#ff7a00;background:#2b190c;color:#ffad63;box-shadow:0 0 16px #ff7a0017}
.room-team-btn.purple.selected{border-color:#a96cff;background:#21142e;color:#d1a7ff;box-shadow:0 0 16px #a96cff17}
.room-member-list,.waiting-room-members{display:grid;gap:5px}
.room-member,.waiting-room-member{display:grid;grid-template-columns:7px minmax(0,1fr) auto;gap:8px;align-items:center;padding:7px 8px;border:1px solid #242d3d;border-radius:8px;background:#0d1420;min-width:0}
.room-member>i,.waiting-room-member>i{width:7px;height:26px;border-radius:5px;background:#ff7a00}.room-member.purple>i,.waiting-room-member.purple>i{background:#a96cff}
.room-member>div,.waiting-room-member>div{display:grid;gap:2px;min-width:0}.room-member b,.waiting-room-member b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.room-member small,.waiting-room-member small{font-size:7px;color:#78859a;letter-spacing:.04em}.room-member em,.waiting-room-member em{font-style:normal;font-size:7px;color:#9ca8ba;font-weight:900;white-space:nowrap}
.room-host,.room-you{display:inline-block;margin-left:5px;padding:1px 4px;border:1px solid #40506a;border-radius:4px;color:#b6c2d6;font-size:6px}.room-you{border-color:#5a874f;color:#9ee58b}
.room-message{min-height:12px;margin-top:7px!important}
.waiting-room-card .panel-title{justify-content:flex-start}.waiting-room-card .panel-title b{margin-left:auto;color:#fff;letter-spacing:.1em}
.waiting-room-member{padding:6px 7px}.waiting-room-member>i{height:22px}.team-text.orange{color:#ff9d45}.team-text.purple{color:#c897ff}
@media(max-width:560px){.room-join-row{grid-template-columns:1fr}.room-join-row .secondary-btn{width:100%}.match-type-btn{font-size:8px}}

@media(min-width:1101px){.waiting-side:has(#waitingRoomCard:not([hidden])){grid-template-rows:auto auto auto minmax(0,1fr)}}


/* V1.20 — private room chat, ready check and host-controlled shared start. */
.room-chat{margin-top:8px;padding-top:8px;border-top:1px solid #232c3c}
.room-chat-log{height:86px;overflow:auto;display:grid;align-content:start;gap:5px;padding:7px;border:1px solid #252f40;border-radius:8px;background:#070c13;scrollbar-width:thin}
.room-chat.compact .room-chat-log{height:72px}
.room-chat-empty{align-self:center;text-align:center;color:#59667a;font-size:8px;font-weight:900;letter-spacing:.08em}
.room-chat-line{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px;align-items:start;font-size:9px;line-height:1.3}
.room-chat-line b{color:#ff9d45;white-space:nowrap;font-size:8px}.room-chat-line.purple b{color:#c897ff}.room-chat-line.mine b{text-decoration:underline}
.room-chat-line span{color:#c2cad7;overflow-wrap:anywhere}
.room-chat-compose{display:grid;grid-template-columns:minmax(0,1fr) 62px;gap:6px;margin-top:6px}
.room-chat-compose .text-input,.room-chat-compose .room-mini-btn{height:32px;margin:0}.room-chat-compose .text-input{font-size:10px;padding:0 9px}
.assigned-room-panel{width:min(660px,92vw);margin:18px auto 0;padding:12px;border:1px solid #344057;border-radius:12px;background:#090f18e8;text-align:left;backdrop-filter:blur(8px)}
.assigned-room-panel[hidden]{display:none}.assigned-room-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:8px;color:#8794a8;font-size:8px;font-weight:900;letter-spacing:.08em}.assigned-room-head b{color:#fff;letter-spacing:.12em}.assigned-room-head strong{color:#b7c1d1;font-size:9px}
.assigned-room-members{grid-template-columns:repeat(2,minmax(0,1fr))}.assigned-room-actions{display:grid;grid-template-columns:120px 130px minmax(0,1fr);gap:7px;align-items:center;margin-top:8px}
.room-ready-btn,.room-start-btn{height:34px;border-radius:8px;font-size:9px;font-weight:900;letter-spacing:.06em;cursor:pointer}.room-ready-btn{border:1px solid #4a596f;background:#121a27;color:#d9e1ec}.room-ready-btn.selected{border-color:#2fae6f;background:#0d2b1e;color:#80f0b2}.room-start-btn{border:1px solid #ff7a00;background:#d95f00;color:#fff}.room-start-btn:disabled,.room-ready-btn:disabled{opacity:.42;cursor:not-allowed}.assigned-room-actions span{color:#97a2b5;font-size:9px;line-height:1.3}
.assigned-chat{margin-top:8px}.assigned-chat .room-chat-log{height:78px}
@media(max-width:720px){.assigned-room-members{grid-template-columns:1fr}.assigned-room-actions{grid-template-columns:1fr 1fr}.assigned-room-actions span{grid-column:1/-1;text-align:center}.assigned-room-panel{padding:9px}.assigned-chat .room-chat-log{height:64px}}
@media(max-width:480px){.room-chat-compose{grid-template-columns:1fr}.room-chat-compose .room-mini-btn{width:100%}.assigned-room-actions{grid-template-columns:1fr}.assigned-room-actions span{grid-column:auto}.assigned-room-panel{margin-top:10px}}

/* V1.21 — real page-sized game browser + lobby, separate from sign-in. */
.arena-browser,.game-room-screen{background:radial-gradient(ellipse at 8% 0%,#ff7a000b,transparent 55%),radial-gradient(ellipse at 100% 0%,#9b19ff0b,transparent 50%),#090d15;padding:clamp(16px,2.2vw,34px)}
.arena-page{height:100%;min-height:0;max-width:1760px;margin:auto;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:20px}
.arena-page-head,.game-room-head{display:flex;justify-content:space-between;align-items:center;gap:24px;min-width:0}
.arena-page-head h1,.game-room-head h1{font-size:clamp(26px,3vw,42px);line-height:1.08;letter-spacing:-.025em;margin:10px 0 8px}
.arena-page-head p{margin:0;color:#98a5b9;font-size:14px}.text-link{border:0;background:none;padding:0;color:#8d9bb2;font-size:12px;margin:0 0 14px}.text-link:hover{color:white}
.wallet-chip{border:1px solid #303b50;background:#0e1623;color:white;border-radius:14px;min-width:190px;display:grid;grid-template-columns:1fr auto;gap:5px 22px;text-align:left;padding:15px 18px}
.wallet-chip>span{color:#c4ccdc;font-size:12px;font-weight:700}.wallet-chip b{font-size:20px;color:var(--orange);grid-row:span 2}.wallet-chip b small{font-size:9px;color:#8d9bb2}.wallet-chip em{font-size:10px;font-style:normal;color:#8494ad}
.browser-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid #283144;padding-bottom:17px}.browser-filter{display:flex;align-items:center;gap:14px}.browser-filter b{font-size:16px}.browser-filter span{color:#8795ac;font-size:12px}
.browser-buttons{display:flex;gap:10px}.browser-buttons button{width:auto;padding:0 22px;height:42px;margin:0;font-size:11px;white-space:nowrap}
.browser-content{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;min-height:0}.game-list-area{min-height:0;overflow:auto;padding:0 5px 5px 0}.browser-message:empty{display:none}.browser-message{color:#ffbb74;font-size:13px;margin-bottom:14px}
.game-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));align-content:start;gap:16px}.game-card{border:1px solid #2b3548;background:linear-gradient(140deg,#151e2e,#0d1420);border-radius:14px;padding:20px;min-width:0;position:relative;overflow:hidden}.game-card:before{content:"";position:absolute;left:0;top:0;width:70px;height:3px;background:linear-gradient(90deg,var(--orange),var(--purple))}.game-card-top{display:flex;justify-content:space-between;gap:12px;align-items:center}.game-mode-tag{color:#ffad5b;font-size:10px;font-weight:800;letter-spacing:.1em}.game-state-tag{padding:5px 8px;border:1px solid #344358;border-radius:5px;font-size:9px;color:#9caec5}.game-state-tag.is-live{color:var(--green);border-color:#276347;background:#0e251d}.game-card h2{font-size:21px;line-height:1.2;margin:24px 0 7px;overflow-wrap:anywhere}.game-card p{font-size:12px;color:#8c9cb5;margin:0 0 20px}.game-card-stats{display:flex;gap:25px;padding:14px 0;border-top:1px solid #253145;border-bottom:1px solid #253145}.game-card-stats span{font-size:10px;color:#8c9bb2}.game-card-stats b{font-size:20px;color:#dee5f0;margin-right:6px}.game-card button{height:40px;font-size:11px;margin:18px 0 0}.game-card button:disabled{opacity:.45;cursor:default}
.no-games{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:290px;border:1px dashed #354159;border-radius:16px;padding:30px;text-align:center}.no-games>span{font-size:38px;width:70px;height:70px;border-radius:18px;background:#18162a;color:#b887fc;display:grid;place-items:center}.no-games h2{font-size:24px;margin:18px 0 8px}.no-games p{max-width:360px;color:#92a1b8;line-height:1.6;font-size:13px;margin:0}
.browser-side{display:flex;flex-direction:column;gap:14px;min-height:0;overflow:auto}.arena-info-card{padding:17px;border:1px solid #283448;background:#101725;border-radius:12px}.arena-info-card .panel-title{font-size:10px;margin-bottom:14px}.arena-availability{display:flex;justify-content:space-between;align-items:center;gap:10px}.arena-availability b{font-size:16px}.arena-availability span{color:#b997ef;font-size:9px;font-weight:800}.arena-info-card p{font-size:12px;line-height:1.6;color:#a2afc2}.arena-info-card>small{display:block;font-size:10px;line-height:1.5;color:#71829d;margin-top:14px}.join-by-code{display:grid;grid-template-columns:minmax(0,1fr) 74px;gap:8px}.join-by-code button,.join-by-code input{height:40px;font-size:12px}.match-queue-item{display:flex;gap:13px;align-items:center;padding:12px 0;border-bottom:1px solid #253148}.match-queue-item>b{color:var(--orange);font-size:18px;min-width:22px}.match-queue-item strong{font-size:12px;display:block;overflow-wrap:anywhere}.match-queue-item small{font-size:10px;color:#8d9db4;margin-top:4px;display:block}.arena-page-foot{font-size:11px;line-height:1.5;color:#7789a4;border-top:1px solid #202d41;padding-top:13px}.arena-page-foot b{color:#bac7da;margin-right:7px}
.game-room-page{max-width:1760px;height:100%;min-height:0;margin:auto;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:24px}.game-room-head{border-bottom:1px solid #29354b;padding-bottom:22px}.game-heading{min-width:0}.game-heading h1{overflow-wrap:anywhere}.game-subline{display:flex;gap:10px;flex-wrap:wrap}.game-subline span{font-size:10px;letter-spacing:.07em;color:#9baac1;padding:5px 8px;background:#121c2c;border-radius:4px}.game-subline span:first-child{color:#ffb26c}.room-header-actions{display:grid;grid-template-columns:auto auto;gap:10px;align-items:center;flex-shrink:0}.room-account-btn{grid-column:1/-1;text-align:right;border:0;background:none;color:#97a6be;font-size:12px}.room-account-btn>span{color:#f7a655;font-weight:800}.room-code-chip{border:1px solid #38465d;border-radius:10px;padding:9px 13px;display:grid;grid-template-columns:1fr auto;gap:3px 14px;min-width:172px}.room-code-chip small{font-size:8px;letter-spacing:.12em;color:#8698b4}.room-code-chip b{grid-column:1;font-size:20px;letter-spacing:.15em;line-height:1.1}.room-code-chip button{grid-column:2;grid-row:1/3;align-self:center}.room-header-actions .room-leave-btn{width:auto;height:42px;margin:0;padding:0 15px;font-size:10px}
.game-room-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,28%);gap:24px;min-height:0}.roster-column{min-height:0;display:flex;flex-direction:column;overflow:auto;padding-right:4px;gap:18px}.roster-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.roster-heading .panel-title{margin:0;font-size:11px}.roster-heading .panel-title b{color:var(--green);font-size:10px;letter-spacing:.04em;margin-left:10px}.game-room-screen .room-mini-btn{font-size:9px;height:32px}
.room-member-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.game-room-screen .room-member{padding:17px 15px;gap:12px;grid-template-columns:4px minmax(0,1fr);position:relative;min-height:96px;border-radius:12px;background:linear-gradient(130deg,#151e2c,#0e1623)}.game-room-screen .room-member>i{width:4px;height:48px}.game-room-screen .room-member b{font-size:17px}.game-room-screen .room-member small{font-size:9px;line-height:1.7;color:#8c9db5;margin-top:3px}.game-room-screen .room-member .room-host,.game-room-screen .room-member .room-you{font-size:8px;padding:1px 5px}.member-controller{font-size:10px;color:#657a99;text-transform:capitalize;margin-top:5px}.game-room-screen .room-member em{font-size:9px;position:absolute;right:14px;bottom:16px;color:#7e90aa}.game-room-screen .room-member.is-ready{border-color:#2d614c;background:linear-gradient(130deg,#15281f,#0e1623)}.game-room-screen .room-member.is-ready em{color:#66dda4}
.room-setup-row{display:grid;grid-template-columns:minmax(195px,.65fr) minmax(0,1.35fr);gap:16px;margin-top:auto}.team-selection,.controller-selection{border:1px solid #2a354a;background:#0e1623;border-radius:12px;padding:16px}.game-room-screen .panel-title{font-size:10px}.game-room-screen .room-team-btn{height:42px;font-size:11px}.subtle{color:#7f91ae;font-size:11px;line-height:1.5;margin:10px 0 0}.game-room-screen .controller-choice-card{border:0;border-radius:0;background:none;padding:0;margin:0}.game-room-screen .controller-choice-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.game-room-screen .controller-choice-btn{min-height:61px;padding:9px 6px;display:grid;justify-items:center;text-align:center;grid-template-columns:1fr}.game-room-screen .controller-choice-btn b{font-size:10px}.game-room-screen .controller-choice-btn small{font-size:8px;justify-self:center;text-align:center}.game-room-screen .controller-choice-msg{font-size:10px;line-height:1.4;min-height:26px}.game-notes{display:flex;gap:20px;justify-content:space-between;color:#687e9e;font-size:10px;padding:0 2px}
.lobby-chat-panel{border:1px solid #303a50;border-radius:14px;padding:18px;background:#0f1724;display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:0}.lobby-chat-panel .panel-title{margin:0 0 18px;display:flex;align-items:center;gap:8px}.lobby-chat-panel .panel-title small{margin-left:auto;font-size:8px;color:#5f728f;letter-spacing:.06em}.lobby-chat-panel .room-chat-log{height:auto;min-height:0;gap:18px;padding:16px;background:#0a111c;border-color:#222e41}.lobby-chat-panel .room-chat-empty{align-self:start;display:flex;flex-direction:column;gap:10px;padding:25px 10px;font-weight:400;letter-spacing:0}.lobby-chat-panel .room-chat-empty b{color:#a6b4c9;font-size:14px}.lobby-chat-panel .room-chat-empty span{color:#637c9c;font-size:12px;line-height:1.6}.lobby-chat-panel .room-chat-line{display:flex;flex-direction:column;gap:5px;font-size:14px;line-height:1.4}.lobby-chat-panel .room-chat-line b{font-size:11px}.lobby-chat-panel .room-chat-compose{grid-template-columns:minmax(0,1fr) 66px;gap:8px;margin-top:12px}.lobby-chat-panel .room-chat-compose input,.lobby-chat-panel .room-chat-compose button{height:44px;font-size:12px;margin:0}
.game-room-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;border:1px solid #334057;background:linear-gradient(110deg,#121c2c,#0e1521);border-radius:13px;padding:17px 20px;border-left:3px solid var(--orange)}.match-flow-status{min-width:0}.match-flow-status>span{display:block;color:#ffa957;font-size:10px;font-weight:800;letter-spacing:.12em;margin-bottom:6px}.match-flow-status>b{display:block;font-size:13px;line-height:1.4;color:#c5d0e1}.game-room-footer .form-message{min-height:0;margin:5px 0 0;font-size:12px;letter-spacing:0;color:#ffb278}.game-room-footer .form-message:empty{display:none}.match-flow-actions{display:flex;gap:10px;flex-shrink:0}.match-flow-actions button{width:auto;min-width:140px;padding:0 16px;margin:0;font-size:11px;height:46px}.match-flow-actions .secondary-btn.selected{color:#83edb5;background:#133524;border-color:#378b61}button:disabled{cursor:not-allowed}.room-mini-btn:disabled,.room-team-btn:disabled,.room-leave-btn:disabled,.secondary-btn:disabled,.controller-choice-btn:disabled{opacity:.48}
.game-settings-dialog{width:min(540px,calc(100vw - 28px));border:1px solid #3a4964;background:#101927;color:#f5f7fb;border-radius:18px;padding:24px;box-shadow:0 30px 100px #000a}.game-settings-dialog::backdrop{background:#030711bb;backdrop-filter:blur(5px)}.game-settings-dialog header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.game-settings-dialog h2{font-size:26px;margin:9px 0 14px}.dialog-close{border:1px solid #303e55;background:#141f31;color:#c2d1e5;border-radius:8px;width:34px;height:34px;font-size:24px}.game-settings-dialog .field-label{font-size:10px;margin:15px 0 8px}.game-settings-dialog .text-input{font-size:13px;height:44px}.game-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.game-settings-dialog .primary-btn{margin-top:16px}.drive-chat-panel .room-chat-log{height:130px}.drive-chat-panel .room-chat-line{font-size:12px}.drive-chat-panel .room-chat-line b{font-size:10px}.drive-chat-panel .room-chat-compose{grid-template-columns:minmax(0,1fr) 56px}.drive-chat-panel .room-chat-compose input{font-size:12px}.sidebar:has(.drive-chat-panel:not([hidden])){grid-template-rows:auto minmax(180px,1fr) auto}.sidebar:has(.drive-chat-panel:not([hidden])) .map-panel{display:none}
@media(min-width:1101px) and (max-height:800px){.arena-page,.game-room-page{gap:16px}.arena-browser,.game-room-screen{padding:18px 25px}.arena-page-head h1,.game-room-head h1{font-size:30px}.game-room-head{padding-bottom:14px}.game-room-columns{gap:18px}.roster-column{gap:12px}.game-room-screen .room-member{padding:13px 14px;min-height:86px}.room-setup-row{gap:12px}.team-selection,.controller-selection{padding:12px}.game-notes{font-size:9px}.game-room-footer{padding:14px 17px}.lobby-chat-panel{padding:14px}}
@media(min-width:1101px){.arena-browser,.game-room-screen{overflow:hidden}}
@media(max-width:1100px){.arena-page,.game-room-page{height:auto;min-height:calc(100dvh - 112px)}.browser-content{grid-template-columns:minmax(0,1fr) 270px}.browser-side,.game-list-area{overflow:visible}.game-room-columns{grid-template-columns:minmax(0,1fr) 290px}.room-member-grid{grid-template-columns:1fr}.room-setup-row{grid-template-columns:1fr}.roster-column{overflow:visible}.lobby-chat-panel{min-height:460px;max-height:740px}.game-room-footer{position:sticky;bottom:10px;z-index:10}.match-flow-actions button{min-width:110px}.game-room-head h1{font-size:29px}.room-header-actions{gap:8px}.game-notes{flex-wrap:wrap;gap:9px}.arena-page-foot{margin-top:5px}}
@media(max-width:740px){.arena-browser,.game-room-screen{padding:15px}.arena-page-head{align-items:flex-start}.arena-page-head h1{font-size:27px}.wallet-chip{min-width:0;padding:11px}.wallet-chip>span,.wallet-chip em{display:none}.wallet-chip b{font-size:18px}.browser-toolbar{align-items:flex-start;flex-direction:column;gap:14px}.browser-buttons{width:100%}.browser-buttons button{flex:1;padding:0 12px}.browser-content{display:flex;flex-direction:column}.browser-side{display:grid;grid-template-columns:1fr 1fr;gap:10px}.game-queue-card{grid-column:1/-1}.game-card-grid{grid-template-columns:1fr 1fr;gap:10px}.game-card{padding:16px}.game-card h2{font-size:19px}.game-room-head{align-items:flex-start;gap:14px;flex-direction:column}.room-header-actions{width:100%;grid-template-columns:1fr auto auto}.room-account-btn{grid-column:auto;text-align:left;grid-row:1;font-size:11px}.room-code-chip{min-width:140px}.room-code-chip b{font-size:17px}.game-room-columns{grid-template-columns:1fr;gap:16px}.room-member-grid{grid-template-columns:1fr 1fr}.room-setup-row{grid-template-columns:1fr}.lobby-chat-panel{height:300px;min-height:300px}.game-room-footer{position:static;flex-direction:column;align-items:stretch;gap:14px;padding:15px}.match-flow-actions{display:flex;flex-wrap:wrap}.match-flow-actions button{flex:1;min-width:130px}.game-room-screen .room-member{padding:12px;min-height:97px}.game-room-screen .room-member b{font-size:15px}.game-room-screen .room-member em{bottom:10px;font-size:8px}.game-room-screen .room-member small{font-size:8px}.game-room-screen .controller-choice-btn small{font-size:9px}.game-form-grid{grid-template-columns:1fr}.no-games{min-height:250px;padding:25px 18px}.no-games h2{font-size:22px}}
@media(max-width:450px){.game-card-grid,.browser-side{grid-template-columns:1fr}.room-member-grid{grid-template-columns:1fr}.game-queue-card{grid-column:auto}.room-header-actions{grid-template-columns:1fr auto}.room-account-btn{grid-column:1/-1}.arena-page-head p{font-size:12px}.game-subline span{font-size:9px}.game-room-screen .room-member{min-height:83px}.game-notes{font-size:9px}.roster-heading .panel-title{font-size:9px}.game-room-screen .room-member em{bottom:16px}}

/* Let the document scroll on narrow screens, not a fixed-height body clip. */
@media(max-width:1100px){
  html:has(#browserScreen.active),body:has(#browserScreen.active),
  html:has(#roomScreen.active),body:has(#roomScreen.active){height:auto;min-height:100%;overflow:visible}
  html:has(#browserScreen.active),html:has(#roomScreen.active){overflow-x:hidden;overflow-y:auto}
  #browserScreen.active,#roomScreen.active{height:auto;overflow:visible}
}

/* V1.22: transparent queue estimates, six colours and whole-match results. */
.public-arena-wait{margin:18px 0 14px;padding:14px 16px;border:1px solid #546277;border-left:3px solid var(--orange);border-radius:10px;background:#070c16df;max-width:560px}.public-arena-wait>div{display:flex;flex-direction:column;gap:7px}.public-arena-wait b{font-size:20px;color:#fff}.public-arena-wait small{display:block;color:#b5c1d3;font-size:12px;line-height:1.5;margin-top:8px}.public-arena-wait .eyebrow{font-size:9px}.purchase-wait-note{color:#a5b9d1;font-size:11px;line-height:1.45;margin:8px 0 12px;padding-left:10px;border-left:2px solid #667c99}.game-wait-tag{font-size:11px;color:#acc5de;min-height:17px;margin:12px 0}.match-queue-item small{line-height:1.55}.match-queue-item [data-queue-estimate]{color:#ffc28c;font-variant-numeric:tabular-nums}.room-team-picker{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.room-team-btn{color:var(--team-color)!important;border-color:var(--team-color)!important;background:#111a26!important;min-width:0;padding:0 5px!important;font-size:9px!important;height:34px!important}.room-team-btn.selected{box-shadow:inset 0 -3px var(--team-color);background:#233045!important}.room-team-btn[hidden]{display:none!important}.room-team-btn:disabled{opacity:.3}.room-member>i{background:var(--team-color)!important}.room-chat-line b{color:var(--team-color)!important}.room-setup-row{grid-template-columns:minmax(260px,.85fr) minmax(0,1.15fr)}.game-settings-dialog{width:min(610px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto}.game-settings-dialog [hidden]{display:none!important}.game-settings-dialog .text-input:disabled{opacity:.8}.results-screen{overflow:auto!important}.results-wrap{max-width:1040px!important;width:100%;text-align:left;margin:auto;padding:32px}.results-wrap h1{font-size:clamp(26px,3vw,42px)}.match-standings{display:grid;gap:12px;margin:24px 0}.result-player{display:flex;align-items:center;gap:16px;border:1px solid #2b3b50;border-left:4px solid var(--team-color);background:#101b2a;border-radius:9px;padding:13px 16px}.result-player.is-you{background:#23354b;border-color:var(--team-color)}.result-rank{font-size:19px;color:#95aac7;min-width:25px}.result-driver{flex:1;min-width:0}.result-driver b{font-size:17px;overflow-wrap:anywhere}.result-driver small{display:block;font-size:10px;color:#9aaac1;margin-top:5px;text-transform:uppercase}.result-player>strong{font-size:22px;white-space:nowrap}.result-player>strong small{font-size:9px;color:#94a6be}.result-team{padding:12px;border:1px solid #34445a;border-radius:12px;background:#0b1420;display:grid;gap:8px}.result-team header{display:flex;justify-content:space-between;gap:12px;padding:8px;color:var(--team-color);font-weight:800}.results-wrap .results-btn{max-width:350px;margin:24px 0 0}.match-flow-status>span{font-variant-numeric:tabular-nums}.lobby-live-row .live-fact small{color:#c0cbdb}
@media(min-width:1101px) and (max-height:800px){.public-arena-wait{margin:12px 0;padding:11px 13px}.public-arena-wait b{font-size:18px}.public-arena-wait small{font-size:11px}.game-room-screen .room-member{min-height:78px}.roster-column{gap:10px}.game-room-screen .room-member b{font-size:15px}}
@media(max-width:1100px){.room-setup-row{grid-template-columns:1fr}.results-wrap{padding:20px}.public-arena-wait{max-width:none}}
@media(max-width:480px){.public-arena-wait b{font-size:17px}.result-player{gap:9px;padding:12px 10px}.result-driver b{font-size:14px}.result-player>strong{font-size:19px}.result-team{padding:8px}.results-wrap{padding:18px}}

/* Room and results: keep all primary actions on a normal-height desktop. */
.results-wrap{justify-content:flex-start;align-items:stretch;text-align:center;padding-top:22px;padding-bottom:22px}
.match-standings{width:100%;text-align:left;gap:8px;margin:18px 0}
.result-player{padding:10px 16px;min-height:54px}
.results-wrap .results-btn{align-self:center;margin-top:14px}
@media(min-width:700px){.match-standings[data-competition="teams"]{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}}
@media(min-width:1101px) and (max-height:800px){.game-room-screen .room-member{min-height:70px;padding:9px 14px}.game-notes{display:none}.roster-column{gap:9px}.game-room-screen .room-member em{bottom:12px}.team-selection .subtle{margin-top:5px;font-size:10px}.game-room-screen .controller-choice-msg{min-height:0;margin-top:7px}}

/* V1.23: six compact roster tiles; two rows on desktop, no nested card scroller. */
.room-empty-slot{min-height:82px;border:1px dashed #304057;border-radius:10px;background:#0c152188;display:flex;flex-direction:column;justify-content:center;padding:13px 15px;gap:5px}.room-empty-slot b{font-size:10px;color:#7d91ae;letter-spacing:.08em}.room-empty-slot small{font-size:10px;color:#526c8d}
@media(min-width:1101px){.room-member-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.game-room-columns{grid-template-columns:minmax(0,1fr) minmax(280px,26%);gap:18px}.game-room-screen .room-member{min-height:82px;padding:11px 12px;gap:10px;border-radius:10px}.game-room-screen .room-member>i{height:44px}.game-room-screen .room-member b{font-size:14px}.game-room-screen .room-member small{font-size:8px;line-height:1.5;margin-top:2px}.game-room-screen .member-controller{font-size:9px;margin-top:4px;padding-right:45px}.game-room-screen .room-member em{font-size:8px;right:10px;bottom:10px}.room-setup-row{margin-top:auto}.roster-column{gap:12px}.lobby-chat-panel{padding:14px}.lobby-chat-panel .room-chat-log{padding:13px}.lobby-chat-panel .room-chat-line{font-size:13px}.lobby-chat-panel .panel-title small{font-size:7px}.game-room-screen .room-host,.game-room-screen .room-you{font-size:7px!important;padding:1px 3px!important}}
@media(min-width:741px) and (max-width:1100px){.room-member-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.game-room-columns{grid-template-columns:minmax(0,1fr) 265px;gap:15px}.game-room-screen .room-member{min-height:83px;padding:10px 12px;gap:9px}.game-room-screen .room-member b{font-size:13px}.game-room-screen .room-member em{font-size:8px;bottom:10px;right:9px}.game-room-screen .room-member small{font-size:8px}.game-room-screen .member-controller{font-size:9px;margin-top:3px}}
@media(min-width:1101px) and (max-height:800px){.game-room-screen .room-member,.room-empty-slot{min-height:75px}.game-room-screen .room-member{padding:9px 11px}.game-room-screen .room-member>i{height:40px}.game-room-screen .room-member b{font-size:13px}.game-room-screen .room-member em{font-size:7px}.room-member-grid{gap:8px}.roster-column{gap:10px}.room-setup-row{gap:10px}.team-selection,.controller-selection{padding:11px}.game-room-page{gap:16px}}
@media(max-width:740px){.room-member-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.game-room-screen .room-member,.room-empty-slot{min-height:85px}.game-room-screen .room-member b{font-size:13px}.game-room-screen .room-member{padding:11px;gap:8px}.game-room-screen .room-member em{font-size:7px;right:8px;bottom:8px}.game-room-screen .member-controller{font-size:8px;padding-right:35px}.game-room-screen .room-host,.game-room-screen .room-you{font-size:7px!important;padding:1px 3px!important}.roster-column{overflow:visible}}
@media(max-width:370px){.room-member-grid{grid-template-columns:1fr}.game-room-screen .room-member b{font-size:14px}}

/* V1.23.3 brand typography: keep names, fields, numbers and chat readable. */
:root{--heading-font:'Audiowide',system-ui,Arial,sans-serif}
h1,h2,h3,h4,h5,h6,.brand-name,.page-title,.eyebrow,.card-kicker,
.panel-title,.results-kicker,.tool-panel-head>b,.tabs .tab,
.lobby-footer-grid article>b{font-family:var(--heading-font);font-weight:400;letter-spacing:.01em}
.panel-title{line-height:1.45}.panel-title small{font-family:'Segoe UI',Arial,sans-serif}
.brand-name{font-size:20px}.page-title{font-size:21px}
h1,h2,h3{overflow-wrap:break-word}
.game-heading h1{line-height:1.2}.settings-card h2{line-height:1.3}
@media(min-width:960px){.game-heading h1{font-size:32px}.arena-page-head h1{font-size:36px}}
@media(max-width:680px){.page-title{font-size:18px}.lobby-copy h1{font-size:38px}.panel-title{font-size:9px}}


/* V1.23.5 — Tablet / touch mode -------------------------------------------------
   JS adds aa-touch / aa-tablet / aa-landscape to <html>. Desktop layout and
   controller selection remain unchanged. */
html.aa-touch button,
html.aa-touch [role="button"],
html.aa-touch .room-team-btn,
html.aa-touch .controller-choice-btn{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
html.aa-tablet body{overscroll-behavior:none}
html.aa-tablet .controller-choice-btn{min-height:76px;padding:12px 9px}
html.aa-tablet .controller-choice-btn b{font-size:12px}
html.aa-tablet .controller-choice-btn small{font-size:10px}
html.aa-tablet .room-team-btn{min-height:44px;font-size:10px}
html.aa-tablet .room-mini-btn{min-height:38px;font-size:9px}
html.aa-tablet .room-leave-btn{min-height:40px;font-size:9px}
html.aa-tablet .match-flow-actions button{min-height:50px;font-size:11px}
html.aa-tablet .camera-panel,
html.aa-tablet .touch-pad,
html.aa-tablet .touch-stick{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
html.aa-tablet .camera-panel{touch-action:none}

/* Landscape tablets become a focused driving client: camera fills the working
   area, existing telemetry stays as a thin bottom bar, and desktop sidebar is
   hidden during the drive screen. */
html.aa-tablet.aa-landscape,
html.aa-tablet.aa-landscape body{height:100%;overflow:hidden}
html.aa-tablet.aa-landscape .app-shell{height:100dvh;min-height:0;grid-template-rows:60px minmax(0,1fr)}
html.aa-tablet.aa-landscape .topbar{height:60px;min-height:60px;padding:0 14px;grid-template-columns:minmax(0,1fr) auto auto;gap:12px}
html.aa-tablet.aa-landscape .brand-logo{width:42px;height:42px;margin-right:9px}
html.aa-tablet.aa-landscape .brand-name{font-size:16px}
html.aa-tablet.aa-landscape .brand-divider{height:28px;margin:0 12px}
html.aa-tablet.aa-landscape .page-title{font-size:18px}
html.aa-tablet.aa-landscape .tagline{display:none}
html.aa-tablet.aa-landscape .tab{min-width:92px}
html.aa-tablet.aa-landscape .main-shell{min-height:0;overflow:hidden}
html.aa-tablet.aa-landscape .drive-screen{height:100%;padding:8px;overflow:hidden}
html.aa-tablet.aa-landscape .drive-grid{height:100%;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);gap:0;max-width:none}
html.aa-tablet.aa-landscape .drive-grid>.sidebar{display:none}
html.aa-tablet.aa-landscape .left-stack{display:grid;height:100%;min-height:0;grid-template-rows:minmax(0,1fr) 74px;gap:8px}
html.aa-tablet.aa-landscape .camera-panel{height:auto;min-height:0;aspect-ratio:auto;border-radius:12px}
html.aa-tablet.aa-landscape .camera-panel:before{border-radius:12px}
html.aa-tablet.aa-landscape .camera-head{top:9px;left:9px;right:9px;height:38px;gap:8px}
html.aa-tablet.aa-landscape .camera-label,
html.aa-tablet.aa-landscape .live-pill,
html.aa-tablet.aa-landscape .icon-btn,
html.aa-tablet.aa-landscape .state-chip-top{height:38px}
html.aa-tablet.aa-landscape .camera-label{padding:0 11px;font-size:11px}
html.aa-tablet.aa-landscape .live-pill{padding:0 10px;font-size:10px}
html.aa-tablet.aa-landscape .state-chip-top{font-size:9px}
html.aa-tablet.aa-landscape .icon-btn{width:40px;font-size:20px}
html.aa-tablet.aa-landscape .status-strip{margin-top:0;min-height:74px;height:74px;grid-template-columns:1.15fr .95fr .9fr .9fr 1fr auto;border-radius:10px}
html.aa-tablet.aa-landscape .stat{padding:7px 9px;gap:8px}
html.aa-tablet.aa-landscape .stat b{font-size:15px}
html.aa-tablet.aa-landscape .stat small{font-size:8px;margin-top:2px}
html.aa-tablet.aa-landscape .stat-icon{font-size:21px}
html.aa-tablet.aa-landscape .battery-icon{font-size:27px}
html.aa-tablet.aa-landscape .mini-car{width:48px;height:34px;border-radius:9px;font-size:12px}
html.aa-tablet.aa-landscape .battery-numbers span{font-size:9px}
html.aa-tablet.aa-landscape .stop-btn{height:46px;min-width:78px;margin:0 8px;padding:0 13px;font-size:11px}
html.aa-tablet.aa-landscape .touch-pad{left:max(16px,env(safe-area-inset-left));bottom:max(16px,env(safe-area-inset-bottom));width:clamp(190px,23vw,240px);height:clamp(190px,23vw,240px);background:#0b1016bf;border-color:#ffffff70;box-shadow:0 12px 38px #0008}
html.aa-tablet.aa-landscape .touch-stick{width:68px;height:68px}

/* Keep the lobby usable by thumbs without forcing the desktop layout to change. */
@media (min-width:741px) and (max-width:1100px){
  html.aa-tablet .game-room-screen .controller-choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  html.aa-tablet .game-room-screen .controller-choice-btn{min-width:0}
  html.aa-tablet .game-room-footer{z-index:15}
}

/* V1.23.6 — make an empty wallet obvious in a game lobby. */
.room-account-btn.no-plays{border:1px solid #ff870f88!important;border-radius:9px!important;background:#ff870f12!important;color:#ffc184!important;padding:7px 10px!important;text-align:center!important}.room-account-btn.no-plays>span{color:#ff9a2f!important;font-size:14px}.room-account-btn.no-plays:hover{background:#ff870f20!important}

/* V1.23.9: tighter sign-in card, signed-in account results. */
.auth-tabs{grid-template-columns:repeat(2,minmax(0,1fr));margin:12px 0 12px}
.lobby-hero:has(#accountSignedOut:not([hidden])){align-items:center;min-height:0;padding-block:clamp(20px,4vh,42px)}
.lobby-card:has(#accountSignedOut:not([hidden])){width:100%;max-width:405px;justify-self:end;padding:20px 22px}
.lobby-card:has(#accountSignedOut:not([hidden])) h2{font-size:24px}
.lobby-card:has(#accountSignedOut:not([hidden]))>p{margin-bottom:10px;font-size:12px}
.lobby-card:has(#accountSignedOut:not([hidden])) .purchase-wait-note{margin:6px 0 9px!important}
.lobby-card:has(#accountSignedOut:not([hidden])) .text-input{height:42px}
.lobby-card:has(#accountSignedOut:not([hidden])) .field-label{margin:9px 0 5px}
.lobby-card:has(#accountSignedOut:not([hidden])) .primary-btn{height:44px;margin-top:11px}
.account-stats{margin-top:16px;border-top:1px solid #2d384a;padding-top:15px}
.stats-head,.stats-history-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.stats-head h3{margin:4px 0 13px;font-size:17px;color:#fff;letter-spacing:.05em}
.stats-refresh{border:1px solid #384158;background:#131c2a;border-radius:8px;color:#f8b86e;font-size:10px;padding:9px 13px;cursor:pointer}
.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:14px}
.stats-tile{background:#0b121f;border:1px solid #2c3649;border-radius:10px;padding:10px 11px;min-width:0}
.stats-tile small{display:block;font-size:8px;letter-spacing:.06em;color:#8a98ae}
.stats-tile strong{display:block;margin-top:7px;font-size:22px;color:#f6f8ff;font-variant-numeric:tabular-nums}
.stats-tile:nth-child(2) strong{color:#40d983}.stats-tile:nth-child(5) strong{color:#ffab48}
.stats-history-head b{font-size:10px;letter-spacing:.1em}
.stats-history-head small,.stats-message,.stats-empty{font-size:10px;color:#92a1b6;line-height:1.45}
.stats-history{margin-top:8px;max-height:230px;overflow-y:auto;overscroll-behavior:contain}
.stats-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 5px;border-bottom:1px solid #283247}
.stats-row b{display:block;font-size:11px}.stats-row small{display:block;color:#8492a8;font-size:9px;margin-top:3px}
.stats-row-right{text-align:right}.stats-outcome{font-size:10px;color:#b9c7db;font-weight:900}.stats-outcome.win{color:#40d983}.stats-outcome.loss{color:#ef7a7a}.stats-outcome.refunded{color:#ffbd69}
.stats-message{margin:10px 0 0}
@media(max-width:1100px){.lobby-card:has(#accountSignedOut:not([hidden])){justify-self:center}.lobby-card:has(#accountSignedIn:not([hidden])){max-width:850px}}
@media(max-width:460px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-history-head{display:block}.stats-history-head small{display:block;margin-top:4px}}



/* V1.23.10 — One coherent full-width signed-in account dashboard.
   Signed-out marketing/login stays unchanged; arena telemetry lives in Game Browser. */
#accountSignedIn[hidden]{display:none!important}
.lobby-screen:has(#accountSignedIn:not([hidden])) .lobby-hero{
  display:block !important;min-height:0 !important;padding:clamp(18px,3vw,34px) clamp(16px,4vw,64px) !important;
  overflow:visible;background:#080c14;
}
.lobby-screen:has(#accountSignedIn:not([hidden])) .lobby-photo,
.lobby-screen:has(#accountSignedIn:not([hidden])) .lobby-shade,
.lobby-screen:has(#accountSignedIn:not([hidden])) .lobby-copy,
.lobby-screen:has(#accountSignedIn:not([hidden])) .lobby-footer-grid,
.lobby-card:has(#accountSignedIn:not([hidden])) #purchaseWaitNote{display:none !important}
.lobby-card:has(#accountSignedIn:not([hidden])){
  display:block;width:min(1160px,100%) !important;max-width:1160px !important;
  margin:0 auto;padding:0 !important;justify-self:center !important;
  border:0;background:none;box-shadow:none;
}
.lobby-card:has(#accountSignedIn:not([hidden]))>.card-kicker{margin-bottom:6px;color:var(--orange);font-size:10px}
.lobby-card:has(#accountSignedIn:not([hidden]))>h2{font-size:clamp(27px,3vw,38px);margin:0 0 6px}
.lobby-card:has(#accountSignedIn:not([hidden]))>p{max-width:none;font-size:13px;margin:0 0 22px;color:#9ca8ba}
.account-lobby-grid:has(.account-dashboard-top){
  display:flex !important;flex-direction:column;align-items:stretch !important;gap:18px;width:100%;
}
.account-dashboard-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.68fr);gap:18px;width:100%;align-items:stretch}
.account-dashboard-profile,.account-lobby-grid .driver-setup,.account-lobby-grid .account-stats,.account-lobby-grid .account-wallet{
  min-width:0;width:100%;background:linear-gradient(145deg,#111a28,#0a101a);border:1px solid #303a4f;border-radius:16px;
  box-shadow:0 9px 25px #0002;
}
.account-dashboard-profile{padding:24px 26px;display:flex;flex-direction:column;justify-content:center}
.account-panel-kicker{font-size:10px;letter-spacing:.18em;color:var(--purple);font-weight:900;margin-bottom:10px}
.account-dashboard-profile .account-profile-copy{display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.account-dashboard-profile #accountModeLabel{font-size:10px;color:#9eaac2;letter-spacing:.12em}
.account-dashboard-profile #accountName{font-family:var(--heading-font, 'Audiowide'),sans-serif;font-size:clamp(22px,2.5vw,32px);color:#f4f7ff;letter-spacing:0;line-height:1.3;overflow-wrap:anywhere}
.account-dashboard-profile #accountEmail{color:#a0acc1;font-size:12px;overflow-wrap:anywhere}
.account-dashboard-profile .profile-logout{margin-top:12px;align-self:flex-start}
.account-profile-help{font-size:12px;color:#8996ab;margin:18px 0 0;line-height:1.45}
.account-lobby-grid .driver-setup{padding:23px 25px;margin:0;display:flex;flex-direction:column;justify-content:center}
.account-lobby-grid .driver-setup .panel-title{margin:0 0 12px;font-size:11px}
.account-lobby-grid .driver-setup .field-label{margin:0 0 6px}
.account-lobby-grid .driver-setup #joinQueueBtn{height:50px;margin-top:14px;font-size:13px}
.account-lobby-grid .driver-setup .play-cost-note{margin-top:12px}
.account-lobby-grid .account-stats{display:block;margin:0 !important;padding:24px 26px !important;border-top:1px solid #303a4f;}
.account-lobby-grid .account-stats[hidden]{display:none !important}
.account-lobby-grid .stats-head{margin-bottom:15px}
.account-lobby-grid .stats-head h3{font-size:21px;margin:5px 0 0}
.account-lobby-grid .stats-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:22px}
.account-lobby-grid .stats-tile{padding:17px 13px;background:#0b121e;min-height:95px;border-radius:11px}
.account-lobby-grid .stats-tile small{font-size:9px;line-height:1.5;color:#9eaabe}
.account-lobby-grid .stats-tile strong{font-size:clamp(20px,2vw,28px);margin-top:12px}
.account-lobby-grid .stats-history-head{padding-top:20px;border-top:1px solid #2c3546}
.account-lobby-grid .stats-history{max-height:340px;overflow:auto}
.account-lobby-grid .stats-row{padding:12px 8px}
.account-lobby-grid .stats-row b{font-size:12px}
.account-lobby-grid .stats-row small{font-size:10px}
.account-lobby-grid .account-wallet{padding:22px 26px;margin:0}
.account-lobby-grid .account-wallet-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:12px}
.account-lobby-grid .account-wallet-head h3{margin:2px 0 7px;color:#f4f7ff;font-size:20px}
.account-lobby-grid .account-wallet-head p{font-size:12px;color:#91a0b6;margin:0;line-height:1.5}
.account-lobby-grid .account-wallet .credit-balance{min-width:118px;border-left:1px solid #303a4f;padding:4px 0 4px 22px;text-align:center}
.account-lobby-grid .account-wallet .credit-balance strong{font-size:clamp(31px,4vw,47px)!important}
.account-lobby-grid .account-wallet .credit-balance small{font-size:10px;color:#97a7bb}
.account-lobby-grid .account-wallet .account-credit-tools{margin:0;border-top:1px solid #2a3445;padding-top:17px}
.account-lobby-grid .account-wallet .account-quick-actions{display:flex;gap:10px;flex-wrap:wrap}
.account-lobby-grid .account-wallet .wallet-action-btn{width:auto;min-width:155px;padding-inline:20px;flex:0 0 auto}
.account-lobby-grid .account-wallet .account-tool-panel{max-width:650px;margin-top:14px}
.account-lobby-grid .account-wallet .credit-pack-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.account-lobby-grid .account-wallet .credit-pack-btn{min-height:72px;padding:12px}
.account-lobby-grid .account-wallet .credit-pack-btn b{font-size:11px}
.account-lobby-grid .account-wallet .credit-pack-btn span{font-size:17px}
@media(max-width:900px){
 .account-lobby-grid .stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .account-dashboard-top{grid-template-columns:1fr 1fr}
}
@media(max-width:690px){
 .lobby-screen:has(#accountSignedIn:not([hidden])) .lobby-hero{padding:16px 12px!important}
 .account-dashboard-top{grid-template-columns:1fr;gap:12px}
 .account-dashboard-profile,.account-lobby-grid .driver-setup,.account-lobby-grid .account-stats,.account-lobby-grid .account-wallet{padding:17px!important}
 .account-lobby-grid .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .account-lobby-grid .stats-tile{min-height:78px;padding:12px}
 .account-lobby-grid .account-wallet-head{gap:9px;align-items:center}
 .account-lobby-grid .account-wallet .credit-balance{min-width:86px;padding-left:10px}
 .account-lobby-grid .account-wallet .wallet-action-btn{flex:1;min-width:110px;padding-inline:7px}
 .account-lobby-grid .account-wallet .credit-pack-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .account-lobby-grid .stats-history-head{display:block}
 .account-lobby-grid .stats-history-head small{display:block;margin-top:6px}
}
@media(max-width:380px){
 .account-lobby-grid .account-wallet .credit-pack-grid{grid-template-columns:1fr}
 .account-lobby-grid .account-wallet-head h3{font-size:15px}
}

/* V1.23.11 · verified driver identity. Inline profile editing replaces session name input. */
.identity-hint{font-size:11px;line-height:1.5;color:#a0abc1;margin:7px 0 4px}
.profile-name-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}
.profile-name-row #accountName{min-width:0;overflow-wrap:anywhere}
.settings-profile-card .profile-edit-btn{
 border:1px solid #ed8e3c69;background:#ff7a001c;color:#ffad62;padding:7px 11px;border-radius:9px;
 letter-spacing:.07em;font-size:10px;font-weight:900;white-space:nowrap
}
.settings-profile-card .profile-edit-btn:hover{background:#ff7a0038;color:#fff}
.profile-name-editor{width:100%;max-width:560px;margin-top:12px;padding:13px;border:1px solid #374054;border-radius:11px;background:#080e17}
.profile-name-editor .field-label{margin-top:0}
.profile-edit-actions{display:flex;align-items:center;gap:8px;min-width:0}
.profile-edit-actions .text-input{flex:1 1 160px;min-width:0;height:43px}
.profile-edit-actions button{height:43px;border-radius:8px;border:1px solid #404a5b;padding:0 12px;color:#f5f7ff;background:#1b2638;font-size:10px;font-weight:900}
.profile-edit-actions .profile-save-btn{background:var(--orange);color:#090909;border-color:var(--orange)}
.profile-edit-actions .profile-save-btn:disabled{opacity:.55;cursor:default}
.profile-name-message{min-height:1.5em;margin:9px 0 0!important;font-size:11px!important;line-height:1.5;color:#a7b4c8}
.account-lobby-grid .driver-identity-note{color:#afbed2;font-size:13px;line-height:1.5;max-width:33ch;margin:4px 0 14px}
.account-lobby-grid .driver-setup #joinQueueBtn{margin-top:8px}
@media(max-width:500px){.profile-edit-actions{flex-wrap:wrap}.profile-edit-actions .text-input{flex-basis:100%}.profile-edit-actions button{flex:1}}


/* V1.23.12 — one compact, persistent header wallet/account navigation. */
.header-wallet{
  display:flex;align-items:center;gap:9px;align-self:center;
  border-left:1px solid #293548;margin-left:8px;padding-left:15px;height:39px;
  white-space:nowrap;
}
.header-wallet-amount{display:flex;align-items:baseline;gap:5px;color:#a8b4c6;font-variant-numeric:tabular-nums}
.header-wallet-amount strong{font-size:19px;line-height:1;color:#ff9439;font-weight:900}
.header-wallet-amount small{font-size:9px;font-weight:800;letter-spacing:.06em}
.header-wallet-add{
  display:grid;place-items:center;width:31px;height:31px;min-width:31px;
  border:1px solid #ff912d8c;border-radius:9px;background:#ff7a0019;color:#ffae69;
  font-size:21px;line-height:1;font-weight:700;
}
.header-wallet-add:hover,.header-wallet-add:focus-visible{border-color:#ffae64;background:#ff7a003b;color:#fff}
.header-wallet.low-balance .header-wallet-amount strong{color:#ffc287}
.tabs .tab:disabled,.header-wallet-add:disabled{opacity:.4;cursor:not-allowed}
@media(max-width:1280px) and (min-width:1101px){
  .topbar{grid-template-columns:minmax(0,1fr) auto auto;gap:12px;padding:0 16px}
  .brand-name{font-size:17px}.brand-divider{margin:0 12px}.page-title{font-size:18px}.tagline{font-size:8px}
  .tabs .tab{min-width:90px;font-size:12px}
  .header-wallet{gap:7px;margin-left:5px;padding-left:10px}
}
@media(max-width:1100px){
  .tabs .tab{min-width:94px}
  .header-wallet{gap:7px;margin-left:3px;padding-left:10px}
}
@media(max-width:680px){
  .topbar .tabs{display:flex;width:100%;align-items:stretch;gap:0;min-width:0;height:44px}
  .topbar .tabs .tab{min-width:0;flex:1 1 0;padding:0 3px;font-size:11px}
  .topbar .tabs .header-wallet{flex:0 0 auto;padding-left:9px;margin-left:3px;gap:6px;height:34px}
  .topbar .header-wallet-amount{gap:3px}
  .topbar .header-wallet-amount strong{font-size:17px}
  .topbar .header-wallet-amount small{font-size:8px}
  .topbar .header-wallet-add{width:27px;height:27px;min-width:27px;font-size:19px;border-radius:7px}
}
@media(max-width:370px){
  .topbar .tabs .tab{font-size:10px}
  .topbar .tabs .header-wallet{gap:4px;padding-left:6px}
  .topbar .header-wallet-amount small{font-size:7px}
  .topbar .header-wallet-add{width:25px;height:25px;min-width:25px}
}
/* Do not reserve empty space for the removed browser and room wallet tiles. */
.arena-page-head{justify-content:flex-start}
.room-header-actions{grid-template-columns:auto auto}
@media(max-width:740px){.room-header-actions{width:auto;align-self:stretch;display:flex;justify-content:flex-end}}

/* V1.23.13 — secure account recovery and first-time email confirmation. */
.recovery-text-btn{display:block;margin:11px auto 2px;padding:7px 12px;border:0;background:none;color:#ffb071;font-size:12px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.recovery-text-btn:hover{color:#fff}
.aa-recovery-pane{margin:12px 0;padding:16px;border:1px solid #344154;border-radius:12px;background:#0b1523;min-width:0}
.aa-recovery-pane h3{font-size:17px;margin:8px 0;line-height:1.4}
.aa-recovery-pane p{font-size:12px;line-height:1.6;color:#b6c3d4;margin:8px 0 12px}
.aa-recovery-pane .field-label{display:block;margin:12px 0 6px}
.aa-recovery-pane .text-input{width:100%;min-width:0}
.aa-recovery-pane .primary-btn{margin-top:15px}
.aa-recovery-pane .recovery-result{min-height:1.5em;color:#ffbf82;overflow-wrap:anywhere}
.account-verify-warning{width:100%;max-width:620px;margin-top:16px;padding:16px 18px;border:1px solid #995e2c;background:linear-gradient(135deg,#332111,#191725);border-radius:12px}
.account-verify-warning b{display:block;color:#ffb76f;font-size:12px;line-height:1.4}
.account-verify-warning p{font-size:12px;color:#d0c0b1;line-height:1.55;margin:8px 0}
.account-verify-warning .verify-resend-btn{padding:9px 13px;border:1px solid #ff9a416e;background:#f5821b17;color:#ffb670;border-radius:8px;font-size:10px;letter-spacing:.07em;font-weight:800;max-width:100%}
.account-verify-warning .verify-resend-btn:disabled{opacity:.5}
.account-verify-warning #accountVerifyMsg{font-size:11px;color:#ffcb98;margin-bottom:0;overflow-wrap:anywhere}
@media(max-width:430px){.aa-recovery-pane{padding:13px}.account-verify-warning{padding:13px}}


/* V1.23.14 — public driver leaderboard. No changes to driving HUD. */
.nav-short{display:none}
.leaderboard-screen{overflow:auto;scrollbar-width:thin;background:#090d15}
.leaderboard-page{width:min(1260px,100%);margin:0 auto;display:grid;gap:16px;padding:4px 0 32px}
.lb-hero{position:relative;overflow:hidden;border:1px solid #2c3850;border-radius:15px;padding:32px 38px;display:flex;align-items:center;justify-content:space-between;min-height:194px;background:radial-gradient(ellipse at 87% 15%,#452340 0%,transparent 40%),linear-gradient(115deg,#171b2a,#10121d 60%,#1e1526)}
.lb-hero:after{content:"";position:absolute;inset:auto 0 0;height:4px;background:linear-gradient(90deg,#ff841c,#be75fb)}
.lb-hero-copy{position:relative;z-index:1}
.lb-hero h1{font-family:Audiowide,system-ui,sans-serif;font-weight:400;font-size:clamp(25px,3vw,45px);line-height:1.2;margin:15px 0 10px;letter-spacing:.01em;color:#f6f5fa}
.lb-hero h1 span{color:#ffa054}.lb-hero p{color:#b8c5da;font-size:14px;max-width:560px;margin:0;line-height:1.5}
.lb-trophy{font-size:106px;opacity:.58;text-shadow:0 4px 45px #ff94365c;filter:saturate(.9);line-height:1}
.lb-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.lb-period-picker{display:flex;align-items:center;gap:5px;background:#101725;border:1px solid #2a3850;padding:5px;border-radius:10px}
.lb-period{background:transparent;border:0;border-radius:7px;padding:11px 16px;color:#9faec3;font-weight:800;font-size:11px;letter-spacing:.05em}
.lb-period.active{background:#ff8b2b;color:#131118;box-shadow:0 0 14px #ff8b2b33}
.lb-period:focus-visible,.lb-refresh:focus-visible,.lb-account-cta:focus-visible{outline:2px solid #ffa74f;outline-offset:2px}
.lb-toolbar-right{display:flex;align-items:center;gap:14px;color:#94a7c5;font-size:11px;font-weight:750;letter-spacing:.04em}
.lb-refresh{color:#f7c091;border:1px solid #39455a;background:#1b2432;border-radius:8px;padding:11px 14px;font-size:10px;font-weight:800;white-space:nowrap}
.lb-refresh:disabled{opacity:.55}
.lb-table-area{border:1px solid #303e55;background:linear-gradient(180deg,#151d2b,#101621);border-radius:14px;overflow:hidden}
.lb-table-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:25px 28px 18px}
.lb-table-head h2{font-family:Audiowide,system-ui,sans-serif;margin:8px 0 0;font-size:21px;font-weight:400}
.lb-table-head #lbParticipants{color:#abbacf;font-size:12px;white-space:nowrap}
.lb-scroll{overflow-x:auto}.lb-table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left}
.lb-table thead{background:#0f1724}.lb-table th{padding:14px 25px;color:#91a3bb;font-size:10px;font-weight:900;letter-spacing:.12em}
.lb-table td{padding:17px 25px;border-top:1px solid #283347;color:#f1f5fd;font-size:14px;font-weight:750}
.lb-table .lb-num{text-align:right;font-variant-numeric:tabular-nums}
.lb-table .lb-rank{font-family:Audiowide,system-ui,sans-serif;color:#b7c4d7;font-size:16px}
.lb-table .lb-name{font-size:14px}.lb-table .lb-me .lb-name{color:#ffae65}
.lb-table .lb-me{background:#ff8c2110}.lb-table tr:hover{background:#ffffff06}
.lb-table tr.lb-me:hover{background:#ff8c2120}
.lb-table .lb-wins{color:#ffc48f;font-size:17px;font-weight:900}
.lb-table .lb-first{color:#ffbf43}.lb-table .lb-second{color:#cfdbec}.lb-table .lb-third{color:#d9a16e}
.lb-table .lb-empty{white-space:normal;text-align:center;color:#aebed4;font-weight:500;padding:50px 18px}
.lb-you{display:inline-block;margin-left:9px;font-size:9px;color:#ffac63;background:#ff922b1c;border:1px solid #ff953d69;border-radius:5px;padding:4px 6px;vertical-align:middle;letter-spacing:.1em}
.lb-status{min-height:18px;padding:12px 24px;border-top:1px solid #283347;color:#8d9eb6;font-size:11px;margin:0}
.lb-explainer{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.lb-explainer>div{padding:20px 22px;border:1px solid #28374c;border-radius:12px;background:#111925}
.lb-explainer b{color:#ffab6c;font-size:11px;letter-spacing:.08em}
.lb-explainer p{color:#a7b8cf;font-size:12px;line-height:1.6;margin:10px 0 0}
.lb-footer-actions{display:flex;justify-content:flex-start}.lb-footer-actions button{max-width:270px}
.leaderboard-optin{margin-top:14px;border:1px solid #34445a;padding:12px 14px;border-radius:9px;background:#101723}
.lb-consent-label{display:flex;align-items:flex-start;gap:9px;font-size:12px;font-weight:800;color:#f1f3fb;line-height:1.4;cursor:pointer}
.lb-consent-label input{accent-color:#ff8723;width:17px;height:17px;flex:none;margin:0}
.leaderboard-optin>small{display:block;color:#a3b0c4;margin-top:8px;font-size:10px;line-height:1.5}
.lb-consent-status{color:#ffbd83;margin:6px 0 0;font-size:11px;min-height:14px}
.lb-account-cta{border:1px solid #ef8e4e80;border-radius:8px;color:#ffae66;background:#ff8d311a;padding:12px 18px;font-size:10px;letter-spacing:.06em;font-weight:900;margin-top:12px}
.lb-account-cta:hover{background:#ff8d3130}
@media(max-width:1080px){.lb-hero{padding:24px}.lb-trophy{font-size:76px}}
@media(max-width:680px){
 .topbar .tabs .tab{font-size:10px}.nav-long{display:none}.nav-short{display:inline}
 .leaderboard-page{gap:12px}.lb-hero{padding:24px 18px;min-height:150px}.lb-hero h1{font-size:26px}
 .lb-trophy{font-size:48px;margin-left:8px}.lb-hero p{font-size:12px}
 .lb-table th,.lb-table td{padding:12px 10px}.lb-table th{font-size:9px}
 .lb-table td{font-size:12px}.lb-table .lb-wins{font-size:14px}
 .lb-table .lb-name{font-size:12px}.lb-secondary-col{display:none}
 .lb-table-head{padding:20px 15px 16px}.lb-table-head h2{font-size:16px}
 .lb-table-head #lbParticipants{font-size:10px}.lb-explainer{grid-template-columns:1fr}
 .lb-period{padding:9px 12px;font-size:10px}
 .lb-toolbar-right{font-size:10px;gap:7px}.lb-refresh{padding:9px}
 .lb-you{margin-left:4px;font-size:8px;padding:3px 4px}
}
@media(max-width:370px){
 .topbar .tabs .tab{font-size:9px}
 .topbar .tabs .header-wallet{padding-left:4px;margin-left:0;gap:3px}
 .topbar .header-wallet-amount strong{font-size:15px}
 .topbar .header-wallet-amount small{font-size:6px}
 .topbar .header-wallet-add{width:24px;height:24px;min-width:24px}
 .lb-hero h1{font-size:21px}.lb-trophy{font-size:36px}
 .lb-toolbar{gap:8px}.lb-toolbar-right #lbPeriodCaption{display:none}
 .lb-table th,.lb-table td{padding:11px 7px}.lb-table .lb-name{font-size:11px}
}

/* V1.23.15/16 — device gate and native share/copy friend invites. Existing desktop/tablet driving unchanged. */
html.aa-phone, html.aa-phone body { height:auto;min-height:100%;overflow:auto; }
html.aa-phone .app-shell{display:none!important}
.phone-gate{min-height:100dvh;display:grid;place-items:center;padding:max(18px,env(safe-area-inset-top)) 18px max(22px,env(safe-area-inset-bottom));background:radial-gradient(ellipse at 50% 2%,#3c1c38 0%,transparent 55%),linear-gradient(150deg,#0c111c,#06080e 65%)}
.phone-gate-card{width:min(480px,100%);padding:clamp(22px,6vw,36px);border-radius:23px;background:linear-gradient(145deg,#172033,#0b101c);border:1px solid #37445c;box-shadow:0 20px 70px #000b;text-align:center}
.phone-gate-logo{font-family:Audiowide,system-ui,sans-serif;font-size:20px;letter-spacing:.07em;white-space:nowrap;margin:0 auto 20px;color:#f1f5fd}.phone-gate-logo span{color:#ff922f}
.phone-gate .eyebrow{font-size:10px;color:#f1aa64;letter-spacing:.14em;font-weight:800}
.phone-device-icon{margin:18px auto 8px;width:64px;height:64px;display:grid;place-items:center;border-radius:18px;font-size:38px;color:#ff9542;background:#ff943417;border:1px solid #ff94344b}
.phone-gate h1{font-family:Audiowide,system-ui,sans-serif;line-height:1.25;font-size:clamp(23px,7vw,33px);font-weight:400;margin:16px 0}.phone-gate h1 span{color:#ffaf6a}
.phone-gate-card>p{font-size:15px;color:#c0ccde;line-height:1.6;margin:12px auto 22px}.phone-gate strong{color:white}
.phone-invite{margin-top:20px;border-radius:13px;border:1px solid #a56fca75;background:#a269bf12;padding:20px 15px}
.phone-invite small{display:block;color:#bda1ee;letter-spacing:.1em;font-weight:900;font-size:10px}
.phone-invite b{display:block;margin-top:8px;font-size:23px;color:white;letter-spacing:.04em}
.phone-invite p{color:#b3c1d4;line-height:1.45;font-size:13px}.phone-invite .primary-btn{max-width:310px;margin:auto}
.phone-copy-status{font-size:12px;word-break:break-word;color:#ffc08b;min-height:16px}
.phone-gate-foot{margin-top:25px;padding-top:19px;border-top:1px solid #344057;font-size:12px;line-height:1.6;color:#97a9c1}
.phone-gate-foot b{color:#f4b87d}
.invite-banner{background:linear-gradient(110deg,#37223e,#1d223c);border:1px solid #9569c6;border-left:3px solid #ff9639;border-radius:12px;padding:13px 15px;margin-bottom:16px}
.invite-banner-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.invite-banner-head span{color:#dcb4ff;letter-spacing:.09em;font-size:10px;font-weight:900}
.invite-banner-head button{font-size:24px;line-height:1;padding:0 5px;background:transparent;color:#bcc4dc;border:0}
.invite-banner>b{display:block;font-size:17px;color:#fff;margin:8px 0 4px}.invite-banner>b span{color:#ffbd89;letter-spacing:.07em}
.invite-banner p{font-size:12px;color:#cfcae3;margin:8px 0;line-height:1.5}
.invite-retry-btn{border:1px solid #eaa26c;background:#ff8a2a2a;color:#ffcd9d;border-radius:7px;padding:9px 12px;font-weight:900;font-size:11px;cursor:pointer;margin-top:5px}
.browser-invite-panel{border-color:#976abc;background:#291c39}.browser-invite-panel p{font-size:12px;line-height:1.5;color:#e1d2f6}
.browser-invite-actions{display:flex;gap:7px;align-items:center}.browser-invite-actions .secondary-btn{height:36px;font-size:10px;flex:1}.browser-invite-actions .room-mini-btn{height:36px}
.room-invite-buttons{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px}
.room-invite-buttons>small{flex-basis:100%;font-weight:900;letter-spacing:.12em;font-size:9px;color:#ad92d3;text-align:right}
.room-invite-buttons .room-mini-btn{font-size:9px;height:34px;border-color:#4b416b;background:#201c31;color:#eed9ff;white-space:nowrap}
.room-invite-buttons .room-mini-btn:hover{color:#fff;border-color:#ffad70}
@media(max-width:900px){.room-invite-buttons{justify-content:flex-start}.room-invite-buttons>small{text-align:left}.room-invite-buttons .room-mini-btn{font-size:10px}}
@media(max-width:400px){.room-invite-buttons .room-mini-btn{font-size:9px;height:32px;padding:0 7px}}


/* V1.23.17 — driver identity and leaderboard visibility belong in Settings. */
.settings-profile-card[hidden],.settings-profile-card .leaderboard-optin[hidden],.settings-profile-card .profile-name-editor[hidden],.settings-profile-card .profile-edit-btn[hidden]{display:none!important}
.settings-profile-card{grid-column:1/-1}
.settings-profile-card h2{margin-bottom:15px}
.settings-profile-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
.settings-profile-identity,.settings-profile-privacy{min-width:0}
.settings-profile-privacy{border-left:1px solid #31394b;padding-left:24px}
.settings-profile-name-row{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:14px 0 6px}
.settings-profile-name-row strong{display:block;margin-top:7px;font:600 clamp(17px,2vw,24px)/1.35 var(--heading-font,'Audiowide'),sans-serif;color:#fafbff;overflow-wrap:anywhere}
.settings-profile-label{display:block;font-size:10px;font-weight:900;letter-spacing:.12em;color:#9aabc3}
.settings-profile-card .leaderboard-optin{margin-top:14px}
.settings-profile-card .profile-name-editor{max-width:none}
.settings-profile-help{margin-top:10px;max-width:55ch}
.settings-profile-status{font-size:11px;color:#74e2ae;min-height:1.3em;margin:6px 0 0}
@media(max-width:720px){.settings-profile-grid{grid-template-columns:1fr;gap:15px}.settings-profile-privacy{border-left:0;border-top:1px solid #31394b;padding-left:0;padding-top:18px}}

/* V1.23.18 — friends, private chat and direct room invites */
.friends-badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 4px;margin-left:4px;border-radius:99px;background:#a86bfa;color:#fff;font-size:10px;font-weight:800}
.friends-screen{min-width:0}.friends-page{max-width:1470px;margin:0 auto;padding:26px clamp(16px,3.5vw,54px) 44px}
.friends-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.friends-hero h1{font-family:Audiowide,sans-serif;font-size:clamp(26px,3.6vw,48px);margin:9px 0}.friends-hero h1 span{color:var(--purple,#b17af5)}.friends-hero p{color:#b6bed0;line-height:1.6;margin:0;max-width:580px;font-size:14px}
.friends-layout{display:grid;grid-template-columns:minmax(280px,385px) minmax(0,1fr);gap:18px;align-items:start}
.friends-sidebar{display:flex;flex-direction:column;gap:16px;min-width:0}
.friends-card{min-width:0;border:1px solid #30384f;border-radius:15px;background:linear-gradient(145deg,#151b2b,#101522);padding:20px;box-shadow:0 12px 34px #0002}
.friends-card>.panel-title{margin-bottom:15px}.friends-card small{color:#a8b2c8}
.friends-add-form{display:flex;gap:8px;margin:12px 0 9px}.friends-add-form .text-input{min-width:0;flex:1;width:0}.friends-add-form .secondary-btn{white-space:nowrap;font-size:12px}
.friends-roster .friends-heading{display:flex;align-items:center;justify-content:space-between;gap:6px}.friends-roster .friends-heading .panel-title{margin:0}.friends-list{display:grid;gap:7px;margin-top:18px}
.friends-person{display:flex;justify-content:space-between;align-items:center;border:1px solid #313a50;border-radius:10px;background:#0c1220;padding:5px;gap:5px}
.friends-person.active{border-color:#b17af5;background:#1c1830}.friends-person-select{display:flex;gap:10px;align-items:center;flex:1;min-width:0;border:0;background:none;color:#fff;cursor:pointer;text-align:left;padding:8px}
.friends-person-select>span{display:flex;flex-direction:column;min-width:0;gap:3px}.friends-person-select b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.friends-person-select small{font-size:11px}.friends-person-select em{font-style:normal;background:#b17af5;border-radius:99px;padding:3px 6px;font-size:10px}
.friends-presence{display:inline-block;width:9px;height:9px;flex:none;border-radius:50%;background:#647088}.friends-presence.online{background:#45dc97;box-shadow:0 0 10px #45dc9790}.friends-person-actions{display:flex;align-items:center;gap:2px}.friends-person-actions .room-mini-btn{padding:6px 8px;font-size:10px}.friends-person-actions .friends-remove{opacity:.72}
.friends-pending{display:block;margin-top:12px;line-height:1.5}.friends-request{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #313a50;padding:12px 0}.friends-request:first-child{border-top:0}.friends-request>div:first-child{min-width:0}.friends-request b{display:block;font-size:13px}.friends-request small{display:block;font-size:12px;margin-top:3px}.friends-request-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:end}.friends-request-actions .room-mini-btn{font-size:10px;padding:6px 8px}.friends-count{font-size:11px;color:#a9b5ce}
.friends-conversation{height:min(635px,calc(100vh - 230px));min-height:390px;display:flex;flex-direction:column;overflow:hidden}
.friends-chat-head{padding:0 0 18px;border-bottom:1px solid #343c52}.friends-chat-head h2{font-family:Audiowide,sans-serif;font-size:clamp(16px,2vw,22px);margin:8px 0}.friends-chat-head small{font-size:12px}
.friends-chat-log{min-height:0;flex:1;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:20px 4px 14px;overscroll-behavior:contain}.friends-chat-placeholder{color:#98a4bd;font-size:13px;text-align:center;margin:auto;padding:20px;line-height:1.7}
.friends-message{max-width:min(85%,490px);display:flex;flex-direction:column;gap:6px;align-self:flex-start}.friends-message.sent{align-self:flex-end}.friends-message div{padding:11px 14px;border-radius:13px;background:#222941;color:#ecf1ff;overflow-wrap:anywhere;font-size:13px;line-height:1.5}.friends-message.sent div{background:linear-gradient(130deg,#7e4fbb,#6443a9);color:white}.friends-message small{font-size:10px}.friends-message.sent small{text-align:right}
.friends-chat-form{display:flex;gap:10px;border-top:1px solid #343c52;padding-top:15px}.friends-chat-form input{flex:1;min-width:0}.friends-chat-form button{min-width:75px}.friends-chat-form :disabled{opacity:.45}.friends-message-status,.friends-status{font-size:12px;color:#c9b5f5;min-height:16px;margin:8px 0 0}
@media(max-width:860px){.friends-layout{grid-template-columns:1fr}.friends-conversation{height:480px;min-height:330px}.friends-hero{align-items:start}}
@media(max-width:520px){.friends-page{padding:18px 12px 32px}.friends-hero{flex-direction:column}.friends-card{padding:14px}.friends-person-select{padding:5px}.friends-person-actions .room-mini-btn{padding:5px 6px}.friends-add-form{flex-wrap:wrap}.friends-add-form .text-input{flex-basis:160px}.friends-request{align-items:start;flex-direction:column}.friends-request-actions{justify-content:start}.friends-conversation{height:420px}}
/* Keep input fields wide: legacy primary/secondary buttons are width:100%. */
.friends-add-form .text-input{flex:1 1 0;min-width:115px;width:auto}
.friends-add-form .secondary-btn{flex:0 0 auto;width:auto;padding:0 15px}
.friends-chat-form .text-input{flex:1 1 0;min-width:100px;width:auto}
.friends-chat-form .primary-btn{flex:0 0 auto;width:auto;min-width:83px;margin-top:0;padding:0 16px}

/* V1.23.20 — Saved conversations and site-wide Friends notifications */
.friends-history-tools{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:9px 0 5px;flex-shrink:0;color:#9faac3;font-size:11px}
.friends-history-tools .room-mini-btn{font-size:10px;padding:6px 9px;white-space:nowrap}
.friends-person-select .friends-last-message{color:#8494ad;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:225px;display:block}
.friends-person.active .friends-last-message{color:#c9b2ec}
.friends-person-select .friends-name-line{display:flex;gap:7px;align-items:center;min-width:0}
.friends-person-select .friends-name-line b{flex:1;min-width:0}
.friends-person-select .friends-last-date{font-size:10px;color:#96a7bf;white-space:nowrap}
.friends-person-select .friends-name-line em{flex:0 0 auto;font-style:normal;background:#a66cfa;color:#fff;border-radius:99px;padding:3px 6px;font-size:10px}
.aa-social-toast-area{position:fixed;right:18px;top:86px;z-index:7000;display:flex;flex-direction:column;gap:8px;width:min(350px,calc(100vw - 30px));pointer-events:none}
.aa-social-toast{pointer-events:auto;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;background:linear-gradient(125deg,#212947,#19172c);color:#eef0fc;border:1px solid #9d70eb;box-shadow:0 12px 35px #0009;border-radius:12px;padding:14px 16px;cursor:pointer;font-family:inherit}
.aa-social-toast:hover,.aa-social-toast:focus-visible{border-color:#f9a448;outline:2px solid #f9a44844}
.aa-social-toast span{display:flex;flex-direction:column;gap:5px;min-width:0}
.aa-social-toast strong{font-size:13px;overflow-wrap:anywhere}
.aa-social-toast small{font-size:11px;color:#b4c3d8;line-height:1.4}
.aa-social-toast .toast-arrow{font-size:20px;color:#f9a448}
.aa-phone .aa-social-toast-area{display:none}
@media(max-width:680px){.aa-social-toast-area{right:10px;top:118px}.friends-history-tools{flex-wrap:wrap}.friends-person-select .friends-last-message{max-width:190px}}
@media(max-width:380px){.aa-social-toast-area{top:112px}.friends-history-tools{font-size:10px}.friends-history-tools .room-mini-btn{font-size:9px}}


/* V1.23.21 — player safety controls */
.friends-safety-card .friends-add-form{margin:10px 0}.friends-safety-card>.panel-title{margin-bottom:10px}
.friends-blocked-list{display:grid;gap:6px;margin:12px 0}
.friends-blocked-driver{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #30384e;border-radius:8px;padding:6px 10px;color:#f1f2f8;font-size:12px}
.friends-blocked-driver span{overflow-wrap:anywhere}.friends-no-blocks{color:#7887a0}
.friends-danger{color:#ffb6a9!important}.friends-danger:hover{background:#41292e!important;border-color:#ed786a!important}
.friends-chat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.friends-peer-actions{display:flex;gap:6px;align-items:center}.friends-peer-actions .room-mini-btn{font-size:10px;padding:6px 9px}
.friends-msg-meta{display:flex;gap:8px;align-items:center;justify-content:space-between}.friends-msg-meta button{background:transparent;border:none;padding:3px 4px;color:#a4b3d1;cursor:pointer;font-size:10px;letter-spacing:.04em}
.friends-msg-meta button:hover,.friends-msg-meta button:focus-visible{color:#ffc49c;text-decoration:underline}
.friends-message.sent .friends-msg-meta{justify-content:flex-end}
.social-alert-label{display:flex;align-items:center;gap:10px;line-height:1.45;font-size:13px;color:#e3e8f4;cursor:pointer;margin:14px 0}
.social-alert-label input{accent-color:#ad78ec;width:18px;height:18px;flex:none}
.friends-report-dialog{width:min(480px,calc(100vw - 28px));max-height:calc(100dvh - 30px);overflow:auto;border:1px solid #8d69ce;border-radius:16px;padding:24px;background:#171e2e;color:#f1f4fb;box-shadow:0 22px 80px #000b}
.friends-report-dialog::backdrop{background:#05060bbd}
.friends-report-dialog form{display:flex;flex-direction:column;gap:10px}.friends-report-dialog h2{margin:2px 0 6px;font:600 19px Audiowide,sans-serif}
.friends-report-dialog .text-input{min-width:0;width:100%;box-sizing:border-box}
.friends-report-dialog .field-label{margin-top:8px}.friends-report-dialog p{font-size:12px;line-height:1.55;color:#aab5c9;margin:2px 0}
.friends-report-dialog .friends-report-quote{background:#242d45;color:#f0f4fa;border-left:3px solid #9e6cf1;border-radius:5px;padding:12px;overflow-wrap:anywhere}
.friends-report-buttons{display:flex;justify-content:end;gap:8px;margin-top:8px}.friends-report-buttons .primary-btn,.friends-report-buttons .room-mini-btn{width:auto;min-width:110px;padding:9px 12px;font-size:11px}
@media(max-width:520px){.friends-peer-actions{width:100%}.friends-report-dialog{padding:16px}.friends-report-buttons{justify-content:stretch}.friends-report-buttons button{flex:1;min-width:0}}

/* V1.23.22 — safe moderation of ephemeral room chat */
.room-chat-line{position:relative;min-width:0}
.room-report-btn{border:0;background:transparent;color:#92a2bc;font-size:9px;font-weight:800;letter-spacing:.06em;padding:2px 0;min-height:20px;justify-self:start;align-self:center;text-decoration:underline;text-decoration-color:transparent}
.room-report-btn:hover,.room-report-btn:focus-visible{color:#fff;text-decoration-color:currentColor}
.lobby-chat-panel .room-chat-line .room-report-btn{align-self:flex-start;font-size:10px;opacity:.85}
.drive-chat-panel .room-chat-line .room-report-btn{font-size:9px}
@media(max-width:520px){.room-report-btn{min-height:30px;padding:4px 0}}

/* V1.23.25 — Emoji driver icons. No portrait art, no external picker dependencies. */
.aa-avatar{display:inline-flex;flex:none;align-items:center;justify-content:center;width:var(--aa-avatar-size,44px);height:var(--aa-avatar-size,44px);border-radius:50%;overflow:hidden;background:radial-gradient(circle at 35% 26%,#34375a,#17192f 70%);border:1px solid #7c609f;box-shadow:0 2px 10px #0008;vertical-align:middle}
.aa-avatar-glyph{font-family:'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',system-ui,sans-serif;font-size:calc(var(--aa-avatar-size,44px)*.70);font-weight:400;line-height:1;display:flex;align-items:center;justify-content:center;width:100%;height:100%;text-align:center;white-space:nowrap;font-variant-emoji:emoji}
.aa-account-portrait{position:relative;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;cursor:pointer;flex:none}
.aa-account-portrait:focus-visible{outline:3px solid #ffae52;outline-offset:4px;border-radius:50%}
.aa-account-portrait>.aa-avatar{width:96px!important;height:96px!important;--aa-avatar-size:96px!important;border:2px solid #a57be6;box-shadow:0 0 25px #a476ec2c}
.aa-avatar-edit-hint{position:absolute;bottom:0;right:-14px;color:#151423;background:#ff9639;border-radius:16px;padding:4px 8px;box-shadow:0 3px 10px #0009;font:400 9px/1.4 Audiowide,sans-serif;white-space:nowrap}
#avatarAccountStatus{margin-left:8px;color:#50dda3}
.game-room-screen .room-member>.aa-avatar{width:45px;height:45px}
.lb-table .lb-name .aa-avatar{width:36px;height:36px;margin-right:9px;border-color:#44526b}
.lb-table .lb-name span:not(.aa-avatar):not(.aa-avatar-glyph){vertical-align:middle}
.friends-person-select .aa-avatar{width:40px;height:40px}
.friends-message>.aa-avatar{width:30px;height:30px}
.room-chat-line>.aa-avatar{flex:none;align-self:center;width:32px;height:32px}
.lobby-chat-panel .room-chat-line>.aa-avatar{grid-row:span 3;align-self:start}
.lobby-chat-panel .room-chat-line>b,.lobby-chat-panel .room-chat-line>span:not(.aa-avatar){grid-column:2}
.aa-avatar-dialog{width:min(860px,calc(100% - 24px));max-height:calc(100dvh - 28px);padding:0;overflow-y:auto;overscroll-behavior:contain;color:#eff3fc;background:#0b101c;border:1px solid #5b4a7a;border-radius:19px;box-shadow:0 30px 100px #000e}
.aa-avatar-dialog::backdrop{background:#03050ddd;backdrop-filter:blur(8px)}
.aa-avatar-dialog-bar{padding:20px 24px;border-bottom:1px solid #283249;background:linear-gradient(110deg,#211a38,#111a2b 65%,#1b1428);display:flex;align-items:center;justify-content:space-between;gap:16px}
.aa-avatar-dialog-bar h2{margin:5px 0 0;font:400 clamp(18px,2.7vw,27px)/1.4 Audiowide,sans-serif;color:#fff}
.aa-avatar-dialog-close{border:1px solid #52617c;background:#1d2433;color:#fff;width:38px;height:38px;border-radius:12px;cursor:pointer;flex:none;font-size:17px}
.aa-avatar-dialog-close:hover{border-color:#efa055;background:#303347}
.aa-avatar-dialog-content{padding:20px;display:grid;grid-template-columns:minmax(190px,230px) minmax(0,1fr);gap:20px;align-items:start}
.aa-avatar-preview-panel{position:sticky;top:12px;display:flex;flex-direction:column;align-items:center;gap:11px;background:linear-gradient(153deg,#28304a,#101725 65%);border:1px solid #444b72;border-radius:16px;padding:20px 14px;min-width:0}
.aa-avatar-hero{display:flex;align-items:center;justify-content:center;width:min(100%,170px);aspect-ratio:1;border:3px solid #ff9639;border-radius:50%;background:radial-gradient(circle at 35% 22%,#4a356b,#1d2037 73%);box-shadow:0 5px 22px #0009,0 0 20px #ff963927;overflow:hidden}
.aa-avatar-hero>.aa-avatar-glyph{font-size:clamp(80px,10vw,119px);line-height:1}
.aa-avatar-preview-caption{font:400 12px/1.4 Audiowide,sans-serif;letter-spacing:.03em;color:#ffa35b;overflow-wrap:anywhere;text-align:center}
.aa-avatar-random-btn{border:1px solid #795c9b;color:#f4effd;background:#23243e;padding:10px;border-radius:10px;cursor:pointer;font:400 10px/1.4 Audiowide,sans-serif;width:100%}
.aa-avatar-random-btn:hover{background:#353356}
.aa-avatar-preview-tip{text-align:center;color:#9baac6;font-size:11px;line-height:1.5}
.aa-avatar-design-panel{min-width:0;display:flex;flex-direction:column;gap:11px}
.aa-emoji-search-label{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#bec9e2;gap:8px}
.aa-emoji-search-label span{color:#a9b3ca;font-size:11px}
.aa-emoji-search{width:100%;box-sizing:border-box;min-height:45px;padding:10px 13px;border-radius:10px;background:#151e2f;color:#fff;border:1px solid #56627c;font:400 14px/1.4 system-ui,sans-serif;outline:none}
.aa-emoji-search:focus{border-color:#f49d49;box-shadow:0 0 0 2px #f49d4930}
.aa-emoji-categories{display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin;padding:2px 0 6px;white-space:nowrap}
.aa-emoji-category{flex:none;padding:8px 11px;border:1px solid #394660;border-radius:9px;background:#131b2b;color:#c5cde0;cursor:pointer;font:500 11px/1.2 system-ui,sans-serif}
.aa-emoji-category:hover{border-color:#a178d4}
.aa-emoji-category.active{background:#533578;border-color:#b689e9;color:#fff}
.aa-avatar-fields{min-height:258px;max-height:340px;overflow-y:auto;overscroll-behavior:contain;background:#0c1322;border:1px solid #2b3a55;border-radius:12px;padding:11px;scrollbar-width:thin}
.aa-emoji-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:7px}
.aa-emoji-choice{width:100%;aspect-ratio:1;border:1px solid #3c4960;border-radius:11px;background:#171f31;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;padding:0}
.aa-emoji-choice>span{font-family:'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',system-ui,sans-serif;font-size:clamp(22px,3vw,31px);font-variant-emoji:emoji;line-height:1}
.aa-emoji-choice:hover{border-color:#e9aa70;background:#2b2941}
.aa-emoji-choice.selected{border:2px solid #ffae52;background:#322941;box-shadow:inset 0 0 0 1px #ffae523b}
.aa-emoji-choice:focus-visible,.aa-emoji-category:focus-visible,.aa-avatar-actions button:focus-visible{outline:3px solid #e9b44c;outline-offset:2px}
.aa-emoji-more{width:100%;margin-top:10px;padding:10px;border:1px solid #526680;background:#222840;color:#f3effa;border-radius:9px;cursor:pointer;font:400 10px Audiowide,sans-serif}
.aa-emoji-empty{text-align:center;margin:25px 0;color:#a7b4ce;font-size:13px;line-height:1.5}
.aa-avatar-editor-bottom{display:flex;flex-direction:column;border-top:1px solid #27344c;padding-top:13px;gap:10px}
#avatarEditorStatus{color:#b0c1da;font-size:12px;min-height:17px;margin:0}
.aa-avatar-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.aa-avatar-actions button{min-height:42px;cursor:pointer;border-radius:9px;padding:11px 14px;font:400 11px/1.4 Audiowide,sans-serif}
.aa-avatar-secondary{background:#1a2232;color:#c3cce1;border:1px solid #455571}
.aa-avatar-secondary:hover{background:#273349;color:#fff}
.aa-avatar-save{background:linear-gradient(135deg,#ffab36,#ff7f27);color:#151318;border:1px solid #ffb657}
.aa-avatar-save:not(:disabled):hover{filter:brightness(1.13)}
.aa-avatar-actions button:disabled{opacity:.46;cursor:not-allowed}
@media(max-width:700px){.aa-avatar-dialog-content{grid-template-columns:1fr;gap:11px;padding:13px}.aa-avatar-preview-panel{position:static;display:grid;grid-template-columns:96px minmax(0,1fr);gap:3px 12px;align-items:center;text-align:left;padding:10px}.aa-avatar-hero{width:96px;grid-row:span 3}.aa-avatar-hero>.aa-avatar-glyph{font-size:68px}.aa-avatar-preview-caption{text-align:left}.aa-avatar-preview-tip{text-align:left}.aa-emoji-grid{grid-template-columns:repeat(8,minmax(0,1fr))}.aa-avatar-dialog-bar{padding:13px 17px}}
@media(max-width:460px){.aa-avatar-dialog{width:calc(100% - 12px);max-height:calc(100dvh - 16px)}.aa-avatar-dialog-content{padding:9px}.aa-avatar-fields{max-height:270px;padding:7px}.aa-emoji-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.aa-emoji-choice>span{font-size:clamp(23px,7vw,30px)}.aa-emoji-category{padding:8px 9px}.aa-avatar-actions button{font-size:10px;padding:10px}.aa-account-portrait{min-width:78px;min-height:78px}.aa-account-portrait>.aa-avatar{width:72px!important;height:72px!important;--aa-avatar-size:72px!important}.aa-avatar-edit-hint{font-size:8px;right:-9px}}
@media(max-width:350px){.aa-emoji-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}


/* V1.23.26 — six compact, evenly sized lobby seats. Keep emoji and text on ONE row.
   Card layout: team accent | avatar | driver details. Don't let status float over text. */
.game-room-screen .room-member-grid{
  grid-auto-rows:minmax(80px,auto);
  align-items:stretch;
}
.game-room-screen .room-member{
  display:grid;
  grid-template-columns:4px 42px minmax(0,1fr);
  grid-template-rows:minmax(0,1fr);
  align-items:center;
  column-gap:9px;
  min-height:80px;
  height:auto;
  padding:9px 11px;
  overflow:hidden;
}
.game-room-screen .room-member>i{
  height:42px;
  align-self:center;
}
.game-room-screen .room-member>.aa-avatar{
  width:42px;height:42px;--aa-avatar-size:42px;
  grid-column:2;grid-row:1;
}
.game-room-screen .room-member>.room-member-info{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:3px;
  grid-column:3;grid-row:1;
  min-width:0;
}
.game-room-screen .room-member-name-row{
  display:flex;
  align-items:center;
  gap:4px;
  min-width:0;
}
.game-room-screen .room-member-name-row>b{
  flex:0 1 auto;
  min-width:0;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:13px;
  line-height:1.3;
}
.game-room-screen .room-member-badges{display:inline-flex;align-items:center;gap:2px;flex:none}
.game-room-screen .room-member .room-host,
.game-room-screen .room-member .room-you{margin-left:0}
.game-room-screen .room-member .room-member-team{
  display:block;
  margin:0;
  font-size:8px;
  line-height:1.4;
  letter-spacing:.03em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.game-room-screen .room-member .member-controller{
  display:inline;
  margin:0;
  padding:0;
  font-size:9px;
  text-transform:capitalize;
  color:#a2afc4;
}
.game-room-screen .room-member .room-member-status{
  position:static;
  display:block;
  margin:0;
  font-size:9px;
  line-height:1.4;
  font-style:normal;
  letter-spacing:.02em;
  text-align:left;
  color:#b5c4d9;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.game-room-screen .room-member.is-ready .room-member-status{color:#66dda4}
.game-room-screen .room-empty-slot{
  min-height:80px;
  padding:9px 13px;
  gap:4px;
}
@media(min-width:1101px){
  .game-room-screen .room-member-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(min-width:371px) and (max-width:1100px){
  .game-room-screen .room-member-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:520px){
  .game-room-screen .room-member-grid{gap:8px;grid-auto-rows:minmax(78px,auto)}
  .game-room-screen .room-member{
    grid-template-columns:3px 34px minmax(0,1fr);
    column-gap:6px;
    min-height:78px;
    padding:8px;
  }
  .game-room-screen .room-member>i{width:3px;height:34px}
  .game-room-screen .room-member>.aa-avatar{width:34px;height:34px;--aa-avatar-size:34px}
  .game-room-screen .room-member-name-row>b{font-size:11px}
  .game-room-screen .room-member .room-member-team{font-size:7px}
  .game-room-screen .room-member .member-controller{font-size:8px}
  .game-room-screen .room-member .room-member-status{font-size:8px}
  .game-room-screen .room-empty-slot{min-height:78px;padding:8px}
  .game-room-screen .room-empty-slot b{font-size:9px}
  .game-room-screen .room-empty-slot small{font-size:9px}
}
@media(max-width:370px){
  .game-room-screen .room-member-grid{grid-template-columns:minmax(0,1fr);}
}

/* GRID maintenance: compact schematic arena picker, not a final art asset. */
.arena-preview{margin-top:10px;display:grid;grid-template-columns:116px minmax(0,1fr);gap:14px;align-items:center;border:1px solid #39475a;background:#101c2b;border-radius:10px;padding:12px;color:#b8c7d9}.arena-preview strong{display:block;color:#f5f7fb;font-size:14px}.arena-preview p{font-size:12px;line-height:1.4;margin:5px 0}.arena-preview small{font-size:10px;font-weight:700;color:#adc5d5}.arena-sketch{width:116px;max-width:100%;color:#92a9bd}.arena-sketch g{display:none}.arena-preview[data-track="001"] .arena-sketch,.arena-preview[data-track="auto"] .arena-sketch{color:#fb923c}.arena-preview[data-track="001"] .battle-sketch,.arena-preview[data-track="auto"] .battle-sketch{display:block}.arena-preview[data-track="002"] .arena-sketch{color:#4ade80}.arena-preview[data-track="002"] .reactor-sketch{display:block}.arena-preview[data-track="003"] .arena-sketch{color:#a78bfa}.arena-preview[data-track="003"] .race-sketch{display:block}@media(max-width:480px){.arena-preview{grid-template-columns:85px minmax(0,1fr);gap:8px}}
