[hidden]{display:none!important}
.md-game{display:block}
.md-settings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
#settingsFields{border:0;margin:0;padding:0;min-width:0}
.md-settings label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:800;color:#42546a}
.md-settings select,.md-settings input,.md-editor select{width:100%;border:1px solid var(--line);border-radius:10px;background:#fff;padding:11px;color:var(--ink);font:inherit;min-height:44px}
.md-hint{color:var(--muted);font-size:13px;line-height:1.6;margin-top:7px}
.interval-field{border:1px solid var(--line);border-radius:12px;margin:22px 0 16px;padding:15px 18px}
.interval-field legend{font-size:14px;font-weight:850;padding:0 6px}
.interval-options{display:flex;gap:10px;flex-wrap:wrap}
.interval-options label{display:flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid var(--line);border-radius:9px;min-height:44px;font-weight:700;font-size:14px;background:#f7f9fc}
input[type=checkbox]{accent-color:#183b68;width:18px;height:18px;flex-shrink:0}
.given-positions{display:flex;gap:7px;flex-wrap:wrap}
.given-position{min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:9px;background:white;color:var(--ink);font-weight:800;cursor:pointer}
.given-position[aria-pressed=true]{background:#183b68;color:white;border-color:#183b68}
.count-in{display:flex;align-items:center;gap:8px;font-size:14px;margin-top:18px}
#setupStatus{color:#a83838;font-size:14px;line-height:1.6;margin-top:14px}
.md-body{padding:24px}
.md-instructions{font-size:14px;line-height:1.6;color:var(--muted);margin:0 0 18px}
.md-transport{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}
#audioStatus{color:var(--muted);font-size:13px}
.score-region{overflow-x:auto;border:1px solid var(--line);border-radius:14px;background:white;margin-bottom:20px;-webkit-overflow-scrolling:touch}
.score-scroll-hint{display:none}
#melodyScore{display:block;width:100%;min-width:760px;height:auto;color:#10243e}
.md-note{cursor:ns-resize;touch-action:none}
.md-note.given,.md-note.locked{cursor:default}
.md-note:focus{outline:none}.md-note:focus .note-hit{stroke:#55708f;stroke-width:2;fill:#e5edff80}
.note-hit{fill:transparent;stroke:transparent}
.md-note.selected .note-hit{fill:#e5edff66;stroke:#55708f;stroke-width:1.5}
.md-note.playing .note-hit{fill:#fff0dc;stroke:#b37a2b;stroke-width:1.5}
.md-editor{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.md-editor label{font-size:13px;font-weight:800}.md-editor select{width:auto;max-width:240px;flex:1}
.selected-status{min-height:26px;margin:12px 0;color:#52677f;font-size:14px}
.md-editor button,.md-transport button,.actions button{min-height:44px}
button:disabled{opacity:.55;cursor:default}
.feedback{line-height:1.6}
.md-feedback-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0;list-style:none;font-size:14px}
.md-feedback-list li{padding:12px;border-radius:10px;background:#f2f5f9;color:#42546a}
.md-feedback-list li.right{background:#eaf7f0;color:#145c3d}.md-feedback-list li.wrong{background:#fff0f0;color:#a83838}
body.present .md-body{padding:20px}body.present .md-instructions{font-size:17px}body.present .md-game{min-height:calc(100vh - 28px)}
body.present #exerciseTitle{font-size:24px}body.present .md-editor button{font-size:16px}body.present .resultCard{display:block!important}
body.present #melodyScore{min-width:900px}body.present .score-region{max-height:60vh}
.actions{flex-wrap:wrap}
@media(max-width:850px){.md-settings{grid-template-columns:repeat(2,minmax(0,1fr))}.score-scroll-hint{display:block;margin:-8px 0 18px}}
@media(max-width:560px){.md-settings{grid-template-columns:1fr}.md-body{padding:16px 12px}.md-editor select{max-width:none;flex-basis:65%}.md-editor button{flex:1 1 40%}.md-feedback-list{grid-template-columns:1fr}.gamehead{flex-direction:column;align-items:flex-start}.interval-field{padding:12px}.md-editor{gap:8px}.md-transport button{flex:1}}

.md-difficulty-description{background:#eef3fa;border-left:4px solid #183b68;padding:16px;border-radius:8px;color:#183b68;line-height:1.6;margin:20px 0}.md-build{min-height:44px;margin-bottom:20px}#customSettings h3{margin:0 0 18px;font-size:18px}
