
:root{font-family:Inter,"Segoe UI","Microsoft YaHei UI","Microsoft YaHei",sans-serif;color:#26332e;background:#f5f4ef;font-synthesis:none;--lime:#c6ed81;--muted:#929991;--line:#e0e3da}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;border:0;color:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #75aa51;outline-offset:4px}button:disabled{cursor:not-allowed;opacity:.4}a{color:inherit;text-decoration:none}svg{display:block}button svg{width:21px;height:21px;flex-shrink:0}button{transition:background .18s,transform .18s,box-shadow .18s}button:not(:disabled):active{transform:scale(.97)}.lobby{max-width:1800px;margin:auto;min-height:100vh;padding:0 48px}.topbar{height:108px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:30px}.brand{display:flex;align-items:center;gap:12px;font-size:23px;font-weight:900;letter-spacing:-1px;line-height:1.1}.brand-symbol{width:44px;height:44px;border-radius:13px;background:#263d32;color:var(--lime);font-size:37px;font-style:italic;position:relative;padding-left:8px;line-height:47px}.brand-symbol span{position:absolute;font-size:22px;top:-10px;right:4px}.brand-thin{font-weight:400;margin-left:4px}.brand small{font-size:8px;letter-spacing:4px;display:block;font-weight:500;margin-top:7px}.topnav{display:flex;gap:28px;align-items:center;font-size:13px}.nav-active{font-weight:700;position:relative}.nav-active:after{content:'';display:block;width:16px;height:3px;background:#557649;position:absolute;bottom:-44px;left:20px}.nav-sub{color:#a5aaa2;font-size:10px;letter-spacing:2px}.top-actions{display:flex;align-items:center;gap:12px}.status-pill{border:1px solid #dce1d4;border-radius:25px;background:transparent;padding:9px 14px;display:flex;align-items:center;gap:8px;font-size:11px}.status-dot{width:6px;height:6px;border-radius:50%;background:#88a86e;box-shadow:0 0 0 3px #8da77315}.icon-button{width:37px;height:37px;border-radius:50%;display:grid;place-items:center;background:transparent}.icon-button:hover{background:#e5e8df}.icon-button svg{width:18px;height:18px}.lobby-main{padding:37px 0 0}.intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:35px;gap:20px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:600;display:flex;align-items:center;gap:8px}.eyebrow>span{width:6px;height:6px;border-radius:50%;background:#8aa766}h1{margin:12px 0 12px;font-weight:760;font-size:44px;line-height:1.4;letter-spacing:-1.7px}.lime-period{color:#96b871}p{line-height:1.8}.intro p{font-size:13px;color:#878d84;margin:0;letter-spacing:.4px}.room-card{display:flex;align-items:center;gap:15px;background:#eceee5;border:1px solid #e5e8db;border-radius:16px;padding:20px 23px;min-width:305px}.room-bubbles{display:grid;grid-template-columns:20px 20px;gap:3px;transform:rotate(-12deg);margin-right:8px}.room-bubbles span{width:23px;height:23px;border:2px solid #eef0e7;border-radius:50%;color:white;font-weight:800;font-size:10px;display:grid;place-items:center}.room-card b{font-size:13px}.room-card p{font-size:10px;letter-spacing:0;margin-top:4px;color:#919785}.room-arrow{margin-left:auto;font-size:25px;font-weight:300}.workspace-layout{display:grid;grid-template-columns:minmax(0,1fr) 252px;gap:28px}.step-bar{display:flex;align-items:center;border-bottom:1px solid var(--line);height:53px;gap:20px;margin-bottom:25px}.step-bar button{display:flex;align-items:center;gap:9px;background:none;font-size:12px;padding:0 0 18px;position:relative;font-weight:600;color:#979e94;flex:1;white-space:nowrap}.step-num{width:25px;height:25px;border:1px solid #dce1d5;border-radius:50%;display:grid;place-items:center;font-size:10px}.step-bar button.active{color:#293c2e}.step-bar .active:after{position:absolute;content:'';height:3px;background:#526e44;border-radius:3px;bottom:-1px;left:0;width:100%}.step-bar .active .step-num{color:#fff;background:#354d3a;border-color:#354d3a}.step-bar .completed .step-num{background:var(--lime);border-color:var(--lime);color:#36432a}.step-bar button:disabled{opacity:.7}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 19px}.section-heading>div{display:flex;align-items:center;gap:9px}.section-index{font-size:11px;color:#8c9785}.section-heading h2{font-size:17px;margin:0;font-weight:700}.section-sub{color:#a0a59b;font-size:11px;margin-left:6px}.section-meta{font-size:10px;color:#989f93}.player-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.player-card{background:#fcfcf8;border:1px solid #e2e5dd;border-radius:17px;overflow:hidden;position:relative;padding:16px 13px 14px;transition:border .2s,box-shadow .2s;min-width:0}.player-card.is-ready{border-color:color-mix(in srgb,var(--player),white 30%);box-shadow:0 4px 15px var(--tint)}.card-top{display:flex;justify-content:space-between;align-items:center}.player-tag{font-size:9px;font-weight:700;letter-spacing:1.5px;display:flex;align-items:center;gap:6px}.player-tag i{height:6px;width:6px;background:var(--player);border-radius:50%}.seat-icon{width:23px;height:23px;border-radius:50%;background:var(--tint);display:grid;place-items:center;color:var(--player)}.seat-icon svg{width:13px;height:13px}.art-stage{position:relative;height:193px;margin:3px -12px 0;display:flex;align-items:center;justify-content:center;isolation:isolate;overflow:hidden}.art-stage>svg{height:192px;width:100%;position:relative;z-index:2;transition:transform .3s;filter:drop-shadow(0 10px 6px #24352c0b)}.player-card:hover .art-stage>svg{transform:translateY(-4px) rotate(-2deg)}.art-orbit{width:135px;height:135px;background:radial-gradient(circle at 30% 30%,var(--tint),transparent);border:1px solid var(--tint);position:absolute;z-index:0;border-radius:50%;bottom:20px}.art-number{position:absolute;right:10px;top:15px;font-size:75px;font-weight:850;color:var(--tint);font-style:italic;z-index:0}.character-picker{display:flex;align-items:center;justify-content:space-between;gap:3px}.character-picker>div{text-align:center;min-width:0}.character-picker h3{font-size:19px;margin:0 0 5px;white-space:nowrap;letter-spacing:.5px}.character-picker p{font-size:10px;color:#9a9e95;margin:0;line-height:1.5}.cycle-button{width:25px;height:31px;flex-shrink:0;background:#eff1e9;border-radius:8px;font-size:23px;color:#919b89;display:grid;place-items:center;line-height:1}.cycle-button:hover{background:var(--tint);color:var(--player)}.character-dots{display:flex;gap:4px;justify-content:center;margin:17px 0}.character-dots i{width:4px;height:4px;border-radius:3px;background:#e1e4d9}.character-dots i.active{background:var(--player);width:14px}.ready-button{width:100%;border-radius:9px;padding:10px;display:flex;gap:7px;justify-content:center;align-items:center;background:#eef0e7;font-size:11px;font-weight:600;color:#859077}.ready-button svg{width:14px;height:14px}.is-ready .ready-button{background:var(--tint);color:var(--player)}.ready-button:hover{background:var(--player);color:white}.side-panel{background:#eaeede;border-radius:19px;padding:28px 25px 20px;position:relative;overflow:hidden}.side-number{font-size:69px;line-height:1;font-weight:850;letter-spacing:-5px;display:flex;align-items:baseline;gap:14px}.side-number>span{font-size:14px;font-weight:500;letter-spacing:1px}.side-checker{position:absolute;right:-15px;top:28px;width:113px;height:113px;transform:rotate(-13deg);background:conic-gradient(#d5dec5 25%,transparent 0 50%,#d5dec5 0 75%,transparent 0);background-size:25px 25px;opacity:.7;border-radius:8px;mask-image:linear-gradient(140deg,#000,transparent)}.side-panel h2{font-size:25px;line-height:1.65;letter-spacing:.4px;margin:20px 0 8px}.side-panel>p{font-size:11px;line-height:1.9;color:#8e9882;margin:0 0 30px}.feature-row{display:flex;gap:11px;align-items:center;margin-top:20px}.feature-row>span{font-size:20px;background:#e1e8d4;border:1px solid #d5dfc8;border-radius:9px;width:32px;height:32px;display:grid;place-items:center;color:#687f55;flex-shrink:0}.feature-row b{font-size:10px;font-weight:600}.feature-row p{font-size:9px;color:#929c87;margin:3px 0 0;white-space:nowrap}.side-note{border-top:1px solid #dce3d2;margin-top:25px;padding-top:17px;font-size:8px;color:#97a089;display:flex;align-items:center;gap:5px}.side-note i{height:4px;width:4px;border-radius:50%;background:#9cae85}.setup-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:16px;font-size:10px;color:#939c8c}.setup-bottom>div{display:flex;align-items:center;gap:7px}.setup-bottom svg{width:14px;height:14px}.text-button{background:none;font-size:10px;color:#7b8970;padding:8px}.text-button:hover{color:#293c2e}.small-chip{padding:4px 8px;background:#e8ecdf;border-radius:6px;color:#718561}.lobby-footer{display:flex;align-items:center;justify-content:space-between;margin-top:25px;padding:21px 0 24px;border-top:1px solid var(--line)}.footer-note{display:flex;gap:12px;align-items:center}.key-cap{height:36px;width:36px;border:1px solid #dce1d4;border-radius:10px;display:grid;place-items:center;font-size:24px;color:#87957e;box-shadow:0 3px 0 #e8ebe2}.footer-note b{font-size:11px}.footer-note p{font-size:10px;color:#9ca291;margin:4px 0 0}.primary-button{display:flex;align-items:center;justify-content:center;gap:30px;background:#c8ed87;border:1px solid #c3e681;border-radius:11px;padding:17px 27px;font-weight:700;font-size:13px;box-shadow:0 3px 0 #b6d77b}.primary-button:hover{background:#bce975;box-shadow:0 4px 12px #b5d48c40}.primary-button:disabled{opacity:.55;box-shadow:none}.page-bottom{font-size:8px;letter-spacing:1px;color:#a9b09f;display:flex;justify-content:space-between;padding:9px 0 17px}.page-bottom a:hover{color:#435c36}.stats{padding:13px 8px 0}.stats>div{display:flex;justify-content:space-between;align-items:center;margin:7px 0;gap:10px;font-size:9px;color:#959c8b}.stats>div>div{display:flex;gap:3px;flex:1;max-width:92px}.stats i{height:4px;flex:1;border-radius:2px;background:#e6eadd}.stats i.filled{background:var(--player)}.model-stamp{display:flex;justify-content:space-between;font-size:8px;border-top:1px solid #e8ece2;margin-top:12px;padding-top:10px;color:#a2aa98}.kart-stage{height:180px}.kart-stage>svg{height:180px}.map-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.map-card{border:1px solid #e1e5da;border-radius:15px;background:#fcfcf8;padding:0;text-align:left;overflow:hidden}.map-card.selected{border-color:#8ba66e;box-shadow:0 0 0 2px #b7cc9940}.map-art{position:relative;height:160px;background:#e4eade;overflow:hidden}.map-art svg{height:100%;width:100%;object-fit:cover}.map-num{position:absolute;left:13px;top:13px;font-size:10px;color:#ffffffbd;letter-spacing:1px}.map-check{position:absolute;right:10px;top:10px;color:#405b2b;background:#d5efaf;border-radius:50%;width:24px;height:24px;display:grid;place-items:center}.map-info{padding:19px 16px}.map-info>span{font-size:8px;letter-spacing:1.5px;color:#99a48a}.map-info h3{font-size:18px;margin:7px 0}.map-info p{font-size:10px;color:#929b8b;line-height:1.9;margin:0 0 15px}.map-info small{display:flex;justify-content:space-between;font-size:9px;color:#7d8e6b;border-top:1px solid #e7ebdf;padding-top:10px}.map-info small span{font-size:14px}.race-options{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:18px}.race-options>div{display:flex;align-items:center;gap:7px;font-size:11px;color:#8c9781}.race-options>div>span{margin-right:5px}.race-options>div button{font-size:10px;padding:7px 12px;border-radius:6px;background:#e9ede0}.race-options>div button.selected{background:#46603a;color:#fff}.focus-switch{display:flex;gap:8px;align-items:center;background:none;font-size:10px;text-align:left}.focus-switch small{display:block;color:#a1aa93;font-size:8px;margin-top:4px}.toggle{width:28px;height:17px;border-radius:10px;background:#d5dccb;position:relative}.toggle:after{content:'';width:11px;height:11px;position:absolute;top:3px;left:3px;border-radius:50%;background:white}.toggle.on{background:#789c52}.toggle.on:after{left:14px}.briefing{display:grid;grid-template-columns:1fr 1.25fr;gap:24px;background:#fafbf5;border:1px solid #e1e5d8;border-radius:17px;padding:20px}.briefing-track{overflow:hidden;border-radius:11px;background:#e8ede0;padding-bottom:18px}.briefing-track svg{width:100%;height:168px}.briefing-track>span{font-size:8px;letter-spacing:2px;display:block;margin:13px 15px 0;color:#8a9c7c}.briefing-track h3{margin:7px 15px 0;font-size:20px}.briefing-track small{font-size:10px;margin-left:8px;font-weight:400}.briefing-how h3{font-size:17px;margin:9px 0 23px}.briefing-how>div{display:flex;gap:12px;margin-top:14px}.briefing-how>div>span{font-size:10px;font-weight:700;color:#92a77b;padding-top:2px}.briefing-how p{font-size:10px;color:#9ca58f;line-height:1.8;margin:0}.briefing-how b{display:block;font-size:12px;color:#52634b;font-weight:600;margin-bottom:3px}.ready-roster{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:17px}.ready-roster>span{font-size:10px;display:flex;flex-wrap:wrap;gap:7px;align-items:center;border:1px solid #e0e5d5;padding:10px;border-radius:8px}.ready-roster i{font-style:normal;color:var(--player);font-size:9px;font-weight:700}.ready-roster small{font-size:8px;color:#9ca590;display:block;width:100%;padding-left:24px}.race-screen{position:fixed;inset:0;background:#202932;touch-action:none;user-select:none;overflow:hidden}#world-canvas{position:absolute;width:100%;height:100%;inset:0;display:block}.race-grid{position:absolute;inset:0;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:4px;background:transparent}.race-view{position:relative;min-width:0;min-height:0;border:2px solid #f0f3e9aa;overflow:hidden;pointer-events:none}.race-view>*{pointer-events:auto}.racer-identity{position:absolute;top:17px;left:17px;display:flex;gap:9px;align-items:center;color:#fff;background:#183029a6;backdrop-filter:blur(10px);padding:9px 13px 9px 9px;border-radius:11px;box-shadow:0 3px 20px #00000010}.racer-identity>span{width:35px;height:35px;border-radius:8px;display:grid;place-items:center;background:var(--player);color:#fff;font-size:16px;font-weight:800}.racer-identity b{display:block;font-size:12px;margin-bottom:5px}.racer-identity small{display:block;font-size:8px;letter-spacing:1px;color:#d4ddd1}.racer-identity .position{font-size:27px;margin-left:13px;display:flex;align-items:baseline;gap:3px;font-style:italic}.position small{font-size:9px}.eeg-hud{position:absolute;top:17px;right:17px;background:#f6fae8e8;backdrop-filter:blur(10px);color:#354c36;border:1px solid #ffffff88;width:162px;height:110px;border-radius:11px;padding:10px 12px;box-shadow:0 3px 20px #13291d12}.eeg-hud>div{display:flex;align-items:center;justify-content:space-between}.eeg-hud>div>span{font-size:9px;display:flex;gap:4px;align-items:center}.eeg-hud svg:not(.wave){width:13px;height:13px}.eeg-source{font-size:7px;color:#91a178;background:#e0e9cd;border-radius:4px;padding:3px 4px}.eeg-value{display:block;font-size:33px;font-weight:650;line-height:1.4;font-variant-numeric:tabular-nums}.eeg-value small{font-size:9px;color:#a6b19b;margin-left:4px;font-weight:400}.wave{width:100%;height:24px;overflow:visible}.wave path{stroke:#88ab5d;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.eeg-hud.no-data .eeg-source{color:#b19c7d;background:#efe8d9}.drive-hud{position:absolute;bottom:16px;left:17px;right:17px;display:flex;align-items:end;justify-content:space-between;gap:8px;color:white}.direction-pad{display:grid;grid-template-columns:66px 66px;grid-template-rows:60px 27px;gap:6px}.drive-button{color:white;background:#1e332ea6;border:1px solid #ffffff4a;backdrop-filter:blur(8px);border-radius:13px;font-weight:700;font-size:22px;touch-action:none;user-select:none}.drive-button.pressed{background:#ffffffbc;color:#263c30;transform:scale(.95)}.drift-button{grid-column:1/3;border-radius:6px;border:1px solid #ffffff30;color:white;background:#1d362e88;font-size:9px;letter-spacing:4px;touch-action:none}.drift-button.pressed{background:#f2cf73;color:#483521}.power-pad{display:flex;gap:8px}.power-pad .drive-button{width:64px;height:71px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;position:relative;overflow:hidden}.drive-button small{font-size:9px;font-weight:500;white-space:nowrap}.drive-button span{font-size:28px;line-height:1}.boost-button{border-color:#c7ec9880}.boost-button.charged{background:#d2ef9be8;color:#30472b;border-color:#e8ffc4}.item-button.available{background:#f2c56edb;color:#5b4725}.energy-bar{position:absolute;bottom:0;left:0;height:5px;background:#7daf4b;width:100%;transform-origin:left}.speed-display{display:flex;align-items:baseline;flex-wrap:wrap;max-width:115px;margin-bottom:0;text-shadow:0 2px 12px #16372366;padding:5px;pointer-events:none}.speed-display>b{font-size:37px;font-weight:750;font-style:italic;line-height:1.1}.speed-display>span{font-size:8px;padding-left:5px}.speed-display i{display:block;font-size:7px;font-style:normal;color:#edf5d4;margin-top:4px}.coin-count{font-size:11px;color:#fff7b9;width:100%;margin:4px 0;text-align:center}.race-toolbar{position:absolute;top:calc(50% - 20px);left:50%;transform:translateX(-50%);z-index:10;background:#eff3e4;display:flex;align-items:center;gap:5px;padding:5px 10px;border-radius:10px;border:1px solid #d9e0cd;box-shadow:0 4px 20px #0003}.race-clock{font-size:10px;letter-spacing:1px;font-variant-numeric:tabular-nums;padding:0 8px}.race-tool{background:none;border-radius:5px;padding:4px}.race-tool:hover{background:#d9e4ca}.race-tool svg{width:15px;height:15px}.race-message{position:absolute;top:36%;left:50%;transform:translateX(-50%);color:white;background:#283d3099;border-radius:8px;padding:7px 15px;font-size:15px;white-space:nowrap;pointer-events:none;font-weight:600}.race-message:empty{display:none}.countdown{position:absolute;top:40%;left:50%;transform:translate(-50%,-50%);font-size:67px;font-weight:900;font-style:italic;color:#e2ffb2;text-shadow:0 5px 0 #2b4539,0 7px 25px #1e452a60;pointer-events:none}.finished-banner{position:absolute;left:50%;top:43%;transform:translate(-50%,-50%);padding:18px 25px;background:#e5f3c8e8;border:1px solid #effcd6;border-radius:15px;text-align:center;white-space:nowrap;color:#2e4532;box-shadow:0 10px 30px #172c2333}.finished-banner b{font-size:30px;display:block;font-style:italic;font-weight:850;letter-spacing:3px}.finished-banner span{font-size:12px;display:block;margin-top:6px}.finished-banner small{font-size:9px;display:block;margin-top:9px;color:#8a9a78}.modal-backdrop{position:fixed;inset:0;background:#1c302b88;backdrop-filter:blur(9px);z-index:100;display:flex;align-items:center;justify-content:center;padding:20px}.modal{width:480px;max-height:90vh;overflow:auto;background:#f7f8f0;border:1px solid #fff;border-radius:23px;padding:38px;box-shadow:0 30px 100px #112a2933;position:relative}.modal h2{font-size:27px;margin:17px 0 12px}.modal>p{font-size:12px;color:#8c9782;margin:0 0 22px}.modal-close{position:absolute;right:15px;top:15px;background:none;padding:6px;border-radius:50%;color:#839574}.modal-close svg{width:17px;height:17px}.source-tabs{display:flex;background:#e8eddf;border-radius:9px;padding:4px;gap:4px;margin-top:23px}.source-tabs button{flex:1;background:none;border-radius:6px;font-size:11px;padding:11px}.source-tabs .active{background:#fcfff5;box-shadow:0 2px 5px #5c764314}.eeg-setup-note{background:#eef2e5;border-left:2px solid #a9c585;border-radius:3px;padding:13px;font-size:11px;line-height:1.8;color:#91a17e;margin:18px 0}.connection-label{font-size:11px;color:#7f8e72;display:block}.connection-label input{display:block;width:100%;border:1px solid #d9e3cd;background:#fffef8;padding:12px;border-radius:8px;outline-color:#a4bf83;margin-top:7px;color:#4b6243;font-size:12px}.modal-actions{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap}.modal-actions>*{flex:1;padding:13px;font-size:11px}.secondary-button{border:1px solid #dbe4cd;border-radius:10px;background:#eef2e5;padding:15px 25px;font-size:12px;font-weight:600;display:flex;align-items:center;justify-content:center}.secondary-button:hover{background:#e2eacf}.doc-link{display:block;font-size:10px;margin-top:20px;color:#7e906c;text-decoration:underline;text-underline-offset:4px}#connection-status{font-size:11px;color:#839873;margin-top:15px}.pause-art{font-size:55px;line-height:1;margin-bottom:20px;color:#779461;font-weight:800}.result-main{text-align:center;padding:35px 0}.result-main>.eyebrow{justify-content:center}.result-main>p{font-size:12px;color:#939e86}.result-grid{max-width:1100px;display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin:42px auto 25px;align-items:center}.result-card{background:#fcfdf6;border:1px solid #e1e7d6;border-radius:18px;padding:21px 20px 23px}.result-card.winner{transform:translateY(-10px);background:#ecf2dc;border-color:#b0c48c;box-shadow:0 10px 40px #d0debb70}.result-rank{font-size:11px;letter-spacing:2px;color:#94a280;font-weight:700}.winner .result-rank{color:#768e42}.result-avatar{height:170px}.result-avatar svg{width:100%;height:100%}.result-card .player-tag{justify-content:center;color:var(--player);font-size:8px}.result-card h2{font-size:21px;margin:10px 0}.result-time{font-size:26px;letter-spacing:1px;font-weight:500}.result-details{display:flex;flex-direction:column;gap:12px;border-top:1px solid #e2e9d6;margin-top:20px;padding-top:17px}.result-details>span{display:flex;justify-content:space-between;font-size:10px;color:#94a087}.result-details b{color:#637752;font-weight:600}.result-source{font-size:10px!important}.result-actions{display:flex;justify-content:center;gap:15px;margin-top:25px}.result-actions .primary-button{min-width:190px}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);background:#2b3e33;color:#f1f7e8;border-radius:10px;padding:13px 22px;font-size:12px;box-shadow:0 6px 30px #13281b30;z-index:300;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:90%;text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:1600px){.lobby{padding:0 65px}.lobby-main{padding-top:48px}.intro{margin-bottom:45px}.workspace-layout{grid-template-columns:minmax(0,1fr) 285px;gap:35px}.art-stage,.art-stage>svg{height:240px}.player-card{padding:20px 17px 18px}.character-picker h3{font-size:23px}.character-picker p{font-size:11px}.card-top{padding:0 4px}.side-panel{padding:32px}.side-panel>p{font-size:12px}.feature-row b{font-size:11px}.feature-row p{font-size:10px}.side-panel h2{font-size:29px}.lobby-footer{margin-top:30px}.map-art{height:205px}.map-info{padding:25px}.briefing-track svg{height:220px}.briefing-how>div{margin-top:20px}.briefing-how p{font-size:12px}.briefing-how b{font-size:13px}}
@media(max-width:1250px){.lobby{padding:0 28px}.workspace-layout{grid-template-columns:minmax(0,1fr) 216px;gap:21px}.side-panel{padding:25px 18px}.feature-row{gap:7px}.feature-row b{font-size:9px}.feature-row p{font-size:8px}.side-panel h2{font-size:23px}.side-note{font-size:7px}.player-grid{gap:10px}.art-stage,.art-stage>svg{height:170px}.player-card{padding:13px 10px}.player-tag{font-size:8px;letter-spacing:1px}.character-picker h3{font-size:17px}.character-picker p{font-size:9px}.cycle-button{width:22px;height:28px}.room-card{min-width:280px;padding:16px}.section-sub{font-size:10px}.step-bar{gap:12px}.briefing{gap:15px;padding:15px}.briefing-how h3{font-size:15px}.map-art{height:135px}.map-info{padding:15px 12px}.map-info h3{font-size:16px}.map-info p{font-size:9px}.section-meta{font-size:9px}}
@media(max-width:1020px){.side-panel{display:none}.workspace-layout{display:block}.topnav{display:none}.intro h1{font-size:38px}.room-card{min-width:250px}.intro p{font-size:11px}.room-card p{font-size:9px}.section-sub{display:none}.player-grid{gap:14px}.art-stage,.art-stage>svg{height:195px}.topbar{height:90px}.intro{margin-bottom:25px}.lobby-main{padding-top:30px}.result-grid{gap:12px}.result-card{padding:16px 13px}.result-avatar{height:145px}.eeg-hud{width:143px;height:101px;padding:9px 10px}.eeg-value{font-size:29px}.direction-pad{grid-template-columns:55px 55px;grid-template-rows:54px 25px}.power-pad .drive-button{width:54px;height:65px}.speed-display>b{font-size:31px}.speed-display{max-width:100px}.drive-hud{left:12px;right:12px;bottom:12px}.racer-identity{left:12px;top:12px}.eeg-hud{right:12px;top:12px}}
@media(max-height:720px) and (min-width:1020px){.topbar{height:80px}.nav-active:after{bottom:-30px}.lobby-main{padding-top:22px}.intro{margin-bottom:20px}h1{font-size:37px;margin-top:8px;margin-bottom:8px}.step-bar{height:46px;margin-bottom:19px}.section-heading{margin-bottom:14px}.art-stage,.art-stage>svg{height:155px}.player-card{padding-top:13px;padding-bottom:11px}.character-dots{margin:13px 0}.side-panel{padding-top:21px}.side-number{font-size:58px}.side-panel h2{margin-top:15px;font-size:23px}.side-panel>p{margin-bottom:18px}.feature-row{margin-top:15px}.side-note{margin-top:19px}.lobby-footer{margin-top:17px;padding:16px 0}.page-bottom{padding-bottom:10px}.map-art{height:133px}.map-info{padding:15px}.briefing-track svg{height:137px}.briefing-how>div{margin-top:10px}.briefing-how h3{margin-bottom:16px}.result-main{padding-top:23px}.result-grid{margin-top:26px}.result-avatar{height:130px}.result-card{padding:16px}.result-details{gap:9px}.result-time{font-size:23px}.result-actions{margin-top:17px}}
@media(max-width:700px){.lobby{padding:0 16px}.topbar{height:78px;gap:10px}.brand{font-size:17px}.brand-symbol{width:35px;height:35px;font-size:29px;line-height:36px}.brand small{font-size:6px;letter-spacing:2px}.top-actions{gap:3px}.status-pill{padding:7px 9px;font-size:8px}.icon-button{width:31px;height:31px}.intro{margin-bottom:22px}.intro h1{font-size:32px}.intro p{font-size:10px;max-width:310px}.eyebrow{font-size:8px;letter-spacing:1px}.room-card{display:none}.player-grid{grid-template-columns:repeat(2,1fr);gap:13px}.art-stage,.art-stage>svg{height:160px}.section-meta{font-size:8px}.step-bar{gap:9px}.step-bar button{font-size:9px;gap:5px}.step-num{width:20px;height:20px;font-size:8px}.step-bar{margin-bottom:20px}.footer-note p{display:none}.footer-note b{font-size:10px}.primary-button{padding:14px 18px;font-size:11px;gap:18px}.key-cap{display:none}.page-bottom>span:nth-child(2){display:none}.page-bottom{font-size:6px}.map-grid{grid-template-columns:1fr}.map-card{display:flex}.map-art{width:43%;height:145px;flex-shrink:0}.map-info{padding:14px;flex:1}.race-options{align-items:start;flex-direction:column;gap:15px}.briefing{grid-template-columns:1fr}.briefing-track{display:none}.ready-roster{grid-template-columns:repeat(2,1fr)}.result-grid{grid-template-columns:repeat(2,1fr);gap:12px}.result-card.winner{transform:none}.result-card{padding:15px}.result-avatar{height:130px}.result-time{font-size:22px}.result-rank{font-size:9px}.result-card h2{font-size:19px}.result-details{font-size:8px}.racer-identity{padding:6px;gap:5px;left:6px;top:6px;border-radius:7px}.racer-identity>span{width:25px;height:25px;font-size:10px;border-radius:5px}.racer-identity b{font-size:8px}.racer-identity small{font-size:6px;letter-spacing:0}.racer-identity .position{font-size:19px;margin-left:4px}.position small{font-size:6px}.eeg-hud{top:56px;right:6px;width:88px;height:78px;padding:6px}.eeg-hud>div>span{font-size:7px}.eeg-hud svg:not(.wave){display:none}.eeg-source{font-size:5px;padding:2px}.eeg-value{font-size:24px}.eeg-value small{font-size:6px}.wave{height:16px}.drive-hud{left:6px;right:6px;bottom:7px;gap:2px;flex-wrap:wrap}.direction-pad{grid-template-columns:34px 34px;grid-template-rows:44px 23px;gap:4px}.drive-button{font-size:14px;border-radius:8px}.power-pad{gap:4px}.power-pad .drive-button{width:35px;height:53px}.drive-button span{font-size:21px}.drive-button small{font-size:6px}.drift-button{font-size:7px;letter-spacing:2px}.speed-display{position:absolute;bottom:76px;left:4px;max-width:100px}.speed-display>b{font-size:24px}.speed-display>span{font-size:6px}.speed-display i{font-size:5px}.coin-count{width:auto;margin-left:7px;font-size:8px}.race-message{font-size:9px;padding:5px 9px;top:47%}.countdown{font-size:39px}.finished-banner{padding:12px 13px}.finished-banner b{font-size:21px}.finished-banner span{font-size:8px}.finished-banner small{font-size:6px}}

@media(max-height:760px) and (min-width:1020px){.topbar{height:70px}.nav-active:after{bottom:-25px}.lobby-main{padding-top:16px}.intro{margin-bottom:15px}.intro h1{font-size:34px;line-height:1.3;margin:7px 0 8px}.intro p{font-size:11px}.eyebrow{font-size:8px}.room-card{padding:15px 20px}.step-bar{height:41px;margin-bottom:16px}.step-bar button{padding-bottom:14px}.section-heading{margin-bottom:13px}.section-heading h2{font-size:15px}.art-stage,.art-stage>svg{height:132px}.player-card{padding:11px 12px}.card-top .seat-icon{width:20px;height:20px}.character-picker h3{font-size:18px}.character-dots{margin:10px 0}.ready-button{padding:9px}.side-panel{padding:22px 22px 16px}.side-number{font-size:53px}.side-panel h2{font-size:22px;line-height:1.55;margin:17px 0 8px}.side-panel>p{font-size:10px;margin-bottom:17px}.feature-row{margin-top:16px}.side-note{margin-top:21px;padding-top:15px}.setup-bottom{padding-top:11px}.lobby-footer{margin-top:14px;padding:14px 0}.primary-button{padding:14px 24px}.page-bottom{padding:4px 0 10px}.stats{padding-top:6px}.stats>div{margin:6px 0}.model-stamp{margin-top:8px;padding-top:8px}.map-art{height:118px}.map-info{padding:14px}.map-info p{margin-bottom:10px}.race-options{margin-top:14px}.briefing{padding:16px}.briefing-track svg{height:131px}.briefing-how h3{font-size:15px;margin:5px 0 17px}.briefing-how>div{margin-top:10px}.ready-roster{margin-top:13px}.result-main{padding-top:20px}.result-avatar{height:127px}}
/* Browser Bluetooth settings */
.modal-backdrop[data-type="eeg"] .modal{width:580px;max-width:100%;padding:32px}
.eeg-settings .eeg-intro{font-size:12px;color:#748168;margin:0 0 18px}
.eeg-methods{display:flex;gap:10px;margin:18px 0 14px}
.eeg-methods button{flex:1;padding:12px;border:1px solid #dbe4cd;border-radius:9px;font-size:12px;background:#f5f8ee}
.eeg-methods button.active{background:#dcedc6;border-color:#9dbb7b;color:#3c552e;font-weight:700}
.ble-help{font-size:12px;color:#65775a;margin:0 0 10px}
.ble-support{font-size:10px;line-height:1.8;color:#728265;background:#edf2e5;border-radius:7px;padding:9px 11px;margin-bottom:14px}
.ble-support.unavailable{color:#94642c;background:#fff0db}
.ble-players{display:grid;gap:8px}
.ble-player{display:grid;grid-template-columns:35px minmax(0,1fr) auto;gap:11px;align-items:center;padding:12px;background:#fcfdf7;border:1px solid #e0e8d5;border-radius:11px}
.ble-seat{display:grid;place-items:center;width:35px;height:35px;border-radius:9px;background:var(--player);color:#fff;font-size:13px;font-weight:800}
.ble-player-info{min-width:0}
.ble-player-info b,.ble-player-info span,.ble-player-info small{display:block;overflow-wrap:anywhere}
.ble-name{font-size:12px;font-weight:600;color:#4c6241}
.ble-state{font-size:10px;color:#7e8f70;margin-top:4px;line-height:1.5}
.ble-reading{font-size:10px;font-variant-numeric:tabular-nums;color:#687d59;margin-top:4px}
.ble-player[data-kind="error"] .ble-state{color:#ae4d3f}
.ble-player-actions{display:flex;flex-direction:column;gap:4px;min-width:76px}
.ble-player-actions button{border-radius:6px;font-size:10px;padding:8px 10px;min-height:32px}
.ble-search{background:#dcefc7;color:#405a2f}
.ble-search:hover{background:#cee7b2}
.ble-disconnect{background:transparent;color:#7c8b71}
.ble-options{margin-top:17px;border:1px solid #dfe6d5;border-radius:9px;padding:12px}
.ble-options summary{cursor:pointer;font-size:11px;color:#657951;line-height:1.8}
.ble-options summary span{color:#8c9a7d;font-size:10px;margin-left:5px}
.ble-options summary:focus-visible,.eeg-settings select:focus-visible{outline:3px solid #75aa51;outline-offset:3px}
.ble-option-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:13px}
.eeg-settings .connection-label select{display:block;width:100%;min-width:0;font:inherit;font-size:11px;color:#4b6243;border:1px solid #d9e3cd;background:#fffef8;padding:10px 7px;border-radius:7px;margin-top:7px}
.ble-custom .connection-label{margin-top:12px}
.ble-options p,.eeg-data-note{font-size:10px;color:#7e8b71;line-height:1.8;margin:12px 0 0}
.eeg-settings #connection-status{line-height:1.8;overflow-wrap:anywhere}
.eeg-settings #connection-status[data-kind="error"]{color:#aa4c3e}
.eeg-settings #connection-status[data-kind="warning"]{color:#94692c}
.eeg-settings #connection-status[data-kind="success"]{color:#527931}
@media(max-width:560px){.modal-backdrop[data-type="eeg"]{padding:12px}.modal-backdrop[data-type="eeg"] .modal{padding:26px 18px;max-height:94vh}.eeg-settings h2{font-size:22px}.ble-player{gap:8px;padding:10px;grid-template-columns:30px minmax(0,1fr) auto}.ble-seat{width:30px;height:30px}.ble-player-actions{min-width:70px}.ble-player-actions button{padding:8px}.ble-option-grid{grid-template-columns:1fr}.ble-options summary span{display:block;margin-left:15px}}
