/* ── Cléa — feuille de style ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Thème « Nuit de concert » : les couleurs du logo (bleu canard profond, doré, ivoire) */
  --bg:        #0F2A32;
  --surface:   #173A43;
  --ink:       #F3ECDD;
  --ink-soft:  #9DB4B6;
  --line:      #28525B;
  --brand:     #D6AE62;
  --brand-050: #1C4650;
  --brand-100: #2A5D66;
  --accent:    #E07AA6;
  --gold:      #E2B55C;
  --good:      #3DDC97;
  --on-brand:  #10262D;   /* texte posé sur le doré */
  --skin:      #ECBB92;
  --skin-2:    #E0A878;
  --skin-edge: #C1855A;
  --nail:      #F8E6D3;
  --radius:    18px;
  --safe-top:  env(safe-area-inset-top, 0px);
  --safe-bot:  env(safe-area-inset-bottom, 0px);
}

html, body {
  height: 100%;
  background: radial-gradient(120% 80% at 50% 0%, #1D4852 0%, var(--bg) 55%, #0A1E24 100%) fixed var(--bg);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
body.mode-enfant { --brand: #E0B45E; --accent: #E86FA8; }

[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }

@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes markFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-2deg); }
}
@keyframes shine {
  0%, 55% { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}
@media (prefers-reduced-motion: reduce) {
  .lesson-card, .mode-card, .clea-mark, .btn-primary::after, .coach-avatar.talking { animation: none !important; }
}

/* ── Écrans ─────────────────────────────────────────────────────── */
.screen {
  display: none;
  min-height: 100dvh;
  flex-direction: column;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bot);
}
.screen.active { display: flex; }

.bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.bar strong { font-size: 1.05rem; }
.bar .btn-chip { margin-left: auto; }
.bar .btn-chip + .btn-chip { margin-left: 0; }
/* ── Bande « coach » : avatar + bulle qui guide, sous l'en-tête ──── */
.coach-strip {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px 2px; flex-shrink: 0;
}
.coach-avatar {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px;
  background: radial-gradient(circle at 50% 35%, var(--brand-100), var(--surface));
  border: 1px solid var(--line); box-shadow: 0 6px 16px -10px rgba(0,0,0,.5);
  background-size: cover; background-position: center 16%;
  transition: transform .18s ease, box-shadow .18s ease;
}
.coach-avatar.talking {
  box-shadow: 0 0 0 3px var(--brand) inset, 0 6px 16px -10px rgba(0,0,0,.3);
  animation: coachTalk 1s ease-in-out infinite;
}
@keyframes coachTalk {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.coach-bubble {
  flex: 0 1 auto; width: fit-content; max-width: 280px;
  text-align: left; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px; font-size: .92rem; font-weight: 600;
  line-height: 1.35; color: var(--ink); box-shadow: 0 4px 14px -10px rgba(0,0,0,.18);
}
.btn-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.3rem;
  background: var(--surface); border: 1px solid var(--line);
}
.btn-chip {
  padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700;
  background: var(--brand-050); color: var(--brand); border: 1px solid var(--brand-100);
}
.btn-chip[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px; border-radius: 999px; font-weight: 800; font-size: 1.1rem;
  min-height: 56px; transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #E9C57E, var(--brand) 60%, #C19447); color: var(--on-brand);
  box-shadow: 0 10px 26px -10px rgba(214,174,98,.75);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.4) 50%, transparent 65%);
  transform: translateX(-130%);
  animation: shine 3.6s ease-in-out infinite;
}
.btn-primary:active { transform: translateY(1px) scale(.98); box-shadow: 0 4px 12px -8px var(--brand); }
.btn-chip, .btn-icon { transition: transform .12s ease; }
.btn-chip:active, .btn-icon:active { transform: scale(.93); }

