:root {
  --bg: #fff8ed;
  --paper: #fffefd;
  --ink: #542e20;
  --muted: #705a4f;
  --line: #f1e4d3;
  --purple: #a84b27;
  --lavender: #fff0df;
  --mint: #49aaa9;
  --navy: #623a2a;
  --warning: #a96c28;
  --radius: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  color: var(--ink);
}

body {
  min-width: 320px;
  background: radial-gradient(circle at 87% 2%, #ffefcb 0, transparent 29%), var(--bg);
}
html { scroll-padding-top: 92px; }
:where(button, a, input, select):focus-visible { scroll-margin-block: 92px; }

h1, h2, h3, .brand { font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif; }
button:active { transform: scale(.985); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline-color: #e9946f; }
.panel { box-shadow: 0 9px 32px #8042190b; }
.subtle { color: var(--muted); }
.eyebrow { color: #c66a3f; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 82px;
  padding: 0 max(4.2vw, 24px);
  border-bottom: 1px solid #f0e4d6;
  background: #fffdf9e8;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.brand { color: #633522; font-size: 24px; letter-spacing: -.075em; gap: 11px; }
.brand small { color: #aa8775; font-size: 8px; font-weight: 750; letter-spacing: 1.5px; margin-top: 0; }
.brand-mark { width: 43px; height: 43px; overflow: hidden; background: transparent; border-radius: 13px; box-shadow: 0 3px 10px #7a431521; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nav { gap: 4px; padding: 5px; border-radius: 18px; background: #fff4e9; }
.nav button { min-height: 43px; padding: 0 20px; color: #806758; font-size: 13px; border-radius: 14px; }
.nav button.active { color: #ad4b28; background: #fff; box-shadow: 0 3px 12px #b36d3a1c; }
.nav span { color: #a36345; background: #fff0e1; }
.quiet-button { color: #936d5a; font-weight: 650; }
.bottom-nav { display: none; }
main { max-width: 1450px; padding-top: 30px; }

.home-hero {
  isolation: isolate;
  position: relative;
  min-height: 400px;
  display: grid;
  grid-template-columns: 1fr .9fr;
  overflow: hidden;
  border: 1px solid #f9dfb7;
  border-radius: 31px;
  background: radial-gradient(circle at 66% 26%, #fffaf0 0, #fff4d9 35%, transparent 65%), linear-gradient(119deg, #fff8e8 0%, #fff0d3 61%, #ffe9c4 100%);
  box-shadow: 0 18px 46px #bb7d3420;
}
.home-hero::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: 8%; top: -190px; background: #fffdf066; z-index: -1; }
.home-hero-copy { position: relative; z-index: 3; align-self: center; padding: 56px 0 72px 65px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin: 0 0 18px; padding: 8px 13px; border-radius: 100px; color: #a65c32; background: #fffdf2b8; font-size: 12px; font-weight: 750; }
.home-hero h1 { color: #66321e; font-size: clamp(38px, 4vw, 62px); line-height: 1.18; letter-spacing: -.07em; word-break: keep-all; }
.home-hero h1 span { color: #b84d2b; }
.home-hero-copy > p:not(.hero-kicker) { margin-top: 20px; color: #7e6355; font-size: 15px; line-height: 1.8; word-break: keep-all; }
.hero-button { display: inline-flex; align-items: center; justify-content: center; gap: 17px; margin-top: 24px; padding: 13px 16px 13px 23px; min-height: 52px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #b9562e, #a84220); font-size: 14px; font-weight: 800; box-shadow: 0 9px 19px #a84b2752; }
.hero-button span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: #c4582c; background: #fff2e5; font-size: 18px; }
.hero-art { position: relative; z-index: 2; align-self: end; height: 100%; }
.hero-art img { position: absolute; width: min(100%, 560px); height: auto; right: 1%; bottom: -37px; object-fit: contain; filter: drop-shadow(0 20px 12px #af712a27); }
.hero-note { position: absolute; z-index: 3; font-size: 39px; font-weight: 800; text-shadow: 0 4px 4px #ffffffb0; }
.note-one { top: 28px; left: 2%; color: #48b9bb; transform: rotate(14deg); }
.note-two { top: 52px; right: 8%; color: #f68e72; transform: rotate(-17deg); }
.note-three { top: 34%; left: 2%; color: #f0b34a; transform: rotate(-22deg); }
.hero-hills { position: absolute; inset: auto 0 0; height: 126px; z-index: 1; overflow: hidden; pointer-events: none; }
.hero-hills i { position: absolute; display: block; bottom: -105px; width: 66%; height: 185px; border-radius: 50% 50% 0 0; }
.hero-hills i:nth-child(1) { left: -18%; background: #95dbce; }
.hero-hills i:nth-child(2) { left: 21%; bottom: -118px; background: #44b7bc; }
.hero-hills i:nth-child(3) { right: -18%; bottom: -107px; background: #74ceca; }

.home-summary { display: grid; grid-template-columns: .93fr 1.07fr; gap: 18px; margin: 22px 0 43px; }
.summary-card, .continue-card { display: flex; align-items: center; min-height: 128px; padding: 20px 22px; border: 1px solid #f0e3d6; border-radius: 23px; background: var(--paper); box-shadow: 0 8px 22px #8550260d; }
.summary-icon { display: grid; place-items: center; flex: 0 0 66px; height: 66px; margin-right: 18px; border-radius: 20px; color: #e4a127; background: #fff0d1; font-size: 32px; }
.summary-label { display: block; color: #a17a64; font-size: 11px; font-weight: 700; margin-bottom: 5px; }
.summary-card strong, .continue-card strong { display: block; color: #603a2b; font-size: 18px; letter-spacing: -.04em; }
.summary-card p, .continue-card p { margin-top: 5px; color: #756052; font-size: 11px; }
.summary-counter { display: grid; place-items: center; align-content: center; flex: 0 0 75px; height: 75px; margin-left: auto; border: 6px solid #6cc8c7; border-left-color: #ddf3ef; border-radius: 50%; color: #0d7f82; }
.summary-counter span { font-size: 16px; font-weight: 800; line-height: 1.1; }
.summary-counter small { font-size: 9px; }
.continue-art { position: relative; display: grid; place-items: center; flex: 0 0 84px; height: 83px; margin-right: 18px; overflow: hidden; border-radius: 14px; color: #ffe49a; background: radial-gradient(circle at 80% 19%, #fbe6a9 0 9%, transparent 10%), linear-gradient(135deg, #1d3e6f, #346ba2 58%, #6db9b7); }
.continue-art span { position: relative; z-index: 1; font-size: 47px; transform: rotate(-25deg); }
.continue-art i { position: absolute; width: 130%; height: 50px; bottom: -24px; left: -10%; border-radius: 50%; background: #69bdab; }
.continue-card button { margin-left: auto; padding: 11px 15px; border-radius: 12px; color: #fff; background: #b9562e; font-size: 12px; font-weight: 750; white-space: nowrap; }
.continue-card button span { margin-left: 7px; }

.home-section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 19px; }
.home-section-head .eyebrow { margin-bottom: 7px; }
.home-section-head h2 { font-size: clamp(24px, 2.1vw, 32px); letter-spacing: -.055em; }
.home-section-head p:not(.eyebrow) { margin-top: 7px; color: var(--muted); font-size: 13px; }
.home-section-head .text-button { white-space: nowrap; }
.home-categories { display: flex; gap: 10px; overflow-x: auto; padding: 2px 1px 16px; scrollbar-width: none; }
.home-categories::-webkit-scrollbar { display: none; }
.home-categories button { display: inline-flex; align-items: center; gap: 8px; min-height: 43px; padding: 0 16px; border: 1px solid #f2e2d3; border-radius: 14px; background: #fffefa; color: #805c4b; font-size: 12px; font-weight: 700; white-space: nowrap; }
.home-categories button:nth-child(1) { background: #fff1da; }
.home-categories button:nth-child(2) { background: #eaf7f2; }
.home-categories button:nth-child(3) { background: #f1eefa; }
.home-categories button:nth-child(4) { background: #fff1e9; }
.home-categories button span { color: #d36f43; font-size: 19px; }
.home-categories button:nth-child(2) span { color: #43aaa7; }
.home-categories button:nth-child(3) span { color: #8774c3; }

.home-song-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-song-card { display: block; position: relative; overflow: hidden; border: 1px solid #f0e3d6; border-radius: 20px; background: #fffdfa; text-align: left; box-shadow: 0 8px 20px #85502610; transition: transform .18s ease, box-shadow .18s ease; }
.home-song-card:hover { transform: translateY(-3px); box-shadow: 0 13px 26px #8550261f; }
.song-cover { display: grid; place-items: center; position: relative; height: 136px; overflow: hidden; }
.song-cover::before, .song-art::before { content: ""; position: absolute; width: 130%; height: 80%; bottom: -59%; left: -14%; border-radius: 50%; background: #ffffff55; }
.song-cover::after, .song-art::after { content: ""; position: absolute; width: 90%; height: 55%; bottom: -38%; right: -20%; border-radius: 50%; background: #ffffff51; }
.song-cover span { position: relative; z-index: 2; color: #fff4b9; font-size: 63px; text-shadow: 0 8px 17px #22445e5e; }
.art-0 { background: radial-gradient(circle at 76% 24%, #ffdda4 0 6%, transparent 7%), linear-gradient(145deg, #173968, #41699c 58%, #6fb5b9); }
.art-1 { background: radial-gradient(circle at 18% 23%, #fff2c9 0 8%, transparent 9%), linear-gradient(145deg, #f2a486, #f7c9a2 54%, #94cfc7); }
.art-2 { background: radial-gradient(circle at 65% 25%, #fff6c5 0 7%, transparent 8%), linear-gradient(145deg, #a5dfe0, #69c2d0 55%, #6fc4a9); }
.art-3 { background: radial-gradient(circle at 72% 20%, #fff5b5 0 7%, transparent 8%), linear-gradient(145deg, #add2ae, #76b993 55%, #dfce89); }
.home-song-info { display: block; padding: 14px 16px 17px; }
.home-song-info strong { display: block; color: #603929; font-size: 15px; letter-spacing: -.04em; }
.home-song-info small { display: block; color: #705a4f; font-size: 11px; margin-top: 5px; }
.home-song-arrow { position: absolute; right: 16px; bottom: 15px; color: #d37a52; }
.home-feature-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 38px 0 12px; padding: 22px 0; border-top: 1px solid #eadac8; }
.home-feature-strip > div { display: grid; justify-items: center; text-align: center; gap: 5px; border-right: 1px solid #eadac8; }
.home-feature-strip > div:last-child { border-right: 0; }
.home-feature-strip span { color: #dd865d; font-size: 28px; }
.home-feature-strip > div:nth-child(2) span { color: #ed897b; }
.home-feature-strip > div:nth-child(3) span { color: #54b8b5; }
.home-feature-strip strong { font-size: 13px; }
.home-feature-strip p { color: var(--muted); font-size: 11px; }

.view:not(.home-view) > .page-heading { margin: 12px 0 24px; }
.view:not(.home-view) .page-heading h1 { color: #623828; font-size: clamp(28px, 3vw, 41px); letter-spacing: -.06em; }
.view:not(.home-view) .page-heading .subtle { font-size: 13px; }
.instrument-switch { background: #f4e9df; }
.instrument-switch .active { color: #ad542e; }
.mode-card { border-color: #f0dfcc; background: #fffdf8; box-shadow: 0 4px 15px #9b68320c; }
.mode-card.active { border-color: #edb38b; background: #fff0de; }
.mode-card.active .mode-symbol, .mode-card.active .mode-check { color: #cb6f3d; }
.mode-symbol { color: #c3a798; }
.workspace { grid-template-columns: minmax(0, 1fr) 296px; gap: 20px; }
.lesson-panel { border-color: #f1e2d2; }
.song-heading h2 { color: #593426; }
.tag { color: #b65a30; background: #fff0dd; }
.text-button { color: #a84b27; }
.score-scroll { background: #fffdf8; border-color: #f2e6d9; }
.note-chip { border-color: #f1e4d8; color: #bfa99a; background: #fffdf9; }
.note-chip.current { color: #fff; border-color: #0d7f82; background: #0d7f82; }
.note-chip.past { color: #6ca9a1; border-color: #dceee7; background: #ecf7f3; }
.instrument-toolbar span { color: #a84b27; }
.instrument { min-width: 870px; }
.kalimba-body { background: linear-gradient(155deg, #bb713d 0%, #8d4928 55%, #70351f 100%); box-shadow: inset 0 9px 13px #e7a36580, inset 0 -10px 15px #5123116e; }
.kalimba-body:before { background: linear-gradient(#ebded0, #b8afa9); box-shadow: 0 4px 6px #51230f88; }
.kalimba-body:after { content: "SORABBANG"; color: #ffdbad7d; }
.tine { border-color: #d7d6d3; background: linear-gradient(90deg, #d0d0cf, #fffefb 43%, #dad8d4 78%, #bab7b2); box-shadow: 1px 4px 5px #61341885; color: #875c4b; }
.tine.target { border-color: #7acac3; color: #0f7477; background: linear-gradient(90deg, #8bd2cf, #e5fffb 45%, #88d8d2); box-shadow: 0 0 17px #49ddd4a6; }
.tine.heard:not(.target) { background: linear-gradient(90deg, #ffd09d, #fff2d9, #f4b77b); color: #9d562c; }
.piano-body { background: #623929; border-color: #623929; }
.piano-key.white { background: linear-gradient(90deg, #ece5da, #fffefa 25%, #fffdf8 78%, #e7dfd5); border-color: #d1c8bd; color: #987969; }
.piano-key.white.target { color: #0a7778; background: linear-gradient(#d9f5ec, #82d4ce); }
.piano-key.white.heard:not(.target) { background: #ffe1ba; }
.piano-key.black { width: 5.2%; background: linear-gradient(90deg, #341c19, #714536, #301914); }
.piano-key.black.target { background: #3ea6a6; }
.piano-key.black.heard { background: #d47741; }
.dot.target-dot { background: #49aaa9; }
.dot.heard-dot { background: #e5a16f; }
.progress-track { background: #f8e8d9; }
.progress-track div { background: linear-gradient(90deg, #e4935e, #c95f38); }
.coach-card { background: radial-gradient(circle at 85% 3%, #fff7e7, transparent 32%), var(--paper); }
.target-number { color: #c86738; }
.feedback { color: #ad5935; background: #fff2e5; }
.feedback.success { color: #18877d; background: #e9f7f1; }
.primary-button { color: #fff; background: linear-gradient(135deg, #b9562e, #a84220); box-shadow: 0 6px 15px #a84b2737; }
.primary-button.running { background: #724938; }
.secondary-button { border-color: #edd9c8; color: #985f43; }
.privacy-note { color: #705a4f; }
input[type=range], input[type=checkbox] { accent-color: #cf7549; }
.loop-range select, .library-tools input { border-color: #eadacb; background: #fffefa; }
.mic-readout strong { color: #39a9a6; }
.level-track i { background: #63c1bb; }
.input-badge { color: #ac683e; background: #fff1df; }
.legend .input-badge.live { color: #0f8c80; background: #e5f8f3; }

.filters button.active { background: #b9562e; }
.song-card { border-color: #f0e1d1; box-shadow: 0 7px 20px #85502612; }
.song-card:hover { border-color: #e4ae88; box-shadow: 0 12px 24px #85502620; }
.song-card .song-art { display: grid; place-items: center; position: relative; width: auto; height: 103px; margin: -21px -21px 17px; overflow: hidden; border-radius: 19px 19px 0 0; color: #fff4c8; font-size: 51px; text-shadow: 0 6px 12px #6b5c5350; }
.song-card.art-card-0 .song-art { background: linear-gradient(145deg, #234474, #4674a2 60%, #72bfbc); }
.song-card.art-card-1 .song-art { background: linear-gradient(145deg, #f2a7a0, #f9cca0 60%, #95d6c3); }
.song-card.art-card-2 .song-art { background: linear-gradient(145deg, #75b8bd, #9bd9ce 60%, #d5e8a9); }
.song-card.art-card-3 .song-art { background: linear-gradient(145deg, #b8a0ca, #e2c0c8 60%, #f8d6aa); }
.song-card.art-card-1 .song-art, .song-card.art-card-2 .song-art { color: #fffaf0; }
.song-card strong { color: #5e3828; font-size: 17px; }
.song-card p { color: #705a4f; font-size: 12px; }
.song-card .song-meta { color: #705a4f; font-size: 10px; }
.rights-banner { border-color: #f2dfc9; background: #fff3e4; }
.wishlist span { color: #987253; background: #fffdf3; }

.tuner-main { background: radial-gradient(circle at 50% 5%, #fff5df, transparent 60%), #fffefd; }
.tuner-note { color: #a54b28; }
.tuner-meter { border-top-color: #e4d4c4; }
.tuner-safe { background: #c2e8d4; }
.tuner-zero { background: #53af9a; }
.tuner-needle, .tuner-needle:before { background: #d77346; }
.cents-readout { color: #c66438; }
.tuner-tines button { border-color: #eee1d5; background: #fffaf4; }
.tuner-tines button.selected { color: #ae552f; border-color: #d48258; background: #fff1de; }
.tuner-tines button.tuned { box-shadow: inset 0 -3px #65c1a6; }
.tuner-tip { background: #fff5e7; }
.alert { border-color: #eed1a1; background: #fff3d8; }
.app-footer { color: #796153; letter-spacing: .1px; font-size: 10px; }
.reference-label select { color: #6f4735; border-color: #ead9c7; }
.tuner-details strong { color: #704b3b; }
.tuner-side .secondary-button { color: #ad613e; }
.song-cover span, .song-art { user-select: none; }
.song-cover.art-0, .song-card.art-card-0 .song-art { background: url('/assets/cover-moon.jpg') center / cover no-repeat; }
.song-cover.art-1, .song-card.art-card-1 .song-art { background: url('/assets/cover-castle.jpg') center / cover no-repeat; }
.song-cover.art-2, .song-card.art-card-2 .song-art { background: url('/assets/cover-bears.jpg') center / cover no-repeat; }
.song-cover.art-3, .song-card.art-card-3 .song-art { background: url('/assets/cover-kalimba.jpg') center / cover no-repeat; }
.song-cover::before, .song-cover::after, .song-art::before, .song-art::after, .song-cover span { display: none; }
.song-card .song-art { font-size: 0; }
.continue-art { background: url('/assets/cover-moon.jpg') center / cover no-repeat; }
.continue-art span, .continue-art i { display: none; }

@media (max-width: 1100px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 270px; }
  .home-hero-copy { padding-left: 42px; }
  .home-hero h1 { font-size: clamp(36px, 4.3vw, 48px); }
  .home-summary { gap: 13px; }
  .summary-card, .continue-card { padding: 16px; }
  .summary-icon { flex-basis: 56px; height: 56px; margin-right: 12px; }
  .continue-art { flex-basis: 67px; height: 70px; margin-right: 12px; }
}

@media (max-width: 850px) {
  .workspace { grid-template-columns: 1fr; }
  .home-hero { min-height: 355px; }
  .home-hero-copy { padding: 36px 0 47px 34px; }
  .home-hero h1 { font-size: 38px; }
  .home-hero-copy > p:not(.hero-kicker) { font-size: 12px; }
  .hero-art img { width: 112%; right: -9%; bottom: -19px; }
  .home-song-grid { gap: 11px; }
  .song-cover { height: 107px; }
  .home-song-info { padding: 12px; }
  .home-song-info strong { font-size: 13px; }
  .summary-card strong, .continue-card strong { font-size: 15px; }
  .summary-card p, .continue-card p { font-size: 10px; }
  .summary-counter { flex-basis: 60px; height: 60px; border-width: 5px; }
  .continue-card button { padding: 9px; font-size: 11px; }
}

@media (max-width: 650px) {
  html { scroll-padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .app-header { min-height: 60px; height: 68px; padding: 7px 17px; }
  .brand { font-size: 21px; }
  .brand-mark { width: 39px; height: 39px; }
  .brand small { font-size: 7px; }
  .nav { display: none; }
  .quiet-button { margin-left: auto; font-size: 11px; }
  main { padding: 16px 14px calc(106px + env(safe-area-inset-bottom)); }
  .bottom-nav { position: fixed; z-index: 40; inset: auto 0 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid #f0e1cf; background: #fffdf9f2; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 -8px 24px #79503214; }
  .bottom-nav button { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 52px; color: #a08673; font-size: 10px; font-weight: 650; }
  .bottom-nav button span { font-size: 23px; line-height: 1; }
  .bottom-nav button.active { color: #c75f34; }
  .home-hero { display: block; min-height: 440px; border-radius: 26px; }
  .home-hero-copy { padding: 25px 24px 0; }
  .hero-kicker { margin-bottom: 12px; font-size: 10px; }
  .home-hero h1 { font-size: clamp(30px, 8vw, 38px); line-height: 1.23; }
  .home-hero-copy > p:not(.hero-kicker) { margin-top: 11px; max-width: 250px; font-size: 12px; line-height: 1.6; }
  .desktop-break { display: none; }
  .hero-button { margin-top: 17px; min-height: 46px; padding: 10px 11px 10px 16px; font-size: 12px; }
  .hero-art { position: absolute; right: -20px; bottom: -21px; width: 77%; height: 62%; }
  .hero-art img { width: 100%; right: 0; bottom: 0; }
  .hero-note { font-size: 25px; }
  .note-one { top: -3px; left: 5%; }
  .note-two { top: 13%; right: 13%; }
  .note-three { top: 43%; left: 2%; }
  .hero-hills { height: 85px; }
  .home-summary { grid-template-columns: 1fr; gap: 10px; margin: 13px 0 31px; }
  .summary-card, .continue-card { min-height: 100px; padding: 13px 15px; border-radius: 19px; }
  .summary-card p, .continue-card p { font-size: 11px; }
  .summary-icon { flex-basis: 49px; height: 49px; border-radius: 14px; font-size: 25px; }
  .summary-counter { flex-basis: 56px; height: 56px; }
  .continue-art { flex-basis: 59px; height: 59px; }
  .continue-art span { font-size: 34px; }
  .continue-card button { padding: 9px 10px; }
  .home-section-head { align-items: start; margin-bottom: 15px; }
  .home-section-head h2 { font-size: 23px; }
  .home-section-head p:not(.eyebrow) { font-size: 11px; }
  .home-section-head .text-button { align-self: end; font-size: 10px; }
  .home-categories { gap: 7px; padding-bottom: 12px; }
  .home-categories button { padding: 0 12px; min-height: 39px; font-size: 11px; }
  .home-song-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .song-cover { height: 110px; }
  .home-song-info { padding: 11px 12px 14px; }
  .home-song-info small { font-size: 11px; }
  .home-feature-strip { margin-top: 26px; }
  .home-feature-strip strong { font-size: 11px; }
  .home-feature-strip p { font-size: 11px; }
  .view:not(.home-view) .page-heading h1 { font-size: 27px; }
  .view:not(.home-view) .page-heading .subtle { font-size: 11px; }
  .mode-card strong { font-size: 12px; }
  .mode-card small { font-size: 10px; line-height: 1.4; }
  .song-heading .text-button { font-size: 10px; }
  .song-heading .subtle, .score-toolbar { font-size: 10px; }
  .instrument-toolbar strong { font-size: 12px; }
  .instrument-toolbar span { font-size: 10px; }
  .legend, .legend .input-badge, .lesson-foot { font-size: 11px; }
  #libraryView .page-heading, #tunerView .page-heading { flex-direction: column; align-items: stretch; }
  #libraryView .import-button { align-self: flex-start; width: auto; max-width: none; padding: 11px 15px; font-size: 11px; }
  #tunerView .reference-label { align-self: flex-start; max-width: none; font-size: 11px; }
  #tunerView .reference-label select { display: inline-block; width: auto; margin: 0 0 0 9px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex-shrink: 0; white-space: nowrap; }
  .filters button { font-size: 11px; }
  .song-card .song-meta { display: flex; gap: 4px 9px; }
  .coach-panel { display: flex; flex-direction: column; }
  .coach-card, .settings-card { padding: 22px; }
  .target-number { font-size: 73px; }
  .coach-card h3 { font-size: 22px; }
  .coach-card .subtle, .feedback { font-size: 12px; }
  .primary-button, .secondary-button { min-height: 48px; font-size: 13px; }
  .privacy-note { font-size: 10px; }
  .song-card .song-art { margin: -17px -13px 13px; border-radius: 17px 17px 0 0; height: 94px; }
  .song-card strong { font-size: 14px; }
  .song-card p, .song-card .song-meta { font-size: 11px; }
  .tuner-note { font-size: 80px; }
  .tuner-tines button { min-height: 54px; }
  .tuner-tines button small, .tuner-details small { font-size: 11px; }
  .legal-foot { font-size: 11px; }
}

@media (min-width: 480px) and (max-width: 650px) {
  .hero-art { width: 50%; right: -10px; bottom: -17px; }
  .hero-art img { width: 100%; }
  .home-hero-copy { max-width: 62%; }
}

@media (max-width: 390px) {
  .home-hero { min-height: 427px; }
  .hero-art { width: 82%; }
  .home-section-head h2 { font-size: 21px; }
  .home-section-head .text-button { font-size: 9px; }
  .summary-card strong, .continue-card strong { font-size: 14px; }
  .continue-card button { font-size: 10px; }
  .tuner-tines { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #practiceView .page-heading { flex-direction: column; align-items: stretch; }
  #practiceView .page-heading h1 { font-size: 24px; text-wrap: balance; }
  #practiceView .instrument-switch { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .home-song-card { transition: none; }
}
