#host[data-game=slot][data-stage=waiting] .scene-shade{background:linear-gradient(120deg,#17242e,#202f38 68%,#18252e)}
#host[data-game=slot][data-stage=waiting] #panel{display:none}
#slotVoteLobby{position:absolute;inset:calc(var(--edge) + 47px) var(--edge) max(12px,2vh);display:grid;grid-template-rows:auto minmax(0,1fr) clamp(60px,11vh,117px);gap:clamp(7px,1.2vh,16px);color:#fdf6e2}
.vote-header{display:flex;align-items:center;gap:clamp(9px,1.8vw,32px)}
.vote-header>div:first-child{flex:1}
.vote-header h1{margin:0;font:italic 900 clamp(23px,3.2vw,58px)/.98 'Barlow Condensed',system-ui;letter-spacing:-.045em}
.vote-header p{max-width:83ch;margin:.3em 0 0;color:#d7e1e4;font-weight:550;font-size:clamp(12px,1.1vw,19px);line-height:1.25}
#voteJoin:has(#qrBox[hidden]){display:none}
#voteJoin #qrBox{display:flex;flex-direction:row;gap:8px}
#host[data-game=slot][data-stage=waiting] #voteJoin #qr{width:clamp(76px,11vh,138px);border-radius:2px}
#voteJoin a{color:#fff1bc;font-size:clamp(10px,1vw,16px);max-width:9ch;line-height:1.25}
#voteCapacity{margin:0;border-inline-start:3px solid #ffd049;padding-inline-start:.65em;font:800 clamp(12px,1.4vw,22px)/1.25 'Barlow',Arial;max-width:20ch}
#slotBallots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:clamp(5px,1.15vh,15px)}
.ballot-tile{position:relative;overflow:hidden;min-height:0;min-width:0;background:#30434b;border:1px solid #62717a;border-radius:5px;display:grid;grid-template-rows:minmax(0,1fr) auto}
.ballot-tile>img{width:100%;height:100%;object-fit:contain;display:block;background:var(--land,#324047)}
.ballot-tile[data-track=port]{--land:#78ad8d}.ballot-tile[data-track=canyon]{--land:#ce855c}.ballot-tile[data-track=alpine]{--land:#518d65}.ballot-tile[data-track=neon]{--land:#252f50}.ballot-tile[data-track=autumn]{--land:#9ca665}.ballot-tile[data-track=classic]{--land:#60906b}
.ballot-tile[data-voted=true]{border-color:#ffe088}
.ballot-caption{display:flex;align-items:center;justify-content:space-between;gap:4px;background:#243039;padding:clamp(3px,.67vh,10px) clamp(7px,1vw,15px)}
.ballot-caption h2{margin:0;font:italic 850 clamp(14px,1.65vw,30px)/1.05 'Barlow',system-ui;letter-spacing:-.033em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ballot-caption b{min-width:1.65em;text-align:center;background:#3a4b52;color:#edeedf;font:800 clamp(12px,1.15vw,20px)/1.35 system-ui;border-radius:3px}
.ballot-tile[data-voted=true] .ballot-caption b{background:#ffcf4b;color:#15222a}
.ballot-voters{position:absolute;inset:5px 5px auto;display:flex;flex-wrap:wrap;gap:3px;pointer-events:none}
.ballot-voters span{min-width:0;max-width:48%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#14212bf5;color:white;border-inline-start:4px solid var(--driver);padding:3px 6px;border-radius:2px;font:750 clamp(10px,1vw,17px)/1.2 system-ui}
#slotVoteLobby #slotGrid{position:static;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:clamp(4px,.7vw,13px)}
#slotVoteLobby .pit-bay{grid-column:auto;display:grid;grid-template-columns:44% minmax(0,1fr);align-content:center;align-items:center;padding:3px 6px 3px 14%;border-radius:3px}
#slotVoteLobby .pit-bay img{grid-column:1;grid-row:1/3;width:100%;height:clamp(40px,8.3vh,90px);object-fit:contain}
#slotVoteLobby .pit-bay strong,#slotVoteLobby .pit-bay small{grid-column:2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-inline-start:6px}
#slotVoteLobby .pit-bay strong{font-size:clamp(13px,1.55vw,25px)}#slotVoteLobby .pit-bay small{font-size:clamp(10px,1vw,15px)}
#slotVoteLobby .pit-bay .bay-number{top:50%;left:3%;transform:translateY(-50%);font-size:clamp(15px,2vw,36px)}
#slotVoteLobby .bay-remove{right:3px;top:2px;width:17px;height:17px;font-size:14px}
#raceAlerts{position:absolute;z-index:3;inset:auto var(--edge) clamp(60px,10.5vh,135px);display:flex;justify-content:center;gap:6px;pointer-events:none}
.skid-alert{position:relative;min-width:0;max-width:32%;padding:clamp(6px,.8vw,13px) clamp(8px,1.2vw,20px);background:#1b252df7;color:#fff2cd;border:2px solid #ffd45b;border-inline-start:6px solid var(--driver);border-radius:4px;box-shadow:0 4px 14px #10151959;display:grid;gap:3px;animation:skid-in .24s ease-out}
.skid-alert span{font:800 clamp(11px,1.2vw,21px)/1.05 system-ui;color:var(--driver);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.skid-alert strong{font:italic 950 clamp(20px,3.25vw,60px)/1 'Barlow Condensed',system-ui;letter-spacing:-.055em;color:#ffd252;overflow-wrap:anywhere}
.skid-alert small{line-height:1.15;font-size:clamp(10px,1vw,17px)}
@keyframes skid-in{from{opacity:0;transform:translateY(10px) rotate(-2deg)}to{opacity:1;transform:none}}
#phone[data-game=slot][data-choosing=true]{padding:max(43px,env(safe-area-inset-top)) 14px max(12px,env(safe-area-inset-bottom))}
#phone[data-choosing=true] .phone-inner{width:min(100%,550px)}
#phone[data-choosing=true] h1{font-size:clamp(26px,6vw,42px)}
#phone[data-choosing=true] #phoneKind{margin-bottom:2px}
#phone[data-choosing=true] #phoneInfo{margin:6px 0 8px;font-size:15px}
#phone[data-choosing=true] #nameField{margin:6px auto 8px}
#driverChoices{margin:8px auto 13px;display:grid;gap:8px;text-align:start}
#driverChoices fieldset{margin:0;padding:0;border:0;min-width:0}
#driverChoices legend{padding:0 0 4px;font:780 15px/1.2 system-ui;color:#f9f4de}
#phoneFleet,#phoneMaps{display:grid;gap:5px}
#phoneFleet{grid-template-columns:repeat(5,minmax(0,1fr))}#phoneMaps{grid-template-columns:repeat(3,minmax(0,1fr))}
#driverChoices button{position:relative;width:100%;min-width:0;min-height:44px;padding:0;background:#2b3d48;border:2px solid #54656c;color:#f8f6eb;border-radius:5px;overflow:hidden;line-height:1.1}
#driverChoices button[aria-pressed=true]{border-color:#ffd049;background:#415057}
#driverChoices button[aria-pressed=true]:after{content:'✓';position:absolute;right:2px;top:2px;color:#182229;background:#ffd049;font:900 12px/16px system-ui;width:16px;border-radius:2px}
#driverChoices button img{display:block;object-fit:contain;width:100%;height:clamp(33px,6.6svh,58px)}
#phoneMaps button img{object-fit:cover;height:clamp(37px,7.6svh,66px)}
#driverChoices button span{display:block;font:750 clamp(10px,2.8vw,14px)/1.15 system-ui;padding:3px 1px}
#phoneFleet button span{color:var(--model)}
#phone[data-game=slot][data-off=true]{background:#32291f;box-shadow:inset 0 0 0 8px #ffcc43}
#phone[data-off=true] h1{font-size:clamp(46px,13vw,94px);color:#ffd047}
#phone[data-off=true] #slotHandCar{transform:rotate(-10deg)}
@media(max-aspect-ratio:1/1){
 #slotBallots{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr))}
 .vote-header{gap:6px}.vote-header p{font-size:11px}#voteJoin #qrBox{flex-direction:column;gap:1px}#voteJoin a{max-width:none}
 #host[data-game=slot][data-stage=waiting] #voteJoin #qr{width:64px}
 #voteCapacity{max-width:10ch;font-size:12px}
 #slotVoteLobby .pit-bay{padding:14px 2px 2px;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto;justify-items:center;align-content:stretch;text-align:center}
 #slotVoteLobby .pit-bay img{grid-area:1/1;height:100%}#slotVoteLobby .pit-bay strong,#slotVoteLobby .pit-bay small{grid-column:1;padding:0}
 #slotVoteLobby .pit-bay strong{grid-row:2}#slotVoteLobby .pit-bay small{grid-row:3}#slotVoteLobby .pit-bay .bay-number{top:2px;transform:none;font-size:13px}
 #raceAlerts{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:4px}.skid-alert{max-width:100%}
}
@media(max-height:520px) and (orientation:landscape){
 #slotVoteLobby{inset:43px 12px 4px;grid-template-rows:auto minmax(0,1fr) 39px;gap:3px}
 #host[data-game=slot][data-stage=waiting] #voteJoin #qr{width:60px}.vote-header h1{font-size:21px}
 .vote-header p{font-size:10px}#slotBallots{gap:3px}.ballot-caption{padding:2px 6px}.ballot-caption h2{font-size:12px}
 #slotMapOptions{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){.skid-alert{animation:none}}

#padSound{position:absolute;top:max(10px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));z-index:2;width:44px;height:44px;border-radius:5px;background:#23333d;color:#fff4db}
#padSound[aria-pressed=true] .silent,#padSound[aria-pressed=false] .waves{display:none}
#phone[data-game=slot] #phoneButtons button.secondary{background:transparent;color:#fff8e5;border-color:#97a4aa}
#phoneFleet{grid-template-columns:repeat(4,minmax(0,1fr))}
#phoneFleet button span{color:#fff6df;overflow-wrap:anywhere}
#phoneFleet button{border-bottom-color:var(--model)}
