/* Note Flash (Level 3): name the note. Letter Pad = tap the letter; Piano Keys = find the exact key. */
.answer-area { min-height: 120px }

.pad { display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(6px, 1.4vw, 12px) }
.lk { min-height: clamp(66px, 11vw, 92px); border-radius: 18px; border: 3px solid var(--line); background: var(--surface); color: var(--ink);
  box-shadow: 0 6px 0 var(--line); font: 800 clamp(28px, 5vw, 44px)/1 var(--font-display); padding-top: 4px; cursor: pointer;
  touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: transform .05s, box-shadow .05s, background .15s }
.lk:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--line) }
.lk.ok { background: var(--c); color: var(--on-c) }
.lk.no { opacity: .4; animation: shake .35s }

.piano-wrap { background: var(--surface); border: 3px solid var(--line); border-radius: 24px; padding: 14px 14px 16px; box-shadow: 0 5px 0 var(--line); display: flex; flex-direction: column; gap: 10px }
.piano { position: relative; display: flex; height: clamp(150px, 24vw, 210px); touch-action: none; user-select: none; -webkit-user-select: none }
.pk { --c:#ccc; flex: 1; min-width: 0; position: relative; border: 2.5px solid var(--line); border-radius: 0 0 14px 14px; margin-right: -2.5px;
  background: var(--key-white); color: #27213D; box-shadow: inset 0 -8px 0 var(--key-edge); cursor: pointer; padding: 0 0 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; font: inherit }
.pk:last-child { margin-right: 0 }
.pk .nl { font: 800 clamp(16px, 2.6vw, 24px)/1 var(--font-display) }
.hide-letters .pk .nl { visibility: hidden }
.pk.midc { box-shadow: inset 0 -8px 0 var(--key-edge), inset 0 5px 0 #4C8FE0 }
.pk.down { background: color-mix(in srgb, var(--key-edge) 40%, var(--key-white)) }
.pk.ok { background: color-mix(in srgb, var(--c) 55%, var(--key-white)) }
.pk.no, .bk.no { animation: shake .35s }
.pk .mini { width: clamp(34px, 6vw, 54px); height: clamp(34px, 6vw, 54px); overflow: visible; animation: popin .4s cubic-bezier(.3,1.6,.5,1) }
.bk { position: absolute; top: 0; height: 58%; background: var(--key-black); border: 2.5px solid var(--line); border-radius: 0 0 10px 10px; z-index: 2; transform: translateX(-50%); cursor: pointer; padding: 0 }
.bk.down { background: #4A4366 }
.piano-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap }
.piano-foot .tip { margin: 0; font-weight: 700; font-size: 14px; color: var(--ink-soft) }
.piano-foot .seg { box-shadow: none; border-width: 2.5px; border-radius: 12px }
.piano-foot .seg button { min-height: 36px; font-size: 14px }
.lk:disabled, .pk:disabled { cursor: default }
