/* ============================================================
   LOUDBLOOM · App styles
   Component primitives + mobile screens + responsive device shell
   + the Rhythmus-Übung (rhythm trainer) UI.
   Built on the design-system tokens (styles/styles.css).
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--blue-100);
  background-image: radial-gradient(var(--blue-200) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  font-family: var(--font-sans);
}

/* ============================================================
   Splash — design-system campaign poster (wordmark lockup)
   ============================================================ */
.splash { position: absolute; inset: 0; z-index: 45; background: var(--grad-hero); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .34s var(--ease-out); }
.splash--leaving { opacity: 0; }
.splash__stack { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 24px;
  animation: splash-in .6s var(--ease-out) both; }
.splash__word { font-family: var(--font-wordmark); font-weight: 900; letter-spacing: -.04em; line-height: 1; font-size: 40px; color: var(--ink); }
.splash__note { height: 264px; width: auto; display: block; transform-origin: 50% 60%; animation: splash-note-float 3.4s var(--ease-in-out) infinite; }
/* gentle sway — colour is untouched, the note just moves a little */
@keyframes splash-note-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-5px) rotate(1.2deg); }
}
.splash__tag { font-family: 'Montserrat', var(--font-display); font-weight: 800; font-size: 25px; line-height: 1.12; letter-spacing: -.02em; color: var(--ink); text-align: center; }
@keyframes splash-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .splash__stack, .splash__sig, .splash__note { animation: none; } }

/* ---------- Onboarding ("What describes you best?") ---------- */
.onboard { position: absolute; inset: 0; z-index: 44; padding-top: 54px;
  background: linear-gradient(180deg, var(--blue-300) 0%, var(--blue-500) 70%, var(--blue-600) 100%);
  display: flex; flex-direction: column; animation: splash-in .4s var(--ease-out) both; }
.onboard__inner { flex: 1; display: flex; flex-direction: column; padding: 28px 22px 32px; overflow-y: auto; }
.onboard__brand { display: flex; align-items: center; gap: 8px; }
.onboard__brand img { height: 22px; }
.onboard__brand span { font-family: var(--font-wordmark); font-weight: 900; font-size: 18px; letter-spacing: .01em; color: var(--ink); }
.onboard__eyebrow { font-family: var(--font-serif); font-style: italic; font-size: 18px; color: var(--blue-900); margin-top: 34px; }
.onboard__h1 { font-family: var(--font-marker); font-weight: 400; font-size: 31px; letter-spacing: 0; line-height: 1.15; color: var(--text-strong); margin: 8px 0 0; }
.onboard__sub { font-size: 15px; color: var(--text-body); margin: 10px 0 0; }
.onboard__opts { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.onboard__opt { display: flex; align-items: center; gap: 16px; text-align: left; cursor: pointer; width: 100%;
  background: linear-gradient(150deg, #142A45 0%, #0C1726 100%); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: 18px 18px; transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.onboard__opt:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: rgba(85,187,249,.55); }
.onboard__opt:active { transform: scale(.99); }
.onboard__ic { flex: none; width: 58px; height: 58px; border-radius: var(--radius-md); object-fit: cover; border: 1px solid rgba(255,255,255,.16); }
.onboard__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.onboard__t { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; color: #fff; }
.onboard__d { font-size: 13px; color: rgba(255,255,255,.62); }
.onboard__chev { color: rgba(255,255,255,.5); width: 20px; flex: none; }
.onboard__skip { margin-top: auto; align-self: center; background: none; border: none; cursor: pointer; padding: 12px;
  font-family: var(--font-sans); font-weight: 600; font-size: 14px; color: var(--blue-900); }

/* ---------- Buttons ---------- */
.lb-btn {
  --_bg: var(--brand); --_fg: var(--brand-contrast); --_bg-h: var(--brand-hover);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; white-space: nowrap;
  border: none; cursor: pointer; text-decoration: none;
  background: var(--_bg); color: var(--_fg);
  border-radius: var(--radius-pill);
  height: var(--control-md); padding: 0 22px; font-size: 15px;
  transition: var(--t-color), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.lb-btn:hover { background: var(--_bg-h); transform: translateY(-1px); }
.lb-btn:active { transform: scale(0.97); }
.lb-btn[disabled] { opacity: .45; pointer-events: none; transform: none; }
.lb-btn--lg { height: var(--control-lg); padding: 0 30px; font-size: 16px; }
.lb-btn--full { width: 100%; }
.lb-btn--primary:hover { box-shadow: var(--shadow-brand); }
.lb-btn--solid   { --_bg: var(--solid); --_fg: var(--solid-contrast); --_bg-h: var(--solid-hover); }
.lb-btn--ghost   { --_bg: transparent; --_fg: var(--text-strong); --_bg-h: var(--surface-sunken); }
.lb-btn--outline { background: transparent; color: var(--text-strong); box-shadow: inset 0 0 0 var(--border-thin) var(--border-strong); }
.lb-btn--outline:hover { background: var(--surface-sunken); box-shadow: inset 0 0 0 var(--border-thin) var(--text-strong); transform: translateY(-1px); }
.lb-btn__icon { display: inline-flex; width: 1.15em; height: 1.15em; }
.lb-btn__icon svg { width: 100%; height: 100%; }

/* ---------- Badge ---------- */
.lb-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-weight: 700;
  font-size: 11px; letter-spacing: var(--ls-caps); text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--radius-pill); line-height: 1; white-space: nowrap;
}
.lb-badge--soft-blue { background: var(--brand-soft); color: var(--blue-700); }
.lb-badge--soft-lime { background: var(--accent-soft); color: var(--lime-700); }
.lb-badge--solid-ink { background: var(--ink); color: var(--n-0); }
.lb-badge--success { background: var(--success-bg); color: var(--success); }

/* ---------- Capsule ---------- */
.lb-capsule {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-sans); font-weight: 600; font-size: 14px;
  color: var(--text-strong); background: var(--surface-card);
  border-radius: var(--radius-pill); padding: 8px 14px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-subtle); line-height: 1;
}
.lb-capsule__icon { display: inline-flex; width: 16px; height: 16px; color: var(--brand-hover); }
.lb-capsule__icon svg { width: 100%; height: 100%; }

/* ---------- Avatar ---------- */
.lb-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill); overflow: hidden;
  font-family: var(--font-display); font-weight: 700; color: var(--ink);
  background: var(--brand); flex: none; width: 34px; height: 34px; font-size: 13px;
  box-shadow: 0 0 0 2px var(--surface-card), 0 0 0 4px var(--accent);
}

