@font-face{font-family:Bravura;src:url('/Bravura.woff2') format('woff2');font-display:block}
:root{--paper:#0b111b;--ink:#eaf0f8;--muted:#a0aec1;--blue:#64d8eb;--line:#293547;--lime:#57e7a4;--pink:#ff77a4;--red:#ff7889;--green:#57e7a4}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}button,select{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none;touch-action:manipulation}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--blue);outline-offset:5px}button,a,select{-webkit-tap-highlight-color:transparent}a{color:var(--blue)}[hidden]{display:none!important}.masthead{height:112px;max-width:1450px;margin:auto;padding:0 5.5%;display:flex;align-items:center;justify-content:space-between}.logo{font-size:31px;line-height:1;font-weight:650;letter-spacing:-1.2px;text-decoration:none;color:var(--ink);display:flex;align-items:center;gap:8px}.logo span{font-size:32px;color:var(--blue);font-weight:400}.masthead nav{display:flex;gap:30px}.nav{font-size:17px;font-weight:600;padding:8px 0;position:relative;color:var(--muted)}.nav.active{color:var(--ink)}.nav.active:after{content:'';height:3px;position:absolute;bottom:0;left:0;right:0;background:var(--blue);border-radius:2px}.tools{display:flex;align-items:center;gap:15px}.icon-button{width:33px;height:33px;font-size:23px;font-weight:600;padding:4px;display:grid;place-items:center}.icon-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.icon-button[aria-pressed=false]{opacity:.35}.lobby{max-width:1000px;margin:50px auto 80px;padding:0 30px}.practice-switch{display:flex;justify-content:center;gap:38px;margin-bottom:64px}.practice-switch button{font-size:clamp(24px,3.5vw,40px);font-weight:500;letter-spacing:-1.2px;color:#8290a6;padding:0;position:relative;line-height:1.3}.practice-switch button[aria-pressed=true]{color:var(--blue)}.practice-switch button[aria-pressed=true]:after{position:absolute;content:'';left:0;right:0;bottom:-11px;height:4px;background:var(--blue);border-radius:4px}.setup{max-width:480px;margin:auto;text-align:center}.instrument-label{display:block;font-size:14px;color:var(--muted);text-align:left;margin-bottom:2px}select{border:0;border-bottom:1px solid #aab1c0;background:transparent;border-radius:0;padding:12px 24px 12px 0;width:100%;font-size:17px;cursor:pointer}#instrument{font-size:29px;font-weight:500;letter-spacing:-.7px;margin-bottom:28px}.earned-levels{min-height:38px;display:flex;justify-content:center;align-items:center;gap:20px;margin-bottom:17px}.level-choice{padding:5px 0;font-size:17px;color:var(--muted);border-bottom:2px solid transparent}.level-choice[aria-pressed=true]{border-bottom-color:var(--ink);color:var(--ink)}.single-level{font-size:18px;font-weight:550}.round-spec{display:flex;justify-content:center;gap:15px;color:var(--muted);font-size:16px;margin-bottom:27px}.round-spec>span[aria-hidden]{color:#596a81}.begin{display:inline-flex;align-items:center;justify-content:center;gap:32px;background:var(--blue);color:#07151d;font-size:21px;font-weight:650;border-radius:60px;padding:19px 48px;min-width:235px;box-shadow:0 8px 0 #172c3a;transition:transform .12s,box-shadow .12s}.begin svg{width:16px;height:19px;fill:currentColor}.begin:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 0 #172c3a}.begin:active:not(:disabled){transform:translateY(4px);box-shadow:0 4px 0 #172c3a}.unlock-rule{font-size:14px;color:var(--muted);margin:28px 0 0}.status{font-size:14px;color:var(--muted);min-height:21px}.status.error{color:var(--red)}.rhythm-select{display:flex;justify-content:center;gap:28px;margin:0 0 28px}.rhythm-select button,.scope button{color:var(--muted);border-bottom:2px solid transparent;padding:6px 0}.rhythm-select button[aria-pressed=true],.scope button[aria-pressed=true]{color:var(--blue);border-color:var(--blue)}footer{max-width:1450px;margin:0 auto;padding:20px 5.5%;display:flex;justify-content:space-between;font-size:13px;color:var(--muted)}.text-button{font-size:14px;color:var(--muted);padding:7px 0;text-underline-offset:4px}.text-button:hover{text-decoration:underline}.arena{max-width:1160px;margin:16px auto 60px;padding:0 40px}.game-top{display:flex;align-items:center;justify-content:space-between;font-size:14px;color:var(--muted);gap:20px}.game-top .text-button{font-size:14px}.race-track{height:3px;background:var(--line);margin-top:17px}.race-track>div{height:100%;width:0;background:var(--blue)}.game-metrics{display:flex;align-items:center;justify-content:space-between;margin-top:20px;min-height:43px}#clock{font-size:30px;line-height:1;letter-spacing:-1px;font-variant-numeric:tabular-nums}#clock span{font-size:15px;margin-left:4px;color:var(--muted)}.streak{font-size:16px;color:var(--blue)}.prompt{min-height:270px;display:flex;align-items:center;justify-content:center}.notation{width:min(100%,820px);height:300px;overflow:visible}.notation .music{font-family:Bravura;font-size:100px}.fingerdiagram{width:240px;height:300px;overflow:visible}.answers{display:flex;justify-content:center;align-items:stretch;gap:13px;margin:9px auto 0;max-width:840px}.answer{flex:1;min-width:0;max-width:105px;min-height:84px;border:0;border-bottom:2px solid #536078;font-size:32px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:#142031;border-radius:12px 12px 0 0;user-select:none}.answer:hover:not(:disabled){background:#1a293c;color:var(--blue);border-color:var(--blue)}.answer:active:not(:disabled){background:var(--blue);color:#07151d}.answer kbd{font:12px -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--muted)}.answer:active kbd{color:#07151d}.valve-stack{display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:22px;line-height:1.1;min-height:74px}.answer.brass{min-height:126px;gap:5px}.feedback{text-align:center;min-height:28px;font-size:15px;margin:20px 0;color:var(--red)}.tap-answer{max-width:500px;width:500px;background:var(--blue);color:#07151d;min-height:80px;border-radius:50px;border:0;font-size:24px}.tap-answer kbd{color:#163c47}.tap-answer:hover:not(:disabled){background:#9be7f3;color:#07151d}.tap-beat{text-align:center;font-size:20px;color:var(--blue);height:30px;margin-top:20px}.finish{max-width:950px;margin:70px auto 50px;text-align:center;padding:0 28px;position:relative}.result-kicker{color:var(--blue);font-size:16px;margin-bottom:18px}.finish h1{font-size:clamp(35px,6vw,68px);line-height:1.08;letter-spacing:-2px;font-weight:700;margin:0 auto 35px;max-width:850px}.result-metrics{display:flex;justify-content:center;gap:70px;margin:40px 0 25px}.result-metrics strong{display:block;font-size:43px;line-height:1.1;letter-spacing:-1px;font-weight:600}.result-metrics span{display:block;font-size:13px;color:var(--muted);margin-top:8px}.finish>p{color:var(--muted);max-width:580px;margin:24px auto}.result-actions{display:flex;justify-content:center;align-items:center;gap:20px;margin-top:35px;flex-wrap:wrap}.result-actions .begin{font-size:18px;min-width:185px;padding:15px 28px}.finish details{text-align:left;max-width:650px;margin:38px auto}.finish summary{cursor:pointer;border-bottom:1px solid var(--line);padding-bottom:10px}.miss{display:flex;align-items:center;gap:18px;border-bottom:1px solid var(--line);padding:10px 0;font-size:15px}.miss .notation{width:170px;height:90px}.miss .fingerdiagram{height:160px;width:120px}.miss-answer{font-size:14px;color:var(--muted)}.stats-page{max-width:1130px;margin:42px auto 80px;padding:0 35px}.stats-heading{display:flex;align-items:center;justify-content:space-between}.stats-heading h1{font-size:61px;line-height:1;letter-spacing:-2px;font-weight:650;margin:0}.scope{display:flex;gap:24px;font-size:17px}.stats-filters{display:flex;gap:35px;margin:45px 0}.stats-filters label{font-size:13px;color:var(--muted);width:240px}.stats-filters select{color:var(--ink);padding:8px 20px 8px 0;font-size:16px}.stat-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:20px;border-block:1px solid var(--line);padding:30px 0 36px}.stat-grid strong{display:block;font-size:44px;line-height:1.1;letter-spacing:-1.5px;font-weight:600}.stat-grid span{font-size:14px;color:var(--muted);display:block;margin-top:10px}.history-head{display:flex;align-items:center;justify-content:space-between;margin-top:34px}.history-head h2{font-size:21px;font-weight:550}.history table{width:100%;border-collapse:collapse;font-size:15px}.history th{text-align:left;color:var(--muted);font-size:13px;font-weight:400;padding:12px 0}.history td{border-top:1px solid var(--line);padding:17px 0}.history th:not(:first-child),.history td:not(:first-child){text-align:right}.history td strong{font-weight:550}.history td small{display:block;color:var(--muted);font-size:12px}.empty{color:var(--muted);padding:35px 0;font-size:17px}.reward-star{font-size:18px;color:var(--blue)}dialog{border:0;border-radius:18px;padding:35px;background:var(--paper);color:var(--ink);max-width:530px;width:calc(100% - 36px);max-height:85vh;overflow:auto;box-shadow:0 20px 120px #141b4240}dialog::backdrop{background:#11162a65;backdrop-filter:blur(5px)}dialog h2{font-size:32px;letter-spacing:-1px;font-weight:650;margin:0 0 24px}dialog p{color:var(--muted);font-size:16px}dialog .begin{font-size:18px;min-width:160px;padding:14px 25px}#pauseDialog{text-align:center}#pauseDialog .text-button{display:block;margin:20px auto 0}.dialog-close{float:right;font-size:27px;line-height:1;padding:0 3px}.key{font:13px -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;padding:2px 5px;background:#1b2b40;border-radius:4px}.muted{color:var(--muted)}#celebration{position:fixed;inset:0;width:100%;height:100%;z-index:30;pointer-events:none}#answerSplash{position:fixed;inset:0;pointer-events:none;z-index:-1}.splash-bubble{position:absolute;width:70px;height:70px;border-radius:50%;opacity:.7;animation:splash .48s ease-out forwards}@keyframes splash{from{transform:scale(.3);opacity:.8}to{transform:translate(var(--x),var(--y)) scale(2.4);opacity:0}}.screen-reader{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:800px){.masthead{height:90px;padding:0 25px}.logo{font-size:30px}.lobby{margin:45px auto 55px}.practice-switch{gap:25px;margin-bottom:48px}.practice-switch button{font-size:34px}.arena{padding:0 24px;margin-top:10px}.notation{height:270px}.prompt{min-height:250px}.answers{gap:8px}.answer{font-size:29px}.stats-page{padding:0 25px}.stat-grid strong{font-size:34px}.result-metrics{gap:45px}.finish{margin-top:45px}.tools{gap:9px}}
@media(max-width:540px){.masthead{height:85px;padding:0 20px}.masthead nav{gap:22px}.nav{font-size:15px}.logo{font-size:28px}.logo span{font-size:25px}.tools{gap:5px}.icon-button{width:28px;height:28px;font-size:21px}.icon-button svg{width:21px;height:21px}.lobby{padding:0 25px;margin:42px auto 40px}.practice-switch{gap:22px;justify-content:space-between;margin-bottom:46px}.practice-switch button{font-size:29px;letter-spacing:-1px}#instrument{font-size:28px;margin-bottom:22px}.begin{font-size:20px;min-width:220px;padding:18px 35px}.unlock-rule{font-size:13px;max-width:300px;margin:27px auto 0}.arena{padding:0 18px}.game-top{font-size:12px;gap:8px}.game-metrics{margin-top:16px}.notation{height:244px}.prompt{min-height:240px}.answers{gap:4px}.answer{min-height:78px;font-size:26px;border-radius:7px 7px 0 0}.answer kbd{font-size:10px}.answer.brass{min-height:115px}.valve-stack{font-size:20px}.feedback{font-size:14px;min-height:42px;margin-top:18px}.finish{margin:38px auto;padding:0 20px}.finish h1{letter-spacing:-1.3px;font-size:42px}.result-metrics{gap:28px;margin:30px 0}.result-metrics strong{font-size:34px}.result-metrics span{font-size:12px}.result-actions{gap:16px}.result-actions .begin{min-width:140px;font-size:17px}.stats-heading h1{font-size:48px}.stats-page{padding:0 20px;margin-top:38px}.scope{font-size:16px;gap:20px}.stats-filters{gap:22px;margin:32px 0}.stats-filters label{width:50%}.stats-filters select{font-size:15px}.stat-grid{grid-template-columns:1fr 1fr;gap:28px;padding:25px 0}.stat-grid strong{font-size:36px}.history table{font-size:13px}.history th{font-size:12px}footer{padding:16px 20px;font-size:12px}.earned-levels{gap:16px}.level-choice{font-size:15px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}.splash-bubble{display:none}}

.answers.many{flex-wrap:wrap}.answers.many .answer{flex:1 1 70px;max-width:90px}
#answerSplash{z-index:0}main,.masthead,footer{position:relative;z-index:1}

.fingerdiagram{width:min(100%,450px);height:320px}.answer-value{display:contents}

.answer:not(.tap-answer){background:transparent;border-radius:0}.answer:not(.tap-answer):hover{background:#1a293c}.notation{height:330px}@media(max-width:540px){.notation{height:250px}}
@media(max-width:540px){.practice-switch{gap:12px}.practice-switch button{font-size:clamp(22px,7vw,29px)}}
@media(max-width:540px) and (max-height:720px){.lobby{margin-top:22px}.practice-switch{margin-bottom:28px}#instrument{margin-bottom:12px}.round-spec{margin-bottom:15px}}

.answers.note-answers{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px 13px}.note-answers .answer{width:100%;max-width:none;min-height:62px;font-size:29px}.arena:has(.note-answers) .prompt{min-height:230px}.arena:has(.note-answers) .notation{height:280px}
@media(max-width:540px){.arena:has(.note-answers){padding-inline:8px}.answers.note-answers{gap:8px 3px}.note-answers .answer{min-height:52px;font-size:24px}.arena:has(.note-answers) .prompt{min-height:180px}.arena:has(.note-answers) .notation{height:200px}.arena:has(.note-answers) .game-top,.arena:has(.note-answers) .game-metrics{margin-inline:10px}}

:root{color-scheme:dark}body{background:radial-gradient(ellipse at 50% 0,#142135 0,transparent 55%),var(--paper);min-height:100vh}button,select,input{font-family:inherit}select option{background:#111c2a;color:var(--ink)}.begin{color:#06141b;font-weight:650;box-shadow:none}.begin:hover:not(:disabled){box-shadow:none;background:#98e6f2}.begin:active:not(:disabled){box-shadow:none}.practice-switch{gap:32px}.answer:not(.tap-answer):hover:not(:disabled){background:#1a293c}.answer:active:not(:disabled){background:var(--blue);color:#07151d}.answer-value{line-height:1.25}.answer{font-weight:450}.answer kbd{color:inherit;opacity:.6}.feedback{max-width:840px;margin:20px auto 0;color:var(--red);font-size:16px}.answer.is-wrong,.answer.is-wrong:disabled{color:var(--red);border-color:var(--red);background:#44232e;opacity:1}.answer.is-correct,.answer.is-correct:hover:not(:disabled){color:var(--green);border:2px solid var(--green);background:#18362f;border-radius:5px}.answer:disabled:not(.is-wrong){opacity:.25}
#answerBorder{position:fixed;inset:0;z-index:60;pointer-events:none;border:0 solid transparent;transition:border-color .1s;box-shadow:inset 0 0 55px transparent}#answerBorder.right{border:7px solid var(--green);box-shadow:inset 0 0 38px #57e7a420}#answerBorder.wrong{border:7px solid var(--red);box-shadow:inset 0 0 38px #ff788930}#answerSplash{z-index:0}.masthead,main,footer{position:relative;z-index:1}
.tempo-controls{margin:0 0 26px;text-align:left}.tempo-controls label{display:flex;justify-content:space-between;font-size:15px;color:var(--muted)}.tempo-controls output{font-size:22px;line-height:1;color:var(--ink);font-variant-numeric:tabular-nums}.tempo-controls input{width:100%;accent-color:var(--blue);margin:20px 0 12px;cursor:pointer;height:24px}.tempo-stake{text-align:center;color:var(--green);font-size:15px}.round-points{color:var(--blue);font-size:19px;font-variant-numeric:tabular-nums}.tap-tools{display:flex;justify-content:center;gap:25px;align-items:center;margin:12px auto}.tap-tools .begin{min-width:160px;font-size:16px;padding:13px 22px}.result-points{color:var(--blue)!important;font-size:25px}.term-prompt{text-align:center;font-size:clamp(32px,6vw,60px);font-weight:500;line-height:1.2;letter-spacing:-1.5px;padding:25px}.answers.term-answers{display:grid;grid-template-columns:1fr 1fr;gap:14px;max-width:870px}.term-answers .answer{font-size:18px;text-align:left;align-items:flex-start;padding:18px 22px;max-width:none;min-height:95px;line-height:1.45}.term-review-item{padding:20px 0;border-bottom:1px solid var(--line)}.term-review-item strong{font-size:21px;font-weight:550}.term-review-item p{margin:8px 0;color:var(--muted)}.term-review-item a{font-size:14px}.fingerdiagram{width:min(100%,310px);height:335px}.fingerdiagram.instrument-flute{width:min(100%,640px);height:260px}.prompt:has(.fingerdiagram){min-height:340px}.finish h1{font-weight:550;letter-spacing:-1.6px}.stat-grid strong{font-size:38px;font-weight:500}.stat-grid span{font-size:13px}.key{color:var(--ink)}
dialog.victory{inset:0;margin:0;width:100vw;height:100dvh;max-width:none;max-height:none;border:0;border-radius:0;padding:0;background:#070b12;overflow:hidden;color:var(--ink)}dialog.victory::backdrop{background:#070b12}.victory #celebration{position:absolute;z-index:0}.victory-content{position:relative;z-index:1;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;text-shadow:0 3px 35px #000}.victory-content>p{font-size:20px;color:var(--ink);margin:0 0 20px}.victory h1{font-size:clamp(50px,10vw,120px);font-weight:600;letter-spacing:-.055em;line-height:1.02;max-width:1000px;margin:0 0 25px}.victory #victoryScore{font-size:40px;font-variant-numeric:tabular-nums}.victory .begin{margin-top:28px;min-width:165px;font-size:18px}
@media(max-width:800px){.practice-switch{gap:24px}.practice-switch button{font-size:30px}.stat-grid{grid-template-columns:repeat(3,1fr)}.stat-grid strong{font-size:34px}}
@media(max-width:540px){.practice-switch{display:grid;grid-template-columns:1fr 1fr;gap:20px 28px;margin-bottom:35px}.practice-switch button{font-size:28px;text-align:left;width:max-content}.practice-switch button[aria-pressed=true]:after{bottom:-5px;height:3px}.masthead nav{gap:18px}.logo{font-size:27px}.lobby{margin-top:25px}.fingerdiagram{height:290px}.fingerdiagram.instrument-flute{height:215px}.prompt:has(.fingerdiagram){min-height:300px}.prompt:has(.instrument-flute){min-height:230px}.answers.term-answers{grid-template-columns:1fr;gap:6px}.term-answers .answer{min-height:62px;font-size:16px;padding:13px 15px}.arena:has(.term-answers) .prompt{min-height:150px}.term-prompt{font-size:38px;padding:20px}.stat-grid{grid-template-columns:1fr 1fr}.feedback{font-size:14px;padding-inline:8px}.tap-tools{gap:16px}.tap-tools .begin{min-width:140px}.round-points{font-size:16px}.victory h1{font-size:58px}#answerBorder.right,#answerBorder.wrong{border-width:5px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.splash-bubble{display:none}.begin{transition:none}#answerBorder{transition:none}}

/* Rhythm examples remain fully visible through their preparation measure. */
.rhythm-notation{height:270px;max-width:780px}.rhythm-notation.multi-measure{height:350px;max-width:700px}.prompt:has(.multi-measure){min-height:350px}.tap-beat[data-phase=prepare]{color:var(--muted)}.tap-beat[data-phase=play]{color:var(--blue)}
.stats-filters{flex-wrap:wrap;gap:24px 35px}.stats-filters label{font-size:14px;flex:1 1 200px;max-width:310px}.stats-heading{gap:24px}.history .leaderboard th:first-child,.history .leaderboard td:first-child{width:65px}.history .leaderboard th:nth-child(2),.history .leaderboard td:nth-child(2){text-align:left}.history .leaderboard td small{font-size:13px}.your-standing{color:var(--blue);background:#64d8eb08}.ranking-gap td{text-align:center!important;padding:5px}.history .leaderboard td{padding-right:10px}
@media(max-width:650px){.stats-heading{align-items:flex-start;flex-direction:column;gap:24px}.scope{gap:24px}.stats-filters{gap:20px;margin-top:28px}.stats-filters label{min-width:0;flex-basis:40%;max-width:none}.rhythm-notation{height:auto;min-height:200px}.rhythm-notation.multi-measure{height:auto;min-height:0}.prompt:has(.multi-measure){min-height:240px}.history .leaderboard th:first-child,.history .leaderboard td:first-child{width:38px}.history .leaderboard td{font-size:14px;padding-right:5px}.history .leaderboard td small{font-size:12px}.history .leaderboard th{font-size:13px}}
.valve-controls{display:flex;gap:10px;align-items:center;margin:0 0 18px}.valve-controls button{padding:6px 13px;border:2px solid var(--ink);border-radius:3px 6px 4px 7px;font-size:17px;line-height:1.3}.valve-controls button[aria-pressed=true]{background:var(--ink);color:var(--paper)}.valve-controls button[aria-pressed=false]{opacity:.72}.valve-controls button:disabled{opacity:.4}

.notation .rhythm-flag{font-size:80px}

.piece-controls{text-align:left;margin:0 0 26px}.piece-controls label{font-size:14px;color:var(--muted)}.piece-controls select{font-size:22px;padding:10px 24px 10px 0}.piece-controls p{margin:8px 0 0;color:var(--muted);font-size:14px}.piece-controls p:empty{display:none}.game-top #gameContext{text-align:center;max-width:75%;text-wrap:balance}

.earned-levels{flex-wrap:wrap;row-gap:6px}

.access{max-width:430px;margin:70px auto 90px;padding:0 24px}.access h1{font-size:clamp(32px,5vw,44px);letter-spacing:-1px;font-weight:600;margin:0 0 28px}.access-tabs{display:flex;gap:28px;margin-bottom:35px}.access-tabs button{font-size:16px;color:var(--muted);padding:8px 0;border-bottom:2px solid transparent}.access-tabs button[aria-pressed=true]{border-color:var(--blue);color:var(--blue)}.access label{font-size:16px;color:var(--muted)}.code-entry{display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--muted);margin:8px 0 0}.code-entry input{color:var(--ink);background:transparent;border:0;outline-offset:5px;font:32px/1.5 ui-monospace,monospace;letter-spacing:.32em;width:100%;min-width:0;padding:10px 0}.code-entry button{font-size:16px;min-width:45px}.access #codeHint{color:var(--muted);font-size:14px;margin:16px 0 28px;line-height:1.6}.access .begin{width:100%;min-width:0}.term-prompt{display:flex;flex-direction:column;align-items:center;gap:18px}.term-pronunciation{font-size:clamp(17px,2.4vw,22px);font-weight:400;letter-spacing:.03em;color:var(--muted);line-height:1.4}.miss .term-pronunciation{font-size:14px}.miss .term-prompt{gap:8px}@media(max-width:540px){.access{margin-top:44px}.access-tabs{gap:24px}}

.name-invite{padding:20px 0;margin:16px 0;border-block:1px solid var(--line)}.name-invite p{margin:0 0 5px;font-size:16px;color:var(--blue)}.name-invite .text-button{font-size:16px;color:var(--ink)}.finish .name-invite{max-width:620px;margin:30px auto 0}#nameForm label{display:block;font-size:16px}#nameForm label span{display:block;font-size:14px;margin-top:4px}#leaderboardName{display:block;width:100%;padding:12px 0;margin:14px 0;background:transparent;border:0;border-bottom:1px solid var(--muted);border-radius:0;color:var(--ink);font:inherit;font-size:22px}#nameWarning{font-size:14px;line-height:1.6}.footer-links{display:flex;align-items:center;gap:22px}.footer-links>a{color:var(--muted);font-size:14px;text-decoration:none}.footer-links>a:hover{text-decoration:underline}

.rhythm-event{fill:currentColor}.rhythm-event[data-judgement=correct]{color:var(--green)}.rhythm-event[data-judgement=wrong]{color:var(--red)}.rhythm-mark{font:700 23px -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;fill:currentColor}

#googleSignInButton{display:flex;justify-content:center;min-height:44px;margin:1.25rem auto}#googleSignInStatus:empty{display:none}.access [hidden]{display:none!important}

/* Account controls share the game's existing palette, with readable form text. */
.racer-privacy .text-button{min-height:44px;margin:4px 14px 4px 0}.racer-privacy #saveRacerAlias{padding:10px 14px;border:1px solid var(--line)}.racer-privacy #saveRacerAlias:not(:disabled){background:var(--yellow,#ffe268);color:#102136;font-weight:600}
.access:has(#localAccess:not([hidden])){max-width:510px}.local-intro,.local-hint{line-height:1.5;color:var(--muted)}.local-intro{margin:0 0 20px;font-size:16px}.local-auth-form{display:grid;gap:20px}.local-field{position:relative;min-width:0}.local-field>label{display:block;margin-bottom:8px;color:var(--ink);font-size:16px}.local-field>input{display:block;box-sizing:border-box;width:100%;min-height:48px;padding:11px 12px;border:2px solid #7893a9;border-radius:0;background:#091725;color:#f5fafb;font:16px/1.4 ui-sans-serif,system-ui,sans-serif;letter-spacing:normal}.local-field>input:focus-visible{outline:3px solid var(--blue);outline-offset:3px}.local-field>input[aria-invalid=true]{border-color:var(--red)}.local-field>input:disabled{opacity:.55}.local-hint{font-size:14px;margin:8px 0 0}.password-field>input{padding-right:74px}.password-field>.password-visibility{position:absolute;right:9px;top:33px;min-width:55px;min-height:40px;margin:0;padding:6px;font-size:14px}.local-auth-links{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;margin-top:12px}.local-auth-links>.text-button{min-height:44px;text-align:left;font-size:16px}.local-auth-status{margin:0;line-height:1.5;font-size:15px}.local-auth-status:empty{display:none}.local-auth-form .begin{margin:0;min-height:48px}.access .operator-access{margin-top:20px;padding-top:14px;border-top:1px solid var(--line)}.operator-access #googleSignInButton{display:block;margin:0;min-height:0}.operator-access #googleSignInButton>.text-button{min-height:44px;font-size:14px;color:var(--muted)}.operator-access .local-hint{margin:0;font-size:13px}.local-account{margin:1.5rem 0;padding:1rem;border:2px solid currentColor}.local-account h2{margin-top:0}.local-account .local-account-username{overflow-wrap:anywhere;font-size:16px}.local-password-details>summary{cursor:pointer;padding:10px 0;min-height:24px}.local-password-details>.local-auth-form{max-width:430px;margin:16px 0 8px}.local-account[hidden]{display:none!important}@media(max-width:540px){.access:has(#localAccess:not([hidden])){margin-top:28px;padding-inline:16px}.local-auth-links{gap:4px 12px}.local-account{padding:14px}.password-field>.password-visibility{top:33px}}

.racer-privacy .racer-name-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;width:100%}.racer-privacy .racer-name-columns>label{display:block;min-width:0;width:auto;font-size:14px}.racer-privacy .racer-name-columns select{display:block;width:100%;min-width:0;min-height:48px;margin-top:6px;padding:8px 18px 8px 8px;border:2px solid var(--muted);background:#091725;color:var(--ink);font:16px/1.4 ui-sans-serif,system-ui,sans-serif;letter-spacing:0}.racer-name-preview{display:block;width:100%;margin:4px 0;padding:14px 10px;border-block:1px solid var(--line);font-size:clamp(19px,4vw,28px);font-weight:600;text-align:center;overflow-wrap:anywhere}.racer-privacy #racerCurrentName{width:100%;margin:0 0 6px;font-size:15px}.racer-name-columns select:focus-visible{outline:3px solid var(--blue);outline-offset:3px}@media(max-width:540px){.racer-privacy .racer-name-columns{gap:7px}.racer-privacy .racer-name-columns select{font-size:14px;padding-left:5px;padding-right:12px}.racer-privacy .racer-name-columns>label{font-size:13px}}

/* Google stays the primary sign-in choice; password accounts are optional. */
.local-access-options{margin:24px 0;padding-top:18px;border-top:1px solid var(--line)}.local-access-options>summary{cursor:pointer;min-height:44px;padding:8px 0;color:var(--ink);font-size:16px}.local-access-options>h2{font-size:22px;line-height:1.3;margin:20px 0 16px;letter-spacing:0}.google-access-form{width:100%;display:grid;gap:12px}.google-access-form input{box-sizing:border-box;width:100%;min-height:48px;padding:11px 12px;background:#091725;color:var(--ink);border:2px solid #7893a9;border-radius:0;font:16px/1.4 ui-sans-serif,system-ui,sans-serif}.google-access-form .local-hint{margin:0}.google-access-form .begin{font-size:18px;padding:15px 20px}.google-access-actions{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 18px}.google-access-actions .text-button{font-size:14px;min-height:44px}#googleSignInButton{display:block}#googleSignInButton>div{margin-inline:auto}.google-cancel{margin-top:12px}

/* F-side combinations above the matching thumb-trigger combinations. */
.answers.double-horn-answers{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;width:100%}
.answers.double-horn-answers .answer{min-width:0;max-width:none;padding:5px 2px}
.answers.double-horn-answers .valve-stack{min-height:82px}

/* Paper, ink, and a few loud colors. Music keeps its engraved geometry. */
:root{color-scheme:light;--paper:#f8f5ec;--ink:#262a31;--muted:#65625b;--blue:#1659a4;--line:#c7c0af;--lime:#247641;--pink:#db3461;--red:#ba2539;--green:#247641;--paint:#df3f29}
body{background:var(--paper);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.055' d='M0 0h170v170H0z'/%3E%3C/svg%3E");font-family:Arial,Helvetica,sans-serif;min-height:100dvh;display:flex;flex-direction:column}
main{flex:1;width:100%}button,select,input{font-family:inherit}select option{background:var(--paper);color:var(--ink)}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--blue);outline-offset:5px}
.masthead{width:100%;max-width:1320px;height:110px;padding:0 5%;gap:28px}.logo{display:block;font-family:Arial,Helvetica,sans-serif;font-size:clamp(26px,3.2vw,40px);font-weight:950;letter-spacing:-2px;font-style:italic;transform:rotate(-3deg);color:var(--paint);text-transform:uppercase;line-height:1.1;text-shadow:1px 1px #f8f5ec,2px 2px #d5b993}.masthead nav{margin-left:auto;gap:30px}.nav{font-size:17px;line-height:1.3}.nav.active:after{background:var(--paint);height:4px;transform:rotate(-2deg);border-radius:30% 40% 35% 20%}.tools{gap:15px}.icon-button[aria-pressed=false]{opacity:.55}
.lobby{max-width:1080px;margin:18px auto 36px;padding:0 35px}.lobby h1{font-size:27px;font-weight:700;letter-spacing:-.6px;margin:0 0 23px}.practice-switch{justify-content:space-between;gap:20px;margin:0 0 38px;border-bottom:1px solid var(--line);padding:0 0 17px}.practice-switch button{font-size:19px;letter-spacing:0;font-weight:600;color:var(--muted);line-height:1.35;white-space:nowrap;padding:4px 0}.practice-switch button[aria-pressed=true]{color:var(--ink)}.practice-switch button[aria-pressed=true]:after{bottom:-10px;background:var(--paint);height:5px;border-radius:35% 45% 25% 25%;transform:rotate(-2deg)}
.setup{max-width:none;text-align:left;display:grid;grid-template-columns:minmax(240px,.82fr) minmax(300px,1.18fr);gap:18px 65px;align-items:center}.setup-controls{max-width:350px;width:100%;display:flex;flex-direction:column;gap:25px;align-self:center}.instrument-label,.field-label,.piece-controls label{display:block;color:var(--muted);font-size:15px;margin:0 0 4px}select,#instrument,.piece-controls select{font-size:23px;font-weight:500;letter-spacing:0;padding:9px 28px 12px 0;border-bottom:2px solid var(--ink);margin:0;background:transparent;line-height:1.4}select option{font-size:18px}.earned-levels{justify-content:flex-start;gap:23px;margin:0;min-height:43px}.level-choice{font-size:18px;font-weight:600;line-height:1.4;padding:7px 0;border-bottom:3px solid transparent}.level-choice[aria-pressed=true]{color:var(--blue);border-color:var(--blue)}.level-field:has(.level-choice:only-child) .field-label{display:none}.level-choice:only-child{cursor:default}.garage{position:relative;min-height:252px;text-align:center;padding:15px 0 12px}.vehicle-level{position:absolute;left:10px;top:0;transform:rotate(-6deg);background:#f2cb50;padding:6px 16px;font-size:16px;font-weight:700;box-shadow:2px 2px 0 #6f60311a}.vehicle-art{height:220px;display:flex;align-items:center;justify-content:center}.vehicle-art img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(2px 4px 0 #5148300c);transform:rotate(-2deg)}.vehicle-name{display:inline-block;color:var(--muted);font-size:17px;letter-spacing:.02em;transform:rotate(-2deg)}.start-line{grid-column:1/-1;border-top:2px dashed var(--line);padding-top:24px;display:flex;align-items:center;justify-content:space-between;gap:24px}.race-details{display:flex;flex-direction:column;gap:5px}.race-details #roundSize{font-weight:600;font-size:20px}.race-details #unlockRule{font-size:14px;color:var(--muted)}.begin{background:var(--paint);color:#fffaf1;font-size:20px;font-weight:700;letter-spacing:.01em;border-radius:4px 7px 3px 6px;min-width:210px;padding:16px 33px;transform:rotate(-1deg);box-shadow:2px 3px 0 #802817;transition:transform .1s}.begin:hover:not(:disabled){background:#c83222;transform:rotate(0) translateY(-1px);box-shadow:2px 3px 0 #802817}.begin:active:not(:disabled){transform:rotate(0) translateY(2px);box-shadow:none}.status{font-size:14px;line-height:1.5}.status:empty{min-height:0;margin:0}#setupStatus{grid-column:1/-1}.piece-controls,.tempo-controls{margin:0}.tempo-controls label{font-size:15px;align-items:center}.tempo-controls output{font-size:21px;font-weight:600}.tempo-controls input{margin:11px 0 5px;accent-color:var(--paint);height:25px}.tempo-stake{text-align:left;font-size:14px;color:var(--muted)}
footer{width:100%;max-width:1320px;margin-top:20px;align-items:center;gap:18px;font-size:14px;padding:22px 5%}.footer-links{margin-left:auto}.text-button,.footer-links>a{font-size:14px;color:var(--muted)}.access{max-width:440px;margin:48px auto 70px}.access h1{font-size:36px;letter-spacing:-1px;font-weight:700}.access-tabs button[aria-pressed=true]{color:var(--ink);border-color:var(--paint)}.access #codeHint{font-size:15px}.code-entry{border-bottom:2px solid var(--ink)}.access .begin{margin-top:3px}
.arena{max-width:1140px;margin:4px auto 40px;padding:0 40px}.game-top{font-size:15px}.game-top .text-button{font-size:15px}.game-metrics{margin-top:24px}.prompt{color:#20242a}.answer:not(.tap-answer){background:#fffdf6;border:2px solid #b8b2a4;border-radius:3px 5px 3px 4px;color:var(--ink);box-shadow:1px 2px 0 #bdb5a544;transition:background .08s}.answer:not(.tap-answer):hover:not(:disabled){background:#efe8d6;color:var(--blue);border-color:var(--blue)}.answer:active:not(:disabled){background:#d6e3f0;color:var(--ink)}.answer.is-wrong,.answer.is-wrong:disabled{background:#f9dad7!important;color:var(--red)!important;border:3px solid var(--red);opacity:1}.answer.is-correct,.answer.is-correct:hover:not(:disabled){background:#daecd7!important;color:var(--green)!important;border:3px solid var(--green);border-radius:3px}.answer:disabled:not(.is-wrong){opacity:.3}.answer kbd{font-size:14px}.tap-answer,.tap-answer:hover:not(:disabled){color:white;background:var(--blue);border-radius:5px}.tap-answer kbd{color:white}.tap-tools .begin{color:white}.key{background:#ebe3d2;color:var(--ink)}.feedback{font-weight:500}.streak{color:var(--green)}.term-prompt{font-weight:600;letter-spacing:-1px}.term-pronunciation{color:var(--muted)}
.finish{margin:35px auto 50px}.finish h1{font-weight:750;color:var(--ink);font-size:clamp(36px,6vw,66px)}.result-kicker{color:var(--muted)}.result-metrics span{font-size:14px}.result-actions .begin{color:white}.stats-heading h1{font-weight:700;font-size:50px}.scope button[aria-pressed=true]{color:var(--ink);border-color:var(--paint)}.stat-grid strong{font-weight:600}.stat-grid span,.history th,.history td small{font-size:14px}.your-standing{background:#1659a410}.history{overflow-x:auto}.stats-filters select{border-bottom:1px solid var(--ink)}
dialog{border:1px solid var(--line);border-radius:3px;box-shadow:6px 8px 0 #29261930;background:var(--paper)}dialog::backdrop{background:#26231c77;backdrop-filter:blur(3px)}dialog .begin{color:white}.name-invite{border-style:dashed}#answerBorder.right{box-shadow:inset 0 0 38px #24764120}#answerBorder.wrong{box-shadow:inset 0 0 38px #ba253930}
@media(min-width:1000px){.lobby{margin-top:35px}.setup{min-height:340px}.garage{min-height:290px}.vehicle-art{height:255px}}
@media(max-width:800px){.masthead{height:96px;padding:0 25px;gap:20px}.logo{font-size:30px;letter-spacing:-1.6px}.masthead nav{gap:22px}.lobby{padding:0 26px;margin-top:18px}.practice-switch{gap:17px;flex-wrap:wrap;justify-content:flex-start;row-gap:24px}.practice-switch button{font-size:18px}.setup{gap:25px 35px;grid-template-columns:minmax(220px,1fr) minmax(250px,1fr)}.vehicle-art{height:200px}.garage{min-height:240px}.vehicle-level{left:0}.lobby h1{font-size:26px}.stats-heading h1{font-size:44px}}
@media(max-width:600px){.masthead{height:auto;min-height:99px;padding:22px 21px 18px;flex-wrap:wrap;gap:18px}.logo{font-size:30px;width:100%;letter-spacing:-1.8px}.masthead nav{margin-left:0}.nav{font-size:16px}.tools{margin-left:auto;gap:16px}.icon-button{width:30px;height:30px}.lobby{padding:0 22px;margin:20px auto 30px}.lobby h1{font-size:25px;margin-bottom:20px}.practice-switch{display:flex;justify-content:flex-start;gap:19px 22px;margin-bottom:28px;padding-bottom:15px}.practice-switch button{font-size:17px;letter-spacing:0}.practice-switch button[aria-pressed=true]:after{bottom:-6px;height:4px}.setup{grid-template-columns:1fr;gap:20px}.setup-controls{max-width:none;gap:22px}.garage{min-height:185px;grid-row:2;padding:0 0 4px}.vehicle-art{height:172px;max-width:350px;margin:auto}.vehicle-level{left:calc(50% - 155px);font-size:14px;padding:4px 12px;top:6px}.vehicle-name{font-size:15px}.start-line{padding-top:20px;gap:20px;flex-wrap:wrap}.race-details{gap:5px}.race-details #roundSize{font-size:19px}.start-line .begin{width:100%;min-height:54px}.earned-levels{gap:27px}.level-choice{font-size:18px}.piece-controls select,#instrument{font-size:23px;margin:0}.tempo-controls output{font-size:22px}.begin{font-size:19px}.arena{padding-inline:18px;margin-top:5px}.game-top{font-size:14px}.game-top #gameContext{max-width:67%}.game-top .text-button{font-size:14px}.game-metrics{margin-top:16px}#clock{font-size:25px}.term-answers .answer{font-size:17px;min-height:65px}.term-prompt{font-size:35px}.stats-heading h1{font-size:42px}.stats-filters{gap:20px}.stats-page{margin-top:25px}.scope{font-size:16px}.result-metrics{gap:24px}.result-metrics strong{font-size:30px}.result-metrics span{font-size:14px}.finish h1{font-size:40px}.access{margin:30px auto 60px}.access h1{font-size:34px}footer{padding:18px 22px;flex-wrap:wrap;font-size:14px}.footer-links{gap:20px}}
@media(prefers-reduced-motion:reduce){.begin,.begin:hover:not(:disabled){transition:none;transform:none}}
.garage .level-field{position:relative;z-index:1}.garage .field-label{display:none}.garage .earned-levels{justify-content:center;gap:17px;margin:0 0 10px;min-height:36px}.garage .level-choice{font-size:16px;color:var(--muted);padding:5px 13px;border:0;border-radius:0;transform:rotate(-3deg)}.garage .level-choice:nth-child(2){transform:rotate(2deg)}.garage .level-choice[aria-pressed=true]{background:#f2cb50;color:var(--ink);box-shadow:2px 2px 0 #6f60311a}.garage{padding-top:0}.vehicle-art{height:210px}.vehicle-name{font-size:16px}.lobby[data-mode=terms] .setup-controls,.lobby[data-mode=rhythm-identify] .setup-controls{display:none}.lobby[data-mode=terms] .garage,.lobby[data-mode=rhythm-identify] .garage{grid-column:1/-1;width:100%;max-width:540px;justify-self:center}
body[data-view=arena] .masthead{height:80px;min-height:0;padding-block:16px;max-width:1140px;flex-wrap:nowrap}body[data-view=arena] .logo{font-size:26px;width:auto}body[data-view=arena] .masthead nav{display:none}body[data-view=arena] .tools{margin-left:auto}body[data-view=arena] .icon-button:disabled{display:none}
.race-track{position:relative;height:82px;margin-top:11px;background:none;border-bottom:3px solid #a8a197;border-radius:0 0 38% 4%;padding-right:145px}.race-track .track-lane{height:100%;position:relative;width:100%;background:none}.race-track #raceFill{position:absolute;bottom:-3px;left:0;background:var(--paint);width:0;height:3px;opacity:.65}.race-car{position:absolute;left:0;bottom:0;width:145px;height:74px;transition:left .2s ease-out;will-change:left}.race-car img{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom}.race-car.scoot img{animation:scoot .24s ease-out}.finish-line{position:absolute;right:5px;bottom:-3px;width:15px;height:47px;background:repeating-conic-gradient(#363632 0% 25%,#f8f5ec 0% 50%) 50%/10px 10px;transform:rotate(5deg);opacity:.85}.game-metrics{margin-top:16px}.exhaust-glitter{position:fixed;width:6px;height:6px;animation:exhaust .5s ease-out forwards;animation-delay:var(--delay);opacity:0;pointer-events:none;border-radius:0 2px 0 1px;box-shadow:0 0 2px #fff}#answerSplash{z-index:10}.splash-bubble{width:35px;height:35px;opacity:.35}
@keyframes scoot{0%,100%{transform:rotate(0)}35%{transform:translateY(-4px) rotate(-3deg)}65%{transform:translateY(1px) rotate(1deg)}}
@keyframes exhaust{0%{opacity:1;transform:translate(0,0) rotate(0) scale(1.4)}100%{opacity:0;transform:translate(var(--x),var(--y)) rotate(var(--r)) scale(.2)}}
dialog.victory{background:var(--paper);color:var(--ink)}dialog.victory::backdrop{background:var(--paper)}.victory-content{text-shadow:none;padding:32px 24px;justify-content:center;overflow:auto}.victory-content>p{color:var(--ink);font-size:20px;margin-bottom:12px}.victory h1{font-style:italic;font-weight:900;letter-spacing:-.035em;font-size:clamp(42px,7vw,88px);color:var(--paint);margin:0 0 16px}.victory #victoryScore{font-size:27px}.victory-drive{width:min(620px,90vw);height:clamp(140px,24vh,300px);margin:10px 0;animation:finish-drive 1.2s cubic-bezier(.2,.75,.25,1) both}.victory-drive img{width:100%;height:100%;object-fit:contain;animation:victory-scoot .6s ease-in-out 1.2s 6 alternate}.victory #victoryVehicle{font-size:20px;font-weight:600;transform:rotate(-2deg)}.victory .begin{margin-top:20px;background:var(--blue);box-shadow:2px 3px 0 #12385f;color:white}.victory #celebration{opacity:.8}
@keyframes finish-drive{from{transform:translateX(-100vw) rotate(-7deg)}to{transform:translateX(0) rotate(-2deg)}}
@keyframes victory-scoot{to{transform:translateY(-6px) rotate(1deg)}}
@media(min-width:1000px){.vehicle-art{height:245px}.garage{min-height:290px}}
@media(max-width:600px){.garage{min-height:0}.vehicle-art{height:172px}.garage .earned-levels{margin-bottom:6px}.race-track{height:65px;padding-right:113px}.race-car{width:113px;height:61px}.finish-line{height:38px}.arena .notation{height:230px}.arena:has(.note-answers) .notation{height:200px}.arena:has(.note-answers) .prompt{min-height:200px}body[data-view=arena] .masthead{height:72px;padding-inline:20px}.victory h1{font-size:46px}.victory #victoryScore{font-size:24px}.victory-drive{height:185px}.garage .level-choice{font-size:16px}.lobby[data-mode=terms] .garage,.lobby[data-mode=rhythm-identify] .garage{grid-row:1}}
@media(prefers-reduced-motion:reduce){.race-car{transition:none}.exhaust-glitter{display:none}.victory-drive,.victory-drive img,.race-car.scoot img{animation:none}}
@media(max-width:600px){.masthead{padding-block:16px 8px;gap:12px}.lobby{margin-top:14px}.lobby h1{font-size:24px;margin-bottom:15px}.practice-switch{gap:12px 22px;margin-bottom:20px;padding-bottom:12px}.setup{gap:14px}.setup-controls{gap:18px}.vehicle-art{height:135px}.start-line{padding-top:16px;gap:14px}.start-line .begin{padding-block:14px;min-height:52px}.race-details{gap:2px}}
/* Cut paper and felt-tip lettering. */
@font-face{font-family:Kalam;src:url('/Kalam-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Kalam;src:url('/Kalam-Bold.ttf') format('truetype');font-weight:700;font-display:swap}
@font-face{font-family:'Rock Salt';src:url('/RockSalt.ttf') format('truetype');font-weight:400;font-display:swap}
:root{--paper:#fbf7e9;--ink:#242c46;--muted:#5e605f;--paint:#c6382c;--blue:#225aab;--hand:'Kalam',cursive;--marker:'Rock Salt','Kalam',cursive}
body{font-family:var(--hand);font-size:20px;line-height:1.5;background-color:#decfa7;background-image:repeating-linear-gradient(28deg,#8e755308 0 1px,transparent 1px 6px),repeating-linear-gradient(100deg,#fff8d826 0 1px,transparent 1px 9px)}
body:before{content:'';position:fixed;z-index:0;pointer-events:none;inset:12px 14px;background:var(--paper);box-shadow:3px 5px 10px #594a3035;clip-path:polygon(0 .5%,13% 0,26% .35%,49% 0,71% .4%,91% 0,100% .4%,99.75% 21%,100% 43%,99.7% 64%,100% 86%,99.6% 100%,83% 99.6%,63% 100%,42% 99.6%,23% 100%,0 99.7%,.2% 78%,0 54%,.2% 27%)}
body:after{content:'';position:fixed;inset:10px 14px;z-index:0;pointer-events:none;opacity:.1;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' d='M0 0h150v150H0z'/%3E%3C/svg%3E")}
.masthead{height:135px;padding-top:10px}.logo{font:400 clamp(26px,3.6vw,41px)/1.65 var(--marker);letter-spacing:-1.8px;text-transform:none;font-style:normal;transform:rotate(-4deg);text-shadow:1px 1px #f9dd98,2px 2px #b7432544;position:relative;isolation:isolate}.logo:before{content:'';position:absolute;inset:8px -17px 0;z-index:-1;background:#fffef6;box-shadow:1px 3px 1px #61563927;transform:rotate(1deg);clip-path:polygon(0 7%,20% 0,47% 3%,69% 0,99% 6%,100% 85%,78% 97%,50% 92%,25% 100%,1% 94%)}
.nav{font:700 23px/1.6 var(--hand)}.text-button,.footer-links>a{font:400 18px/1.4 var(--hand)}.icon-button{font-family:var(--hand)}.masthead nav{gap:28px}.nav.active:after,.practice-switch button[aria-pressed=true]:after{height:6px;opacity:.8;background:repeating-linear-gradient(1deg,var(--paint) 0 2px,#e46249 2px 3px);clip-path:polygon(0 25%,10% 0,80% 8%,100% 55%,87% 82%,3% 100%)}
.lobby{position:relative;margin-top:30px;padding:28px 34px 30px;background:#fffdf3;box-shadow:-11px 10px 0 -3px #e9c94f,10px 18px 0 -6px #7aa5c4,2px 5px 12px #51463225;border-radius:1px 4px 2px 3px;isolation:isolate;max-width:1080px}.lobby:before,.lobby:after{content:'';position:absolute;pointer-events:none;width:90px;height:27px;top:-10px;background:repeating-linear-gradient(94deg,#e4c78970 0 4px,#eadcb781 4px 7px);border-inline:2px dotted #bd995341;box-shadow:1px 1px 1px #5a503710}.lobby:before{left:26px;transform:rotate(-12deg)}.lobby:after{right:35px;transform:rotate(9deg)}
.lobby h1,.access h1,.stats-heading h1,.finish h1,dialog h2,.victory h1{font-family:var(--marker);font-weight:400;letter-spacing:-1px;font-style:normal;line-height:1.8;transform:rotate(-1deg)}.lobby h1{font-size:25px;margin:0 0 20px}.practice-switch{gap:18px;margin-bottom:30px;padding-bottom:17px;border-bottom:2px dashed #7f90a855}.practice-switch button{font:700 23px/1.4 var(--hand);padding:0 3px}.practice-switch button:nth-child(2n){transform:rotate(2deg)}.practice-switch button:nth-child(2n+1){transform:rotate(-1deg)}.practice-switch button[aria-pressed=true]{color:var(--blue)}
.setup{gap:15px 48px;min-height:320px}.setup-controls{gap:26px}select,#instrument,.piece-controls select{font-family:var(--hand);font-size:28px;font-weight:400;border-bottom:2px solid #303855;border-radius:0 0 30% 2%;padding:4px 26px 8px 0}.instrument-label,.field-label,.piece-controls label,.tempo-controls label{font:400 18px/1.4 var(--hand);color:var(--muted)}select option{font-family:var(--hand);font-size:20px}.garage{position:relative;padding:5px 0 0;min-height:275px}.garage:before{content:'';position:absolute;z-index:-1;inset:29px -3px 0;background:repeating-linear-gradient(0deg,transparent 0 25px,#799ac529 25px 26px),#f6f1d9;clip-path:polygon(1% 1%,10% 0,43% 2%,69% 0,99% 3%,100% 45%,99% 95%,65% 100%,43% 97%,3% 100%,0 64%);transform:rotate(3deg);box-shadow:2px 3px 2px #473a2424}.vehicle-art{height:236px;position:relative;z-index:1}.garage .level-choice{font:700 21px/1.4 var(--hand);padding:3px 15px}.garage .level-choice[aria-pressed=true]{background:#f5cf4e;box-shadow:2px 2px 0 #86712026;clip-path:polygon(1% 8%,98% 0,100% 91%,0 100%)}
.start-line{border-top:3px dashed #50637f60;padding-top:23px}.race-details #roundSize{font:700 24px/1.35 var(--hand)}.race-details #unlockRule{font:400 18px/1.4 var(--hand)}.begin{font:700 26px/1.2 var(--hand);color:#fffbed;padding:16px 37px;min-width:210px;background:repeating-linear-gradient(3deg,#c6382c 0 4px,#cc4136 4px 5px);border-radius:3px 8px 4px 7px;box-shadow:3px 4px 0 #a8835759;clip-path:polygon(1% 9%,8% 2%,95% 0,100% 12%,99% 92%,91% 99%,4% 97%,0 87%)}.begin:hover:not(:disabled){background:#b82e24;box-shadow:3px 4px 0 #a8835759}.tempo-controls output{font:700 25px/1.2 var(--hand)}.tempo-stake,.status,footer{font-size:17px}.access{padding:25px 28px;background:#fffdf4;box-shadow:-8px 8px 0 #efcc50,5px 13px 0 #79a5ca;transform:rotate(-.4deg)}.access h1{font-size:25px}.access-tabs button{font-size:20px}.access label,.access #codeHint{font-size:18px}
.answer:not(.tap-answer){font:700 32px/1.15 var(--hand);border:2px solid #7e7a6c;border-radius:6px 3px 8px 4px;background:#fffdf5;box-shadow:2px 3px 0 #a58c5c25;min-height:58px}.answers.note-answers{grid-template-rows:repeat(3,minmax(58px,auto));gap:8px 12px}.note-answers .answer{font-size:31px;min-height:58px}.note-answers .answer:nth-child(2n){border-radius:3px 7px 3px 6px}.note-answers .answer[style*='grid-row:1']{background:#e8f1fa}.note-answers .answer[style*='grid-row:3']{background:#fff0d5}.term-prompt{font-family:var(--hand);font-size:54px;letter-spacing:0}.term-pronunciation{font-family:var(--hand);font-size:24px}.term-answers .answer{font-size:22px;font-weight:400;line-height:1.35}.tap-answer{font-family:var(--hand);font-size:29px}.answer kbd{font-family:var(--hand);font-size:17px}.game-top,.game-top .text-button,.feedback{font-size:19px}#clock{font-family:var(--hand);font-size:33px}.streak{font-size:21px}.game-metrics{font-family:var(--hand)}.stats-page{background:#fffdf5;padding:25px 35px;box-shadow:-7px 8px 0 #f3d265,5px 15px 0 #8db0c5}.stats-heading h1{font-size:35px}.scope{font-size:21px}.stats-filters label,.stats-filters select,.stat-grid span,.history table,.history th,.history td small{font-size:18px}.stat-grid strong{font-family:var(--hand)}.finish h1{font-size:38px}.result-metrics span,.finish>p{font-size:19px}.result-actions .begin{font-size:23px}.victory h1{font-size:clamp(29px,5vw,62px);max-width:1100px}.victory .begin{font-family:var(--hand);font-size:25px}.victory-content>p{font-family:var(--hand);font-size:26px}
@media(max-width:800px){.logo{font-size:29px;letter-spacing:-1.5px}.masthead{height:125px;padding-inline:34px}.lobby{margin:25px 30px 32px;padding:26px 26px}.lobby h1{font-size:22px}.practice-switch{gap:15px 24px}.practice-switch button{font-size:22px}.setup{gap:18px 24px;grid-template-columns:minmax(195px,1fr) minmax(220px,1fr)}.vehicle-art{height:210px}.garage{min-height:250px}.stats-page{margin-inline:26px}.stats-heading h1{font-size:28px}}
@media(max-width:600px){.masthead{height:auto;min-height:120px;padding:16px 31px 4px;gap:8px}.logo{font-size:27px;width:100%;letter-spacing:-1.6px;line-height:1.75}.masthead nav{gap:26px}.nav{font-size:22px}.tools{gap:16px}.lobby{margin:18px 24px 30px;padding:24px 17px 20px}.lobby h1{font-size:20px;line-height:1.8;margin-bottom:19px}.practice-switch{gap:14px 17px;margin-bottom:21px;padding-bottom:13px}.practice-switch button{font-size:21px}.setup{grid-template-columns:1fr;gap:17px;min-height:0}.setup-controls{gap:16px}#instrument,.piece-controls select{font-size:27px}.garage{min-height:0}.garage:before{inset:22px 0 0}.vehicle-art{height:145px}.garage .earned-levels{margin:0}.garage .level-choice{font-size:20px}.start-line{gap:13px;padding-top:17px}.race-details #roundSize{font-size:23px}.race-details #unlockRule{font-size:16px}.start-line .begin{font-size:25px;padding-block:14px}.tempo-controls output{font-size:25px}.tempo-stake{font-size:17px}.access{margin:30px 30px 50px}.access h1{font-size:23px}.access-tabs{gap:22px}.access-tabs button{font-size:18px}.note-answers .answer{font-size:27px;min-height:49px;padding:2px 0}.answers.note-answers{grid-template-rows:repeat(3,minmax(49px,auto));gap:7px 4px}.term-answers .answer{font-size:19px}.term-prompt{font-size:37px}.term-pronunciation{font-size:20px}.stats-page{padding:20px 16px;margin-inline:24px}.scope{font-size:19px;gap:21px}.stats-filters label,.stats-filters select{font-size:17px}.finish h1{font-size:28px}.result-metrics{gap:22px}.result-metrics span{font-size:17px}.result-actions .begin{font-size:22px}.victory h1{font-size:33px}footer{font-size:16px;padding-inline:32px}.text-button,.footer-links>a{font-size:17px}}
/* One lap around the reading surface. */
.perimeter-track{position:fixed;inset:0;z-index:8;pointer-events:none;overflow:hidden}.perimeter-track svg,.perimeter-track canvas{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.track-bed{fill:none;stroke:#d4c4a4;stroke-width:29;opacity:.36}.track-edge{fill:none;stroke:#6e6a5d;stroke-width:2.6;stroke-linecap:round;filter:url(#crayonEdge)}.track-grain{fill:none;stroke:#57513f;stroke-width:3;stroke-dasharray:2 8;opacity:.24}.lap-progress{fill:none;stroke:#2877bb;stroke-width:4;opacity:.6;stroke-dasharray:0 10000;filter:url(#crayonEdge)}.track-finish{position:absolute;width:17px;height:31px;transform:translate(-50%,-50%) rotate(-3deg);background:repeating-conic-gradient(#27324b 0% 25%,#fcf8e8 0% 50%) 50%/9px 9px}.perimeter-track .race-car{position:absolute;left:0;top:0;bottom:auto;width:112px;height:57px;transition:none;transform-origin:0 0;will-change:transform}.vehicle-sprite{position:relative;width:100%;height:100%;isolation:isolate}.vehicle-art .vehicle-sprite{width:100%;max-width:520px;height:100%}.vehicle-sprite .car-base{position:absolute;z-index:2;inset:0;width:100%;height:100%;object-fit:contain;transform:none}.vehicle-sprite .instrument-driver{position:absolute;z-index:1;object-fit:contain;width:24%;height:69%;left:25%;bottom:35%;transform:rotate(8deg);transform-origin:50% 90%;filter:drop-shadow(1px 2px 0 #54402b35)}.vehicle-sprite[data-car-level="2"] .instrument-driver{left:36%;bottom:30%;width:18%;height:56%;z-index:3;clip-path:polygon(0 0,100% 0,100% 74%,0 74%)}.vehicle-sprite[data-car-level="3"] .instrument-driver{left:35%;bottom:37%;width:18%;height:62%}.race-car .vehicle-sprite .instrument-driver{filter:none}.vehicle-art .vehicle-sprite{transform:rotate(-2deg)}.victory-drive .vehicle-sprite{animation:victory-scoot .6s ease-in-out 1.2s 6 alternate}.victory-drive img{animation:none}
body[data-view=arena] .masthead{height:104px;padding:20px 110px 0;max-width:1220px;position:relative;z-index:9}body[data-view=arena] .logo{font-family:var(--marker);font-size:22px;letter-spacing:-1px;line-height:1.6}body[data-view=arena] .logo:before{inset:0 -8px}.arena{max-width:1080px;margin:12px auto 92px;padding:0 70px;min-height:calc(100dvh - 208px)}.arena .game-top{font-size:18px;line-height:1.4}.game-metrics{margin-top:16px}.arena .prompt{min-height:240px}.arena .notation{height:270px}.arena:has(.note-answers) .prompt{min-height:220px}.arena:has(.note-answers) .notation{height:260px}.arena .answers{margin-top:8px}.arena .feedback{margin-top:15px}.arena .rhythm-notation.multi-measure{height:320px}.arena .prompt:has(.multi-measure){min-height:320px}.arena .prompt:has(.fingerdiagram){min-height:305px}
@media(max-width:800px){.arena{padding:0 80px}.perimeter-track .race-car{width:100px;height:52px}.arena .answers.note-answers{gap:7px 5px}.arena .note-answers .answer{font-size:28px}.arena .game-top{font-size:17px}}
@media(max-width:600px){body:before,body:after{inset:6px}body[data-view=arena] .masthead{height:80px;padding:13px 50px 0;gap:12px}body[data-view=arena] .logo{font-size:18px;letter-spacing:-1px;white-space:nowrap}body[data-view=arena] .tools{gap:0}body[data-view=arena] .icon-button{width:25px;height:25px}.perimeter-track .race-car{width:65px;height:35px}.track-bed{stroke-width:19}.track-edge{stroke-width:2}.track-grain{stroke-width:2;stroke-dasharray:2 6}.track-finish{width:14px;height:22px}.arena,.arena:has(.note-answers){padding:0 48px;margin:10px auto 73px;min-height:calc(100dvh - 165px)}.arena .game-top{font-size:15px;gap:9px}.arena .game-top .text-button{font-size:17px}.arena .game-metrics{margin:15px 0 0}.arena:has(.note-answers) .game-top,.arena:has(.note-answers) .game-metrics{margin-inline:0}.arena #clock{font-size:27px}.arena .streak{font-size:17px}.arena .prompt,.arena:has(.note-answers) .prompt{min-height:180px}.arena .notation,.arena:has(.note-answers) .notation{height:205px}.arena .answers.note-answers{gap:7px 3px;grid-template-rows:repeat(3,minmax(46px,auto))}.arena .note-answers .answer{font-size:23px;min-height:46px}.arena .answer:not(.tap-answer){border-width:1.5px;box-shadow:1px 2px 0 #a58c5c25}.arena .term-answers .answer{font-size:18px;padding:12px;min-height:62px}.arena .term-prompt{font-size:32px;padding:14px 4px}.arena .term-pronunciation{font-size:19px}.arena .feedback{font-size:17px;line-height:1.4;padding-inline:0}.arena .tap-answer{max-width:100%;width:100%;font-size:25px}.arena .tap-beat{font-size:22px}.arena .rhythm-notation.multi-measure{height:auto}.arena .prompt:has(.multi-measure){min-height:245px}.arena .prompt:has(.fingerdiagram){min-height:260px}.arena .fingerdiagram{height:265px}.arena .tap-tools{flex-wrap:wrap;gap:10px}.arena .answer.brass{font-size:23px;min-height:115px}.arena .valve-stack{font-family:var(--hand);font-size:23px}}
@media(prefers-reduced-motion:reduce){.victory-drive .vehicle-sprite{animation:none}.perimeter-track .race-car{transition:none}}
.vehicle-sprite[data-car-level="1"] .instrument-driver{left:48%;bottom:30%;width:23%;height:70%;transform:rotate(5deg)}.vehicle-sprite[data-car-level="2"] .instrument-driver{left:41%;bottom:40%;width:19%;height:68%;z-index:1;clip-path:none;transform:rotate(4deg)}

/* Notebook pages, cut-out letters, and a handmade flag. */
@font-face{font-family:'Sade Kids';src:url('/Sadekids-Regular.ttf') format('truetype');font-display:swap}
@font-face{font-family:Schoolbell;src:url('/Schoolbell-Regular.ttf') format('truetype');font-display:swap}
:root{--hand:Schoolbell,cursive;--marker:'Sade Kids',Schoolbell,cursive}
.logo{width:355px;transform:rotate(-3deg);line-height:0}.logo:before{display:none}.logo img{display:block;width:100%;height:auto;filter:drop-shadow(1px 4px 0 #6f57332c)}
.lobby,.access,.stats-page,.finish{background-color:#fffdf4;background-image:linear-gradient(90deg,transparent 0 24px,#e9555360 24px 26px,transparent 26px),repeating-linear-gradient(0deg,transparent 0 30px,#629dcc40 30px 31px);box-shadow:-7px 7px 0 #9cc5dd,4px 13px 0 #fffdf4,6px 15px 0 #c6c1b5,12px 21px 0 -5px #e9bf40;padding-left:44px}
.lobby h1{font-size:35px;line-height:1.3}.practice-switch button,.nav,.begin,.garage .level-choice{font-family:var(--marker);font-weight:400}.practice-switch button{font-size:24px}.begin{font-size:28px}.garage:before{box-shadow:4px 5px 0 #d4c5a7}.garage .level-choice{font-size:26px}.race-details #roundSize{font-weight:400}.answer:not(.tap-answer){font-family:var(--hand);font-weight:400}
body[data-view=arena] .logo{width:200px;max-width:55%;font-size:inherit}.finish{padding:25px 45px;max-width:900px}.stats-heading h1,.finish h1{font-size:45px}
@media(max-width:600px){.logo{width:280px;max-width:100%;margin-bottom:8px}.masthead{padding-top:16px}.lobby{padding-left:31px}.lobby h1{font-size:29px}.practice-switch button{font-size:22px}.garage .level-choice{font-size:24px}body[data-view=arena] .logo{width:185px;max-width:78%}.access{padding-left:35px}.finish{margin:25px 27px;padding:25px 28px}.finish h1{font-size:33px}}

/* Racing surface and notebook controls. */
.track-curb{fill:none;stroke:#d94640;stroke-width:44;filter:url(#crayonEdge)}.track-curb-white{fill:none;stroke:#fff8e9;stroke-width:44;stroke-dasharray:16 17}.track-bed{stroke:#54585b;stroke-width:34;opacity:1}.track-edge{stroke:#282b30;stroke-width:35;opacity:.25;filter:url(#crayonEdge)}.track-grain{stroke:#fbefbd;stroke-width:1.5;stroke-dasharray:10 12;opacity:.75}.lap-progress{stroke:#88dfff;stroke-width:2;opacity:.5}.track-finish{height:38px;width:20px;transform:translate(-50%,-50%);z-index:1;background:repeating-conic-gradient(#171c26 0% 25%,#fffdf3 0% 50%) 50%/10px 10px}.finish-flag{position:absolute;bottom:35px;left:3px;width:2px;height:44px;background:#303039;transform:rotate(-8deg)}.finish-flag:after{content:'';position:absolute;left:2px;top:0;width:35px;height:25px;background:repeating-conic-gradient(#202631 0% 25%,#fff8e9 0% 50%) 50%/10px 10px;clip-path:polygon(0 0,100% 7%,95% 96%,0 100%);box-shadow:2px 2px 0 #0003}.perimeter-track .race-car{width:132px;height:71px;z-index:3}.tow-truck{position:absolute;left:0;top:0;width:106px;height:68px;transform-origin:0 0;object-fit:contain;z-index:4}.race-format,.duration-controls{display:flex;gap:17px;align-items:center;flex-wrap:wrap}.race-format button{font:27px/1.2 var(--marker);padding:5px 0;border-bottom:3px solid transparent;color:var(--muted)}.race-format button[aria-pressed=true]{color:var(--blue);border-color:var(--blue);transform:rotate(-2deg)}.duration-controls{gap:12px}.duration-controls button{font:22px/1.2 var(--hand);padding:7px 8px;transform:rotate(2deg);background:#f3e8b8}.duration-controls button[aria-pressed=true]{background:#f0c547;box-shadow:2px 3px 0 #87651230}.setup-controls{gap:20px}.lobby[data-mode=terms] .setup-controls,.lobby[data-mode=rhythm-identify] .setup-controls{display:flex}.lobby[data-mode=terms] .garage,.lobby[data-mode=rhythm-identify] .garage{grid-column:auto;grid-row:auto}.note-answers{grid-template-columns:repeat(14,minmax(0,1fr))!important;column-gap:5px!important}.answers.note-answers .answer{grid-column-end:span 2;font-size:31px}.start-lights{position:absolute;left:50%;top:155px;transform:translateX(-50%);z-index:7;display:flex;flex-direction:column;align-items:center;gap:7px;pointer-events:none}.light-bulbs{display:flex;gap:9px;background:#393b44;padding:11px 16px;border:4px solid #f2d345;border-radius:3px 7px 3px 8px;box-shadow:4px 5px 0 #2224;transform:rotate(-1deg)}.light-bulbs i{display:block;width:23px;height:23px;border-radius:48% 52% 49% 47%;background:#191b25;box-shadow:inset 2px 2px 4px #0008;border:2px solid #0b0f17}.light-bulbs i.on{background:#ff352e;box-shadow:0 0 13px #ff5347,inset 2px 2px 2px #ffa282}.start-lights[data-phase=go] .light-bulbs{border-color:#29aa57}.start-lights span{font:25px/1.2 var(--marker);background:#fff9e6;transform:rotate(2deg);padding:1px 14px;color:var(--blue)}body[data-starting=true] .arena .prompt,body[data-starting=true] .arena .answers{visibility:hidden}.arena .prompt{background:repeating-linear-gradient(0deg,transparent 0 30px,#6097ca17 30px 31px)}.arena:has(.tap-answer) .start-lights{top:151px;transform:translateX(-50%) scale(.8)}.arena:has(.tap-answer) .prompt{margin-top:65px}.vehicle-art{filter:drop-shadow(4px 7px 0 #74614635)}
@media(max-width:600px){.track-curb,.track-curb-white{stroke-width:27}.track-bed{stroke-width:21}.track-edge{stroke-width:22}.track-grain{stroke-width:1;stroke-dasharray:7 9}.track-finish{height:26px;width:15px}.finish-flag{bottom:22px;height:28px}.finish-flag:after{width:25px;height:17px}.perimeter-track .race-car{width:78px;height:44px}.tow-truck{width:65px;height:40px}.race-format button{font-size:25px}.duration-controls{gap:8px}.duration-controls button{font-size:21px}.setup-controls{gap:16px}.lobby[data-mode=terms] .garage,.lobby[data-mode=rhythm-identify] .garage{grid-row:2}.answers.note-answers{column-gap:2px!important}.answers.note-answers .answer{font-size:23px;min-height:47px}.start-lights{top:180px}.light-bulbs{gap:6px;padding:9px 12px}.light-bulbs i{width:20px;height:20px}.arena:has(.tap-answer) .start-lights{top:160px}.arena:has(.tap-answer) .prompt{margin-top:80px}}
/* Keep the logo and controls inside the circuit, clear of the cars. */
body[data-view=arena] .masthead{height:155px;padding-top:63px}.arena{min-height:calc(100dvh - 260px)}
@media(max-width:600px){body[data-view=arena] .masthead{height:116px;padding-top:35px}.arena,.arena:has(.note-answers){min-height:calc(100dvh - 201px)}}
@media(max-width:600px){.lobby h1{font-size:24px;white-space:nowrap}.practice-switch{display:grid;grid-template-columns:1fr 1fr;gap:12px 10px}.practice-switch button{font:400 21px/1.3 var(--hand);text-align:left;white-space:normal}.garage .level-choice{font-family:var(--hand);font-size:23px}}

/* Playable mallet-instrument geometry: two groups of raised bars per octave. */
.answers.mallet-answers{display:block;max-width:850px;margin-top:14px}
.mallet-keyboard{display:grid;grid-template-columns:repeat(var(--bar-columns),minmax(0,1fr));grid-template-rows:100px 144px 25px;column-gap:3px;row-gap:8px;position:relative;isolation:isolate;padding:10px 5px 0;background:linear-gradient(0deg,transparent 0 53px,#785131 53px 64px,transparent 64px 192px,#785131 192px 202px,transparent 202px)}
.mallet-keyboard .mallet-bar{width:100%;max-width:none;min-height:0;height:var(--bar-height);align-self:start;padding:0;position:relative;border:2px solid #59301b;border-radius:3px;box-shadow:2px 4px 0 #50331c70;transform:none;background:linear-gradient(90deg,#a66632,#ba804c 50%,#a66a3c);color:#fff8e8;touch-action:manipulation}
.mallet-keyboard .mallet-bar.raised{background:linear-gradient(90deg,#684025,#895130 50%,#684025);border-color:#432b1c;margin-inline:0;align-self:end}
.mallet-keyboard .mallet-bar:before,.mallet-keyboard .mallet-bar:after{content:'';position:absolute;left:calc(50% - 2px);width:4px;height:4px;background:#482c1a;border-radius:50%}
.mallet-keyboard .mallet-bar:before{top:20%}.mallet-keyboard .mallet-bar:after{bottom:20%}
.mallet-keyboard .mallet-bar:hover:not(:disabled){background:#c88f55;color:#fff;border-color:#263e74}
.mallet-keyboard .mallet-bar:active:not(:disabled){transform:translateY(2px);box-shadow:1px 1px 0 #50331c70}
.mallet-keyboard .mallet-bar.is-correct,.mallet-keyboard .mallet-bar.is-correct:disabled{background:#258f4e!important;border:3px solid #075e30!important;color:#fff!important;opacity:1;box-shadow:0 0 0 3px #a9e5b9}
.mallet-keyboard .mallet-bar.is-wrong,.mallet-keyboard .mallet-bar.is-wrong:disabled{background:#be353b!important;border:3px solid #7a1424!important;color:#fff!important;opacity:1}
.mallet-keyboard .bar-label{font:18px/1 var(--hand);writing-mode:vertical-rl;text-orientation:mixed;opacity:0;pointer-events:none}
.mallet-keyboard .is-correct .bar-label,.mallet-keyboard .is-wrong .bar-label{opacity:1}
.mallet-register{grid-row:3;grid-column:1 / span 2;font-size:14px;text-align:center;white-space:nowrap}.mallet-register.last{grid-column:-3 / -1}
@media(max-width:600px){.arena:has(.mallet-answers){padding-inline:27px}.arena:has(.mallet-answers) .game-top,.arena:has(.mallet-answers) .game-metrics{margin-inline:21px}.mallet-keyboard{column-gap:1px;padding-inline:0;grid-template-rows:82px 126px 24px}.mallet-keyboard .bar-label{font-size:16px}.arena .mallet-keyboard .mallet-bar{border-width:1px}.arena:has(.mallet-answers) .prompt{min-height:165px}.arena:has(.mallet-answers) .notation{height:190px}}
.arena .feedback:not(:empty){position:relative;z-index:9;background:var(--paper);width:fit-content;max-width:100%;padding:3px 10px}

/* Adobe web project supplied by the site owner. Apply only after it is ready. */
:root.adobe-font-ready{--marker:'schoolbell-pro','Sade Kids',Schoolbell,cursive}
h1,h2,h3{font-family:var(--marker);font-weight:400;letter-spacing:0}
.perimeter-track .race-car,.perimeter-track .tow-truck{transform-origin:50% 80%;backface-visibility:visible}
@media(max-width:600px){.practice-switch button,.garage .level-choice{font-family:var(--marker)}}

.perimeter-track .race-car{height:64px}.perimeter-track .tow-truck{height:58px}
@media(max-width:600px){.perimeter-track .race-car{height:34px}.perimeter-track .tow-truck{height:32px}}

/* Clean score sheets keep the handmade headings, with quiet, readable data. */
.stats-page{background-image:none;padding:30px 36px;color:#17283d;max-width:1120px}
.stats-page,.stats-page select,.stats-page button,.stats-page table{font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.5}
.stats-page h1,.stats-page h2{font-family:var(--marker)}
.stats-heading{gap:20px;flex-wrap:wrap;margin-bottom:25px}.stats-heading h1{margin:0;font-size:42px}
.stats-page .scope{gap:6px;display:flex;flex-wrap:wrap}.stats-page .scope button{padding:8px 14px;font-size:16px;border:1px solid #acb7c4;border-radius:5px;color:#25394f;background:#fff;transform:none}
.stats-page .scope button[aria-pressed=true]{background:#183b60;color:white;border-color:#183b60}
.stats-filters{display:flex;flex-wrap:wrap;gap:16px;margin-bottom:26px}.stats-filters label{flex:1 1 160px;font-size:14px;font-weight:600;color:#334a61}.stats-filters select{display:block;width:100%;margin-top:6px;min-height:44px;background:#fff;border:1px solid #9caabb;padding:8px 30px 8px 10px;color:#17283d;border-radius:4px}
.stat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;border-block:1px solid #c6cfda;padding:19px 0;margin-bottom:28px}.stat-grid>div{padding:0 14px;border-right:1px solid #d9dfe6}.stat-grid>div:last-child{border:0}.stat-grid strong{font:700 30px/1.3 Arial,Helvetica,sans-serif;color:#153f66;font-variant-numeric:tabular-nums}.stat-grid span{display:block;font-size:14px;color:#465b70;line-height:1.4;margin-top:4px}
.stats-page .history-head h2{font-size:30px}.stats-page .history{overflow-x:auto}.stats-page table{width:100%;border-collapse:collapse;background:#fff}.stats-page th{font-size:14px;text-transform:none;letter-spacing:0;color:#435770;background:#edf2f6;padding:11px 14px;white-space:nowrap;text-align:left}.stats-page td{padding:14px;font-size:16px;border-bottom:1px solid #dce2e9;font-variant-numeric:tabular-nums}.stats-page td strong{font-weight:600}.stats-page td small{display:block;font-size:14px;color:#516378;line-height:1.6}.stats-page td:not(:first-child){white-space:nowrap}.stats-page tr.your-standing{background:#e8f3ff}.stats-page .status,.stats-page .empty{font-size:15px}.stats-page .reward-star{color:#1f7441}
@media(max-width:700px){.stats-page{padding:24px 18px;margin:20px 22px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.stat-grid>div{border:0;padding:0 5px}.stat-grid strong{font-size:28px}.stats-page td,.stats-page th{padding:10px}.stats-heading h1{font-size:35px}.stats-page .scope button{padding:7px 10px;font-size:15px}.stats-filters{gap:12px}.stats-filters label{flex-basis:140px}}

/* A player's notebook and garage. */
.player-page{max-width:1080px;margin:35px auto 55px;padding:30px 42px;background:#fffdf4;box-shadow:-7px 7px 0 #9cc5dd,4px 13px 0 #fffdf4,6px 15px 0 #c6c1b5,12px 21px 0 -5px #e9bf40}.player-page h1{font-size:42px;margin:0 0 25px}.player-layout{display:grid;grid-template-columns:minmax(270px,1fr) 1fr;gap:45px;align-items:start}.player-page form>label,.player-page legend{font:23px/1.4 var(--hand);display:block;margin:0 0 8px}.player-page input[type=text],#profileName,.player-page select{background:#fff;border:1px solid #8b9db0;border-radius:4px;padding:10px 12px;min-height:46px;width:100%;font:18px/1.5 Arial,Helvetica,sans-serif;color:#17283d}.player-page .optional{font-size:17px;color:#56697d}.player-page #profilePrivacy{font:14px/1.5 Arial,Helvetica,sans-serif;color:#435b72;margin:9px 0 25px}.player-page fieldset{padding:0;margin:25px 0;border:0}.secondary-instruments{display:grid;grid-template-columns:1fr 1fr;gap:7px 12px}.secondary-instruments label{display:flex;align-items:center;gap:9px;min-height:36px;font:16px/1.4 Arial,Helvetica,sans-serif;color:#273d51}.secondary-instruments input{width:19px;height:19px;accent-color:#245786;flex-shrink:0}.secondary-instruments label:has(input:disabled){opacity:.4}.player-garage{background:repeating-linear-gradient(0deg,transparent 0 30px,#629dcc40 30px 31px),#fbf9ef;transform:rotate(2deg);box-shadow:4px 5px 0 #8e75572b;padding:12px;margin-top:40px}.player-garage img{width:100%;height:260px;object-fit:contain;filter:drop-shadow(3px 5px 0 #715c3733)}.player-garage p{text-align:center;font:26px/1.4 var(--marker);margin:0 0 20px}.favorite-instruments{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.favorite-instruments button{font:17px/1.3 var(--hand);padding:6px 10px;border:1px solid #8094a8;background:#fffdf4;color:#254765;border-radius:3px}.favorite-instruments button[aria-pressed=true]{background:#ddebf5;border-color:#245786}.masthead nav{gap:23px}
@media(max-width:800px){.player-page{margin:25px 30px;padding:27px}.player-layout{gap:24px}.player-garage img{height:210px}}
@media(max-width:600px){.player-page{margin:20px 25px;padding:25px}.player-layout{grid-template-columns:1fr}.player-page h1{font-size:33px}.player-garage{grid-row:1;margin:0 0 5px;padding:0}.player-garage img{height:150px}.player-garage p{font-size:23px;margin:0 0 10px}.player-page .begin{min-width:0;width:100%}.secondary-instruments{gap:9px}.secondary-instruments label{font-size:15px}.masthead nav{gap:24px}}

/* A single overhead perspective follows the entire circuit. */
.overhead-car{display:block;width:100%;height:100%;object-fit:contain}.perimeter-track .race-car,.perimeter-track .race-car[data-view=overhead]{width:60px;height:98px;transform-origin:50% 50%}.race-car .vehicle-sprite{display:none}.perimeter-track .tow-truck{width:54px;height:88px;transform-origin:50% 50%}.runoff-grass{fill:none;stroke:url(#runoffGrass);stroke-width:190}.runoff-gravel{fill:none;stroke:url(#runoffGravel);stroke-width:99}
body[data-view=arena] .masthead{padding-top:124px;height:210px}.arena{padding-inline:132px;min-height:calc(100dvh - 315px)}
@media(max-width:600px){.perimeter-track .race-car,.perimeter-track .race-car[data-view=overhead]{width:36px;height:58px}.perimeter-track .tow-truck{width:31px;height:51px}.runoff-grass{stroke-width:102}.runoff-gravel{stroke-width:52}body[data-view=arena] .masthead{padding-top:69px;height:151px}body[data-view=arena] .masthead nav{gap:16px}body[data-view=arena] .masthead .nav{font-size:18px}.arena,.arena:has(.note-answers){padding-inline:64px;min-height:calc(100dvh - 236px)}.arena:has(.mallet-answers){padding-inline:56px}.arena:has(.mallet-answers) .game-top,.arena:has(.mallet-answers) .game-metrics{margin-inline:8px}}

/* Recovery is a timed game state; motion only illustrates the penalty. */
.recovery-status{position:relative;width:max-content;max-width:100%;margin:16px auto 0;padding:3px 4px 8px;font:20px/1.3 var(--hand);color:var(--red)}
.recovery-status:after{content:'';position:absolute;bottom:0;left:0;height:4px;background:var(--red);width:100%;transform-origin:left;animation:recovery-fill 3s linear both;border-radius:40%}
body:has(#pauseDialog[open]) .recovery-status:after{animation-play-state:paused}
.answer.is-correct:disabled{opacity:1!important}
@keyframes recovery-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(prefers-reduced-motion:reduce){.recovery-status:after{animation:none}}

/* A layered cartoon: readable lettering, a helmeted note, and cloth in motion. */
.logo{overflow:visible;padding:0;flex-shrink:0;background:none;border:0;cursor:pointer}
.logo:disabled{opacity:1;cursor:default}
.logo .logo-stage{display:block;width:100%;height:auto;aspect-ratio:1800 / 650;filter:drop-shadow(1px 4px 0 #6f57332c);pointer-events:none}
.logo:focus-visible{outline:3px solid var(--blue);outline-offset:7px}
@media(prefers-reduced-motion:reduce){.logo .logo-stage{transform:none!important}}

.volume-control{display:flex;flex-direction:column;gap:0;min-width:100px;width:120px;font:17px/1.2 var(--hand);color:var(--ink)}.volume-control>span{display:flex;align-items:center;justify-content:space-between;gap:10px}.volume-control output{font:14px/1.2 Arial,sans-serif;font-variant-numeric:tabular-nums;color:var(--muted)}.volume-control input{width:100%;min-height:32px;margin:0;accent-color:var(--paint);cursor:pointer}.volume-control input:focus-visible{outline:2px solid var(--paint);outline-offset:3px;border-radius:4px}
@media(max-width:800px){.volume-control{width:100px;min-width:80px}.masthead{gap:18px}.masthead nav{gap:20px}}
@media(max-width:600px){.masthead .tools{gap:10px}.masthead nav{gap:18px}.volume-control{width:90px;font-size:16px}.volume-control output{font-size:12px}body[data-view=arena] .volume-control{width:85px}}

.admin-page{max-width:1120px;margin:35px auto 80px;padding:0 28px}.admin-page h1{font-size:clamp(32px,4vw,48px);letter-spacing:-1.3px;font-weight:600;margin:0 0 20px}.admin-tabs{margin:32px 0;flex-wrap:wrap}.admin-tabs span{font-size:14px}.admin-filters{display:flex;align-items:end;gap:25px;flex-wrap:wrap;margin:25px 0}.admin-filters label{font-size:14px;color:var(--muted);min-width:130px;max-width:280px;flex:1}.admin-filters select{font-size:17px}.review-row{border-block-start:1px solid var(--line);padding:25px 0}.review-row h2{font-size:18px;font-weight:550;margin:0 0 10px}.review-row p{font-size:14px;line-height:1.6;color:var(--muted);margin:6px 0}.review-row input{display:block;width:100%;max-width:430px;border:0;border-bottom:1px solid var(--muted);background:transparent;color:var(--ink);font:inherit;font-size:23px;padding:9px 0;margin-bottom:14px}.review-actions{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin-top:16px}.review-actions .begin{font-size:16px;min-width:130px;padding:11px 23px}.review-actions .text-button{font-size:15px}.admin-page .danger{color:var(--red)}.admin-page table{width:100%;border-collapse:collapse}.admin-page th{text-align:left;font-weight:400;color:var(--muted);font-size:14px;padding:12px 10px 12px 0}.admin-page td{border-top:1px solid var(--line);padding:18px 10px 18px 0;font-size:16px;vertical-align:top}.admin-page td small{display:block;font-size:13px;color:var(--muted);margin-top:4px}.admin-page td .text-button{display:block;font-size:14px}.admin-paging{display:flex;justify-content:space-between;margin-top:25px}#adminExplanation{font-size:14px;line-height:1.6}#adminStatus.error{font-size:16px}@media(max-width:650px){.admin-page{padding:0 20px;margin-top:20px}.admin-tabs{gap:20px;font-size:16px}.admin-filters{gap:18px}.admin-filters label{min-width:40%;max-width:none}.admin-page td{font-size:14px;padding-right:7px}.review-actions{gap:18px}.admin-page table{table-layout:fixed}.admin-page th:first-child,.admin-page td:first-child{width:40px}.admin-page .removed-table th:first-child,.admin-page .removed-table td:first-child{width:auto}.admin-page td{overflow-wrap:anywhere}}

#coinTools{max-width:760px}#coinTools input,#coinTools select{display:block;width:100%;padding:10px 12px;border:1px solid var(--line);background:#fffdf6;color:var(--ink);font:16px Arial,sans-serif;margin-top:7px}#coinTools label{font:14px Arial,sans-serif;color:var(--muted)}#coinTools .coin-award-fields{display:grid;grid-template-columns:110px 1fr;gap:22px;margin:22px 0}#coinPlayerDetail,#awardStatus,#teacherAwardHistory{font:15px/1.6 Arial,sans-serif}#coinTools h2{font-size:25px;margin-top:34px}.teacher-award{display:flex;gap:25px;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line)}.teacher-award small{display:block;color:var(--muted)}#coinSearch label{max-width:none}.coin-award-form .begin{font-size:20px}#awardStatus{min-height:24px}@media(max-width:500px){#coinTools .coin-award-fields{grid-template-columns:80px 1fr;gap:14px}}

@font-face{font-family:'Pixel UI';src:url('/fonts/ithaca.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
:root,:root.adobe-font-ready{--pixel:'Pixel UI',monospace;--pixel-ui:var(--pixel)}
.pixel-icon{display:inline-block;flex-shrink:0;vertical-align:middle;image-rendering:pixelated;shape-rendering:crispEdges}
.coin-wallet .pixel-icon{width:34px;height:34px}
.sticker-art>.pixel-icon{width:68px;height:68px}
.achievement .sticker-art>.pixel-icon{width:76px;height:76px}
.invention-drawing.pixel-plan{image-rendering:pixelated;image-rendering:crisp-edges}
@media(max-width:600px){.sticker-art>.pixel-icon{width:54px;height:54px}.achievement .sticker-art>.pixel-icon{width:58px;height:58px}}

/* The pixel shell is deliberately separate from the engraved music renderer. */
:root,
:root.adobe-font-ready {
  color-scheme: dark;
  --paper: #091c31;
  --ink: #fff4d4;
  --muted: #b2c3d4;
  --blue: #77cbf1;
  --line: #3d607b;
  --lime: #66d493;
  --green: #66d493;
  --pink: #ff87c0;
  --red: #ff8c82;
  --paint: #e74639;
  --hand: 'Pixel UI', ui-monospace, monospace;
  --marker: 'Pixel UI', ui-monospace, monospace;
  --pixel-panel: #102d49;
  --pixel-edge: #456783;
  --pixel-dark: #03101d;
  --pixel-gold: #ffdc59;
  --pixel-text: 'Pixel UI', ui-monospace, monospace;
}

body {
  position: relative;
  background: #081c30;
  color: var(--ink);
  font: 18px/1.5 var(--pixel-text);
}
body::before,
body::after { display: none; }
body[data-view=lobby],
body[data-view=access] {
  background: #123551 url('/pixel-pit-v1.png') center center / cover scroll no-repeat;
}
body[data-view=lobby]::before,
body[data-view=access]::before {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  background: #00172b28;
  clip-path: none;
  box-shadow: none;
  pointer-events: none;
}
button, select, input { font-family: var(--pixel-text); }
.race-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:20px; }
.lobby .race-heading h1 { margin:0; }
.multiplayer-entry { display:inline-flex; align-items:center; min-height:48px; padding:8px 16px; border:3px solid #75bed8; background:#173e59; color:#ffe478; box-shadow:3px 3px #03101d; font:22px/1.3 var(--marker); text-decoration:none; text-transform:uppercase; }
.multiplayer-entry:hover { background:#20506d; }
@media(max-width:600px) { .multiplayer-entry { font-size:20px; } }
.racer-privacy .racer-name-columns select {
  font: 18px/1.4 var(--pixel-text);
}
.racer-privacy .racer-name-columns > label,
.racer-privacy #racerCurrentName,
.racer-privacy .text-button { font-size: 18px; }
.racer-privacy .text-button { min-height: 44px; }
.stats-page,.stats-page select,.stats-page button,.stats-page table {
  font-family: var(--pixel-text);
}
h1, h2, h3 {
  font-family: var(--marker);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--pixel-gold);
  outline-offset: 4px;
}
button:disabled { opacity: .45; }
select option { background: #102d49; color: var(--ink); font-family: var(--pixel-text); font-size: 16px; }

/* Header spacing shared by the pixel title and main navigation. */
body:not([data-view=arena]) .masthead {
  max-width: 1380px;
  height: 132px;
  min-height: 0;
  padding: 12px 36px;
  gap: 24px;
}
.masthead nav {
  display: flex;
  gap: 4px;
  padding: 5px;
  background: #071e34;
  border: 3px solid #42677f;
  box-shadow: 4px 4px 0 #030f1e;
}
.masthead .nav {
  padding: 10px 15px;
  color: #c5d4e2;
  font: 19px/1.2 var(--marker);
  text-transform: uppercase;
  transform: none;
}
.masthead .nav.active { background: var(--pixel-gold); color: #071a2b; }
.masthead .nav:hover:not(:disabled):not(.active) { background: #204764; color: #fff5d6; }
.masthead .nav.active::after { display: none; }
.masthead .tools { gap: 12px; }
.volume-control {
  width: 108px;
  min-width: 82px;
  font: 13px/1.3 var(--pixel-text);
  color: #fff4d4;
  background: #081d32e8;
  padding: 7px 9px 1px;
  border: 2px solid #36566f;
}
.volume-control output { color: #c5d4e2; font-size: 12px; }
.volume-control input { accent-color: var(--pixel-gold); min-height: 29px; }
.icon-button {
  width: 34px;
  height: 36px;
  background: #102d49;
  border: 2px solid #567591;
  box-shadow: 2px 2px 0 #03101d;
  color: #ffdf62;
  font: 22px/1 var(--marker);
}
.text-button, .footer-links > a {
  font: 14px/1.4 var(--pixel-text);
  color: #c3d6e3;
}
.text-button:hover { color: #ffdf62; }
.begin {
  font: 23px/1.15 var(--marker);
  letter-spacing: 0;
  text-transform: uppercase;
  min-height: 54px;
  padding: 14px 24px;
  min-width: 170px;
  color: #fff7dd;
  background: #dc3e32;
  border: 3px solid #ff9f76;
  border-bottom-color: #962525;
  border-right-color: #962525;
  border-radius: 0;
  box-shadow: 4px 5px 0 #03101d;
  transform: none;
  rotate: none;
  clip-path: none;
  transition: background .1s, transform .1s;
}
.begin:hover:not(:disabled) {
  background: #f0513e;
  transform: translateY(-1px);
  box-shadow: 4px 6px 0 #03101d;
}
.begin:active:not(:disabled) { transform: translate(2px, 3px); box-shadow: 2px 2px 0 #03101d; }
.status { font: 14px/1.5 var(--pixel-text); color: var(--muted); }
.status.error { color: var(--red); }

/* Setup: a compact pit board, with space for the selected car beside it. */
.lobby {
  display: grid;
  grid-template-columns: minmax(370px, .9fr) minmax(400px, 1.25fr);
  grid-template-rows: auto auto auto auto;
  align-items: start;
  gap: 0 34px;
  max-width: 1260px;
  margin: 22px auto 60px;
  padding: 0 28px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  isolation: isolate;
}
.lobby::before, .lobby::after { display: none; }
.lobby h1 {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  font: 24px/1.3 var(--marker);
  text-transform: uppercase;
  color: #ffdf62;
  background: #081c30;
  margin: 0;
  padding: 17px 21px 15px;
  border: 4px solid #50718b;
  border-bottom: 0;
  transform: none;
  white-space: normal;
}
.lobby .practice-switch {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  justify-content: stretch;
  margin: 0;
  padding: 0 18px 18px;
  border: 4px solid #50718b;
  border-block: 0;
  background: #081c30;
}
.lobby .practice-switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 57px;
  padding: 9px 5px;
  font: 16px/1.25 var(--marker);
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
  width: auto;
  background: #183b58;
  color: #ccdce8;
  border: 2px solid #476b88;
  transform: none;
  border-radius: 0;
}
.lobby .practice-switch button:nth-child(4),
.lobby .practice-switch button:nth-child(5) { grid-column: auto; }
.lobby .practice-switch button[aria-pressed=true] { background: #ffdc59; border-color: #ffe99e; color: #071a2b; }
.lobby .practice-switch button[aria-pressed=true]::after { display: none; }
.lobby .practice-switch button:hover:not([aria-pressed=true]) { background: #295676; color: #fff7e4; }
.lobby .setup { display: contents; }
.lobby .setup-controls {
  grid-column: 1;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  max-width: none;
  width: 100%;
  gap: 19px;
  background: #102d49;
  border: 4px solid #50718b;
  border-block: 0;
  padding: 0 18px 23px;
}
.lobby select, .lobby #instrument, .lobby .piece-controls select {
  font: 18px/1.3 var(--pixel-text);
  font-weight: 600;
  width: 100%;
  min-height: 47px;
  padding: 10px 30px 10px 12px;
  border: 3px solid #7591a6;
  border-bottom-color: #29465e;
  border-right-color: #29465e;
  border-radius: 0;
  color: #071b31;
  background: #fff2cb;
  margin: 0;
}
.instrument-label, .lobby .field-label, .lobby .piece-controls label,
.tempo-controls label {
  color: #c4d7e7;
  font: 13px/1.4 var(--pixel-text);
  margin-bottom: 6px;
}
.race-format, .duration-controls, .valve-controls { gap: 7px; flex-wrap: wrap; }
.race-format button, .duration-controls button, .valve-controls button {
  font: 17px/1.25 var(--marker);
  color: #c8d6e3;
  padding: 10px 14px;
  min-height: 42px;
  background: #091d32;
  border: 2px solid #476782;
  transform: none;
  rotate: none;
  border-radius: 0;
  box-shadow: none;
}
.race-format button { flex: 1; }
.race-format button[aria-pressed=true], .duration-controls button[aria-pressed=true], .valve-controls button[aria-pressed=true] {
  background: #d6e9e9;
  border-color: #fff4d4;
  color: #0b293d;
  transform: none;
  box-shadow: none;
}
.duration-controls button { padding: 8px 11px; }
.favorite-instruments { gap: 7px; margin-top: 10px; }
.favorite-instruments button {
  background: #163a55;
  color: #d9e7ec;
  border: 2px solid #4f758e;
  border-radius: 0;
  font: 14px/1.3 var(--pixel-text);
  padding: 6px 9px;
}
.favorite-instruments button[aria-pressed=true] { background: #fbd758; color: #10283a; border-color: #ffec9a; }
.tempo-controls output { color: #ffdf62; font: 20px/1.2 var(--marker); }
.tempo-controls input { accent-color: #ffdc59; }
.tempo-stake { color: #c3d6e3; font: 14px/1.4 var(--pixel-text); }
.lobby .garage, .lobby[data-mode=terms] .garage, .lobby[data-mode=rhythm-identify] .garage {
  grid-column: 2;
  grid-row: 1 / span 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  max-width: none;
  min-height: 490px;
  padding: 15px 0 0;
}
.lobby .garage::before {
  display: block;
  content: '';
  position: absolute;
  left: 5%;
  right: 1%;
  top: auto;
  bottom: 8px;
  height: 45px;
  background: #051a2a65;
  border-bottom: 5px solid #dce2bd88;
  border-top: 0;
  box-shadow: none;
  clip-path: none;
  transform: none;
  z-index: 0;
}
.lobby .garage .level-field { align-self: center; margin-bottom: auto; }
.lobby .garage .earned-levels { gap: 8px; margin: 0; padding: 6px; background: #071c32; border: 3px solid #50718b; box-shadow: 4px 4px 0 #03101d; }
.lobby .garage .level-choice {
  font: 20px/1.25 var(--marker);
  min-height: 39px;
  padding: 7px 15px;
  border: 0;
  background: #143652;
  color: #cbdce9;
  transform: none;
  rotate: none;
  clip-path: none;
  box-shadow: none;
}
.lobby .garage .level-choice[aria-pressed=true] { background: #ffdc59; color: #10283a; box-shadow: none; }
.lobby .vehicle-art { height: 385px; width: 100%; margin: 10px auto 0; filter: none; }
.lobby .vehicle-art .vehicle-sprite { max-width: 670px; transform: none; }
.lobby .vehicle-art img { filter: none; transform: none; image-rendering: pixelated; }
.lobby .start-line {
  grid-column: 1;
  grid-row: 4;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: 18px;
  border: 4px solid #50718b;
  border-top: 2px solid #385773;
  background: #102d49;
  box-shadow: 5px 6px 0 #03101d;
}
.lobby .race-details { gap: 5px; }
.lobby .race-details #roundSize { font: 18px/1.3 var(--marker); color: #ffdf62; }
.lobby .race-details #unlockRule { font: 14px/1.45 var(--pixel-text); color: #d4e0e8; }
.lobby .start-line .begin { width: 100%; }
.lobby #setupStatus { grid-column: 1 / -1; grid-row: 5; background: #071c32; margin-top: 18px; padding: 8px 12px; }
.lobby #setupStatus:empty { margin: 0; padding: 0; }

/* Player screens keep their data readable; the world lives in the service bay. */
.player-page, .stats-page, .finish, .access {
  color: var(--ink);
  background: #102d49;
  background-image: none;
  border: 4px solid #456783;
  border-radius: 0;
  box-shadow: 6px 7px 0 #030f1e;
  transform: none;
  rotate: none;
}
.player-page {
  max-width: 1380px;
  width: calc(100% - 64px);
  margin: 15px auto 45px;
  padding: 25px 28px 28px;
}
.player-heading { gap: 16px; }
.player-page h1 { font: 28px/1.3 var(--marker); margin: 0; color: #ffdf62; }
.coin-wallet {
  font: 14px/1.2 var(--pixel-text);
  gap: 7px;
  color: #e8dbae;
  border: 3px solid #426783;
  background: #071c30;
  padding: 7px 13px;
  box-shadow: 3px 3px 0 #03101d;
}
.coin-wallet img { width: 30px; height: 30px; image-rendering: pixelated; }
.coin-wallet strong { font: 23px/1.2 var(--marker); color: #fff4d4; }
.player-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 23px;
  padding: 0 0 16px;
  border-bottom: 2px solid #456783;
}
.player-sections button {
  font: 17px/1.3 var(--marker);
  text-transform: uppercase;
  min-height: 42px;
  padding: 9px 16px;
  background: #193c57;
  border: 2px solid #52738f;
  color: #cbdce9;
  text-decoration: none;
}
.player-sections button[aria-pressed=true] { color: #10283a; background: #ffdc59; border-color: #ffe89f; text-decoration: none; }
#garagePanel.cardboard-garage {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.garage-roof { display: none; }
.cardboard-garage .garage-workspace {
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 1fr);
  gap: 22px;
  align-items: start;
}
.cardboard-garage .garage-display {
  position: sticky;
  top: 18px;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
}
.garage-bay {
  height: 540px;
  background: #172938 url('/pixel/garage-approved-v2.webp') center center / cover no-repeat;
  border: 4px solid #345d76;
  border-bottom: 0;
  border-radius: 0;
  box-shadow: inset 0 4px 0 #071827;
  isolation: isolate;
  image-rendering: pixelated;
}
.garage-bay::before { display: none; }
.garage-bay::after {
  content: '';
  left: -4px;
  right: -4px;
  bottom: -3px;
  height: 18px;
  border: 0;
  background: repeating-linear-gradient(135deg,#e8b746 0 13px,#14283a 13px 26px);
  clip-path: none;
  box-shadow: 0 4px 0 #071523;
  z-index: 3;
}
.garage-wall-art { display: none; }
.garage-bay #garageDiagram {
  left: 27%;
  top: 39px;
  width: 52%;
  height: 180px;
  z-index: 1;
}
.garage-bay .invention-sheet {
  border: 3px solid #d6bb7b;
  background-color: #f5e7be;
  background-image: linear-gradient(#798ba52b 1px,transparent 1px),linear-gradient(90deg,#798ba52b 1px,transparent 1px);
  background-size: 14px 14px;
  border-radius: 0;
  box-shadow: 4px 4px 0 #0b192d;
  rotate: none;
}
.invention-sheet::before, .invention-sheet::after, .invention-tape { display: none; }
.invention-drawing { shape-rendering: crispEdges; }
.garage-bay #garageCarWrap {
  left: -1%;
  bottom: 8px;
  width: 102%;
  height: 335px;
  max-height: none;
}
.garage-bay #garageCarWrap > .paper-vehicle { filter: none; }
.garage-display #garageCar { filter: none; image-rendering: pixelated; }
.garage-workbench {
  height: 32px;
  margin: 0 0 12px;
  padding: 8px 13px;
  border: 4px solid #345d76;
  border-top: 0;
  border-radius: 0;
  background: #0b233b;
  box-shadow: 0 4px 0 #03101d;
  gap: 18px;
}
.garage-workbench i { background: #173b56; border: 2px solid #3e617b; border-radius: 0; box-shadow: none; }
.garage-workbench i::after { height: 3px; top: 2px; background: #8398a8; border-radius: 0; box-shadow: none; }
.cardboard-garage .garage-preview-controls { margin: 16px 0 0; }
.cardboard-garage .garage-preview-controls #previewBurst {
  color: #fff4d4;
  background: #214862;
  border: 2px solid #577993;
  border-radius: 0;
  box-shadow: 3px 3px 0 #03101d;
  padding: 9px 18px;
  font: 17px/1.2 var(--marker);
  rotate: none;
}
.cardboard-garage .garage-collection {
  padding: 13px;
  background: #081f35;
  background-image: none;
  border: 4px solid #3d627e;
  border-radius: 0;
  box-shadow: 4px 5px 0 #03101d;
}
.cardboard-garage .garage-tools { display: block; }
.cardboard-garage .shop-slots {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px;
  margin: 0 0 14px;
  padding: 0 0 12px;
  background: none;
  border-bottom: 2px solid #3d627e;
  box-shadow: none;
  border-radius: 0;
  rotate: none;
}
.cardboard-garage .shop-slots button {
  flex: 1 0 auto;
  font: 15px/1.2 var(--marker);
  min-height: 38px;
  padding: 7px 8px;
  color: #d1deeb;
  background: #153751;
  border: 2px solid #355875;
  text-decoration: none;
  text-transform: uppercase;
}
.cardboard-garage .shop-slots button[aria-pressed=true] { color: #10283a; background: #ffdc59; border-color: #ffeba0; text-decoration: none; }
.cardboard-garage .garage-tools > .text-button {
  position: static;
  float: right;
  color: #b9d1e3;
  background: none;
  font: 12px/1.4 var(--pixel-text);
  padding: 2px 0 5px;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.cardboard-garage .garage-filter-row, .badge-filters { gap: 12px; margin: 0 0 14px; }
.cardboard-garage .garage-filter-row label, .badge-filters label {
  font: 12px/1.4 var(--pixel-text);
  color: #c3d5e5;
  background: none;
  padding: 0;
  max-width: 100%;
  box-shadow: none;
  border-radius: 0;
}
.cardboard-garage .garage-filter-row select, .badge-filters select {
  font: 14px/1.4 var(--pixel-text);
  color: #0e2b40;
  background: #f4edcf;
  border: 2px solid #8199a5;
  border-radius: 0;
  min-height: 37px;
  padding: 6px 25px 6px 9px;
}
.cardboard-garage .garage-items {
  padding: 4px 5px 8px 3px;
  max-height: 357px;
  gap: 10px;
  scrollbar-color: #76a1bc #0a2239;
}
.cardboard-garage .car-items { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.cardboard-garage .garage-item {
  min-height: 137px;
  background: #123550;
  color: #f4edcf;
  border: 3px solid #3f627e;
  border-radius: 0;
  box-shadow: 2px 3px 0 #030f1d;
  padding: 10px 7px;
  font: 16px/1.25 var(--marker);
  gap: 5px;
  transform: none;
}
.cardboard-garage .garage-item::before { display: none; }
.cardboard-garage .garage-item[aria-pressed=true] { background: #204560; border-color: #ffdf62; outline: 1px solid #ffdf62; outline-offset: 1px; }
.cardboard-garage .garage-item:hover:not([aria-pressed=true]) { background: #1d4662; border-color: #739ab3; }
.cardboard-garage .garage-item small { color: #b8cbda; font: 12px/1.4 var(--pixel-text); }
.cardboard-garage .garage-item img, .vehicle-thumb img { image-rendering: pixelated; }
.cardboard-garage .vehicle-thumb { height: 88px; min-height: 60px; max-width: 195px; }
.cardboard-garage .garage-selection {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #13344e;
  color: #fff4d4;
  border-top: 2px solid #3d627e;
  border-radius: 0;
  box-shadow: none;
  margin: 14px -1px 0;
  padding: 15px 6px 8px;
  gap: 14px;
}
.cardboard-garage .garage-selection h3 { font: 20px/1.25 var(--marker); color: #fff1c4; }
.cardboard-garage .garage-selection .begin { font: 18px/1.2 var(--marker); width: auto; min-width: 100px; min-height: 45px; padding: 10px 16px; background: #ffdc59; color: #10283a; border-color: #ffeba0 #bd8732 #bd8732 #ffeba0; }
.cardboard-garage .garage-selection .begin:hover:not(:disabled) { background: #ffe889; }
#garageDescription { font: 13px/1.45 var(--pixel-text); color: #bed1de; margin: 7px 0 0; max-width: 290px; }
.cardboard-garage .garage-unlock {
  margin: 0 -1px;
  padding: 10px 7px 12px;
  color: #bfd4e2;
  background: #13344e;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: 13px/1.5 var(--pixel-text);
}
.garage-unlock progress, .achievement progress { accent-color: #ffdc59; border-radius: 0; }
.garage-unlock progress { height: 12px; }
.garage-signals .complete { color: #76dda4; }
.cardboard-garage .garage-price-hint { margin: 7px 0 0; padding: 6px; color: #c5d7e3; background: none; border-radius: 0; }
.cardboard-garage .garage-status:not(:empty) { background: #173d53; color: #ddf1e4; border: 2px solid #4c7b80; border-radius: 0; box-shadow: none; padding: 10px 14px; }
.collection-empty { color: #bdcfdd; }
.cardboard-garage .coin-details { margin-top: 24px; border-top: 2px solid #3d607b; color: #bcd0df; padding-top: 15px; font: 14px/1.6 var(--pixel-text); }
.cardboard-garage .coin-details summary { font: 16px/1.4 var(--marker); color: #d3e1e9; }
.cardboard-garage .coin-history li { border-color: #355570; }
.cardboard-garage .coin-history small { color: #a9c1d4; }
.coin-history strong { color: #76dda4; }
.coin-history .spent { color: #ffd48c; }
.paint-sample { width: 47px; height: 47px; border-radius: 0; transform: none; border: 3px solid #d9e8e1; box-shadow: inset -5px -5px 0 #0004, inset 4px 4px 0 #fff5, 3px 3px 0 #041326; }
.color-sample { transform: none; }
.color-sample i { clip-path: polygon(40% 0,60% 0,60% 35%,100% 35%,100% 60%,60% 60%,60% 100%,40% 100%,40% 60%,0 60%,0 35%,40% 35%); filter: none; }
.no-decal, .part-symbol { font-family: var(--marker); color: #b7cee0; }
.spoiler-sample { transform: none; }
.spoiler-sample b { clip-path: none; }
.eye-sample i { border-radius: 0; border: 4px solid #051326; box-shadow: 3px 3px 0 #3c5875; }
.eye-sample i::after { border-radius: 0; }
.garage-mystery, .cardboard-garage .garage-secret-preview .garage-mystery {
  background: repeating-linear-gradient(0deg,#16364e 0 8px,#1c3e58 8px 12px);
  color: #d1e1e8;
  border: 3px solid #57788e;
  clip-path: none;
  box-shadow: 4px 4px 0 #04101e;
}
.garage-mystery > strong { font: 35px/1.2 var(--marker); }
.mystery-sticker { color: #9fb8c9; background: #193e56; border: 3px solid #4a6b83; clip-path: none; }
.milestone-stamp { font: 14px/1.2 var(--marker); rotate: none; border: 2px solid #18344b; box-shadow: 2px 2px 0 #071829; }

/* Achievements and player details. */
.badge-heading h2 { font: 25px/1.3 var(--marker); color: #ffdf62; }
.badge-heading > span { font: 14px/1.4 var(--pixel-text); color: #bdd0df; }
.badge-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.achievement { background: #0b2339; border: 2px solid #3d607b; padding: 19px 15px; }
.achievement h3 { font: 19px/1.3 var(--marker); color: #fff1ca; }
.achievement img { image-rendering: pixelated; }
.achievement p, .achievement-copy > small, .achievement-copy > span { color: #b7cbdc; font-family: var(--pixel-text); }
.achievement p { font-size: 13px; }
.achievement-copy > .badge-earned, .achievement-copy > .achievement-reward { color: #78dfa3; }
.achievement-copy > .badge-equip { font: 15px/1.3 var(--marker); color: #ffdf62; }
.achievement-copy > .badge-equip:disabled { color: #78dfa3; }
.achievement.locked .milestone-stamp { color: #b2c5d4; background: #294760; border-color: #526c82; }
.achievement-star { color: #ffdc59; }
.badge-pagination { gap: 25px; }
.badge-pagination button { font: 16px/1.3 var(--marker); color: #d4e4eb; }
.badge-pagination > span, .badge-rules { color: #b5cadb; font-family: var(--pixel-text); }
.player-layout { grid-template-columns: minmax(270px, 1fr) 1fr; gap: 38px; }
.player-page form > label, .player-page legend { color: #d2e2e9; font: 16px/1.4 var(--pixel-text); margin: 0 0 8px; }
.player-page .optional { color: #9bb5c8; font-size: 13px; }
.player-page input[type=text], .player-page #profileName, .player-page #primaryInstrument {
  font: 16px/1.4 var(--pixel-text);
  border: 3px solid #5d7d93;
  background: #f6edcd;
  color: #102b40;
  border-radius: 0;
  min-height: 46px;
  padding: 10px 12px;
}
.player-page #profilePrivacy { color: #aac4d7; font: 13px/1.5 var(--pixel-text); }
.secondary-instruments label { color: #d1e0e9; font: 15px/1.4 var(--pixel-text); }
.secondary-instruments input { accent-color: #ffdc59; }
.player-garage {
  background: #172938 url('/pixel/garage-approved-v2.webp') center / cover;
  border: 3px solid #436a83;
  transform: none;
  box-shadow: 4px 4px 0 #03101d;
  margin-top: 0;
  padding: 15px 15px 0;
}
.player-garage img { image-rendering: pixelated; filter: none; }
.player-garage p { font: 20px/1.4 var(--marker); color: #ffdf62; margin: 5px -15px 0; padding: 8px; background: #071c32; }

/* Scoreboard: strong columns, calm typography and an obvious personal row. */
.stats-page {
  max-width: 1190px;
  width: calc(100% - 64px);
  margin: 18px auto 55px;
  padding: 28px;
  color: #e0eaf0;
  font: 15px/1.5 var(--pixel-text);
}
.stats-page h1 { color: #ffdf62; font: 30px/1.3 var(--marker); margin: 0; transform: none; }
.stats-page h2, .stats-page .history-head h2 { color: #fff1ca; font: 22px/1.3 var(--marker); }
.stats-heading { gap: 18px; margin-bottom: 25px; }
.stats-page .scope { gap: 5px; }
.stats-page .scope button {
  min-height: 40px;
  background: #173a55;
  border: 2px solid #52758f;
  border-radius: 0;
  color: #d5e2eb;
  padding: 8px 14px;
  font: 15px/1.3 var(--marker);
}
.stats-page .scope button[aria-pressed=true] { background: #ffdc59; color: #10283a; border-color: #ffeba0; }
.stats-page .stats-filters { gap: 15px; margin: 0 0 26px; }
.stats-page .stats-filters label { color: #bdcedc; font: 13px/1.4 var(--pixel-text); flex: 1 1 145px; max-width: 260px; }
.stats-page .stats-filters select {
  background: #f7eed4;
  border: 2px solid #7a93a5;
  border-radius: 0;
  color: #17334b;
  min-height: 43px;
  font: 15px/1.4 var(--pixel-text);
  padding: 8px 28px 8px 10px;
}
.stats-page .stat-grid { border: 3px solid #3a607c; padding: 22px 9px; background: #081f34; gap: 0; }
.stats-page .stat-grid > div { border-color: #3b5970; padding: 0 17px; }
.stats-page .stat-grid strong { color: #ffdf62; font: 29px/1.3 var(--marker); letter-spacing: 0; }
.stats-page .stat-grid span { color: #bacfdd; font: 13px/1.4 var(--pixel-text); }
.stats-page table { color: #e2eaf0; background: #0b243b; font: 15px/1.5 var(--pixel-text); }
.stats-page th { color: #c9dbe7; background: #1c415d; font: 13px/1.4 var(--pixel-text); padding: 13px; }
.stats-page td { border-color: #35546d; padding: 14px 13px; font-size: 15px; }
.stats-page td small { color: #a9c4d7; font-size: 13px; }
.stats-page tr.your-standing { background: #215049; }
.stats-page tr.your-standing td:first-child { box-shadow: inset 4px 0 0 #ffdc59; }
.stats-page .reward-star { color: #ffdf62; }
.stats-page .status, .stats-page .empty { color: #b6cada; font-size: 14px; }
.name-invite { border-color: #426781; border-style: solid; }
.name-invite p { color: #ffdf62; }
.name-invite .text-button { color: #eef3d9; }

/* Results and dialogs share the same simple arcade panel construction. */
.finish { width: calc(100% - 64px); max-width: 980px; margin: 24px auto 55px; padding: 32px; }
.result-kicker { color: #c1d4e2; font: 16px/1.3 var(--marker); margin-bottom: 15px; }
.finish h1 { color: #ffdf62; font: 38px/1.2 var(--marker); transform: none; margin-bottom: 28px; letter-spacing: 0; }
.result-metrics { background: #0a2238; border-block: 2px solid #3e617b; margin: 25px 0; padding: 25px 12px; gap: 45px; }
.result-metrics strong { color: #fff1ca; font: 34px/1.3 var(--marker); letter-spacing: 0; }
.result-metrics span { color: #afc6d7; font: 13px/1.4 var(--pixel-text); }
.finish > p { color: #c6d8e4; font: 16px/1.5 var(--pixel-text); }
.result-actions .begin { font: 21px/1.2 var(--marker); }
.finish summary { border-color: #4a6881; color: #e3e9d8; font: 16px/1.4 var(--marker); }
.finish .miss, .term-review-item { border-color: #385975; }
.finish .miss { background: #f8f0d9; color: #18354b; padding: 12px; margin-top: 5px; }
.finish .miss-answer { color: #405a6c; }
.term-review-item p { color: #b8cede; }
#roundReward { color: #ffdf62; font: 21px/1.4 var(--marker); }
#roundReward span { color: #9bdbae; }
.receipt-car { background: #0c253b; border: 3px solid #54778e; clip-path: none; }
.receipt-car strong { font: 22px/1.3 var(--marker); }
dialog {
  background: #102d49;
  color: #fff1ce;
  border: 4px solid #557890;
  border-radius: 0;
  box-shadow: 7px 8px 0 #030f1e;
  font: 15px/1.55 var(--pixel-text);
  padding: 28px;
}
dialog::backdrop { background: #03111dcc; backdrop-filter: none; }
dialog h2 { color: #ffdf62; font: 27px/1.3 var(--marker); letter-spacing: 0; transform: none; }
dialog p { color: #c2d5e3; font: 15px/1.55 var(--pixel-text); }
dialog .begin { font: 20px/1.2 var(--marker); }
.dialog-close { color: #ffdf62; font: 30px/1 var(--pixel-text); }
.key { border: 1px solid #708a9f; border-radius: 0; background: #183b54; color: #f9eecb; }
#leaderboardName { color: #122d43; background: #fff1cd; border: 2px solid #7f99a7; padding: 10px; font-size: 18px; }
.access { padding: 27px; max-width: 460px; width: calc(100% - 40px); margin: 60px auto 80px; }
.access h1 { font: 28px/1.35 var(--marker); transform: none; color: #ffdf62; letter-spacing: 0; }
.access label, .access #codeHint { font: 14px/1.5 var(--pixel-text); }
.access-tabs { gap: 12px; }
.access-tabs button { font: 15px/1.3 var(--marker); color: #b9d0df; }
.access-tabs button[aria-pressed=true] { color: #ffdf62; border-color: #ffdf62; }
.code-entry { border-color: #6d8ba1; }
.code-entry input { color: #fff1cd; }
dialog.victory { background: #081e34; color: #fff1ce; box-shadow: none; border: 0; }
dialog.victory::backdrop { background: #081e34; }
.victory h1 { color: #ffdf62; font: clamp(38px, 6vw, 76px)/1.15 var(--marker); transform: none; letter-spacing: 0; }
.victory-content > p { color: #f5e9ca; font: 21px/1.35 var(--marker); }
.victory #victoryScore { color: #d6e6e8; font: 26px/1.3 var(--marker); }
.victory .begin { background: #ffdc59; color: #10283a; border-color: #ffeba0 #bd8732 #bd8732 #ffeba0; font: 22px/1.2 var(--marker); }
.victory-drive .vehicle-sprite, .victory-drive img { image-rendering: pixelated; }
footer { max-width: 1380px; padding: 21px 36px; color: #b3cbdc; font: 13px/1.4 var(--pixel-text); }
body[data-view=lobby] footer, body[data-view=access] footer { background: #071c32ee; border-top: 2px solid #456783; }
.footer-links > a, footer .text-button { font-size: 13px; color: #b7cddd; }

@media (max-width: 1100px) {
  body:not([data-view=arena]) .masthead { gap: 16px; padding-inline: 26px; }
  .masthead nav { gap: 2px; }
  .masthead .nav { padding: 9px 11px; font-size: 17px; }
  .lobby { grid-template-columns: minmax(340px, .96fr) minmax(300px, 1.04fr); gap: 0 20px; }
  .lobby .vehicle-art { height: 340px; }
  .player-page { padding: 24px 22px; }
  .cardboard-garage .garage-workspace { grid-template-columns: minmax(0, 1.08fr) minmax(320px, 1fr); gap: 18px; }
  .garage-bay { height: 470px; }
  .garage-bay #garageDiagram { top: 31px; left: 23%; width: 58%; height: 158px; }
  .garage-bay #garageCarWrap { height: 290px; bottom: 8px; }
  .cardboard-garage .shop-slots button { font-size: 14px; padding-inline: 6px; }
  .cardboard-garage .garage-selection { flex-direction: column; align-items: stretch; }
  .cardboard-garage .garage-selection .begin { width: 100%; }
}
@media (max-width: 850px) {
  body:not([data-view=arena]) .masthead { height: auto; min-height: 128px; flex-wrap: wrap; gap: 13px 20px; justify-content: center; padding: 14px 24px; }
  body:not([data-view=arena]) .masthead .logo { width: 300px; margin-right: auto; }
  body:not([data-view=arena]) .masthead nav { margin-left: 0; }
  body:not([data-view=arena]) .masthead .tools { margin-left: auto; }
  .lobby { grid-template-columns: minmax(300px, 1fr) minmax(230px, .85fr); gap: 0 16px; margin-top: 18px; padding-inline: 22px; }
  .lobby .practice-switch { padding-inline: 12px; }
  .lobby h1 { padding: 15px 15px 13px; font-size: 22px; }
  .lobby .setup-controls, .lobby .start-line { padding-inline: 12px; }
  .lobby .vehicle-art { height: 300px; }
  .lobby .garage { min-height: 480px; }
  .cardboard-garage .garage-workspace { grid-template-columns: 1fr; gap: 22px; }
  .cardboard-garage .garage-display { position: relative; top: auto; width: 100%; max-width: none; }
  .garage-bay { height: 460px; background-position: center 56%; }
  .garage-bay #garageDiagram { left: 33%; width: 38%; height: 155px; top: 22px; }
  .garage-bay #garageCarWrap { height: 305px; left: 9%; width: 82%; }
  .cardboard-garage .garage-items { max-height: 330px; }
  .cardboard-garage .car-items { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .cardboard-garage .shop-slots { flex-wrap: nowrap; }
  .cardboard-garage .shop-slots button { flex: 1; font-size: 16px; }
  .cardboard-garage .garage-selection { flex-direction: row; align-items: center; }
  .cardboard-garage .garage-selection .begin { width: auto; min-width: 125px; }
  .player-layout { gap: 25px; }
  .stats-page .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 0; }
  .stats-page .stat-grid > div { border: 0; }
}
@media (max-width: 640px) {
  body[data-view=lobby], body[data-view=access] { background-attachment: scroll; }
  body:not([data-view=arena]) .masthead { padding: 13px 16px; gap: 12px; }
  body:not([data-view=arena]) .masthead .logo { width: 280px; max-width: 100%; margin: 0 auto; }
  body:not([data-view=arena]) .masthead nav { margin: 0; }
  .masthead .nav { font-size: 15px; padding: 8px 10px; }
  .masthead nav { border-width: 2px; padding: 3px; }
  .masthead .tools { gap: 9px; }
  .volume-control { width: 88px; min-width: 0; font-size: 11px; padding-inline: 6px; }
  .volume-control output { font-size: 10px; }
  .icon-button { width: 29px; height: 32px; font-size: 20px; }
  .lobby { display: flex; flex-direction: column; gap: 0; margin: 10px 14px 35px; padding: 0; }
  .lobby h1 { font-size: 21px; width: 100%; padding: 14px; }
  .lobby .practice-switch { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 12px 14px; }
  .lobby .practice-switch button { font-size: 15px; min-height: 48px; }
  .lobby .setup-controls { width: 100%; padding: 0 12px 19px; gap: 15px; border-bottom: 4px solid #50718b; }
  .lobby .garage, .lobby[data-mode=terms] .garage, .lobby[data-mode=rhythm-identify] .garage { width: 100%; min-height: 0; padding: 20px 0 4px; margin: 0; }
  .lobby .garage .level-field { margin: 0 auto; }
  .lobby .garage .level-choice { font-size: 18px; min-height: 35px; padding: 6px 13px; }
  .lobby .vehicle-art { height: 245px; margin-top: 0; max-width: 430px; }
  .lobby .garage::before { bottom: 8px; }
  .lobby .start-line { width: 100%; margin-top: 7px; padding: 15px; gap: 13px; border-top: 4px solid #50718b; }
  .lobby .race-details #roundSize { font-size: 17px; }
  .lobby .race-details #unlockRule { font-size: 13px; }
  .lobby .start-line .begin { font-size: 23px; }
  .race-format button { font-size: 16px; padding: 10px; }
  .duration-controls button, .valve-controls button { font-size: 15px; }
  .player-page, .stats-page, .finish { width: calc(100% - 28px); margin: 12px 14px 34px; padding: 18px 14px; border-width: 3px; box-shadow: 4px 5px 0 #030f1e; }
  .player-page h1 { font-size: 23px; }
  .coin-wallet { padding: 5px 8px; gap: 5px; border-width: 2px; }
  .coin-wallet img { width: 25px; height: 25px; }
  .coin-wallet strong { font-size: 19px; }
  .coin-wallet > span { display: none; }
  .player-sections { gap: 5px; margin: 18px 0; padding-bottom: 13px; }
  .player-sections button { font-size: 14px; min-height: 38px; padding: 8px 10px; }
  #garagePanel.cardboard-garage { margin: 0; padding: 0; }
  .cardboard-garage .garage-workspace { gap: 20px; }
  .garage-bay { height: 370px; border-width: 3px; }
  .garage-bay #garageDiagram, .cardboard-garage .garage-bay #garageDiagram { left: 27%; top: 23px; width: 53%; height: 128px; }
  .garage-bay #garageCarWrap { height: 235px; left: -3%; width: 106%; bottom: 11px; }
  .garage-workbench { height: 28px; border-width: 3px; padding: 6px 10px; gap: 12px; }
  .garage-bay::after { height: 14px; left: -3px; right: -3px; }
  .garage-workbench i::after { top: 2px; }
  .cardboard-garage .garage-preview-controls { margin: 13px 0 0; }
  .cardboard-garage .garage-preview-controls .text-button { font-size: 16px; padding: 8px 15px; }
  .cardboard-garage .garage-collection { padding: 11px 9px; border-width: 3px; }
  .cardboard-garage .shop-slots { flex-wrap: wrap; gap: 4px; margin-bottom: 12px; padding-bottom: 10px; }
  .cardboard-garage .shop-slots button { font-size: 14px; padding: 7px 6px; min-height: 36px; flex: 1 0 auto; }
  .cardboard-garage .garage-items, .cardboard-garage .car-items { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; max-height: 302px; gap: 9px; }
  .cardboard-garage .garage-item { font-size: 15px; min-height: 127px; border-width: 2px; }
  .cardboard-garage .vehicle-thumb { height: 79px; }
  .cardboard-garage .garage-item small { font-size: 11px; }
  .cardboard-garage .garage-selection { gap: 11px; margin-top: 12px; padding: 12px 4px 6px; }
  .cardboard-garage .garage-selection h3 { font-size: 18px; }
  .cardboard-garage .garage-selection .begin { font-size: 16px; min-width: 85px; min-height: 42px; padding: 8px 11px; }
  #garageDescription { font-size: 12px; }
  .cardboard-garage .garage-unlock { font-size: 12px; }
  .badge-heading h2 { font-size: 21px; }
  .badge-heading { gap: 10px; }
  .badge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .achievement { padding: 14px 8px; }
  .achievement h3 { font-size: 17px; }
  .achievement p { font-size: 12px; }
  .achievement img { width: 75px; height: 75px; }
  .badge-pagination { gap: 20px; }
  .badge-pagination button { font-size: 14px; }
  .player-layout { grid-template-columns: 1fr; gap: 24px; }
  .player-garage { grid-row: 1; margin: 0; }
  .player-garage img { height: 175px; }
  .player-garage p { font-size: 18px; margin-bottom: 0; }
  .player-page .begin { width: auto; }
  .player-page #saveProfile { width: 100%; }
  .secondary-instruments { gap: 8px 10px; }
  .secondary-instruments label { font-size: 14px; }
  .stats-page h1 { font-size: 26px; }
  .stats-page .scope { gap: 4px; }
  .stats-page .scope button { font-size: 14px; min-height: 37px; padding: 7px 10px; }
  .stats-page .stats-filters { gap: 12px; }
  .stats-page .stats-filters label { flex-basis: 120px; font-size: 12px; }
  .stats-page .stats-filters select { font-size: 14px; }
  .stats-page .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 17px 5px; gap: 18px 0; }
  .stats-page .stat-grid > div { padding: 0 10px; }
  .stats-page .stat-grid strong { font-size: 25px; }
  .stats-page .stat-grid span { font-size: 12px; }
  .stats-page th, .stats-page td { padding: 10px; font-size: 13px; }
  .stats-page td small { font-size: 12px; }
  .stats-page .history-head h2 { font-size: 20px; }
  .finish h1 { font-size: 29px; }
  .result-metrics { gap: 18px; padding: 20px 5px; }
  .result-metrics strong { font-size: 27px; }
  .result-metrics span { font-size: 12px; }
  .finish > p { font-size: 14px; }
  .result-actions { gap: 18px; }
  .result-actions .begin { min-width: 140px; font-size: 18px; padding: 12px 17px; }
  .receipt-car .vehicle-thumb { width: 110px; }
  .receipt-car strong { font-size: 18px; }
  .access { margin-top: 28px; padding: 22px; }
  .access h1 { font-size: 24px; }
  dialog { padding: 23px; }
  dialog h2 { font-size: 24px; }
  .victory h1 { font-size: 37px; }
  .victory #victoryScore { font-size: 23px; }
  footer { padding: 19px 18px; font-size: 12px; gap: 14px; }
  .footer-links { gap: 16px; }
}
@media (max-width: 380px) {
  .masthead .nav { padding-inline: 8px; font-size: 14px; }
  .masthead .tools { gap: 6px; }
  .volume-control { width: 76px; }
  .player-sections button { padding-inline: 7px; font-size: 13px; }
  .garage-bay { height: 330px; }
  .garage-bay #garageCarWrap { height: 208px; }
  .garage-bay #garageDiagram, .cardboard-garage .garage-bay #garageDiagram { height: 113px; }
  .cardboard-garage .shop-slots button { font-size: 13px; }
  .result-metrics { gap: 13px; }
  .result-metrics strong { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .begin, .begin:hover:not(:disabled), .begin:active:not(:disabled) { transform: none; transition: none; }
}

/* The illustrated lift is the floor: keep the wheels on it, without a second
   artificial workbench below. Compact the garage header on laptop screens. */
body[data-view=playerPage] .masthead { height: 108px; min-height: 0; padding-block: 5px; }
body[data-view=playerPage] .masthead .logo { width: 300px; }
.player-page { margin-top: 10px; padding-top: 20px; }
.player-sections { margin-top: 15px; margin-bottom: 18px; padding-bottom: 12px; }
.garage-bay { height: 440px; border-bottom: 4px solid #345d76; background-position: center bottom; }
.garage-bay::after, .garage-workbench { display: none; }
.garage-bay #garageCarWrap { bottom: 20%; height: 290px; }
.garage-bay #garageDiagram { left: 30%; width: 44%; height: 137px; top: 32px; }
.cardboard-garage .garage-items { max-height: 282px; }
.cardboard-garage .garage-preview-controls { margin-top: 11px; }
.cardboard-garage .coin-details { margin-top: 19px; }
@media (min-width: 1101px) and (max-height: 850px) {
  .garage-bay { height: 420px; }
  .garage-bay #garageCarWrap { height: 275px; }
  .garage-bay #garageDiagram { top: 24px; height: 126px; }
  .cardboard-garage .garage-items { max-height: 245px; }
  .cardboard-garage .garage-item { min-height: 124px; }
  .cardboard-garage .vehicle-thumb { height: 78px; }
}
@media (max-width: 1100px) and (min-width: 851px) {
  .garage-bay { height: 395px; }
  .garage-bay #garageCarWrap { height: 250px; bottom: 18%; }
  .garage-bay #garageDiagram { top: 31px; height: 122px; }
}
@media (max-width: 850px) {
  body[data-view=playerPage] .masthead { height: auto; min-height: 110px; padding-block: 10px; }
  .garage-bay { height: 425px; }
  .garage-bay #garageCarWrap { height: 290px; bottom: 20%; }
  .garage-bay #garageDiagram { top: 21px; left: 34%; width: 36%; height: 132px; }
}
@media (max-width: 640px) {
  .player-page { padding-top: 18px; }
  .garage-bay { height: 335px; border-bottom-width: 3px; }
  .garage-bay #garageCarWrap { height: 230px; bottom: 17%; }
  .garage-bay #garageDiagram, .cardboard-garage .garage-bay #garageDiagram { top: 25px; left: 31%; width: 46%; height: 108px; }
  .cardboard-garage .garage-items, .cardboard-garage .car-items { max-height: 302px; }
}
@media (max-width: 380px) {
  .garage-bay { height: 305px; }
  .garage-bay #garageCarWrap { height: 203px; bottom: 18%; }
  .garage-bay #garageDiagram, .cardboard-garage .garage-bay #garageDiagram { top: 22px; height: 95px; }
}

/* Readable information inside the existing pixel panels. Keep the artwork and
   display headings; use the established text face for requirements and counts. */
.lobby .field-label, .lobby .instrument-label, .lobby .piece-controls label,
.lobby .tempo-controls label { font-size: 14px; color: #d4e2ec; }
.lobby .race-details #unlockRule { font-size: 16px; line-height: 1.5; color: #e2edf3; }
.lobby .tempo-stake { font-size: 15px; }
.cardboard-garage .garage-filter-row label, .badge-filters label { font-size: 14px; }
.cardboard-garage .garage-filter-row select, .badge-filters select { font-size: 16px; min-height: 44px; }
.cardboard-garage .garage-item small { font-size: 14px; color: #d4e2ec; }
#garageDescription, .cardboard-garage .garage-unlock { font-size: 15px; line-height: 1.5; color: #d4e2ec; }
.cardboard-garage .garage-price-hint { font-size: 14px; color: #d4e2ec; }
#garageProgressCount, #badgeCount, #badgePageLabel, .achievement-copy > span:not([class]) {
  font: 600 16px/1.5 var(--pixel-text);
  font-variant-numeric: lining-nums tabular-nums;
  color: #fff4d4;
}
.coin-wallet strong { font-size: 25px; font-variant-numeric: lining-nums tabular-nums; }
.achievement p, .achievement-copy > small, .badge-rules { font-size: 14px; line-height: 1.5; }
.achievement-copy > small { display: block; }
.player-heading, .stats-page .stats-heading, .badge-heading, .history-head { flex-wrap: wrap; }
.player-heading > *, .stats-page .stats-heading > *, .badge-heading > *,
.cardboard-garage .garage-selection > div { min-width: 0; }
.cardboard-garage .garage-selection > div { flex: 1; }
.cardboard-garage .garage-selection h3, .achievement h3 { overflow-wrap: anywhere; }
.player-layout > *, .lobby .setup-controls > * { min-width: 0; }
.player-page .text-button, .stats-page .text-button, .finish .text-button,
.badge-pagination button { min-height: 44px; }
.badge-pagination { flex-wrap: wrap; gap: 10px 20px; }
.badge-pagination button { font-size: 16px; }
.lobby .garage .level-choice, .race-format button, .duration-controls button,
.valve-controls button, .player-sections button, .cardboard-garage .shop-slots button { min-height: 44px; }
.cardboard-garage .shop-slots { flex-wrap: wrap; }
.stats-page .stat-grid strong { font-variant-numeric: lining-nums tabular-nums; }
.stats-page .stat-grid span, .result-metrics span { font-size: 14px; line-height: 1.4; }
.result-metrics { flex-wrap: wrap; gap: 18px 30px; }
.result-metrics > div { min-width: 110px; }
.stats-page .history { max-width: 100%; }
@media (max-width: 850px) {
  .player-layout { grid-template-columns: minmax(0, 1fr); }
  .cardboard-garage .garage-selection { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .player-sections button, .cardboard-garage .shop-slots button { font-size: 16px; }
  .cardboard-garage .garage-item { font-size: 16px; line-height: 1.35; }
  .achievement h3 { font-size: 19px; }
  .stats-page th, .stats-page td { font-size: 14px; }
  .stats-page td small { font-size: 13px; }
  .result-metrics strong { font-size: 30px; font-variant-numeric: lining-nums tabular-nums; }
  .finish > p { font-size: 16px; }
  .icon-button { width: 44px; height: 44px; }
}

/* Larger letterforms with open counters; notation keeps Bravura. */
body{font-size:18px;line-height:1.5}.masthead .tutti-nav{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:inherit}.masthead nav{flex-wrap:wrap}body[data-view=arena] .tutti-nav{pointer-events:none;opacity:.45}.nav{font-size:18px!important}.builder-help{color:#fff4d4}

/* Ithaca has an eight-pixel design grid: render common labels at whole scales. */
body{font-size:16px;line-height:1.5}.masthead .nav{font-size:24px!important}.arena .answer{font-size:24px}.arena .game-top,#gameContext{font-size:24px}.arena .builder-help,.arena .builder-status{font-size:16px!important}.tutti-nav{background:#442850!important;border-color:#ffcf61!important;color:#ffcf61!important;display:inline-flex!important;align-items:center}.tutti-nav img{width:84px;height:34px;image-rendering:pixelated}

/* Keep Ithaca's compact capitals large enough to scan. */
.lobby .practice-switch button,.lobby .race-format button,.lobby .duration-controls button,.lobby .instrument-label,.lobby .race-details #unlockRule,.lobby .race-details #roundInfo,.player-sections button,.cardboard-garage .shop-slots button,.finish .result-metrics span{font-size:24px;line-height:1.3}.lobby h1{font-size:28px}.lobby .practice-switch button{min-height:56px;padding:9px 6px}.lobby .begin{font-size:32px}

/* Keep the body background and decorative SVG in one scrolling coordinate space. */
html:has(body[data-view]){background:var(--pit-deep,#081c30)}

.admin-page{padding:28px;max-width:1180px;background:#172e47;border:3px solid #48657d;box-shadow:5px 5px #051624;color:#e7eedf;font:16px/1.5 Arial,Helvetica,sans-serif}
body.admin-shell .masthead .logo{width:clamp(150px,32vw,260px);max-width:60%;margin:0;flex:0 1 auto}
.admin-page #adminSignIn[hidden],.admin-page #adminRetry[hidden],.admin-page #adminWorkspace[hidden]{display:none!important}
.admin-page #adminRetry{min-height:44px;margin:12px 0;padding:8px 12px}
.admin-page h1,.admin-page h2{font-family:var(--pixel-ui);letter-spacing:0;font-weight:500;color:#ffe078}
.admin-page h1{font-size:32px}.admin-page h2{font-size:25px}.admin-page .admin-tabs{display:flex;gap:8px}
.admin-page .admin-tabs button,.admin-page .begin{font:20px/1.3 var(--pixel-ui);border:2px solid #66859a;border-radius:0;padding:10px 14px;transform:none;background:#24415b;color:#e8f0e7;box-shadow:3px 3px #061b2f}
.admin-page .admin-tabs button[aria-pressed=true],.admin-page .begin{background:#ffe078;color:#10253b;border-color:#fff0a7}
.admin-page .text-button{color:#b8d9eb;font-family:var(--pixel-ui)}.admin-page .danger{color:#ff9a8c}
.admin-page select,.admin-page input,.admin-page #coinTools input,.admin-page #coinTools select{background:#fff5d7;color:#142b43;border:2px solid #6c8598;border-radius:0;font:16px/1.4 Arial,sans-serif;padding:9px 12px;min-height:44px}
.admin-page p,.admin-page label,.admin-page th,.admin-page td small,.admin-page #coinTools label{color:#b7ccd9}
.admin-page th{background:#24415b;padding:11px}.admin-page td{padding:14px 11px;border-color:#496074;color:#f1f3e8}
.admin-page .review-row{border-color:#496074}.admin-page .teacher-award{border-color:#496074}
@media(max-width:650px){.admin-page{width:calc(100% - 24px);margin:14px 12px;padding:18px 12px}.admin-page .admin-tabs{gap:8px}.admin-page .admin-tabs button{font-size:17px}}

.teacher-panel{margin:24px 0}.teacher-intro{max-width:850px;margin-bottom:24px}.teacher-intro h2{margin:0 0 10px}.teacher-intro p{margin:0;line-height:1.65}.teacher-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.teacher-card{background:#1c354e;border:2px solid #48657d;padding:20px;margin-bottom:20px;min-width:0}.teacher-card h3{color:#ffe078;font:23px/1.3 var(--pixel-ui);margin:0 0 16px}.teacher-card label{display:block;font-size:14px;line-height:1.45}.teacher-card input:not([type=checkbox]),.teacher-card select{display:block;width:100%;margin:6px 0 16px;max-width:100%}.teacher-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.teacher-inline{display:flex;align-items:end;gap:16px}.teacher-inline label{flex:1;min-width:0}.teacher-inline button{margin-bottom:16px;min-height:44px;white-space:nowrap}.teacher-note{font-size:14px;line-height:1.6}.teacher-warning{border-left:4px solid #ffe078;padding:10px 14px;background:#293e4c;color:#ffeba7!important}.teacher-actions{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin:12px 0}.teacher-heading{display:flex;align-items:baseline;justify-content:space-between;gap:20px}.teacher-heading h3{margin-right:auto}.teacher-heading .text-button{font-size:19px}.teacher-panel .teacher-checkbox{display:flex;gap:12px;align-items:flex-start;margin:6px 0 14px}.teacher-checkbox input{flex:none;width:20px;height:20px;min-height:20px;margin-top:2px;accent-color:#ffe078}.teacher-checkbox span{line-height:1.6}.teacher-panel button:disabled{opacity:.5;cursor:not-allowed}.teacher-table-wrap{overflow-x:auto;overscroll-behavior-x:contain;margin:20px 0;border:1px solid #48657d}.teacher-table-wrap:focus-visible{outline:3px solid #ffe078;outline-offset:3px}.admin-page .teacher-table-wrap table{table-layout:auto;min-width:800px}.admin-page .teacher-table-wrap th,.admin-page .teacher-table-wrap td{width:auto;font-size:14px;overflow-wrap:normal;min-width:95px;vertical-align:top}.admin-page .teacher-table-wrap th[scope=row]{font-weight:600;background:transparent;color:#f1f3e8;min-width:160px;border-top:1px solid #496074;padding:14px 11px}.admin-page .teacher-table-wrap th small{display:block;color:#b7ccd9;font-weight:400;font-size:13px;margin-top:4px}.practice-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:25px 0}.practice-summary div{padding:14px;border:1px solid #48657d;background:#17304a}.practice-summary strong{display:block;color:#ffe078;font:26px/1.3 var(--pixel-ui)}.practice-summary span{font-size:13px;line-height:1.5;display:block;color:#b7ccd9;margin-top:5px}.practice-window{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:15px 0;border-top:1px solid #48657d}.practice-window strong{color:#f1f3e8}.practice-window small,.practice-window [data-window-clock]{display:block;color:#b7ccd9;font-size:13px;margin-top:5px}.practice-window [data-window-clock]{color:#ffe078}.teacher-panel details{border-top:1px solid #48657d;padding-top:15px;margin-top:18px}.teacher-panel summary{cursor:pointer;color:#e8f0e7;font-weight:600;min-height:30px}.teacher-delete{margin-top:28px!important}.teacher-delete summary{color:#ff9a8c}.teacher-delete form{max-width:520px}.teacher-legal{border-top:1px solid #48657d;padding-top:22px;margin-top:32px;display:flex;gap:24px;flex-wrap:wrap}.teacher-legal a{color:#b8d9eb;font:14px/1.5 Arial,sans-serif}.teacher-panel ul{padding-left:22px;color:#b7ccd9}.teacher-panel li{margin:8px 0}.teacher-panel [role=status]{font-size:14px;line-height:1.6}.teacher-panel p:empty{display:none}@media(max-width:850px){.teacher-grid{grid-template-columns:1fr}.practice-summary{grid-template-columns:1fr 1fr}}@media(max-width:550px){.teacher-card{padding:15px 12px}.teacher-fields{grid-template-columns:1fr}.teacher-inline{display:block}.teacher-inline button{margin-top:-6px}.practice-window{align-items:flex-start;flex-direction:column;gap:0}.teacher-heading{gap:12px}.practice-summary{gap:8px}.practice-summary div{padding:10px}.practice-summary strong{font-size:23px}.teacher-actions{gap:14px}.teacher-card h3{font-size:22px}}

.privacy-case{padding:16px 0;border-top:2px solid #48657d}.privacy-case p{margin:8px 0;line-height:1.5}.privacy-case.teacher-warning{padding:16px}.teacher-card input[readonly]{border-style:dashed}

.teacher-card fieldset{border:2px solid #48657d;margin:16px 0;padding:12px}.teacher-card legend{color:#ffe078;padding:0 6px}

.masthead .logo{transform:none!important;filter:none;text-shadow:none;line-height:0}
.masthead .logo .logo-stage,.masthead .logo>img{display:block;width:100%;height:auto;filter:none;image-rendering:pixelated;image-rendering:crisp-edges}
.masthead .logo .logo-stage{aspect-ratio:480/144}
.masthead .logo>img{aspect-ratio:1059/355}
.masthead .logo[data-intro=true] .logo-stage,.masthead .logo[data-intro=true] .animated-wordmark{visibility:hidden}
/* All layers come from the same approved illustration, on the same grid. */
.animated-wordmark{position:relative;display:block;isolation:isolate;width:100%;line-height:0;pointer-events:none;--wordmark-cycle:14s}
.animated-wordmark img{display:block;max-width:none;image-rendering:pixelated;image-rendering:crisp-edges}
.animated-wordmark .wordmark-base{width:100%;height:auto}
.animated-wordmark .wordmark-needle,.animated-wordmark .wordmark-hubs{position:absolute;height:auto;inset:auto;max-width:none}
.animated-wordmark .wordmark-needle{animation:wordmark-rev var(--wordmark-cycle) cubic-bezier(.35,0,.2,1) infinite;transform:rotate(var(--needle-rest)) scaleX(var(--needle-rest-scale,1))}
.animated-wordmark .wordmark-hubs{left:0;top:0;width:100%}
.wordmark-sheen{position:absolute;inset:0;overflow:hidden;mask:var(--wordmark-mask) center/100% 100% no-repeat;-webkit-mask:var(--wordmark-mask) center/100% 100% no-repeat}
.wordmark-sheen::after{content:"";position:absolute;inset:-20% -30%;background:linear-gradient(110deg,transparent 41%,#fff9ce88 46%,#fffce8 49%,#fffce8 51%,#fff9ce88 54%,transparent 59%);transform:translateX(-90%);opacity:0;animation:wordmark-sweep var(--wordmark-cycle) linear infinite}
@keyframes wordmark-rev{0%,2%,23%,100%{transform:rotate(var(--needle-rest)) scaleX(var(--needle-rest-scale,1))}5%{transform:rotate(var(--needle-idle)) scaleX(1)}10%,13%{transform:rotate(var(--needle-rev)) scaleX(var(--needle-rev-scale,1))}16%{transform:rotate(var(--needle-bounce)) scaleX(var(--needle-rest-scale,1))}}
@keyframes wordmark-sweep{0%,5%{transform:translateX(-90%);opacity:0}6%{opacity:.85}18%{transform:translateX(90%);opacity:.85}19%,100%{transform:translateX(90%);opacity:0}}
.animated-wordmark[data-paused=true] *,.animated-wordmark[data-paused=true] *::after,body.scene-sleeping .animated-wordmark *,body.scene-sleeping .animated-wordmark *::after{animation-play-state:paused!important}
body.reduced .animated-wordmark *,body.reduced .animated-wordmark *::after{animation:none!important}
body.reduced .wordmark-sheen{display:none}
.pixel-logo-intro{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;overflow:hidden;background:rgba(6,17,34,var(--intro-shade,1));color:#fff1c8;box-shadow:none;border-radius:0}
.pixel-logo-intro::backdrop{background:transparent}
.pixel-logo-intro>canvas{position:fixed;display:block;image-rendering:pixelated;image-rendering:crisp-edges;pointer-events:none}
.video-logo-intro{background:#061122}
body:has(.video-logo-intro[open]){overflow:hidden}
.logo-intro-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;image-rendering:pixelated;pointer-events:none}
.logo-intro-video[hidden],.logo-title-gate[hidden]{display:none!important}
.logo-title-gate{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;background:#08162c;pointer-events:none}
.logo-title-backdrop{position:absolute;inset:-3%;background:linear-gradient(180deg,#08152c44,#08152c70 44%,#08152ce8),url('/pixel-pit-v1.png') 67% center/cover no-repeat;image-rendering:pixelated;animation:title-pit-drift 22s steps(96,end) infinite alternate}
.logo-title-gate::after{content:"";position:absolute;left:0;right:0;bottom:0;height:16px;background:conic-gradient(#f8edce 25%,#132641 0 50%,#f8edce 0 75%,#132641 0) 0 0/16px 16px;opacity:.7}
.title-wordmark{width:min(92vw,1100px);margin-top:-12vh;--wordmark-cycle:10s;animation:title-wordmark-idle 6s steps(16,end) infinite alternate;filter:drop-shadow(0 6px 0 #071324aa)}
@keyframes title-pit-drift{from{transform:translate3d(-1%,0,0) scale(1.02)}to{transform:translate3d(1%,-1%,0) scale(1.02)}}
@keyframes title-wordmark-idle{from{transform:translateY(-2px)}to{transform:translateY(2px)}}
.video-logo-intro .logo-intro-controls{z-index:2}
.video-logo-intro .logo-intro-start,.video-logo-intro .logo-intro-error{z-index:2}
.logo-intro-controls{position:fixed;right:max(20px,env(safe-area-inset-right));top:max(18px,env(safe-area-inset-top));display:flex;align-items:center;gap:12px}
.logo-intro-skip{padding:10px 17px;color:#fff2c9;background:#152c43;border:2px solid #7b9aad;box-shadow:3px 3px 0 #06111e;font:18px/1.2 var(--pixel-ui);min-height:44px}
.logo-intro-skip:hover{color:#10223b;background:#ffcd5d}
.logo-intro-skip:focus-visible{outline:3px solid #ffcd5d;outline-offset:4px}
.logo-intro-start{position:fixed;left:50%;top:calc(50% + min(23vw,23vh));transform:translateX(-50%);min-width:180px;min-height:58px;padding:12px 34px;border:3px solid #fff3b1;border-radius:0;background:#ffcf57;color:#102139;box-shadow:5px 5px 0 #050e20;font:30px/1.1 var(--pixel-ui);text-transform:uppercase;cursor:pointer}
.logo-intro-start:hover{background:#fff1a4}
.logo-intro-start:focus-visible{outline:3px solid #69d8ff;outline-offset:7px}
.logo-intro-start:disabled{cursor:wait;opacity:.7}
.logo-intro-start[hidden],.logo-intro-error[hidden]{display:none}
.logo-intro-error{position:fixed;top:calc(50% + min(23vw,23vh) + 68px);left:50%;transform:translateX(-50%);margin:0;width:min(90vw,440px);text-align:center;color:#fff2c9;font:18px/1.35 var(--pixel-ui)}
@media(prefers-reduced-motion:reduce){.pixel-logo-intro{display:none!important}.animated-wordmark *, .animated-wordmark *::after{animation:none!important}.wordmark-sheen{display:none}}
@media(max-height:450px){.title-wordmark{width:min(74vw,145vh);margin-top:-18vh}.video-logo-intro .logo-intro-start{top:auto;bottom:max(48px,calc(env(safe-area-inset-bottom) + 32px))}.video-logo-intro .logo-intro-error{top:auto;bottom:max(4px,env(safe-area-inset-bottom));font-size:16px}}

.key-signature-choice{display:flex;align-items:center;gap:.65rem;min-height:44px;font:inherit;color:inherit;cursor:pointer}
.key-signature-choice[hidden]{display:none}
.key-signature-choice input{width:22px;height:22px;margin:0;accent-color:var(--accent,#75d7b2);cursor:pointer}
.key-signature-choice:has(input:disabled){opacity:.55;cursor:default}
.key-signature-choice:has(input:focus-visible){outline:3px solid currentColor;outline-offset:4px}
.room-menu>.key-signature-choice{justify-content:center;margin:.6rem 0}
