body { min-height: 100vh; background: radial-gradient(ellipse at 50% 15%, #211132, #090511 75%); }
.practice { max-width: 52rem; }
.practice-panel { background: #17101f; border: 1px solid #563866; border-radius: .9rem; padding: clamp(.9rem, 3.2vw, 2rem); }
.practice-panel h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.fields label { display: grid; gap: .4rem; max-width: 24rem; font-weight: 650; }
.fields input, #key-sound { width: 100%; min-height: 2.7rem; border: 1px solid #806b91; border-radius: .4rem; background: #100918; color: inherit; font: inherit; padding: .55rem; }
.entry { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin: 1rem 0; padding: .8rem 1rem; border-radius: .55rem; background: #0e0913; border: 1px solid var(--line); }
.entry h3 { font-size: 1rem; }
.entry #progress { margin: .3rem 0 0; color: var(--accent); }
.keyboard-options { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .55rem 1rem; align-items: end; margin: .8rem 0; }
.practice .key-guide { flex: 1 1 18rem; margin: 0; font-size: .95rem; }
.keyboard-options label { font-size: .9rem; }
#key-sound { width: auto; min-height: 2.4rem; margin-left: .2rem; }
#keyboard { display: grid; gap: .35rem; }
#keyboard:focus-visible, .fields input:focus-visible, #key-sound:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.key-row { display: flex; justify-content: center; gap: .3rem; }
.key { width: calc((100% - 2.7rem) / 10); min-height: 2.9rem; padding: 0; border: 1px solid #715c83; border-radius: .4rem; background: #2b1d36; color: inherit; font: inherit; font-weight: 650; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.key:active { background: #523562; }
.key:focus-visible { outline-offset: 1px; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-top: 1rem; }
.secondary { min-height: 2.7rem; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: .2em; background: transparent; border: 0; cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
#manage { margin-top: .6rem; }
.practice #status { min-height: 1.5em; color: var(--accent); }
@media(max-width: 28rem) {
  .practice { width: calc(100% - 1rem); }
  .practice-panel { padding: .8rem .55rem; }
  .key-row { gap: .15rem; }
  .key { width: calc((100% - 1.35rem) / 10); }
}
