@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;0,900;1,800;1,900&family=DM+Sans:wght@400;500;600;650;700;750;800;900&family=Lilita+One&family=Nunito:wght@500;600;700;800;900;1000&display=swap');
:root{--ink:#153d42;--paper:#fff9e9;--orange:#ff754d;--yellow:#f8d573;--teal:#58c8bd;--muted:#688182;--line:rgba(21,61,66,.14);font-family:'DM Sans',sans-serif;color:var(--ink);font-synthesis:none;color-scheme:light}
*{box-sizing:border-box}body{margin:0;overflow:hidden;background:#67c9c2}button,input,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #254fce;outline-offset:4px}button{touch-action:manipulation}button svg{pointer-events:none}#world,.vignette{position:fixed;inset:0}#scene{display:block;width:100%;height:100%;outline:0}.vignette{pointer-events:none;background:linear-gradient(90deg,rgba(239,246,218,.46),transparent 57%);transition:opacity .5s}.topbar{position:fixed;inset:0 0 auto;height:105px;padding:25px 44px;display:flex;align-items:center;gap:44px;z-index:10}.brand{border:0;background:none;display:flex;gap:11px;align-items:center;text-align:left;font-size:18px;font-weight:1000;line-height:.9;letter-spacing:-.8px;padding:0}.brand-mark{width:47px;height:45px;background:var(--ink);color:var(--paper);border-radius:14px 14px 18px 18px;display:flex;align-items:center;justify-content:center;font-size:34px;letter-spacing:-8px;padding-right:6px;transform:rotate(-7deg);font-weight:900}.brand-mark span{color:var(--orange);font-size:29px;transform:translateY(3px)}.brand-dot{font-size:9px;vertical-align:top;margin-left:3px}.season{font-size:10px;letter-spacing:1.6px;font-weight:800;display:flex;gap:8px;align-items:center}.season i{height:6px;width:6px;background:var(--ink);border-radius:50%}.nav-actions{margin-left:auto;display:flex;gap:23px;align-items:center}.nav-help{border:0;background:none;font-size:12px;font-weight:800;padding:10px 0}.nav-help span{margin-left:12px}.icon-button{width:39px;height:39px;border-radius:50%;border:1px solid rgba(21,61,66,.25);background:rgba(255,249,233,.45);position:relative;font-size:21px}.sound-slash{position:absolute;width:22px;height:2px;background:var(--ink);transform:rotate(-48deg);left:8px;top:18px}#app{position:fixed;inset:105px 44px 62px;pointer-events:none}#app>*{pointer-events:auto}h1,h2,h3,p{margin:0}button{transition:transform .14s,background .14s,box-shadow .14s}button:active{transform:translateY(2px)}.garage{height:100%;display:flex;flex-direction:column;justify-content:center;width:370px;gap:24px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:10px;font-weight:900;display:flex;align-items:center;gap:9px}.eyebrow::before{content:'';width:21px;height:2px;background:currentColor}.headline{font-family:'Barlow Condensed','Arial Narrow',Impact,sans-serif;font-size:clamp(56px,6.1vw,91px);font-weight:900;line-height:.83;letter-spacing:-1px;font-style:italic;text-transform:uppercase;margin-top:13px}.headline em{font:inherit;color:var(--orange);-webkit-text-stroke:1px var(--ink);text-shadow:2px 3px 0 var(--ink)}.intro{font-size:12px;line-height:1.6;margin-top:16px;font-weight:550}.customizer{background:rgba(255,249,233,.95);border:1px solid rgba(255,255,255,.5);padding:20px 22px 18px;border-radius:19px;box-shadow:0 8px 0 rgba(21,61,66,.05),0 14px 36px rgba(16,83,77,.10);backdrop-filter:blur(14px)}.card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.card-top h2{font-size:14px;letter-spacing:-.3px}.card-top span{font-size:9px;letter-spacing:1.5px;font-weight:800;color:var(--muted)}.name-row{display:flex;border-bottom:1px solid var(--line);padding-bottom:12px;gap:12px;align-items:center}.label{font-size:9px;letter-spacing:1.4px;font-weight:800;text-transform:uppercase;color:var(--muted)}.name-row input{border:0;background:none;color:var(--ink);min-width:0;flex:1;outline:0;font-weight:800;text-align:right;font-size:14px;padding:3px}.name-row input::placeholder{color:#8aa19b;font-weight:500}.pilot-options{display:flex;gap:8px;margin:13px 0}.face-option{border:1.5px solid var(--line);background:#f0eddf;border-radius:12px;flex:1;height:61px;position:relative;overflow:hidden}.face-option svg{height:60px;width:62px;margin-top:6px}.face-option.selected{border-color:var(--ink);background:#f3d787;box-shadow:0 3px 0 var(--ink)}.face-option.selected::after{content:'✓';position:absolute;right:5px;top:3px;font-size:11px;font-weight:900}.colors-row{display:flex;gap:8px;align-items:center;margin-bottom:13px}.colors-row .label{margin-right:auto}.swatch{width:23px;height:23px;border-radius:50%;border:2px solid transparent;background:var(--swatch);box-shadow:inset 0 -3px 0 #0002;position:relative;padding:0}.swatch.selected{outline:2px solid var(--ink);outline-offset:3px}.swatch.selected::after{content:'✓';font-size:13px;font-weight:900;color:#153d42}.accessories{display:flex;gap:8px}.chip{border:1px solid var(--line);background:transparent;border-radius:20px;padding:5px 10px;font-size:9px;font-weight:750}.chip[aria-pressed=true]{background:var(--ink);color:var(--paper);border-color:var(--ink)}.play-actions{display:grid;gap:9px;margin-top:16px}.button{border:0;border-radius:11px;padding:14px 18px;font-size:12px;font-weight:850;display:flex;align-items:center;justify-content:center;gap:12px;min-height:46px}.button.primary{background:var(--orange);box-shadow:0 4px 0 #c45232;color:#173d3b}.button.primary:hover{background:#ff8c63;transform:translateY(-1px);box-shadow:0 5px 0 #c45232}.button.secondary{background:var(--ink);color:var(--paper);box-shadow:0 3px 0 #092c30}.button.light{background:var(--paper);border:1px solid var(--line)}.button.ghost{background:transparent;border:1px solid rgba(21,61,66,.3)}.button .arrow{margin-left:auto;font-size:18px;font-weight:500}.button .button-icon{font-size:16px}.join-link{border:0;background:none;font-size:10px;font-weight:700;text-decoration:underline;text-underline-offset:3px;justify-self:center;padding:5px 10px 0}.garage-note{display:flex;gap:7px;align-items:center;font-size:9px;color:var(--ink);font-weight:600;justify-content:center;margin-top:-7px}.status-dot{display:inline-block;width:5px;height:5px;background:#2f937d;border-radius:50%}.hero-caption{position:absolute;right:12%;bottom:10%;pointer-events:none!important;display:flex;flex-direction:column;gap:7px;align-items:center;transform:rotate(-5deg)}.hero-caption .tag{font-size:9px;letter-spacing:2px;background:var(--ink);color:var(--paper);padding:6px 9px;border-radius:4px}.hero-caption strong{font-family:'Barlow Condensed',Impact,sans-serif;font-size:44px;font-weight:800;font-style:italic;text-transform:uppercase;line-height:1}.hero-caption small{font-size:10px;font-weight:600}.arena-stamp{position:absolute;right:5px;top:18px;width:103px;height:103px;border-radius:50%;border:1px solid rgba(21,61,66,.25);display:flex;flex-direction:column;justify-content:center;align-items:center;transform:rotate(12deg);pointer-events:none!important}.arena-stamp span{font-size:8px;letter-spacing:2px;font-weight:800}.arena-stamp b{font-size:32px;line-height:1.2}.arena-stamp small{font-size:8px;letter-spacing:1px;font-weight:700}.controls-strip{position:absolute;bottom:0;left:46%;display:flex;align-items:center;gap:22px;pointer-events:none!important}.control-tip{display:flex;align-items:center;gap:9px;font-size:9px;font-weight:750}.keys{display:inline-flex;gap:3px}.key{height:22px;min-width:22px;border:1px solid rgba(21,61,66,.35);box-shadow:0 2px 0 rgba(21,61,66,.12);border-radius:5px;padding:3px 5px;display:inline-flex;align-items:center;justify-content:center;font-size:9px;font-weight:900;background:rgba(255,249,233,.45)}#footer{position:fixed;left:44px;right:44px;bottom:22px;display:flex;justify-content:space-between;font-size:8px;font-weight:800;letter-spacing:1.7px;pointer-events:none}.footer-right{display:flex;gap:19px;align-items:center}.tiny-star{font-size:24px;line-height:10px}#loading{position:fixed;inset:0;background:var(--paper);z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:opacity .5s}#loading.hidden{opacity:0;pointer-events:none}.loading-car{background:var(--orange);font-weight:1000;font-size:42px;letter-spacing:-5px;border-radius:26px;padding:15px 20px 20px 16px;animation:bob 1s infinite alternate}#loading h2{margin:24px 0 9px;font-size:20px}#loading p{font-size:12px;color:var(--muted)}@keyframes bob{to{transform:translateY(-10px) rotate(-7deg)}}#toast{position:fixed;bottom:70px;left:50%;transform:translate(-50%,15px);background:var(--ink);color:var(--paper);border-radius:13px;padding:13px 20px;max-width:90vw;font-size:12px;z-index:150;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;text-align:center;box-shadow:0 5px 20px #0002}#toast.visible{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid #fff8;border-radius:25px;background:var(--paper);color:var(--ink);padding:30px;max-width:470px;width:calc(100% - 36px);box-shadow:0 30px 100px #082c3650}dialog::backdrop{background:#123e4566;backdrop-filter:blur(8px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.dialog-head h2{font-family:'Barlow Condensed',Impact,sans-serif;font-size:36px;text-transform:uppercase;font-style:italic;line-height:1}.close{border:1px solid var(--line);background:none;width:30px;height:30px;border-radius:50%;font-size:20px;display:flex;align-items:center;justify-content:center}.help-steps{display:grid;gap:18px}.help-step{display:flex;gap:14px;align-items:flex-start}.step-number{background:var(--yellow);border-radius:9px;min-width:33px;height:33px;display:flex;align-items:center;justify-content:center;font-weight:900}.help-step h3{font-size:13px;margin-bottom:4px}.help-step p{font-size:12px;line-height:1.6;color:var(--muted)}.help-controls{background:#e9e9d9;border-radius:12px;padding:16px;font-size:11px;line-height:2;margin:20px 0}.dialog-input{width:100%;padding:17px;border:1.5px solid var(--line);border-radius:12px;background:#fffdfa;font-size:25px;font-weight:800;letter-spacing:8px;text-align:center;text-transform:uppercase;color:var(--ink);margin-bottom:14px}.dialog-body{font-size:12px;color:var(--muted);line-height:1.7;margin-bottom:18px}.dialog-full{width:100%;margin-top:12px}.modal-error{min-height:18px;color:#bc3c2c;font-size:11px;margin-top:14px}.room-panel{position:absolute;left:0;top:50%;transform:translateY(-50%);width:320px;background:rgba(255,249,233,.96);border-radius:22px;padding:25px;box-shadow:0 18px 50px #1855501a;backdrop-filter:blur(18px)}.room-panel .eyebrow{font-size:9px}.room-panel h1{font-family:'Barlow Condensed',Impact,sans-serif;font-size:49px;line-height:1;font-style:italic;text-transform:uppercase;margin:10px 0 7px}.room-description{font-size:11px;line-height:1.6;color:var(--muted)}.room-code{display:flex;align-items:center;justify-content:space-between;margin:20px 0;padding:13px 14px;background:#ebeada;border-radius:12px}.room-code span{font-size:8px;letter-spacing:1px;font-weight:800}.room-code strong{font-size:25px;letter-spacing:5px}.copy-small{border:0;background:none;font-size:19px;padding:0}.player-list{display:grid;gap:7px;margin:17px 0}.player-row{display:flex;gap:10px;align-items:center;min-height:42px;border-radius:11px;background:#eeeddf;padding:4px 9px}.player-avatar{height:35px;width:35px;background:var(--player-color);border-radius:10px;overflow:hidden;flex-shrink:0}.player-avatar svg{width:35px;height:42px}.player-row strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-row small{font-size:8px;color:var(--muted);margin-left:auto;font-weight:700;white-space:nowrap}.player-row.empty{border:1px dashed #b9c9ba;background:none;color:#94a99a;font-size:10px;justify-content:center;height:38px}.room-panel .button{width:100%;margin-top:9px}.room-bottom{font-size:9px;line-height:1.5;color:var(--muted);text-align:center;margin-top:12px}.back-button{border:0;background:rgba(255,249,233,.7);border-radius:30px;padding:10px 15px;font-size:10px;font-weight:800;display:flex;align-items:center;gap:10px}.room-exit{position:absolute;top:0;left:0}.bots-setting{display:flex;align-items:center;justify-content:space-between;margin:15px 0;font-size:10px;font-weight:650}.bots-setting select{border:1px solid var(--line);border-radius:8px;padding:6px 9px;background:#fff8e8;color:var(--ink);font-size:11px}.arena-label{position:absolute;right:2%;bottom:12%;display:flex;align-items:center;gap:14px;transform:rotate(-5deg);pointer-events:none!important}.arena-label .number{font-family:'Barlow Condensed',Impact,sans-serif;font-size:70px;font-weight:800;border-right:1px solid #153d4244;padding-right:15px}.arena-label strong{font-size:19px;font-weight:900;line-height:1;display:block}.arena-label small{font-size:8px;letter-spacing:2px;font-weight:750}.match-top{position:absolute;top:0;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:15px;background:var(--paper);border-radius:18px;padding:11px 20px;box-shadow:0 5px 0 #153d4212;white-space:nowrap}.round-tag{border-right:1px solid var(--line);padding-right:18px}.round-tag span{display:block;font-size:8px;font-weight:800;letter-spacing:2px}.round-tag strong{font-family:'Barlow Condensed',Impact,sans-serif;font-size:29px;font-style:italic;line-height:1}.phase-title{font-size:13px;font-weight:850}.timer{margin-left:10px;background:var(--orange);border-radius:50%;width:38px;height:38px;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:900}.timer.urgent{animation:pulse .5s infinite alternate}@keyframes pulse{to{background:#e84436;transform:scale(1.05)}}.match-roster{position:absolute;left:0;top:75px;width:151px;display:grid;gap:6px}.match-player{border-radius:12px;background:rgba(255,249,233,.9);padding:7px;display:flex;gap:7px;align-items:center;font-size:10px;font-weight:800;box-shadow:0 3px 0 #153d4208;backdrop-filter:blur(8px)}.match-player .player-avatar{width:28px;height:28px;border-radius:8px}.match-player .player-avatar svg{width:28px;height:34px}.match-player .p-name{max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.match-player .p-status{margin-left:auto;font-size:10px}.match-player.eliminated{opacity:.48;filter:grayscale(.7)}.match-player.self{outline:1.5px solid var(--ink)}.match-controls{position:absolute;bottom:0;left:50%;transform:translateX(-50%);background:var(--paper);border-radius:20px;padding:17px 22px;width:500px;box-shadow:0 6px 0 #153d4210;display:flex;align-items:center;gap:22px}.aim-control{display:flex;align-items:center;gap:12px}.direction-pad{width:67px;height:67px;display:grid;grid-template:repeat(3,1fr)/repeat(3,1fr);gap:2px;position:relative}.direction-pad button{padding:0;border:1px solid var(--line);background:#f0eedf;border-radius:5px;font-size:13px;font-weight:800;display:flex;justify-content:center;align-items:center}.direction-pad button:nth-child(1){grid-area:1/2}.direction-pad button:nth-child(2){grid-area:2/1}.direction-pad button:nth-child(3){grid-area:2/3}.direction-pad button:nth-child(4){grid-area:3/2}.pad-center{position:absolute;left:29px;top:30px;width:9px;height:9px;border-radius:50%;background:var(--orange);pointer-events:none}.control-meta span{font-size:8px;letter-spacing:1px;font-weight:800;display:block;margin-bottom:6px}.control-meta small{font-size:9px;color:var(--muted)}.power-control{flex:1;min-width:100px}.power-head{display:flex;justify-content:space-between;font-size:8px;letter-spacing:1px;font-weight:800}.power-head strong{font-size:15px;letter-spacing:-.5px}.power-control input{width:100%;accent-color:var(--orange);height:16px;margin:7px 0 2px;cursor:pointer}.power-control small{font-size:8px;color:var(--muted)}.ready-button{min-width:115px;min-height:62px;border:0;background:var(--orange);border-radius:12px;font-size:13px;font-weight:900;box-shadow:0 3px 0 #ca5736;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px}.ready-button small{font-size:8px;font-weight:750;letter-spacing:1px}.ready-button.waiting{background:var(--ink);box-shadow:0 3px 0 #082d32;color:var(--paper)}.match-hint{position:absolute;bottom:113px;left:50%;transform:translateX(-50%);font-size:11px;font-weight:700;background:#fff9e9c9;padding:8px 13px;border-radius:20px;white-space:nowrap;pointer-events:none!important}.spectate{position:absolute;bottom:5%;left:50%;transform:translateX(-50%);background:var(--paper);padding:18px 30px;border-radius:16px;text-align:center;box-shadow:0 5px 0 #153d4211}.spectate strong{font-size:17px;display:block;margin-bottom:5px}.spectate span{font-size:11px;color:var(--muted)}.finish-panel{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);text-align:center;background:#fff9e9f2;padding:28px 35px 30px;border-radius:25px;width:340px;box-shadow:0 20px 90px #153d4233;backdrop-filter:blur(20px)}.trophy{font-size:49px;display:block;margin-bottom:12px}.finish-panel .eyebrow{justify-content:center}.finish-panel h1{font-family:'Barlow Condensed',Impact,sans-serif;font-size:57px;font-style:italic;text-transform:uppercase;line-height:.95;margin:14px 0}.finish-panel p{font-size:12px;color:var(--muted);line-height:1.6;margin:12px 0 23px}.finish-panel .button{width:100%;margin-top:9px}.scoreboard{margin:18px 0;text-align:left}.score-row{display:flex;justify-content:space-between;font-size:11px;border-top:1px solid var(--line);padding:8px 0}.room-connection{position:absolute;right:0;top:0;background:#fff9e9ad;font-size:9px;font-weight:700;padding:9px 12px;border-radius:20px}.fatal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:var(--paper);z-index:99;padding:30px}.fatal>div{max-width:450px}.fatal h1{font-size:32px;margin-bottom:15px}.fatal p{font-size:14px;line-height:1.7;margin-bottom:20px}.faded{opacity:.5}.connection-warning{position:fixed;top:105px;left:50%;transform:translateX(-50%);padding:8px 15px;border-radius:20px;background:#ffe3a3;font-size:11px;z-index:20}body[data-mode=game] .season{display:none}body[data-mode=game] .vignette{opacity:0}
@media(min-width:1600px){.garage{width:415px;gap:30px}.customizer{padding:24px 28px}.face-option{height:70px}.face-option svg{height:69px;width:69px}.headline{font-size:109px}.intro{font-size:14px}.button{font-size:13px;min-height:49px}.topbar{padding:30px 55px}#app{left:55px;right:55px}.hero-caption{right:15%;bottom:13%}.hero-caption strong{font-size:56px}.controls-strip{left:50%}}
@media(max-height:850px) and (min-width:761px){.topbar{height:85px;padding-top:20px;padding-bottom:20px}#app{top:85px;bottom:50px}.garage{gap:18px;width:337px}.headline{font-size:67px}.intro{margin-top:12px;font-size:11px}.customizer{padding:15px 18px}.card-top{margin-bottom:9px}.pilot-options{margin:10px 0}.face-option{height:51px}.face-option svg{height:52px;width:54px}.play-actions{margin-top:13px;gap:8px}.button{padding:11px 15px;min-height:41px}.colors-row{margin-bottom:10px}.name-row{padding-bottom:9px}.garage-note{font-size:8px}.hero-caption{bottom:10%}.room-panel{padding:20px}.player-list{gap:5px;margin:14px 0}.room-code{margin:15px 0}.room-panel h1{font-size:43px}}
@media(max-height:700px) and (min-width:761px){.garage{gap:14px;width:310px}.headline{font-size:52px}.intro{display:none}.customizer{padding:14px 17px}.face-option{height:43px}.face-option svg{height:44px;width:46px}.colors-row{margin-bottom:7px}.chip{padding:4px 8px}.garage-note{display:none}.controls-strip{left:auto;right:0;gap:12px}.hero-caption{bottom:12%}.room-panel{width:290px}.room-panel h1{font-size:39px}.room-description{font-size:10px}.player-row{min-height:34px}.player-row.empty{height:29px}.player-avatar{height:30px;width:30px}.player-avatar svg{width:30px;height:36px}.match-top{top:-12px}}
@media(max-width:1050px){.season{display:none}.topbar{padding-left:28px;padding-right:28px}#app{left:28px;right:28px}.arena-stamp{width:85px;height:85px}.controls-strip{left:auto;right:0;gap:12px}.control-tip{font-size:8px;gap:5px}.key{min-width:18px;height:19px;padding:2px 3px;font-size:8px}.hero-caption{right:7%;bottom:12%}#footer{left:28px;right:28px;font-size:7px;letter-spacing:1px}.room-panel{width:290px}.match-roster{width:125px}.match-player .p-name{max-width:58px}}
@media(max-width:760px){body{overflow:auto}.topbar{height:77px;padding:18px 20px}.brand{font-size:15px}.brand-mark{width:38px;height:36px;font-size:29px;border-radius:11px}.brand-mark span{font-size:25px}.nav-help{font-size:10px}.nav-actions{gap:15px}.icon-button{height:33px;width:33px}.sound-slash{left:5px;top:15px}#app{inset:77px 18px 28px}.garage{justify-content:flex-end;width:100%;gap:13px;max-width:430px;margin:auto}.garage-title{position:absolute;left:1px;top:0;pointer-events:none}.garage-title .eyebrow{font-size:7px;letter-spacing:1.4px}.headline{font-size:48px;line-height:.85;max-width:210px;margin-top:10px}.intro{display:none}.customizer{padding:15px 18px;border-radius:18px;background:#fff9e9f0}.card-top{margin-bottom:8px}.name-row{padding-bottom:8px}.pilot-options{margin:10px 0}.face-option{height:46px}.face-option svg{height:47px;width:51px;margin-top:4px}.colors-row{margin-bottom:10px}.swatch{height:22px;width:22px}.colors-row .label{font-size:8px}.play-actions{margin-top:12px;grid-template-columns:1fr 1fr;gap:8px}.play-actions .button{padding:12px 9px;font-size:10px;gap:6px;min-height:42px}.play-actions .button .arrow{display:none}.join-link{grid-column:1/-1;font-size:9px;padding-top:4px}.garage-note{display:none}.hero-caption{right:2%;bottom:auto;top:28%;gap:4px}.hero-caption strong{font-size:28px}.hero-caption small{font-size:8px}.hero-caption .tag{font-size:7px;padding:4px 7px}.arena-stamp{width:65px;height:65px;top:0;right:4px}.arena-stamp span,.arena-stamp small{font-size:6px;letter-spacing:1px}.arena-stamp b{font-size:22px}.controls-strip,#footer{display:none}.room-panel{left:50%;top:auto;bottom:0;transform:translateX(-50%);width:100%;max-width:410px;padding:19px 20px}.room-panel h1{font-size:36px;margin:5px 0}.room-panel .eyebrow{font-size:8px}.room-description{font-size:10px}.room-code{margin:12px 0;padding:8px 12px}.room-code strong{font-size:22px}.player-list{grid-template-columns:1fr 1fr;margin:12px 0;gap:6px}.player-row{gap:5px;padding:3px 5px;min-width:0}.player-row strong{font-size:9px}.player-row small{font-size:7px}.player-avatar{width:28px;height:28px;border-radius:7px}.player-avatar svg{width:28px;height:35px}.player-row.empty{height:34px;font-size:8px}.room-bottom{font-size:8px;margin-top:9px}.bots-setting{margin:10px 0}.arena-label{top:19%;bottom:auto;right:2%}.arena-label .number{font-size:43px;padding-right:10px}.arena-label strong{font-size:14px}.arena-label small{font-size:6px}.room-exit{top:0}.match-top{padding:9px 13px;top:3px;gap:11px;border-radius:14px}.round-tag{padding-right:11px}.round-tag span{font-size:6px}.round-tag strong{font-size:24px}.phase-title{font-size:11px}.timer{width:32px;height:32px;font-size:15px;margin-left:0}.match-roster{top:79px;left:0;width:100%;grid-template-columns:repeat(3,1fr);gap:5px;pointer-events:none!important}.match-player{padding:5px;gap:5px;font-size:8px;border-radius:9px}.match-player .p-name{max-width:63px}.match-player .player-avatar{height:20px;width:20px;border-radius:6px}.match-player .player-avatar svg{width:20px;height:25px}.match-player .p-status{font-size:8px}.match-controls{bottom:0;width:100%;max-width:420px;gap:13px;padding:14px;border-radius:17px}.aim-control{gap:5px}.control-meta{display:none}.direction-pad{height:67px;width:67px}.power-head{font-size:7px}.power-head strong{font-size:13px}.ready-button{min-width:88px;min-height:59px;font-size:11px}.ready-button small{font-size:7px}.match-hint{bottom:108px;font-size:9px;max-width:100%;white-space:normal;text-align:center;width:max-content}.room-connection{right:0;top:59px;font-size:7px;padding:5px 7px}.match-exit{position:absolute;left:0;top:5px;padding:7px;width:26px;justify-content:center}.match-exit .exit-label{display:none}.spectate{bottom:5px;width:100%;max-width:350px;padding:15px 20px}.spectate strong{font-size:14px}.spectate span{font-size:10px}.finish-panel{width:310px;padding:24px 27px}.finish-panel h1{font-size:49px}.trophy{font-size:39px}dialog{padding:24px}.dialog-head h2{font-size:30px}.vignette{background:linear-gradient(0deg,#67c9c200 50%,#f2f0d466)}#toast{bottom:30px;font-size:11px}}
@media(max-width:760px) and (max-height:740px){.garage-title .headline{font-size:39px}.customizer{padding:12px 15px}.card-top{margin-bottom:6px}.pilot-options{margin:8px 0}.face-option{height:37px}.face-option svg{height:39px;width:43px;margin-top:2px}.colors-row{margin-bottom:8px}.name-row{padding-bottom:6px}.accessories .chip{font-size:8px;padding:4px 8px}.play-actions{margin-top:10px}.hero-caption{top:25%}.arena-stamp{display:none}.room-panel{padding:14px 17px}.room-description{display:none}.room-panel h1{font-size:30px}.room-code{margin:9px 0}.player-list{margin:9px 0}.room-bottom{margin-top:7px}.room-panel .button{min-height:38px;padding:10px}.room-panel .eyebrow{font-size:7px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

@media(max-height:850px) and (min-width:761px){.headline{font-size:60px}.intro{margin-top:10px;font-size:10px}.garage-note{display:none}.garage{gap:17px}}

@media(max-width:760px){.hero-caption{top:47%;right:5%}}
@media(max-width:760px) and (max-height:740px){.hero-caption{display:none}}
/* Arena Show: bold color, rounded competition UI, close player camera. */
:root{--ink:#35205b;--paper:#fffcff;--orange:#ff42a1;--yellow:#ffdd3b;--teal:#2bd1f3;--muted:#7b6596;--line:rgba(70,34,110,.19);font-family:'Nunito','DM Sans',sans-serif}
body{background:#30cbef}.vignette{background:linear-gradient(90deg,rgba(72,26,140,.22),transparent 60%)}
.brand{color:white;filter:drop-shadow(0 2px 0 #4b2580)}.brand-mark{background:#6c37c9;color:white;border:2px solid #fff;box-shadow:0 3px 0 #4b2580}.brand-mark span{color:#ffdd3b}.season{color:white;text-shadow:0 2px 0 #6b35a4}.season i{background:#ffdd3b}
.nav-help{color:white;text-shadow:0 1px 2px #48288277}.nav-help span{background:#fff;color:#4d267e;padding:2px 5px;border-radius:5px;text-shadow:none}.icon-button{background:#7738c8;border:2px solid #ffffffbb;color:white;box-shadow:0 3px 0 #4d267e}.sound-slash{background:white}
.headline{font-family:'Lilita One','Barlow Condensed',sans-serif;font-style:normal;font-weight:400;letter-spacing:-1.7px;color:white;-webkit-text-stroke:2px #562381;paint-order:stroke fill;text-shadow:0 5px 0 #562381,3px 3px 0 #562381;line-height:.94}
.headline em{font-family:inherit;font-style:normal;color:#ffdf38;-webkit-text-stroke:2px #562381;text-shadow:0 5px 0 #562381,3px 3px 0 #562381}.garage-title .eyebrow,.intro{color:white;text-shadow:0 1px 2px #43216a77}
.customizer,.room-panel,.finish-panel{background:#fcf7fff5;border:3px solid white;border-radius:24px;box-shadow:0 7px 0 #6a32ad,0 12px 30px #4b237f33;backdrop-filter:blur(10px)}.customizer h2,.card-top h2{font-weight:1000}.face-option{background:#e8d9fa;border-color:#c5aae9;box-shadow:0 3px 0 #cfb7ec}.face-option.selected{background:#ffdf48;border-color:#6b32a5;box-shadow:0 3px 0 #6b32a5}.name-row{border-bottom:2px solid #eadbf6}.name-row input{font-weight:1000}.swatch.selected{outline-color:#6630a4}.chip{border:2px solid #dbc4f0;background:white}.chip[aria-pressed=true]{background:#8c43d5;border-color:#8c43d5;color:white}
.button{border-radius:13px;font-weight:1000;font-size:13px}.button.primary{color:white;background:#ff42a1;box-shadow:0 5px 0 #b3247c;text-shadow:0 1px 1px #9d206270}.button.primary:hover{background:#ff62b4;box-shadow:0 6px 0 #b3247c}.button.secondary{background:#8039d0;box-shadow:0 4px 0 #4d237f;color:white}.button.ghost{background:#f1e5fc;border:2px solid #c9a4ec}.button.light{border:2px solid #c9a4ec}.join-link{color:#7539ae}.garage-note{color:white}.hero-caption .tag{background:#ff42a1;border:2px solid white;border-radius:8px;box-shadow:0 3px 0 #8b2c99;font-weight:900}.hero-caption strong{font-family:'Lilita One','Barlow Condensed',sans-serif;font-style:normal;color:white;-webkit-text-stroke:1.5px #612c92;paint-order:stroke fill;text-shadow:0 3px 0 #612c92}.hero-caption small{color:white;text-shadow:0 1px 2px #512d8f88}.arena-stamp{background:#7038ba;color:white;border:3px solid white;box-shadow:0 4px 0 #4d237f}
.controls-strip,.control-tip{color:white;text-shadow:0 1px 2px #56218088}.key{background:#6b32ac;color:white;border:1px solid white;box-shadow:0 3px 0 #4c247c;text-shadow:none}.room-code,.player-row{background:#eee1fc}.room-code strong{color:#8b37c9}.room-panel h1,.finish-panel h1{font-family:'Lilita One',sans-serif;font-style:normal;color:#7d36c1;text-shadow:0 3px 0 #e6cff7}.room-panel .eyebrow{color:#a136b4}.player-row.empty{border-color:#b592d4;color:#9878b5}.back-button{background:#7434bb;color:white;box-shadow:0 3px 0 #4c247c}.room-exit{z-index:4}
.match-top{background:#8c3fd0;border:3px solid white;box-shadow:0 5px 0 #502180;color:white;border-radius:21px}.round-tag{border-right-color:#ffffff44}.phase-title{font-weight:1000}.timer{background:#ffdd3b;color:#692c9f;border:2px solid white}.match-roster{gap:8px}.match-player{background:#7433bde8;border:2px solid white;color:white;box-shadow:0 3px 0 #452074}.match-player.self{outline:3px solid #ffe13e;border-color:#ffe13e}.match-controls{background:#8c3fd0;border:3px solid white;color:white;box-shadow:0 6px 0 #502180;border-radius:22px}.control-meta small,.power-control small{color:#e7d2ff}.direction-pad button{background:#fff0ff;color:#7433bd;border:2px solid #d8b2f3;box-shadow:0 2px 0 #5f2899}.pad-center{background:#ffdd3b}.power-control input{accent-color:#ffdf38}.ready-button{background:#ff42a1;color:white;box-shadow:0 4px 0 #b52077;border:2px solid #fff6}.ready-button.waiting{background:#4c2281;box-shadow:0 4px 0 #32125e}.match-hint{background:#672baee0;color:white;border:2px solid #fff9}.room-connection{background:#6631aacb;color:white}.room-connection .status-dot{background:#80ff9f}.spectate{background:#8c3fd0;color:white;border:3px solid white;box-shadow:0 5px 0 #502180}.spectate span{color:#e5caff}.score-row{border-top-color:#e1c8f6}.finish-panel .eyebrow{color:#a533ac}.room-bottom{color:#816295}#footer{color:white;text-shadow:0 1px 1px #4b287a77}#toast{background:#6a2fa4;border:2px solid white;color:white}.camera-toggle{display:none}body[data-mode=game] .camera-toggle{display:block}.camera-toggle span{font-size:9px}body[data-mode=game] .vignette{opacity:0}dialog{border:3px solid white;background:#fcf7ff;box-shadow:0 7px 0 #6a32ad,0 30px 100px #3f1c7a66}dialog::backdrop{background:#33135e88}.dialog-head h2{font-family:'Lilita One',sans-serif;font-style:normal;color:#8037bd}.help-controls{background:#ecdef8}.step-number{background:#ffdd3b}.dialog-input{border:2px solid #ceb0e8}.help-step p,.dialog-body{color:#82619d}
@media(max-height:850px) and (min-width:761px){.headline{font-size:56px}.garage{gap:17px}}
@media(max-width:760px){.headline{font-size:43px;line-height:.95}.garage-title .eyebrow{font-size:6.5px}.customizer{border-radius:22px}.play-actions .button{font-size:10px}.nav-actions{gap:10px}.camera-toggle{font-size:9px}.camera-toggle span{margin-left:3px}.nav-help span{margin-left:4px}body[data-mode=game] #help{display:none}.match-top{top:4px}.match-controls{border-radius:20px}.match-roster{gap:5px}.match-player{font-size:8px}.room-panel h1{font-size:33px}.hero-caption strong{font-size:27px}}
/* Continuous driving controls. */
.live-controls{position:absolute;left:50%;bottom:0;transform:translateX(-50%);display:flex;align-items:center;gap:22px;padding:13px 18px;border-radius:20px;background:#7532bce8;border:2px solid white;box-shadow:0 5px 0 #472079;color:white;max-width:calc(100vw - 90px);backdrop-filter:blur(12px)}
.live-keys{display:grid;gap:5px;white-space:nowrap;font-size:9px;font-weight:900}.live-keys span{display:flex;align-items:center;gap:8px}.live-keys kbd{min-width:62px;text-align:center;background:#fff;color:#7033ac;border-radius:5px;padding:3px 5px;font:900 8px 'Nunito',sans-serif;box-shadow:0 2px 0 #3d1b6a}.boost-card{width:180px;flex-shrink:0}.boost-card .power-head{font-size:9px;letter-spacing:1.2px}.boost-card .power-head strong{font-size:11px;letter-spacing:0}.boost-track{height:9px;background:#42166f;border-radius:8px;margin:6px 0 9px;overflow:hidden;border:1px solid #b58cdf}.boost-track i{display:block;height:100%;background:linear-gradient(90deg,#ffde2d,#ff9f39);border-radius:8px}.push-power{display:flex;align-items:center;gap:9px;font-size:7px;font-weight:900;white-space:nowrap;letter-spacing:.5px}.push-power b{font-size:9px;letter-spacing:0}.push-power input{width:93px;accent-color:#ffdd3b;min-width:0;height:14px;margin:0}.camera-help{font-size:8px;line-height:1.8;color:#eddcff;white-space:nowrap;font-weight:700}.countdown-overlay{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%) scale(.9);pointer-events:none!important;display:flex;flex-direction:column;align-items:center;gap:5px;color:white;opacity:0;transition:opacity .15s,transform .15s}.countdown-overlay.visible{opacity:1;transform:translate(-50%,-50%) scale(1)}.countdown-overlay strong{font:130px/1 'Lilita One',sans-serif;-webkit-text-stroke:4px #65229a;paint-order:stroke fill;text-shadow:0 8px 0 #65229a}.countdown-overlay span{font-size:11px;font-weight:1000;letter-spacing:2px;background:#7130b8;padding:9px 14px;border-radius:10px;border:2px solid white}.mobile-play{display:none}.joystick{width:98px;height:98px;border-radius:50%;background:#7937bb77;border:3px solid #fff9;position:relative;touch-action:none;box-shadow:0 5px 0 #48217877;pointer-events:auto}.joystick>i{position:absolute;left:25px;top:25px;width:42px;height:42px;border:3px solid white;border-radius:50%;background:#bd76ff;box-shadow:0 4px 0 #7635b7;pointer-events:none}.joystick>span{position:absolute;left:0;right:0;bottom:8px;text-align:center;font-size:7px;letter-spacing:2px;font-weight:900;color:#fff;pointer-events:none}.mobile-buttons{display:flex;align-items:center;gap:13px;pointer-events:none}.mobile-buttons button{width:65px;height:65px;border:3px solid white;border-radius:50%;background:#a357e5;color:white;font-size:27px;box-shadow:0 4px 0 #552385;display:flex;align-items:center;justify-content:center;flex-direction:column;touch-action:none;pointer-events:auto}.mobile-buttons button:last-child{background:#ff42a1;box-shadow:0 4px 0 #a92277}.mobile-buttons button small{font-size:7px;letter-spacing:.6px;font-weight:1000}.mobile-buttons button:active{transform:translateY(3px);box-shadow:none}.mobile-play #touch-jump{margin-bottom:31px}
@media(max-width:1000px){.camera-help{display:none}.live-controls{gap:18px}.live-keys{font-size:8px}}
@media(max-width:760px){.live-controls{bottom:1px;left:50%;padding:11px 12px;border-radius:15px;max-width:175px;pointer-events:auto}.boost-card{width:142px}.live-keys,.camera-help{display:none}.mobile-play{display:flex;position:absolute;bottom:2px;left:0;right:0;align-items:flex-end;justify-content:space-between;pointer-events:none!important}.mobile-buttons{gap:9px}.joystick{width:88px;height:88px}.joystick>i{left:21px;top:21px;width:40px;height:40px}.mobile-buttons button{width:59px;height:59px;font-size:24px}.mobile-buttons button small{font-size:6px}.push-power{font-size:6px;gap:5px}.push-power input{width:66px}.boost-card .power-head{font-size:7px}.boost-card .power-head strong{font-size:9px}.countdown-overlay strong{font-size:95px}.countdown-overlay span{font-size:8px}.match-roster{pointer-events:none!important}.live-controls .boost-track{margin:6px 0}.match-top{top:0}.room-connection{top:62px}}
@media(max-width:430px){.live-controls{bottom:100px;left:50%;max-width:157px;padding:9px 10px}.boost-card{width:132px}.mobile-play{bottom:0}.joystick{width:88px;height:88px}.mobile-buttons button{height:62px;width:62px}.countdown-overlay{top:42%}}
/* Shared tactical pause: each pilot chooses a secret push. */
.plan-trigger{border:2px solid #ffffffaa;border-radius:11px;background:#ff44a4;color:white;box-shadow:0 3px 0 #a9257d;padding:10px 12px;font-size:10px;font-weight:1000;display:flex;flex-direction:column;gap:4px;white-space:nowrap}.plan-trigger small{font-size:7px;letter-spacing:1.5px}.plan-trigger:disabled{background:#9761bd;cursor:default;box-shadow:0 3px 0 #573078}.tactical-controls{gap:20px;min-width:510px;background:#5f24a4f0;border-color:#ffdf3b;box-shadow:0 5px 0 #38205e}.tactical-controls .camera-help{display:none}.tactical-label{display:flex;flex-direction:column;gap:3px;width:165px;flex-shrink:0}.tactical-label strong{font-size:13px;color:#ffdf3b}.tactical-label span{font-size:10px;font-weight:900}.tactical-label small{font-size:8px;color:#e6d3ff;white-space:nowrap}.tactical-controls .boost-card{width:145px}.tactical-controls .push-power{display:flex;flex-direction:column;align-items:flex-start;margin-top:7px}.tactical-controls .push-power input{width:145px}.confirm-plan{background:#ff43a4;border:2px solid #fff;border-radius:13px;box-shadow:0 4px 0 #a7277d;color:white;min-width:100px;min-height:63px;font-size:15px;font-weight:1000;display:flex;flex-direction:column;justify-content:center;gap:4px}.confirm-plan small{font-size:8px;letter-spacing:1px}.confirm-plan.saved{background:#713cb0;box-shadow:0 4px 0 #3f2262;cursor:default;opacity:1}.planning-hint{position:absolute;bottom:112px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 40px);white-space:nowrap;font-size:10px;font-weight:800;color:white;background:#6526a6e8;padding:8px 14px;border-radius:20px;border:1px solid #ffde43;pointer-events:none!important}body[data-phase=planning] .match-top{border-color:#ffdf3b;background:#63249d}body[data-phase=planning] .timer{background:#ff4ca5;color:white}body[data-phase=planning] .match-player .p-status{color:#ffdf3b;font-weight:1000}
@media(max-width:760px){.plan-trigger{display:none}.tactical-controls{min-width:0;max-width:175px;gap:0;padding:12px;border-radius:17px}.tactical-controls .tactical-label,.tactical-controls .confirm-plan{display:none}.tactical-controls .boost-card{width:142px}.tactical-controls .push-power{margin-top:6px;gap:6px;flex-direction:row;align-items:center}.tactical-controls .push-power input{width:92px}.planning-hint{bottom:110px;font-size:8px;max-width:calc(100vw - 55px);white-space:normal;text-align:center;width:max-content;padding:7px 12px}.match-top .phase-title{font-size:10px}body[data-phase=planning] .mobile-buttons button:first-child{background:#ffcf36;color:#5e2498;box-shadow:0 4px 0 #ae8d27}}
@media(max-width:430px){.tactical-controls{bottom:100px;max-width:157px;padding:10px}.tactical-controls .boost-card{width:132px}.tactical-controls .push-power input{width:83px}.planning-hint{bottom:194px;font-size:8px}.match-top .phase-title{font-size:9px}.match-top{gap:8px;padding:8px 10px}}
#loading.hidden{visibility:hidden;transition:opacity .5s,visibility 0s .5s}
/* Stationary magnetic-pod planning controls. */
.impulse-controls{display:grid;grid-template-columns:145px 90px 185px 100px;gap:17px;width:calc(100vw - 88px);max-width:635px;min-width:0;align-items:center;padding:15px 18px;bottom:0}.impulse-controls .tactical-label{width:auto;gap:5px}.impulse-controls .tactical-label small{white-space:normal;line-height:1.45;font-size:9px}.impulse-controls .direction-control{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0}.direction-control .power-head{width:100%;font-size:8px;letter-spacing:.8px}.direction-control .power-head strong{font-size:10px}.direction-dial{width:65px;height:65px;padding:0;border:2px solid #e9d4ff;border-radius:50%;background:radial-gradient(circle,#8943cf 0 45%,#57218f 47% 68%,#a875d9 69%);color:white;position:relative;touch-action:none;box-shadow:0 3px 0 #3c196b}.direction-north{position:absolute;top:4px;left:0;right:0;font-size:5px;letter-spacing:1px;font-weight:900;pointer-events:none}.direction-needle{position:absolute;left:15px;top:11px;width:31px;height:38px;font-size:35px;line-height:36px;color:#ffe434;font-style:normal;text-shadow:0 2px 0 #6b308e;transform-origin:50% 50%;pointer-events:none}.direction-center{position:absolute;bottom:4px;left:0;right:0;font-size:6px;letter-spacing:.5px;pointer-events:none}.direction-control>input{width:86px;height:10px;margin:0;accent-color:#ffdf34}.impulse-controls .boost-card{width:185px}.impulse-controls .push-power{flex-direction:row;align-items:center;gap:10px;margin:8px 0 10px}.impulse-controls .push-power input{width:130px;min-width:0}.jump-toggle{display:flex;align-items:center;justify-content:center;gap:6px;border:2px solid #c899ec;border-radius:9px;background:#7637af;color:#f9efff;font-size:9px;font-weight:900;padding:7px 8px;box-shadow:0 2px 0 #432171;white-space:nowrap}.jump-toggle.selected{background:#ffdf3b;color:#60258f;border-color:#fff2b8;box-shadow:0 2px 0 #ac8726}.jump-toggle kbd{font:900 8px 'Nunito',sans-serif;padding:1px 4px;border:1px solid currentColor;border-radius:4px}.jump-toggle:disabled{cursor:default;opacity:.75}.impulse-controls .confirm-plan{min-width:0;width:100%;height:69px}.impulse-controls .camera-help{display:none}.impulse-controls~.planning-hint{bottom:144px;white-space:normal;text-align:center;max-width:calc(100vw - 70px);width:max-content;line-height:1.5}.impulse-status{display:flex;flex-direction:column;gap:7px;max-width:520px;width:calc(100vw - 60px);padding:17px 22px;text-align:center;min-height:80px}.impulse-status>strong{font-family:'Lilita One',sans-serif;font-size:22px;color:#ffdf3b;line-height:1.1}.impulse-status>span{font-size:11px;line-height:1.5;max-width:410px}.impulse-status>small{font-size:8px;color:#dbc3f5}.resolve-progress{height:5px;width:180px;border-radius:10px;background:#3b1766;overflow:hidden}.resolve-progress>i{height:100%;display:block;width:100%;border-radius:10px;background:#ffdc35}body[data-phase=planning] .timer{font-size:9px;letter-spacing:.5px;min-width:38px}body[data-phase=playing] .timer{font-size:22px}body[data-phase=planning] .mobile-play{display:none!important}.pilot-options .face-option img{height:100%;max-width:100%;object-fit:contain;object-position:50% 25%}.skin-caption{font-size:8px;color:var(--muted)}
@media(max-width:760px){.impulse-controls{grid-template-columns:76px minmax(0,1fr) 78px;display:grid;gap:10px;width:calc(100vw - 44px);max-width:560px;min-width:0;padding:12px;bottom:0}.impulse-controls .tactical-label{display:none}.impulse-controls .direction-control{display:flex}.impulse-controls .confirm-plan{display:flex;min-height:62px;height:70px;font-size:13px}.impulse-controls .boost-card{width:100%;min-width:0}.direction-dial{width:57px;height:57px}.direction-needle{left:11px;top:8px;font-size:32px}.direction-control>input{width:70px}.impulse-controls .push-power{gap:7px;margin:7px 0 9px}.impulse-controls .push-power input{width:100%;min-width:0}.impulse-controls .push-power>span{min-width:36px}.jump-toggle{font-size:8px;white-space:normal;line-height:1.25;padding:6px 5px;min-height:30px;width:100%;gap:4px}.jump-toggle kbd{display:none}.impulse-controls~.planning-hint{bottom:129px;max-width:calc(100vw - 50px);font-size:8px}.impulse-status{max-width:430px;bottom:0;padding:14px 18px;width:calc(100vw - 44px)}.impulse-status>strong{font-size:19px}.impulse-status>span{font-size:10px}.impulse-status>small{display:none}}
@media(max-width:430px){.impulse-controls{width:calc(100vw - 36px);max-width:none;bottom:0;grid-template-columns:67px minmax(0,1fr) 69px;gap:8px;padding:11px 10px;border-radius:16px}.impulse-controls .direction-control{width:67px}.direction-control .power-head{font-size:6px;letter-spacing:.4px}.direction-control .power-head strong{font-size:8px}.impulse-controls .boost-card{width:100%}.impulse-controls .confirm-plan{font-size:11px;height:65px;border-radius:10px}.impulse-controls .confirm-plan small{font-size:6px}.impulse-controls .power-head{font-size:7px}.impulse-controls .push-power{gap:5px;font-size:6px}.impulse-controls .push-power>span{min-width:31px}.jump-toggle{font-size:7px;padding:5px 3px}.impulse-controls~.planning-hint{bottom:123px;font-size:8px;max-width:calc(100vw - 45px);padding:7px 10px}.direction-control>input{width:64px}.impulse-status{width:calc(100vw - 36px);max-width:none}}

.player-avatar img{width:100%;height:100%;object-fit:contain;display:block}.face-option img{margin:0 auto;display:block;width:100%;height:100%;object-fit:contain}body[data-phase=planning] .timer{font-size:20px}

/* A clear view of the arena, with controls only where they are needed. */
#app:focus{outline:none}
body[data-mode=game] #app{inset:20px 24px 24px}
body[data-mode=game] .topbar{height:76px;padding:18px 24px;pointer-events:none}
body[data-mode=game] .topbar .nav-actions{pointer-events:auto;gap:9px}
body[data-mode=game] .brand,body[data-mode=game] .season,body[data-mode=game] #footer,body[data-mode=game] .camera-toggle{display:none}
.keyboard-help{display:flex!important;align-items:center;justify-content:center;font-size:24px;line-height:1}
body[data-mode=game] .icon-button{width:40px;height:40px;background:#6533a6b8;border:1px solid #ffffffa0;color:white;backdrop-filter:blur(8px);box-shadow:0 2px 0 #39226455}
body[data-mode=game] .sound-slash{background:white}
.match-exit{height:40px;width:40px;padding:0;display:flex;align-items:center;justify-content:center;font-size:19px;background:#6533a6b8;box-shadow:0 2px 0 #39226455;border:1px solid #ffffffa0}
.round-clock{position:absolute;top:0;left:50%;transform:translateX(-50%);width:54px;height:54px;display:grid;place-items:center;color:white;background:#6432a6c9;border-radius:50%;font:26px/1 'Lilita One',sans-serif;text-shadow:0 2px #40206a;backdrop-filter:blur(8px);pointer-events:none!important}
.round-clock svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);overflow:visible}
.round-clock circle{fill:none;stroke:#ffe551;stroke-width:3;stroke-linecap:round;stroke-dasharray:144.52;stroke-dashoffset:calc(144.52 * (1 - var(--clock-left,1)))}
.round-clock.urgent circle{stroke:#ff639f}.round-clock.hidden{display:none}
.compact-roster{top:70px;left:0;width:40px;gap:9px;pointer-events:none!important}
.compact-roster .match-player{padding:0;width:40px;height:40px;border-radius:12px;position:relative;background:#6632a674;box-shadow:none;border-width:1px;backdrop-filter:blur(4px)}
.compact-roster .player-avatar{width:38px;height:38px;border-radius:10px;background:none;overflow:hidden}
.compact-roster .match-player.self{outline-width:2px}
.compact-roster .p-status{position:absolute;bottom:-3px;right:-5px;line-height:17px;min-width:17px;border-radius:50%;background:#633297;color:#ffe551;font-size:12px;text-align:center}
.compact-roster .p-status:empty{display:none}
.quick-plan{position:absolute;bottom:0;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;padding:0;background:none;max-width:calc(100vw - 24px)}
.plan-meter{position:relative;width:84px;height:49px;display:flex;flex-direction:column;justify-content:center;gap:5px;color:white;font-size:18px;text-align:center;text-shadow:0 2px 4px #452369,0 0 2px #452369}
.meter-track{display:block;height:8px;background:#4b207a88;overflow:hidden;border-radius:5px;box-shadow:0 0 0 1.5px #ffffffaa}
.meter-track i{display:block;height:100%;background:#ffe444;border-radius:5px}
.plan-meter input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize}
.plan-meter:focus-within{outline:2px solid white;outline-offset:4px;border-radius:7px}
.quick-jump{width:44px;height:44px;padding:0;border:1.5px solid #ffffffba;border-radius:50%;background:#6835a7c9;color:white;font-size:28px;box-shadow:0 3px #3b206866;backdrop-filter:blur(6px)}
.quick-jump.selected{background:#ffe441;color:#62339a;border-color:#fff9bc;box-shadow:0 3px #af863c}
.quick-ready{border:2px solid white;background:#ff41a2;color:white;min-width:105px;height:49px;border-radius:16px;font:20px 'Lilita One',sans-serif;box-shadow:0 4px #a52077;padding:0 18px}
.quick-ready.saved{background:#6835a7c9;box-shadow:0 3px #3b206866;opacity:1;cursor:default}
.quick-jump:disabled{cursor:default;opacity:.7}
.touch-aim{display:none;gap:7px}
.touch-aim button{width:37px;height:37px;border:1px solid #fffc;border-radius:50%;background:#6835a7c9;color:white;font-size:25px;padding:0}
@media(pointer:coarse){.touch-aim{display:flex}.quick-plan .plan-meter{width:56px}.slap-controls{bottom:62px}}
.mini-spectate{bottom:8px;padding:9px 16px;font-size:15px;min-width:0;width:auto;border-width:1px}
.keyboard-guide{display:grid;grid-template-columns:105px 1fr;gap:13px 14px;align-items:center;margin:18px 0 22px;font-size:12px}
.keyboard-guide>span{display:flex;align-items:center;gap:5px;font-size:21px}
.keyboard-guide p{font-size:12px;color:#77558c;line-height:1.5}
.keyboard-guide kbd{font:800 11px 'Nunito',sans-serif;min-width:27px;padding:5px 8px;background:white;border:1px solid #cfb0e5;border-bottom:3px solid #cfb0e5;border-radius:6px;color:#733da1;text-align:center}
@media(max-width:760px){body[data-mode=game] #app{inset:16px 16px 20px}body[data-mode=game] .topbar{height:72px;padding:16px}.compact-roster{top:64px;width:34px;gap:8px}.compact-roster .match-player{width:34px;height:34px}.compact-roster .player-avatar{width:32px;height:32px}.round-clock{width:48px;height:48px;font-size:24px}.quick-plan{gap:9px}.quick-ready{height:47px;min-width:99px;font-size:19px}.plan-meter{width:55px}}

.gesture-panel{position:fixed;right:24px;bottom:80px;z-index:12;color:white;font-family:'Nunito',sans-serif}
.gesture-panel[data-state=hidden],.gesture-panel[data-state=checking]{display:none}
.camera-question{text-align:center;padding:4px 0}
.camera-question>span{font-size:35px}
.camera-question h2{margin:12px 0 8px;font-size:27px}
.camera-question p{font-size:14px;color:#77558c;margin:0 0 22px}
.camera-question .ghost{margin-top:9px}
.slap-controls{position:absolute;left:0;bottom:0;display:flex;gap:8px}
.slap-controls button{position:relative;width:42px;height:42px;padding:0;border:1px solid #ffffffbd;border-radius:14px;background:#6335a5c9;backdrop-filter:blur(8px);color:white;font-size:27px;box-shadow:0 3px #3b206866}
.slap-controls button:first-child{transform:scaleX(-1)}
.slap-controls kbd{position:absolute;bottom:-2px;right:-2px;background:#6630a0;border:1px solid #fff8;border-radius:4px;font:800 9px 'Nunito',sans-serif;padding:0 3px}
.slap-controls button:first-child kbd{transform:scaleX(-1)}
.room-panel{max-height:100%;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.gesture-open{display:flex;align-items:center;justify-content:center;gap:7px;height:39px;padding:0 13px;border:1px solid #ffffffb0;border-radius:14px;background:#6432a6c9;box-shadow:0 3px #3e1f6b66;color:white;font-size:11px;font-weight:900;backdrop-filter:blur(8px)}
.gesture-open svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}
.gesture-preview{display:none;position:relative;width:176px;aspect-ratio:16/9;background:#3c2364;border:2px solid #ffffffdc;border-radius:14px;overflow:hidden;box-shadow:0 4px 20px #30165444}
.gesture-preview video,.gesture-preview canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transform:scaleX(-1);pointer-events:none}
.gesture-caption{position:absolute;inset:auto 0 0;display:flex;align-items:center;gap:5px;background:linear-gradient(transparent,#301957df 35%);padding:14px 7px 5px;font-size:9px;font-weight:900;line-height:15px;pointer-events:none}
.gesture-caption>i{width:6px;height:6px;border-radius:50%;background:#83ffd4;flex-shrink:0}
.gesture-caption>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gesture-caption button{pointer-events:auto;margin-left:auto;border:0;border-radius:50%;width:22px;height:22px;padding:0;background:#542a87bb;color:white;font:20px/20px sans-serif;flex-shrink:0}
.gesture-panel[data-state=loading] .gesture-caption>i{background:#ffe550;animation:gesture-wait 1s infinite alternate}
.gesture-panel:not([data-state=off]) .gesture-preview{display:block}
.gesture-panel:not([data-state=off]) .gesture-open{display:none}
.gesture-help{font-size:11px;line-height:1.6;color:#77558c;background:#eee2f8;border-radius:10px;padding:10px 12px;margin-top:14px}
@keyframes gesture-wait{to{opacity:.35}}
@media(max-width:760px){.gesture-panel{right:16px;bottom:84px}.gesture-preview{width:132px;border-radius:11px}.gesture-open{height:35px;font-size:10px;padding:0 10px}.gesture-caption{font-size:8px;padding:10px 5px 3px;gap:4px}.gesture-caption button{width:20px;height:20px}}
/* Front end: one clear choice at a time, with the pilot beside the menu. */
:root {
  --menu-deep: #321653;
  --menu-purple: #542489;
  --menu-yellow: #ffe14a;
  --menu-white: #fffaff;
  --menu-muted: #e2d2f4;
}
body[data-mode="garage"] .vignette {
  opacity: 1;
  background: linear-gradient(90deg, #2b125568 0%, #3d196024 43%, transparent 72%);
}
body[data-mode="garage"] #app {
  inset: 108px clamp(22px, 5vw, 100px) 32px;
  overflow: visible;
}
.topbar { height: 104px; padding: 20px clamp(22px, 5vw, 100px); }
.brand { gap: 12px; filter: drop-shadow(0 3px 0 #311754); }
.brand .bumper-symbol { width: 66px; height: 57px; flex: 0 0 auto; }
.brand-wordmark { display: flex; flex-direction: column; font: 27px/.83 'Lilita One', sans-serif; letter-spacing: -.5px; color: white; }
.brand-wordmark > span { color: #ffe14a; font-size: 31px; letter-spacing: 2.7px; }
body[data-mode="garage"] .topbar { pointer-events: none; }
body[data-mode="garage"] .topbar .brand { pointer-events: auto; }
body[data-mode="garage"] .nav-actions { display: none; }
.front-shell {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  pointer-events: none !important;
}
.menu-panel {
  position: relative;
  width: min(100%, 32rem);
  max-height: 100%;
  padding: clamp(24px, 2.1vw, 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #be96e6 #3b1b60;
  color: var(--menu-white);
  background: linear-gradient(145deg, #542489f5, #371859fa);
  border: 2px solid #c69be7;
  border-radius: 28px;
  box-shadow: 0 7px 0 #291345, 0 22px 48px #28104438, inset 0 1px 0 #ffffff2e;
  pointer-events: auto;
}
.menu-heading { margin: 0 0 25px; }
.menu-kicker { margin-bottom: 7px; font: 900 .875rem/1.35 'Nunito', sans-serif; color: var(--menu-yellow); letter-spacing: .11em; text-transform: uppercase; }
.menu-title { font: 400 clamp(2.3rem, 3.1vw, 3.2rem)/1.05 'Lilita One', sans-serif; color: white; letter-spacing: -.025em; text-wrap: balance; }
.menu-subtitle { color: var(--menu-muted); font-size: 1rem; line-height: 1.5; font-weight: 700; margin-top: 10px; }
.menu-subtitle:empty { display: none; }
.menu-nav { display: grid; gap: 12px; }
.menu-item {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 15px;
  background: #f6eefe;
  color: #432064;
  box-shadow: 0 4px 0 #26113f;
  text-align: left;
  font-size: 1.55rem;
  font-weight: 1000;
  line-height: 1.15;
}
.menu-icon { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; flex: 0 0 auto; }
.menu-icon svg, .mode-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-label { flex: 1; min-width: 0; }
.menu-item.is-primary { min-height: 76px; color: #3c2052; background: var(--menu-yellow); border-color: #fff1ab; font-size: 2rem; box-shadow: 0 5px 0 #a47820; }
.menu-item:hover { background: white; transform: translateX(4px); }
.menu-item.is-primary:hover { background: #ffec79; }
.menu-item:active { transform: translateY(3px); box-shadow: 0 1px 0 #26113f; }
.menu-note { font-size: .875rem; line-height: 1.45; color: var(--menu-muted); margin-top: 20px; }
.menu-back, .pilot-edit {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 2px solid #b98adc; border-radius: 12px; background: #3c1b61; color: white;
  min-height: 46px; padding: 9px 15px; font-size: 1rem; font-weight: 900; line-height: 1.2;
}
.menu-back { margin-bottom: 22px; }
.menu-back svg, .pilot-edit svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; }
.menu-back:hover, .pilot-edit:hover { background: #7338a9; }
.pilot-card {
  position: absolute; right: 9%; bottom: 2%; display: flex; align-items: center;
  flex-direction: column; gap: 7px; max-width: 35%; text-align: center; pointer-events: auto;
}
.pilot-label { font-size: .875rem; font-weight: 1000; color: #fff; text-transform: uppercase; letter-spacing: .12em; text-shadow: 0 2px 4px #39214c; }
.pilot-card #hero-name { max-width: 100%; overflow-wrap: anywhere; font: 400 clamp(1.9rem, 2.7vw, 2.8rem)/1.1 'Lilita One', sans-serif; color: white; -webkit-text-stroke: 3px #4c226d; paint-order: stroke fill; text-shadow: 0 3px 0 #4c226d; }
.pilot-edit { margin-top: 7px; background: #58248ddf; border-color: #fff9; backdrop-filter: blur(12px); box-shadow: 0 3px 0 #33184c; }
.mode-list { display: grid; gap: 14px; }
.mode-card {
  width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; column-gap: 17px; row-gap: 5px;
  min-height: 98px; text-align: left; background: #f8f0ff; border: 2px solid #f8f0ff; border-radius: 16px;
  padding: 19px 20px; color: #432064; box-shadow: 0 4px 0 #291241;
}
.mode-icon { width: 37px; height: 37px; grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.mode-card strong { font-size: 1.5rem; line-height: 1.15; font-weight: 1000; }
.mode-card small { color: #705481; font-size: 1rem; line-height: 1.35; font-weight: 700; }
.mode-card:hover { background: white; border-color: var(--menu-yellow); transform: translateX(4px); }
.mode-card.is-primary { background: var(--menu-yellow); border-color: #fff1ab; }
.pilot-editor .name-row { display: grid; gap: 8px; padding-bottom: 20px; border-color: #ffffff29; }
.pilot-editor .label { color: var(--menu-muted); font-size: .875rem; letter-spacing: .05em; }
.pilot-editor .name-row input { text-align: left; min-height: 54px; padding: 10px 14px; border: 2px solid #c29ae3; border-radius: 12px; background: #fffaff; color: #432064; font-size: 1.25rem; }
.pilot-editor .pilot-options { margin: 22px 0 26px; gap: 12px; }
.pilot-editor .face-option { flex: 1; height: 106px; min-width: 0; border-width: 3px; border-radius: 17px; background: #d6b6ef; }
.pilot-editor .face-option.selected { border-color: var(--menu-yellow); background: #ffdf48; box-shadow: 0 4px 0 #a47820; }
.pilot-editor .face-option.selected::after { font-size: 1.1rem; border-radius: 50%; padding: 0 4px; color: #40205b; background: var(--menu-yellow); }
.pilot-editor .colors-row { display: flex; flex-wrap: wrap; gap: 13px; padding: 0 5px 8px; }
.pilot-editor .colors-row .label { width: 100%; margin-bottom: 8px; }
.pilot-editor .swatch { width: 42px; height: 42px; border: 3px solid #ffffff80; }
.pilot-editor .swatch.selected { outline: 3px solid white; outline-offset: 4px; }
.pilot-editor .swatch.selected::after { font-size: 1.25rem; }
.menu-panel .button { min-height: 56px; font-size: 1.2rem; border-radius: 13px; padding: 13px 20px; }
.menu-panel .button.primary { color: #3c2052; background: var(--menu-yellow); text-shadow: none; box-shadow: 0 4px 0 #a47820; }
.menu-panel .button.ghost { color: white; background: #4a2274; border-color: #b98adc; }
.menu-panel .button.secondary { border: 2px solid #c69be7; }
.menu-panel .dialog-full { margin-top: 22px; }
.settings-list { display: grid; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; border-bottom: 1px solid #ffffff2e; cursor: pointer; }
.setting-row:first-child { padding-top: 3px; }
.setting-row > span { min-width: 0; }
.setting-row strong { display: block; font-size: 1.2rem; line-height: 1.3; font-weight: 1000; color: white; }
.setting-row small { display: block; font-size: .9375rem; color: var(--menu-muted); line-height: 1.45; margin-top: 5px; }
.setting-row input[type="checkbox"] { appearance: none; display: block; flex: 0 0 auto; width: 58px; height: 34px; border: 2px solid #b991d8; border-radius: 22px; margin: 5px 0 5px 8px; background: #2d134e; position: relative; cursor: pointer; }
.setting-row input[type="checkbox"]::after { content: ''; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; background: #dbc3ee; border-radius: 50%; transition: transform .16s; }
.setting-row input[type="checkbox"]:checked { background: var(--menu-yellow); border-color: #fff1a8; }
.setting-row input[type="checkbox"]:checked::after { transform: translateX(24px); background: #472461; }
.setting-row select { flex: 0 0 auto; max-width: 47%; min-height: 48px; padding: 9px 34px 9px 12px; color: #3d2053; font-size: 1rem; font-weight: 900; border: 2px solid #c49ae3; border-radius: 10px; background: #f8f1ff; }
.settings-actions { display: flex; gap: 10px; margin-top: 23px; }
.settings-actions > * { flex: 1; }
.exit-panel { text-align: center; }
.exit-panel .menu-heading { text-align: center; }
.exit-panel p { color: var(--menu-muted); font-size: 1.125rem; line-height: 1.5; }
.exit-panel .button { width: 100%; margin-top: 22px; }
.exit-panel .menu-icon { width: 64px; height: 64px; color: var(--menu-yellow); margin: 8px auto 22px; }
body[data-mode="garage"] button:focus-visible, body[data-mode="garage"] input:focus-visible, body[data-mode="garage"] select:focus-visible,
dialog button:focus-visible, dialog input:focus-visible { outline: 4px solid var(--menu-yellow); outline-offset: 5px; }
body[data-mode="garage"] .menu-item.is-primary:focus-visible { outline-color: white; }
body[data-mode="garage"] button:disabled { cursor: default; opacity: .55; transform: none; }

/* Splash is deliberately short: the actual first scene frame dismisses it. */
#loading { gap: 0; background: radial-gradient(ellipse at 50% 42%, #783cc0 0%, #542489 44%, #301649 100%); color: white; }
#loading::before { content: ''; position: absolute; width: min(70vw, 580px); aspect-ratio: 1; border: 1px solid #b97bea28; border-radius: 50%; box-shadow: 0 0 0 58px #b97bea0b, 0 0 0 116px #b97bea08; pointer-events: none; }
.splash-emblem { position: relative; width: clamp(125px, 14vw, 180px); height: clamp(110px, 12vw, 155px); margin-bottom: 14px; transform: rotate(-6deg); }
.splash-emblem .bumper-symbol { width: 100%; height: 100%; filter: drop-shadow(0 7px 0 #32165377); }
.splash-wordmark { position: relative; font: 400 clamp(3.5rem, 7.6vw, 6.7rem)/.83 'Lilita One', sans-serif; letter-spacing: -.045em; text-align: center; -webkit-text-stroke: 6px #321653; paint-order: stroke fill; text-shadow: 0 8px 0 #321653; }
.splash-wordmark span { display: block; font-size: 1.1em; color: var(--menu-yellow); letter-spacing: .035em; }
.loading-track { position: relative; width: 185px; height: 8px; margin-top: 42px; background: #2c124d; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px #bc8fe552; }
.loading-track i { display: block; width: 38%; height: 100%; border-radius: 8px; background: var(--menu-yellow); animation: loading-pass 1.3s ease-in-out infinite alternate; }
#loading p { position: relative; color: #eadcf8; font-size: 1rem; line-height: 1.4; font-weight: 800; margin-top: 17px; }
@keyframes loading-pass { from { transform: translateX(-15%); } to { transform: translateX(178%); } }

/* Large, readable overlays without adding bulk to the arena HUD. */
dialog { width: min(620px, calc(100% - 36px)); max-width: 620px; max-height: calc(100svh - 40px); overflow-y: auto; padding: 30px; }
.dialog-head { gap: 20px; margin-bottom: 24px; }
.dialog-head h2 { font-size: 2.1rem; line-height: 1.1; }
.close { width: 44px; height: 44px; min-width: 44px; font-size: 30px; }
dialog .dialog-body, dialog .gesture-help { font-size: 1rem; line-height: 1.5; color: #63457b; }
dialog .button { min-height: 54px; font-size: 1.125rem; }
dialog .chip { min-height: 44px; font-size: 1rem; }
.keyboard-guide { display: grid; grid-template-columns: minmax(88px, auto) 1fr; align-items: center; gap: 18px 22px; }
.keyboard-guide > span { display: flex; gap: 6px; flex-wrap: wrap; font-size: 1.6rem; }
.keyboard-guide kbd { min-height: 35px; min-width: 35px; display: inline-grid; place-items: center; padding: 5px 8px; font: 1000 1rem 'Nunito', sans-serif; border: 2px solid #d2b5e8; border-radius: 8px; background: white; color: #52277a; box-shadow: 0 3px 0 #dfc9ee; }
.keyboard-guide > p { font-size: 1.0625rem; line-height: 1.45; color: #522e70; font-weight: 800; }
.camera-question h2 { font-size: 2rem; }
.camera-question p { font-size: 1.0625rem; line-height: 1.5; }
#toast { font-size: 1rem; max-width: min(90vw, 640px); }

/* These options are stored by the menu controller. */
body[data-high-contrast="on"] .menu-panel { background: #1f102f; border-color: white; box-shadow: 0 6px 0 black; }
body[data-high-contrast="on"] .menu-subtitle, body[data-high-contrast="on"] .menu-note, body[data-high-contrast="on"] .setting-row small, body[data-high-contrast="on"] .exit-panel p { color: white; }
body[data-high-contrast="on"] .menu-item, body[data-high-contrast="on"] .mode-card { color: #241235; border-color: white; background: white; }
body[data-high-contrast="on"] .menu-item.is-primary, body[data-high-contrast="on"] .mode-card.is-primary { background: #ffe14a; color: #241235; }
body[data-high-contrast="on"] .pilot-edit, body[data-high-contrast="on"] .menu-back { background: #1f102f; border-color: white; }
body[data-high-contrast="on"] .round-clock, body[data-high-contrast="on"] .quick-jump, body[data-high-contrast="on"] .match-exit, body[data-high-contrast="on"] .slap-controls button { background: #27123f; border: 2px solid white; }
body[data-high-contrast="on"] .quick-jump.selected { background: #ffe14a; color: #241235; }
body[data-text-size="large"] .menu-item { font-size: 1.85rem; }
body[data-text-size="large"] .menu-item.is-primary { font-size: 2.25rem; }
body[data-text-size="large"] .mode-card strong { font-size: 1.75rem; }
body[data-text-size="large"] .menu-subtitle, body[data-text-size="large"] .setting-row strong, body[data-text-size="large"] .keyboard-guide > p { font-size: 1.25rem; }
body[data-reduce-motion="on"] *, body[data-reduce-motion="on"] *::before, body[data-reduce-motion="on"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
body[data-reduce-motion="on"] .loading-track i { transform: translateX(80%); }
@media (prefers-reduced-motion: reduce) { .loading-track i { animation: none; transform: translateX(80%); } }
@media (min-width: 1700px) and (min-height: 900px) {
  body[data-mode="garage"] #app { top: 126px; bottom: 48px; }
  .menu-panel { width: 35rem; padding: 36px; }
  .menu-nav { gap: 15px; }
  .menu-item { min-height: 72px; font-size: 1.75rem; }
  .menu-item.is-primary { min-height: 86px; font-size: 2.2rem; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  body[data-mode="garage"] #app { left: 28px; right: 28px; }
  .menu-panel { width: min(46vw, 30rem); padding: 26px; }
  .menu-title { font-size: 2.6rem; }
  .menu-item { padding: 12px 16px; gap: 13px; font-size: 1.4rem; }
  .pilot-card { right: 3%; bottom: 3%; max-width: 42%; }
}
@media (max-height: 760px) and (min-width: 761px) {
  .topbar { height: 88px; padding-top: 14px; padding-bottom: 14px; }
  body[data-mode="garage"] #app { top: 92px; bottom: 24px; }
  .menu-panel { padding: 24px 28px; }
  .menu-heading { margin-bottom: 19px; }
  .menu-title { font-size: 2.3rem; }
  .menu-nav { gap: 10px; }
  .menu-item { min-height: 54px; font-size: 1.4rem; padding-top: 10px; padding-bottom: 10px; }
  .menu-item.is-primary { min-height: 64px; font-size: 1.85rem; }
  .mode-card { min-height: 86px; padding: 16px; }
}
@media (max-width: 760px) {
  .topbar { height: 80px; padding: 14px 20px; }
  .brand .bumper-symbol { width: 52px; height: 46px; }
  .brand-wordmark { font-size: 23px; }
  .brand-wordmark > span { font-size: 26px; letter-spacing: 2.5px; }
  body[data-mode="garage"] #app { inset: 85px 16px 18px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .front-shell { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: auto; min-height: 100%; padding-top: clamp(105px, 18svh, 180px); }
  .menu-panel { position: relative; z-index: 2; width: 100%; max-width: 500px; max-height: none; margin: 0 auto 5px; padding: 22px; border-radius: 23px; overflow: visible; }
  .menu-heading { margin-bottom: 20px; }
  .menu-title { font-size: 2.25rem; }
  .menu-kicker { font-size: .8125rem; }
  .menu-subtitle { font-size: 1rem; }
  .menu-nav { gap: 10px; }
  .menu-item { min-height: 56px; padding: 11px 16px; gap: 13px; font-size: 1.35rem; }
  .menu-item.is-primary { min-height: 66px; font-size: 1.8rem; }
  .menu-icon { width: 27px; height: 27px; }
  .pilot-card { position: absolute; top: 0; right: 0; bottom: auto; max-width: 49%; gap: 2px; align-items: flex-end; text-align: right; }
  .pilot-label { font-size: .75rem; }
  .pilot-card #hero-name { font-size: 1.5rem; }
  .pilot-edit { font-size: .875rem; min-height: 44px; margin-top: 6px; padding: 8px 11px; border-radius: 10px; }
  .menu-back { margin-bottom: 18px; }
  .mode-card { min-height: 94px; padding: 17px; gap: 4px 14px; }
  .mode-card strong { font-size: 1.35rem; }
  .mode-card small { font-size: .9375rem; }
  .pilot-editor .face-option { height: 90px; }
  .pilot-editor .colors-row { gap: 12px; }
  .pilot-editor .swatch { width: 38px; height: 38px; }
  .setting-row { padding: 18px 0; gap: 13px; }
  .setting-row strong { font-size: 1.1rem; }
  .setting-row small { font-size: .875rem; }
  .setting-row select { font-size: .9375rem; padding-left: 8px; }
  dialog { padding: 23px; }
  .dialog-head h2 { font-size: 1.8rem; }
  .keyboard-guide { gap: 17px 14px; grid-template-columns: 90px 1fr; }
  .keyboard-guide > p { font-size: 1rem; }
  .keyboard-guide kbd { min-width: 33px; padding: 5px 6px; font-size: .9375rem; }
  body[data-mode="game"] .topbar .nav-actions { gap: 9px; }
  body[data-mode="game"] .keyboard-help { display: flex !important; }
  body[data-text-size="large"] .menu-item { font-size: 1.6rem; }
  body[data-text-size="large"] .menu-item.is-primary { font-size: 2rem; }
}
@media (max-width: 380px) {
  .menu-panel { padding: 20px 18px; }
  .menu-item { font-size: 1.25rem; gap: 10px; }
  .pilot-editor .colors-row { gap: 10px; padding-left: 0; padding-right: 0; }
  .pilot-editor .swatch { width: 34px; height: 34px; }
  .settings-actions { flex-wrap: wrap; }
  .settings-actions > * { min-width: 120px; }
}
@media (max-height: 520px) and (min-width: 600px) {
  body[data-mode="garage"] #app { inset: 18px 20px; overflow-y: auto; }
  body[data-mode="garage"] .topbar { display: none; }
  .front-shell { display: block; min-height: 100%; height: auto; padding-top: 0; }
  .menu-panel { width: min(58%, 440px); max-width: none; max-height: none; margin: 0; padding: 22px; }
  .pilot-card { top: auto; bottom: 20px; right: 4%; max-width: 35%; }
  .menu-item { min-height: 50px; }
}

/* Invitation and nested content share the same readable menu rhythm. */
.mode-list.play-actions { grid-template-columns: 1fr; margin-top: 0; }
.mode-card > span:last-child { display: grid; gap: 5px; }
.mode-card .mode-icon { grid-row: auto; }
.mode-card strong, .mode-card small { display: block; }
.settings-actions { flex-direction: column; }
.settings-actions .menu-note { margin-top: 3px; text-align: center; }
.invitation-code { padding: 18px 12px; margin: 2px 0 22px; border: 2px dashed #b98bd9; border-radius: 15px; text-align: center; color: var(--menu-yellow); background: #331651; font: 1000 clamp(2rem, 4vw, 3rem)/1.2 'Nunito', sans-serif; letter-spacing: .16em; }
.menu-panel .modal-error { color: #ffd3e8; font-size: 1rem; line-height: 1.5; min-height: 0; margin-top: 14px; }
.menu-panel .modal-error:empty { display: none; }
.menu-panel > .menu-item + .menu-item { margin-top: 12px; }
.menu-title:focus { outline: none; }

[hidden] { display: none !important; }
/* One quiet entry point during a match; options live inside the menu. */
.game-menu-trigger {
  min-width: 90px;
  min-height: 46px;
  padding: 10px 19px;
  border: 2px solid #ffffffd9;
  border-radius: 13px;
  color: white;
  background: #55268dde;
  box-shadow: 0 3px 0 #32165477;
  font: 1000 1.0625rem/1.2 'Nunito', sans-serif;
  backdrop-filter: blur(12px);
}
.game-menu-trigger:hover { background: #7138a8; }
.game-menu-trigger:focus-visible { outline: 4px solid #ffe14a; outline-offset: 4px; }
.game-menu-trigger:active { transform: translateY(2px); box-shadow: 0 1px 0 #32165477; }
body[data-mode="game"] .nav-actions, body[data-mode="lobby"] .nav-actions { display: flex; }
dialog:has(.game-menu-nav), dialog:has(.settings-list) {
  width: min(500px, calc(100% - 36px));
  color: white;
  background: linear-gradient(145deg, #542489, #371859);
  border: 2px solid #c69be7;
  box-shadow: 0 7px 0 #291345, 0 22px 70px #28104466;
}
dialog:has(.game-menu-nav) .dialog-head h2, dialog:has(.settings-list) .dialog-head h2 { color: white; }
dialog:has(.game-menu-nav) .close, dialog:has(.settings-list) .close { color: white; border: 2px solid #b98adc; background: #3c1b61; }
.game-menu-nav { display: grid; gap: 12px; }
.game-menu-nav .menu-item { min-height: 60px; font-size: 1.35rem; justify-content: center; text-align: center; }
.game-menu-nav .menu-item:first-child { color: #3c2052; background: #ffe14a; border-color: #fff1ab; box-shadow: 0 4px 0 #a47820; }
.game-menu-note { color: #e2d2f4; text-align: center; font-size: .9375rem; line-height: 1.5; margin-top: 23px; }
.game-menu-back { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 15px; border: 2px solid #b98adc; border-radius: 12px; background: #3c1b61; color: white; font-size: 1rem; line-height: 1.2; font-weight: 900; margin-top: 22px; }
.game-menu-back:hover { background: #7338a9; }
dialog:has(.settings-list) .button.secondary { min-height: 52px; color: white; border: 2px solid #c69be7; background: #7338a9; }
dialog:has(.settings-list) .menu-note { color: #e2d2f4; }
dialog:has(.settings-list) .settings-actions { gap: 12px; }

/* The tutorial uses the real pilot. Every keycap is also a touch target. */
.practice-controls { display: grid; gap: 14px; margin: 24px 0 20px; }
body[data-menu="tutorial"] .menu-kicker { display: none; }
.practice-key-row { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 14px; align-items: center; }
.practice-key-row button[data-practice-key] {
  min-width: 54px;
  min-height: 54px;
  padding: 11px 14px;
  border: 2px solid #e6cff5;
  border-radius: 11px;
  background: #fff7ff;
  color: #4a236b;
  box-shadow: 0 4px 0 #28133f;
  font: 1000 1.2rem/1.2 'Nunito', sans-serif;
  user-select: none;
  touch-action: none;
}
.practice-key-row button[data-practice-key]:hover { border-color: #ffe14a; background: white; }
.practice-key-row button[data-practice-key]:active,
.practice-key-row button[data-practice-key].is-active,
.practice-key-row button[data-practice-key][aria-pressed="true"] {
  color: #3c2052;
  background: #ffe14a;
  border-color: #fff1ab;
  box-shadow: 0 1px 0 #a47820;
  transform: translateY(3px);
}
.practice-key-label { min-width: 0; color: #e2d2f4; font-size: 1rem; line-height: 1.4; font-weight: 800; }
.practice-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 14px 16px; border: 1px solid #d0ace958; border-radius: 12px; background: #2d144a; color: #fff7ff; font-size: 1rem; line-height: 1.4; font-weight: 900; }
.practice-status strong, .practice-status b { color: #ffe14a; }
.practice-status:empty { display: none; }
body[data-high-contrast="on"] .game-menu-trigger, body[data-high-contrast="on"] dialog:has(.game-menu-nav), body[data-high-contrast="on"] dialog:has(.settings-list) { background: #1f102f; border-color: white; }
body[data-high-contrast="on"] .game-menu-note, body[data-high-contrast="on"] .practice-key-label { color: white; }
body[data-text-size="large"] .game-menu-nav .menu-item { font-size: 1.6rem; }
body[data-text-size="large"] .practice-status, body[data-text-size="large"] .practice-key-label { font-size: 1.125rem; }
@media (max-width: 760px) {
  .game-menu-trigger { min-width: 80px; min-height: 44px; padding: 9px 14px; font-size: 1rem; }
  .practice-controls { margin: 20px 0 4px; gap: 12px; }
  .practice-key-row { grid-template-columns: 3.5rem minmax(0, 1fr); gap: 8px; }
  .practice-key-row button[data-practice-key] { min-width: 44px; min-height: 48px; padding: 10px; font-size: 1.0625rem; }
  .practice-status { padding: 12px 14px; font-size: .9375rem; }
  body[data-menu="tutorial"] .front-shell { padding-top: clamp(150px, 25svh, 230px); }
  .game-menu-nav .menu-item { min-height: 56px; font-size: 1.25rem; }
}
@media (max-width: 380px) {
  .practice-key-row { gap: 8px; }
  .practice-key-row button[data-practice-key] { min-width: 44px; min-height: 48px; padding-left: 9px; padding-right: 9px; }
}
@media (max-height: 520px) and (min-width: 600px) {
  body[data-menu="tutorial"] .front-shell { padding-top: 0; }
}
/* Letter keys and arrow keys are alternative pairs, never one four-key chord. */
.practice-key-options { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.practice-key-pair, .keyboard-guide .key-choice { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 7px; flex: 0 0 auto; }
.key-alternative { flex: 0 0 auto; font: 800 1rem/1.3 'Nunito', sans-serif; text-transform: lowercase; }
.practice-key-options .key-alternative { color: #e2d2f4; padding: 0 2px; }
.keyboard-guide .key-alternative { color: #705481; padding: 0 2px; }
body[data-high-contrast="on"] .practice-key-options .key-alternative { color: white; }

/* The practice meter uses the same yellow fill and empty dark track as play. */
.practice-power { display: grid; gap: 10px; margin: 22px 0 12px; }
.practice-power-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: white; font-size: 1rem; line-height: 1.4; font-weight: 900; }
.practice-power-label strong { color: #ffe444; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.practice-power-track { display: block; width: 100%; height: 12px; overflow: hidden; border: 1.5px solid #ffffffb0; border-radius: 8px; background: #29143f; }
.practice-power-track > span { display: block; height: 100%; width: 0; border-radius: 6px; background: #ffe444; }
.practice-jump-status { margin-top: 12px; color: #e2d2f4; font-size: 1rem; line-height: 1.4; font-weight: 800; }
body[data-high-contrast="on"] .practice-power-track { background: #100719; border-color: white; }
body[data-high-contrast="on"] .practice-jump-status { color: white; }
body[data-text-size="large"] .practice-power-label, body[data-text-size="large"] .practice-jump-status { font-size: 1.125rem; }
/* Waiting room and results use the same clear scale as the main menu. */
body[data-mode="lobby"] #app { inset: 105px 24px 28px; }
.room-panel.room-panel-centered, .finish-panel.finish-panel-centered {
  position: absolute; left: 50%; top: 50%; bottom: auto;
  transform: translate(-50%, -50%);
  width: min(100%, 620px); max-width: 620px; max-height: 100%;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  scrollbar-color: #c49ae3 #361856;
  padding: 28px 32px; border: 2px solid #c69be7; border-radius: 27px;
  background: linear-gradient(145deg, #542489f5, #371859fa); color: white;
  box-shadow: 0 7px 0 #291345, 0 22px 48px #28104438;
}
.room-panel-centered .room-title, .finish-panel-centered h1 {
  color: white; text-align: center; text-shadow: none; text-transform: none;
  font: 400 clamp(2.1rem, 3vw, 2.75rem)/1.1 'Lilita One', sans-serif;
  margin: 0 0 20px; overflow-wrap: anywhere;
}
.room-panel-centered .room-code {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin: 0 0 22px; padding: 15px 20px; border: 1px solid #b98adc;
  border-radius: 15px; background: #2d144b;
}
.room-panel-centered .room-code > span { color: #eadcf7; font-size: 1rem; font-weight: 800; letter-spacing: 0; }
.room-panel-centered .room-code > strong { color: #ffe14a; font-size: 2.4rem; line-height: 1.2; font-weight: 1000; letter-spacing: .14em; }
.room-roster-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.room-roster-heading h2 { color: white; font-size: 1.125rem; line-height: 1.4; font-weight: 1000; }
.room-roster-heading > span { color: #eadcf7; font-size: 1rem; font-weight: 900; }
.room-panel-centered .player-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 16px; }
.room-panel-centered .player-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 10px; row-gap: 2px; align-items: center; min-height: 64px; padding: 9px 11px; border-radius: 13px; color: #432064; background: #f4eafa; }
.room-panel-centered .player-avatar { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 10px; }
.room-panel-centered .player-row strong { color: #432064; font-size: 1rem; line-height: 1.3; font-weight: 1000; }
.room-panel-centered .player-row:not(:has(small)) strong { grid-row: 1 / span 2; }
.room-panel-centered .player-row small { color: #705481; font-size: .875rem; line-height: 1.2; font-weight: 800; margin-left: 0; }
.room-panel-centered .room-bottom { color: #eadcf7; font-size: 1rem; line-height: 1.45; text-align: left; margin: 0 0 18px; }
.room-panel-centered .room-bottom:empty { display: none; }
.room-options { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 14px; margin: 0 0 20px; }
.room-panel-centered .bots-setting { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 7px; margin: 0; color: #eadcf7; font-size: 1rem; font-weight: 800; }
.room-panel-centered .bots-setting select { width: 100%; min-height: 44px; padding: 8px 12px; border: 2px solid #c49ae3; border-radius: 10px; color: #432064; background: #fff7ff; font-size: 1rem; font-weight: 900; }
.room-panel-centered .button, .finish-panel-centered .button { min-height: 52px; padding: 13px 18px; border-radius: 13px; font-size: 1.125rem; line-height: 1.3; font-weight: 1000; margin: 0; }
.room-panel-centered .button.primary, .finish-panel-centered .button.primary { background: #ffe14a; border: 2px solid #fff1ab; color: #3c2052; box-shadow: 0 4px 0 #a47820; text-shadow: none; }
.room-panel-centered .button.secondary, .finish-panel-centered .button.secondary { background: #813fc0; border: 2px solid #c49ae3; color: white; box-shadow: 0 3px 0 #291345; }
.room-panel-centered .button.ghost, .finish-panel-centered .button.ghost { background: #3c1b61; border: 2px solid #b98adc; color: white; }
.room-panel-centered .room-edit { font-size: 1rem; }
.room-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.room-actions .button.primary { grid-column: 1 / -1; min-height: 58px; font-size: 1.35rem; }
.room-panel-centered #reconnect { margin: 0 0 18px; }
.room-panel-centered button:focus-visible, .room-panel-centered select:focus-visible, .finish-panel-centered button:focus-visible { outline: 4px solid #ffe14a; outline-offset: 5px; }
.room-panel-centered .button.primary:focus-visible, .finish-panel-centered .button.primary:focus-visible { outline-color: white; }
.finish-panel-centered { text-align: center; }
.finish-panel-centered > p { color: #eadcf7; font-size: 1.125rem; line-height: 1.5; margin: 0 0 12px; }
.finish-panel-centered .scoreboard { margin: 22px 0; }
.finish-panel-centered .score-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; color: #f4e8ff; font-size: 1rem; border-top: 1px solid #ffffff36; }
.finish-panel-centered .score-row span { min-width: 0; overflow-wrap: anywhere; }
.finish-panel-centered .score-row strong { color: #ffe14a; white-space: nowrap; }
.finish-panel-centered .button + .button { margin-top: 12px; }

/* Camera is a clear choice before entering, with both options equally readable. */
dialog:has(.camera-setup) { width: min(540px, calc(100% - 36px)); max-width: 540px; padding: 32px; border: 2px solid #c69be7; background: linear-gradient(145deg, #542489, #371859); color: white; }
.camera-setup { text-align: center; }
.camera-setup-title h2 { color: white; font: 400 clamp(1.9rem, 3vw, 2.4rem)/1.15 'Lilita One', sans-serif; text-wrap: balance; }
.camera-setup > p { margin: 16px 0 24px; color: #eadcf7; font-size: 1.125rem; line-height: 1.5; }
.camera-setup-actions { display: grid; gap: 13px; }
.camera-setup-actions .button { width: 100%; min-height: 56px; padding: 14px 18px; font-size: 1.125rem; line-height: 1.3; }
.camera-setup-actions .button.primary { color: #3c2052; background: #ffe14a; border: 2px solid #fff1ab; box-shadow: 0 4px 0 #a47820; text-shadow: none; }
.camera-setup-actions .button.secondary, .camera-setup-actions .button.ghost { color: white; background: #4a2275; border: 2px solid #b98adc; box-shadow: 0 3px 0 #291345; }
.camera-setup-actions .button:focus-visible { outline: 4px solid #ffe14a; outline-offset: 5px; }
.camera-setup-actions .button.primary:focus-visible { outline-color: white; }
.camera-setup .camera-setup-message { margin: 20px 0 0; padding: 12px 14px; color: #ffe9f6; background: #2d144b; border-radius: 10px; font-size: 1rem; line-height: 1.5; }
.camera-setup .camera-setup-message:empty { display: none; }
body[data-high-contrast="on"] .room-panel-centered, body[data-high-contrast="on"] .finish-panel-centered, body[data-high-contrast="on"] dialog:has(.camera-setup) { background: #1f102f; border-color: white; }
body[data-high-contrast="on"] .room-panel-centered .room-bottom, body[data-high-contrast="on"] .room-panel-centered .bots-setting, body[data-high-contrast="on"] .camera-setup > p { color: white; }
body[data-text-size="large"] .room-panel-centered .player-row strong, body[data-text-size="large"] .room-panel-centered .room-bottom, body[data-text-size="large"] .room-panel-centered .button, body[data-text-size="large"] .camera-setup .button { font-size: 1.25rem; }
@media (max-width: 760px) {
  body[data-mode="lobby"] #app { inset: 88px 16px 22px; }
  .room-panel.room-panel-centered, .finish-panel.finish-panel-centered { width: 100%; max-width: 560px; padding: 23px; border-radius: 22px; }
  .room-panel-centered .room-title, .finish-panel-centered h1 { font-size: 2.1rem; margin-bottom: 18px; }
  .room-panel-centered .room-code { gap: 12px; padding: 13px 14px; margin-bottom: 20px; }
  .room-panel-centered .room-code > strong { font-size: 2rem; letter-spacing: .1em; }
  .room-panel-centered .player-list { grid-template-columns: 1fr; gap: 9px; }
  .room-panel-centered .player-row { min-height: 60px; padding: 8px 12px; }
  .room-panel-centered .player-row strong { font-size: 1.0625rem; }
  .room-options { gap: 12px; }
  .room-panel-centered .button, .finish-panel-centered .button { min-height: 50px; padding: 12px; font-size: 1.0625rem; }
  .room-panel-centered .room-edit { font-size: 1rem; }
  .room-actions { gap: 11px; }
  .room-actions .button.primary { min-height: 56px; font-size: 1.25rem; }
  dialog:has(.camera-setup) { padding: 27px 23px; }
}
@media (max-width: 380px) {
  .room-panel.room-panel-centered, .finish-panel.finish-panel-centered { padding: 20px 18px; }
  .room-panel-centered .room-code { flex-direction: column; gap: 5px; }
  .room-options { grid-template-columns: 1fr; }
  .finish-panel-centered .score-row { gap: 10px; font-size: .9375rem; }
}
/* Jump and ready each have their own row, aligned with direction and force. */
.practice-ready-row .practice-key-options > button[data-practice-key] { width: 100%; min-height: 54px; font-size: 1.0625rem; letter-spacing: .04em; }
@media (max-width: 760px) {
  .practice-controls { gap: 10px; }
  .practice-key-options { gap: 6px; }
  .practice-key-pair { gap: 5px; }
  .practice-ready-row .practice-key-options > button[data-practice-key] { min-height: 48px; }
}
