/* V1.23.51 / Glass Terminal. Original control IDs and app state remain authoritative. */
:root{--glass-orange:#ff8616;--glass-purple:#ad52fa;--glass-surface:linear-gradient(125deg,#080c17ed,#0e1123d9);--glass-edge:#956dc28c;--glass-cut:polygon(12px 0,calc(100% - 12px) 0,100% 12px,100% calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,0 calc(100% - 12px),0 12px)}
#publicSite .world{left:0;transform:translateY(-50%)}
#publicSite .glass-display{position:absolute;left:0;top:0;width:1000px;height:600px;transform-origin:0 0;display:grid;grid-template-columns:minmax(0,1fr) 295px;align-items:center;gap:34px;padding:50px 32px;}
#publicSite .glass-display .entry-terminal{position:static;inset:auto;width:100%;height:100%;padding:12px;gap:20px;background:none;}
#publicSite .glass-display .entry-description{font:500 25px/1.35 'Segoe UI',Arial,sans-serif;color:#f3edf9;letter-spacing:0;text-align:center;text-shadow:0 2px 8px #000;}
#publicSite .glass-display .entry-availability{display:flex;flex-direction:column;align-items:center;gap:9px;width:100%;}
#publicSite .glass-display .entry-status-hint{max-width:28em;font:19px/1.35 'Segoe UI',Arial,sans-serif;color:#d7cfdf;letter-spacing:0;text-align:center;text-shadow:0 2px 8px #000;}
#publicSite .glass-display .entry-wordmark{font-size:74px;letter-spacing:-.045em;line-height:1.05;text-shadow:0 0 22px #99aaff44;}
#publicSite .glass-display .entry-action{width:100%;min-height:100px;padding:18px 24px;font-size:49px;font-weight:400;color:white;background:linear-gradient(110deg,#ff9d19ee,#ff6207ef);border:3px solid #ffd7a1;clip-path:polygon(7% 0,93% 0,100% 50%,93% 100%,7% 100%,0 50%);box-shadow:inset 0 0 28px #ffda9880;gap:30px;}
#publicSite .glass-display .entry-command-no{display:none;}
#publicSite .glass-display .chevron{width:16px;height:16px;}
#publicSite .glass-display .entry-status{font-size:15px;gap:10px;}
#publicSite .glass-display .entry-status i{width:7px;height:7px;}
#publicSite .glass-display .entry-prompt{display:none;}
#publicSite .glass-display .room-nav{position:static;inset:auto;min-width:0;width:auto;display:flex;flex-direction:column;gap:17px;}
#publicSite .glass-display .room-command{min-height:88px;padding:18px 16px;gap:16px;font-size:20px;background:linear-gradient(120deg,#251139ae,#0a0b16e0);border:2px solid #ae5ce9;clip-path:var(--glass-cut);color:#f0e8ff;}
#publicSite .glass-display .command-no{width:32px;flex:none;color:#bd6bff;}
#publicSite .glass-display .command-no svg{width:32px;height:32px;}
#publicSite .glass-display .command-mark{font-size:25px;color:#bd6bff;}
#publicSite .glass-display .terminal-ping{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px;padding:12px 6px 0;border-top:1px solid #a969d66b;color:#eee8f8;cursor:default;}
#publicSite .glass-display .terminal-ping-label{font:17px/1.25 'Segoe UI',Arial,sans-serif;letter-spacing:.08em;color:#c5a1e5;}
#publicSite .glass-display .terminal-ping-reading{display:flex;align-items:baseline;gap:6px;white-space:nowrap;}
#publicSite .glass-display .terminal-ping-reading strong{font:500 30px/1 'Segoe UI',Arial,sans-serif;font-variant-numeric:tabular-nums;}
#publicSite .glass-display .terminal-ping-reading>span{font:15px 'Segoe UI',Arial,sans-serif;color:#c5a1e5;}
#publicSite .glass-display .terminal-ping-note{grid-column:1/-1;font:15px/1.3 'Segoe UI',Arial,sans-serif;color:#c6bacf;}
#publicSite .glass-display .room-command:hover,#publicSite .glass-display .room-command:focus-visible,#publicSite .glass-display .room-command.gamepad-focus{background:linear-gradient(120deg,#9f4be955,#171024);border-color:#ffb770;transform:none;}
#publicSite .glass-display .entry-terminal:focus-visible,#publicSite .glass-display .entry-terminal.gamepad-focus{outline:0!important;box-shadow:none!important;}
#publicSite .glass-display .entry-terminal:focus-visible .entry-action,#publicSite .glass-display .entry-terminal.gamepad-focus .entry-action{background:#ff9216;border-color:white;filter:drop-shadow(0 0 12px #ff8a16);}
#publicSite .panel-view{background:var(--glass-surface);border-color:var(--glass-edge);border-top:2px solid #b45bff;box-shadow:0 20px 70px #0009;}
body.aa-terminal:not([data-screen=drive]){background:#090b12!important;--accent:#ff8b20;--orange:#ff8b20;}
body.aa-terminal:not([data-screen=drive])[data-area=player]:not([data-screen=drive]){background:linear-gradient(#04071055,#070a1670),url('glass-arena.png') center/cover fixed!important;}
body.aa-terminal:not([data-screen=drive]) .app-shell{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;}
body.aa-terminal:not([data-screen=drive]) .app-shell:before,body.aa-terminal:not([data-screen=drive]) .app-shell:after{display:none!important;}
body.aa-terminal:not([data-screen=drive]) .topbar{min-height:66px;background:linear-gradient(90deg,#080b18ee,#0a071ae0);border-bottom:1px solid #9451d0;gap:14px;}
.glass-brand{font:clamp(18px,2.15vw,35px)/1 var(--display);color:white;white-space:nowrap;}
.glass-brand em{font-style:normal;color:#ff8518;}
body.aa-terminal:not([data-screen=drive]) #terminalPath{display:none;}
body.aa-terminal:not([data-screen=drive]) .terminal-top-right{gap:10px;}
body.aa-terminal:not([data-screen=drive]) .top-status{font-size:9px;}
body.aa-terminal:not([data-screen=drive]) .aa-header-action{min-height:44px!important;padding:9px 17px!important;background:var(--glass-surface)!important;border:1px solid var(--glass-edge)!important;clip-path:var(--glass-cut);font-size:12px!important;}
body.aa-terminal:not([data-screen=drive]) .aa-header-action svg{color:#b65aff;}
body.aa-terminal:not([data-screen=drive]) #headerCredits{color:#ffab45;}
body.aa-terminal:not([data-screen=drive]) .terminal-bottom{background:#080a13aa;border-color:#9866b657;}
body.aa-terminal:not([data-screen=drive]) .main-shell{padding:18px 0!important;}
body.aa-terminal:not([data-screen=drive]).aa-fit .app-shell{padding:0 clamp(16px,3.5vw,62px)!important;grid-template-rows:72px minmax(0,1fr) 25px!important;}
body.aa-terminal:not([data-screen=drive]) button:not(.room-team-btn):not(.aa-avatar-option),body.aa-terminal:not([data-screen=drive]) .room-code-chip{border-radius:0;}
body.aa-terminal:not([data-screen=drive]) :is(.primary-btn,.secondary-btn,.room-mini-btn,.aa-header-action,.wallet-action-btn,.controller-choice-btn,.aa-choice-option){clip-path:var(--glass-cut);}
body.aa-terminal:not([data-screen=drive]) :is(.primary-btn,.secondary-btn){font-family:var(--display);}
body.aa-terminal:not([data-screen=drive]) .secondary-btn{background:linear-gradient(120deg,#181124e8,#0b111de8);border-color:var(--glass-edge);color:#f3ecff;}
body.aa-terminal:not([data-screen=drive]) .primary-btn{background:linear-gradient(110deg,#ff9d26,#ff7110);border-color:#ffd39d;color:#fff;}
body.aa-terminal:not([data-screen=drive]) button:disabled{filter:saturate(.35);opacity:.42;}
body.aa-terminal:not([data-screen=drive]) .gamepad-focus,body.aa-terminal:not([data-screen=drive]) button:focus-visible{outline:3px solid #ffe3b8!important;outline-offset:3px!important;box-shadow:0 0 22px #ff8c1770!important;}
body.aa-terminal:not([data-screen=drive]) button.gamepad-focus{background:linear-gradient(110deg,#ff9e25,#ff7410)!important;color:#100b05!important;border-color:#ffe1ad!important;}
body.aa-terminal:not([data-screen=drive]) button.gamepad-focus svg{color:currentColor;}
body.aa-terminal:not([data-screen=drive]) dialog{background:linear-gradient(125deg,#0d1025f8,#100e1bf8);border:1px solid #a15fcd;box-shadow:0 22px 80px #000a;}
body.aa-terminal:not([data-screen=drive]) dialog::backdrop{background:#03040b99;backdrop-filter:blur(7px);}
body.aa-terminal:not([data-screen=drive]) :is(.account-wallet,.settings-card,.friends-panel,.lobby-card,.aa-option-content,.game-settings-dialog){border-color:#9968bc77;}
body.aa-terminal:not([data-screen=drive]) .text-input{background:#080d1be0;border-color:#77628e;color:#f6f2ff;border-radius:3px;}
body.aa-terminal:not([data-screen=drive]) .text-input:focus{border-color:#c184ff;}
body.aa-terminal:not([data-screen=drive]) .panel-title{color:#eee7fa;letter-spacing:.13em;}
/* Choice cards remain the original Quick/Custom buttons. */
body.aa-terminal:not([data-screen=drive]) #browserScreen .arena-page{gap:12px;}
body.aa-terminal:not([data-screen=drive]) #browserScreen .arena-page-head{padding:0;border:0;min-height:0;text-align:center;justify-content:center;}
body.aa-terminal:not([data-screen=drive]) #browserScreen .arena-page-head .eyebrow{display:none;}
body.aa-terminal:not([data-screen=drive]) #browserScreen .arena-page-head h1{font-size:clamp(28px,3vw,48px);margin:0 0 5px;}
body.aa-terminal:not([data-screen=drive]) #browserScreen .arena-page-head p{font-size:13px;margin:0;color:#e1dbe9;}
body.aa-terminal:not([data-screen=drive]) #browserScreen .browser-toolbar{display:block;border:0;background:none;padding:0;flex:none;}
body.aa-terminal:not([data-screen=drive]) #browserScreen .browser-content{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) minmax(220px,24%);gap:16px;}
body.aa-terminal:not([data-screen=drive]) #browserScreen .game-list-area{padding:13px 18px;border:1px solid #9a68c5;background:var(--glass-surface);min-height:0;}
body.aa-terminal:not([data-screen=drive]) #browserScreen .browser-filter{flex:none;border-bottom:1px solid #986eaf66;padding-bottom:9px;min-height:30px;}
body.aa-terminal:not([data-screen=drive]) #browserScreen .browser-filter b{font:12px var(--display);text-transform:uppercase;letter-spacing:.07em;}
body.aa-terminal:not([data-screen=drive]) #browserScreen .browser-filter span{color:#c4b6d5;}
body.aa-terminal:not([data-screen=drive]) .no-games{background:none;border:0;min-height:0!important;}
body.aa-terminal:not([data-screen=drive]) .no-games h2{font-size:22px;}
body.aa-terminal:not([data-screen=drive]) .no-games p{font-size:13px;}
body.aa-terminal:not([data-screen=drive]) .arena-info-card,body.aa-terminal:not([data-screen=drive]) .game-card{background:var(--glass-surface);border:1px solid #9364b4;}
body.aa-terminal:not([data-screen=drive]) .arena-page-foot{font-size:11px;color:#e0d8ea;}
body.aa-terminal:not([data-screen=drive]) .aa-pager{min-height:28px;}
body.aa-terminal:not([data-screen=drive]) .aa-pager:has(button:disabled):not(:has(button:not(:disabled))){display:none;}
/* Lobby: two team columns for Base Blitz, normal six-slot grid for other modes. */
body.aa-terminal:not([data-screen=drive]) #roomScreen .game-room-page{gap:13px;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .game-room-head{padding:0 0 9px;border:0;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .game-heading .eyebrow{display:none;}
body.aa-terminal:not([data-screen=drive]) #roomScreen h1{font-size:clamp(27px,3vw,48px);margin:0 0 8px;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .game-subline{font-size:12px;gap:10px;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-code-chip{background:var(--glass-surface);border-color:#a16bc3;clip-path:var(--glass-cut);}
body.aa-terminal:not([data-screen=drive]) #roomScreen .game-room-columns{gap:16px;grid-template-columns:minmax(0,2fr) minmax(250px,1fr)!important;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .roster-column{background:none;border:0;padding:0;gap:8px;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .roster-heading{display:none;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-member-grid{gap:12px;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-member-grid.glass-team-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr);gap:12px;}
.glass-team-column{min-width:0;min-height:0;display:flex;flex-direction:column;gap:10px;padding:14px;border:1px solid var(--glass-edge);background:var(--glass-surface);}
.glass-team-column.orange{border-color:#ff9b4280;}
.glass-team-column h2{margin:0;padding:0 0 11px;border-bottom:1px solid #ad7ad035;font:clamp(12px,1.3vw,20px) var(--display);color:#bd64ff;}
.glass-team-column.orange h2{color:#ffa140;}
.glass-team-roster{flex:1;min-height:0;display:grid;grid-auto-rows:minmax(0,1fr);gap:9px;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-member,body.aa-terminal:not([data-screen=drive]) #roomScreen .room-empty-slot{background:linear-gradient(115deg,#171925df,#0a0c19c9);border:1px solid #7c5c985c;padding:12px;clip-path:var(--glass-cut);min-width:0;min-height:0;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-member{grid-template-columns:44px minmax(0,1fr);gap:10px;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-member>i{display:none;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-member-name-row b{font-size:clamp(12px,1.2vw,18px);}
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-member-team{font-size:10px;color:#bcb0cc;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .glass-team-grid .room-member-team{display:none;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-member-status{font:12px 'Segoe UI',sans-serif;color:#bcb3cc;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-member.is-ready .room-member-status{color:#7beaab;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-member.is-ready .room-member-status::before{content:'✓ ';font-weight:700;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-empty-slot{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:5px;opacity:.65;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-empty-slot b{font:14px 'Segoe UI',sans-serif;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-empty-slot small{font-size:11px;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .lobby-chat-panel{padding:16px;background:var(--glass-surface);border:1px solid #b26be9;gap:12px;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-chat-log{background:#060a1660;border:0;gap:5px;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-chat-line{background:none;border:0;padding:5px 2px;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-chat-compose{grid-template-columns:minmax(0,1fr) 76px;gap:9px;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-chat-compose input{height:44px;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-chat-compose button{min-height:44px;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .aa-lobby-brief{padding:7px 10px;background:#090d1ac9;border-color:#ab5be5;gap:8px;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .aa-lobby-brief p{font-size:11px;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .game-room-footer{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:12px 16px;background:var(--glass-surface);border:1px solid #b06ee7;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .match-flow-status{display:flex;align-items:center;gap:12px;min-height:18px;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .match-flow-status>span{font-size:9px;white-space:nowrap;}
body.aa-terminal:not([data-screen=drive]) #roomScreen #roomReadyMsg{font-size:12px;line-height:1.4;font-weight:400;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .match-flow-actions{width:100%;display:flex;align-items:stretch;gap:10px;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .match-flow-actions>button{min-width:0;min-height:54px;flex:1;font-size:clamp(12px,1.3vw,18px);clip-path:var(--glass-cut);}
body.aa-terminal:not([data-screen=drive]) #roomScreen #roomReadyBtn{flex:1.5;background:linear-gradient(110deg,#ffab28,#ff6b12);color:white;border-color:#ffdaa6;}
body.aa-terminal:not([data-screen=drive]) #roomScreen #roomReadyBtn.selected{background:#14342a;border-color:#70daa4;color:#a6f1cd;}
body.aa-terminal:not([data-screen=drive]) #roomScreen #roomStartBtn{background:#161224;border:1px solid #a66bc4;color:#e5daef;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .glass-team-choice{display:flex;gap:8px;align-items:stretch;flex:1.45;}
.glass-team-choice>span{align-self:center;font:10px var(--display);color:#c8bed6;max-width:50px;}
.glass-team-choice button{flex:1;min-width:0;border:1px solid #a46ac5;background:#111322;color:white;clip-path:var(--glass-cut);font:11px var(--display);padding:8px 10px;}
.glass-team-choice button[aria-pressed=true]{border-color:#ffb056;}
.glass-team-choice button[aria-pressed=true]::before{content:'✓ ';color:white;}
body.glass-base-blitz #roomScreen #lobbyColourBtn{display:none!important;}
body.aa-terminal:not([data-screen=drive]) #menu-controller-hint{background:#080c18ed;border-color:#a66ec06e;bottom:3px;font-size:10px;}
@media(max-width:1100px){
 body.aa-terminal:not([data-screen=drive]) .glass-brand{font-size:22px;}body.aa-terminal:not([data-screen=drive]) .top-status{display:none;}body.aa-terminal:not([data-screen=drive]) .aa-header-action{padding:8px 12px!important;font-size:10px!important;}
 body.aa-terminal:not([data-screen=drive]).aa-fit .app-shell{padding-inline:20px!important;}
 body.aa-terminal:not([data-screen=drive]) #roomScreen .game-room-columns{grid-template-columns:minmax(0,1.65fr) minmax(220px,1fr)!important;gap:10px;}
 .glass-team-column{padding:10px;gap:8px;}.glass-team-column h2{font-size:12px;}
 body.aa-terminal:not([data-screen=drive]) #roomScreen .room-member{padding:9px;grid-template-columns:30px minmax(0,1fr);gap:7px;}
 body.aa-terminal:not([data-screen=drive]) #roomScreen .aa-avatar{--aa-avatar-size:30px!important;width:30px;height:30px;}
 body.aa-terminal:not([data-screen=drive]) #roomScreen .aa-avatar-glyph{font-size:22px;}
 body.aa-terminal:not([data-screen=drive]) #roomScreen .room-member-name-row{flex-wrap:wrap;gap:3px;}
 body.aa-terminal:not([data-screen=drive]) #roomScreen .room-member-status{font-size:10px;}
 body.aa-terminal:not([data-screen=drive]) #roomScreen .game-room-footer{padding:10px;}
 .glass-team-choice>span{display:none;}.glass-team-choice button{font-size:10px;padding-inline:8px;}
}
@media(max-height:740px){
 body.aa-terminal:not([data-screen=drive]).aa-fit .app-shell{grid-template-rows:58px minmax(0,1fr) 22px!important;}
 body.aa-terminal:not([data-screen=drive]) .topbar{min-height:56px;}body.aa-terminal:not([data-screen=drive]) .main-shell{padding:10px 0!important;}
 body.aa-terminal:not([data-screen=drive]) #browserScreen .arena-page-head h1,body.aa-terminal:not([data-screen=drive]) #roomScreen h1{font-size:29px;}
 body.aa-terminal:not([data-screen=drive]) #roomScreen .game-room-page{gap:9px;}
 body.aa-terminal:not([data-screen=drive]) #roomScreen .game-subline{font-size:10px;}
 .glass-team-column{padding:9px;gap:6px;}.glass-team-column h2{padding-bottom:7px;}.glass-team-roster{gap:6px;}
 body.aa-terminal:not([data-screen=drive]) #roomScreen .room-member,body.aa-terminal:not([data-screen=drive]) #roomScreen .room-empty-slot{padding:7px 9px;}
 body.aa-terminal:not([data-screen=drive]) #roomScreen .room-empty-slot small{display:none;}
 body.aa-terminal:not([data-screen=drive]) #roomScreen .lobby-chat-panel{padding:11px;gap:8px;}
 body.aa-terminal:not([data-screen=drive]) #roomScreen .game-room-footer{gap:5px;padding:8px 12px;}
 body.aa-terminal:not([data-screen=drive]) #roomScreen .match-flow-actions>button{min-height:45px;}
 body.aa-terminal:not([data-screen=drive]) #roomScreen .match-flow-status>span{display:none;}
 body.aa-terminal:not([data-screen=drive]) #roomScreen #roomReadyMsg{font-size:11px;}
}
@media(max-width:759px){
 #publicSite .world{width:100vw;height:100svh;aspect-ratio:auto;left:0;top:0;transform:none;}
 #publicSite .room-art{object-fit:cover;object-position:25% center;filter:brightness(.5);}
 #publicSite .glass-display{transform:none!important;left:6vw;top:clamp(76px,14svh,140px);width:88vw;height:auto;min-height:53svh;grid-template-columns:1fr;padding:20px;gap:20px;background:#0b0d20c9;border:1px solid #ad66dc;backdrop-filter:blur(10px);}
 #publicSite .glass-display .entry-terminal{padding:0;gap:14px;}
 #publicSite .glass-display .entry-description{font-size:16px;}
 #publicSite .glass-display .entry-availability{gap:7px;}
 #publicSite .glass-display .entry-status-hint{font-size:13px;}
 #publicSite .glass-display .entry-wordmark{font-size:clamp(28px,8vw,52px);}
 #publicSite .glass-display .entry-action{min-height:60px;font-size:28px;border-width:2px;}
 #publicSite .glass-display .entry-status{font-size:10px;}
 #publicSite .glass-display .room-nav{display:grid;grid-template-columns:1fr 1fr;gap:9px;}
 #publicSite .glass-display .room-command{min-height:50px;padding:10px;font-size:11px;gap:9px;}
 #publicSite .glass-display .command-no,#publicSite .glass-display .command-no svg{width:20px;height:20px;}
 #publicSite .glass-display .command-mark{display:none;}
 #publicSite .glass-display .terminal-ping{padding:7px 5px;gap:4px 6px;}
 #publicSite .glass-display .terminal-ping-label{font-size:10px;letter-spacing:.025em;}
 #publicSite .glass-display .terminal-ping-reading strong{font-size:19px;}
 #publicSite .glass-display .terminal-ping-reading>span{font-size:10px;}
 #publicSite .glass-display .terminal-ping-note{font-size:10px;}
 body.aa-terminal:not([data-screen=drive]) .glass-brand{font-size:16px;}
 body.aa-terminal:not([data-screen=drive]) #roomScreen .game-room-columns{grid-template-columns:1fr!important;}
 body.aa-terminal:not([data-screen=drive]) #roomScreen .lobby-chat-panel{min-height:190px;}
 body.aa-terminal:not([data-screen=drive]) #roomScreen .match-flow-actions{flex-wrap:wrap;}
 body.aa-terminal:not([data-screen=drive]) #browserScreen .browser-content{grid-template-columns:1fr;}
}
@media(prefers-reduced-motion:reduce){.glass-display,body.aa-terminal:not([data-screen=drive]) button{transition:none!important;}}
/* Final visual alignment. */
body.aa-terminal:not([data-screen=drive])::before,body.aa-terminal:not([data-screen=drive])::after{content:none!important;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-member{display:grid!important;align-items:center!important;justify-content:initial!important;grid-template-columns:48px minmax(0,1fr)!important;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-member-info{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:5px;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-member>.aa-avatar{--aa-avatar-size:42px!important;width:42px!important;height:42px!important;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-member-name-row b{font-size:clamp(14px,1.35vw,20px);}
body.aa-terminal:not([data-screen=drive]) #glassRoomCode{font:12px var(--display);min-height:44px;padding:10px 18px;white-space:nowrap;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-header-actions{display:flex!important;}
@media(max-width:1000px){body.aa-terminal:not([data-screen=drive]) #roomScreen .room-member{grid-template-columns:30px minmax(0,1fr)!important;}body.aa-terminal:not([data-screen=drive]) #roomScreen .room-member>.aa-avatar{--aa-avatar-size:30px!important;width:30px!important;height:30px!important;}body.aa-terminal:not([data-screen=drive]) #glassRoomCode{font-size:10px;padding:10px;}}

body.aa-terminal #roomScreen .room-member>.aa-avatar{grid-column:1!important;grid-row:1!important;}
body.aa-terminal #roomScreen .room-member-info{grid-column:2!important;grid-row:1!important;}
/* V1.23.52: readable utility labels and direct lobby actions. */
body.aa-terminal:not([data-screen=drive]) .aa-header-action,
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-header-actions>button{
 font-family:'Segoe UI',Arial,sans-serif!important;font-size:15px!important;font-weight:700!important;line-height:1.25!important;letter-spacing:.025em!important;text-shadow:none!important;text-transform:uppercase;
 min-height:46px!important;padding:11px 16px!important;color:#f8f7ff;background:#111322!important;white-space:nowrap;
}
body.aa-terminal:not([data-screen=drive]) .aa-header-action :is(.command-label,span:not(.command-number):not(.header-wallet-amount):not(.aa-badge)){
 font-family:inherit!important;font-size:inherit!important;font-weight:inherit!important;letter-spacing:inherit!important;
}
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-header-actions{display:flex!important;gap:10px;align-items:center;flex-wrap:nowrap;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-header-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:8px;grid-column:auto;}
body.aa-terminal:not([data-screen=drive]) #roomScreen #glassRoomCode{font-family:Consolas,'Liberation Mono',monospace!important;font-size:16px!important;letter-spacing:.03em!important;}
body.aa-terminal:not([data-screen=drive]) .glass-lobby-action svg{width:19px;height:19px;flex:none;color:#c27bff;}
body.aa-terminal:not([data-screen=drive]) #lobbyExitDirectBtn svg{color:#ffc180;}
body.aa-terminal:not([data-screen=drive]) .glass-lobby-action:focus-visible{outline:3px solid #ffe3b8!important;}
@media(max-width:1100px){
 body.aa-terminal:not([data-screen=drive]) .aa-header-action{font-size:14px!important;padding:10px 12px!important;}
 body.aa-terminal:not([data-screen=drive]) #roomScreen .game-room-head{flex-direction:column;align-items:stretch;gap:9px;}
 body.aa-terminal:not([data-screen=drive]) #roomScreen .room-header-actions{width:100%;}
 body.aa-terminal:not([data-screen=drive]) #roomScreen .room-header-actions>button{flex:1;font-size:14px!important;min-height:42px!important;padding:9px 12px!important;}
 body.aa-terminal:not([data-screen=drive]) #roomScreen #glassRoomCode{font-size:15px!important;}
}
@media(max-width:600px){
 body.aa-terminal:not([data-screen=drive]) #roomScreen .room-header-actions{flex-wrap:wrap;}
 body.aa-terminal:not([data-screen=drive]) #roomScreen #glassRoomCode{flex-basis:100%;}
 body.aa-terminal:not([data-screen=drive]) .terminal-top-right{gap:5px;}
 body.aa-terminal:not([data-screen=drive]) .aa-header-action{padding:9px 10px!important;}
}
body.aa-terminal:not([data-screen=drive]) .aa-header-action.gamepad-focus,
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-header-actions>button.gamepad-focus{background:linear-gradient(110deg,#ff9e25,#ff7410)!important;color:#100b05!important;}
body.aa-terminal:not([data-screen=drive]) #roomScreen .room-header-actions>button.gamepad-focus svg{color:currentColor;}
/* V1.23.53: one consistent header and selection colour only on the focused card. */
body.aa-terminal:not([data-screen=drive]) .aa-header-action{
 font-family:var(--display)!important;font-size:14px!important;font-weight:400!important;letter-spacing:0!important;line-height:1.2!important;
 min-height:40px!important;height:40px!important;padding:8px 13px!important;gap:8px;
}
body.aa-terminal:not([data-screen=drive]) #glassRoomCode{font-family:var(--display)!important;font-size:14px!important;letter-spacing:.01em!important;min-height:40px!important;padding:8px 13px!important;}
body.aa-terminal:not([data-screen=drive]) .aa-header-action .header-wallet-amount{gap:7px;align-items:center;}
body.aa-terminal:not([data-screen=drive]) #headerTopUpBtn .header-wallet-amount :is(strong,small){font-family:var(--display)!important;font-weight:400!important;letter-spacing:0!important;color:#c58aff!important;}
body.aa-terminal:not([data-screen=drive]) #headerTopUpBtn .header-wallet-amount strong{font-size:17px!important;}
body.aa-terminal:not([data-screen=drive]) #headerTopUpBtn .header-wallet-amount small{font-size:14px!important;}
body.aa-terminal:not([data-screen=drive]) #headerTopUpBtn.gamepad-focus .header-wallet-amount :is(strong,small){color:#241231!important;}
body.aa-terminal[data-screen=room] #friendsTab{display:none!important;}
body.aa-terminal #roomScreen .room-header-actions{display:none!important;}
body.aa-terminal[data-screen=room] .top-status{display:none;}
body.aa-terminal[data-screen=room] .terminal-top-right{gap:8px;flex-shrink:0;}
body.aa-terminal[data-screen=room] .glass-brand{font-size:clamp(20px,2.2vw,32px);}
@media(max-width:1200px){
 body.aa-terminal.aa-fit[data-screen=room] .app-shell{grid-template-rows:104px minmax(0,1fr) 22px!important;}
 body.aa-terminal[data-screen=room] .topbar{flex-wrap:wrap;align-content:center;row-gap:8px;min-height:0;}
 body.aa-terminal[data-screen=room] .terminal-home{width:100%;min-height:22px;}
 body.aa-terminal[data-screen=room] .glass-brand{font-size:22px;}
 body.aa-terminal[data-screen=room] .terminal-top-right{width:100%;justify-content:space-between;gap:7px;}
 body.aa-terminal[data-screen=room] .terminal-top-right>.aa-header-action{flex:1;min-width:0;}
 body.aa-terminal[data-screen=room] #headerWallet{flex:1;min-width:0;}
 body.aa-terminal[data-screen=room] #headerTopUpBtn{width:100%;}
 body.aa-terminal[data-screen=room] .aa-header-action,
 body.aa-terminal[data-screen=room] #glassRoomCode{font-size:13px!important;padding:8px 9px!important;gap:6px;}
 body.aa-terminal[data-screen=room] #headerTopUpBtn .header-wallet-amount small{font-size:13px!important;}
 body.aa-terminal #roomScreen .game-room-head{flex-direction:row;}
}
@media(max-width:700px){
 body.aa-terminal.aa-fit[data-screen=room] .app-shell{grid-template-rows:150px minmax(0,1fr) 22px!important;}
 body.aa-terminal[data-screen=room] .terminal-top-right{flex-wrap:wrap;justify-content:flex-start;}
 body.aa-terminal[data-screen=room] .terminal-top-right>.aa-header-action{flex:1 0 29%;}
 body.aa-terminal[data-screen=room] #headerWallet{flex:1 0 29%;}
}
html.aa-tablet body.aa-terminal.aa-fit:not([data-screen=drive]) .app-shell{height:100%!important;}
@media(min-width:701px) and (max-width:1200px){
 body.aa-terminal.aa-fit[data-screen=room] .app-shell{grid-template-rows:92px minmax(0,1fr) 22px!important;}
 body.aa-terminal[data-screen=room] .topbar{height:100%!important;}
 body.aa-terminal[data-screen=room] .terminal-top-right>.aa-header-action{flex:0 0 auto;}
 body.aa-terminal[data-screen=room] #headerWallet{flex:0 0 auto;}
}
@media(min-width:701px) and (max-width:850px){
 body.aa-terminal[data-screen=room] #lobbyInviteDirectBtn svg{display:none;}
 body.aa-terminal[data-screen=room] .terminal-top-right{gap:5px;}
 body.aa-terminal[data-screen=room] .aa-header-action,body.aa-terminal[data-screen=room] #glassRoomCode{padding-inline:8px!important;}
}
/* V1.23.71: use the server-confirmed team colour on each occupied player tile. */
body.aa-terminal #roomScreen .room-member{
 background:linear-gradient(110deg,#090d19b3,#090d19ed),var(--team-color)!important;
 border-color:var(--team-color)!important;box-shadow:inset 4px 0 var(--team-color);
}

/* V1.23.71: primary game actions lead; a quiet selected tab is distinct from input focus. */
body.aa-terminal #browserScreen .arena-page-head{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:-1px!important;overflow:hidden;white-space:nowrap;clip-path:inset(50%);}
body.aa-terminal #browserScreen .browser-toolbar{padding:8px 0 12px;}
body.aa-terminal #browserScreen .aa-panel-tabs button{background:#0d1320e8;border-color:#70677d60;color:#aaa4b4;box-shadow:none;}
body.aa-terminal #browserScreen .aa-panel-tabs button[aria-selected=true]{background:#1a1725ed;border-color:#80629199;color:#e5d9ef;box-shadow:inset 0 -1px #a17bca;}


/* V1.23.71: a single glass launch console, with two direct actions. */
body.aa-terminal:not([data-screen=drive]) #browserScreen .browser-buttons{
 position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;
 width:min(100%,1120px);max-width:none;margin:5px auto 7px;padding:10px;
 border:1px solid #b48cdb99;border-radius:12px;
 background:linear-gradient(115deg,#161222dc,#090f1be8 50%,#171123dc);
 backdrop-filter:blur(12px);box-shadow:inset 0 1px #ead9ff38,inset 0 -1px #c18aff20,0 12px 32px #0005,0 0 28px #9e4fe51c;
}
body.aa-terminal:not([data-screen=drive]) #browserScreen .browser-buttons::before{
 content:'';position:absolute;top:-1px;left:9%;right:9%;height:2px;
 background:linear-gradient(90deg,transparent,#b16beb 15%,#e1c3ff 50%,#b16beb 85%,transparent);
 box-shadow:0 0 12px #b964fa65;pointer-events:none;
}
body.aa-terminal:not([data-screen=drive]) #browserScreen .browser-buttons::after{
 content:'';position:absolute;top:22%;bottom:22%;left:50%;width:1px;
 background:linear-gradient(transparent,#b38bd584,transparent);pointer-events:none;
}
body.aa-terminal:not([data-screen=drive]) #browserScreen .browser-buttons button{
 position:relative;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:22px;
 min-width:0;width:100%;height:clamp(112px,16vh,152px);padding:22px 28px;
 border:1px solid transparent;border-radius:7px;clip-path:none;
 background:transparent;color:#faf7ff;box-shadow:none;isolation:isolate;text-align:left;
 transition:background .16s ease,border-color .16s ease,box-shadow .16s ease;
}
body.aa-terminal:not([data-screen=drive]) #browserScreen .browser-buttons button::before{
 content:'';display:block;flex:none;width:54px;height:54px;
 background:linear-gradient(145deg,#eddbff,#b77ae9);-webkit-mask:var(--game-icon) center/contain no-repeat;mask:var(--game-icon) center/contain no-repeat;
 pointer-events:none;
}
body.aa-terminal:not([data-screen=drive]) #browserScreen #quickPlayBtn{--game-icon:url('quick-game.svg');}
body.aa-terminal:not([data-screen=drive]) #browserScreen #createRoomBtn{--game-icon:url('custom-game.svg');}
body.aa-terminal:not([data-screen=drive]) #browserScreen .browser-buttons button::after{content:none;}
body.aa-terminal #browserScreen .launch-copy{display:flex;flex:1;flex-direction:column;gap:9px;min-width:0;}
body.aa-terminal #browserScreen .launch-label{font:clamp(21px,1.8vw,29px)/1.25 var(--display);letter-spacing:0;white-space:nowrap;}
body.aa-terminal #browserScreen .launch-hint{font:15px/1.4 'Segoe UI',Arial,sans-serif;letter-spacing:0;text-transform:none;color:#c5bed1;}
body.aa-terminal #browserScreen .launch-arrow{flex:none;font:34px/1 'Segoe UI',Arial,sans-serif;color:#bd91df;transition:transform .16s ease;}
body.aa-terminal:not([data-screen=drive]) #browserScreen .browser-buttons button:is(.gamepad-focus,:focus-visible){
 background:linear-gradient(115deg,#ffb139,#ff861f)!important;color:#201005!important;border-color:#ffe4b9!important;
 outline:0!important;box-shadow:inset 0 0 0 1px #fff1d580,0 0 19px #ff902e35!important;
}
body.aa-terminal #browserScreen .browser-buttons button:is(.gamepad-focus,:focus-visible) :is(.launch-hint,.launch-arrow){color:#3b2010;}
body.aa-terminal #browserScreen .browser-buttons button:is(.gamepad-focus,:focus-visible)::before{background:#382015;}
body.aa-terminal #browserScreen .browser-buttons button:is(.gamepad-focus,:focus-visible) .launch-arrow{transform:translateX(3px);}
@media(hover:hover) and (pointer:fine){
 body.aa-terminal:not([data-menu-input=gamepad]):not([data-screen=drive]) #browserScreen .browser-buttons button:not(:disabled):hover{background:linear-gradient(115deg,#ffb139,#ff861f);color:#201005;border-color:#ffe4b9;box-shadow:0 0 19px #ff902e35;}
 body.aa-terminal:not([data-menu-input=gamepad]) #browserScreen .browser-buttons button:not(:disabled):hover :is(.launch-hint,.launch-arrow){color:#3b2010;}
 body.aa-terminal:not([data-menu-input=gamepad]) #browserScreen .browser-buttons button:not(:disabled):hover::before{background:#382015;}
 body.aa-terminal:not([data-menu-input=gamepad]) #browserScreen .browser-buttons button:not(:disabled):hover .launch-arrow{transform:translateX(3px);}
}
@media(max-width:1000px){
 body.aa-terminal:not([data-screen=drive]) #browserScreen .browser-buttons{gap:14px;padding:8px;}
 body.aa-terminal:not([data-screen=drive]) #browserScreen .browser-buttons button{gap:14px;padding:18px 14px;}
 body.aa-terminal:not([data-screen=drive]) #browserScreen .browser-buttons button::before{width:40px;height:40px;}
 body.aa-terminal #browserScreen .launch-label{font-size:clamp(18px,2.3vw,23px);}
 body.aa-terminal #browserScreen .launch-hint{font-size:13px;}
 body.aa-terminal #browserScreen .launch-arrow{font-size:28px;}
}
@media(max-width:700px){
 body.aa-terminal:not([data-screen=drive]) #browserScreen .browser-buttons button{gap:10px;padding:14px 10px;}
 body.aa-terminal:not([data-screen=drive]) #browserScreen .browser-buttons button::before{width:28px;height:28px;}
 body.aa-terminal #browserScreen .launch-label{font-size:16px;}
 body.aa-terminal #browserScreen .launch-arrow{display:none;}
}
@media(prefers-reduced-motion:reduce){body.aa-terminal #browserScreen .launch-arrow{transition:none;}}

/* Profile uses the existing account controls in the Play Options dialog. */
body.aa-terminal #lobbyProfileDialog{width:min(920px,96vw);height:min(600px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);padding:20px;overflow:hidden;}
body.aa-terminal #lobbyProfileDialog[open]{display:flex;flex-direction:column;}
body.aa-terminal #lobbyProfileDialog .aa-option-content{flex:1;min-height:0;display:flex;}
body.aa-terminal #lobbyProfileDialog #accountSignedIn{width:100%;height:100%;margin:0;}
body.aa-terminal #lobbyProfileDialog .aa-panel-body{min-height:0;}
body.aa-terminal #lobbyProfileDialog .aa-panel-tabs button{font:14px/1.3 'Segoe UI',Arial,sans-serif;min-height:44px;}
body.aa-terminal #lobbyProfileDialog .aa-panel-tabs button[aria-selected=true]{background:#342043;border-color:#b983e5;box-shadow:inset 0 -2px #b983e5;color:#f4e8ff;}
body.aa-terminal #lobbyProfileDialog .account-dashboard-top{grid-template-columns:minmax(0,1fr);}
body.aa-terminal #lobbyProfileDialog .driver-setup{display:none;}
body.aa-terminal #lobbyProfileDialog .account-dashboard-profile{align-items:center;justify-content:center;padding:24px;}
body.aa-terminal #lobbyProfileDialog .account-profile-help{font-size:15px;line-height:1.5;max-width:550px;text-align:center;}
body.aa-terminal #lobbyProfileDialog #accountEmail{font-size:15px;}
body.aa-terminal #lobbyProfileDialog #account-panel-edit{padding:0;}
body.aa-terminal #lobbyProfileDialog #settingsProfileCard{height:100%;padding:22px;}
body.aa-terminal #lobbyProfileDialog .settings-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;}
body.aa-terminal #lobbyProfileDialog .settings-profile-privacy{border-top:0;border-left:1px solid #aa82c64d;margin:0;padding:0 0 0 22px;}
body.aa-terminal #lobbyProfileDialog .settings-profile-help,body.aa-terminal #lobbyProfileDialog .check-row,body.aa-terminal #lobbyProfileDialog .settings-profile-privacy p{font-size:14px;line-height:1.5;}
body.aa-terminal #lobbyProfileDialog .account-stats{padding:18px;gap:16px;}
body.aa-terminal #lobbyProfileDialog .stats-grid{gap:12px;}
body.aa-terminal #lobbyProfileDialog .stats-tile{min-height:82px;padding:14px;}
body.aa-terminal #lobbyProfileDialog .stats-tile strong{font-size:30px;margin-top:8px;}
body.aa-terminal #lobbyProfileDialog .aa-option-bar>span{font:18px/1.3 var(--display);color:#f3eaff;}
@media(max-height:650px){
 body.aa-terminal #lobbyProfileDialog{padding:16px;}
 body.aa-terminal #lobbyProfileDialog .account-dashboard-profile{padding:18px;}
 body.aa-terminal #lobbyProfileDialog #settingsProfileCard{padding:18px;}
}
@media(max-width:600px){
 body.aa-terminal #lobbyProfileDialog .settings-profile-grid{grid-template-columns:1fr;gap:12px;}
 body.aa-terminal #lobbyProfileDialog .settings-profile-privacy{border:0;padding:12px 0 0;}
 body.aa-terminal #lobbyProfileDialog .aa-panel{overflow:auto;}
 body.aa-terminal #lobbyProfileDialog .aa-panel-tabs button{font-size:12px;padding:8px 5px;}
}
