:root{color:#183044;background:#7bc9df;font-family:'Trebuchet MS',Arial,sans-serif}
.brand{color:#fff;text-shadow:0 2px 1px #163247}.brand>span:not(.brand-star){color:#ffcb4a}.brand-star{background:#ffcb4a;color:#22374c;border-color:#ffe8a1}.brand b{background:#183448}.topbar{padding:20px 30px}.connection{background:#173449e8;color:#d8f5ef;border:1px solid #ffffff38}.icon-button{background:#19394deb;border-color:#ffffff40;color:#fff}
.panel{background:#142f42f5;color:#f5f6e9;border:1px solid #698496;border-radius:17px;box-shadow:0 14px 50px #071d4d42,0 5px 0 #071c30;backdrop-filter:blur(14px)}
.menu-panel{width:414px;left:4vw;padding:24px 24px 15px;transform:translateY(-45%)}.eyebrow{color:#7ddbcc;font-size:9px;letter-spacing:1.8px}.eyebrow i{background:#66dfb5}.menu-panel h1{font-size:41px;letter-spacing:-1.9px;margin:15px 0 12px;line-height:1}.menu-panel h1 span{color:#ffce4d}.intro{color:#afc9d5;font-size:12px;margin-bottom:17px}.profile{border-color:#385263;padding-top:12px}.profile label,.course-label{color:#d9e6ea}.profile label{font-size:9px}input,select{background:#213f54;border-color:#466173;color:#f4f5ec}input::placeholder{color:#a7bece}.swatch.selected{outline-color:#ffdb65}
.course-label{margin-top:16px}.course-label span{color:#9eb8c8}.course-cards{grid-auto-columns:112px;gap:7px;margin-bottom:8px;scrollbar-color:#6e9eaf #284558}.course-card,.course-card.selected{background:#213e51;border:1px solid #456174;border-radius:8px;color:#f3f4e9;padding-bottom:7px}.course-card.selected{border:2px solid #ffcc49;background:#375360}.course-art{height:53px;background:#293e52}.course-art canvas{width:100%;height:100%;object-fit:cover}.course-card b{font-size:10px;margin:6px 7px 0}.course-card small{color:#b7c8cb;font-size:6.5px}.course-brief{min-height:54px;padding:8px 11px;margin:0 0 11px;background:#0b2536;border-left:3px solid #ffcb4b;border-radius:0 5px 5px 0}.course-brief b{font-size:9px;letter-spacing:1px;color:#ffdc7b}.course-brief p{font-size:10px;line-height:1.4;color:#c0d4dc;margin:4px 0 0}
.primary{background:#ffcd46;color:#263447;box-shadow:0 4px 0 #b68025}.secondary{background:#254b60;border:1px solid #548494;color:#e5f6f3;box-shadow:0 3px 0 #0a2437}.menu-actions>.primary{min-height:43px}.menu-actions>.bot-play-button{background:#18a7a3;color:white;box-shadow:0 4px 0 #087477;border-color:#55d0bc;min-height:42px;font-size:12px;margin:12px 0 0}.join-row{margin-top:11px}.practice-button{color:#b4ddd9!important;margin:10px 0!important;padding:4px 0!important}.menu-meta{border-color:#385465;color:#acc5cc;font-size:6.5px;padding-top:10px}.text-button{color:#b4d9dd}
.scene-caption>span{background:#173346ed;color:#bbebde;border:1px solid #77a2b7;border-radius:5px;font-size:10px}.scene-caption strong{color:#fff7de;text-shadow:0 3px 0 #254c5e,0 8px 25px #142c3d99}.caption-pills span{background:#173346d9;color:#e0f0ea;border-color:#739eac;border-radius:5px}.control-hint{background:#143247ed;color:#d7e6e9;border-radius:7px}.control-hint kbd{background:#456171;border-color:#8caaae;color:#fff}
.race-title,.hud-stats>div{background:#153549ef;color:#fff9e9;border:1px solid #86afbe;border-radius:9px;box-shadow:0 4px 0 #102a40}.race-title small{color:#64dcc2}.race-title>span{color:#d5e7e8}.hud-stats small{color:#acd9df}.hud-stats em{color:#b0d1dd}.hud-stats>div:last-child{background:#ffd24e;color:#173244;border-color:#fff0af}.hud-stats>div:last-child small{color:#48606a}.race-banner{background:#ffcd4a;color:#213b4b;box-shadow:0 6px 0 #936b33;border-color:#fff0b6;border-radius:7px}.standings{background:#163549dc;color:white;border:1px solid #6a95a6;border-radius:8px}.standings-heading{color:#b4dbe5}.standings-heading span{color:#91b5c7}.standings li,.standings li b{color:#bdd2d8}.standings li.self{color:#ffe693}.leave-game-button{background:#173749db;color:#d0e5e8;border:1px solid #779aab;box-shadow:none;min-height:34px;font-size:10px;top:204px}.leave-game-button:hover{background:#36586b}.race-progress{color:#fff;text-shadow:0 1px 2px #153246}.race-progress i{background:#ffcd46}.race-progress b{color:#ffcd46}.stage-guide{position:fixed;left:34px;bottom:108px;z-index:2;width:280px;padding:12px 15px;background:#153549e8;color:#edf6ef;border-left:3px solid #ffcf4d;border-radius:0 8px 8px 0;pointer-events:none}.stage-guide small{display:block;color:#ffda6f;font-size:9px;letter-spacing:2px}.stage-guide strong{display:block;font-size:15px;margin-top:5px;letter-spacing:.5px}.stage-guide p{font-size:11px;color:#bbd4dd;line-height:1.5;margin:6px 0 10px}.stage-guide>span{font-size:8px;letter-spacing:1px;color:#81d9c6}
.invite-card,.roster-member,.results-list li.self,.next-course{background:#213f53;border-color:#527286}.small-copy,.check-label span,.guest-settings,.pause-card p,.result-panel>p{color:#b4cdd7}.invite-card small,.host-settings label,.results-header,.results-list small,.results-list b{color:#b5d1db}.host-settings,.results-header,.results-list li{border-color:#3c596b}.roster-member.ready .member-status{color:#65dfbf}.round-track i{background:#517181}.round-track i.current{background:#ffce4c}.round-track i.done{background:#56d9bb}.loading{background:#16354b;color:#ffdc69}.loading p{color:#c0dadf}.loading-bean{color:#ffce4b;text-shadow:0 5px #bc882b}.toast{background:#16374b;color:#fff;border-color:#72b3c3}
/* Quick Match has its own presentation; private parties retain their layout. */
.lobby-panel.quick-match-lobby{left:50%;top:calc(50% + 22px);bottom:auto;transform:translate(-50%,-50%);width:min(1040px,calc(100vw - 64px));max-height:calc(100dvh - 124px);padding:28px;background:linear-gradient(135deg,#193e50,#102d40 75%);border:1px solid #6e96a380;border-radius:24px;box-shadow:0 24px 90px #04131c99,0 0 0 100vmax #061b2b8c;overflow-x:hidden;overflow-y:auto;scrollbar-width:none}
.lobby-panel.quick-match-lobby.needs-scroll{scrollbar-width:thin;scrollbar-color:#6896a5 transparent}
.lobby-panel.quick-match-lobby::-webkit-scrollbar{width:0}
.lobby-panel.quick-match-lobby.needs-scroll::-webkit-scrollbar{width:6px}
.lobby-panel.quick-match-lobby::-webkit-scrollbar-track{background:transparent;border-radius:999px;margin-block:24px}
.lobby-panel.quick-match-lobby::-webkit-scrollbar-thumb{background:#6896a5;border-radius:999px;min-height:36px}
.lobby-panel.quick-match-lobby::-webkit-scrollbar-thumb:hover{background:#8bb9c5}
.lobby-panel.quick-match-lobby::-webkit-scrollbar-button{display:none;width:0;height:0}
.lobby-panel.quick-match-lobby::-webkit-scrollbar-corner{background:transparent}
@supports selector(::-webkit-scrollbar){.lobby-panel.quick-match-lobby.needs-scroll{scrollbar-width:auto;scrollbar-color:auto}}
.quick-match-lobby>.eyebrow{font-size:9px;color:#80e2cd;letter-spacing:2px}
.quick-match-lobby .lobby-heading{gap:18px;margin-bottom:22px}
.quick-match-lobby .lobby-heading h1{font-size:clamp(27px,3.3vw,40px);letter-spacing:-1.6px;line-height:1.1;margin:10px 0 0}
.quick-match-lobby #leaveLobbyBtn{flex-shrink:0;min-height:40px;padding:10px 14px;border:1px solid #75929c66;border-radius:9px;color:#d7e6e9;font-size:10px;margin-top:7px;transition:background .15s,border-color .15s}
.quick-match-lobby #leaveLobbyBtn:hover{background:#ffffff0c;border-color:#b9d9df}
.matchmaking-card{display:grid;grid-template-columns:minmax(220px,.78fr) minmax(0,1.22fr);gap:0 28px}
.matchmaking-feature{display:flex;flex-direction:column;min-width:0;gap:12px}
.matchmaking-art{position:relative;flex:1;min-height:245px;overflow:hidden;border-radius:15px;background:#397d83;border:1px solid #c4e4cd40;isolation:isolate}
.matchmaking-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:54% 42%;z-index:-2}
.matchmaking-art::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#102c4740,transparent 35%,#092638ed 100%)}
.matchmaking-mode{position:absolute;top:15px;left:15px;padding:7px 10px;background:#103647d9;border:1px solid #c4e4cd66;border-radius:6px;font-size:8px;letter-spacing:1.3px;color:#fff1b6}
.matchmaking-art-caption{position:absolute;bottom:22px;left:22px;right:16px}
.matchmaking-art-caption>span{display:block;font-size:8px;letter-spacing:1.3px;color:#c2eee5;margin-bottom:9px}
.matchmaking-art-caption strong{font-size:clamp(30px,3.4vw,43px);letter-spacing:-1.8px;line-height:1.02;color:#fff8db}
.matchmaking-course{display:flex;align-items:center;gap:12px;min-height:84px;padding:12px;background:#0b243666;border:1px solid #6b8e9b4d;border-radius:12px}
.matchmaking-course-art{width:78px;height:51px;flex-shrink:0;overflow:hidden;border-radius:6px;border:1px solid #7095a25c}
.matchmaking-course-art canvas{width:100%;height:100%;object-fit:cover;display:block}
.matchmaking-course>div:last-child{min-width:0}
.matchmaking-course small{display:block;color:#8fb5bf;font-size:7px;letter-spacing:1.1px;line-height:1.5}
.matchmaking-course strong{display:block;font-size:14px;line-height:1.2;color:#eef7ed;margin:5px 0}
.matchmaking-course span{display:block;font-size:9px;color:#afcbd4;line-height:1.4}
.matchmaking-queue{min-width:0;padding-top:3px}
.matchmaking-status{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:94px}
.matchmaking-live{display:flex;align-items:center;gap:7px;font-size:8px;letter-spacing:1.3px;color:#82e4c8}
.matchmaking-live i{width:6px;height:6px;flex-shrink:0;border-radius:50%;background:#70e8bc;box-shadow:0 0 0 4px #70e8bc18;animation:matchmaking-pulse 2s ease-in-out infinite}
.matchmaking-status h2{font-size:clamp(20px,2.2vw,25px);line-height:1.15;letter-spacing:-.7px;margin:12px 0 8px;color:#f3f7ed}
.matchmaking-status p{color:#b2cbd4;font-size:11px;line-height:1.5;margin:0;max-width:265px}
.matchmaking-timer{display:flex;align-items:center;justify-content:center;flex-direction:column;flex-shrink:0;width:92px;height:92px;background:#ffce4b0a;border:2px solid #ffce4b66;outline:5px solid #ffce4b08;border-radius:50%;color:#ffe082}
.matchmaking-timer>span{font-size:39px;line-height:1;font-weight:900;letter-spacing:-2px;font-variant-numeric:tabular-nums}
.matchmaking-timer>small{font-size:7px;letter-spacing:1.4px;margin:6px 0 0;color:#e8dcae}
.matchmaking-timer.starting{background:#ffce4b;color:#173448;border-color:#fff0b6;outline-color:#ffce4b20}
.matchmaking-timer.starting>small{color:#405064}
.matchmaking-timing{display:flex;justify-content:space-between;gap:12px;margin:19px 0 8px;font-size:7px;letter-spacing:1px;color:#9dbbc6}
.matchmaking-progress{height:4px;background:#284c5d;border-radius:4px;overflow:hidden}
.matchmaking-progress i{display:block;height:100%;width:100%;border-radius:4px;background:#ffcf61;transition:width .15s linear}
.matchmaking-lineup-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:23px 0 11px}
.matchmaking-lineup-heading h3{margin:0;font-size:8px;font-weight:900;letter-spacing:1.2px;color:#a8c8d1}
.matchmaking-lineup-heading>span{font-size:11px;font-variant-numeric:tabular-nums;color:#81a5b3}
.matchmaking-lineup-heading b{color:#edfaf0;font-size:15px}
.matchmaking-slots{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.matchmaking-slot{position:relative;min-width:0;min-height:100px;padding:16px 5px 9px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;border-radius:10px;background:#1f4353;border:1px solid #5d9c9e75}
.matchmaking-slot-number{position:absolute;top:6px;left:7px;font-size:7px;font-variant-numeric:tabular-nums;color:#83a7b5}
.matchmaking-slot>strong{font-size:9px;line-height:1.4;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:10px;color:#e3f5ee}
.matchmaking-slot>small{font-size:6px;letter-spacing:1px;color:#80d8bd;margin-top:3px;line-height:1.2}
.matchmaking-slot.self{background:#ffce4b0e;border-color:#ffce4bba;box-shadow:inset 0 -2px #ffce4b22}
.matchmaking-slot.self>small,.matchmaking-slot.self .matchmaking-slot-number{color:#ffe18b}
.matchmaking-bean{display:block;position:relative;flex-shrink:0;width:27px;height:33px;border-radius:47% 47% 37% 37%;background:var(--jelly-color,#ffce4b);box-shadow:inset -5px -3px #0002,0 4px 0 #051c2b44;transform:rotate(-7deg)}
.matchmaking-bean::before{content:'';position:absolute;top:10px;left:5px;width:17px;height:13px;background:#fff9e8;border-radius:7px}
.matchmaking-bean::after{content:'';position:absolute;top:14px;left:9px;width:3px;height:5px;background:#163548;border-radius:3px;box-shadow:6px 0 #163548}
.matchmaking-slot.empty{background:#0b263630;border:1px dashed #577d8b75}
.matchmaking-slot.empty>strong{color:#95b4bf;font-weight:600;font-size:8px}
.matchmaking-slot.empty>small{color:#7399a7}
.matchmaking-slot.empty .matchmaking-bean{background:#31536155;box-shadow:none;border:1px solid #5e819066;transform:none}
.matchmaking-slot.empty .matchmaking-bean::before{width:9px;height:1px;left:8px;top:15px;border-radius:0;background:#809da9}
.matchmaking-slot.empty .matchmaking-bean::after{width:1px;height:9px;left:12px;top:11px;border-radius:0;background:#809da9;box-shadow:none}
.matchmaking-note{display:flex;align-items:center;gap:10px;padding:12px 13px;margin-top:16px;border:1px solid #6a9b9a40;border-radius:10px;background:#75ddbf08}
.matchmaking-note-icon{display:grid;place-items:center;flex-shrink:0;width:25px;height:25px;border-radius:8px;background:#74e1bd12;color:#95e8cf;font-size:18px}
.matchmaking-note p{margin:0;color:#9dbcc7;font-size:10px;line-height:1.6}
.matchmaking-note strong{color:#d4ece5;font-weight:700}
.matchmaking-footer{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #7298a22e;padding-top:16px;margin-top:22px;font-size:10px;color:#b0cdd4}
.matchmaking-footer>span:first-child{display:flex;align-items:center;gap:7px}
.matchmaking-footer i{font-style:normal;color:#83e7bf}
.matchmaking-footer>span:last-child{font-size:7px;letter-spacing:1.1px;color:#749da9}
.matchmaking-footer b{color:#f4d784;margin-left:5px}
@keyframes matchmaking-pulse{50%{box-shadow:0 0 0 6px #70e8bc08}}
@media(max-width:900px){.lobby-panel.quick-match-lobby{width:calc(100vw - 40px);padding:23px}.matchmaking-card{grid-template-columns:minmax(200px,.7fr) minmax(0,1.3fr);gap:0 20px}.matchmaking-slots{gap:6px}.matchmaking-timer{width:78px;height:78px}.matchmaking-timer>span{font-size:33px}.matchmaking-course-art{width:58px}.matchmaking-course{gap:9px;padding:10px}.matchmaking-course strong{font-size:12px}}
@media(max-width:700px){.lobby-panel.quick-match-lobby{top:78px;bottom:12px;left:12px;width:calc(100vw - 24px);max-height:none;transform:none;padding:19px;border-radius:18px}.quick-match-lobby>.eyebrow{font-size:8px;letter-spacing:1.3px}.quick-match-lobby .lobby-heading{margin-bottom:18px;align-items:flex-start;gap:10px}.quick-match-lobby .lobby-heading h1{font-size:27px;letter-spacing:-1px;max-width:210px}.quick-match-lobby #leaveLobbyBtn{font-size:9px;padding:8px 9px;min-height:44px;margin-top:3px}.matchmaking-card{grid-template-columns:minmax(0,1fr);gap:18px}.matchmaking-feature{order:1}.matchmaking-art{display:none}.matchmaking-course{min-height:72px}.matchmaking-course-art{width:83px;height:45px}.matchmaking-course strong{font-size:14px}.matchmaking-queue{order:0;padding-top:0}.matchmaking-status h2{font-size:22px}.matchmaking-status p{font-size:10px;max-width:240px}.matchmaking-slots{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.matchmaking-slot{min-height:91px;padding-top:15px}.matchmaking-slot>strong{margin-top:7px}.matchmaking-slot.empty>strong{font-size:9px}.matchmaking-lineup-heading{margin-top:18px}.matchmaking-note{margin-top:14px;padding:11px}.matchmaking-footer{order:2;margin-top:0;padding-top:14px;font-size:10px}.matchmaking-footer>span:last-child{display:none}}
@media(max-width:380px){.lobby-panel.quick-match-lobby{padding:15px}.quick-match-lobby .lobby-heading h1{font-size:24px}.quick-match-lobby #leaveLobbyBtn{max-width:95px}.matchmaking-live{font-size:7px;letter-spacing:.7px}.matchmaking-status h2{font-size:19px}.matchmaking-timer{width:70px;height:70px}.matchmaking-timer>span{font-size:29px}.matchmaking-slot{min-height:88px}.matchmaking-slot>strong{font-size:8px}.matchmaking-slot.empty>strong{font-size:8px}}
@media(max-height:800px) and (min-width:701px){.lobby-panel.quick-match-lobby{padding:22px;max-height:calc(100dvh - 112px)}.quick-match-lobby .lobby-heading{margin-bottom:17px}.quick-match-lobby .lobby-heading h1{font-size:32px}.matchmaking-slot{min-height:91px}.matchmaking-status{min-height:85px}.matchmaking-timer{width:80px;height:80px}.matchmaking-timer>span{font-size:34px}.matchmaking-lineup-heading{margin-top:18px}.matchmaking-footer{margin-top:17px;padding-top:14px}.matchmaking-note{margin-top:13px}}
@media(max-height:590px) and (orientation:landscape){.lobby-panel.quick-match-lobby{top:65px;bottom:12px;left:50%;width:calc(100vw - 40px);max-height:none;transform:translateX(-50%)}.matchmaking-art{min-height:230px}}
@media(prefers-reduced-motion:reduce){.matchmaking-live i{animation:none}.matchmaking-progress i,.quick-match-lobby #leaveLobbyBtn{transition:none}}
.spectator-controls{background:#15374bea;color:#e5f4ef;border:1px solid #729cab}.spectator-controls button{background:#2c596d;color:#ffe088}.menu-panel{scrollbar-color:#668894 #19384c}
@media(max-width:1000px){.menu-panel{left:24px;width:375px;padding:20px}.menu-panel h1{font-size:35px}.stage-guide{left:23px;width:244px}.scene-caption{right:4%;bottom:115px}.scene-caption strong{font-size:39px}}
@media(max-width:700px){.topbar{padding:14px 16px}.menu-panel{left:12px;right:12px;width:auto;top:82px;bottom:16px;transform:none;padding:20px;max-height:none}.menu-panel h1{font-size:35px}.scene-caption{display:none}.course-cards{grid-auto-columns:104px}.course-art{height:50px}.stage-guide{left:12px;bottom:166px;width:210px;padding:8px 11px}.stage-guide strong{font-size:12px}.stage-guide p{font-size:10px;margin:4px 0 6px}.stage-guide>span{font-size:7px}.leave-game-button{left:12px;top:172px}.hud-stats>div{padding:9px}.control-hint{display:none}.standings{right:12px}}
@media(max-height:650px) and (orientation:landscape){.menu-panel{top:66px;bottom:14px;transform:none;max-height:none;overflow:auto;width:355px}.menu-panel h1{font-size:29px}.intro{display:none}.stage-guide{bottom:55px;padding:8px 12px;width:235px}.stage-guide p{margin-bottom:5px}.stage-guide strong{font-size:12px}}
