@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');
:root{font-family:Inter,Arial,sans-serif;color:#ecf0ff;background:#080c20;color-scheme:dark;--muted:#8390b4;--cyan:#60ddff;--green:#72f3bf;--amber:#ffd480}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 65% 35%,#20215466,transparent 55%),#080c20}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid #384562;background:#151b32;color:#dfe8ff;border-radius:10px;padding:10px 15px;font:inherit}button:hover{border-color:var(--cyan);background:#202c48}button:disabled{opacity:.35;cursor:default}button:focus-visible,a:focus-visible{outline:2px solid var(--cyan);outline-offset:4px}#game{max-width:1500px;margin:auto;padding:30px 48px 20px;min-height:100svh;user-select:none;touch-action:manipulation}header{display:flex;align-items:center;gap:25px;margin-bottom:45px}.brand{font:italic 800 31px 'Barlow Condensed',sans-serif;letter-spacing:-.8px;color:#f0f2ff;text-decoration:none}.brand em{color:var(--cyan)}.brand span{margin-left:15px;color:var(--cyan);font-size:40px}.edition{font-size:10px;letter-spacing:2px;color:#667193;margin-left:auto}header button{background:transparent;font-size:22px;padding:4px 10px}.songbar{display:flex;align-items:center;justify-content:space-between}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--muted);font-weight:600}h1{font-size:24px;letter-spacing:-.5px;margin:10px 0 20px}h1 span{font-size:10px;letter-spacing:1px;color:var(--cyan);border:1px solid #254153;border-radius:5px;padding:5px 7px;vertical-align:middle;margin-left:12px}.transport{display:flex;gap:10px;align-items:center}.transport>span{color:var(--muted);font-size:12px;margin-right:12px;font-variant-numeric:tabular-nums}.progress{height:3px;background:#202a43}.progress>div{width:0;height:100%;background:var(--cyan);box-shadow:0 0 12px #60ddff80}.stats{display:flex;gap:70px;align-items:center;margin-top:27px}.stats>div{display:flex;flex-direction:column;gap:7px}.stats strong{font-size:32px;font-weight:600;font-variant-numeric:tabular-nums}.cyan{color:var(--cyan)}.stats strong span{font-size:21px}.stats .status{margin-left:auto;flex-direction:row;gap:8px;font-size:9px;color:var(--muted);letter-spacing:1.4px}.status i{width:6px;height:6px;background:var(--green);border-radius:50%}.stage{position:relative;height:300px;overflow:hidden}.ambient{position:absolute;inset:0;background:radial-gradient(ellipse at center bottom,#34598132,transparent 55%);pointer-events:none}#feedback{text-align:center;position:absolute;top:30px;left:0;right:0}h2{font-size:36px;letter-spacing:-1.5px;margin:10px 0}#feedback h2{font-size:29px;letter-spacing:-.8px}#feedback p{font-size:12px;color:var(--muted);margin:8px}#timeline{width:100%;height:150px;position:absolute;bottom:24px;left:0}.timelineLabels{position:absolute;bottom:6px;left:0;right:0;display:flex;justify-content:space-between;font-size:9px;letter-spacing:1.5px;color:#637599}.timelineLabels span:nth-child(2){color:#97bbd3}.bottom{display:grid;grid-template-columns:1fr 270px 1fr;gap:25px;align-items:center;margin-top:20px}.panel{height:190px;border:1px solid #293451;border-radius:15px;background:linear-gradient(135deg,#151d3466,#0c112766);padding:22px}.panelTitle{display:flex;justify-content:space-between;font-size:10px;letter-spacing:1.4px;color:#b9c8e8}.panelTitle span{font-size:8px;color:#667899}#history{width:100%;height:110px}.legend{display:flex;justify-content:space-between;font-size:8px;color:var(--muted);letter-spacing:1px}.tapZone{text-align:center}#orb{height:174px;width:174px;border:2px solid #69d9ff;border-radius:50%;margin:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(circle at 50% 20%,#273d69,#102039);box-shadow:0 0 0 7px #14213b,0 0 0 8px #365187,0 0 40px #44bfff18;transition:transform .08s,box-shadow .08s}#orb.hit{transform:scale(.96);box-shadow:0 0 0 9px #254864,0 0 50px #60ddff70}#orb>span{font-size:43px;font-weight:800;letter-spacing:1px}#orb small{font-size:9px;letter-spacing:3px;color:#9ac1e1;margin-top:7px}.tapZone p{color:var(--muted);font-size:10px;margin-top:23px}kbd{border:1px solid #45516a;border-radius:4px;padding:3px 6px;color:#c4d4f2;margin-right:5px;font-size:9px}.guideDots{display:flex;justify-content:space-around;margin:25px 0 15px;position:relative}.guideDots:before{content:'';position:absolute;left:15%;right:15%;top:12px;height:1px;background:#465272}.guideDots>div{display:flex;flex-direction:column;align-items:center;gap:10px;font-size:11px;z-index:1}.guideDots i{width:24px;height:24px;border-radius:50%;background:currentColor;border:6px solid #111b31;outline:2px solid currentColor}.early{color:var(--cyan)}.perfect{color:var(--green)}.late{color:var(--amber)}.guide p{text-align:center;font-size:10px;line-height:1.8;color:var(--muted)}footer{display:flex;justify-content:space-between;margin-top:35px;font-size:8px;letter-spacing:2px;color:#5e6b8d}dialog{width:460px;max-width:calc(100% - 32px);padding:35px;border:1px solid #3b4e73;border-radius:22px;background:linear-gradient(140deg,#18233e,#0c1228);color:#eef3ff;box-shadow:0 30px 100px #0009}dialog::backdrop{background:#05091ad9;backdrop-filter:blur(8px)}dialog h2{font-size:39px;line-height:1.1;margin:20px 0}dialog h2 em{font-style:normal;color:var(--cyan)}dialog p{color:#9aa9c7;font-size:13px;line-height:1.8}label{display:block;font-size:10px;letter-spacing:1px;color:#b2c2dd;margin:24px 0}label span{float:right;color:var(--cyan)}select{width:100%;padding:12px;margin-top:10px;background:#0b1328;border:1px solid #36435e;border-radius:8px;color:#d6e2ff;font-size:12px}input[type=range]{display:block;width:100%;margin-top:15px;accent-color:var(--cyan)}.primary{background:var(--cyan);color:#081422;border:0;font-size:12px;font-weight:800;letter-spacing:1px;width:100%;padding:16px;margin:15px 0}.primary:hover{background:#9aebff;color:#081422}.primary span{float:right}dialog small{display:block;text-align:center;color:#7e8eae;font-size:10px}#error{color:#ffaaa9}#resultStats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}#resultStats div{padding:15px;background:#080f2470;border-radius:10px;color:#9aa9c7;font-size:10px}#resultStats strong{display:block;color:var(--cyan);font-size:23px;margin-top:8px}#change{width:100%;font-size:12px}body.playing #game{touch-action:none}@media(min-height:850px) and (min-width:900px){.stage{height:360px}.bottom{margin-top:35px}}@media(max-width:900px){#game{padding:22px}.bottom{grid-template-columns:1fr 190px}.guide{display:none}.stats{gap:35px}.stage{height:280px}.edition{display:none}header button{margin-left:auto}}@media(max-width:560px){#game{padding:18px 18px 25px}header{margin-bottom:28px}.brand{font-size:25px}.brand span{font-size:30px}.songbar{align-items:flex-end}h1{font-size:19px}h1 span{display:block;width:max-content;margin:8px 0 0}.songbar .eyebrow{font-size:7px;letter-spacing:1px}.transport{gap:5px;margin-bottom:18px}.transport>span{font-size:9px;margin-right:2px}.transport button{padding:7px 10px}.stats{gap:25px;margin-top:22px}.stats strong{font-size:27px}.stats .eyebrow{font-size:8px;letter-spacing:1px}.stats .status{display:none}.stage{height:265px}#feedback{top:30px}#feedback h2{font-size:25px}.bottom{grid-template-columns:1fr 125px;gap:15px;margin-top:15px}.panel{padding:15px;height:160px}.panelTitle{font-size:8px}.panelTitle span{display:none}#history{height:94px}#orb{width:107px;height:107px}#orb>span{font-size:29px}#orb small{font-size:6px;letter-spacing:2px}.tapZone p{font-size:8px;line-height:2}kbd{font-size:7px}.timelineLabels{font-size:7px}.legend{font-size:6px}footer{font-size:6px;letter-spacing:1px;margin-top:25px}dialog{padding:27px}dialog h2{font-size:35px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}.ambient{display:none}}

#calibrationPad{padding:30px 12px;margin:20px 0;text-align:center;border:1px solid #60ddff;border-radius:16px;background:#11243b;touch-action:none;user-select:none;cursor:pointer}#calibrationPad strong{display:block;color:var(--cyan);font-size:22px}#calibrationPad span{display:block;margin-top:10px;font-size:12px;color:var(--muted)}#calibrationPad:focus-visible{outline:2px solid var(--green);outline-offset:4px}[hidden]{display:none!important}#calibrationClose{width:100%}

.builderEntry{width:100%;margin:12px 0 20px;border-color:#60ddff;color:var(--cyan)}#builder{width:1120px;max-height:92svh;padding:30px}.builderHead{display:flex;justify-content:space-between;align-items:center}#builder h2{margin:12px 0}#builder>p{margin:10px 0 20px}.builderControls{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.builderControls label{margin:12px 0 24px}#patternBpm{width:100%;margin-top:10px;padding:12px;border-radius:8px;border:1px solid #36435e;background:#0b1328;color:white}.patternPanel{border:1px solid #36435e;border-radius:12px;padding:20px}.patternScroll{overflow-x:auto;padding:18px 0 6px}.patternRow{display:grid;grid-template-columns:110px repeat(var(--steps),minmax(44px,1fr));gap:9px;align-items:center;margin:12px 0;min-width:max-content}.patternRow>span{text-align:center;font-size:14px}.patternRow .rowTitle{text-align:left;font-weight:700;letter-spacing:1px}.patternPad{height:66px;min-width:44px;padding:5px;border-color:#465b7d;background:#152035;font-size:23px}.patternPad[aria-pressed=true].hear{background:var(--cyan);color:#061b27}.patternPad[aria-pressed=true].tap{background:var(--green);color:#07291e}.patternPad.downbeat{border-left-width:3px}#patternSummary{font-size:12px!important;margin-bottom:0}.presetRow{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.presetRow button{padding:18px;text-align:left}.presetRow strong,.presetRow span{display:block}.presetRow span{font-size:11px;color:var(--muted);margin-top:8px}.builderFooter{display:grid;grid-template-columns:1fr 1fr 1fr 1.4fr;gap:16px;align-items:center;margin-top:20px}.builderFooter label{margin:0}.builderFooter button{margin-top:22px}#patternError{color:var(--amber)}@media(max-width:650px){#builder{padding:20px}.builderControls{grid-template-columns:1fr 1fr;gap:10px}.builderFooter{grid-template-columns:1fr 1fr}.presetRow{grid-template-columns:1fr}.patternPanel{padding:12px}.patternRow{grid-template-columns:70px repeat(var(--steps),minmax(44px,1fr));gap:6px}.patternPad{height:52px}#builder h2{font-size:30px}}

.checkOption{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:13px;letter-spacing:0;line-height:1.5;cursor:pointer}.checkOption input{width:22px;height:22px;accent-color:var(--cyan);margin:0}.checkOption .checkHelp{flex-basis:100%;float:none;color:var(--muted);font-size:11px;margin-left:34px}#exitPractice{font-size:12px;color:var(--cyan);white-space:nowrap}@media(max-width:650px){.songbar{flex-wrap:wrap;gap:5px}.transport{flex-wrap:wrap;justify-content:flex-end;width:100%}#exitPractice{margin-right:auto;padding:10px}.transport>span{margin-right:8px}}

#youtubeOptions input{display:block;width:100%;padding:12px;margin-top:10px;background:#0b1328;color:white;border:1px solid #36435e;border-radius:8px}#youtubeSection{display:grid;grid-template-columns:1fr minmax(280px,480px);gap:24px;align-items:center;margin:16px 0 24px}#youtubeSection p{color:var(--muted);font-size:12px;line-height:1.7}#youtubeMount{min-width:200px;min-height:270px}#youtubeMount iframe{display:block;width:100%;height:270px;min-width:200px;min-height:200px;border:0}@media(max-width:650px){#youtubeSection{grid-template-columns:1fr;gap:8px}}
/* Keep third-party player unobscured by app dialogs. Playback is stopped before opening them. */
body:has(dialog[open]) #youtubeSection{display:none}

#results{width:760px;max-height:92svh}#reviewMeta,#recordingNotice{font-size:11px}#reviewChart svg{width:100%;height:auto;display:block}.reviewScroll{max-height:220px;overflow:auto;border:1px solid #293451;border-radius:8px}#reviewTable{width:100%;border-collapse:collapse;font-size:12px;font-variant-numeric:tabular-nums}#reviewTable th,#reviewTable td{text-align:left;padding:10px 14px;border-bottom:1px solid #293451}#reviewTable th{background:#142039;position:sticky;top:0}#historyButton{font-size:12px;padding:8px 12px}

@media(min-width:650px){#resultStats{grid-template-columns:repeat(3,1fr)}}
#mapEditor{width:1180px;max-height:94svh}#mapEditor h2{font-size:32px}.bmToolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0}.bmToolbar select{width:auto;max-width:320px;margin:0}.bmMetadata{display:grid;grid-template-columns:1fr 1.4fr;gap:20px}#mapEditor input:not([type=checkbox]):not([type=file]),#mapEditor textarea{display:block;width:100%;padding:12px;margin-top:10px;background:#0b1328;color:#e5edff;border:1px solid #36435e;border-radius:8px;font:inherit;font-size:13px}#mapEditor label{margin:12px 0}.bmImport{border:1px solid #384562;border-radius:8px;padding:10px;cursor:pointer}.bmImport input{max-width:170px;display:block;margin-top:5px}#bmMessage{color:var(--amber)}#bmNotes{display:flex;flex-wrap:wrap;gap:8px}#bmNotes button{font-size:11px}.patternPad.selected{outline:2px solid white;outline-offset:2px}.zoneLayout{display:grid;gap:12px;margin:20px 0}.zoneLayout.split{grid-template-columns:repeat(2,1fr)}.zoneLayout.quadrants{grid-template-columns:repeat(2,1fr)}.zoneLayout.lanes{grid-template-columns:repeat(4,1fr)}.zoneLayout>div{border:1px solid #365780;border-radius:12px;background:#12203a;text-align:center;padding:18px;color:#bad1ed}.zoneLayout>div strong,.zoneLayout>div small{display:block}.zoneLayout>div small{margin-top:12px;color:var(--cyan)}#playZones>div{min-height:100px;touch-action:none;user-select:none;cursor:pointer}#playZones>div:active{background:#275c72}#playZones .zoneUpcoming{border-color:#60ddff;box-shadow:inset 0 0 30px #60ddff22}#playZones .zoneNow{background:#235247;border-color:#72f3bf}#bmZonePreview>div{font-size:12px;padding:14px}#mapEditor details{border:1px solid #293451;border-radius:12px;padding:15px;margin:16px 0}#mapEditor summary{cursor:pointer;color:var(--cyan)}@media(max-width:650px){#mapEditor{padding:18px}.bmMetadata{grid-template-columns:1fr;gap:0}#mapEditor .builderControls{grid-template-columns:1fr 1fr}.zoneLayout.lanes{gap:6px}.zoneLayout.lanes>div{padding:12px 3px;font-size:10px}.bmToolbar button{font-size:12px}}

body.map-zones .stage{height:230px}body.map-zones .bottom{margin-top:12px}body.map-zones #playZones{margin-top:12px}body.map-zones #playZones>div{min-height:120px}#mapEditor .builderControls>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#zoneCue{margin:8px auto 2px;padding:10px 16px;border:1px solid #60ddff66;border-radius:999px;background:#0e2037;color:var(--cyan);font-size:12px;font-weight:800;letter-spacing:.08em;text-align:center}#zoneCue[hidden]{display:none}#playZones>div>strong{text-transform:uppercase}#playZones>div.zoneUpcoming{border-color:var(--cyan);box-shadow:0 0 24px #60ddff66,0 0 0 2px #60ddff55;background:#18364a}#playZones>div.zoneNow{border-color:var(--green);box-shadow:0 0 30px #72f3bf88,0 0 0 3px #72f3bf66;background:#1c493d;transform:scale(1.025)}#playZones>div.zoneAny{border-color:var(--cyan);box-shadow:0 0 22px #60ddff66;background:#18364a}.zoneState{display:block;min-height:14px;margin-top:8px;color:var(--cyan);font-size:10px;font-weight:800;letter-spacing:.08em}.zoneNow .zoneState{color:var(--green)}body.map-zones #playZones{margin-top:6px}

.mapRecorder{width:min(1000px,95vw);max-height:92svh;overflow:auto}.recPads{height:38vh;min-height:180px;touch-action:none}.recPads button{font-size:1.2rem;touch-action:none;background:#14344b;border:2px solid #65ead7;border-radius:16px}.recVideo iframe{max-width:100%}.recMidiTransport{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px}.recMidiTransport small{flex:1;min-width:240px;text-align:left!important;line-height:1.5;color:var(--muted)}
.bmMidiNotes{margin:14px 0;padding:14px;border:1px solid #293b5b;border-radius:10px;background:#0b1428}.bmMidiNotes h4{margin:0 0 6px;color:var(--cyan)}.bmMidiNotes p{font-size:12px;margin:6px 0 10px}.bmMidiScroll{max-height:220px;overflow:auto;border:1px solid #293451;border-radius:8px}.bmMidiNotes table{width:100%;border-collapse:collapse;font-size:12px;font-variant-numeric:tabular-nums}.bmMidiNotes th,.bmMidiNotes td{text-align:left;padding:8px 10px;border-bottom:1px solid #293451;white-space:nowrap}.bmMidiNotes th{position:sticky;top:0;background:#142039;color:var(--cyan)}.bmMidiNotes select{width:auto;min-width:145px;margin:0;padding:8px;font-size:11px}

#setup,#settings{max-height:92svh;overflow:auto}.midiControl,.recMidi{border:1px solid #293b5b;border-radius:12px;background:#0b1428;padding:14px;margin:16px 0}.midiControl>strong,.recMidi>strong{display:block;color:var(--cyan);font-size:10px;letter-spacing:1.5px}.midiControl p,.recMidi p{margin:7px 0;font-size:11px}.midiControl>div,.recMidiControls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.midiControl select,.recMidiControls select{flex:1;min-width:150px;width:auto;margin:0}.midiControl button,.recMidi button{font-size:11px;padding:8px 10px}.midiControl small,.recMidiStatus{display:block;margin-top:8px;text-align:left!important;line-height:1.5}.recMidiZones{display:grid;gap:7px;margin-top:10px}.recMidiZone{display:grid;grid-template-columns:minmax(70px,1fr) minmax(120px,2fr) auto;align-items:center;gap:8px;padding:7px;border-top:1px solid #293451;font-size:11px}.recMidiZone small{color:var(--muted)}@media(max-width:560px){.midiControl>div,.recMidiControls{align-items:stretch}.midiControl select,.recMidiControls select{flex-basis:100%;order:1}.recMidiZone{grid-template-columns:1fr auto}.recMidiZone small{grid-column:1/-1;grid-row:2}}
#youtubeMount video{display:block;width:100%;height:270px;min-width:200px;min-height:200px;border:0;background:#050913}
#youtubeMount audio{display:block;width:100%;min-width:200px;margin:auto}
#bmWebmLabel input{display:block;margin-top:8px}
#bmWebmStatus{display:block;color:var(--muted);font-size:12px}
.recVideo video{display:block;width:100%;max-height:38vh;background:#050913}.recVideo audio{display:block;width:100%}
.zoneLayout:is(.midi-lanes,.input-lanes){grid-template-columns:repeat(auto-fit,minmax(145px,1fr));max-height:46vh;overflow:auto;align-content:start}.zoneLayout.midi-lanes>div{padding:13px;min-height:74px}.patternScroll.midi-lanes{max-height:52vh;overflow:auto}.recPads.zoneLayout.midi-lanes{max-height:38vh;overflow:auto}#playZones.zoneLayout.midi-lanes>div{min-height:88px}
body.lane-timelines .stage{height:145px}body.lane-timelines #timeline,body.lane-timelines .timelineLabels{display:none}body.map-zones.lane-timelines #playZones{display:flex;flex-direction:column;gap:7px;max-height:54svh;overflow:auto;margin:8px 0 18px}.laneTimelineHeader,.laneTimeline{display:grid;grid-template-columns:minmax(125px,22%) minmax(0,1fr);gap:14px;align-items:center}.laneTimelineHeader{min-height:28px;padding:0 12px;color:#7688aa;font-size:9px;letter-spacing:1.2px}.laneTimelineHeader>strong{text-align:left}.laneTimelineTrack{position:relative;height:38px;overflow:hidden;border:1px solid #2c3c59;border-radius:9px;background:#0b1427}.laneTimelineTrack:before{content:'';position:absolute;left:50%;top:0;bottom:0;width:2px;background:#72f3bf;box-shadow:0 0 12px #72f3bf66;z-index:2}.laneTimelineTrack:after{content:'';position:absolute;left:0;right:0;top:50%;height:1px;background:#354765}.laneTimelineTrack>small{position:absolute;top:50%;transform:translate(-50%,-50%);z-index:3;color:#8292b2;font-size:8px;letter-spacing:.08em}.laneTimelineTrack>small:first-child{transform:translate(0,-50%)}.laneTimelineTrack>small:last-child{transform:translate(-100%,-50%)}.laneTimelineNote{position:absolute;left:50%;top:50%;z-index:4;display:grid;place-items:center;width:15px;height:15px;transform:translate(-50%,-50%);border:2px solid var(--marker-color,#73bde5);border-radius:50%;background:#101b32;color:var(--marker-color,#73bde5);font-size:9px;font-weight:800;line-height:1}.laneTimelineNote.is-now{width:22px;height:22px;box-shadow:0 0 16px var(--marker-color,#72f3bf)}.laneTimelineNote[hidden]{display:none}.laneTimelineLabel strong,.laneTimelineLabel small{display:block;text-align:left}.laneTimelineLabel strong{font-size:12px}#playZones .laneTimelineLabel small{margin-top:3px;color:var(--cyan);font-size:9px}#playZones .laneTimelineLabel .zoneState{margin:3px 0 0;min-height:12px;font-size:8px}#playZones.zoneLayout>.laneTimeline{min-height:58px;padding:9px 12px}#playZones.zoneLayout>.laneTimelineHeader{min-height:28px;padding:0 12px;border:0;background:transparent}@media(max-width:560px){.laneTimelineHeader,.laneTimeline{grid-template-columns:minmax(90px,32%) minmax(0,1fr);gap:8px}.laneTimelineTrack{height:34px}.laneTimelineLabel strong{font-size:10px}}

body.hub-open{background:#eaeaff}
body.hub-open #game,body:not(.hub-open) #notejam{display:none}
#startupError:not([hidden]){min-height:100svh;display:grid;place-content:center;justify-items:center;gap:1.25rem;padding:1.5rem;text-align:center;color:#24174b}
#startupError h1{margin:0;font:700 clamp(1.75rem,5vw,2.5rem)/1.15 Inter,Arial,sans-serif}
#retryStartup{background:#6335ba;color:white;border:0;border-radius:.75rem;padding:.75rem 1.75rem;font:600 1rem Inter,Arial,sans-serif}
#roundLink{width:100%}
#roundActions[hidden]{display:none}
#mapEditor.jam-note-editor> :not(.builderHead,.patternPanel,#bmMessage,.jam-edit-actions){display:none}
#mapEditor.jam-note-editor>.patternPanel:has(#bmRecord){display:none}
#mapEditor.jam-note-editor .bmToolbar{display:flex}
#mapEditor.jam-note-editor .builderHead .eyebrow{font-size:0}
#mapEditor.jam-note-editor .builderHead .eyebrow::after{content:'EDIT JAM NOTES';font-size:13px}
#mapEditor.jam-note-editor{color-scheme:light;background:#f8f6ff;color:#231a43;border:1px solid white}
#mapEditor.jam-note-editor :is(.patternPanel,.bmToolbar,select){background:#f1edff;color:#352949;border-color:#d7ccef}
#mapEditor.jam-note-editor :is(p,label,.eyebrow){color:#58466f}
#mapEditor.jam-note-editor button:not(.primary){background:white;color:#41325e;border-color:#cdbde6}
#mapEditor.jam-note-editor .patternPad[aria-pressed=true]{background:#8549dc;color:white}
#mapEditor.jam-note-editor .patternPad.selected{outline:3px solid #19709e}
#mapEditor.jam-note-editor .jam-edit-actions button{background:#732bd8;color:white}

/* The play surface shares the practice engine and dialogs with the editor. */
#game {
  --line: #49406e;
  --card: linear-gradient(140deg, #292443, #19162e 78%);
  --label-height: clamp(112px, 15vh, 152px);
  max-width: none;
  padding: 0;
  background: radial-gradient(ellipse at 0 0, #51296d66, transparent 32%), #131025;
  color: #faf7ff;
}
#game .playNav, #game .songbar {
  display: flex; align-items: center; gap: clamp(12px, 2vw, 32px);
  padding: 12px clamp(14px, 2.5vw, 44px); margin: 0;
  border-bottom: 1px solid var(--line);
}
#game .playNav { min-height: 62px; background: linear-gradient(110deg, #2d214b, #17132d 40%, #201735); }
#game .brand { display: inline-flex; align-items: center; font: 800 27px Inter, sans-serif; letter-spacing: -1.5px; }
#game .brand em { font-style: normal; color: #da89ff; }
#game .brand span { font: 800 32px Inter, sans-serif; margin: 0 5px 0 0; color: #71f0fb; text-shadow: 2px -2px #ce49f8; }
.playNav nav { display: flex; align-items: center; gap: clamp(3px, 1.2vw, 20px); }
.playNav nav a, #game .catalogLink, #game button, .playPill {
  color: #f3eeff; text-decoration: none; font: 600 13px Inter, sans-serif;
  border: 1px solid var(--line); background: linear-gradient(#373054, #27213f);
  padding: 9px 14px; border-radius: 12px;
}
.playNav nav a { border-color: transparent; background: transparent; }
.playNav nav a.current, #game #pause { background: linear-gradient(140deg, #a553e5, #5c2e9b); border-color: #bb7ef3; }
#game button:hover, #game a:hover { color: white; border-color: #ac83ec; }
#game #historyButton { margin-left: auto; }
#game .songbar { min-height: 77px; flex-wrap: wrap; justify-content: flex-start; gap: 12px; background: #1a162f; }
#roundCover { width: 47px; height: 47px; border-radius: 10px; object-fit: cover; }
.songInfo { min-width: 0; }
#game h1 { margin: 0 0 4px; font-size: clamp(16px, 1.6vw, 25px); overflow-wrap: anywhere; }
#game h1 span { display: inline-block; margin: 0 0 0 10px; color: #d9c5ff; border-color: #534362; vertical-align: middle; }
#game .songInfo .eyebrow { font-size: 11px; letter-spacing: .25px; color: #c4b9d8; }
.setupActions { display: flex; align-items: center; gap: 7px; margin-left: auto; }
#game #settingsButton { font-size: 20px; padding: 5px 10px; }
.playDesk {
  --highway-width: 60%; position: relative; display: grid;
  grid-template-columns: minmax(0, var(--highway-width)) minmax(0, 1fr);
  gap: 10px; padding: 10px; align-items: start;
}
#game .stage {
  position: relative; isolation: isolate; overflow: hidden; margin: 0;
  height: max(470px, calc(100svh - 160px)); border: 1px solid var(--line); border-radius: 15px;
  background: radial-gradient(ellipse at 50% 85%, #352354, transparent 75%), #100d21;
}
.chart-play #game .stage {
  container-type: size;
  background: radial-gradient(ellipse at 50% 5%, #583889, transparent 65%),
    linear-gradient(#20133f, #19102e 55%, #35204e);
}
#game #deskDivider {
  position: absolute; z-index: 3; top: 48%; left: var(--highway-width); transform: translateX(-30%);
  width: 28px; height: 26px; padding: 0; color: #f2d7ff; cursor: col-resize; touch-action: none;
  border: 1px solid #8e66b7; box-shadow: 0 2px 8px #0b061d; background: #4b316b;
}
#game #feedback { top: 8%; left: 5%; right: 5%; pointer-events: none; z-index: 2; }
#game #feedback h2 { font-size: clamp(20px, 2.1vw, 37px); font-weight: 800; text-shadow: 0 2px 6px #100d21, 0 0 18px #171226; }
#game #feedback p { display: inline-block; margin: 0; padding: 4px 10px; border-radius: 8px; color: #f7f3ff; background: #171225dc; font-size: 12px; }
#game .tapZone { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); }
#game #timeline { bottom: 24px; }
#game .timelineLabels { padding: 0 12px; }
.chart-play #game :is(#timeline, .timelineLabels, .tapZone) { display: none; }
.chart-play #game #feedback { top: auto; bottom: calc(var(--label-height) + 16%); }
.chart-play #feedback h2 { margin: 4px; font-style: italic; }
.chart-play #feedback.atLane { clip-path: inset(50%); }
#game #zoneCue {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: max-content; max-width: 96%; margin: 0; padding: 5px 10px; pointer-events: none;
  font-size: 10px; color: #eee6ff; background: #191528e8; border: 1px solid #615078;
}
#game #playZones {
  display: grid; grid-template-columns: repeat(var(--lanes), minmax(min(42px, 11vw), 1fr));
  height: 100%; overflow: auto hidden; padding: 0; margin: 0; gap: 0; scrollbar-width: thin;
  touch-action: pan-x;
}
#game .drumLane {
  position: relative; display: grid; grid-template-rows: minmax(0, 1fr) var(--label-height); min-width: 0;
  overflow: hidden; user-select: none; cursor: pointer; touch-action: pan-x;
  border-inline: 1px solid color-mix(in srgb, var(--lane) 65%, #3c2659);
  background:
    radial-gradient(ellipse 85% 42% at 50% 84%, color-mix(in srgb, var(--lane) 42%, transparent), transparent),
    linear-gradient(0deg, #19102e, transparent 24%, transparent 80%, #25163766),
    linear-gradient(90deg, transparent 44%, color-mix(in srgb, var(--lane) 22%, transparent) 48% 52%, transparent 56%),
    linear-gradient(90deg, color-mix(in srgb, var(--lane) 14%, #160d29), color-mix(in srgb, var(--lane) 30%, #211433) 50%, color-mix(in srgb, var(--lane) 16%, #160d29));
}
#game .drumLane:focus-visible { outline: 2px solid white; outline-offset: -3px; }
.drumLane::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(to top, transparent, var(--lane) 23%, transparent 95%);
  box-shadow: inset 0 0 24px var(--lane);
  transition: opacity 120ms ease-out;
}
.drumLane.struck::before { opacity: .7; transition-duration: 0s; }
.noteTrack { container-type: inline-size; position: relative; min-height: 0; overflow: hidden; pointer-events: none; }
.laneJudgment {
  position: absolute; z-index: 2; left: 50%; top: calc(88% - 24px); transform: translate(-50%, -100%);
  display: grid; justify-items: center; gap: 4px; width: 98%; text-align: center;
  overflow-wrap: anywhere; text-shadow: 0 2px 4px #190b2c, 0 0 10px #190b2c;
}
.laneJudgment strong { font: italic 850 clamp(10px, 17cqi, 34px)/1 Inter, sans-serif; }
.laneJudgment small {
  max-width: 100%; padding: 2px 6px; border-radius: 6px; background: #150d26df;
  font: 650 clamp(10px, 9cqi, 16px)/1.2 Inter, sans-serif; color: white;
}
/* Size the receding plane from the stage height so its far edge meets the top at any aspect ratio. */
@supports (height: 1cqh) {
  #game #playZones.perspectiveKit {
    position: absolute; inset: auto 0 0; height: 154%; transform-origin: center bottom;
    transform: perspective(145cqh) rotateX(23deg);
  }
}
.noteTrack::before {
  content: ''; position: absolute; left: 50%; top: 88%; transform: translate(-50%, -50%);
  width: min(68%, 112px); height: 18px; border-radius: 50%;
  background: radial-gradient(ellipse, white 0%, var(--lane) 32%, transparent 74%);
}
.noteTrack::after {
  content: ''; position: absolute; top: 88%; left: 0; right: 0; transform: translateY(-50%); height: 4px; background: white;
  box-shadow: 0 0 5px 2px var(--lane), 0 0 18px 4px var(--lane);
}
.fallingNote {
  --ink: var(--note, var(--lane));
  position: absolute; left: 50%; transform: translate(-50%, -50%); width: 72%; max-width: 118px;
  height: clamp(19px, 2.8vh, 30px); border-radius: 32px; border: 2px solid color-mix(in srgb, var(--ink), white 72%);
  background: linear-gradient(color-mix(in srgb, var(--ink), white 48%), var(--ink) 42%, color-mix(in srgb, var(--ink) 80%, #491d64));
  box-shadow: inset 0 -2px 5px #ffffff75, 0 0 7px var(--ink), 0 0 23px color-mix(in srgb, var(--ink) 80%, transparent);
  display: grid; place-items: center; font: 800 14px/1 Inter, sans-serif; color: #21162f;
}
.laneFoot { container-type: inline-size; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; padding: 4px 2px; min-width: 0; text-transform: capitalize; }
.laneFoot strong { font-size: clamp(10px, 1.05vw, 17px); text-align: center; overflow-wrap: anywhere; }
.laneFoot kbd {
  display: grid; place-items: center; width: min(82%, 114px); min-height: clamp(38px, 6.3vh, 64px);
  padding: 4px 2px; margin: 0; text-align: center; overflow-wrap: anywhere;
  font: 800 clamp(18px, 28cqi, 38px)/1.05 Inter, sans-serif; text-shadow: 0 2px 4px #1e103c;
  border: 2px solid color-mix(in srgb, var(--lane), white 32%); border-radius: 13px; color: white;
  background: linear-gradient(160deg, color-mix(in srgb, var(--lane) 64%, #251339), color-mix(in srgb, var(--lane) 34%, #180c2b));
  box-shadow: inset 0 3px 8px color-mix(in srgb, var(--lane) 70%, transparent), 0 4px 0 color-mix(in srgb, var(--lane) 45%, #150a21), 0 5px 15px #0e081c99;
}
.laneFoot kbd.longKey { font-size: clamp(10px, 13cqi, 18px); }
.drumLane.struck .laneFoot kbd {
  background: var(--lane); color: #21122e; text-shadow: none; border-color: white;
  transform: translateY(2px); box-shadow: inset 0 0 12px white, 0 0 17px var(--lane);
}
@media(prefers-reduced-motion: reduce) {
  .drumLane.struck::before { opacity: .2; transition: none; }
  .drumLane.struck .laneFoot kbd { transform: none; }
}
.laneFoot i { position: relative; height: 16px; width: 23px; color: var(--lane); border: 2px solid currentColor; border-radius: 45% / 30%; }
.laneFoot .padIcon::after { content: ''; position: absolute; inset: 0 2px 48%; border-bottom: 1px solid currentColor; border-radius: 50%; }
.laneFoot .cymbalIcon { height: 8px; margin: 4px 0; border-radius: 50%; }
.laneFoot .cymbalIcon::after { content: ''; position: absolute; height: 16px; width: 2px; left: 50%; top: -5px; background: currentColor; }
.laneFoot .kickIcon { width: 17px; border-radius: 50%; }
.hitNow .noteTrack::after, .drumLane:active .noteTrack::after { box-shadow: 0 0 8px 4px white, 0 0 24px 12px var(--lane); }
.playSide { display: grid; min-width: 0; gap: 12px; }
.playSide > * { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
#game #youtubeSection { display: block; margin: 0; padding: 8px; }
body:has(dialog[open]) #game #youtubeSection { display: none; }
#game #youtubeMount { min-width: 0; min-height: 0; }
#game #youtubeMount :is(iframe, video) { width: 100%; height: auto; aspect-ratio: 16/9; min-height: 200px; border-radius: 8px; }
.mediaCaption { padding: 6px 6px 0; }
#game #youtubeMessage { margin: 3px 0; color: #c0b7cf; font-size: 11px; line-height: 1.45; }
.scoreCard, .historyCard { padding: clamp(14px, 1.5vw, 24px); }
#game .stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr; margin: 0; gap: 6px; }
#game .stats > div { gap: 3px; text-align: center; border-left: 1px solid var(--line); }
#game .stats > div:first-child { text-align: left; border: 0; }
#game .stats span, .historyCard .panelTitle { color: #d5cce4; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
#game .stats strong { font-size: clamp(20px, 2.7vw, 46px); font-weight: 750; }
#accuracy { color: #57f4d6; }
.songProgress, .scoreFoot, .playTransport { display: flex; align-items: center; gap: 10px; }
.songProgress { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
#game .progress { flex: 1; height: 10px; overflow: hidden; border-radius: 20px; background: #403456; }
#game #progressFill { background: linear-gradient(90deg, #9144eb, #e282ff); }
#clock { font-size: 12px; font-variant-numeric: tabular-nums; }
.scoreFoot { margin-top: 12px; justify-content: space-between; font-size: 9px; letter-spacing: .05em; color: #c1b6d7; }
.playTransport { padding: 12px; flex-wrap: wrap; }
#game .playTransport :is(#pause, #restart) { border-radius: 50%; width: 44px; height: 44px; font-size: 22px; padding: 0; }
#inputStatus { font-size: 11px; color: #c4bad5; overflow-wrap: anywhere; }
#game #exitPractice { margin-left: auto; color: #eee4ff; }
.historyCard #history { height: clamp(60px, 8vh, 100px); }
.historyCard .panelTitle span { color: #b0a3c4; }
#laneBindings { display: grid; grid-template-columns: 1fr auto; max-height: 40vh; overflow: auto; font-size: 13px; }
#laneBindings > * { padding: 6px; margin: 0; border-bottom: 1px solid #43405a; }
#laneBindings dd { color: var(--cyan); }
@media(max-width: 760px) {
  #game .playNav, #game .songbar { padding: 9px 12px; gap: 8px; }
  #game .playNav { flex-wrap: wrap; }
  #game .playNav .brand { font-size: 20px; }
  .playNav nav { gap: 0; }
  #game .playNav nav a, #game .catalogLink, #game .setupActions button { font-size: 11px; padding: 7px; }
  .playDesk { grid-template-columns: minmax(0, 1fr); padding: 6px; }
  #game .stage { height: clamp(330px, 58svh, 640px); }
  #game #deskDivider { display: none; }
  #game .setupActions { gap: 4px; }
  .playSide { gap: 7px; }
  #game #historyButton { padding: 6px; }
  .laneFoot kbd { border-radius: 6px; }
}
@media(max-width: 440px) {
  #game .playNav nav { order: 3; width: 100%; justify-content: space-around; }
  #roundCover { width: 34px; height: 34px; }
}

/* Session review */
body:has(#sessionHistory[open]) { overflow: hidden; }
#sessionHistory {
  width: min(920px, calc(100% - 24px)); max-width: none; max-height: 90svh; padding: 0;
  overflow: auto; overscroll-behavior: contain; color: #f9f6ff; color-scheme: dark;
  border: 1px solid #67529c; border-radius: 20px; background: #191531;
  font-family: Inter,Arial,sans-serif;
}
.historyHeader {
  justify-content: space-between; align-items: start; gap: 12px; margin: 0;
  padding: clamp(20px,4vw,38px); border-bottom: 1px solid #67529c;
  background: linear-gradient(95deg,#251847 16%,#322153ed 50%,#28164175),url('/assets/synth.png') right 48% / cover;
}
.historyHeader h2 { margin: 0; font: 800 clamp(28px,4vw,46px)/1.1 Inter,Arial,sans-serif; letter-spacing: -.045em; }
#sessionHistory p { margin: 8px 0 0; color: #d9d0ee; font-size: 14px; line-height: 1.5; }
#sessionHistory #historyClose { margin: 0; padding: 8px 14px; font: 600 14px Inter,Arial,sans-serif; background: #29203f; border: 1px solid #9676bd; }
#historyContent { padding: clamp(16px,3vw,28px); }
#openReplays { margin: 0 0 16px; }
#interactionReplays { width:min(1600px,96vw); max-width:96vw; max-height:94svh; padding:0; overflow:auto; background:#faf9ff; color:#151137; color-scheme:light; border:1px solid #d9d1f3; border-radius:22px; box-shadow:0 24px 110px #130b3980; }
#interactionReplays::backdrop { background:#201b477d; backdrop-filter:blur(7px); }
#interactionReplays [hidden] { display:none; }
.replayHeader,.replayBody { padding:clamp(16px,2vw,30px); }
#interactionReplays .replayHeader { display:flex; justify-content:space-between; gap:10px; margin:0; background:white; border-bottom:1px solid #e4dff1; }
.replayHeader div,.replayHeading { display:flex; align-items:center; gap:12px; }
.replayHeader img { width:40px; height:40px; object-fit:contain; }
#interactionReplays h2 { margin:0; font-size:clamp(22px,2.6vw,36px); letter-spacing:-.055em; }
#interactionReplays h3,#interactionReplays h4 { margin:0; line-height:1.25; }
.replayHeading { justify-content:space-between; flex-wrap:wrap; margin-bottom:12px; }
#replayScreen { font-size:clamp(19px,1.6vw,26px); text-transform:capitalize; }
#replayDate,#replayTime { font:600 12px/1.4 Inter,Arial,sans-serif; font-variant-numeric:tabular-nums; color:#635975; }
#interactionReplays button,#interactionReplays .replayImport { display:inline-flex; align-items:center; justify-content:center; border:1px solid #d9d2e9; background:#fff; color:#352746; border-radius:10px; padding:9px 14px; font:650 14px Inter,Arial,sans-serif; letter-spacing:0; cursor:pointer; }
#interactionReplays button:hover { background:#f0eaff; border-color:#b99ce5; }
#interactionReplays :focus-visible,.replayImport:focus-within { outline:3px solid #8446e8; outline-offset:2px; }
#interactionReplays #playReplay { min-width:76px; background:#7128ed; border-color:#7128ed; color:white; }
.replayWorkspace { display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,23%); gap:16px; align-items:start; }
.replayMonitor,.replaySidebar { min-width:0; border:1px solid #ddd6ed; border-radius:16px; background:white; overflow:hidden; }
#replayStage { display:block; width:100%; height:clamp(230px,54svh,680px); background:#e7e3f2; }
#replayStage text { font-family:Inter,"Segoe UI",Arial,sans-serif; }
.replayTransport,.replayActions,#replayLibrary { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.replayTransport { padding:12px; }
#replaySeek { flex:1; min-width:80px; width:auto; margin:0; accent-color:#7128ed; }
.replaySidebar { padding:18px; max-height:calc(54svh + 60px); overflow:auto; }
#replayMedia { margin-bottom:16px; padding-bottom:12px; border-bottom:1px solid #e5dff0; }
#replayMedia iframe,#replayMedia video { display:block; width:100%; min-height:200px; height:auto; aspect-ratio:16/9; margin-top:8px; border:0; background:#151137; }
#replayMedia label { margin:8px 0; color:inherit; font-size:13px; letter-spacing:0; }
#replayMedia input { display:block; max-width:100%; margin-top:6px; }
@media(min-width:801px){.replayWorkspace:has(#replayMedia:not([hidden])) { grid-template-columns:minmax(0,1fr) minmax(250px,28%); }}
#interactionReplays p { color:#635975; line-height:1.5; }
#replayAction,#replayPerformance { overflow-wrap:anywhere; margin:8px 0; }
#replayRoundSection { border-top:1px solid #e5dff0; padding-top:16px; margin-top:16px; }
#replayRounds { list-style:none; padding:0; margin:0; }
#replayRounds li { padding-top:12px; font-size:12px; line-height:1.5; color:#605773; overflow-wrap:anywhere; }
#interactionReplays #replayRounds button { display:block; text-align:left; background:#f4eeff; color:#5725a9; margin-bottom:4px; width:100%; }
.replayActions,#replayLibrary { margin-top:12px; }
#replayNotice:empty,#replayPerformance:empty { display:none; }
#replayNotice { margin:0 0 10px; }
#replayLocal { margin-top:8px; }
#replayLocal summary { font-weight:700; cursor:pointer; }
#replayLocal p { max-width:72ch; }
#replayLocal label { color:inherit; }
#replayLocal .replayImport { position:relative; margin:0; }
.replayImport input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
#replayLibrary { max-height:150px; overflow:auto; }
@media(max-width:800px) {
  .replayWorkspace { grid-template-columns:minmax(0,1fr); }
  .replaySidebar { max-height:none; }
  #replayStage { height:clamp(220px,47svh,480px); }
  .replayHeader img { width:28px; height:28px; }
  .replayTransport { gap:8px; }
}
#historyList section + section { margin-top: 22px; }
#historyList h3 { margin: 0 0 8px; color: #d7c8ed; font: 650 14px Inter,Arial,sans-serif; }
#historyList ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
#historyList .historyRow {
  width: 100%; margin: 0; display: grid; align-items: center; text-align: left;
  grid-template-columns: 66px minmax(0,1fr) 88px 80px 72px 12px;
  grid-template-areas: "art track status score accuracy arrow";
  gap: 14px; padding: 12px; border: 1px solid #52416b; border-radius: 12px;
  background: linear-gradient(110deg,#302545,#241f3d); color: #faf7ff; font: inherit;
}
#historyList .historyRow:is(:hover,:focus-visible) { border-color: #bd95f5; background: #352947; }
.historyArt { grid-area: art; width: 100%; height: 48px; object-fit: cover; border-radius: 7px; }
.historyTrack { grid-area: track; min-width: 0; }
.historyTitle { display: block; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.historyMeta { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 4px; font-size: 12px; color: #cfc4de; }
.historyStatus { grid-area: status; justify-self: start; padding: 4px 8px; border-radius: 12px; background: #45374f; color: #ead6e5; font-size: 12px; }
.completed .historyStatus { background: #233f40; color: #a1f2cd; }
.historyMetric { display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.historyMetric:has(.historyScore) { grid-area: score; }
.historyMetric:has(.historyAccuracy) { grid-area: accuracy; }
.historyMetric small { text-align: left; color: #cec2e0; font-size: 11px; }
.historyMetric b { color: #74eee6; font-size: 17px; }
.historyArrow { grid-area: arrow; color: #ccb0f4; font-size: 24px; }
#historyEmpty { text-align: center; padding: clamp(20px,5vw,48px) 8px; }
#historyEmpty h3 { margin: 0; font-size: 21px; }
@media(max-width:650px){
  #historyList .historyRow {
    grid-template-columns: 76px minmax(0,1fr) minmax(0,1fr) 12px;
    grid-template-areas: "art track track arrow" "status score accuracy arrow";
    gap: 9px; padding: 12px;
  }
  .historyArt { width: 60px; height: 42px; }
}
body:has(#results[open]) { overflow: hidden; }
#results {
  --review-line: #67529c;
  --review-muted: #d5cdef;
  --review-aqua: #57f3ee;
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; border-radius: 0; overflow: auto; overscroll-behavior: contain;
  color: #fbf8ff; font-family: Inter, Arial, sans-serif;
  background: radial-gradient(ellipse at 0% 65%, #4e25b878, transparent 38%),
    radial-gradient(ellipse at 92% 98%, #4b229b82, transparent 43%),
    radial-gradient(ellipse at 55% 0, #2d2269, transparent 55%), #100d32;
}
.reviewSymbols { position: absolute; width: 0; height: 0; pointer-events: none; }
#results p, #results h3 { margin: 0; }
#results p { color: var(--review-muted); line-height: 1.45; }
.reviewNav {
  padding: 8px 5%; gap: clamp(24px,5vw,90px); margin: 0; min-height: 58px;
  border-bottom: 1px solid #54427a;
  background: linear-gradient(125deg,#c42afe 0%,#962bfd 2%,#4335b1 2.1%,#342481 3.4%,transparent 3.5%), #211b50;
}
.reviewNav a { color: inherit; text-decoration: none; font-weight: 650; }
.reviewBrand { display: inline-flex; align-items: center; font-size: clamp(23px,2vw,32px); letter-spacing: -1.4px; }
.reviewBrand img { width: 1.35em; height: 1.35em; object-fit: contain; margin-right: .15em; }
.reviewBrand span { color: #dc6af7; }
.reviewNav nav { display: flex; gap: clamp(4px,1.6vw,28px); }
.reviewNav nav a { display: inline-flex; align-items: center; gap: .55em; padding: 8px clamp(9px,1.4vw,24px); border-radius: 30px; }
.reviewNav nav svg { width: 1.15em; height: 1.15em; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.reviewNav nav a:hover, .reviewNav a[aria-current] { background: linear-gradient(140deg,#6333aa,#893acb); }
.reviewBody { width: min(92%,1600px); margin: auto; padding-bottom: 20px; }
.reviewHero {
  position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center;
  gap: clamp(12px,1.5vw,24px); padding: clamp(14px,1.75vh,24px) 0; overflow: hidden;
}
.reviewHero h2 {
  margin: 0; font: italic 800 clamp(29px,3.35vw,58px)/1.12 Inter,Arial,sans-serif; letter-spacing: -.045em;
  background: linear-gradient(110deg,#fff 20%,#e9dcff 65%,#f286ff);
  background-clip: text; color: transparent; filter: drop-shadow(0 0 10px #ba53fb66);
}
.reviewSeal {
  display: grid; place-items: center; flex: none; width: clamp(48px,4.6vw,76px); aspect-ratio: 1;
  border: 3px solid #efd2ff; border-radius: 50%; transform: rotate(-4deg);
  background: linear-gradient(150deg,#a745d6,#59259c 58%,#301e78);
  box-shadow: inset 0 0 12px #e699ff,0 0 7px #dc60ff,0 0 25px #af37fc;
}
.reviewSeal::before { content: ''; width: 40%; height: 21%; border: solid white; border-width: 0 0 5px 5px; transform: translateY(-10%) rotate(-45deg); }
.stoppedReview .reviewSeal::before { width: 28%; height: 28%; background: white; border: 0; border-radius: 3px; transform: none; }
.reviewHero::before,.reviewHero::after {
  content: ''; position: absolute; z-index: -1; width: 11px; height: 4px; border-radius: 4px;
  background: #5ff9fa; box-shadow: 27px -28px #ec68fe,54px 9px #b75aff,51px -41px #30dee9;
  left: 22%; transform: rotate(24deg);
}
.reviewHero::after { left: auto; right: 22%; transform: rotate(154deg); }
.fullAnalysis .reviewHero::before,.fullAnalysis .reviewHero::after,.stoppedReview .reviewHero::before,.stoppedReview .reviewHero::after { display: none; }
.reviewPanel {
  border: 1px solid var(--review-line); border-radius: clamp(14px,1.2vw,22px);
  background: linear-gradient(155deg,#35265e 0%,#24204c 33%,#191837 80%,#242044);
  box-shadow: inset 0 1px 1px #ac97ff16,0 8px 28px #0d052729;
}
.reviewTrack { display: flex; align-items: center; gap: clamp(14px,1.8vw,32px); padding: 10px 2.5%; }
#reviewCover { width: clamp(80px,8.5vw,145px); aspect-ratio: 2; object-fit: cover; border-radius: 13px; }
.reviewTrack h3 { font-size: clamp(20px,1.8vw,30px); letter-spacing: -.04em; overflow-wrap: anywhere; }
#reviewMeta { margin-top: 4px; font-size: clamp(13px,1.15vw,19px); }
#results #summary { border-left: 1px solid #8c67bd; margin-left: 3%; padding: 8px 0 8px 3%; flex: 1; color: #f2edff; font-size: clamp(15px,1.35vw,23px); }
.reviewScores,.reviewAnalysis { margin-top: clamp(12px,1.8vh,20px); padding: clamp(15px,1.45vw,25px); display: grid; gap: clamp(12px,1.8vw,32px); }
.reviewScores { grid-template-columns: 1.55fr repeat(3,minmax(0,1fr)) minmax(0,1.15fr); align-items: stretch; padding-block: clamp(14px,1.1vw,20px); }
.reviewAward { display: flex; justify-content: center; align-items: center; border-right: 1px solid #73569f; padding-right: 4%; }
.reviewAward div { text-align: center; text-transform: uppercase; color: #ecddff; font-size: clamp(12px,1.15vw,19px); }
.reviewAward strong { display: block; font-size: clamp(32px,3.7vw,64px); letter-spacing: -.065em; line-height: 1.15; color: white; text-shadow: 0 0 22px #cf79fe77; }
.reviewAward svg { width: clamp(20px,2.7vw,47px); height: clamp(44px,5.2vw,90px); color: #d685ff; filter: drop-shadow(0 0 7px #af39e866); }
.reviewAward svg:last-child { transform: scaleX(-1); }
.reviewMetric { display: flex; flex-direction: column; justify-content: center; min-width: 0; gap: .45em; border: 1px solid #564778; border-radius: 14px; padding: clamp(12px,1.2vw,20px); background: linear-gradient(150deg,#39305fbb,#232240); font-size: clamp(13px,1.05vw,18px); }
.reviewMetric strong { color: var(--review-aqua); font-size: clamp(24px,2.45vw,42px); line-height: 1.12; letter-spacing: -.045em; }
.reviewBias { border-color: #da83f6; box-shadow: inset 0 0 18px #b64bff24; background: linear-gradient(145deg,#453065,#30234f); }
.reviewBias strong { font-size: clamp(22px,2.1vw,36px); color: #f2a0ff; }
.reviewAnalysis { grid-template-columns: minmax(0,1.36fr) minmax(0,1fr); align-items: start; padding-block: clamp(14px,1vw,18px); }
.reviewPlot,.reviewDetails { min-width: 0; }
.reviewSectionHead,.reviewLogHead { display: flex; align-items: center; gap: 12px; }
.reviewSectionHead>span { display: grid; place-items: center; border-radius: 50%; width: clamp(36px,3.2vw,54px); aspect-ratio: 1; background: linear-gradient(135deg,#513684,#7135a0); }
.reviewSectionHead svg { width: 46%; height: 46%; }
.reviewSectionHead h3 { font-size: clamp(19px,1.5vw,26px); letter-spacing: -.04em; }
.reviewSectionHead p { margin-top: 3px !important; font-size: clamp(13px,1vw,17px); }
#reviewChart { margin: clamp(10px,1vw,16px) 0 6px; }
@media(min-width: 951px) {
  #results:not(.fullAnalysis) #reviewChart svg { max-height: 25svh; }
}
.reviewLegend { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px clamp(10px,2vw,36px); padding: 0; margin: 0; list-style: none; font-size: clamp(11px,.83vw,14px); }
.reviewLegend li { display: inline-flex; align-items: center; gap: 7px; }
.reviewLegend li::before { content: ''; width: .75em; height: .75em; border-radius: 50%; background: #ffd480; }
.reviewLegend li:nth-child(2)::before { background: #72f3bf; }
.reviewLegend li:nth-child(3)::before { background: #60ddff; }
.reviewLegend li:last-child::before { content: '×'; width: auto; height: auto; background: none; color: #ff66aa; font-size: 1.4em; font-weight: 800; line-height: 1; }
.reviewSecondary { display: grid; grid-template-columns: 1.18fr 1.15fr .95fr; gap: clamp(7px,1vw,18px); }
.reviewSecondary .reviewMetric { font-size: clamp(11px,.9vw,15px); border-radius: 12px; padding: clamp(10px,1vw,17px); }
.reviewSecondary strong { font-size: clamp(21px,1.9vw,32px); }
.reviewLogHead { justify-content: space-between; margin: clamp(12px,1vw,18px) 0 8px; gap: 8px; }
.reviewLogHead h3 { font-size: clamp(15px,1.13vw,19px); }
.reviewLogHead h3::before { content: '☷'; margin-right: 8px; }
.reviewLogHead span { font-size: .9em; font-weight: 450; color: var(--review-muted); }
#expandLog,#roundRemix { background: none; border: 0; color: #e39bff; padding: 4px; font-weight: 650; font-size: clamp(12px,.9vw,15px); }
#expandLog:hover,#roundRemix:hover { text-decoration: underline; }
#results .reviewScroll { border-color: #7d68a4; border-radius: 12px; background: #161531; max-height: none; }
#reviewTable { font-size: clamp(12px,.9vw,15px); }
#reviewTable td,#reviewTable th { padding: .38em 1.05em; border-color: #504466; }
#reviewTable td:first-child,#reviewTable td:last-child { white-space: nowrap; }
#reviewTable td:nth-child(2) { overflow-wrap: anywhere; }
#reviewTable th { background: #312952; }
#reviewTable tr:last-child td { border: 0; }
.reviewButtons { display: flex; justify-content: center; gap: clamp(12px,2.6vw,46px); margin: clamp(18px,2.7vh,32px) auto 0; }
.reviewButtons button { display: inline-flex; align-items: center; justify-content: center; gap: .7em; min-height: 46px; padding: .65em 1.25em; color: #fbf6ff; border: 1px solid #b37ae8; border-radius: 15px; background: linear-gradient(#3a2a60,#272040); font-size: clamp(14px,1.16vw,20px); font-weight: 600; }
.reviewButtons button:hover { filter: brightness(1.2); }
.reviewButtons #change { width: auto; font-size: clamp(14px,1.16vw,20px); }
#change::before { content: '←'; font-size: 1.35em; }
.reviewButtons #again { min-width: 22%; border-color: #e6a2ff; border-radius: 40px; background: linear-gradient(110deg,#9a51ff,#a42bfa 52%,#ca30ef); box-shadow: inset 0 1px 5px #efc3ff8f,0 0 24px #9a32fa63; font-size: clamp(17px,1.4vw,24px); }
#again::before { content: '▷'; font-size: 1.35em; line-height: .8; }
.reviewButtons svg { width: 1.3em; height: 1.3em; }
.reviewButtons #roundShare { background: none; border: 0; border-left: 1px solid #8064ad; border-radius: 0; }
@media(min-width: 951px) {
  .reviewButtons #change { min-width: 20%; }
}
.reviewFeedback,.reviewCourse { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.reviewFeedback:has(:not([hidden]):not(:empty)),.reviewCourse:has(:not([hidden])) { margin-top: 12px; }
.reviewFeedback p:empty { display: none; }
#roundLink { max-width: 620px; padding: 8px; }
.fullAnalysis .reviewAnalysis { grid-template-columns: 1fr; }
.fullAnalysis .reviewPlot { width: min(100%,950px); margin: auto; }
#results.fullAnalysis .reviewScroll { max-height: 55svh; }
#reviewNotes { margin: 14px 0; }
@media(max-width: 950px) {
  .reviewScores { gap: 8px; }
  .reviewAnalysis { grid-template-columns: 1fr; }
  .reviewButtons { gap: 8px; flex-wrap: wrap; }
  .reviewHero::before { left: 12%; } .reviewHero::after { right: 12%; }
}
@media(max-width: 680px) {
  .reviewNav { flex-wrap: wrap; gap: 6px 12px; padding: 9px 4%; }
  .reviewNav nav { flex-wrap: wrap; gap: 0; font-size: 12px; }
  .reviewNav nav a { padding: 6px; }
  .reviewHero::before,.reviewHero::after { display: none; }
  .reviewHero { gap: 10px; }
  .reviewHero h2 { font-size: clamp(23px,6.5vw,36px); }
  .reviewSeal { width: 40px; }
  .reviewTrack { flex-wrap: wrap; padding: 12px; }
  .reviewTrack>div { flex: 1; min-width: 0; }
  #results #summary { flex-basis: 100%; padding: 10px 0 0; border: 0; border-top: 1px solid #604c80; margin: 0; }
  .reviewScores { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .reviewAward { grid-column: 1/-1; padding: 0 0 10px; border: 0; }
  .reviewMetric { padding: 10px 12px; }
  .reviewSecondary .reviewMetric { padding: 8px; }
  .reviewSectionHead { gap: 8px; }
  #reviewChart svg text { font-size: 16px; }
  #reviewTable th,#reviewTable td { padding: .5em; }
  .reviewButtons { display: grid; grid-template-columns: 1fr 1fr; }
  .reviewButtons button { padding: .65em .5em; gap: .35em; border-radius: 12px; }
  .reviewButtons #roundShare { border: 0; }
}
.sample-import{color-scheme:light;color:#241a38;background:#fff;border:1px solid #d9cdea;border-radius:18px}
.sample-import h2{font-size:26px;margin:0 0 16px}
.sample-import audio{width:100%}
.sample-import label{display:grid;gap:6px;margin:16px 0;color:#53435e;font-size:14px;letter-spacing:normal}
.sample-import input,.sample-import button{border:1px solid #d2c5e2;border-radius:8px;padding:8px 12px;font:inherit}
.sample-import button{background:#f6f1fc;color:#362047}
.sample-import button[value=use]{background:#7128ed;color:white}
.sample-browser{width:min(880px,calc(100% - 24px));max-height:88svh;overflow:auto;color-scheme:light;background:#fff;color:#261c36;border:1px solid #dcd1ed;padding:24px}
.sample-browser::backdrop{background:#1b113bb8;backdrop-filter:blur(5px)}
.sample-browser-head,.sample-browser li{display:flex;align-items:center;gap:12px}
.sample-browser-head{justify-content:space-between;margin-bottom:20px}
.sample-upload{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-bottom:16px}
.sample-upload span{color:#63576c;font-size:13px}
.sample-browser h2,.sample-browser h3,.sample-browser p{margin:0;letter-spacing:normal}
.sample-browser h2{font-size:26px;letter-spacing:-.8px}.sample-browser h3{font-size:18px}
.sample-browser a{color:#603098}.sample-browser section>p{font-size:13px;line-height:1.5;margin:5px 0 12px}
.sample-shelves{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.sample-shelves section{min-width:0}.sample-browser ul{list-style:none;padding:0;margin:0}
.sample-browser li{border-top:1px solid #e9e2ef;padding:9px 0;min-height:60px}
.sample-browser button{background:#f6f2fc;color:#51268b;border:1px solid #dacfe6;border-radius:9px;padding:8px 12px;font-size:14px;font-weight:600}
.sample-browser button:hover,.sample-browser .sample-preview[aria-pressed=true]{color:#fff;background:#6c34bb}
.sample-browser :focus-visible{outline:3px solid #884ccd;outline-offset:2px}
.sample-browser .sample-preview{border-radius:50%;width:36px;height:36px;padding:0;flex:none}
.sample-info{flex:1;font-size:14px}.sample-info small{margin:3px 0 0;text-align:left;color:#74657e;font-size:12px}
.sample-browser .sample-error:not(:empty){margin-top:14px;color:#912a32}
@media(max-width:700px){.sample-shelves{grid-template-columns:1fr;gap:20px}.sample-browser{padding:18px}}