/* ── Accueil ────────────────────────────────────────────────────── */
#screen-home {
  position: relative; overflow: hidden;
  align-items: center; justify-content: center; text-align: center; padding: 32px;
}
#screen-home::before, #screen-home::after {
  content: ""; position: absolute; z-index: 0; border-radius: 50%; filter: blur(46px);
}
#screen-home::before { width: 260px; height: 260px; background: var(--brand-100); opacity: .55; top: -70px; left: -70px; }
#screen-home::after { width: 230px; height: 230px; background: var(--gold); opacity: .16; bottom: -60px; right: -50px; }
.home-hero { position: relative; z-index: 1; max-width: 340px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.clea-mark {
  /* Pas de tuile autour : le logo a déjà son propre cadre. Le fond bleu canard
     de l'image se fond dans celui de l'app, bords estompés pour ne laisser
     aucune limite carrée. */
  width: 210px; height: 210px; margin: -28px 0 -34px;
  animation: markFloat 4.5s ease-in-out infinite;
}
.clea-mark img {
  width: 100%; height: 100%; display: block;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 21%, #000 79%, transparent),
                      linear-gradient(to bottom, transparent, #000 24%, #000 81%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 21%, #000 79%, transparent),
              linear-gradient(to bottom, transparent, #000 24%, #000 81%, transparent);
  mask-composite: intersect;
}
#screen-home h1 {
  font-size: 2.8rem; letter-spacing: -.02em; font-weight: 900;
  background: linear-gradient(135deg, #F3E3BD, var(--brand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.45; }
.home-hero .btn { margin-top: 10px; width: 100%; }
.lang-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.lang-row button {
  padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 700;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.lang-row button.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.lang-row button:active { transform: scale(.94); }

/* ── Choix du mode ──────────────────────────────────────────────── */
.mode-grid { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 20px; justify-content: center; }
.mode-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 22px; border-radius: var(--radius); text-align: left;
  background: linear-gradient(160deg, var(--surface) 55%, var(--brand-050));
  border: 2px solid var(--line);
  animation: cardIn .4s cubic-bezier(.2,.8,.2,1) both;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.mode-card:nth-of-type(1) { animation-delay: 40ms; }
.mode-card:nth-of-type(2) { animation-delay: 100ms; }
.mode-card:active { border-color: var(--brand); transform: scale(.98); }
@media (hover: hover) {
  .mode-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(46,42,57,.35); }
}
.mode-emoji {
  font-size: 2.2rem; width: 60px; height: 60px; border-radius: 16px;
  display: grid; place-items: center; background: rgba(255,255,255,.12);
  box-shadow: 0 4px 10px -6px rgba(0,0,0,.4);
}
.mode-title { font-size: 1.35rem; font-weight: 800; }
.mode-sub { color: var(--ink-soft); font-size: .9rem; }

/* ── « Pour qui ? » : cartes illustrées façon carte bancaire ─────── */
#screen-mode .mode-grid { align-items: center; }
#screen-mode .mode-card {
  position: relative; overflow: hidden;
  aspect-ratio: 1.586 / 1; max-width: 380px; margin-inline: auto;
  padding: 0; justify-content: flex-end;
  border: none; border-radius: 20px;
  box-shadow: 0 16px 30px -16px rgba(46,42,57,.4), inset 0 0 0 1px rgba(255,255,255,.35);
}
#screen-mode .mode-card[data-mode="enfant"] {
  background: linear-gradient(135deg, #E6BD6E 0%, #D98E6A 55%, #C76D8F 100%);
}
#screen-mode .mode-card[data-mode="adulte"] {
  background: linear-gradient(135deg, #3A7C86 0%, #1E5561 50%, #0B2027 100%);
}
#screen-mode .mode-emoji {
  position: absolute; top: 16px; right: 18px;
  font-size: 3.2rem; width: auto; height: auto; background: none; box-shadow: none;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.22));
}
#screen-mode .mode-card .mode-title, #screen-mode .mode-card .mode-sub {
  position: relative; z-index: 1; color: #fff; padding: 0 18px;
}
#screen-mode .mode-card .mode-sub { color: rgba(255,255,255,.9); padding-bottom: 16px; }

