:root { color-scheme:dark; font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue",system-ui,sans-serif; color:#fff; background:#000; font-synthesis:none; }
* { box-sizing:border-box; }
html,body { margin:0; width:100%; height:100%; overflow:clip; }
body { display:grid; place-items:center; -webkit-font-smoothing:antialiased; }
button,a,summary { -webkit-tap-highlight-color:transparent; }
button { color:inherit; font:inherit; background:none; border:1px solid #ffffff48; cursor:pointer; }
button:disabled { opacity:.25; cursor:default; }
button:hover:not(:disabled) { background:#ffffff0a; }
button:focus-visible,a:focus-visible,summary:focus-visible { outline:1px solid #fff; outline-offset:3px; }
.stage { width:min(100vw,100dvh); height:min(100vw,100dvh); position:relative; min-width:0; min-height:0; }
.library { height:100%; padding:clamp(22px,5.5vmin,42px); display:flex; flex-direction:column; gap:clamp(14px,4vmin,28px); }
.brand { font-size:11px; font-weight:600; letter-spacing:.28em; }
h1 { margin:12px 0 0; font-size:clamp(24px,5vmin,36px); font-weight:200; letter-spacing:-.025em; }
.piece-list { flex:1; min-height:0; display:flex; flex-direction:column; justify-content:center; }
.piece { width:100%; min-height:92px; padding:16px 18px; border-radius:16px; border-color:#ffffffa0; display:flex; justify-content:space-between; align-items:center; gap:12px; text-align:left; }
.piece strong { display:block; font-weight:300; font-size:clamp(21px,4.5vmin,29px); }
.piece small { display:block; font-size:11px; color:#aaa; margin-top:8px; letter-spacing:.025em; }
.selected { font-size:15px; font-weight:300; }
.setup-tempo { text-align:center; }
.setup-tempo>p { color:#aaa; font-size:12px; margin:0 0 12px; }
.tempo-editor { display:flex; align-items:center; justify-content:space-between; gap:24px; max-width:330px; margin:0 auto; }
.adjust { width:42px; height:42px; border-radius:50%; font-size:24px; font-weight:200; }
.tempo-editor>div { min-width:100px; text-align:center; }
.tempo-editor output { display:block; font-size:48px; font-weight:200; font-variant-numeric:tabular-nums; line-height:1; }
.tempo-editor span { display:block; font-size:9px; letter-spacing:.16em; color:#aaa; margin-top:6px; }
.open-score { width:100%; min-height:48px; border-radius:12px; font-size:11px; letter-spacing:.16em; display:flex; align-items:center; justify-content:center; gap:12px; }
.open-score span { font-size:21px; }
.load-status { font-size:12px; color:#bbb; text-align:center; margin:0; }
.player { height:100%; padding:8px 10px 6px; display:grid; grid-template-rows:minmax(0,1fr) minmax(58px,17%) 34px; gap:5px; }
.player.no-preview { grid-template-rows:minmax(0,1fr) 34px; }
.reader { min-width:0; min-height:0; outline:none; position:relative; }
.reader:focus-visible { outline:1px solid #ffffff35; outline-offset:0; }
.notation { width:100%; height:100%; min-width:0; min-height:0; color:#fff; fill:currentColor; }
.notation>svg { display:block; width:100%; height:100%; color:white; fill:currentColor; overflow:visible; }
.notation .measure { opacity:.87; transition:opacity 100ms; }
.notation .measure.current { opacity:1; }
.notation .placeholder { visibility:hidden; }
.notation .mNum,.notation .mNum text,.notation .mNum tspan { font-family:system-ui,sans-serif; font-size:120px; font-style:normal; }
.notation path,.notation polygon,.notation polyline,.notation ellipse,.notation rect { stroke:currentColor; }
.notation .bar-indicator { fill:none; stroke:currentColor; stroke-width:24; opacity:.65; }
.preview { min-width:0; min-height:0; position:relative; opacity:.55; border-top:1px solid #ffffff20; padding:6px 0 0 16px; }
.next-label { position:absolute; top:6px; left:0; font-size:7px; font-weight:500; letter-spacing:.07em; writing-mode:vertical-rl; }
.transport { display:flex; align-items:center; justify-content:center; gap:22px; position:relative; min-width:0; }
.icon-button { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; border-color:transparent; padding:6px; }
.icon-button svg { width:100%; height:100%; stroke:currentColor; stroke-width:1.5; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.play { border-color:#ffffff75; }
.play[aria-pressed="true"] { background:#ffffff12; }
.menu-button { position:absolute; right:5px; }
.menu-button circle { fill:currentColor; stroke:none; }
dialog { width:min(86vw,380px); max-height:88dvh; overflow:auto; color:#fff; background:#000; border:1px solid #ffffff70; border-radius:20px; padding:24px; }
dialog::backdrop { background:#000e; }
dialog h2 { font-size:24px; font-weight:300; margin:0; letter-spacing:-.025em; }
.composer { font-size:11px; color:#aaa; margin:6px 0 26px; }
dialog .tempo-editor { margin-bottom:24px; }
dialog .tempo-editor output { font-size:42px; }
.menu-row { width:100%; min-height:40px; border:0; border-top:1px solid #ffffff30; display:flex; align-items:center; justify-content:space-between; font-size:12px; padding:8px 0; }
.menu-row span { color:#aaa; font-size:11px; }
.credits { border-top:1px solid #ffffff30; font-size:10px; color:#aaa; padding-top:12px; line-height:1.6; }
.credits summary { cursor:pointer; }
.credits a { color:#fff; text-underline-offset:3px; }
.done { margin-top:20px; min-height:38px; width:100%; border-radius:10px; font-size:10px; letter-spacing:.14em; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
[hidden] { display:none!important; }
@media(max-height:420px),(max-width:420px) { .library { gap:12px; padding:20px; } h1 { font-size:24px; margin-top:8px; } .piece { min-height:68px; padding:12px; } .piece small { font-size:9px; } .tempo-editor output { font-size:36px; } .setup-tempo>p { font-size:10px; margin-bottom:8px; } .open-score { min-height:40px; } .player { padding:5px 7px; gap:3px; grid-template-rows:minmax(0,1fr) minmax(44px,17%) 30px; } .player.no-preview { grid-template-rows:minmax(0,1fr) 30px; } .icon-button { width:28px; height:28px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none!important; } }
