.intro-card {
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.intro-card h2 {
  margin: 0 0 10px;
}

.intro-card p {
  margin: 10px 0 0;
}

.intro-note {
  color: var(--muted);
}

.walk-card,
.reveal-card,
.practice-card,
.recap-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

/* ── Chromatic chip row ────────────────────────────────────── */
.chromatic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chromatic-chip {
  flex: 1 1 auto;
  min-width: 44px;
  text-align: center;
  padding: 10px 8px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
  font-size: 0.92rem;
}

.chromatic-chip.is-gap-chip {
  background: rgba(255, 215, 106, 0.18);
  border-color: rgba(255, 215, 106, 0.55);
  color: #ffe2a6;
}

/* ── Walk the keyboard ─────────────────────────────────────── */
.walk-readout {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  margin: 4px 0 16px;
}

.walk-note {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent);
  min-width: 1.6ch;
  text-align: center;
}

.walk-step {
  color: var(--muted);
  font-weight: 600;
}

.stepper-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.stepper-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--surface-soft);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.stepper-btn:hover,
.stepper-btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.stepper-btn-play {
  background: rgba(78, 204, 163, 0.14);
  border-color: rgba(78, 204, 163, 0.4);
}

.walk-tip {
  margin: 16px 2px 0;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Reveal card ───────────────────────────────────────────── */
.reveal-teaser {
  text-align: center;
  padding: 18px 8px 6px;
}

.reveal-teaser p {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 1.02rem;
}

.piano-wrap.has-brackets {
  padding-bottom: 84px;
}

.reveal-explain {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.explain-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  line-height: 1.6;
}

.explain-block p:last-child {
  margin: 6px 0 0;
}

.mnemonic-callout,
.guitar-contrast {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  line-height: 1.6;
}

.mnemonic-callout {
  background: rgba(255, 215, 106, 0.12);
  border: 1px solid rgba(255, 215, 106, 0.4);
}

.guitar-contrast {
  background: rgba(111, 172, 255, 0.1);
  border: 1px solid rgba(111, 172, 255, 0.35);
}

/* ── Practice card ─────────────────────────────────────────── */
.practice-score strong {
  color: var(--accent);
}

.practice-return-banner {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(111, 172, 255, 0.1);
  border: 1px solid rgba(111, 172, 255, 0.3);
  color: var(--text);
}

.practice-sub {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.practice-sub:first-of-type {
  margin-top: 8px;
  padding-top: 0;
  border-top: none;
}

.practice-sub h3 {
  margin: 0 0 8px;
}

.quiz-question {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 12px 0 14px;
}

.quiz-answer-buttons {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.quiz-choice-btn {
  min-height: 0;
  height: auto;
  padding: 14px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}

/* ── Recap card ────────────────────────────────────────────── */
.recap-mnemonic {
  margin: 16px 2px 0;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 760px) {
  .reveal-explain {
    grid-template-columns: 1fr;
  }

  .walk-note {
    font-size: 2.1rem;
  }
}
