/* Piano Keys. The card, settings and pills come from key-signature-flashcards.css; the keyboard from piano-kit.css.
   Name the key: the keyboard sits in the card. Find the key: a note name sits in the card and the keyboard is the answer. */
.settings-panel { gap: 10px 18px; padding: 12px 16px; }
.settings-panel .setting-label { font-size: 12px; }
.settings-panel .setting-group { gap: 8px; }
.settings-panel .setting-btn { padding: 8px 12px; }

.flashcard-container { min-height: 250px; }
.flashcard { height: 250px; }
/* Flip sits top left, out of the keyboard's way */
.hint-controls { top: 10px; left: 12px; right: auto; bottom: auto; width: auto; padding: 0; background: none !important; z-index: 3; }
.hint-btn { min-height: 36px; padding: 0 14px; font-size: 13px; }
.pk-stage { width: 100%; display: flex; justify-content: center; align-items: center; margin-top: 34px; }
.pk-stage .pk-host { width: 100%; max-width: 420px; }
.pk-prompt { font: 800 clamp(64px, 14vw, 96px)/1 Inter, system-ui, sans-serif; color: var(--text); letter-spacing: -.02em; text-align: center; }
.app[data-task="find"] .flashcard-container { min-height: 190px; }
.app[data-task="find"] .flashcard { height: 190px; }
.app[data-task="find"] .pk-stage { margin-top: 24px; }

.answers .pk-host { width: 100%; max-width: 560px; margin: 0 auto; }
.answer-detail { margin: 0; font-size: 16px; font-weight: 600; color: var(--text); text-align: center; padding: 0 12px; }
.answer-reveal { font-size: clamp(30px, 7vw, 44px); margin-bottom: 4px; }

@media (max-width: 768px) {
    .settings-panel { gap: 8px; padding: 10px 12px; }
    .settings-panel .setting-group { flex-direction: row; align-items: center; }
    .settings-panel .setting-label { flex: 0 0 52px; font-size: 11.5px; }
    .settings-panel .setting-toggle { flex: 1; flex-wrap: nowrap; }
    .settings-panel .setting-btn { min-width: 0; padding: 8px 4px; }
}
@media (max-width: 600px) {
    /* drill-kit sets the card to 168px on phones; the keyboard needs a little more */
    .app .flashcard-container, .app[data-task="find"] .flashcard-container { min-height: 0; }
    .app #flashcard { height: 222px; }
    .app #flashcard .flashcard-content { padding-bottom: 0; }
    .app #flashcard .hint-controls { top: 8px; left: 8px; right: auto; bottom: auto; }
    .pk-stage { margin-top: 30px; }
    .pk-stage .pk-host { max-width: 100%; }
    .app[data-task="find"] #flashcard { height: 120px; }
    .app[data-task="find"] .pk-stage { margin-top: 22px; }
    .pk-prompt { font-size: 60px; }
    .answer-detail { font-size: 14px; }
}