/* ---------- Progress ---------- */
.lb-progress { width: 100%; }
.lb-progress__track { width: 100%; height: 8px; background: var(--surface-inset); border-radius: var(--radius-pill); overflow: hidden; }
.lb-progress__fill { height: 100%; border-radius: var(--radius-pill); background: var(--brand); transition: width var(--dur-slow) var(--ease-out); }
.lb-progress--lime .lb-progress__fill { background: var(--accent); }
.lb-progress__meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.lb-progress__label { font-size: 13px; font-weight: 600; color: var(--text-body); }
.lb-progress__value { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

/* ============================================================
   Responsive device shell
   Desktop: floating iOS-style frame on the dotted blue field.
   Mobile : full-bleed app, no frame.
   ============================================================ */
.stage {
  min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 32px;
}
.device {
  width: 402px; height: 860px; max-height: calc(100vh - 64px);
  border-radius: 48px; overflow: hidden; position: relative; background: #F2F2F7;
  box-shadow: 0 40px 80px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.12);
}
.device__island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 126px; height: 37px; border-radius: 24px; background: #000; z-index: 50; }
.device__status { position: absolute; top: 0; left: 0; right: 0; height: 54px; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; }
.device__status .t { font-weight: 600; font-size: 15px; color: var(--ink); margin-top: 6px; }
.device__status .r { display: flex; gap: 6px; margin-top: 6px; color: var(--ink); }

@media (max-width: 520px) {
  body { background: var(--blue-50); background-image: none; }
  .stage { padding: 0; }
  .device { width: 100%; height: 100dvh; max-height: none; border-radius: 0; box-shadow: none; }
  /* on a real phone the OS already shows the island + status bar — hide our fake ones */
  .device__island, .device__status { display: none; }
  /* top padding becomes the real safe area (notch / island) */
  .mb { padding-top: max(16px, env(safe-area-inset-top)); }
}

/* ============================================================
   Mobile app screens
   ============================================================ */
.mb { height: 100%; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--blue-300) 0%, var(--blue-500) 62%, var(--blue-600) 100%); background-attachment: local; color: var(--text-body); padding-top: 54px; }

/* deep "studio" blue — matches the design-system 9:16 video quiz frame
   (subtle highlight up top, deepening to blue-900 like the reel) */
.mb--deep { background:
  radial-gradient(120% 65% at 30% 0%, rgba(143,211,255,.16) 0%, transparent 48%),
  linear-gradient(160deg, var(--blue-700) 0%, var(--blue-800) 55%, var(--blue-900) 100%); }
.mb--deep .mb-back { color: #fff; }
.mb--deep .mb-prose { color: rgba(255,255,255,.86); }
.mb--deep .mb-sech { color: #fff; }
.mb--deep .mb-sech .link { color: rgba(255,255,255,.82); }
.mb__scroll { flex: 1; overflow-y: auto; padding: 8px 18px 104px; }
.mb__scroll::-webkit-scrollbar { display: none; }

.mb-head { display: flex; align-items: center; gap: 10px; padding: 6px 4px 14px; }
.mb-head__brand { display: flex; align-items: center; gap: 8px; }
.mb-head__brand img { height: 22px; }
.mb-head__brand span { font-family: var(--font-wordmark); font-weight: 900; font-size: 18px; letter-spacing: .01em; color: var(--ink); }
.mb-head__sp { flex: 1; }
.mb-you { width: 36px; height: 36px; flex: none; border-radius: 999px; cursor: pointer;
  background: var(--surface-card); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center; color: var(--blue-700); margin-left: 2px;
  transition: transform var(--dur-fast) var(--ease-out); }
.mb-you:hover { transform: translateY(-1px); }
.mb-you svg { width: 19px; height: 19px; }
.mb-back { display: flex; align-items: center; gap: 6px; padding: 6px 4px 14px; color: var(--text-body); font-weight: 600; font-size: 15px; background: none; border: none; cursor: pointer; }
.mb-back svg { width: 20px; height: 20px; }

.mb-eyebrow { font-family: var(--font-serif); font-style: italic; font-size: 17px; color: var(--blue-900); }
.mb-h1 { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; color: var(--text-strong); margin: 2px 0 0; line-height: 1.05; }
.mb-sech { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--text-strong); margin: 22px 0 12px; display: flex; align-items: center; justify-content: space-between; }
.mb-sech .link { font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--blue-900); cursor: pointer; }

/* resume card */
.mb-resume { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-card); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-sm); margin-top: 14px; cursor: pointer; }
.mb-resume__media { position: relative; aspect-ratio: 16/9; background: var(--grad-thumb); display: flex; align-items: center; justify-content: center; }
.mb-resume__media img { width: 26%; }
.mb-resume__play { position: absolute; width: 52px; height: 52px; border-radius: 999px; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); }
.mb-resume__play svg { width: 22px; height: 22px; }
.mb-resume__b { padding: 14px 16px 16px; }
.mb-resume__k { font-weight: 700; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-hover); }
.mb-resume__t { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--text-strong); margin: 2px 0 10px; }

