@font-face{font-family:Bangers;src:url('assets/fonts/bangers.ttf') format('truetype');font-weight:100 900;font-display:swap}

:root{--ink:#382b43;--purple:#75579c;--pink:#ed81a0;--paper:#faf6ed}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif}button,input,select{font:inherit}button{cursor:pointer;border:1px solid #d9d0df;background:transparent;color:var(--ink);border-radius:8px;padding:10px 15px;font-weight:700}button:hover{background:#eee3f1}button:disabled{opacity:.45;cursor:not-allowed}header{padding:22px 4%;border-bottom:1px solid #e6dfe2;display:flex;justify-content:space-between;align-items:center;gap:20px}.brand{font:900 26px 'Barlow Condensed',sans-serif;text-decoration:none;color:var(--ink);letter-spacing:1px}.brand small{display:block;font:600 9px 'DM Sans';letter-spacing:3px;margin:4px 0 0 25px}.top{display:flex;align-items:center;gap:12px}#connection{font-size:10px;letter-spacing:1px;color:#8c8091;max-width:190px}main{padding:38px 4% 20px;max-width:1800px;margin:auto}.headline{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.eyebrow{font-size:10px;letter-spacing:2.5px;font-weight:700;color:#937788}h1{font:800 clamp(30px,3.3vw,54px)/1.03 'Barlow Condensed',sans-serif;text-transform:uppercase;margin:12px 0}h1 em{color:var(--purple);font-style:normal}.joincall{border-left:3px solid #e5bfcf;padding:0 28px}.joincall span{font-size:9px;letter-spacing:2px;display:block}.joincall b{font:800 50px 'Barlow Condensed';color:var(--purple)}.joincall small{display:block;font-size:12px}.layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px}.stage{border:1px solid #d9cddb;border-radius:12px;overflow:hidden;background:#fffaf6;box-shadow:0 6px 0 #e9e0e3}.racebar{display:flex;justify-content:space-between;gap:10px;padding:17px 19px;font-size:10px;letter-spacing:1.1px}.racebar i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#8cae83;margin-right:4px}#stageLabel{color:#9d8499}.canvaswrap{position:relative;overflow:hidden}canvas{display:block;width:100%;aspect-ratio:2/1}.splash{position:absolute;top:9%;left:5%;pointer-events:none}.splash span{font-size:9px;letter-spacing:2px;color:#765b85}.splash h2{font:900 clamp(27px,3.6vw,60px)/.95 'Barlow Condensed';color:#654673;margin:14px 0;text-shadow:2px 2px #f9e6ce}.splash p{font-size:12px}#announcement{position:absolute;top:30%;left:50%;transform:translateX(-50%) rotate(-4deg);font:900 clamp(30px,5vw,75px)/1 'Barlow Condensed';color:#fff4b9;text-shadow:3px 3px #654673,-2px -2px #654673;text-align:center;pointer-events:none;width:95%}.track{height:5px;background:#e8d7cf}.track div{height:100%;background:var(--pink);width:0}.controls{display:flex;align-items:center;gap:10px;padding:18px}.controls>div{flex:1}.controls b{font-size:14px}.controls small{display:block;font-size:11px;color:#968297;margin-top:5px}.primary{background:var(--purple);color:white;border-color:var(--purple)}.primary:hover{background:#634584}.secondary{background:#f5e9ee}.rules{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:12px 18px;background:#f4edea;font-size:10px;color:#917d8b}.rules b{color:#66516c}aside{background:#fffcf7;border:1px solid #e1d6df;border-radius:12px;display:flex;flex-direction:column;overflow:hidden;max-height:660px}.tabs{display:flex;border-bottom:1px solid #e7dce3;padding:9px;gap:4px}.tabs button{border:0;flex:1;font-size:12px}.tabs .active{background:#ece3f4;color:#72538d}.tabs span{font-size:10px}#list{padding:10px 16px;flex:1;overflow:auto;min-height:200px}.empty{text-align:center;color:#9b899b;font-size:12px;padding:48px 12px}.empty strong{font:800 46px 'Barlow Condensed';display:block;color:#c2acc7;margin-bottom:10px}.rider{display:flex;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid #eee5e6;font-size:12px}.rider .avatar{background:var(--c);border-radius:9px;width:32px;height:32px;display:grid;place-items:center;color:white;font-weight:800}.rider .name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}.rider small{display:block;color:#a48b9c;font-size:9px;margin-top:3px}.rider .score{font-weight:700;color:var(--purple)}.asidefoot{padding:14px;border-top:1px solid #e5dce5;font-size:9px;color:#9a8998}.asidefoot button{display:block;border:0;padding:8px 0 0;font-size:11px}.bottom{display:flex;justify-content:space-between;gap:25px;margin:38px 0}.bottom>div{display:flex;gap:13px;align-items:center}.number{font:700 30px 'Barlow Condensed';color:#cbb4ca}.bottom b{font-size:12px}.bottom p{font-size:11px;color:#958294;margin:5px 0}footer{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1px;border-top:1px solid #e6dfe2;padding-top:18px;color:#9f8c9d}dialog{border:1px solid #dbcddd;border-radius:18px;background:var(--paper);color:var(--ink);padding:30px;max-width:500px;width:94%}dialog::backdrop{background:#30233988;backdrop-filter:blur(5px)}dialog h2{font:800 32px 'Barlow Condensed'}.close{float:right;border:0;font-size:23px;padding:0 8px}label{display:block;font-size:12px;font-weight:700;margin:16px 0}input,select{display:block;width:100%;margin-top:8px;background:white;border:1px solid #d6c7d9;padding:12px;border-radius:7px;color:var(--ink)}.help,details{font-size:11px;color:#8b788b;line-height:1.6}details{padding:10px;background:#f0e8ee;border-radius:8px}.row{display:flex;gap:10px;margin-top:18px}#connectInfo{font-size:12px}.check{display:flex;align-items:center;gap:10px;line-height:1.5}.check input{width:auto;margin:0}hr{border:0;border-top:1px solid #e0d6e0;margin:22px 0}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#3e2a4d;color:white;border-radius:10px;padding:14px 22px;font-size:13px;z-index:10;display:none}body.theater header,body.theater .headline,body.theater .bottom,body.theater footer,body.theater aside,body.theater .rules{display:none}body.theater main{padding:0;max-width:none}body.theater .layout{display:block}body.theater .stage{border-radius:0}body.theater #game{height:calc(100vh - 134px);width:100%;object-fit:contain;background:#e9c8da}body.theater .controls{padding:12px}button:focus-visible{outline:3px solid #de9abf;outline-offset:3px}[hidden]{display:none!important}@media(max-width:950px){.layout{grid-template-columns:1fr}aside{max-height:300px}.top #connection{display:none}.bottom{flex-wrap:wrap}.joincall{padding-right:0}.racebar{font-size:8px}header{padding:16px 4%}.top button{font-size:10px;padding:8px}.brand{font-size:19px}.brand small{font-size:7px;letter-spacing:1px}.splash p{display:none}}@media(max-width:550px){.joincall{display:none}.headline{margin-bottom:20px}.controls{flex-wrap:wrap}.controls>div{flex-basis:100%}#stageLabel{display:none}footer{line-height:1.7;gap:20px}.bottom{gap:16px}}

.commandbar{display:flex;gap:20px;align-items:center;flex-wrap:wrap;background:#eee5f0;border:1px solid #dacbdf;border-radius:10px;padding:15px 20px;margin-top:22px;font-size:11px}.commandbar>b{letter-spacing:1px;color:#72538d;font-size:10px}.commandbar code{font-weight:700;color:#705085}.commandbar button{margin-left:auto;background:#fff7eb;font-size:11px}#activity{font-size:12px;color:#806686;padding:14px 5px;min-height:44px}#shop{max-width:1000px;max-height:90vh}#shop h2{font-size:38px;margin:10px 0}.shopfilters{display:flex;gap:12px;margin:16px 0}.shopfilters input,.shopfilters select{margin:0;flex:1;min-width:0}#wallet{font-size:13px;color:#735283;font-weight:700;padding-bottom:12px}#castGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;max-height:52vh;overflow:auto;padding:4px}.character{border:1px solid #e0d0df;border-radius:10px;overflow:hidden;background:#fffaf3;text-align:center}.character canvas{width:100%;aspect-ratio:1.4;background:linear-gradient(145deg,#ead8eb,#fae4cf)}.character h3{font-size:13px;margin:11px 5px 5px}.character p{font-size:11px;margin:6px;color:#927b92}.character code{display:block;background:#eee5f1;padding:9px;font-size:11px;color:#6e4c82}.character.owned{border:2px solid #89a688}.character.equipped{border:2px solid #ce9a49}.theater .commandbar{margin:0;border-radius:0;padding:8px 15px}.theater #activity{margin:0;padding:5px 15px;background:#fff5e6}.theater canvas#game{height:calc(100vh - 220px)}@media(max-width:700px){#castGrid{grid-template-columns:repeat(2,1fr)}.shopfilters{flex-direction:column}.top{flex-wrap:wrap;justify-content:flex-end}.top button{padding:6px}.commandbar{gap:10px}.commandbar button{margin-left:0}}

#shop,#gacha{max-width:1060px}#gacha h2{font:800 38px 'Barlow Condensed';margin:8px 0}#gacha{max-height:92vh}#bannerGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:22px 0}.banner{border:1px solid #ddcde2;border-radius:12px;padding:20px;background:#fffbf5}.banner.steel{background:#f0e7f6;border-color:#b69ac7}.banner.requiem{background:#fcf0d7;border-color:#ceaa62}.banner h3{font:800 28px 'Barlow Condensed';margin:5px 0}.banner .price{font-size:20px;font-weight:800}.banner p{font-size:11px;line-height:1.7;color:#8b738d}.banner code{display:block;background:#3a2948;color:white;border-radius:6px;padding:12px;text-align:center;font-weight:700}.banner .gate{font-size:11px;font-weight:700;color:#8d6998}.banner .pity{border-top:1px solid #ddcedd;padding-top:10px}.rarity{display:inline-block;padding:4px 9px;border-radius:20px;background:var(--rarity-bg,#e4e1e4);color:var(--rarity-ink,#706772);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:1px}.character{position:relative}.character>.rarity{position:absolute;top:8px;left:8px}.character p.part{font-size:9px;text-transform:uppercase;letter-spacing:1px}#pullReveal{background:linear-gradient(135deg,#eee2f4,#fff0cd);border:1px solid #d9b9d4;border-radius:12px;text-align:center;padding:20px}#pullReveal canvas{max-width:250px;margin:auto;aspect-ratio:1.4}#pullReveal h3{font:800 30px 'Barlow Condensed';margin:6px}#pullReveal p{font-size:12px}#gachaWallet{font-size:13px;font-weight:700;color:#735283}@media(max-width:700px){#bannerGrid{grid-template-columns:1fr}.top{gap:5px}.top button{font-size:9px}.brand{min-width:110px;font-size:17px}}

:is(#livePull,.multiPullCard){position:absolute;right:18px;top:16px;width:170px;text-align:center;background:#fff5eaf2;border:2px solid #b37fc3;border-radius:12px;padding:12px;box-shadow:4px 4px 0 #4d2b6144;pointer-events:none;animation:pullpop .35s ease-out}:is(#livePull,.multiPullCard)>span{font-size:10px;font-weight:800;letter-spacing:1.5px;color:#9754a5}:is(#livePull,.multiPullCard) canvas{width:100%;height:120px;aspect-ratio:auto;object-fit:contain}:is(#livePull,.multiPullCard) b{display:block;font:800 21px 'Barlow Condensed'}:is(#livePull,.multiPullCard) small{display:block;font-size:10px;margin-top:6px;overflow-wrap:anywhere}@keyframes pullpop{from{transform:scale(.65) rotate(-8deg);opacity:0}to{transform:scale(1);opacity:1}}

#raceResults{position:absolute;left:50%;top:15%;transform:translateX(-50%);width:min(600px,85%);padding:22px;background:#fff8eef2;border:3px solid #79557e;border-radius:20px;text-align:center;z-index:3;box-shadow:0 10px 40px #59406333}#raceResults h2{margin:0 0 12px;color:#79557e}#raceResults p{margin:9px 0}.audioSettings{padding:16px;border:1px solid #dac6dd;border-radius:16px}.audioSettings input[type=file]{max-width:100%}

#game{aspect-ratio:4/3}.theater #game{max-height:calc(100vh - 120px);width:100%;object-fit:contain}.theater .canvaswrap{background:#e8bd89}

.splash{top:2%;left:4%}.splash h2{font-size:clamp(24px,3vw,45px);margin:8px 0}.splash p{margin:8px 0}

#raceResults{top:1%;height:27%;width:90%;padding:1%;overflow:auto;box-shadow:none}#raceResults h2{font-size:clamp(16px,2vw,28px);margin:0 0 3px}#raceResults p{font-size:clamp(10px,1.1vw,15px);margin:3px 0}

.splash{top:2%;left:3%;padding:clamp(10px,1.4vw,22px);background:#fff8ed;color:#382442;border:2px solid #684778;border-radius:14px;box-shadow:5px 5px 0 #684778;max-width:70%}.splash h2{color:#482858;text-shadow:none;font-weight:900;font-size:clamp(22px,3.2vw,48px);line-height:1.02}.splash span{color:#64446c;font-weight:800}.splash p{color:#48304f;font-weight:600;font-size:clamp(10px,1vw,14px)}

body,button,input,select,summary,code,.brand,.brand small,.eyebrow,h1,h2,h3,p,small,span,b,strong,label,#announcement,.splash h2,.joincall b{font-family:'Bangers',Impact,sans-serif!important;letter-spacing:.65px}body{font-size:18px}.help{font-size:15px;line-height:1.45}.splash h2{letter-spacing:1.5px}input[type=password]{font-family:monospace!important;letter-spacing:normal}

#raceResults{top:1%;height:auto;max-height:12%;width:85%;padding:1%;pointer-events:none}#raceResults h2{margin:0 0 3px}#raceResults p{margin:2px 0}

/* Fullscreen keeps the complete race frame and HUD; scenery fills extra aspect-ratio space. */
body.raceFullscreen{overflow:hidden;background:#2e2634}
body.raceFullscreen header,body.raceFullscreen .headline,body.raceFullscreen aside,body.raceFullscreen .bottom,body.raceFullscreen footer,body.raceFullscreen .commandbar,body.raceFullscreen #activity{display:none}
body.raceFullscreen main{margin:0;padding:0;max-width:none}
body.raceFullscreen .stage{position:fixed;inset:0;z-index:20;width:100%;height:100dvh;border:0;border-radius:0;box-shadow:none;display:grid;grid-template-rows:auto minmax(0,1fr) 4px auto auto;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);background:#fff4e3}
body.raceFullscreen .canvaswrap{min-width:0;min-height:0;background-image:linear-gradient(#2b1f3220,#38263740),var(--race-backdrop,url('assets/panorama-0.webp'));background-position:center;background-size:cover;isolation:isolate}
body.raceFullscreen #game{width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:contain;background:transparent}
body.raceFullscreen .racebar{padding:7px 10px;flex-wrap:wrap;font-size:11px;gap:4px 12px;align-items:center}
body.raceFullscreen #stageLabel{display:inline}
body.raceFullscreen .controls{padding:6px 10px;gap:7px;flex-wrap:nowrap}
body.raceFullscreen .controls>div{flex:1;min-width:0}
body.raceFullscreen .controls b{font-size:13px}
body.raceFullscreen .controls small{font-size:10px;line-height:1.2}
body.raceFullscreen .controls button{padding:9px;min-height:40px;font-size:12px;white-space:nowrap}
body.raceFullscreen .rules{display:flex;padding:5px 10px;font-size:10px;gap:5px}
body.raceFullscreen .splash{top:12%}
body.raceFullscreen #toast{z-index:30}
@media(max-height:500px){body.raceFullscreen .racebar{font-size:10px;padding:3px 10px}body.raceFullscreen .controls{padding:3px 10px}body.raceFullscreen .controls button{min-height:32px;padding:6px}body.raceFullscreen .rules{padding:2px 10px}body.raceFullscreen .controls small{display:inline;margin-left:8px}body.raceFullscreen .splash h2{font-size:30px}}

#mobileHUD{background:#fff6e6ed;color:#39263c;padding:12px 15px;border-bottom:2px solid #ac7f97;position:relative;z-index:2;font:18px/1.2 Bangers,Impact,sans-serif;letter-spacing:.3px}
#mobileHUD strong,#mobileHUD small,#mobileHUD b{display:block}#mobileHUD strong{font-size:21px}#mobileHUD small{font-size:14px;margin-top:4px}#mobileHUD b{font-size:17px;color:#775233;margin-top:8px}#mobileHUD p{margin:8px 0 0}#mobileSpeech{background:#fffaf1;border-left:4px solid #b26690;padding:8px;font-size:19px}
@media(pointer:coarse){body.raceFullscreen .canvaswrap{display:grid;grid-template-rows:auto minmax(0,1fr)}body.raceFullscreen #mobileHUD{align-self:start;background:#fff6e6e8}body.raceFullscreen #game{min-height:0;grid-row:2}body.raceFullscreen .splash{top:35%}}
@media(pointer:coarse) and (max-height:500px){#mobileHUD{padding:5px 10px;display:grid;grid-template-columns:1fr 1fr;gap:3px 12px;font-size:15px}#mobileHUD strong{font-size:16px}#mobileHUD small{font-size:12px}#mobileHUD p,#mobileHUD b{margin:0;font-size:15px}#mobileSpeech{padding:3px 6px}}

/* Fixed mobile status area: event visibility never changes the race viewport. */
@media(pointer:coarse){
 #mobileHUD{height:126px;min-height:126px;max-height:126px;overflow:hidden;padding:7px 10px;display:grid;grid-template-columns:1fr;grid-template-rows:18px 14px 18px 30px 32px;gap:0;font-size:14px;line-height:1.15}
 #mobileHUD [hidden]{display:block!important;visibility:hidden}
 #mobileHUD strong{font-size:16px;grid-row:1}#mobileHUD small{font-size:11px;margin:0;grid-row:2}
 #mobileHUD b{font-size:13px;margin:0;grid-row:3}#mobileComment{grid-row:4;font-size:14px!important;margin:0!important}
 #mobileSpeech{grid-row:5;font-size:14px!important;margin:0!important;padding:3px 6px;border-left-width:2px}
 #mobileHUD>*{overflow:hidden;min-width:0}
 body.raceFullscreen .canvaswrap{grid-template-rows:126px minmax(0,1fr)}
}
@media(pointer:coarse) and (max-height:500px){
 #mobileHUD{height:76px;min-height:76px;max-height:76px;grid-template-columns:1fr 1fr;grid-template-rows:20px 20px 26px;padding:5px 10px;column-gap:12px}
 #mobileLeg{grid-column:1;grid-row:1!important}#mobileInfo{grid-column:1;grid-row:2!important}#mobileEvent{grid-column:1;grid-row:3!important}
 #mobileComment{grid-column:2;grid-row:1 / 3!important}#mobileSpeech{grid-column:2;grid-row:3!important}
 body.raceFullscreen .canvaswrap{grid-template-rows:76px minmax(0,1fr)}
}

/* The HUD is out of document flow. No child text can move or resize the canvas. */
html.phoneUI .canvaswrap{--hud-height:126px;padding-top:var(--hud-height)}
html.phoneUI #mobileHUD{position:absolute!important;inset:0 0 auto!important;width:100%;height:var(--hud-height)!important;min-height:0!important;max-height:none!important;display:block!important;contain:strict;overflow:hidden;box-sizing:border-box;padding:0!important}
html.phoneUI #mobileHUD>*{position:absolute!important;left:10px;right:10px;margin:0!important;overflow:hidden;box-sizing:border-box;line-height:1.15}
html.phoneUI #mobileLeg{top:7px;height:19px}
html.phoneUI #mobileInfo{top:26px;height:15px}
html.phoneUI #mobileEvent{top:41px;height:18px}
html.phoneUI #mobileComment{top:59px;height:29px}
html.phoneUI #mobileSpeech{top:89px;height:32px}
html.phoneUI body.raceFullscreen .stage{grid-template-rows:38px minmax(0,1fr) 4px 70px 30px}
html.phoneUI body.raceFullscreen .racebar,html.phoneUI body.raceFullscreen .controls,html.phoneUI body.raceFullscreen .rules{min-height:0;overflow:hidden}
html.phoneUI body.raceFullscreen .canvaswrap{display:block!important;padding:0!important}
html.phoneUI body.raceFullscreen #game{position:absolute;top:var(--hud-height);left:0;width:100%;height:calc(100% - var(--hud-height));max-height:none;object-fit:contain}
@media(max-height:500px){
 html.phoneUI .canvaswrap{--hud-height:76px}
 html.phoneUI #mobileLeg{top:5px;height:20px;right:51%}
 html.phoneUI #mobileInfo{top:25px;height:18px;right:51%}
 html.phoneUI #mobileEvent{top:44px;height:27px;right:51%}
 html.phoneUI #mobileComment{top:5px;height:36px;left:51%}
 html.phoneUI #mobileSpeech{top:42px;height:29px;left:51%}
 html.phoneUI body.raceFullscreen .stage{grid-template-rows:30px minmax(0,1fr) 4px 40px 22px}
}

html.phoneUI #mobileSpeech{font-size:12px!important;line-height:14px;padding:1px 5px}

.ability-detail{font:14px/1.35 Bangers,Impact,sans-serif;color:#654566;min-height:3.6em;padding:6px 8px;background:#f4e6ef;border-radius:7px}

body.timeStopped header,body.timeStopped .headline,body.timeStopped .racebar,body.timeStopped #mobileHUD,body.timeStopped aside,body.timeStopped .controls,body.timeStopped #announcement{filter:grayscale(1)}

body.timeStopped .commandbar,body.timeStopped .bottom,body.timeStopped .rules,body.timeStopped dialog,body.timeStopped #toast{filter:grayscale(1)}

body.timeStopped{background:#e5e5e5}body.timeStopped .stage{border-color:#777;background:#ddd}

/* Persisted dark palette with an accessible sliding switch. */
.theme-switch{display:inline-flex;align-items:center;gap:8px;position:relative;cursor:pointer;white-space:nowrap;margin:0;font-size:13px;min-height:44px;flex-shrink:0}
.theme-switch input{position:absolute;opacity:0;width:44px;height:26px;margin:0;inset:9px auto auto 0;padding:0;cursor:pointer}
.theme-track{display:inline-block;position:relative;width:44px;height:26px;border-radius:20px;background:#c2afca;border:1px solid #84628c;transition:background .18s}
.theme-track::after{content:'';position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#fff9f1;box-shadow:0 1px 3px #20152555;transition:transform .18s}
.theme-switch input:checked+.theme-track{background:#9c6ad1;border-color:#caa5ef}
.theme-switch input:checked+.theme-track::after{transform:translateX(18px)}
.theme-switch input:focus-visible+.theme-track{outline:3px solid #d08fba;outline-offset:3px}
html[data-theme=dark]{color-scheme:dark;--paper:#17131e;--ink:#f2e9f3;--purple:#c3a1ed;--pink:#f19dbd}
html[data-theme=dark] :is(header,footer,.stage,aside,.tabs,.asidefoot,.rider,dialog,.audioSettings,hr){border-color:#514058}
html[data-theme=dark] :is(.stage,aside,dialog,body.raceFullscreen .stage){background:#241d2d;box-shadow:none}
html[data-theme=dark] :is(button,input,select){border-color:#675073}
html[data-theme=dark] :is(input,select){background:#17131e;color:#f2e9f3;accent-color:#c3a1ed}
html[data-theme=dark] button:hover{background:#493553}
html[data-theme=dark] .primary{background:#8254ad;border-color:#b488dc;color:#fff}
html[data-theme=dark] .primary:hover{background:#9866c4}
html[data-theme=dark] :is(.secondary,.rules,details,.commandbar,.tabs .active,.character code,.commandbar button){background:#35283f;color:#e4cbed}
html[data-theme=dark] :is(.help,details,.eyebrow,#connection,#stageLabel,.controls small,.empty,.rider small,.asidefoot,.bottom p,footer,.character p,.banner p,.banner .gate,#activity){color:#c9b6ce}
html[data-theme=dark] :is(.rules b,.commandbar>b,.commandbar code,#wallet,#gachaWallet,#raceResults h2){color:#d9b5f3}
html[data-theme=dark] :is(.character,.banner){background:#2b2234;border-color:#66516f}
html[data-theme=dark] .banner.steel{background:#382745}
html[data-theme=dark] .banner.requiem{background:#403323;border-color:#b08f54}
html[data-theme=dark] #pullReveal{background:linear-gradient(135deg,#39264a,#453820);border-color:#876193}
html[data-theme=dark] :is(#raceResults,:is(#livePull,.multiPullCard),.splash){background:#241b30f5;color:#f4e9f3;border-color:#c59ad3;box-shadow:3px 3px 0 #100c16}
html[data-theme=dark] :is(.splash h2,.splash p,.splash span,:is(#livePull,.multiPullCard)>span){color:#f1d9f5}
html[data-theme=dark] .track{background:#49384b}
html[data-theme=dark] #mobileHUD,html[data-theme=dark] body.raceFullscreen #mobileHUD{background:#211a2df2;color:#f2e9f3;border-color:#916f9c}
html[data-theme=dark] #mobileHUD b{color:#f1c995}
html[data-theme=dark] #mobileSpeech{background:#35283f;color:#f2e9f3}
html[data-theme=dark] .theater #activity{background:#241d2d}
html[data-theme=dark] a:not(.brand){color:#d7b5f2}
@media(max-width:700px){.top .theme-switch{font-size:11px;gap:5px}}
@media(prefers-reduced-motion:reduce){.theme-track,.theme-track::after{transition:none}}
/* Non-blocking, top-layer reward cinema; never participates in mobile HUD layout. */
:is(#livePull,.multiPullCard){position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(570px,96vw,78dvh);height:auto;aspect-ratio:800/760;max-width:none;margin:0;padding:0;border:0;border-radius:28px;background:radial-gradient(ellipse,#171123ed 20%,#171123a6 54%,transparent 72%);box-shadow:none;color:#fff4dc;overflow:visible;pointer-events:none;z-index:10000;animation:none;text-align:center;font-family:Bangers,Impact,sans-serif}
:is(#livePull,.multiPullCard)[hidden]{display:none!important}:is(#livePull,.multiPullCard)::backdrop{background:transparent;pointer-events:none}
:is(#livePull,.multiPullCard) canvas{display:block;width:100%;height:100%;aspect-ratio:auto}
:is(#livePull,.multiPullCard) .pullHeading{position:absolute;top:7%;left:9%;right:9%;text-shadow:0 3px 3px #000}
:is(#livePull,.multiPullCard) .pullHeading span{display:block;font-size:clamp(12px,2.8vw,17px);letter-spacing:3px;color:var(--pull-color)}
:is(#livePull,.multiPullCard) .pullHeading b{font:clamp(22px,5vw,34px) Bangers,Impact,sans-serif;overflow-wrap:anywhere;line-height:1.2;margin-top:5px}
:is(#livePull,.multiPullCard) .pullPrize{position:absolute;left:8%;right:8%;top:72%;opacity:0;transform:translateY(15px);transition:opacity .25s,transform .35s}
:is(#livePull,.multiPullCard).revealed .pullPrize{opacity:1;transform:translateY(0)}
:is(#livePull,.multiPullCard) .pullPrize span{display:inline-block;background:var(--pull-color);color:#201729;padding:4px 17px;border:2px solid #fff1b9;box-shadow:4px 4px #0008;font-size:clamp(17px,4vw,25px);letter-spacing:2px;transform:rotate(-3deg)}
:is(#livePull,.multiPullCard) .pullPrize b{font:clamp(24px,5.8vw,39px) Bangers,Impact,sans-serif;text-shadow:2px 3px #181122,-1px -1px #181122;line-height:1.05;margin:10px 0 5px}
:is(#livePull,.multiPullCard) .pullPrize small{font:clamp(12px,2.5vw,16px) Bangers,Impact,sans-serif;letter-spacing:1px;text-shadow:1px 2px #000;background:#171123dc;border-radius:6px;padding:5px}
:is(#livePull,.multiPullCard) #livePullQueue{position:absolute;bottom:0;left:0;right:0;font:13px Bangers,Impact,sans-serif;color:#e4d6ee;letter-spacing:2px}
html[data-theme=dark] :is(#livePull,.multiPullCard){background:radial-gradient(ellipse,#171123ed 20%,#171123a6 54%,transparent 72%);box-shadow:none;color:#fff4dc}
@media(prefers-reduced-motion:reduce){:is(#livePull,.multiPullCard) .pullPrize{transition:none}}

/* Scale the complete reward overlay, including its text and art, to half size. */
:is(#livePull,.multiPullCard){transform:translate(-50%,-50%) scale(.5);transform-origin:center}

:is(#livePull,.multiPullCard),:is(#livePull,.multiPullCard) *{font-family:Bangers,Impact,sans-serif!important}:is(#livePull,.multiPullCard) .pullHeading b,:is(#livePull,.multiPullCard) .pullPrize b{font-style:italic;letter-spacing:1.2px;-webkit-text-stroke:.5px #311e40;text-shadow:2px 3px #271930,4px 5px #0006}:is(#livePull,.multiPullCard) .pullPrize span{font-style:italic;box-shadow:3px 4px 0 #281332,5px 6px 0 var(--pull-color)}

body,button,input,select,summary,code,.brand,.brand small,.eyebrow,h1,h2,h3,p,small,span,b,strong,label,#announcement,.splash h2,.joincall b,:is(#livePull,.multiPullCard),:is(#livePull,.multiPullCard) *{font-family:JoJoUser,Bangers,Impact,sans-serif!important}

#collectionOverlay{position:fixed;inset:auto 18px 24px auto;margin:0;width:min(440px,90vw);max-height:85dvh;overflow:auto;z-index:9999;background:#201829f5;color:#fff4dc;border:2px solid #d2ad69;border-radius:15px;padding:18px;box-shadow:7px 7px 0 #100b1899;pointer-events:none;font-family:JoJoUser,Bangers,Impact,sans-serif}
#collectionOverlay[hidden]{display:none!important}#collectionOverlay::backdrop{background:transparent;pointer-events:none}#collectionOverlay header{display:block;padding:0;margin:0;border:0}#collectionTitle{display:block;font-size:25px;overflow-wrap:anywhere;color:#f5d689}#collectionSummary{display:block;font-size:14px;margin:5px 0 10px;color:#d4c5de}#collectionPage{font-size:14px;letter-spacing:1.5px;color:#ef9cce}.collectionRow{display:grid;grid-template-columns:1fr auto;gap:3px 8px;border-top:1px solid #ffffff20;padding:9px 0}.collectionRow b{font-size:18px;font-weight:400;line-height:1.2}.collectionRow span{font-size:12px;padding:2px 6px;border-radius:4px;align-self:start}.collectionRow code{grid-column:1/-1;font-size:15px;color:#b9e8b0}#collectionOverlay footer{display:block;font-size:14px;line-height:1.4;color:#f3d695;padding:10px 0 0;margin:0;border-top:1px solid #a88054}#collectionOverlay p{font-size:18px}@media(max-width:600px){#collectionOverlay{right:5vw;bottom:16px;padding:13px}.collectionRow{padding:7px 0}}
/* A single bounded stage in stream mode prevents competing viewport heights. */
body.theater{overflow:hidden}body.theater main{padding:0;margin:0;max-width:none}body.theater>.top,body.theater>header,body.theater .headline,body.theater .layout>aside,body.theater .bottom,body.theater main>footer,body.theater .commandbar,body.theater #activity{display:none}
body.theater .layout{display:block;margin:0;padding:0}body.theater .stage{position:fixed;inset:0;display:grid;grid-template-rows:36px minmax(0,1fr) 4px 58px 25px;width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0;box-shadow:none;z-index:20;overflow:hidden}
body.theater .canvaswrap{min-width:0;min-height:0;background:#261e30;background-image:none!important}body.theater #game{position:absolute;inset:0;width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:contain}body.theater .racebar,body.theater .controls,body.theater .rules{min-height:0;padding:5px 12px;overflow:hidden}body.theater .controls button{padding:7px 12px}body.theater #exitFullscreen{display:block!important}
body.raceFullscreen .canvaswrap{background-image:none!important;background:#261e30}html.phoneUI body:is(.raceFullscreen,.theater) .canvaswrap{--hud-height:104px;padding:0!important;display:block!important}html.phoneUI body:is(.raceFullscreen,.theater) #game{inset:var(--hud-height) 0 0;top:var(--hud-height);width:100%;height:calc(100% - var(--hud-height));object-fit:contain}html.phoneUI body.raceLive:is(.raceFullscreen,.theater) #game{object-fit:cover}
html.phoneUI body:is(.raceFullscreen,.theater) #mobileHUD{--hud-height:104px}html.phoneUI body:is(.raceFullscreen,.theater) #mobileLeg{top:5px;height:17px;font-size:13px}html.phoneUI body:is(.raceFullscreen,.theater) #mobileInfo{top:22px;height:14px;font-size:11px}html.phoneUI body:is(.raceFullscreen,.theater) #mobileEvent{top:36px;height:16px;font-size:12px}html.phoneUI body:is(.raceFullscreen,.theater) #mobileComment{top:53px;height:22px;font-size:11px}html.phoneUI body:is(.raceFullscreen,.theater) #mobileSpeech{top:77px;height:25px;font-size:11px}
:is(#livePull,.multiPullCard){inset:68% auto auto 50%;transform:translate(-50%,-50%) scale(.4)}
#announcement{top:18%;left:50%;width:min(92%,750px);transform:translateX(-50%);color:#fff9df;-webkit-text-stroke:1px #26172f;text-shadow:3px 4px #24152f;z-index:5}#announcement canvas{width:100%;height:auto;aspect-ratio:1040/576;filter:drop-shadow(0 5px 3px #160e24aa)}
body:is(.theater,.raceFullscreen) #collectionOverlay:not([hidden]){display:block}body:is(.theater,.raceFullscreen) #collectionOverlay header,body:is(.theater,.raceFullscreen) #collectionOverlay footer{display:block}body.theater #toast,body.raceFullscreen #toast{z-index:50}
@media(pointer:coarse) and (orientation:landscape){html.phoneUI body:is(.raceFullscreen,.theater) .canvaswrap{--hud-height:60px}html.phoneUI body:is(.raceFullscreen,.theater) #mobileHUD{--hud-height:60px}html.phoneUI body:is(.raceFullscreen,.theater) #mobileLeg{top:4px;right:51%}html.phoneUI body:is(.raceFullscreen,.theater) #mobileInfo{top:22px;right:51%}html.phoneUI body:is(.raceFullscreen,.theater) #mobileEvent{top:38px;right:51%}html.phoneUI body:is(.raceFullscreen,.theater) #mobileComment{left:51%;top:4px;height:25px}html.phoneUI body:is(.raceFullscreen,.theater) #mobileSpeech{left:51%;top:31px;height:27px}body.theater .stage{grid-template-rows:28px minmax(0,1fr) 3px 36px 20px}}
body.theater .rules{display:flex}#announcement canvas{background:transparent!important}

@media(pointer:coarse) and (orientation:portrait){html.phoneUI body.raceLive:not(.raceFullscreen):not(.theater) #game{height:auto;aspect-ratio:3/4;object-fit:cover}}

/* Matching compact corner overlays. Transform origins keep both inside the screen. */
:is(#livePull,.multiPullCard){inset:auto auto max(14px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));transform:scale(.4);transform-origin:bottom left}
#collectionOverlay{inset:auto max(14px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) auto;width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 32px);transform:none;transform-origin:bottom right;padding:20px;pointer-events:auto}
#collectionTitle{font-size:32px}#collectionSummary{font-size:20px}#collectionPage{font-size:20px}.collectionRow{padding:9px 0}.collectionRow b{font-size:26px}.collectionRow span{font-size:18px}.collectionRow code{font-size:23px}#collectionOverlay footer{font-size:22px}


/* The mobile lobby title occupies the existing reserved HUD strip, above the canvas. */
html.phoneUI #splash{inset:0 0 auto!important;position:absolute;z-index:3;transform:none;width:100%;max-width:none;height:var(--hud-height,126px);margin:0;padding:10px 12px;border:0;border-bottom:2px solid #ac7f97;border-radius:0;box-shadow:none;text-align:center;display:flex;flex-direction:column;justify-content:center;gap:5px;overflow:hidden}
html.phoneUI #splash[hidden]{display:none!important}
html.phoneUI #splash h2{font-size:clamp(14px,4.8vw,22px);line-height:1.15;letter-spacing:.3px;margin:0;white-space:nowrap}
html.phoneUI #splash h2 br{display:none}
html.phoneUI #splash span{font-size:10px;letter-spacing:.7px}
html.phoneUI #splash p{font-size:12px;line-height:1.2;margin:0}
html.phoneUI .canvaswrap:has(#splash:not([hidden])) #mobileHUD{visibility:hidden}
@media(pointer:coarse) and (orientation:landscape){html.phoneUI #splash{padding:4px 12px;gap:2px}html.phoneUI #splash h2{font-size:18px}html.phoneUI #splash span{font-size:8px}html.phoneUI #splash p{font-size:10px}}
/* Host commands live beneath the canvas, never over racers. */
.hostControls{padding:10px 14px;background:#efe1c9;color:#302535;border-top:1px solid #b9a4a0;display:flex;align-items:center;gap:12px;justify-content:space-between;min-width:0}
.hostIdentity{display:flex;gap:7px;align-items:center;min-width:0;flex-wrap:wrap}.hostIdentity label{font-size:13px;margin:0}.hostIdentity input{width:155px;min-width:80px;margin:0;padding:7px;font:14px JoJoUser,Bangers,Impact,sans-serif}.hostIdentity small{font-size:12px;white-space:nowrap}.hostActions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.hostActions button{padding:10px 12px;white-space:nowrap;min-height:40px}
.hostStableRow{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #ae9ca4}#hostStableList{max-height:55vh;overflow:auto;margin-bottom:18px}
@media(max-width:700px){.hostControls{display:block;padding:7px 10px}.hostIdentity{margin-bottom:6px}.hostIdentity input{flex:1}.hostActions button{padding:9px 5px}}
body:is(.raceFullscreen,.theater) .stage{grid-template-rows:auto minmax(0,1fr) 4px auto auto auto}
body:is(.raceFullscreen,.theater) .hostControls{padding:5px 10px}body:is(.raceFullscreen,.theater) .hostActions button{padding:6px 9px;min-height:34px}
@media(pointer:coarse) and (orientation:landscape){body:is(.raceFullscreen,.theater) .hostControls{display:flex}body:is(.raceFullscreen,.theater) .hostIdentity{margin:0}body:is(.raceFullscreen,.theater) .hostIdentity small{display:none}}
html[data-theme=dark] .hostControls{background:#2d2336;color:#f8e9d1;border-color:#65506d}html[data-theme=dark] .hostIdentity input{background:#19141f;color:#fff3db;border-color:#80648c}

/* Reveal pixels must composite over the race, including in Stream view. */
#livePullArt{background:transparent!important}
#tikfinityBadge{font-size:11px;white-space:nowrap;color:var(--ink)}#tikfinityStatus{font-size:13px;line-height:1.4}#tikfinityLast{overflow-wrap:anywhere}

#menuMute{font:12px JoJoUser,Bangers,Impact,sans-serif;padding:6px 9px;min-height:32px;white-space:nowrap}

@media(max-width:600px){#collectionOverlay{padding:14px}#collectionTitle{font-size:27px}#collectionSummary,#collectionPage{font-size:17px}.collectionRow b{font-size:22px}.collectionRow span{font-size:15px}.collectionRow code{font-size:20px}#collectionOverlay footer{font-size:18px}}

/* Wallet requests appear above the stream scene without changing its layout. */
#steelWalletOverlay{position:fixed;inset:50% max(16px,env(safe-area-inset-right)) auto auto;transform:translateY(-50%);margin:0;width:min(350px,calc(100vw - 32px));padding:20px 22px;z-index:10000;pointer-events:none;border:3px solid #ebce7d;border-radius:15px;background:linear-gradient(135deg,#33203f,#171321);color:#fff4da;box-shadow:6px 6px 0 #100b18aa;font-family:JoJoUser,Bangers,Impact,sans-serif}
#steelWalletOverlay[hidden]{display:none!important}#steelWalletOverlay::backdrop{background:transparent;pointer-events:none}
#steelWalletPlatform{display:block;color:#d9bedf;font-size:15px;letter-spacing:1px}
#steelWalletName{display:block;color:#fff4da;font-size:26px;overflow-wrap:anywhere;line-height:1.2;margin:8px 0}
#steelWalletOverlay div{display:flex;align-items:baseline;gap:12px;color:#f8d77b}
#steelWalletAmount{font-size:54px;line-height:1.1}#steelWalletOverlay div span{font-size:23px}
body #steelWalletOverlay footer{display:block;background:none;border:0;padding:10px 0 0;margin:0;font-size:16px;color:#d7c8df}
@media(max-width:600px){#steelWalletOverlay{width:min(290px,calc(100vw - 32px));padding:16px}#steelWalletName{font-size:23px}#steelWalletAmount{font-size:45px}}

#hostGrantSteel{grid-column:1/-1;color:#35213c;background:#efd080;border-color:#aa8244}

body:is(.theater,.raceFullscreen) #steelWalletOverlay:not([hidden]){display:block}

/* Large join callouts use the lobby header, keeping the rider shop below clear. */
.joincall b{font-size:clamp(44px,5vw,84px);line-height:1}
.joincall small{font-size:clamp(17px,1.8vw,27px)}
#splash p{font-size:clamp(25px,3.4vw,52px);line-height:1.05;color:#482858}
#splash p b{color:#825318}
html.phoneUI #splash p{font-size:clamp(22px,5.5vw,32px);line-height:1.05}
@media(pointer:coarse) and (orientation:landscape){html.phoneUI #splash p{font-size:clamp(20px,3vw,30px)}}
html[data-theme=dark] #splash p{color:#fff0d2}html[data-theme=dark] #splash p b{color:#f2ce7c}

/* Fixed-height queue stays below the race, including stream and phone fullscreen. */
.nextRaceQueue{height:27px;min-height:27px;max-height:27px;box-sizing:border-box;display:flex;align-items:center;gap:12px;padding:3px 12px;background:#201c2b;color:#fff0d4;overflow:hidden;font-size:14px;border-top:1px solid #877252}
.nextRaceQueue b{flex:none;color:#ebc776;letter-spacing:.5px}.nextRaceQueue span{min-width:0;overflow:auto;white-space:nowrap;scrollbar-width:none}.nextRaceQueue span::-webkit-scrollbar{display:none}
body:is(.raceFullscreen,.theater) .stage,html.phoneUI body:is(.raceFullscreen,.theater) .stage{grid-template-rows:auto minmax(0,1fr) 4px 27px auto auto auto}
@media(max-width:600px){.nextRaceQueue{font-size:12px;gap:8px;padding-inline:8px}}

/* Regular drops are 50% larger; podium rewards get the full center-stage reveal. */
:is(#livePull,.multiPullCard){transform:scale(.6)}
:is(#livePull,.multiPullCard).podiumReveal{inset:50% auto auto 50%;transform:translate(-50%,-50%) scale(1);transform-origin:center;width:min(650px,94vw,82dvh)}

/* Reserved announcement space: no stage, terrain or race-call boxes over actors. */
html:not(.phoneUI) #mobileHUD{display:grid;height:96px;min-height:96px;max-height:96px;grid-template-columns:42% 58%;grid-template-rows:28px 22px 28px;padding:8px 14px;gap:0;overflow:hidden;contain:strict}
html:not(.phoneUI) #mobileHUD>*{margin:0;min-width:0;overflow:hidden;line-height:1.15}
html:not(.phoneUI) #mobileLeg{grid-column:1;grid-row:1;font-size:20px}
html:not(.phoneUI) #mobileInfo{grid-column:1;grid-row:2 / 4;font-size:14px;padding-right:12px}
html:not(.phoneUI) #mobileEvent{grid-column:2;grid-row:1;font-size:18px}
html:not(.phoneUI) #mobileComment{grid-column:2;grid-row:2 / 4;font-size:18px}
html:not(.phoneUI) #mobileSpeech{display:none}
html:not(.phoneUI) body:is(.theater,.raceFullscreen) #mobileHUD{position:absolute;inset:0 0 auto;z-index:3;width:100%}
html:not(.phoneUI) body:is(.theater,.raceFullscreen) #game{top:96px;inset:96px 0 0;height:calc(100% - 96px)}
#mobileHUD.legEntering #mobileLeg{color:#936020;text-shadow:1px 1px #fff2cc;animation:leg-strip-arrival .4s ease-out}
@keyframes leg-strip-arrival{from{transform:translateX(-20px);opacity:.15}to{transform:translateX(0);opacity:1}}

#pullGrid{position:fixed;inset:auto auto max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));display:grid;grid-template-columns:repeat(var(--pull-columns,1),var(--pull-size,300px));gap:0;width:max-content;max-width:calc(100vw - 24px);height:auto;max-height:90dvh;padding:0;margin:0;border:0;background:transparent;overflow:visible;pointer-events:none;z-index:10001}
#pullGrid[hidden]{display:none!important}#pullGrid::backdrop{background:transparent;pointer-events:none}
#pullGrid.podiumGrid{inset:50% auto auto 50%;transform:translate(-50%,-50%)}
#pullGrid .multiPullCard{position:relative;inset:auto;transform:none;transform-origin:center;width:var(--pull-size);height:auto;aspect-ratio:800/760;container-type:inline-size;overflow:hidden;min-width:0}
#pullGrid .multiPullCard .pullHeading b{font-size:clamp(12px,7cqw,24px);line-height:1.05;max-height:3.15em;overflow:hidden}
#pullGrid .multiPullCard .pullHeading span{font-size:clamp(9px,4cqw,15px);letter-spacing:1px}
#pullGrid .multiPullCard .pullPrize{top:69%;left:3%;right:3%}
#pullGrid .multiPullCard .pullPrize span{font-size:clamp(10px,5cqw,19px);padding:2px 8px}
#pullGrid .multiPullCard .pullPrize b{font-size:clamp(12px,7cqw,25px);margin:5px 0 3px}
#pullGrid .multiPullCard .pullPrize small{font-size:clamp(8px,3.6cqw,13px);padding:3px;letter-spacing:.3px}
#pullGrid .pullOverflow{position:absolute;bottom:0;left:0;right:0;color:#ffe5a1;font-size:12px;text-shadow:1px 2px #000}
/* Host controls remain available in stream and fullscreen; event options live in Settings. */
.raceSettings{padding:12px;border:1px solid #aa8a62;border-radius:10px;margin:16px 0}.raceSettings button{display:block;width:100%;padding:10px;margin:8px 0;text-align:left}#raceSettingsButton{white-space:nowrap}#hostStableRider{margin-bottom:16px}.hostCardBet{position:fixed;z-index:45;background:linear-gradient(#ffe6a6,#c79e50);color:#2c2331;border:2px solid #6f4b29;border-radius:7px;font-family:Bangers,Impact,sans-serif;box-shadow:0 2px 5px #0005;padding:0 3px}.hostCardBet:disabled{opacity:.85;background:#d4cbb8;cursor:default}.hostCardBet[hidden]{display:none!important}

/* Controls wrap inside their own grid; labels never enlarge the viewport. */
.controls,.hostControls,.hostActions{min-width:0;flex-wrap:wrap!important;height:auto!important;overflow:visible!important}
.controls button,.hostControls button,.hostActions button,#raceSettingsButton{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;flex-shrink:1}
@media(max-width:700px),(pointer:coarse){.controls{display:flex!important;gap:5px!important;padding:6px!important}.controls button{font-size:11px!important;padding:6px 7px!important;min-height:32px}body.theater .stage{grid-template-rows:28px minmax(0,1fr) 3px 27px auto auto auto!important}.hostControls,.hostActions{gap:4px!important}.hostControls input{min-width:0;max-width:100%}#hostGuard,#hostRush,#hostSpin,#hostBoss{font-size:11px;max-width:105px}#raceSettingsButton{max-width:90px}}