/* ── Choix du professeur : portrait façon carte bancaire ─────────── */
#screen-teacher .mode-grid { align-items: center; }
#screen-teacher .teacher-card {
  position: relative; overflow: hidden;
  aspect-ratio: 1.586 / 1; width: 100%; max-width: 380px; margin-inline: auto;
  padding: 0; justify-content: flex-end;
  border: none; border-radius: 20px;
  background-size: cover; background-position: center;
  box-shadow: 0 16px 30px -16px rgba(46,42,57,.45), inset 0 0 0 1px rgba(255,255,255,.5);
}
#screen-teacher .teacher-card[data-teacher="f"] { background-image: url(/static/clea-photo.jpg); }
#screen-teacher .teacher-card[data-teacher="m"] { background-image: url(/static/clea-photo-m.jpg); }
#screen-teacher .teacher-card .mode-emoji { display: none; }
#screen-teacher .teacher-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,16,28,.72) 0%, rgba(20,16,28,.18) 55%, transparent 78%);
}
#screen-teacher .teacher-card .mode-title, #screen-teacher .teacher-card .mode-sub {
  position: relative; z-index: 1; color: #fff; padding: 0 18px;
}
#screen-teacher .teacher-card .mode-title { font-size: 1.3rem; }
#screen-teacher .teacher-card .mode-sub { color: rgba(255,255,255,.85); padding-bottom: 16px; }