/* category chips */
.mb-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.mb-chip { display: flex; align-items: center; gap: 8px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); padding: 9px 14px; font-size: 13px; font-weight: 600; color: var(--text-body); cursor: pointer; transition: var(--t-color), transform var(--dur-fast) var(--ease-out); }
.mb-chip:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.mb-chip.active { background: var(--ink); color: var(--n-0); border-color: var(--ink); }
.mb-chip .dot { width: 8px; height: 8px; border-radius: 999px; }

/* exercise / lesson row */
.mb-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; }
.mb-row + .mb-row { border-top: 1px solid var(--border-subtle); }
.mb-row__thumb { width: 76px; height: 56px; flex: none; border-radius: var(--radius-md); background: var(--grad-thumb); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; color: var(--ink); }
.mb-row__thumb img { width: 34%; }
.mb-row__thumb svg { width: 22px; height: 22px; }
.mb-row__lock { position: absolute; inset: 0; background: rgba(12,14,18,.45); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.mb-row__lock svg { width: 18px; height: 18px; }
.mb-row__b { min-width: 0; flex: 1; }
.mb-row__k { font-weight: 700; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-hover); }
.mb-row__t { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--text-strong); line-height: 1.15; }
.mb-row__m { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.mb-row__chev { color: var(--text-subtle); width: 18px; flex: none; }

/* tab bar */
.mb-tabs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; padding: 10px 24px 26px; gap: 4px;
  background: color-mix(in srgb, var(--blue-600) 80%, transparent); backdrop-filter: blur(14px); border-top: 1px solid rgba(255,255,255,.18); }
.mb-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: none; cursor: pointer; color: rgba(255,255,255,.65); font-size: 10px; font-weight: 600; }
.mb-tab svg { width: 23px; height: 23px; }
.mb-tab.active { color: #fff; }

/* sticky CTA */
.mb-cta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 40; padding: 14px 18px 26px; display: flex; gap: 10px;
  background: color-mix(in srgb, var(--blue-600) 80%, transparent); backdrop-filter: blur(14px); border-top: 1px solid rgba(255,255,255,.18); }

.mb-prose { color: var(--text-body); font-size: 15px; line-height: 1.6; margin-top: 12px; }

/* outline button reads on the deep-blue CTA bar */
.mb-cta .lb-btn--outline { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.mb-cta .lb-btn--outline:hover { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1.5px #fff; }

/* ============================================================
   Home hero (mirrors the marketing homepage) — on the blue canvas
   ============================================================ */
.mb-hero { text-align: center; padding: 14px 0 6px; }
.mb-hero__lockup { display: flex; align-items: center; justify-content: center; gap: 10px; }
.mb-hero__lockup img { height: 30px; }
.mb-hero__lockup img.flip { transform: scaleX(-1); }
.mb-hero__word { font-family: var(--font-wordmark); font-weight: 900; font-size: 30px; letter-spacing: .01em; color: var(--ink); margin: 0; line-height: 1; }
.mb-hero__tag { font-family: 'Inter', var(--font-sans); font-size: 14px; color: var(--blue-900); margin: 8px 0 0; }
.mb-companion { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 16px; text-decoration: none; }
.mb-companion__label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(12,14,18,.6); }
.mb-companion__jb { height: 26px; }
.mb-hero__sub { font-size: 15px; line-height: 1.5; color: var(--text-body); max-width: 300px; margin: 16px auto 0; }
.mb-hero__cap { display: flex; justify-content: center; margin-top: 16px; }

/* ============================================================
   Offering / lesson cards
   ============================================================ */
.mb-offers { display: flex; flex-direction: column; gap: 14px; }
.mb-offer { display: block; text-align: left; width: 100%; padding: 0; cursor: pointer; overflow: hidden;
  background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.mb-offer:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mb-offer:active { transform: scale(0.99); }
.mb-offer__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.mb-offer__photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.mb-offer__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,14,18,0) 40%, rgba(12,14,18,.35)); }

/* locked Pro categories — colour photo, slightly blurred, lock + PRO */
.mb-offer__media.is-locked .mb-offer__photo { filter: blur(3px); transform: scale(1.1); }
.mb-offer__media.is-locked .mb-offer__scrim { background: linear-gradient(180deg, rgba(12,14,18,.32), rgba(12,14,18,.5)); }
.mb-offer__lockwrap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; pointer-events: none; }
.mb-offer__lockwrap svg { width: 44px; height: 44px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.45)); }
.mb-offer__lockwrap span { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .18em; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.mb-offer__tag { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--radius-pill); }
.mb-offer__tag svg { width: 12px; height: 12px; }
.mb-offer__tag.free { background: var(--surface-card); color: var(--blue-700); }
.mb-offer__tag.pro { background: var(--ink); color: #fff; }
.mb-offer__play { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 999px; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); }
.mb-offer__play svg { width: 22px; height: 22px; }
.mb-offer__lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(12,14,18,.5); color: #fff; }
.mb-offer__lock .ring { width: 46px; height: 46px; border-radius: 999px; border: 2px solid rgba(255,255,255,.6); display: flex; align-items: center; justify-content: center; }
.mb-offer__lock span { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .12em; }
.mb-offer__b { padding: 14px 16px 16px; }
.mb-offer__t { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; color: var(--text-strong); line-height: 1.15; }
.mb-offer__d { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); margin-top: 6px; }
.mb-offer__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.mb-offer__count { font-size: 12px; font-weight: 600; color: var(--text-subtle); }
.mb-offer__explore { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--blue-700); }
.mb-offer__explore svg { width: 15px; height: 15px; }
.mb-offer__counter { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.mb-offer__counter svg { width: 14px; height: 14px; }

.mb-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.mb-tag { font-size: 11px; font-weight: 600; color: var(--blue-700); background: var(--brand-soft); border-radius: var(--radius-pill); padding: 3px 9px; }

/* in-category lesson card — design-system LessonCard (gradient thumb + note + progress) */
.lb-lesson { display: flex; flex-direction: column; width: 100%; text-align: left; padding: 0; cursor: pointer; overflow: hidden;
  background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.lb-lesson:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border-default); }
