@font-face{font-family:Space Grotesk;src:url(assets/space-grotesk.woff2) format("woff2");font-weight:300 700;font-display:swap}
@font-face{font-family:IBM Plex Mono;src:url(assets/plex-mono.woff2) format("woff2");font-weight:400;font-display:swap}
:root {
  color-scheme: dark;
  --page:#090a0f;
  --panel:#111118;
  --white:#f4f3fa;
  --muted:#a19fac;
  --accent:#b4a1ff;
  --mono:"IBM Plex Mono",Consolas,monospace;
  --sans:"Space Grotesk","Segoe UI",sans-serif;
}
*{box-sizing:border-box}
html{min-height:100%;background:var(--page);scroll-behavior:smooth}
body{margin:0;color:var(--white);font:400 1rem/1.5 var(--sans);min-height:100vh;background:radial-gradient(ellipse at 79% 27%,#15112255,transparent 55%),var(--page)}
body:has(.expanded){overflow:hidden}
[hidden]{display:none!important}
button,a,input{-webkit-tap-highlight-color:transparent}
button,a{color:inherit;font:inherit}
button{cursor:pointer}
button:disabled{cursor:default}
button{border:0;background:transparent}
a{text-decoration:none}
button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #d5c9ff;outline-offset:4px}
button,input{touch-action:manipulation}
.icon-library{position:absolute;width:0;height:0;overflow:hidden}
.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
p,h1,h2{margin:0}
.masthead{height:74px;border-bottom:1px solid #27252e;background:#0a0a0f}
.mast-inner,.shell{width:min(calc(100% - 112px),1240px);margin:0 auto}
.mast-inner,.mast-inner nav,.brand,.mast-inner nav a,.mast-inner nav button{height:100%;display:flex;align-items:center}
.mast-inner{justify-content:space-between}
.brand{gap:9px}
.brand img{width:35px;height:35px}
.brand span{font-size:1.45rem;font-weight:700;letter-spacing:.21em;line-height:1}
.mast-inner nav{gap:31px;color:#aca9b7;font-size:.88rem;font-weight:500}
.mast-inner nav button{padding:0}
.mast-inner nav a:hover,.mast-inner nav button:hover{color:white}
.nav-arcade{position:relative;gap:8px;color:#c5b5ff}
.nav-arcade:after{content:"";position:absolute;height:2px;background:#ae90ff;bottom:-1px;left:0;right:0;border-radius:4px}
.nav-arcade .icon{width:18px;height:18px}
.nav-rule{height:20px;width:1px;background:#33303a}
.bandcamp-link{gap:7px}.bandcamp-link .icon{width:15px;height:15px}
.shell{padding-top:37px;padding-bottom:35px}
.intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 25px}
.eyebrow,.micro,.status-badge{font:400 .735rem/1.3 var(--mono);letter-spacing:.115em;text-transform:uppercase}
.eyebrow{display:flex;align-items:center;gap:10px;color:#bbabf8}
.equalizer{height:13px;display:inline-flex;align-items:center;gap:2px}
.equalizer i{display:block;width:2px;height:5px;border-radius:2px;background:#b49aff}
.equalizer i:nth-child(2){height:10px}.equalizer i:nth-child(3){height:15px}.equalizer i:nth-child(4){height:8px}
h1{font-size:clamp(2.85rem,4.35vw,4.05rem);font-weight:700;letter-spacing:-.068em;line-height:1.13;margin:6px 0 5px}
h1>span{color:#aa8dff;padding-left:1px}
.intro-copy{font-size:1.01rem;letter-spacing:-.015em;color:#aeabb9}
.best-box{display:flex;align-items:center;gap:12px;padding:8px 0 3px 20px}
.best-icon{width:41px;height:41px;display:grid;place-items:center;background:linear-gradient(140deg,#211c30,#18151f);border:1px solid #383044;border-radius:8px;color:#c1abff}
.best-icon .icon{width:20px;height:20px}
.best-box .micro{font-size:.68rem;color:var(--muted);letter-spacing:.1em}
#best{font:400 1.18rem/1.3 var(--mono);letter-spacing:.06em;margin-top:3px}
.console{border:1px solid #37343f;border-radius:13px;background:var(--panel);overflow:hidden;isolation:isolate;box-shadow:0 10px 38px #00000028}
.trackbar{display:flex;align-items:center;gap:13px;padding:13px 22px;background:linear-gradient(90deg,#18171f,#14141c);border-bottom:1px solid #35303f}
.cover{width:43px;height:43px;object-fit:cover;border-radius:5px;border:1px solid #625960}
.song{min-width:0}
.song h2{font-size:1.05rem;font-weight:600;letter-spacing:-.025em;line-height:1.3}
.song p{font-size:.84rem;line-height:1.3;color:#b1abba;margin-top:3px}
.track-progress{margin-left:auto;display:flex;gap:18px;align-items:center}
#waveform{width:clamp(90px,10.5vw,150px);height:26px}
.time{display:flex;gap:9px;color:#a6a2b3;font:400 .77rem var(--mono);white-space:nowrap}
#elapsed{color:#e1ddeb}.slash{color:#696575}
.stage{position:relative;isolation:isolate;height:clamp(310px,min(32.4vw,47svh),455px);overflow:hidden;background:#0b0c1c url(assets/fracture.webp) center center/cover no-repeat;user-select:none;-webkit-user-select:none}
.stage:before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#0b0a1a48,transparent 28%,transparent 80%,#07071047),linear-gradient(90deg,#0a0a1720,transparent 40%,transparent 60%,#0a0a1720)}
#highway{position:absolute;inset:0;width:100%;height:100%;touch-action:none;outline:0}
.hud{position:absolute;inset:19px 21px auto;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none}
.metrics{display:flex;align-items:center;gap:16px;border:1px solid #9385bc40;background:#10101cbb;backdrop-filter:blur(8px);padding:11px 15px 10px;border-radius:6px}
.metrics .micro{font-size:.63rem;letter-spacing:.11em;color:#c4bece}
.metrics strong{font:400 1.4rem/1.22 var(--mono);display:block;letter-spacing:.04em;margin-top:3px}
.metrics .combo{border-left:1px solid #9385bc40;padding-left:15px;min-width:48px}
.combo strong{color:#c6a9ff}
.status-badge{display:flex;align-items:center;gap:7px;padding:6px 9px;border:1px solid #a48bc94f;border-radius:5px;background:#161121c9;color:#dbd1e9;font-size:.64rem;letter-spacing:.085em}
.status-badge>span:first-child{width:6px;height:6px;border-radius:50%;background:#c0a3ff;box-shadow:0 0 8px #bf8dff6b}
[data-mode=playing] .status-badge>span:first-child{background:#96e2bf}
.screen-button,.icon-button{display:inline-flex;align-items:center;justify-content:center;color:#b5b1c2;border-radius:6px}
.screen-button{position:absolute;bottom:15px;right:18px;height:32px;width:32px;color:#d4cbeb;border:1px solid #a996ca43;background:#11101ba8;z-index:3}
.screen-button .icon{width:16px;height:16px}
.screen-button:hover,.icon-button:hover{background:#302a3b;color:white}
.icon-button{width:34px;height:36px}
.controlbar{display:flex;align-items:center;gap:23px;padding:17px 22px;border-top:1px solid #38313f;background:linear-gradient(100deg,#191720 0%,#15151d 80%)}
.play-controls,.level-controls,.sound-controls,.difficulty,.play{display:flex;align-items:center}
.play-controls{gap:4px}
.play{gap:8px;justify-content:center;border-radius:6px;padding:0 20px;min-height:43px;background:#b29afa;color:#161020;font-size:.97rem;font-weight:700;letter-spacing:-.025em;box-shadow:inset 0 1px 0 #ffffff38}
.play:hover,#overlay-primary:hover{background:#c6b4ff}
.play:active,#overlay-primary:active{transform:translateY(1px)}
.play .icon{width:16px;height:16px}
.level-controls{gap:12px;border-left:1px solid #39343f;padding-left:23px}
.level-controls>.micro{color:#aba6b7;font-size:.685rem;letter-spacing:.09em}
.difficulty{background:#0d0d13;border:1px solid #37333e;border-radius:6px;padding:3px;gap:1px}
.difficulty button{color:#a7a3b2;border-radius:4px;min-height:30px;padding:1px 13px;font-size:.85rem;font-weight:500}
.difficulty button:hover:not(:disabled){color:white}
.difficulty button[aria-pressed=true]{color:#ded0ff;background:#352b47;box-shadow:inset 0 0 0 1px #675283}
.difficulty button:disabled:not([aria-pressed=true]){opacity:.63}
.sound-controls{margin-left:auto;gap:5px}
input[type=range]{--fill:75%;width:80px;height:20px;cursor:pointer;background:transparent;appearance:none;border:0}
input[type=range]::-webkit-slider-runnable-track{height:3px;border-radius:4px;background:linear-gradient(to right,#b5a0ec var(--fill),#494450 var(--fill))}
input[type=range]::-webkit-slider-thumb{appearance:none;width:10px;height:10px;margin-top:-3.5px;border-radius:50%;background:#c9b8fc}
input[type=range]::-moz-range-track{height:3px;border-radius:4px;background:#494450}
input[type=range]::-moz-range-progress{height:3px;background:#b5a0ec}
input[type=range]::-moz-range-thumb{width:10px;height:10px;border:0;border-radius:50%;background:#c9b8fc}
.tips,.keys-tip,.keys,.headphone-tip{display:flex;align-items:center}
.tips{justify-content:space-between;gap:14px;color:#9894a5;font-size:.805rem;padding:17px 2px 0}
.keys-tip,.headphone-tip{gap:8px}
.keys-tip>.icon,.headphone-tip .icon{color:#9994a7;width:16px;height:16px}
.keys{gap:3px}
kbd{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:22px;border-radius:4px;padding:0 4px;border:1px solid #3c3845;background:#1a1921;color:#c6c1d1;font:400 .72rem/1 var(--mono);box-shadow:0 1px 0 #08080b}
.keys-tip>b{width:1px;height:14px;background:#38343f;margin:0 4px}
.space-key{padding:0 7px}
.touch-hint{display:none}
#feedback{position:absolute;pointer-events:none;left:50%;bottom:23%;transform:translateX(-50%);color:#fff;font-size:1.35rem;font-weight:700;text-shadow:0 2px 7px #09091d,0 0 14px #593c99;letter-spacing:.015em}
#stage-overlay{position:absolute;inset:0;display:grid;place-items:center;text-align:center;background:#080812a8;backdrop-filter:blur(3px);z-index:2;padding:12px}
.overlay-card{max-width:440px;padding:18px}
.overlay-card h2,#help h2{font-weight:700;line-height:1.15;letter-spacing:-.055em;font-size:2.45rem}
.overlay-card p{color:#ddd9ea;margin:9px 0 15px;font-size:.94rem;white-space:pre-line}
#overlay-actions{display:flex;gap:10px;justify-content:center}
#overlay-actions button{border-radius:5px;padding:8px 15px;font-size:.9rem;font-weight:600}
#overlay-primary{background:var(--accent);color:#161021}
#overlay-secondary{background:#211c30;border:1px solid #574c68}
#stage-overlay[data-mode=countdown]{pointer-events:none;background:#07071032;backdrop-filter:none}
#stage-overlay[data-mode=countdown] h2{font-size:clamp(3rem,8vw,5.3rem);text-shadow:0 2px 20px #0e0920}
#stage-overlay[data-mode=countdown] p{font-family:var(--mono)}
.console:fullscreen,.console.expanded{width:100%;height:100%;max-width:none;max-height:none;display:flex;flex-direction:column;border:0;border-radius:0}
.console.expanded{position:fixed;inset:0;height:100dvh;z-index:20}
.console:fullscreen .stage,.console.expanded .stage{flex:1;height:auto;min-height:0}
dialog{color:var(--white);font:1rem/1.55 var(--sans);background:#17141e;border:1px solid #4a4057;border-radius:12px;width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 40px);padding:23px 27px 26px;box-shadow:0 30px 140px #000a}
dialog::backdrop{background:#05040bc9;backdrop-filter:blur(6px)}
.dialog-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.dialog-top .icon{width:18px;height:18px}
#help h2{font-size:2.1rem;margin-bottom:13px}
#help p{color:#c0bbc9;font-size:.96rem;margin-top:13px}
#help p strong{color:var(--white)}
.help-keys{display:flex;gap:6px;margin:20px 0 15px}
.help-keys kbd{width:39px;height:36px;font-size:1rem;color:#cce4ff;border-color:#587db0;background:#1b263c}
.help-keys kbd:nth-child(2){color:#d4ddff;border-color:#6a76bc;background:#252943}
.help-keys kbd:nth-child(3){color:#e1d2ff;border-color:#8b6ab8;background:#2c223b}
.help-keys kbd:nth-child(4){color:#f3d9ff;border-color:#9c7eb2;background:#33233d}
#help .help-footer{border-top:1px solid #393340;padding-top:16px;font-size:.88rem}
@media(min-width:1650px){.shell{padding-top:48px}.intro{margin-bottom:30px}}
@media(max-width:950px){.mast-inner,.shell{width:calc(100% - 64px)}.level-controls{gap:8px;padding-left:16px}.controlbar{gap:16px}.level-controls>.micro{display:none}.stage{height:clamp(305px,39vw,390px)}}
@media(max-width:700px){.mast-inner,.shell{width:calc(100% - 32px)}.masthead{height:60px}.mast-inner nav{gap:17px;font-size:.82rem}.nav-rule{display:none}.brand span{font-size:1.14rem}.brand img{width:30px;height:30px}.brand{gap:5px}.shell{padding-top:26px}.intro{gap:8px;margin-bottom:20px}h1{font-size:clamp(2.45rem,7.3vw,3rem)}.eyebrow{font-size:.65rem}.intro-copy{font-size:.9rem}.best-box{padding-left:0;gap:7px}.best-icon{width:32px;height:32px}.best-box .micro{font-size:.58rem}.best-icon .icon{width:16px}.trackbar{padding:10px 14px;gap:9px}.cover{width:38px;height:38px}.song h2{font-size:.96rem}.song p{font-size:.77rem}#waveform{width:65px}.track-progress{gap:9px}.time{font-size:.68rem;gap:5px}.hud{inset:13px 12px auto}.metrics{padding:7px 10px;gap:10px}.metrics .combo{min-width:34px;padding-left:9px}.metrics .micro{font-size:.56rem}.metrics strong{font-size:1.09rem}.status-badge{font-size:.58rem}.controlbar{padding:13px;gap:10px}.level-controls{padding-left:10px}.difficulty button{padding:0 8px}.sound-controls{gap:2px}input[type=range]{width:49px}.play{padding:0 12px;font-size:.9rem}.headphone-tip{font-size:.73rem}.tips{padding-top:14px}.keys-tip>.icon{display:none}.console{border-radius:9px}}
@media(max-width:530px){.nav-arcade{display:none!important}.mast-inner nav{gap:17px}.intro{align-items:flex-start}.best-box{margin-top:24px}.best-icon{display:none}.best-box .micro{font-size:.55rem}#best{font-size:.92rem}.stage{height:clamp(285px,42svh,380px);background-size:auto 100%}.track-progress #waveform{display:none}.controlbar{flex-wrap:wrap;justify-content:space-between;gap:12px 4px}.play{min-height:39px}.level-controls{border:0;padding:0}.difficulty button{font-size:.77rem;min-height:28px;padding:0 8px}.sound-controls{margin-left:0}.sound-controls input{width:36px}.icon-button{width:29px;height:32px}.sound-controls .icon{width:17px}.controlbar:has(#restart:not([hidden])) .sound-controls input{display:none}.tips{flex-wrap:wrap;font-size:.76rem;gap:8px 14px}.headphone-tip{font-size:.73rem}.keys-tip{gap:6px}.desktop-hint{display:none}.touch-hint{display:inline}.keys,.keys-tip>b,.space-key,.space-key+span{display:none}.keys-tip>.icon{display:block}.screen-button{bottom:8px;right:9px}.eyebrow{gap:8px}}
@media(max-width:365px){.mast-inner,.shell{width:calc(100% - 24px)}.best-box{display:none}.sound-controls input{display:none}.song h2{font-size:.85rem}.time{gap:3px}.headphone-tip{font-size:.67rem}}
@media(max-height:520px) and (orientation:landscape){.console:fullscreen .trackbar,.console.expanded .trackbar{display:none}.console:fullscreen .controlbar,.console.expanded .controlbar{padding:6px 16px}.console:fullscreen .play,.console.expanded .play{min-height:32px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:0s!important;transition-duration:0s!important}}
.stage{background-size:100% 126%;background-position:center bottom}
.embed-help{display:none}
.embedded .masthead,.embedded .intro,.embedded .headphone-tip{display:none}
.embedded .shell{width:100%;max-width:none;padding:0}
.embedded .tips{padding:9px 10px}
.embedded .embed-help{display:block;color:#c5b5ff;font-size:.81rem}
.embedded .stage{height:clamp(240px,calc(100dvh - 200px),66vw)}
@media(max-width:530px){
  .intro{display:block;position:relative}
  .best-box{position:absolute;right:0;top:0;padding:0;margin:0}
  .best-box>div:last-child{display:flex;align-items:center;gap:6px}
  .best-box .micro{font-size:.53rem;letter-spacing:.045em}
  #best{margin:0;font-size:.73rem}
  h1{margin-top:9px}
  .stage{background-size:215% 126%}
  .sound-controls input{display:none}
  .controlbar{flex-wrap:nowrap}
  .embedded .stage{height:clamp(230px,calc(100dvh - 170px),125vw)}
}
@media(max-width:380px){
  .controlbar{display:grid;grid-template-columns:1fr auto;gap:10px 6px}
  .play-controls{grid-row:1;grid-column:1}
  .sound-controls{grid-row:1;grid-column:2}
  .sound-controls input,.controlbar:has(#restart:not([hidden])) .sound-controls input{display:block;width:52px}
  .level-controls{grid-row:2;grid-column:1 / -1;justify-content:space-between}
  .level-controls>.micro{display:block}
  .difficulty button{padding:0 12px}
  .embedded .stage{height:clamp(210px,calc(100dvh - 218px),125vw)}
}

.console {
  --song-accent: #c9b4ff;
  --accent-rgb: 176, 150, 244;
}
.console[data-song="black-roses"] {
  --song-accent: #ffaec9;
  --accent-rgb: 231, 122, 161;
}
.console[data-song="heights"] {
  --song-accent: #99eee2;
  --accent-rgb: 111, 209, 195;
}
[data-song="black-roses"] .stage {
  background-image: url(assets/roses-stage.webp);
  background-size: 100% 113%;
}
[data-song="heights"] .stage {
  background-image: url(assets/heights-stage.webp);
}
.setlist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #312e3b;
  border-bottom: 1px solid #3c3747;
}
.song-choice {
  --track-color: #c9b4ff;
  display: flex;
  align-items: center;
  position: relative;
  gap: 12px;
  min-width: 0;
  padding: 14px 18px;
  text-align: left;
  background: #15151d;
}
.song-choice[data-song="black-roses"] { --track-color: #ffacc7; }
.song-choice[data-song="heights"] { --track-color: #a0e9dd; }
.song-choice:hover:enabled { background: #201d29; }
.song-choice:focus-visible { z-index: 1; outline-offset: -4px; }
.song-choice[aria-pressed="true"] {
  background: linear-gradient(110deg, rgba(var(--accent-rgb), .14), #1a1822 92%);
  box-shadow: inset 0 -2px 0 var(--track-color);
}
.song-choice img {
  width: 43px;
  height: 43px;
  border: 1px solid #514954;
  border-radius: 4px;
  object-fit: cover;
}
.song-copy { min-width: 0; display: grid; gap: 4px; }
.song-copy strong { font-size: 1rem; line-height: 1.17; font-weight: 600; letter-spacing: -.025em; }
.song-copy small { color: #b6b0bd; font: .7rem var(--mono); white-space: nowrap; }
.selection-mark {
  margin-left: auto;
  align-items: center;
  justify-content: center;
  flex: none;
  gap: 2px;
  display: none;
  height: 14px;
}
.song-choice[aria-pressed="true"] .selection-mark { display: flex; }
.selection-mark i { width: 2px; height: 7px; background: var(--track-color); }
.selection-mark i:nth-child(2) { height: 13px; }
.selection-mark i:nth-child(3) { height: 10px; }
.stage .track-progress {
  position: absolute;
  left: 21px;
  bottom: 17px;
  gap: 10px;
  padding: 4px 7px;
  background: #0808118f;
  border-radius: 4px;
  pointer-events: none;
}
.stage .track-progress #waveform { width: 62px; height: 15px; }
.stage .time { font-size: .68rem; }
.stage-status { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.resonance {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5px 6px;
  width: 133px;
  padding: 8px 9px;
  border-radius: 5px;
  background: #100e1bd9;
  color: #e6deee;
  border: 1px solid #a48bc94f;
  text-align: left;
}
.resonance-head {
  display: flex;
  align-items: center;
  gap: 5px;
  grid-column: span 2;
  font: .65rem var(--mono);
  text-transform: uppercase;
  letter-spacing: .045em;
}
.resonance-head .icon { width: 14px; height: 14px; color: var(--song-accent); }
.resonance-head kbd {
  margin-left: auto;
  height: 15px;
  min-width: 15px;
  padding: 0;
  font-size: .6rem;
}
.charge-track {
  display: block;
  height: 3px;
  border-radius: 4px;
  background: #454053;
  overflow: hidden;
}
.charge-track i { display: block; width: var(--charge, 0%); height: 100%; background: var(--song-accent); }
.resonance-state { color: var(--song-accent); font: .62rem var(--mono); }
[data-bonus="charged"] .resonance, [data-bonus="active"] .resonance {
  border-color: var(--song-accent);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), .28);
}
[data-bonus="charged"] .resonance { background: #282131; }
#multiple {
  color: var(--song-accent);
  font: .65rem var(--mono);
  letter-spacing: 0;
  padding-left: 4px;
}
#settings-open { margin-left: 7px; }
#settings-open span { display: none; }
@media (min-width: 880px) {
  #settings-open { width: auto; gap: 6px; padding: 0 7px; }
  #settings-open .icon { width: 15px; }
  #settings-open span { display: inline; font-size: .79rem; }
}
.play { background: var(--song-accent); }
.play:hover { filter: brightness(1.09); background: var(--song-accent); }
.difficulty button[aria-pressed="true"] {
  color: var(--song-accent);
  background: rgba(var(--accent-rgb), .17);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .45);
}
.result-stats { display: flex; justify-content: center; gap: 19px; margin: 15px 0 21px; }
.result-stats dt { font: .65rem var(--mono); color: #c2bacf; }
.result-stats dd { margin: 2px 0 0; color: var(--song-accent); font: 1.15rem var(--mono); }
#settings { width: min(458px, calc(100% - 32px)); }
#settings-title { font-size: 1.9rem; line-height: 1.15; letter-spacing: -.055em; }
.style-choices { border: 0; margin: 20px 0 0; padding: 0; min-width: 0; }
.style-choices legend, .timing-header label { font-size: .93rem; font-weight: 600; }
.style-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 8px; }
.style-row button {
  display: grid;
  align-content: start;
  gap: 2px;
  text-align: left;
  background: #100f17;
  border: 1px solid #39333f;
  border-radius: 6px;
  padding: 9px 11px;
}
.style-row button[aria-pressed="true"] { border-color: #9c83d6; background: #30243f; }
.style-row button strong { font-size: .92rem; }
.style-row button small { font-size: .75rem; color: #c2bacd; }
.timing-options { border-top: 1px solid #39313e; margin-top: 20px; padding-top: 18px; }
.timing-header, .range-ends, .cal-controls { display: flex; align-items: center; justify-content: space-between; }
#offset { display: block; width: 100%; margin: 6px 0 0; }
#offset-value, .range-ends { font: .7rem var(--mono); color: #bcb3c9; }
.settings-note { margin: 12px 0; color: #bcb5c8; font-size: .85rem; }
.cal-controls { gap: 7px; justify-content: flex-start; }
.cal-controls button, #beat-tap {
  padding: 7px 12px;
  background: #2a2435;
  color: #e3d8f8;
  border: 1px solid #554760;
  border-radius: 5px;
  font-size: .85rem;
  font-weight: 600;
}
.cal-controls button:disabled { opacity: .5; }
#offset-reset { border-color: transparent; background: transparent; }
#beat-tap { width: 100%; margin-top: 12px; min-height: 48px; color: #15101f; background: #bca3f5; }
.cal-status { color: #cfc4e1; font-size: .83rem; }
.cal-status:not(:empty) { margin-top: 10px; }

@media (max-width: 760px) {
  .song-choice { padding: 10px; gap: 7px; }
  .song-choice img { width: 34px; height: 34px; }
  .song-copy strong { font-size: .87rem; }
  .song-copy small { font-size: .63rem; }
  .selection-mark { display: none !important; }
  .resonance { width: 112px; }
  .resonance-head { font-size: .59rem; }
  #settings-open { margin-left: 1px; }
}
@media (max-width: 580px) {
  .song-choice {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 28px 1fr;
    align-content: start;
    gap: 5px;
    padding: 8px 9px 10px;
    background: linear-gradient(150deg,#1c1a24,#121219);
  }
  .song-choice img { width: 28px; height: 28px; }
  .song-copy { align-items: start; align-content: stretch; grid-template-rows: 1fr auto; gap: 3px; }
  .song-copy strong { font-size: .82rem; min-height: 2.26em; }
  .stage .track-progress { left: 8px; bottom: 8px; padding: 2px 4px; }
  .stage .track-progress #waveform { display: none; }
  .stage .time { font-size: .58rem; }
  .resonance { width: 106px; padding: 5px 7px; }
  .stage-status { gap: 5px; }
  .resonance-head kbd { display: none; }
  .result-stats { gap: 12px; }
  .result-stats dt { font-size: .59rem; }
  .console[data-song="black-roses"] .stage { background-size: 185% 113%; }
  .embedded .stage { height: clamp(200px, calc(100dvh - 206px),125vw); }
}
@media (max-width: 455px) {
  .controlbar { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
  .play-controls { grid-column: 1; grid-row: 1; }
  .sound-controls { grid-column: 2; grid-row: 1; }
  .sound-controls input, .controlbar:has(#restart:not([hidden])) .sound-controls input { display: block; width: 45px; }
  .level-controls { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: space-between; border: 0; padding: 0; }
  .level-controls > .micro { display: block; }
  .embedded .stage { height: clamp(184px, calc(100dvh - 245px),125vw); }
}
@media (max-height: 500px) and (orientation: landscape) {
  .console:fullscreen .setlist, .console.expanded .setlist { display: none; }
}
.mix-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  border-bottom: 1px solid #363640;
  background: #13171d;
}
.guitar-part {
  color: var(--song-accent);
  font: .7rem var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.mix-choices { display: flex; gap: 2px; }
.mix-choices button {
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #bdbac6;
  font-size: .79rem;
  line-height: 1.25;
}
.mix-choices button[aria-pressed="true"] {
  color: var(--song-accent);
  border-color: rgba(var(--accent-rgb), .36);
  background: rgba(var(--accent-rgb), .12);
}
.mix-choices button:enabled:hover { color: white; }
.embedded .console[data-song="heights"]:not(:fullscreen):not(.expanded) {
  height: max(410px, calc(100dvh - 43px));
  display: flex;
  flex-direction: column;
}
.embedded .console[data-song="heights"] .stage { flex: 1; min-height: 145px; }
.mix-strip, .setlist, .controlbar { flex-shrink: 0; }
@media (max-width: 455px) and (max-height: 540px) {
  .embedded [data-song="heights"].console .song-choice { grid-template-rows: 1fr; }
  .embedded [data-song="heights"].console .song-choice img { display: none; }
  .embedded .mix-strip { padding: 2px 10px; }
  .embedded [data-song="heights"].console .controlbar { padding: 8px 10px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .console:fullscreen .mix-strip, .console.expanded .mix-strip { display: none; }
}
