.theory-overlay{z-index:100;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#000000d9;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.theory-modal{color:#fff;background:#0a0a0a;border:1px solid #ffffff14;border-radius:8px;flex-direction:column;max-width:900px;max-height:90vh;display:flex;overflow:hidden}.theory-header{background:#0a0a0a;border-bottom:1px solid #ffffff1f;flex-shrink:0;justify-content:space-between;align-items:center;padding:20px 28px;display:flex}.theory-header h2{color:#fff;margin:0;font-size:1.3rem;font-weight:500}.theory-body{flex:1;padding:24px 28px 28px;overflow-y:auto}.theory-header-actions{align-items:center;gap:6px;display:flex}.popup-btn{color:#ffffffb3;cursor:pointer;background:0 0;border:1px solid #ffffff26;border-radius:4px;align-items:center;gap:4px;padding:5px 10px;font-size:.8rem;text-decoration:none;transition:all .15s;display:inline-flex}.popup-btn:hover{color:#fff;background:#ffffff0f;border-color:#ffffff4d}.theory-section{margin-bottom:28px}.theory-section h3{color:#e4b97d;border-bottom:1px solid #e4b97d33;margin-bottom:12px;padding-bottom:6px;font-size:1.15rem;font-weight:600}.theory-section-anchor{color:inherit;text-decoration:none;transition:opacity .15s}.theory-section-anchor:hover{opacity:.75}.theory-section h4{color:#fff;margin-bottom:8px;font-size:.95rem;font-weight:500}.theory-section p{color:#ffffffbf;margin-bottom:10px;line-height:1.6}.theory-section p strong{color:#fff;font-weight:500}.theory-section p em{color:#ffffffe6;font-style:italic}.theory-section ul{color:#ffffffbf;margin:12px 0 12px 22px;line-height:1.7;list-style:outside}.theory-section ul strong{color:#fff}.theory-section ul em{color:#ffffffe6}.example{background:#ffffff08;border-left:2px solid #ffffff4d;border-radius:4px;padding:12px 16px;font-size:.9rem;line-height:1.7!important}.note{background:#ffffff08;border-left:2px solid #ffffff80;border-radius:4px;margin-top:10px;padding:10px 14px;font-size:.85rem;font-style:italic}.theory-section table,.theory-table{border-collapse:collapse;width:100%;margin:12px 0;font-size:.85rem}.theory-section th,.theory-section td,.theory-table th,.theory-table td{text-align:left;vertical-align:top;border-bottom:1px solid #ffffff0f;padding:8px 12px}.theory-section th,.theory-table th{color:#fff;text-transform:uppercase;letter-spacing:.05em;background:#ffffff0a;font-size:.7rem;font-weight:500}.theory-section td,.theory-table td{color:#ffffffbf}.theory-section td strong,.theory-table td strong{color:#fff}.theory-section tr:hover td,.theory-table tr:hover td{background:#ffffff08}.theory-table tr.highlight td{color:#fff;background:#ffffff0d}.theory-section blockquote{color:#ffffffd1;background:#e4b97d0d;border-left:2px solid #e4b97d;border-radius:0 4px 4px 0;margin:12px 0;padding:10px 16px;font-size:.9rem}.theory-section blockquote p{margin:0 0 6px}.theory-section blockquote p:last-child{margin-bottom:0}.theory-section table{white-space:nowrap;display:block;overflow-x:auto}@media (min-width:768px){.theory-section table{white-space:normal;display:table}}.comparison{grid-template-columns:1fr 1fr;gap:14px;margin-top:12px;display:grid}.comparison-box{background:#ffffff08;border:1px solid #ffffff0f;border-radius:6px;padding:14px}.comparison-note{color:#ffffff80;font-size:.8rem;font-style:italic}.color-happy{color:#4ade80;margin-top:8px;font-weight:500}.color-sad{color:#fff9;margin-top:8px;font-weight:500}@media (max-width:768px){.theory-modal{max-height:95vh;padding:20px}.comparison{grid-template-columns:1fr}.theory-section table,.theory-table{font-size:.8rem}.theory-section th,.theory-section td,.theory-table th,.theory-table td{padding:6px 8px}}
.stats-overlay{z-index:100;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#000000d9;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.stats-modal{color:#fff;background:#0a0a0a;border:1px solid #ffffff14;border-radius:8px;flex-direction:column;width:100%;max-width:720px;max-height:90vh;display:flex;overflow:hidden}.stats-header{border-bottom:1px solid #ffffff1f;justify-content:space-between;align-items:center;padding:18px 24px;display:flex}.stats-header h2{margin:0;font-size:1.2rem;font-weight:500}.stats-close{color:#fff9;cursor:pointer;background:0 0;border:1px solid #ffffff26;border-radius:4px;justify-content:center;align-items:center;width:28px;height:28px;transition:all .15s;display:inline-flex}.stats-close:hover{color:#fff;background:#ffffff0d;border-color:#ffffff59}.stats-body{flex:1;padding:20px 24px;overflow-y:auto}.stats-empty{text-align:center;color:#ffffff73;padding:40px 0;font-size:.95rem}.stats-summary{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin-bottom:28px;display:grid}.stats-card{background:#ffffff08;border:1px solid #ffffff0f;border-radius:6px;flex-direction:column;gap:4px;padding:12px 14px;display:flex}.stats-card__value{color:#fff;font-size:1.25rem;font-weight:600;line-height:1.15}.stats-card__label{text-transform:uppercase;letter-spacing:.06em;color:#ffffff80;font-size:.7rem}.stats-section{margin-top:24px}.stats-section h3{text-transform:uppercase;letter-spacing:.08em;color:#ffffff8c;margin:0 0 12px;font-size:.75rem;font-weight:600}.stats-sparkline{border-bottom:1px solid #ffffff14;align-items:flex-end;gap:2px;height:72px;padding:4px 0;display:flex}.stats-spark{background:linear-gradient(#e4b97d4d,#e4b97d99);border-radius:2px 2px 0 0;flex:1;min-width:3px;max-width:16px;transition:background .15s}.stats-spark:hover{background:#e4b97d}.stats-sparkline-caption{color:#fff6;margin:6px 0 0;font-size:.75rem}.stats-pb-list{flex-direction:column;gap:4px;display:flex}.stats-pb-row{background:#ffffff05;border-radius:4px;grid-template-columns:1fr 70px 70px auto;align-items:center;gap:14px;padding:8px 12px;font-size:.85rem;display:grid}.stats-pb-header{text-transform:uppercase;letter-spacing:.08em;color:#ffffff59;background:0 0;padding:2px 12px 4px;font-size:.66rem;font-weight:600}.stats-pb-col-num{text-align:right}.stats-pb-config{color:#ffffffb8;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.stats-pb-time{color:#e4b97d;font-variant-numeric:tabular-nums;text-align:right;font-weight:600}.stats-pb-avg{color:#ffffffa6;font-variant-numeric:tabular-nums;text-align:right}.stats-pb-date{color:#fff6;white-space:nowrap;font-size:.75rem}@media (max-width:560px){.stats-pb-row{grid-template-columns:1fr 60px 60px}.stats-pb-date{display:none}}.stats-progression-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px;display:flex}.stats-progression-header h3{margin:0}.stats-progression-select{color:#ffffffd9;cursor:pointer;background:#ffffff0a;border:1px solid #ffffff26;border-radius:4px;max-width:60%;padding:5px 10px;font-size:.8rem}.stats-progression-select:focus{border-color:#e4b97d80;outline:none}.stats-progression-select option{color:#fff;background:#0a0a0a}.stats-progression-empty{color:#fff6;text-align:center;margin:0;padding:18px 0;font-size:.85rem;font-style:italic}.stats-progression-controls{flex-wrap:wrap;gap:12px;margin:0 0 10px;display:flex}.stats-progression-range{gap:4px;display:flex}.stats-range-chip{color:#ffffff80;cursor:pointer;background:0 0;border:1px solid #ffffff1f;border-radius:4px;padding:3px 10px;font-size:.75rem;transition:all .12s}.stats-range-chip:hover{color:#ffffffd9;border-color:#ffffff4d}.stats-range-chip.is-active{color:#e4b97d;background:#e4b97d1f;border-color:#e4b97d80}.progression-chart{width:100%;height:200px;display:block}.progression-empty{text-align:center;color:#ffffff4d;padding:20px}.progression-axis{stroke:#ffffff1a;stroke-width:1px}.progression-axis-label{fill:#fff6;font-family:inherit;font-size:10px}.progression-line{fill:none;stroke:#e4b97d;stroke-width:1.5px;stroke-linejoin:round;stroke-linecap:round}.progression-trend{fill:none;stroke:#e4b97d40;stroke-width:2.5px;stroke-linejoin:round;stroke-linecap:round}.progression-dot{fill:#e4b97d;stroke:#0a0a0a;stroke-width:1.5px;cursor:pointer;transition:r .12s}.progression-dot:hover{r:5}.stats-history{flex-direction:column;gap:2px;display:flex}.stats-history-row{background:#ffffff05;border-radius:3px;grid-template-columns:auto 1fr auto auto auto;align-items:center;gap:12px;padding:6px 10px;font-size:.82rem;display:grid;position:relative}.stats-history-day{text-transform:uppercase;letter-spacing:.08em;color:#fff6;border-bottom:1px solid #ffffff0f;margin-bottom:4px;padding:12px 2px 6px;font-size:.7rem;font-weight:600}.stats-history>div:first-child .stats-history-day{padding-top:0}.stats-history-row:nth-child(2n){background:#ffffff09}.stats-history-time{color:#fff;font-variant-numeric:tabular-nums;min-width:58px;font-weight:600}.stats-history-config{color:#ffffff8c;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.stats-history-score{font-variant-numeric:tabular-nums;color:#ffffff80;align-items:center;gap:2px;display:inline-flex}.stats-history-ok{color:var(--correct,#22c55e)}.stats-history-ko{color:var(--wrong,#ef4444)}.stats-history-date{color:#ffffff59;white-space:nowrap;font-size:.75rem}.stats-history-sentinel{text-align:center;color:#ffffff59;padding:10px;font-size:.78rem;font-style:italic}.stats-history-delete{color:#ffffff59;cursor:pointer;opacity:0;background:0 0;border:1px solid #0000;border-radius:3px;justify-content:center;align-items:center;width:22px;height:22px;padding:0;transition:opacity .15s,color .15s,background .15s,border-color .15s;display:inline-flex}.stats-history-row:hover .stats-history-delete,.stats-history-row:focus-within .stats-history-delete{opacity:1}.stats-history-delete:hover{color:#ef4444;background:#ef444414;border-color:#ef44444d}@media (hover:none){.stats-history-delete{opacity:.5}}@media (max-width:560px){.stats-history-row{grid-template-columns:auto 1fr auto auto;gap:8px}.stats-history-date{display:none}}.stats-footer{border-top:1px solid #ffffff14;justify-content:flex-end;gap:8px;padding:14px 24px;display:flex}.stats-btn{color:#fffc;cursor:pointer;background:0 0;border:1px solid #ffffff26;border-radius:4px;align-items:center;gap:6px;padding:7px 12px;font-size:.82rem;transition:all .15s;display:inline-flex}.stats-btn:hover:not(:disabled){color:#fff;background:#ffffff0d;border-color:#ffffff59}.stats-btn:disabled{opacity:.35;cursor:not-allowed}.stats-btn--danger{color:#ef4444cc;border-color:#ef44444d}.stats-btn--danger:hover:not(:disabled){color:#ef4444;background:#ef44441a;border-color:#ef444499}.stats-btn--confirm{color:#ef4444;background:#ef444426}@media (max-width:640px){.stats-modal{max-height:95vh}.stats-header{padding:14px 18px}.stats-body{padding:16px 18px}.stats-footer{padding:12px 18px}}
:root{--bg:#0a0a0a;--surface:#ffffff0a;--surface-hover:#ffffff14;--border:#ffffff26;--border-strong:#ffffff52;--text:#fff;--text-muted:#fff9;--text-subtle:#ffffff59;--accent:#e4b97d;--accent-soft:#e4b97d24;--accent-softer:#e4b97d14;--accent-border:#e4b97d80;--correct:#4ade80;--wrong:#f87171;--radius:6px}.app{background:var(--bg);min-height:100vh;color:var(--text);flex-direction:column;display:flex}.header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:16px 32px;display:flex}.header h1{letter-spacing:-.01em;color:var(--text);font-size:1.25rem;font-weight:500}.brand{align-items:center;margin:0;display:inline-flex}.audio-unlock-banner{color:#e4b97d;cursor:pointer;background:#e4b97d24;border:1px solid #e4b97d8c;border-radius:6px;align-items:center;gap:8px;width:fit-content;margin:0 auto 8px;padding:7px 18px;font-size:.85rem;font-weight:500;transition:background .15s,border-color .15s;display:flex}.audio-unlock-banner:hover{background:#e4b97d38;border-color:#e4b97d}.brand-link{color:inherit;align-items:center;gap:10px;text-decoration:none;transition:opacity .15s;display:inline-flex}.brand-link:hover{opacity:.85}.brand-icon{width:auto;height:1.6em;display:block}.brand-wordmark{font-family:var(--font-wordmark), ui-monospace, SFMono-Regular, Menlo, monospace;letter-spacing:-.02em;color:var(--text);font-size:1.15rem;font-weight:600;line-height:1}.brand-tld{color:var(--accent);font-weight:600}.header-right{align-items:center;gap:12px;display:flex}.settings-btn{border:1px solid var(--border);color:var(--text);border-radius:var(--radius);cursor:pointer;background:0 0;align-items:center;gap:6px;padding:6px 12px;font-size:.85rem;line-height:1;transition:all .15s;display:inline-flex}.settings-btn:hover{border-color:var(--border-strong);background:var(--surface)}.kofi-btn{border-color:var(--accent-border);background:0 0;text-decoration:none}.kofi-btn:hover{background:var(--accent-softer);border-color:var(--accent)}.settings-inline{padding:9px 14px;font-size:.85rem}.volume-control{align-items:center;gap:6px;display:flex}.volume-icon{color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;padding:4px;transition:color .15s,background .15s;display:inline-flex}.volume-icon:hover{color:var(--text);background:var(--surface)}.volume-slider{accent-color:#e4b97d;cursor:pointer;width:100px}.midi-status{color:var(--text-muted);font-size:.8rem}.status-connected{color:var(--correct);align-items:center;gap:6px;display:flex}.status-connected:before{content:"";background:var(--correct);border-radius:50%;width:6px;height:6px}.status-disconnected,.status-error{color:var(--text-subtle)}.main{flex-direction:column;flex:1;gap:20px;padding:24px 32px;display:flex}.content--narrow{width:100%;max-width:1280px;margin-left:auto;margin-right:auto}.controls{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.category-selector,.clef-selector,.mode-selector{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);gap:4px;padding:3px;display:flex}.category-selector button,.clef-selector button,.mode-selector button{color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:4px;padding:6px 14px;font-size:.85rem;transition:all .15s}.category-selector button:not(.active):hover,.clef-selector button:not(.active):hover,.mode-selector button:not(.active):hover{color:var(--text);background:var(--surface)}.ear-action-row{flex-wrap:wrap;justify-content:center;align-items:stretch;gap:12px;margin-top:16px;margin-bottom:16px;display:flex}.ear-action-row>.settings-btn,.ear-action-row>.play-btn{align-items:center;gap:8px;min-height:36px;padding:8px 16px;font-size:.9rem;display:inline-flex}.mode-selector .mode-link{color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:4px;align-items:center;padding:6px 14px;font-size:.85rem;text-decoration:none;transition:all .15s;display:inline-flex}.mode-selector .mode-link:hover{color:var(--text);background:var(--surface)}.category-tab-link{color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:4px;align-items:center;padding:6px 14px;font-size:.85rem;text-decoration:none;transition:all .15s;display:inline-flex}.category-tab-link:hover{color:var(--text);background:var(--surface)}.category-tab-link.active,.category-selector button.active,.clef-selector button.active,.mode-selector button.active{background:var(--accent-soft);color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent-border);font-weight:500}.category-selector button.active:hover,.clef-selector button.active:hover,.mode-selector button.active:hover{background:var(--accent-soft);color:var(--accent)}.progression-selectors{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);gap:4px;padding:3px;display:flex}.prog-select{appearance:none;color:var(--text);cursor:pointer;background-color:#0000;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");background-position:right 10px center;background-repeat:no-repeat;border:none;border-radius:4px;margin:0;padding:6px 30px 6px 14px;font-family:inherit;font-size:.85rem;line-height:normal;transition:background-color .15s}.prog-select:hover{background-color:var(--surface)}.prog-select:focus{background-color:var(--surface);outline:none}.prog-select option{background:var(--bg);color:var(--text)}.chord-types-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:12px}.chord-types-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;display:flex}.chord-types-label{color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;font-size:.8rem}.max-notes-selector{align-items:center;gap:4px;display:flex}.max-notes-label{color:var(--text-muted);margin-right:4px;font-size:.75rem}.max-notes-btn{border:1px solid var(--border);color:var(--text-muted);cursor:pointer;background:0 0;border-radius:4px;padding:4px 8px;font-size:.75rem;transition:all .15s}.max-notes-btn:not(.active):hover{color:var(--text);border-color:var(--border-strong);background:var(--surface)}.max-notes-btn.active{background:var(--accent-soft);color:var(--accent);border-color:var(--accent-border);font-weight:500}.max-notes-btn.active:hover{background:var(--accent-soft);color:var(--accent)}.chord-types-grid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:6px;display:grid}.chord-type-btn{border:1px solid var(--border);color:var(--text-muted);cursor:pointer;text-align:left;background:0 0;border-radius:4px;flex-direction:column;gap:1px;padding:6px 8px;transition:all .15s;display:flex}.chord-type-btn:hover:not(.disabled):not(.active){color:var(--text);border-color:var(--border-strong);background:var(--surface)}.chord-type-btn.active{background:var(--accent-soft);color:var(--accent);border-color:var(--accent-border)}.chord-type-btn.active:hover{background:var(--accent-soft);color:var(--accent)}.chord-type-btn.disabled{opacity:.3;cursor:not-allowed}.chord-type-symbol{font-size:.85rem;font-weight:600}.chord-type-name{opacity:.75;font-size:.7rem}.chord-details{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);text-align:center;padding:16px}.chord-details-label{color:var(--text);margin-bottom:6px;font-size:1.5rem;font-weight:600}.chord-details-counter{color:var(--text-subtle);margin-left:8px;font-size:.85rem;font-weight:400}.chord-details-name{color:var(--text);margin-bottom:4px;font-size:.9rem}.chord-details-breakdown{color:var(--text-muted);margin-bottom:4px;font-size:.8rem;font-style:italic}.chord-details-description{color:var(--text-subtle);font-size:.8rem}.score-board{align-items:center;gap:8px;margin-left:auto;display:flex}.score-item{text-align:center;min-width:56px;padding:4px 10px}.score-value{font-size:1.1rem;font-weight:600;line-height:1;display:block}.score-label{color:var(--text-subtle);text-transform:uppercase;letter-spacing:.05em;margin-top:2px;font-size:.65rem;display:block}.score-item.correct .score-value{color:var(--correct)}.score-item.wrong .score-value{color:var(--wrong)}.score-item.accuracy .score-value,.score-item.streak .score-value{color:var(--text)}.reset-btn{border:1px solid var(--border);color:var(--text-muted);border-radius:var(--radius);cursor:pointer;background:0 0;justify-content:center;align-items:center;padding:6px;transition:all .15s;display:inline-flex}.reset-btn:hover{color:var(--text);border-color:var(--border-strong)}.sheet-toolbar{align-items:center;gap:12px;display:flex}.play-btn{border:1px solid var(--accent-border);background:var(--accent-soft);color:var(--accent);border-radius:var(--radius);cursor:pointer;align-items:center;gap:6px;padding:6px 14px;font-size:.85rem;font-weight:500;line-height:1;transition:background .15s;display:inline-flex}.play-btn:hover{background:#e4b97d38}.play-btn-icon{justify-content:center;align-items:center;width:14px;height:14px;display:inline-flex}.play-btn-label{text-align:left;min-width:42px;display:inline-block}.back-btn{color:#f87171cc;border-radius:var(--radius);cursor:pointer;background:#f871710f;border:1px solid #f8717159;align-items:center;gap:4px;padding:5px 8px;font-size:.78rem;line-height:1;transition:all .15s;display:inline-flex}.back-btn:hover{color:var(--wrong);background:#f871711f;border-color:#f8717199}.back-btn .kbd-hint{color:#f87171b3;background:#0003;border-color:#f8717140}.new-btn{color:var(--text-muted);border-radius:var(--radius);cursor:pointer;background:0 0;border:1px dashed #e4b97d59;align-items:center;gap:6px;padding:7px 12px;font-size:.82rem;font-weight:500;line-height:1;transition:all .15s;display:inline-flex}.new-btn:hover{color:var(--accent);border-color:var(--accent-border);background:var(--accent-softer);border-style:solid}.new-btn:active{transform:rotate(-12deg)scale(.95)}.new-btn-label{letter-spacing:.05em;font-variant-caps:all-small-caps}.kbd-hint{color:#e4b97db3;background:#00000040;border:1px solid #e4b97d40;border-radius:3px;margin-left:4px;padding:1px 6px;font-family:inherit;font-size:.7rem;font-weight:500;line-height:1}.bpm-control{align-items:center;gap:8px;display:flex}.bpm-slider{appearance:none;background:var(--border-strong);cursor:pointer;border-radius:2px;width:100px;height:3px}.bpm-slider::-webkit-slider-thumb{appearance:none;background:var(--accent);cursor:pointer;border-radius:50%;width:12px;height:12px}.bpm-slider::-moz-range-thumb{background:var(--accent);cursor:pointer;border:none;border-radius:50%;width:12px;height:12px}.bpm-display{color:var(--text-muted);font-variant-numeric:tabular-nums;min-width:60px;font-size:.8rem}.sheet-container{flex-direction:column;justify-content:center;align-items:center;gap:12px;min-height:180px;display:flex}.sheet-container>div{justify-content:center;align-items:center;width:100%;display:flex}.sheet-container svg{display:inline-block}.sheet-music-flow,.sheet-music-grand-staff{scroll-padding-inline:20px 180px}.hint{color:#333;margin-top:8px;font-size:.9rem}.sheet-caption{color:var(--text-muted);text-align:center;margin:0;font-size:.85rem}.progression-details{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:4px;height:58px;display:flex}.progression-details-label{align-items:baseline;gap:10px;display:inline-flex}.degree-roman{color:var(--accent);letter-spacing:.02em;font-family:Georgia,serif;font-size:1.5rem;font-weight:700}.degree-name{color:var(--text);font-size:.95rem;font-weight:500}.degree-counter{color:var(--text-subtle);font-variant-numeric:tabular-nums;font-size:.8rem}.degree-function{color:var(--text-subtle);margin:0;font-size:.8rem;font-style:italic}.sheet-correct{box-shadow:0 0 0 2px var(--correct)}.sheet-wrong{box-shadow:0 0 0 2px var(--wrong)}.piano-section{justify-content:center;padding:8px 0;display:flex}.footer{text-align:center;border-top:1px solid var(--border);color:var(--text-subtle);padding:12px 32px;font-size:.8rem}@media (max-width:768px){.header{gap:10px;padding:12px 16px}.header-right{gap:8px}.theory-btn .btn-label,.kofi-btn .btn-label,.stats-header-btn .btn-label,.header-right .btn-label{display:none}.theory-btn,.kofi-btn,.stats-header-btn,.header-right .settings-btn{padding:6px 8px}.main{gap:14px;padding:16px}.footer{padding:10px 16px}.volume-slider{width:70px}.midi-status .btn-label{display:none}.status-connected:before{width:8px;height:8px}.sheet-container{min-height:160px}.chord-types-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}}@media (max-width:480px){.header{gap:6px;padding:10px 12px}.header-right{gap:4px}.volume-slider{display:none}.brand{gap:6px}.brand-wordmark{display:none}.brand-icon{height:1.5em}.main{gap:10px;padding:12px 10px}.controls{justify-content:center;gap:8px}.category-selector button,.clef-selector button,.mode-selector button{padding:5px 10px;font-size:.8rem}.progression-selectors{flex-wrap:wrap}.prog-select{padding:5px 26px 5px 10px;font-size:.8rem}.score-board{justify-content:center;gap:4px;width:100%;margin-left:0}.score-item{min-width:0;padding:2px 8px}.score-label{display:none}.score-value{font-size:1rem}.kbd-hint{display:none}.play-btn{padding:6px 12px;font-size:.8rem}.play-btn-label{min-width:36px}.new-btn{padding:6px 10px}.new-btn-label{display:none}.chord-details{padding:12px}.sheet-container{min-height:140px}.chord-details-label{font-size:1.25rem}.sheet-container{min-height:200px;padding:14px 8px}.chord-types-grid{grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:4px}.chord-type-btn{padding:4px 6px;font-size:.75rem}.chord-types-header{flex-direction:column;align-items:stretch;gap:8px}.max-notes-selector{flex-wrap:wrap}}
