:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --bg: #f6f6f8;
  --surface: #fff;
  --soft: #f1f1f5;
  --ink: #1b1b22;
  --sub: #595965;
  --line: #dedee5;
  --accent: #71406a;
  --tint: #f2e9f1;
  --glass: rgb(249 249 252 / .88);
  --paper-mat: #dfdfe5;
  --focus: #375ccd;
  --shadow: 0 12px 34px -23px rgb(29 25 41 / .28);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 12px; }
body { margin: 0; color: var(--ink); background: var(--bg); }
body[data-song="time-machine"] { --accent: #315a89; --tint: #e7eff9; }
a, button, input, select { font: inherit; color: inherit; }
a { text-decoration: none; }
button, select, summary { cursor: pointer; }
button { border: 0; background: none; }
button:disabled { cursor: default; opacity: .35; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px;
}
[hidden] { display: none !important; }
h1,h2,h3,p { margin: 0; }
.shell { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.icon { display: inline-block; flex: none; width: 19px; height: 19px; vertical-align: middle; }
.skip { position: fixed; z-index: 10; left: 12px; top: -8rem; padding: 12px; background: var(--surface); }
.skip:focus { top: 8px; }
::selection { background: #dec4e1; color: #25182e; }
.mast { border-bottom: 1px solid var(--line); background: var(--glass); }
.mast-inner, .mast nav, .brand, .feature-actions, .feature-meta, .shelf-heading, .collection-top, .search, .card-top,
.card-end, .snippet-label, .footer, .song-line, .reader-bar, .transport, .pagination, .view-controls,
.sound-heading, .player-identity, .clock, .console-buttons, .speed, .dialog-top { display: flex; align-items: center; }
.mast-inner { min-height: 64px; justify-content: space-between; gap: 20px; }
.brand { gap: 10px; font-size: 1.16rem; letter-spacing: -.045em; font-weight: 740; }
.mark { display: inline-flex; width: 32px; height: 32px; align-items: flex-start; justify-content: center;
  padding-top: 7px; gap: 1.75px; border-radius: 9px; background: linear-gradient(140deg,#534457,#221e30); }
.mark i { width: 2px; height: 8px; border-radius: 2px; background: #f8f5fc; }
.mark i:nth-child(2),.mark i:nth-child(6) { height: 11px; }
.mark i:nth-child(3),.mark i:nth-child(5) { height: 14px; }
.mark i:nth-child(4) { height: 18px; }
.mast nav { gap: 8px; }
.mast nav a,.mast nav button { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; font-size: .875rem; }
.catalog-nav { font-weight: 650; }
.nav-help { color: var(--sub); }
.mast nav :hover,.back a:hover,.footer a:hover,.credit:hover { text-decoration: underline; text-underline-offset: 4px; }
main { min-height: 68vh; }

/* The jacket, actual score paper and comet on the cover form one composition. */
.feature {
  isolation: isolate; position: relative; overflow: hidden; margin-top: 26px; border-radius: 24px;
  display: grid; grid-template-columns: 46% 54%; align-items: center; min-height: 354px;
  color: #fff; background: radial-gradient(ellipse at 79% 35%,#7a718c,transparent 45%),linear-gradient(115deg,#151c2a,#344457 66%,#63647a);
}
.feature-light { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.feature-light::before { content:""; position: absolute; inset:-16%; background: url("assets/covers/zenzenzense.webp") 50% 51% / cover; filter: blur(25px) saturate(.76); opacity:.66; }
.feature-light::after { content:""; position: absolute; inset:0; background: linear-gradient(90deg,#101722ef 0%,#182135c7 40%,#27233d32 74%); }
.feature-copy { padding: 38px 0 38px clamp(26px,4vw,63px); z-index: 1; }
.feature-album { display:flex; align-items:center; gap:9px; font-size:.84rem; font-weight:600; color:#f3e7f5; }
.sound-lines { display:inline-flex; height:16px; gap:2px; align-items:center; }
.sound-lines i { width:2px; height:7px; background:#efb4d9; border-radius:2px; }
.sound-lines i:nth-child(2){height:14px}.sound-lines i:nth-child(3){height:10px}
.feature h1 { font-size:clamp(3rem,5.6vw,5.35rem); font-weight:770; letter-spacing:-.065em; line-height:1.16; margin:12px 0 4px; }
.feature-artist { font-size:clamp(1rem,1.3vw,1.19rem); font-weight:520; letter-spacing:.085em; color:#e7e9f2; }
.feature-meta { margin-top:17px; gap:9px; flex-wrap:wrap; color:#e0e2ec; font-size:.84rem; }
.feature-meta span+span::before { content:"·"; padding-right:9px; color:#c1c8d9; }
.feature-actions { margin-top:24px; gap:16px; }
.practice-link,.feature-listen,.read-link,.pdf,.listen-link { display:inline-flex; align-items:center; justify-content:center; gap:7px; }
.practice-link,.feature-listen { min-height:44px; font-size:.88rem; font-weight:650; }
.practice-link { border-radius:22px; padding:0 20px; background:#fff; color:#262438; box-shadow:0 2px 14px #10101a24; }
.practice-link:hover { background:#ece9f1; }.feature-listen:hover { text-decoration:underline; }
.feature-listen .icon { width:14px; }
.feature-art { position:relative; display:block; align-self:stretch; min-height:inherit; isolation:isolate; }
.record-sleeve,.paper-back,.paper-slip { position:absolute; border-radius:4px; box-shadow:0 18px 28px -6px #0c0f2299,0 2px 4px #10132255; }
.record-sleeve { width:min(23vw,310px); aspect-ratio:1; right:30%; top:50%;
  transform: translateY(-52%) rotate(-8deg); outline:1px solid #ffffff38; outline-offset:-1px; object-fit:cover; }
.paper-back { width:min(20vw,248px); height:78%; top:11%; right:11%; background:white; overflow:hidden; transform:rotate(11deg); }
.paper-back img { width:100%; display:block; }
.paper-slip { width:clamp(165px,17vw,224px); padding:14px 12px; top:71%; right:9%; background:#fffdfa; transform:rotate(5deg); }
.paper-slip::before { content:""; position:absolute; left:9px; right:9px; height:1px; background:#d8d4d0; top:7px; }
.paper-slip img { display:block; width:100%; }
.feature-art:focus-visible { outline-offset:-5px; }
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  .record-sleeve { transition:transform .32s ease-out; }
  .feature-art:hover .record-sleeve { transform:translateY(-53%) rotate(-6deg); }
  .card { transition:border-color .18s ease,box-shadow .18s ease; }
}
.collection { margin-top:32px; }
.collection-top { justify-content:space-between; gap:16px; margin-bottom:15px; }
.shelf-heading { gap:12px; }
.shelf-heading h2 { font-size:clamp(1.5rem,2.3vw,2rem); line-height:1.25; letter-spacing:-.055em; }
.shelf-heading>span { font-size:.83rem; color:var(--sub); white-space:nowrap; }
.search { gap:8px; padding:0 13px; min-height:44px; background:var(--surface); border:1px solid var(--line); border-radius:12px; color:var(--sub); }
.search .icon { width:16px; } .search input { border:0; width:150px; min-width:0; background:transparent; font-size:.84rem; }
.search input:focus-visible { outline:0; } .search:focus-within { outline:2px solid var(--focus); outline-offset:2px; }
.cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.card { position:relative; border-radius:19px; border:1px solid var(--line); background:var(--surface); padding:20px 22px 12px; box-shadow:var(--shadow); min-width:0; }
.card:hover,.card:focus-within { border-color:#ab99b2; box-shadow:0 8px 22px #30253b12; }
.card-top { gap:17px; }
.art { width:76px; height:76px; object-fit:cover; border-radius:8px; box-shadow:0 3px 6px #1010201c; }
.card-info { min-width:0; }.card h3 { font-weight:720; font-size:clamp(1.45rem,2.15vw,1.95rem); letter-spacing:-.045em; line-height:1.18; margin:2px 0; }
.card a.card-link::after { content:""; position:absolute; inset:0; border-radius:19px; z-index:1; }
.card-link:focus-visible { outline:0; }.card-link:focus-visible::after { outline:3px solid var(--focus); }
.card-info p { color:var(--sub); font-size:.86rem; line-height:1.45; }
.keys { display:inline-block; font-size:.72rem; font-weight:650; padding:2px 7px; border:1px solid var(--line); border-radius:5px; color:var(--sub); white-space:nowrap; }
.listen-link { margin-left:auto; position:relative; z-index:2; width:44px; height:44px; flex:none; border-radius:50%; background:var(--soft); color:var(--ink); }
.listen-link:hover { background:var(--tint); }.listen-link .icon { width:16px; }
.snippet { border-top:1px solid var(--line); margin-top:15px; padding-top:10px; }
.snippet-label { justify-content:space-between; color:var(--sub); font-size:.72rem; }
.snippet img { width:100%; display:block; height:52px; object-fit:contain; mix-blend-mode:multiply; }
.card-end { justify-content:space-between; gap:12px; font-size:.81rem; color:var(--sub); }
.card-end>span { display:inline-flex; align-items:center; gap:7px; }
.card-end i { width:3px;height:3px;background:currentColor;border-radius:50%; }.read-link { color:var(--ink);font-weight:600;min-height:32px; }.read-link .icon { width:15px; }
.empty { grid-column:1/-1; padding:35px; text-align:center; background:var(--surface); border-radius:14px; }.empty button { min-height:44px; text-decoration:underline; }
.footer { flex-wrap:wrap; justify-content:space-between; gap:8px 16px; margin-top:30px; border-top:1px solid var(--line); color:var(--sub); padding:12px 0 20px; font-size:.75rem; }
.footer a { display:inline-flex; align-items:center; min-height:44px; }
.footer span span { margin:0 4px; }
.back { margin-top:12px; font-size:.83rem; color:var(--sub); }.back a { display:inline-flex; align-items:center; min-height:32px; }
.song-head { margin:2px 0 17px; }
.song-line { gap:12px; flex-wrap:wrap; }
.song-description h1 { font-size:clamp(1.8rem,3vw,2.75rem); font-weight:740; letter-spacing:-.055em; line-height:1.11; }
.song-description h1:focus { outline:0; }
.song-description p { color:var(--sub); font-size:.85rem; margin-top:4px; }.song-description p span { margin-left:3px; }
.practice { display:grid; grid-template-columns:minmax(0,1fr) clamp(250px,23vw,310px); align-items:start; gap:20px; }
.reader,.sound { min-width:0; background:var(--surface); border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow); }
.reader { overflow:clip; }
.reader-bar { position:sticky; top:0; z-index:3; gap:12px; padding:6px 10px; min-height:55px; justify-content:space-between; border-bottom:1px solid var(--line); background:var(--glass); backdrop-filter:blur(14px); }
.transport,.view-controls,.pagination { gap:3px; }
.reader-bar button { min-width:44px; min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:5px; border-radius:9px; padding:0 8px; font-size:.83rem; }
.reader-bar button:hover:not(:disabled),.console-buttons button:hover,.pdf:hover { background:var(--tint); }
.reader-bar #follow { font-weight:650; }
#follow .icon {display:none}
#follow[aria-pressed="true"],#zoom[aria-pressed="true"],#fit[aria-pressed="true"] { color:var(--accent); background:var(--tint); }
#follow[aria-pressed="true"]::before { content:"✓"; }
#bar-position,#page-num { color:var(--sub); font-size:.78rem; white-space:nowrap; font-variant-numeric:tabular-nums; }
#bar-position { padding-left:7px; }
.pagination button { font-size:1.5rem; line-height:1; }
.sheet-frame { background:var(--paper-mat); height:clamp(340px,calc(100vh - 245px),1050px); height:clamp(340px,calc(100dvh - 245px),1050px);
  container-type:size; overflow:auto; overflow-anchor:none; scrollbar-width:thin; }
.sheet-paper { width:max(100%,740px); position:relative; aspect-ratio:1489/2105; margin-inline:auto; line-height:0; background:white; box-shadow:0 2px 12px #26202e28; cursor:crosshair; }
.sheet-paper img { display:block; width:100%; height:auto; }
.sheet-frame.zoomed .sheet-paper { width:max(142%,850px); }
.sheet-frame.fit-page .sheet-paper { width:min(100%,calc(100cqh * .70736)); }
#note-cursor { position:absolute; pointer-events:none; z-index:1; border-radius:4px; background:#f9bd4563; outline:1.4px solid #9f5700; box-shadow:inset 0 -3px #935100; }
.sound { padding:18px; position:sticky; top:12px; }
.sound-heading { justify-content:space-between; margin-bottom:16px; }.sound-heading h2 { font-size:1.15rem; letter-spacing:-.035em; }.sound-heading>.icon { color:var(--sub); }
.player-identity { gap:11px; margin-bottom:8px; }.player-identity img { width:47px; height:47px; border-radius:7px; }
.player-identity strong,.player-identity span { display:block; }.player-identity strong { font-size:1rem; line-height:1.3; }.player-identity span { color:var(--sub); font-size:.75rem; margin-top:3px; }
audio { width:100%; } .console { margin-bottom:16px; }
#seek { --progress:0%; cursor:pointer; display:block; appearance:none; width:100%; height:44px; margin:0; background:transparent; }
#seek::-webkit-slider-runnable-track { height:4px; border-radius:4px; background:linear-gradient(to right,var(--accent) var(--progress),var(--line) var(--progress)); }
#seek::-moz-range-track { height:4px; border-radius:4px; background:var(--line); }#seek::-moz-range-progress {height:4px;background:var(--accent);}
#seek::-webkit-slider-thumb { appearance:none; height:14px; width:14px; margin-top:-5px; border:2px solid var(--surface); border-radius:50%; background:var(--accent); box-shadow:0 0 0 1px var(--accent); }
#seek::-moz-range-thumb { width:12px; height:12px; background:var(--accent); border-radius:50%; }
.clock { justify-content:space-between; font-size:.72rem; font-variant-numeric:tabular-nums; color:var(--sub); }
.console-buttons { justify-content:center; gap:15px; margin-top:4px; }
.console-buttons button { width:44px; height:44px; border-radius:50%; font-size:.87rem; font-weight:650; }.console-buttons button span { font-size:.7rem; }
.console-buttons #audio-play { width:48px; height:48px; background:var(--ink); color:var(--surface); }
.variants { border:0; margin:0; padding:0; min-width:0; }
.variants legend,.speed,.details dt { color:var(--sub); font-size:.82rem; }
.variants legend { margin-bottom:6px; padding:0; }
.variants>div { display:flex; gap:2px; background:var(--soft); padding:3px; border-radius:10px; }
.variants a { flex:1; min-height:44px; display:inline-flex; align-items:center; justify-content:center; text-align:center; border-radius:8px; padding:3px 5px; font-size:.82rem; }
.variants a[aria-current] { background:var(--surface); box-shadow:0 1px 5px #1112; font-weight:660; color:var(--ink); outline:1px solid var(--line); }
.speed { justify-content:space-between; gap:10px; margin-top:7px; }
.speed select { background:var(--surface); color:var(--ink); min-height:44px; border:0; font-weight:650; }
.details { border-block:1px solid var(--line); padding:10px 0; margin:2px 0; }
.details div { display:flex; gap:7px; justify-content:space-between; line-height:1.8; }.details dd { margin:0; font-size:.82rem; text-align:right; }
.notes { font-size:.82rem; }.notes summary { min-height:44px; align-content:center; font-weight:600; }.notes p { color:var(--sub); line-height:1.7; }
.credit { display:inline-block; color:var(--accent); padding:8px 0; }.pdf { width:100%; border-radius:9px; min-height:44px; background:var(--soft); font-size:.85rem; font-weight:640; }
.pdf .icon { width:16px; }.play-error { color:#a83429; font-size:.8rem; }
dialog { background:var(--surface); color:var(--ink); border:1px solid var(--line); width:min(480px,calc(100% - 30px)); max-height:86dvh; border-radius:20px; padding:24px; box-shadow:0 22px 80px #14132155; }
dialog::backdrop { background:#16152186; }.dialog-top { justify-content:space-between; }.dialog-top h2 { font-size:1.45rem; }
.dialog-top button { height:44px; width:44px; font-size:1.5rem; border-radius:50%; background:var(--soft); }
.guide-list { line-height:1.65; margin:0; }.guide-list dt { font-weight:650; margin-top:16px; }.guide-list dd { margin:3px 0 0; color:var(--sub); font-size:.9rem; }
.studio-full { margin-top:16px; }
.notes audio { display:block; height:42px; margin-bottom:8px; }

@media(max-width:980px) {
  .shell { width:calc(100% - 44px); }.feature { min-height:318px; }.record-sleeve { width:26vw; }
  .practice { grid-template-columns:minmax(0,1fr) 244px; gap:12px; }.sound { padding:14px; }.reader-bar{gap:2px;padding-inline:5px;flex-wrap:wrap}.reader-bar button{padding:0 5px}.view-controls,.transport,.pagination { gap:0; }
}
@media(max-width:720px) {
  .shell { width:calc(100% - 32px); }.mast-inner { min-height:55px; }.mast nav { gap:0; }.mast nav a,.mast nav button { padding-inline:9px; }
  .feature { min-height:288px; margin-top:16px; border-radius:17px; grid-template-columns:48% 52%; }
  .feature-copy { padding:25px 0 25px 23px; }.feature h1 { font-size:clamp(2.35rem,7.3vw,3.1rem); }.feature-album { font-size:.72rem; }
  .feature-actions { gap:8px; flex-wrap:wrap; margin-top:13px; }.practice-link { padding-inline:13px; }.feature-meta { margin-top:10px; }
  .record-sleeve { width:64%; right:28%; }.paper-back { width:53%; height:58%; top:24%; right:10%; }.paper-slip { width:53%; top:65%; right:6%; padding:10px 7px; }
  .collection { margin-top:22px; }.collection-top { margin-bottom:12px; gap:10px; }.shelf-heading { gap:7px; }.search { padding-inline:9px; }.search input { width:108px; }
  .cards { grid-template-columns:1fr; gap:13px; }.card { padding:15px 16px 8px; border-radius:16px; }.art { width:64px; height:64px; }.card-top { gap:12px; }.snippet { margin-top:12px; }.snippet img { height:44px; }
  .practice { display:flex; flex-direction:column; gap:14px; }.reader,.sound { width:100%; }.sound { position:static; }.sound-heading { margin-bottom:12px; }
  .sheet-frame { height:clamp(330px,65dvh,650px); }.song-head { margin-bottom:12px; }.back { margin-top:6px; }.footer { margin-top:22px; }
  .sheet-paper {width:max(100%,620px)}
  .variants a { min-height:44px; }.reader-bar { justify-content:space-between; }.reader-bar #fit span {display:none}.reader-bar .view-controls {margin-left:auto;}
}
@media(max-width:480px) {
  .feature { grid-template-columns:58% 42%; min-height:242px; }.feature-copy { padding:22px 0 22px 18px; }.feature h1 { font-size:2.6rem; }
  .feature-artist { font-size:.87rem; }.feature-meta { gap:5px; font-size:.74rem; }.feature-meta span+span::before { padding-right:5px; }
  .feature-album { gap:5px; }.sound-lines {display:none}.feature-listen,.practice-link { font-size:.78rem; }
  .record-sleeve { width:89%; right:10%; top:46%; }.paper-back { width:71%; right:2%; height:54%; top:22%; }.paper-slip { width:96%; top:63%; right:3%; padding-block:11px; }
  .reader-bar { gap:0; }.reader-bar .transport {flex:1 1 auto}.reader-bar button { min-width:44px; }#bar-position { padding-left:3px; }.pagination { margin-left:auto; }
  #follow .icon {display:block} #follow span,.page-word {position:absolute;clip-path:inset(100%);width:1px;height:1px;overflow:hidden} #follow[aria-pressed="true"]::before {content:none}
  .reader-bar .view-controls { margin-left:0; }.collection-top { flex-wrap:wrap; }.search { margin-left:auto; }.card-info p { font-size:.79rem; }
}
@media(max-width:360px) {
  .shell { width:calc(100% - 20px); }.feature-copy {padding-left:14px}.feature h1 {font-size:2.25rem}.feature-album{font-size:.68rem}.feature-actions{gap:3px}.practice-link{padding-inline:10px}.mast nav a,.mast nav button{padding-inline:7px}.search input { width:90px; }
}
@media(prefers-color-scheme:dark) {
  :root { --bg:#151519;--surface:#222228;--soft:#303038;--ink:#f4f3f7;--sub:#b8b8c3;--line:#44444f;--accent:#efb3de;--tint:#3e3040;--glass:rgb(32 32 38 / .90);--paper-mat:#36363d;--focus:#a9bcff;--shadow:none; }
  body[data-song="time-machine"] { --accent:#adcffa;--tint:#2a3544; }
  .snippet img { filter:invert(1); mix-blend-mode:screen; }.paper-slip img{filter:none}.play-error{color:#ffb6a9}.mark{outline:1px solid var(--line);}
}
@media(prefers-contrast:more) { :root {--line:var(--sub)} #note-cursor {outline:2px solid #2e1400} }
@media(prefers-reduced-transparency:reduce) { .reader-bar,.mast { background:var(--surface); backdrop-filter:none; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after {scroll-behavior:auto!important;transition:none!important;animation:none!important;} }
@media(forced-colors:active) { #note-cursor {outline:3px solid Highlight;background:transparent} #follow[aria-pressed="true"],.variants [aria-current]{border:2px solid Highlight} }
