
.npx-brand h2{font-size:clamp(19px,3.4vw,30px);text-align:center;line-height:1.2}
.npx-brand-left,.npx-brand-right{flex-shrink:0;width:clamp(28px,7vw,64px)}
#pitchhint{font-size:12px;color:#847d97;text-align:center;margin:0}
.npx-keyboard button:disabled{opacity:1}
@media(max-width:460px){.npx-brand{gap:4px}.npx-brand h2{font-size:20px}.pitch-paper{min-height:210px}}
.npx-brand h2{white-space:normal;overflow-wrap:normal}

.npx-keyboard button.low{background:#b8e8e6;border-color:#258b91;color:#155e63}
.npx-keyboard button.high{background:#dfcff8;border-color:#8754ce;color:#603593}
.npx-msg.low{color:#258b91}.npx-msg.high{color:#8754ce}
.pitch-selection-actions{display:flex;gap:8px;flex-wrap:wrap}
.pitch-selection-actions button{background:#f4effb;color:#655b7e;border:0;border-radius:9px;padding:10px 14px;min-height:44px}
.pitch-selection-actions .pitch-custom-pick{display:inline-flex;align-items:center;min-height:44px;padding:10px 14px;border-radius:9px;background:#f4effb;color:#655b7e;font:inherit;box-sizing:border-box}
.pitch-selection-actions button[aria-pressed="true"],.pitch-selection-actions .pitch-custom-pick[data-active="true"]{background:#e7dcfa;color:#583388;box-shadow:inset 0 0 0 2px #a78bd3;font-weight:750}
#pitchselectionstatus{font-size:12px;color:#78698d;min-height:32px;margin:12px 0 4px}
.pitch-selection-scroll{margin:0 0 10px}
#pitchselection{height:160px}
#pitchselection .piano-white{background:#fff;color:#78698d}
#pitchselection .piano-black{background:#30283d}
#pitchselection button.selected{background:#c5aff5;border-color:#8057c9;color:#503077}
#pitchselection button.selected:after{content:'✓';position:absolute;top:10px;left:0;right:0;text-align:center;font-size:15px;color:#503077}

#pitchselectionstatus.pitch-selection-error{color:#b73751;font-weight:650}
.npx #pitchinput[aria-pressed="true"]{background:#7653e6;color:white;border-color:#7653e6}
.npx .pitch-input-status,.npx .pitch-input-help{font-size:12px;line-height:1.6;color:#847d97}
.npx .pitch-input-status{font-size:11px;color:#78698d}
.npx .pitch-input-hint{margin:0 14px 12px;text-align:center;color:#847d97;font-size:12px;line-height:1.6}
.npx .pitch-input-hint svg{vertical-align:-3px;margin-right:4px}
.pitch-privacy{max-width:880px;box-sizing:border-box;margin:0 auto;padding:4px 18px 20px;color:#78698d;font:12px/1.6 ui-rounded,system-ui,-apple-system,sans-serif}
.pitch-resources{max-width:880px;margin:20px auto 14px;color:#443751;font:14px/1.7 ui-rounded,system-ui,-apple-system,sans-serif;display:grid;gap:18px}
.pitch-guide-link{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px;background:#f4eefe;border:1px solid #e2d9ef;border-radius:17px}
.pitch-guide-link small{font-size:13px;color:#80649e}.pitch-guide-link h2{font-size:clamp(17px,2.7vw,21px);font-weight:800;letter-spacing:.5px;margin:4px 0}.pitch-guide-link p{margin:0;color:#78698d;font-size:13px}
.pitch-guide-link>a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 16px;background:#7653e6;color:white;border-radius:999px;text-decoration:none;white-space:nowrap;font-weight:700}
.pitch-experiment{padding:21px 23px;background:white;border:1px solid #e2d9ef;border-radius:17px}.pitch-experiment h2{font-size:18px;margin:0 0 8px;color:#684d86}.pitch-experiment p{margin:0 0 12px}.pitch-experiment p:last-child{margin-bottom:0}.pitch-experiment a{color:#7352cc}.pitch-experiment summary{min-height:44px;display:list-item;align-content:center;color:#7352cc;cursor:pointer;font-weight:650}.pitch-experiment details[open] summary{margin-bottom:12px}.pitch-guide-link>a:focus-visible,.pitch-experiment summary:focus-visible{outline:3px solid #aa8cdd;outline-offset:3px}
@media(max-width:540px){.pitch-guide-link{align-items:flex-start;flex-direction:column;gap:14px;padding:20px}.pitch-experiment{padding:20px}.pitch-resources{margin-left:8px;margin-right:8px}}
/* Fit all three octaves on tablet-sized screens; retain touch-friendly scrolling on phones. */
@media(min-width:700px){.npx-game #npxletters.npx-keyboard{min-width:0;width:100%}}
