:root {
  color-scheme: dark;
  --background:#10101a;
  --panel:#191926;
  --raised:#202032;
  --line:#2e2e43;
  --muted:#b4b1c9;
  --text:#f7f5ff;
  --accent:#b9a2ff;
  --accent-deep:#c7b5ff;
  --purple-ink:#1d123d;
  --mint:#89e1cb;
  --gold:#f2ca84;
  --radius:22px;
  font-family: "Segoe UI", "Aptos", system-ui, sans-serif;
  -webkit-font-smoothing:antialiased;
  font-synthesis:none;
}

*, *::before, *::after { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; background:radial-gradient(ellipse at 42% 0%,#181629 0%,transparent 42%),var(--background); color:var(--text); min-height:100vh; display:flex; flex-direction:column; }
button, select, input { font:inherit; }
button { cursor:pointer; }
button:disabled { cursor:default; }
button, a, input, select { -webkit-tap-highlight-color:transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline:3px solid #d5c2ff; outline-offset:3px; }
h1[tabindex]:focus, main[tabindex]:focus { outline:none; }
h1, h2, h3, p { margin:0; }
.container { width:min(1224px,calc(100% - 72px)); margin-inline:auto; }
.main { flex:1; padding-block:34px 46px; }
.icon { display:inline-grid; place-items:center; font-family:"Segoe UI Symbol","Noto Sans Symbols 2",system-ui,sans-serif; font-size:1.18em; line-height:1; min-width:1em; font-weight:550; }
.skip-link { position:fixed; z-index:5; top:10px; left:10px; padding:10px 16px; background:#fff; color:#201738; border-radius:8px; transform:translateY(-160%); }
.skip-link:focus { transform:none; }
.top { border-bottom:1px solid #29283a; background:#14141f; }
.top-inner { height:76px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:16px; }
.brand { color:var(--text); border:0; background:none; padding:0; display:flex; align-items:center; gap:12px; text-align:left; justify-self:start; font-size:1.02rem; font-weight:750; letter-spacing:-.03em; }
.brand-mark { width:43px; height:43px; border-radius:13px; display:grid; place-items:center; font-family:"Segoe UI Symbol",sans-serif; font-size:1.45rem; color:#e4d8ff; background:linear-gradient(145deg,#6645c5,#412682); border:1px solid #9874ee7a; box-shadow:inset 0 1px #fff3; }
.brand b { color:#cebaff; font-weight:750; }
.brand small { display:block; font-size:.75rem; font-weight:550; margin-top:1px; color:var(--muted); letter-spacing:.01em; }
.navigation { display:flex; gap:6px; background:#1b1b2a; padding:4px; border:1px solid #2b2b40; border-radius:13px; }
.navigation button, .segmented button { color:var(--muted); background:none; border:1px solid transparent; padding:7px 17px; border-radius:9px; font-size:.9rem; font-weight:650; white-space:nowrap; }
.navigation button:hover, .segmented button:hover { color:var(--text); }
.navigation button[aria-current], .segmented button[aria-pressed=true] { border-color:#4a3e68; background:#302746; color:#dfd1ff; }
.top-tools { justify-self:end; }
.sound { display:flex; align-items:center; gap:7px; color:var(--muted); background:#1a1a29; border:1px solid #303047; padding:8px 11px; border-radius:10px; font-size:.84rem; font-weight:650; }
.sound:hover { color:var(--text); border-color:#5c4d7b; }
.home-top { display:grid; grid-template-columns:minmax(0,2.7fr) minmax(255px,1fr); gap:18px; }
.panel { background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); }
.hero { position:relative; isolation:isolate; min-height:350px; overflow:hidden; border:1px solid #514079; background:radial-gradient(ellipse at 84% 47%,#492b88 0%,transparent 53%),linear-gradient(115deg,#251b3f 0%,#231a3a 49%,#1b142c 100%); border-radius:25px; padding:37px 38px; display:flex; align-items:center; }
.hero::before, .hero::after { content:""; position:absolute; z-index:-1; pointer-events:none; }
.hero::before { width:383px; height:383px; right:22px; top:50%; transform:translateY(-50%); border:1px solid #b797ff19; border-radius:50%; box-shadow:0 0 0 31px #b797ff09,0 0 0 64px #b797ff08,inset 0 0 0 29px #b797ff09; }
.hero::after { inset:0; background:linear-gradient(90deg,#231936 5%,#23193600 75%); z-index:-1; }
#cover { position:absolute; width:59%; height:auto; right:-3%; top:50%; transform:translateY(-50%); z-index:-1; pointer-events:none; }
.hero-content { position:relative; max-width:32rem; }
.eyebrow { color:#d5c3ff; font-size:.79rem; letter-spacing:.12em; font-weight:750; text-transform:uppercase; }
.eyebrow > span { display:inline-block; background:#bc9eff; width:7px; height:7px; border-radius:50%; vertical-align:2px; margin-right:6px; box-shadow:0 0 12px #bc9eff8a; }
.credit { color:#ded3f1; font-size:.9rem; margin-top:5px; }
.hero h1 { font-size:clamp(3.2rem,6.1vw,5.25rem); letter-spacing:-.075em; line-height:.94; margin:14px 0 18px; font-weight:770; }
.hero h1 em { font-style:normal; color:var(--accent); }
.hero-description { color:#ddd6ed; font-size:1.05rem; line-height:1.55; max-width:26rem; text-wrap:pretty; }
.dedication { color:#ddd6ed; font-size:.91rem; line-height:1.48; margin-top:10px; }
.button-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.hero .button-row { margin-top:23px; }
.primary, .secondary, .quiet { border:1px solid transparent; border-radius:11px; padding:10px 15px; min-height:43px; gap:8px; display:inline-flex; align-items:center; justify-content:center; font-weight:700; line-height:1.25; font-size:.94rem; text-align:center; }
.primary { color:var(--purple-ink); background:var(--accent); border-color:#cbb6ff; box-shadow:inset 0 1px #f4eaff60; }
.primary:hover:not(:disabled) { background:#d3c0ff; }
.secondary { color:#f0e9ff; background:#252437; border-color:#434058; }
.hero .secondary { background:#2e2348; border-color:#6f5c96; }
.secondary:hover:not(:disabled) { background:#38304c; border-color:#8f75ac; }
.quiet { color:#d5c4fa; background:none; }
.quiet:hover:not(:disabled) { background:#2b2540; }
.primary:disabled, .secondary:disabled { opacity:.48; }
.full { width:100%; }
.dashboard { padding:21px 19px 19px; display:flex; flex-direction:column; gap:15px; }
.dashboard-title { display:flex; align-items:center; gap:10px; }
.dashboard h2 { font-size:1.18rem; letter-spacing:-.025em; }
.dashboard-title p { color:var(--muted); font-size:.86rem; margin-top:4px; }
.topic-icon { width:43px; height:43px; flex:none; border-radius:12px; display:inline-grid; place-items:center; background:var(--tile); color:var(--tone); border:1px solid color-mix(in srgb,var(--tone) 21%,transparent); }
.topic-icon .icon { font-size:1.38rem; }
.tone-violet { --tone:#c2aaff; --tile:#342751; }
.tone-mint { --tone:#91e0ce; --tile:#203b3a; }
.tone-blue { --tone:#a9c5ff; --tile:#263657; }
.tone-pink { --tone:#f7aad2; --tile:#432a42; }
.tone-gold { --tone:#f3cb85; --tile:#423522; }
.record { background:#202032; border:1px solid #34334b; padding:14px 14px 11px; border-radius:13px; }
.record > span { color:var(--muted); font-size:.88rem; font-weight:590; }
.record strong { display:block; font-size:2.13rem; font-weight:760; line-height:1.22; letter-spacing:-.045em; margin-top:2px; color:#ded1ff; font-variant-numeric:tabular-nums; }
.record small { font-size:.84rem; letter-spacing:0; color:var(--muted); font-weight:600; }
.mini-stats { display:grid; grid-template-columns:1fr 1fr; }
.mini-stats > div { display:grid; gap:3px; padding:0 10px 1px 5px; }
.mini-stats > div + div { border-left:1px solid #37354b; padding:0 0 1px 13px; }
.mini-stats strong { font-size:1.42rem; }
.mini-stats span { font-size:.82rem; color:var(--muted); line-height:1.35; }
.dashboard .full { margin-top:auto; }
.level-section { margin-top:31px; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:15px; }
.section-heading h2 { font-size:clamp(1.45rem,3vw,1.9rem); letter-spacing:-.045em; }
.section-heading p { color:var(--muted); margin-top:3px; font-size:.93rem; }
.segmented { display:flex; padding:4px; gap:4px; background:#1b1b2a; border:1px solid #2e2d43; border-radius:13px; }
.segmented button { padding:7px 13px; }
.segmented .icon { margin-right:3px; }
.level-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.level-card { color:var(--text); background:var(--panel); border:1px solid var(--line); border-radius:17px; padding:14px 16px 16px; display:flex; flex-direction:column; align-items:stretch; gap:7px; text-align:left; min-height:137px; transition:background .16s,border-color .16s,transform .16s; }
.level-card:hover { background:#202033; border-color:color-mix(in srgb,var(--tone) 50%,#34344a); transform:translateY(-2px); }
.card-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:2px; gap:8px; }
.level-card .topic-icon { width:38px; height:38px; border-radius:10px; }
.level-number { font-size:.79rem; color:var(--tone); font-weight:650; }
.level-card strong { font-size:1.09rem; font-weight:750; line-height:1.16; letter-spacing:-.017em; }
.card-description { color:var(--muted); font-size:.91rem; line-height:1.4; }
.card-progress { display:flex; flex-wrap:wrap; align-items:center; gap:5px 9px; margin-top:auto; padding-top:5px; }
.progress-label { display:inline-flex; align-items:center; gap:5px; font-size:.83rem; color:#d5c9e8; font-weight:650; }
.progress-label > span { width:1.22rem; height:1.22rem; display:inline-grid; place-items:center; border-radius:50%; background:#312a45; color:#e0ceff; line-height:1; }
.progress-label.passed { color:var(--mint); }
.progress-label.passed > span { color:var(--mint); background:#24443e; }
.progress-best { font-size:.82rem; color:var(--muted); }
.rank-progress { padding-block:0 12px; }
.footer { display:flex; justify-content:space-between; gap:12px; padding-block:17px 23px; border-top:1px solid #292839; color:var(--muted); font-size:.83rem; }
.notice, .challenge-banner { padding:15px 18px; border-radius:14px; border:1px solid #614e89; background:#27203f; margin-bottom:17px; }
.challenge-banner { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.challenge-banner strong { margin-left:6px; }
.challenge-banner div > span:last-child { display:block; margin-top:4px; color:#e1d7f0; line-height:1.45; }
dialog { padding:0; border:1px solid #554b70; border-radius:22px; width:min(520px,calc(100% - 28px)); color:var(--text); background:#1c1b2c; box-shadow:0 26px 90px #070510b0; max-height:calc(100% - 28px); }
dialog::backdrop { background:#090810bd; backdrop-filter:blur(4px); }
#modal-content { position:relative; padding:25px; }
#modal-content .topic-icon { margin-bottom:13px; }
#modal-content h2 { letter-spacing:-.036em; font-size:clamp(1.42rem,4vw,1.78rem); margin:0 39px 9px 0; }
#modal-content p { color:#d4cee7; margin-block:8px 15px; line-height:1.5; }
#modal-content #copy-status:empty, #modal-content #profile-copy-status:empty, .score-status:empty { display:none; }
#profile-form { margin-top:16px; }
.dialog-close { position:absolute; display:grid; place-items:center; top:14px; right:14px; color:#e0d7ee; background:#242238; width:39px; height:39px; border-radius:9px; border:1px solid #453d58; }
.dialog-close:hover { background:#37304c; }
.modal-facts { display:flex; align-items:center; gap:8px; margin-block:11px; flex-wrap:wrap; }
.modal-facts span { background:#33294e; color:#e2d4ff; border:1px solid #4e3e6e; padding:5px 10px; border-radius:8px; font-size:.85rem; font-weight:650; }
.field { display:block; font-weight:650; color:#ede7fa; font-size:.9rem; margin-bottom:15px; }
.field > span { color:var(--muted); font-weight:500; }
.field input, .field select { display:block; width:100%; margin-top:7px; min-height:45px; border-radius:10px; background:#131323; color:var(--text); border:1px solid #49425e; padding:8px 12px; }
.field select { appearance:none; padding-right:34px; background-image:linear-gradient(45deg,transparent 50%,#d1bdef 50%),linear-gradient(135deg,#d1bdef 50%,transparent 50%); background-position:calc(100% - 18px) 50%,calc(100% - 12px) 50%; background-size:6px 6px; background-repeat:no-repeat; }
.field input::placeholder { color:#a49bb9; }
.game-bar, .round-status, .question, .time-track, .result, .review { max-width:930px; margin-inline:auto; }
.game-bar { display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--muted); font-size:.94rem; margin-bottom:9px; }
.game-bar .quiet { padding-inline:0 8px; }
.round-status { padding:14px 20px; display:flex; justify-content:space-between; align-items:center; gap:21px; border-radius:16px; }
.round-status > div:not(.question-progress) { flex-shrink:0; }
.round-status span { display:block; color:var(--muted); font-size:.81rem; font-weight:650; }
.round-status .icon { display:inline-grid; color:var(--accent); }
.round-status strong { font-size:1.19rem; font-variant-numeric:tabular-nums; }
.round-counter small { color:var(--muted); font-size:.82rem; }
.question-progress { flex:1; height:6px; border-radius:10px; overflow:hidden; background:#313047; }
.question-progress div, .time-track div { height:100%; background:#b9a2ff; }
.clock.urgent strong { color:#ffb1ba; }
.time-track { margin-top:8px; height:4px; border-radius:4px; background:#29263a; overflow:hidden; }
.question { padding:24px 28px; margin-top:16px; }
.question h1 { font-size:clamp(1.5rem,4.2vw,2.14rem); letter-spacing:-.038em; font-weight:740; line-height:1.2; margin-bottom:19px; text-wrap:pretty; }
.question-category { margin-bottom:9px; font-weight:720; font-size:.91rem; color:var(--tone); }
.question-category .icon { margin-right:4px; }
.notation { background:#f3efff; border:1px solid #d9cdef; border-radius:13px; display:grid; place-items:center; max-width:530px; margin:0 auto 15px; }
.notation canvas { display:block; width:min(100%,460px); height:auto; }
.scale-notation { max-width:650px; margin:12px auto 10px; }
.scale-notation canvas { width:100%; }
.song-notation { max-width:720px; }
.song-notation canvas { width:100%; }
.feedback a { color:#e4d3ff; }
.solution-notation { flex:0 0 100%; margin:0; justify-items:start; }
.solution-notation figcaption { color:#3e3253; padding:8px 11px 0; font-size:.86rem; font-weight:700; }
.question-tip { color:var(--muted); line-height:1.49; font-size:.92rem; }
.answers { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.answer { padding:11px 12px; display:flex; min-height:56px; gap:10px; align-items:center; text-align:left; color:var(--text); border:1px solid #3c3952; border-radius:12px; background:#222135; line-height:1.35; }
.answer:not(:disabled):hover { background:#312744; border-color:#8e74bb; }
.answer-number { color:#ddcff9; width:28px; height:28px; border-radius:8px; background:#362d4b; border:1px solid #4d4065; flex:none; display:grid; place-items:center; font-size:.83rem; font-weight:700; }
.answer.is-correct { background:#213b38; border-color:#74d7ba; }
.answer.is-wrong { background:#472c3d; border-color:#ee9cb4; }
.question-controls { margin-top:11px; }
.question-controls .quiet { padding-inline:0 10px; }
.piano { position:relative; width:min(100%,530px); height:127px; margin:8px auto 16px; border:1px solid #3e3654; border-radius:0 0 9px 9px; background:#15141f; box-shadow:0 6px 11px #09081270; }
.piano-scroll { width:min(100%,630px); margin:0 auto 13px; overflow-x:auto; }
.piano.full-range { min-width:540px; width:100%; margin:0; }
.piano-scroll-tip { display:none; }
.white-keys { display:flex; height:100%; }
.piano-key { border:0; position:relative; padding:0; }
.piano-key.white { flex:1; min-width:0; color:#593aa1; background:linear-gradient(#d5d0e6,#fbf8ff 60%); border-right:1px solid #a09ab0; border-radius:0 0 5px 5px; }
.piano-key.white:last-child { border-right:0; }
.piano-key.black { position:absolute; top:0; left:var(--key-left); transform:translateX(-50%); width:var(--key-width); height:60%; background:linear-gradient(#28243a,#141320); border-radius:0 0 5px 5px; border:1px solid #0e0e17; box-shadow:0 4px 3px #0f0d1e5c; }
.piano-key .key-marker, .piano-key .key-reference { position:absolute; bottom:11px; left:50%; transform:translateX(-50%); }
.piano-key .key-reference { font-size:.75rem; color:#51436a; font-weight:700; }
.piano-key .key-marker { font-size:1rem; }
.piano-key.white.marked, button.piano-key.white:hover:not(:disabled) { background:linear-gradient(#e3d2ff,#b89af3); }
.piano-key.black.marked { background:linear-gradient(#45287e,#6943ac); color:#f0e2ff; }
.piano-key.black:hover:not(:disabled) { background:#52377f; }
.piano-key:focus-visible { outline-offset:-4px; }
.piano-key.white.is-correct,.piano-key.black.is-correct { background:#84d5be; }
.piano-key.white.is-wrong,.piano-key.black.is-wrong { background:#e9a1b5; }
.scale-ledger { display:grid; grid-template-columns:repeat(8,1fr); gap:6px; margin-block:15px; }
.scale-ledger > div { text-align:center; display:grid; gap:5px; min-width:0; }
.scale-ledger span { font-size:.8rem; color:var(--muted); }
.scale-ledger strong { font-size:clamp(.88rem,3.8vw,1.13rem); padding:12px 0; border:1px solid #403a57; background:#242239; border-radius:9px; color:#cbb6ed; min-height:45px; }
.scale-ledger strong.filled, .scale-ledger > div:first-child strong { border-color:#8263b8; color:#f0e4ff; background:#392b55; }
.scale-pool { display:flex; flex-wrap:wrap; gap:7px; margin:0 0 13px; }
.scale-pool.complete { opacity:.77; }
.scale-key { min-width:48px; }
.feedback { margin-top:15px; border:1px solid #504461; padding:13px 15px; border-radius:12px; background:#252039; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; }
.feedback.positive { background:#1e3334; border-color:#456a64; }
.feedback.positive strong { color:#a2e8d2; }
.feedback.negative strong { color:#f5c0d0; }
.feedback p { margin:4px 0; line-height:1.48; }
.feedback .breakdown { color:#d0d5e0; font-size:.82rem; }
.result { padding:27px 24px; text-align:center; }
.result .eyebrow { margin-top:13px; }
.result h1, .subpage h1, .guide-heading h1 { font-size:clamp(2rem,5vw,3rem); letter-spacing:-.055em; font-weight:760; line-height:1.04; margin-top:5px; }
.result-stats { margin:22px auto; display:flex; justify-content:center; gap:10px; flex-wrap:wrap; }
.result-stats > div { padding:12px 13px; border:1px solid #39334e; background:#232139; border-radius:12px; min-width:123px; }
.result-stats strong { display:block; font-size:1.9rem; color:#dfcbff; letter-spacing:-.04em; font-variant-numeric:tabular-nums; }
.result-stats small { font-size:.88rem; font-weight:700; color:#d3c6ec; }
.result-stats span { font-size:.87rem; color:var(--muted); }
.round-pass { margin:-5px 0 16px; font-size:.9rem; color:var(--muted); }
.round-pass .progress-label { margin-right:6px; }
.score-status { color:var(--muted); font-size:.88rem; margin-top:9px; }
.result .button-row { justify-content:center; }
.duel-result { max-width:540px; margin:0 auto 16px; padding:11px; border:1px solid #665188; border-radius:11px; background:#2e2546; }
.duel-result span { display:block; margin-top:4px; color:var(--muted); }
.review { padding:22px; margin-top:16px; }
.review h2, .subpage h2 { font-size:1.43rem; letter-spacing:-.035em; }
.review ol { margin:10px 0 0; padding:0; list-style:none; }
.review li { border-top:1px solid #363248; padding:12px 0; }
.review h3 { margin:5px 0; font-size:1.03rem; }
.review li p { color:var(--muted); line-height:1.45; }
.review-top { display:flex; justify-content:space-between; gap:12px; font-weight:650; font-size:.85rem; color:var(--muted); }
.correct-text { color:var(--mint); }
.incorrect-text { color:#f4acc6; }
.subpage { padding:23px; }
.subpage-title { display:flex; gap:13px; align-items:center; margin-bottom:18px; }
.subpage-title > .topic-icon { height:47px; width:47px; }
.subpage-title h1 { margin-top:0; }
.subpage-title p, .subpage > p { line-height:1.55; color:var(--muted); margin-top:7px; }
.filter { max-width:360px; }
.rank-filters { display:flex; flex-wrap:wrap; gap:0 12px; }
.rank-filters > .field { flex:1 1 11rem; max-width:360px; }
.table-wrap { overflow:auto; margin-bottom:17px; }
table { border-collapse:collapse; width:100%; text-align:left; font-variant-numeric:tabular-nums; }
thead { color:#d5c5f0; background:#26233a; }
td, th { padding:11px 14px; border-bottom:1px solid #38334b; }
td strong { color:#d9c4ff; }
.empty { padding:22px; margin-block:13px; border:1px dashed #504764; border-radius:12px; }
.empty p, .rules p { margin-top:4px; color:var(--muted); line-height:1.48; }
.rules { margin-top:16px; }
.rules summary { color:#e0cfff; cursor:pointer; }
.guide-heading { margin-bottom:20px; }
.guide-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.guide-grid .button-row, .guide-grid > section > button { margin-top:12px; }
.circle-guide { grid-column:1/-1; }
.circle-layout { display:grid; grid-template-columns:minmax(0,420px) minmax(0,1fr); gap:26px; align-items:center; justify-content:center; }
.wheel { position:relative; width:min(100%,390px); aspect-ratio:1/1; margin:4px auto; isolation:isolate; background:radial-gradient(circle,#292243 0 29%,#1c1b2f 29.5% 47%,#27213d 48% 64%,#201c31 64.5% 68%,transparent 69%); }
.wheel::before { content:""; position:absolute; inset:10%; border:1px solid #55496e; border-radius:50%; z-index:-1; }
.wheel-center { display:grid; place-content:center; text-align:center; position:absolute; inset:30%; line-height:1.15; }
.wheel-center strong { color:#e3d5ff; font-size:clamp(1rem,3vw,1.5rem); }
.wheel-center span { color:var(--muted); font-size:.85rem; margin-top:3px; }
.wheel-key { appearance:none; position:absolute; top:var(--y); left:var(--x); transform:translate(-50%,-50%); border:1px solid #584972; border-radius:9px; padding:4px; display:grid; min-width:clamp(40px,7vw,65px); min-height:44px; align-content:center; text-align:center; line-height:1.09; background:#2c2442; color:#f2eaff; }
.wheel-key strong { font-size:clamp(.73rem,1.55vw,.91rem); }
.wheel-key span { font-size:clamp(.73rem,1.55vw,.81rem); margin-top:3px; color:#dcccf2; }
.wheel-key[aria-pressed=true] { background:#b9a2ff; color:#23183c; border-color:#dacbff; }
.wheel-key[aria-pressed=true] span { color:#402b67; }
.wheel-key:hover { border-color:#c6a9f6; }
.wheel-details { display:grid; gap:13px; padding:18px; border:1px solid #39334d; background:#202033; border-radius:13px; max-width:380px; }
.wheel-details h3 { letter-spacing:-.025em; font-size:1.19rem; color:#e7d8ff; }
.wheel-details h3 span { color:var(--muted); font-size:.84rem; }
.wheel-details p { margin-top:4px; color:var(--muted); }
.scale-guide { grid-column:1/-1; }
.guide-scale { display:grid; grid-template-columns:minmax(145px,1fr) minmax(120px,1fr) minmax(100px,1fr) auto; align-items:center; gap:8px; border-top:1px solid #39334d; margin-top:7px; padding-top:7px; }
.guide-scale h3 { font-size:1rem; }
.guide-scale .steps { color:#dbc3ff; font-size:.92rem; }
.guide-scale p { color:var(--muted); }
.elements-guide { grid-column:1/-1; }
.elements-guide h2 { margin-bottom:10px; }
.element-detail { border-top:1px solid #39334d; }
.element-detail summary { padding:11px 3px; cursor:pointer; font-weight:700; color:#e4d7ff; }
.element-text { padding:0 3px 13px; max-width:76ch; }
.element-text p { margin:0 0 8px; line-height:1.55; color:var(--muted); }
.element-text p strong { color:var(--text); margin-right:4px; }
.term-list { margin:12px 0 0; display:grid; gap:0; }
.term-list > div { display:grid; grid-template-columns:minmax(155px,1fr) 2fr; gap:8px; padding:7px 0; border-top:1px solid #39334d; }
.term-list dt { font-weight:650; }
.term-list dt span { color:var(--accent); font-weight:550; }
.term-list dd { margin:0; color:var(--muted); line-height:1.45; }
.noscript { text-align:center; padding:14px; }

@media (max-width:900px) {
  .container { width:calc(100% - 40px); }
  .hero { padding-inline:24px; }
  .hero-description { max-width:22rem; }
  #cover { width:65%; right:-10%; }
}
@media (max-width:700px) {
  .container { width:calc(100% - 26px); }
  .top-inner { height:auto; min-height:66px; padding-block:9px; grid-template-columns:1fr auto; gap:8px; }
  .navigation { grid-row:2; grid-column:1/-1; width:100%; justify-content:center; }
  .navigation button { flex:1; }
  .top-tools { grid-column:2; grid-row:1; }
  .main { padding-top:16px; }
  .home-top { grid-template-columns:1fr; gap:12px; }
  .hero { padding:22px 18px 24px; min-height:295px; }
  .hero h1 { font-size:clamp(3.25rem,12vw,4.45rem); }
  .hero-description { max-width:20rem; }
  #cover { width:65%; right:-7%; top:44%; opacity:.72; }
  .hero::before { right:-155px; }
  .dashboard { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:13px; }
  .dashboard-title { align-self:center; }
  .record { padding:8px 10px; }
  .record strong { font-size:1.57rem; }
  .dashboard .mini-stats { align-self:center; }
  .dashboard .full { align-self:center; margin:0; }
  .dashboard h2 { font-size:1.05rem; }
  .dashboard-title p { font-size:.8rem; }
  .level-section { margin-top:23px; }
  .level-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .section-heading { align-items:flex-start; flex-direction:column; gap:9px; }
  .level-card { padding:12px; min-height:125px; }
  .level-card .topic-icon { width:33px; height:33px; }
  .level-card strong { font-size:1rem; }
  .card-description { font-size:.86rem; }
  .game-bar, .round-status, .question, .result, .review { max-width:100%; }
  .round-status { gap:10px; padding:10px 11px; }
  .question { padding:17px 13px; }
  .challenge-banner { align-items:stretch; flex-direction:column; }
  .circle-layout { grid-template-columns:1fr; gap:11px; }
  .wheel-details { margin-inline:auto; width:100%; }
  .guide-grid { grid-template-columns:1fr; }
  .guide-scale { grid-template-columns:1fr auto; padding-bottom:6px; }
  .guide-scale .steps { grid-column:2; justify-self:end; }
  .guide-scale .quiet { justify-self:end; }
  .term-list > div { grid-template-columns:1fr; gap:3px; }
}
@media (max-width:610px) {
  .piano-scroll-tip { display:block; margin:-6px auto 12px; color:var(--muted); font-size:.85rem; text-align:center; }
}
@media (max-width:390px) {
  .hero-description { max-width:16rem; }
  #cover { opacity:.48; right:-10%; }
  .answers { grid-template-columns:1fr; }
  .footer { flex-direction:column; }
  .dashboard-title > .topic-icon { display:none; }
  .subpage { padding:15px; }
  .round-status { gap:9px; }
  .scale-ledger { gap:3px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { transition:none !important; animation:none !important; }
}