.lb-lesson:active { transform: scale(0.99); }
.lb-lesson__thumb { position: relative; aspect-ratio: 16 / 9; background: var(--grad-thumb); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lb-lesson__watermark { width: 25%; max-width: 84px; opacity: .92; filter: drop-shadow(0 4px 12px rgba(0,0,0,.18)); }
/* video frame thumbnail + title overlay */
.lb-lesson__thumb.has-cover { background: #000; }
.lb-lesson__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lb-lesson__cover-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,14,18,.18) 0%, transparent 28%, transparent 48%, rgba(12,14,18,.82) 100%); }
.lb-lesson__vtitle { position: absolute; left: 16px; right: 16px; bottom: 15px; font-family: var(--font-marker); font-weight: 400; font-size: 25px; line-height: 1.08; letter-spacing: .005em; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.6); text-align: left; }
.lb-lesson__play { position: absolute; width: 50px; height: 50px; border-radius: 999px; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); }
.lb-lesson__play svg { width: 21px; height: 21px; }
.lb-lesson__lock { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 999px; background: rgba(12,14,18,.78); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.lb-lesson__lock svg { width: 15px; height: 15px; }
.lb-lesson__dur { position: absolute; right: 10px; bottom: 10px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; background: rgba(12,14,18,.78); color: #fff; padding: 3px 8px; border-radius: var(--radius-pill); }
.lb-lesson__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.lb-lesson__kick { font-weight: 700; font-size: 11px; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--brand-hover); }
.lb-lesson__title { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.18; color: var(--text-strong); letter-spacing: var(--ls-tight); }
.lb-lesson__meta { font-size: 13px; line-height: 1.45; color: var(--text-muted); margin-top: 2px; }
.lb-lesson__prog { margin-top: 12px; }
.lb-lesson__track { height: 6px; background: var(--surface-inset); border-radius: 999px; overflow: hidden; }
.lb-lesson__fill { height: 100%; background: var(--brand); border-radius: 999px; transition: width var(--dur-slow) var(--ease-out); }
.lb-lesson__progmeta { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--text-subtle); font-family: var(--font-mono); }

/* category header */
.mb-cathead { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 2 / 1; background-size: cover; background-position: center; display: flex; align-items: flex-end; box-shadow: var(--shadow-md); }
.mb-cathead__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,14,18,0) 30%, rgba(12,14,18,.65)); }
.mb-cathead__b { position: relative; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.mb-cathead__t { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; color: #fff; margin: 0; line-height: 1.05; }

.mb-lockbanner { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface-card); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-sm); }
.mb-lockbanner .l { display: flex; align-items: center; gap: 10px; }
.mb-lockbanner .l svg { width: 20px; height: 20px; color: var(--blue-700); flex: none; }
.mb-lockbanner .l p { margin: 0; font-size: 13px; color: var(--text-body); }

/* player (video lesson detail) */
.mb-video { border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: var(--shadow-md); }
.mb-video video { display: block; width: 100%; max-height: 60vh; background: #000; }
.mb-player { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mb-player__scrim { position: absolute; inset: 0; background: rgba(12,14,18,.28); }
.mb-player__big { position: relative; width: 60px; height: 60px; border-radius: 999px; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); }
.mb-player__big svg { width: 26px; height: 26px; }

/* ============================================================
   Rhythmus-Übung — the rhythm trainer
   ============================================================ */
.rx-stage {
  position: relative; border-radius: var(--radius-xl); overflow: hidden; margin-top: 4px;
  background:
    radial-gradient(135% 95% at 50% -18%, rgba(85,187,249,.26), transparent 58%),
    radial-gradient(120% 110% at 90% 118%, rgba(85,187,249,.13), transparent 55%),
    linear-gradient(180deg, #151B24 0%, #0B0E13 52%, #06080B 100%);
  padding: 24px 18px 22px; color: #fff;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -40px 60px rgba(0,0,0,.35),
    0 22px 50px rgba(0,0,0,.45), 0 3px 10px rgba(0,0,0,.35);
}
/* faint glassy sheen across the top */
.rx-stage::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 42%;
  background: linear-gradient(180deg, rgba(255,255,255,.05), transparent);
  pointer-events: none;
}
.rx-stage > * { position: relative; }
.rx-stage__top { display: flex; align-items: center; justify-content: space-between; }
.rx-meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: rgba(255,255,255,.7); }
.rx-meta b { color: #fff; }
.rx-sig { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff; display: flex; align-items: center; gap: 6px; }

/* beat dots */
.rx-beats { display: flex; gap: 12px; justify-content: center; margin: 26px 0 8px; }
.rx-beat { flex: 1; max-width: 56px; aspect-ratio: 1; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.13); box-shadow: inset 0 1px 0 rgba(255,255,255,.10), inset 0 -3px 8px rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 700; font-size: 15px; color: rgba(255,255,255,.55);
  transition: transform var(--dur-fast) var(--ease-spring), background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.rx-beat.on { background: var(--brand); border-color: var(--brand); color: var(--ink); transform: scale(1.14); box-shadow: 0 0 0 6px rgba(85,187,249,.22); }
.rx-beat.one.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(201,245,66,.22); }