/* ── Liste des leçons : cartes façon carte bancaire ──────────────── */
.lesson-list {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.lesson-card {
  position: relative; overflow: hidden;
  width: 100%; max-width: 380px; aspect-ratio: 1.586 / 1; margin-inline: auto;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding: 0; border: none; border-radius: 20px; text-align: left;
  background: linear-gradient(135deg, #2C6E78, #0B2027); /* repli */
  box-shadow: 0 16px 30px -16px rgba(46,42,57,.4), inset 0 0 0 1px rgba(255,255,255,.35);
  animation: cardIn .35s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
  transition: transform .15s ease, box-shadow .15s ease;
}
.lesson-card:active { transform: scale(.98); }
@media (hover: hover) {
  .lesson-card:not([disabled]):hover { transform: translateY(-2px); box-shadow: 0 18px 34px -18px rgba(46,42,57,.42); }
}
.lesson-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(20,16,28,.55) 0%, rgba(20,16,28,.08) 55%, transparent 75%);
}
.lesson-card .lc-icon {
  position: absolute; z-index: 1; top: 40%; left: 50%; transform: translate(-50%, -50%);
  font-size: 5.2rem; width: auto; height: auto; background: none;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.25));
}
.lesson-card .lc-body {
  position: relative; z-index: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px; padding: 0 18px 16px;
}
.lesson-card .lc-title { font-weight: 800; color: #fff; font-size: 1.15rem; }
.lesson-card .lc-sub { color: rgba(255,255,255,.88); font-size: .85rem; }
.lesson-card .lc-stars {
  position: absolute; z-index: 1; top: 16px; left: 18px;
  color: var(--on-brand); font-weight: 800; font-size: .8rem; letter-spacing: .2px;
  background: rgba(243,236,221,.9); padding: 5px 11px; border-radius: 999px;
}
.lesson-card .lc-stars:empty { display: none; }
.lesson-card[disabled] { opacity: .5; }
.lesson-card[data-done="1"] .lc-stars { background: color-mix(in srgb, var(--good) 75%, white); color: #fff; }

/* Couleur par catégorie — repère visuel rapide dans la liste */
.lesson-card { box-shadow: 0 16px 30px -16px rgba(0,0,0,.6), inset 0 0 0 1px rgba(214,174,98,.22); }
.lesson-card[data-cat="letters"] { background: linear-gradient(135deg, #3A7C86, #133840); }
.lesson-card[data-cat="bases"] { background: linear-gradient(135deg, #E6BD6E, #A8752E); }
.lesson-card[data-cat="scalesMaj"] { background: linear-gradient(135deg, #2F7F86, #123C44); }
.lesson-card[data-cat="scalesMin"] { background: linear-gradient(135deg, #4B6FA8, #1E3358); }
.lesson-card[data-cat="scalesPenta"] { background: linear-gradient(135deg, #5AA6A0, #1F5754); }
.lesson-card[data-cat="chordsMaj"] { background: linear-gradient(135deg, #D9A35A, #8A5A22); }
.lesson-card[data-cat="chordsMin"] { background: linear-gradient(135deg, #D07A9E, #7A3354); }
.lesson-card[data-cat="earTraining"] { background: linear-gradient(135deg, #6EC1D8, #1F6378); }

/* ── Écran de leçon (sobre / « pro ») ──────────────────────────── */
#screen-lesson { background: transparent; }
#screen-lesson .bar { background: rgba(15,42,50,.9); border-bottom-color: var(--line); }

.progress {
  flex-shrink: 0; height: 3px; background: var(--brand-050);
}
.progress > span {
  display: block; height: 100%; width: 0;
  background: var(--brand); border-radius: 0 2px 2px 0;
  transition: width .35s ease;
}

.stage {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  align-items: stretch; gap: 12px; padding: 14px 16px 6px;
  max-width: 620px; margin-inline: auto; width: 100%;
}

.coach { display: flex; align-items: center; gap: 12px; }
.avatar {
  flex-shrink: 0;
  width: 100px; height: 100px; border-radius: 22px;
  background: radial-gradient(circle at 50% 35%, var(--brand-100), var(--surface));
  border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 8px 22px -10px rgba(0,0,0,.55);
}
.avatar-face { font-size: 2.6rem; }
#avatar { position: relative; }
#avatar canvas { width: 100% !important; height: 100% !important; display: block; }
.avatar-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 48% 16%;
  display: block;
}
.avatar-still { animation: avatarBreath 5.5s ease-in-out infinite; }
.avatar-vid { opacity: 0; transition: opacity .25s ease; z-index: 1; }
#avatar[data-talking="1"] .avatar-vid.ready { opacity: 1; }
/* Clip SadTalker pré-généré (photo réelle animée, son inclus) — passe
   au-dessus de la photo fixe / de l'avatar 3D pendant sa lecture. */
.avatar-clip { opacity: 0; transition: opacity .2s ease; z-index: 2; }
.avatar-clip.playing { opacity: 1; }
/* faute de vidéo lippée : petit halo qui « respire » plus vite quand elle parle */
#avatar[data-talking="1"] { box-shadow: 0 0 0 2px var(--brand, #6d5bd0) inset; }
#avatar[data-talking="1"] .avatar-still { animation-duration: 2.2s; }
@keyframes avatarBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.018); }
}
@media (prefers-reduced-motion: reduce) {
  .avatar-still { animation: none !important; }
}
.bubble {
  flex: 1; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; font-size: .95rem; font-weight: 600; line-height: 1.4;
  color: var(--ink);
}

.staff {
  flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 10px; box-shadow: 0 4px 14px -10px rgba(0,0,0,.45);
}
.staff:empty { display: none; }
.staff-svg { display: block; width: 100%; height: 116px; }
.staff-line { stroke: #4E7C84; stroke-width: 1; }
.staff-clef {
  fill: #E9DDC0;
  font-family: "Bravura", "Noto Music", "Apple Symbols", serif;
}
.staff-acc { fill: var(--ink-soft); font-size: 13px; text-anchor: middle; }
.staff-note ellipse { fill: #6F9499; transition: fill .12s; }
.staff-note.done ellipse { fill: #CFE3E0; }
.staff-note.on ellipse { fill: var(--brand); }

.prompt {
  flex-shrink: 0; text-align: center; padding: 2px 16px 8px;
  color: var(--brand); font-weight: 700; font-size: .95rem; min-height: 1.5em;
}
.prompt.good { color: var(--good); }

/* ── Piano (rendu plus réaliste) ──────────────────────────────── */
.piano-wrap {
  flex-shrink: 0; position: relative; height: 210px;
  width: 100%; max-width: 760px; margin-inline: auto;
  background: linear-gradient(180deg, #143A42 0%, #0D2A31 40%, #081B20 100%);
  padding: 14px 10px calc(12px + var(--safe-bot));
  border-radius: 20px 20px 0 0;
  box-shadow:
    inset 0 10px 14px -8px rgba(0,0,0,.65),
    inset 0 1px 0 rgba(255,255,255,.06),
    0 -14px 30px -18px rgba(0,0,0,.7);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.piano-wrap::before {
  content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand) 50%, transparent);
  opacity: .55; border-radius: 2px;
}
.piano-keys { position: relative; height: 100%; display: flex; gap: 0; }
.pk {
  position: relative; flex: 1; border-radius: 0 0 6px 6px;
  border-right: 1px solid rgba(0,0,0,.10);
  background: linear-gradient(180deg, #ffffff 0%, #fbfaff 55%, #f6f5f8 82%, #e6e4ea 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    inset -3px 0 4px -3px rgba(0,0,0,.22),
    inset 0 -9px 7px -6px rgba(0,0,0,.16),
    0 3px 4px -1px rgba(0,0,0,.28);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 9px;
  font-size: .72rem; font-weight: 800; color: #6A7C80;
  transition: box-shadow .08s ease;
}
.pk:last-of-type { border-right: none; }
.pk.black {
  position: absolute; top: 0; height: 60%; width: 7.4%; z-index: 2; border-right: none;
  /* width réelle fixée en JS (proportionnelle au nombre de blanches) */
  background: linear-gradient(180deg, #57505f 0%, #2a2531 12%, #24202c 58%, #0b0910 100%);
  border-radius: 0 0 5px 5px;
  box-shadow:
    0 6px 9px -2px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -4px 0 rgba(255,255,255,.07),
    inset 0 2px 2px rgba(255,255,255,.10);
  color: transparent;
}
.pk.down {
  background: linear-gradient(180deg, #EEE7D6, #E0D5BC);
  box-shadow: inset 0 -3px 4px -1px rgba(0,0,0,.18), inset 0 2px 3px rgba(0,0,0,.12);
}
.pk.black.down { background: linear-gradient(180deg, #2C5A62, #10262D); }
.pk.lit { background: linear-gradient(180deg, #FFEFC4 0%, #FFE9A8 30%, var(--gold) 100%); color: #6b4e00; }
.pk.lit.down { background: linear-gradient(180deg, var(--gold), #d99a1c); }
/* nom de la note : caché, visible seulement si la touche est éclairée (aide) ou au survol */
.pk .sol {
  font-size: .78rem; color: var(--on-brand);
  opacity: 0; transition: opacity .15s;
}
.pk.lit .sol { opacity: 1; }
@media (hover: hover) { .pk:hover .sol { opacity: .55; } }
/* leçons « oreille » : le survol ne doit jamais trahir le nom de la note */
.piano-wrap.ear-blind .pk:hover .sol { opacity: 0; }
.pk .fg {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--brand); color: var(--on-brand);
  font-size: .76rem; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

/* ── Bande « mains » (doigté), au-dessus du clavier ─────────────── */
.hands-strip {
  flex-shrink: 0; position: relative; height: 172px;
  width: 100%; max-width: 760px; margin-inline: auto;
  padding: 0 10px;
}
.hands-layer {
  display: block; width: 100%; height: 100%;
  pointer-events: none; overflow: visible;
}
.hand, .badges { opacity: 0; transition: opacity .25s ease; }
.hand.on, .badges.on { opacity: 1; }
.badges-R { --badge: var(--brand); }
.badges-L { --badge: var(--accent); }

/* Main = emoji 🤚 */
.hand .emoji {
  dominant-baseline: alphabetic;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.28));
  transition: transform .18s ease;
}
.hand.on { transition: opacity .25s ease; }

/* Pastilles numérotées */
.badges .bfx {
  transition: transform .16s ease;
  transform-box: fill-box; transform-origin: center;
}
.badges .tip {
  fill: var(--badge); stroke: #F3ECDD; stroke-width: 2.5;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.4));
}
.badges .num {
  fill: var(--on-brand); font-weight: 800; font-size: 13px;
  text-anchor: middle; dominant-baseline: central;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
}
.mode-enfant .badges .num { font-size: 15px; }
.badges .badge.cue .tip { filter: drop-shadow(0 0 8px var(--badge)); }
.badges .badge.cue .bfx { transform: scale(1.24); }
.badges .badge.press .bfx { transform: translateY(9px) scale(1.12); }