.rx-readout { text-align: center; min-height: 30px; margin-top: 6px; }
.rx-judge { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.01em; line-height: 1; }
.rx-judge.perfect { color: var(--accent); }
.rx-judge.good { color: var(--brand); }
.rx-judge.off { color: #FF9AA0; }
.rx-judge.idle { color: rgba(255,255,255,.55); font-family: var(--font-sans); font-weight: 500; font-size: 14px; }

/* tap pad */
.rx-pad { width: 100%; margin-top: 16px; height: 92px; border-radius: var(--radius-md);
  background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.18); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .02em;
  display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-spring), background var(--dur-fast) var(--ease-out); }
.rx-pad:active { transform: scale(0.98); background: rgba(255,255,255,.12); }
.rx-pad.tapped { background: var(--brand); border-color: var(--brand); color: var(--ink); transform: scale(0.98); transition: none; }
.rx-pad:disabled { opacity: .45; cursor: default; }
.rx-pad svg { width: 22px; height: 22px; }
.rx-pad__logo { height: 30px; width: auto; display: block; pointer-events: none; transition: transform var(--dur-fast) var(--ease-spring); }
.rx-pad:active .rx-pad__logo { transform: scale(0.9); }
.rx-pad.tapped .rx-pad__logo { transform: scale(0.92); }

/* transport row */
.rx-transport { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.rx-play { width: 56px; height: 56px; flex: none; border-radius: 999px; background: #fff; color: var(--ink); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); transition: transform var(--dur-fast) var(--ease-spring); }
.rx-play:active { transform: scale(0.94); }
.rx-play svg { width: 26px; height: 26px; }
.rx-tempo { flex: 1; }
.rx-tempo__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.rx-tempo__lbl { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.rx-tempo__bpm { font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: #fff; }
.rx-range { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 999px; background: rgba(255,255,255,.22); outline: none; }
.rx-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 999px; background: var(--brand); cursor: pointer; border: 2px solid #fff; }
.rx-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 999px; background: var(--brand); cursor: pointer; border: 2px solid #fff; }

/* accuracy stat under stage */
.rx-stat { display: flex; gap: 10px; margin-top: 14px; }
.rx-stat__card { flex: 1; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 12px 14px; }
.rx-stat__k { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-subtle); }
.rx-stat__v { font-family: var(--font-mono); font-weight: 700; font-size: 22px; color: var(--text-strong); margin-top: 2px; }
.rx-stat__v small { font-size: 13px; color: var(--text-muted); }

/* metronome (Practice Partner) */
.met-bpm { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 18px 0 6px; }
.met-bpm__n { font-family: var(--font-mono); font-weight: 700; font-size: 52px; line-height: 1; color: #fff; letter-spacing: -.02em; }
.met-bpm__u { font-family: var(--font-sans); font-weight: 700; font-size: 13px; letter-spacing: .1em; color: rgba(255,255,255,.6); }
.met-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.met-step { width: 38px; height: 38px; flex: none; border-radius: 999px; cursor: pointer; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.2); color: #fff; display: flex; align-items: center; justify-content: center; transition: transform var(--dur-fast) var(--ease-spring), background var(--dur-fast) var(--ease-out); }
.met-step:hover { background: rgba(255,255,255,.18); }
.met-step:active { transform: scale(.92); }
.met-step svg { width: 18px; height: 18px; }
.met-sig { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.met-sig__b { padding: 7px 14px; border-radius: var(--radius-pill); cursor: pointer; font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.16); color: rgba(255,255,255,.75); }
.met-sig__b.on { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.met-play { width: 100%; margin-top: 18px; height: 54px; border-radius: var(--radius-pill); cursor: pointer; border: none;
  background: #fff; color: var(--ink); font-family: var(--font-sans); font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: var(--shadow-lg); transition: transform var(--dur-fast) var(--ease-spring); }
.met-play:active { transform: scale(.98); }
.met-play svg { width: 22px; height: 22px; }
.met-visual-btn { width: 100%; margin-top: 10px; height: 44px; border-radius: var(--radius-pill); cursor: pointer;
  background: transparent; border: 1.5px solid rgba(255,255,255,.28); color: #fff;
  font-family: var(--font-sans); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background var(--dur-fast) var(--ease-out); }
.met-visual-btn:hover { background: rgba(255,255,255,.1); }
.met-visual-btn svg { width: 17px; height: 17px; }
.met-actions { display: flex; gap: 10px; margin-top: 10px; }
.met-actions .met-visual-btn { margin-top: 0; }
.met-visual-btn.tapped { background: var(--brand); border-color: var(--brand); color: var(--ink); transform: scale(0.97); transition: none; }

/* fullscreen visual beat */
.met-visual { position: absolute; inset: 0; z-index: 80; background: #000; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  transition: background-color 160ms var(--ease-out); }
.met-visual.flash { background: var(--blue-700); }      /* beats 2,3,4 — blue */
.met-visual.flash.one { background: var(--accent); }    /* the "1" — lime green, like the normal-mode downbeat */
.met-visual__logo { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.met-visual__logo img { height: 130px; width: auto; transition: transform 120ms var(--ease-spring); }
.met-visual.flash .met-visual__logo img { transform: scale(1.06); }
.met-visual__logo span { font-family: var(--font-wordmark); font-weight: 900; font-size: 30px; letter-spacing: .02em; color: #fff; }
.met-visual__meta { font-family: var(--font-mono); font-size: 14px; color: rgba(255,255,255,.72); letter-spacing: .04em; }
.met-visual__hint { position: absolute; bottom: 44px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.met-visual__close { position: absolute; top: 58px; right: 22px; width: 42px; height: 42px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.14); border: none; color: #fff; display: flex; align-items: center; justify-content: center; }
.met-visual__close svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .met-visual { transition: none; } .met-visual__logo img { transition: none; } }

/* ---- Rhythm Reading · immersive focus screen ---- */
.rr-focus { position: absolute; inset: 0; z-index: 80; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  padding: 76px 26px 40px;
  background: radial-gradient(125% 95% at 50% -8%, var(--blue-600) 0%, var(--blue-700) 52%, #0A1622 100%);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.rr-focus * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.rr-focus__logo img, .rr-focus .mb-staff { -webkit-user-drag: none; }
.rr-focus__close { position: absolute; top: 54px; right: 22px; width: 42px; height: 42px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.16); border: none; color: #fff; display: flex; align-items: center; justify-content: center; z-index: 2; }
.rr-focus__close svg { width: 20px; height: 20px; }
.rr-focus__head { position: absolute; top: 60px; left: 26px; display: flex; flex-direction: column; gap: 2px; }
.rr-focus__group { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: #fff; }
.rr-focus__count { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.7); letter-spacing: .03em; }
.rr-focus .mb-staff { width: 100%; max-width: 380px; box-shadow: 0 18px 50px rgba(8,18,30,.4); }
.rr-focus__logo { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; cursor: pointer;
  background: transparent; border: none; padding: 8px 24px; -webkit-tap-highlight-color: transparent; }
.rr-focus__ring { display: flex; align-items: center; justify-content: center; width: 198px; height: 198px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.45); transition: transform 120ms var(--ease-spring), border-color 120ms ease; }
.rr-focus__logo:active .rr-focus__ring { transform: scale(.95); border-color: rgba(255,255,255,.85); }
.rr-focus__ring img { height: 150px; width: auto; filter: drop-shadow(0 10px 26px rgba(8,18,30,.35)); }
.rr-focus__logo > span { font-family: var(--font-wordmark); font-weight: 900; font-size: 30px; letter-spacing: .02em; color: #fff; }
.rr-focus__hint { position: absolute; top: -52px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none;
  animation: rrHintBob 900ms ease-in-out infinite; }
.rr-focus__hint b { font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--accent);
  background: rgba(12,14,18,.55); padding: 5px 12px; border-radius: 999px; letter-spacing: .01em; white-space: nowrap; }
.rr-focus__hint svg { width: 22px; height: 22px; color: var(--accent); }
@keyframes rrHintBob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }
.rr-focus__readout { min-height: 26px; text-align: center; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.9); }
.rr-focus__score { font-family: var(--font-mono); font-weight: 700; font-size: 30px; color: var(--ink); }
.rr-focus__score small { font-size: 16px; opacity: .8; }
.rr-focus__score em { font-style: normal; font-size: 18px; color: rgba(255,255,255,.85); }
.rr-focus__ctrl { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 380px; }
.rr-focus__nav { width: 52px; height: 52px; flex: none; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.16); border: none; color: #fff; display: flex; align-items: center; justify-content: center; }
.rr-focus__nav svg { width: 22px; height: 22px; }
.rr-focus__nav:disabled { opacity: .4; cursor: default; }
.rr-focus__play { flex: 1; height: 56px; border-radius: var(--radius-pill); cursor: pointer; border: none;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: var(--ink-strong, #0C0E12); font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.rr-focus__play:disabled { opacity: .6; cursor: default; }
.rr-focus__play svg { width: 18px; height: 18px; }
.rr-focus__tempo { display: flex; align-items: center; gap: 14px; margin-top: 2px; }
.rr-focus__tempo button { width: 38px; height: 38px; border-radius: 999px; cursor: pointer; border: none;
  background: rgba(255,255,255,.16); color: #fff; display: flex; align-items: center; justify-content: center; }
.rr-focus__tempo button svg { width: 18px; height: 18px; }
.rr-focus__bpm { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; min-width: 96px; text-align: center;
  text-transform: uppercase; color: rgba(255,255,255,.78); }
@media (prefers-reduced-motion: reduce) { .rr-focus__ring { transition: none; } .rr-focus__hint { animation: none; } }

/* ---- EXPERT: full-page étude, tap pad docked at the bottom ---- */
.rx-expert { position: absolute; inset: 0; z-index: 80; display: flex; flex-direction: column;
  background: radial-gradient(120% 80% at 50% -10%, var(--blue-600) 0%, var(--blue-700) 46%, #0A1622 100%);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.rx-expert * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.rx-expert__top { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 54px 20px 8px; }
.rx-expert__top .mb-back { margin: 0; color: #fff; }
.rx-expert__badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-display); font-weight: 800;
  font-size: 11px; letter-spacing: .12em; color: var(--ink-strong, #0C0E12); background: var(--accent);
  padding: 5px 10px; border-radius: 999px; }
.rx-expert__badge svg { width: 13px; height: 13px; }
.rx-expert__pick { flex: none; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 2px 20px 6px; }
.rx-expert__pickbtn { width: 34px; height: 34px; border-radius: 999px; cursor: pointer; border: none;
  background: rgba(255,255,255,.14); color: #fff; display: flex; align-items: center; justify-content: center; }
.rx-expert__pickbtn svg { width: 18px; height: 18px; }
.rx-expert__pickbtn:disabled { opacity: .35; cursor: default; }
.rx-expert__picklabel { font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; color: #fff; min-width: 110px; text-align: center; }
.rx-expert__sheet { flex: 1; overflow-y: auto; padding: 6px 16px 14px; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; }
.rx-expert__paper { background: #fff; border-radius: 16px; padding: 22px 16px; display: flex; flex-direction: column; gap: 14px;
  margin: auto 0; box-shadow: 0 18px 50px rgba(8,18,30,.4); }
.rx-sheet__row { width: 100%; }
.rx-sheet__line { display: block; width: 100%; height: auto; }
.vexline { position: relative; width: 100%; }
.vexline__host { width: 100%; }
.vexline__host svg { width: 100%; height: auto; display: block; }
.vexline__play { position: absolute; top: 16%; bottom: 36%; width: 2.5px; transform: translateX(-1.25px);
  background: var(--blue-600); border-radius: 2px; pointer-events: none; box-shadow: 0 0 0 3px rgba(85,187,249,.14); }
.rx-expert__dock { flex: none; padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, rgba(6,12,20,0) 0%, rgba(6,12,20,.5) 30%, rgba(6,12,20,.78) 100%); }
.rx-expert__hint { text-align: center; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.9); min-height: 18px; }
.rx-expert__score { text-align: center; display: flex; flex-direction: column; gap: 2px; }
.rx-expert__score b { font-family: var(--font-mono); font-weight: 700; font-size: 30px; color: var(--accent); line-height: 1; }
.rx-expert__score b small { font-size: 16px; opacity: .8; }
.rx-expert__score span { font-size: 13px; color: rgba(255,255,255,.78); }
.rx-expert__row { display: flex; align-items: center; gap: 10px; }
.rx-expert__bpm { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: rgba(255,255,255,.78);
  text-transform: uppercase; white-space: nowrap; }
.rx-expert__play { flex: 1; margin: 0; height: 50px; }
.rx-expert__dock .rx-pad { margin-top: 0; height: 76px; }

/* "Bloomer" badge on the lesson card */
.lb-lesson__bloomer { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-display); font-weight: 800; font-size: 10px; letter-spacing: .1em; color: var(--ink-strong, #0C0E12);
  background: var(--accent); padding: 4px 8px; border-radius: 999px; box-shadow: 0 4px 12px rgba(201,245,66,.3); }
.lb-lesson__bloomer svg { width: 11px; height: 11px; }

.met-soon { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 4px 2px 8px; }
.met-soon span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.met-soon span svg { width: 16px; height: 16px; color: var(--text-subtle); }
.met-soon em { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-subtle); font-style: normal; }

/* tempo reference list */
.tempo-hint { font-size: 13px; color: var(--text-muted); margin: -8px 0 12px; }
.tempo-card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.tempo-grp__h { font-family: var(--font-sans); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-700); padding: 12px 16px 6px; }
.tempo-grp + .tempo-grp .tempo-grp__h { border-top: 1px solid var(--border-subtle); margin-top: 2px; }
.tempo-item { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer; background: none; border: none; padding: 10px 16px; transition: background var(--dur-fast) var(--ease-out); }
.tempo-item:hover { background: var(--surface-sunken); }
.tempo-item.on { background: var(--brand-soft); }
.tempo-item__bpm { font-family: var(--font-mono); font-weight: 700; font-size: 22px; color: var(--blue-700); min-width: 42px; }
.tempo-item.on .tempo-item__bpm { color: var(--blue-800); }
.tempo-item__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tempo-item__t { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text-strong); line-height: 1.2; }
.tempo-item__a { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.tempo-item__bpmu { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--text-subtle); }

/* practice partner tool switch */
.pp-seg { display: flex; gap: 6px; margin-top: 16px; padding: 5px; background: var(--surface-sunken); border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); }
.pp-seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; border: none; background: none;
  padding: 10px 8px; border-radius: var(--radius-pill); font-family: var(--font-sans); font-weight: 700; font-size: 14px; color: var(--text-muted); transition: var(--t-color); }
.pp-seg button svg { width: 17px; height: 17px; }
.pp-seg button.on { background: var(--ink); color: var(--n-0); box-shadow: var(--shadow-sm); }

/* tuner */
.tn-note { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin: 18px 0 2px; min-height: 70px; }
.tn-note__n { font-family: var(--font-display); font-weight: 700; font-size: 64px; line-height: 1; color: #fff; letter-spacing: -.02em; transition: color var(--dur-fast) var(--ease-out); }
.tn-note__o { font-family: var(--font-mono); font-size: 22px; color: rgba(255,255,255,.55); }
.tn-note__idle { font-family: var(--font-display); font-weight: 700; font-size: 56px; color: rgba(255,255,255,.3); }
.tn-note.good .tn-note__n { color: var(--accent); }
.tn-freq { text-align: center; font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 4px; }
.tn-meter { margin-top: 14px; }
.tn-meter__scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,.45); padding: 0 2px 6px; }
.tn-meter__scale .ctr { color: rgba(255,255,255,.75); }
.tn-meter__bar { position: relative; height: 12px; border-radius: 999px; background: rgba(255,255,255,.1); }
.tn-meter__center { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; transform: translateX(-50%); background: rgba(201,245,66,.5); border-radius: 2px; }
.tn-meter__needle { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 999px; background: var(--brand); transform: translate(-50%, -50%); transition: left var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); box-shadow: 0 0 0 4px rgba(85,187,249,.25); }
.tn-meter__needle.good { background: var(--accent); box-shadow: 0 0 0 4px rgba(201,245,66,.3); }
.tn-meter__cents { text-align: center; font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.7); margin-top: 8px; min-height: 16px; }
.tn-reflabel { text-align: center; font-size: 12px; color: rgba(255,255,255,.55); margin-top: 8px; }
.tn-err { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 14px; padding: 10px; border-radius: var(--radius-md); background: rgba(229,72,77,.18); color: #FF9AA0; font-size: 13px; font-weight: 600; }
.tn-err svg { width: 16px; height: 16px; }

/* profile (You) */
.prof-head { display: flex; align-items: center; gap: 14px; margin: 8px 0 18px; }
.prof-avatar { width: 60px; height: 60px; flex: none; border-radius: 999px; background: var(--brand); color: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 22px; box-shadow: 0 0 0 2px var(--surface-card), 0 0 0 4px var(--accent); }
.prof-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.01em; color: var(--text-strong); }
.prof-sub { font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.prof-stats { display: flex; gap: 10px; }
.prof-stat { flex: 1; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 14px 10px; text-align: center; box-shadow: var(--shadow-sm); }
.prof-stat__v { font-family: var(--font-mono); font-weight: 700; font-size: 22px; color: var(--text-strong); }
.prof-stat__k { font-size: 11px; color: var(--text-subtle); margin-top: 3px; }
.prof-card { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px; border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #142A45, #0C1726); border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow-md); }
.prof-card img { width: 54px; height: 54px; border-radius: var(--radius-md); object-fit: cover; flex: none; border: 1px solid rgba(255,255,255,.16); }
.prof-card__k { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.prof-card__t { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #fff; margin-top: 2px; }
.prof-change { margin-top: 18px; }

/* quiz */
.mb-quiz__q { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.2; color: var(--text-strong); margin: 14px 0 20px; }

/* rhythm reading */
.rr-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 2px; }
.rr-group { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--text-strong); }
.rr-count { font-family: var(--font-mono); font-size: 12px; color: var(--text-subtle); }
.rr-result { text-align: center; margin-top: 8px; }
.rr-score { display: block; font-family: var(--font-mono); font-weight: 700; font-size: 40px; line-height: 1; color: var(--accent); }
.rr-score small { font-size: 18px; color: rgba(255,255,255,.6); }
.rr-resub { display: block; font-size: 13px; color: rgba(255,255,255,.72); margin-top: 6px; }
.rr-nav { display: flex; gap: 10px; margin-top: 16px; }
.rr-nav .lb-btn { flex: 1; }

/* musical staff card (interval reading) */
.mb-staff { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 14px 16px; margin: -4px 0 18px; }
.mb-staff svg { width: 100%; height: auto; display: block; }

/* ear-training "hear it" button */
.mb-quiz__hear { display: inline-flex; align-items: center; gap: 11px; margin: 0 0 18px; padding: 11px 20px 11px 12px;
  background: var(--ink); color: var(--n-0); border: none; border-radius: var(--radius-pill); cursor: pointer;
  font-family: var(--font-sans); font-weight: 700; font-size: 15px;
  box-shadow: var(--shadow-md); transition: transform var(--dur-fast) var(--ease-out); }
.mb-quiz__hear:hover { transform: translateY(-1px); }
.mb-quiz__hear:active { transform: scale(0.97); }
.mb-quiz__hear-ic { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px; background: var(--accent); color: var(--ink); }
.mb-quiz__hear-ic svg { width: 16px; height: 16px; }
.mb-quiz__hear-eq { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 15px; }
.mb-quiz__hear-eq i { width: 3px; height: 5px; border-radius: 2px; background: var(--accent); animation: lb-eq 0.9s var(--ease-in-out) infinite; }
.mb-quiz__hear-eq i:nth-child(2) { animation-delay: .15s; }
.mb-quiz__hear-eq i:nth-child(3) { animation-delay: .3s; }
.mb-quiz__hear-eq i:nth-child(4) { animation-delay: .45s; }
@keyframes lb-eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
@media (prefers-reduced-motion: reduce) { .mb-quiz__hear-eq i { animation: none; height: 9px; } }
.mb-quiz__opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 15px 16px; border-radius: var(--radius-md); border: 1.5px solid var(--border-default); background: var(--surface-card); cursor: pointer; margin-bottom: 11px; font-size: 15px; font-weight: 500; color: var(--text-body); }
.mb-quiz__opt.sel { border-color: var(--blue-500); background: var(--brand-soft); }
.mb-quiz__opt.correct { border-color: var(--success); background: var(--success-bg); color: var(--success); }
.mb-quiz__opt.wrong { border-color: var(--danger); background: var(--danger-bg); color: var(--danger); }
.mb-quiz__opt b { font-family: var(--font-mono); width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--surface-inset); display: flex; align-items: center; justify-content: center; font-size: 13px; }

/* visual explanation card (after answering) — dark "studio stage" look */
.mb-quiz__explain {
  /* remap the diagram palette for the dark ground (scoped to this card) */
  --ink: #FFFFFF;
  --n-300: rgba(255,255,255,.28);
  --n-500: rgba(255,255,255,.66);
  --blue-100: rgba(85,187,249,.16);
  --blue-200: rgba(143,211,255,.32);
  --blue-300: #82CDFB;
  --blue-600: #55BBF9;
  --blue-700: #8FD3FF;
  --danger: #FF7A7F;
  background: radial-gradient(130% 140% at 75% -10%, rgba(85,187,249,.38), #0B0D10 68%);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 16px 16px 18px; margin: 6px 0 14px;
  box-shadow: var(--shadow-lg);
  animation: lb-rise var(--dur-slow) var(--ease-out);
}
.mb-quiz__explain-k { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-700); margin-bottom: 12px; }
.mb-quiz__explain-k img { height: 15px; width: auto; display: block; }
.mb-quiz__explain > svg { width: 100%; height: auto; display: block; }
.mb-quiz__explain p { margin: 12px 0 0; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.78); }
.mb-quiz__eg { display: flex; align-items: center; gap: 7px; margin-top: 10px; color: rgba(255,255,255,.9) !important; }
.mb-quiz__eg svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.mb-quiz__eg b { color: #fff; }
@keyframes lb-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
