/* Famille « Tonalité » du bac à sable : monocorde, cercle des quintes,
   armures (static/tonal-ui.js, monocorde.js, cercle.js, armures.js).
   Couleurs : jetons de brand.css. Les boutons « Vérifier » / « Effacer »
   (.single-btn, .ghost-btn) reprennent ceux de la frappe (teacher.css), redits
   ici : un monocorde vit aussi dans une partie, qui ne charge pas teacher.css. */

.tn {
  display: flex; flex-direction: column; gap: 0.9rem;
  max-width: 980px; margin: 0 auto;
}
.tn-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.8rem; }
.tn-title { font-size: 1.25rem; font-weight: 700; color: var(--title); }
.tn-sub { font-size: 0.88rem; color: var(--muted); }
.tn-progress {
  margin-left: auto; font-size: 0.85rem; color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}
.tn-say { font-size: 1rem; line-height: 1.55; color: var(--text); }
.tn-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem;
}
.tn .ghost-btn {
  padding: 0.55rem 1rem; background: var(--surface);
  border: 1.5px solid var(--brand-edge); border-radius: 7px;
  cursor: pointer; font-family: inherit; font-size: 0.9rem; color: var(--text);
}
.tn .ghost-btn:hover:not(:disabled) { background: var(--brand-tint); }
.tn .single-btn {
  padding: 0.55rem 1.2rem; min-width: 12rem;
  background: var(--brand-fill); color: #fff; border: none; border-radius: 7px;
  cursor: pointer; font-family: inherit; font-size: 0.95rem; font-weight: 600;
}
.tn .single-btn:hover:not(:disabled) { background: var(--brand-fill-hover); }
.tn .single-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.tn [hidden] { display: none !important; }
.tn-btn {
  padding: 0.5rem 0.9rem;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  cursor: pointer; font-family: inherit; font-size: 0.88rem; color: var(--text);
}
.tn-btn:hover:not(:disabled) { background: var(--brand-tint); border-color: var(--brand-edge); }
.tn-btn[aria-pressed="true"] { background: var(--brand-fill); border-color: var(--brand-fill); color: #fff; }
.tn-result {
  padding: 0.6rem 0.85rem; border-radius: var(--radius);
  border: 1px solid var(--warn-edge); background: var(--warn-bg); color: var(--warn-fg);
  font-size: 0.93rem; line-height: 1.45;
}
.tn-result.ok { background: var(--ok-bg); border-color: var(--ok-edge); color: var(--ok-fg); }
.tn-result.far { background: var(--err-bg); border-color: var(--err-edge); color: var(--err-fg); }
.tn-result[hidden] { display: none; }
.tn .kbd {
  display: inline-block; min-width: 1.3em; margin-right: 0.45rem; padding: 0 0.25em;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-size: 0.72rem; color: var(--muted-2); text-align: center;
}

/* ── Monocorde ──────────────────────────────────────────── */
/* Deux cordes dessinées comme les figures du cours : une ligne, un trait au
   sillet (à gauche) et au chevalet ; ce qui vibre, du doigt au chevalet, est
   tracé plus épais. Au-dessus, la règle des frettes : leur nom, cliquable,
   une couleur par nombre premier (jetons --prime-*). Positions en % de la
   piste (static/monocorde.js). */
.mono-board {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 0.6rem 1rem 0.4rem;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.mono-row { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); align-items: center; gap: 0.5rem; }
.mono-row[hidden] { display: none; }
.mono-who {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.mono-lock { font-size: 0.8rem; letter-spacing: 0; text-transform: none; }
/* Les rangées des cordes sont des enfants directs de la planche (même
   espacement que la règle) ; × retire une corde, « + » en ajoute une. */
.mono-strings { display: contents; }
.mono-del {
  width: 1.3rem; height: 1.3rem; padding: 0; margin-left: 0.1rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid transparent; border-radius: 50%;
  font-family: inherit; font-size: 0.95rem; line-height: 1; color: var(--muted); cursor: pointer;
}
.mono-del:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-alt); }
.mono-add-cell { display: flex; align-items: center; gap: 0.4rem; margin: 0.1rem 14px 0.3rem; }
.tn-btn.mono-add { padding: 0.25rem 0.7rem; font-size: 0.82rem; }
.mono-track { position: relative; height: 66px; margin: 0 14px; }
.mono-row.movable .mono-track { cursor: ew-resize; touch-action: none; }
.mono-dead, .mono-live { position: absolute; left: 0; top: 47px; height: 2px; background: var(--faint); }
.mono-live { top: 46px; height: 4px; border-radius: 2px; background: var(--text-soft); }
.mono-row.current .mono-live { background: var(--brand); }
.mono-fret {
  position: absolute; top: 36px; width: 2px; height: 24px; margin-left: -1px;
  border-radius: 1px; opacity: 0.85;
}
.mono-tick {
  position: absolute; top: 34px; width: 2px; height: 28px; margin-left: -1px;
  background: var(--text);
}
.mono-lbl {
  position: absolute; top: 10px; transform: translateX(-50%);
  font-size: 0.85rem; white-space: nowrap; color: var(--text); pointer-events: none;
}
.mono-lbl.finger { color: var(--text-soft); font-weight: 600; }
.mono-lbl[hidden] { display: none; }
.mono-finger {
  position: absolute; top: 36px; width: 24px; height: 24px; margin-left: -12px;
  border-radius: 50%; background: var(--brand-fill); border: 2px solid var(--surface);
  box-shadow: var(--shadow-sm);
}
.mono-row:not(.current) .mono-finger { background: var(--text-soft); }
.mono-finger.active { box-shadow: 0 0 0 3px var(--brand-edge); }
.mono-finger.fixed { opacity: 0.7; box-shadow: none; }

.mono-ruler { position: relative; height: 27px; margin: 0 14px; }
/* Nom d'une frette : le conteneur porte la place et la couleur (.p2…), le
   bouton la suit. Les frettes du 3 ont autour de leur nom quatre flèches
   (← → quinte d'avant ou d'après, ↑ ↓ octave), visibles au survol, au focus
   ou une fois la frette choisie. Elles touchent le nom : le survol ne se
   perd pas en passant de l'un aux autres. */
.mono-fretwrap { position: absolute; top: 2px; transform: translateX(-50%); }
.mono-fretwrap.low { top: 23px; }
.mono-fretwrap.lower { top: 44px; }
.mono-fretwrap.lowest { top: 65px; }
.mono-fretwrap:hover, .mono-fretwrap:focus-within, .mono-fretwrap.selected { z-index: 5; }
.mono-fretlbl {
  display: block; padding: 0 0.3rem; min-width: 1.6rem;
  background: var(--surface); color: inherit; border: 1.5px solid currentColor; border-radius: var(--radius-pill);
  font-family: inherit; font-size: 0.78rem; font-weight: 700; line-height: 1.35;
  cursor: pointer; white-space: nowrap;
}
.mono-fretlbl:hover { background: var(--surface-alt); }
.mono-fretwrap.selected .mono-fretlbl { background: var(--surface-alt); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px currentColor; }
.mono-arrows { display: none; }
.mono-fretwrap:hover .mono-arrows, .mono-fretwrap:focus-within .mono-arrows,
.mono-fretwrap.selected .mono-arrows { display: block; }
.mono-arrow {
  position: absolute; width: 22px; height: 22px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: inherit; border: 1.5px solid currentColor; border-radius: 50%;
  font-family: inherit; font-size: 0.8rem; font-weight: 700; line-height: 1; cursor: pointer;
}
.mono-arrow:hover:not(:disabled) { background: var(--surface-alt); }
.mono-arrow:disabled { opacity: 0.3; cursor: default; }
.mono-arrow.left { right: 100%; top: 50%; transform: translateY(-50%); }
.mono-arrow.right { left: 100%; top: 50%; transform: translateY(-50%); }
.mono-arrow.up { bottom: 100%; left: 50%; transform: translateX(-50%); }
.mono-arrow.down { top: 100%; left: 50%; transform: translateX(-50%); }
.tn-btn.mono-small { padding: 0.2rem 0.55rem; font-size: 0.8rem; }
.mono .p2 { color: var(--prime-2); } .mono-fret.p2 { background: var(--prime-2); }
.mono .p3 { color: var(--prime-3); } .mono-fret.p3 { background: var(--prime-3); }
.mono .p5 { color: var(--prime-5); } .mono-fret.p5 { background: var(--prime-5); }
.mono .p7 { color: var(--prime-7); } .mono-fret.p7 { background: var(--prime-7); }

.mono-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem 1rem; }
.mono-fine { display: inline-flex; align-items: center; gap: 0.35rem; }
.mono-fine-lbl { font-size: 0.8rem; color: var(--muted); min-width: 7.5rem; text-align: center; }
.tn-fine { min-width: 2.6rem; font-size: 1rem; touch-action: manipulation; user-select: none; }
.tn-btn:disabled { opacity: 0.45; cursor: default; }
.mono-hear { font-size: 0.88rem; color: var(--text-soft); display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.7rem; }
.mono-hear label { display: inline-flex; align-items: center; gap: 0.3rem; cursor: pointer; }
.mono-read {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  font-size: 0.9rem; color: var(--text-soft); text-align: center; line-height: 1.45;
}
.mono-read strong { color: var(--text); font-weight: 600; }
.mono-read:empty { display: none; }

.mono-settings {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem 1.4rem;
  padding: 0.6rem 0.8rem; border-top: 1px solid var(--border);
}
.mono-settings[hidden] { display: none; }
.mono-set { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.88rem; color: var(--text-soft); }
.mono-set-lbl {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.mono-magnet { cursor: pointer; flex-wrap: nowrap; }
.mono-toggle { display: inline-flex; align-items: center; gap: 0.3rem; cursor: pointer; white-space: nowrap; }
.mono-chips { display: inline-flex; gap: 0.3rem; }
.mono-chip {
  min-width: 2.2rem; padding: 0.25rem 0.45rem;
  background: var(--surface); border: 1.5px solid currentColor; border-radius: var(--radius-pill);
  font-family: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer;
}
.mono-chip[aria-pressed="false"] { opacity: 0.55; border-style: dashed; }
.mono-chip[aria-pressed="true"] { box-shadow: inset 0 0 0 1px currentColor; }
/* Bascule à segments, commune au monocorde et au cercle des quintes : un
   réglage à deux ou trois valeurs, toutes visibles, celle en cours en aplat. */
.tn-seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; }
.tn-seg button {
  padding: 0.3rem 0.6rem; border: none; background: var(--surface); cursor: pointer;
  font-family: inherit; font-size: 0.85rem; color: var(--text);
}
.tn-seg button + button { border-left: 1px solid var(--border-strong); }
.tn-seg button:hover { background: var(--brand-tint); }
.tn-seg button[aria-pressed="true"] { background: var(--brand-fill); color: #fff; font-weight: 600; }

/* Dans une partie (blocs ```monocorde, ```cercle, ```armures) : une carte
   dans le fil du texte. Le contenu d'une partie stylise ses titres, listes et
   paragraphes — l'exercice garde les siens. */
.mono-embed, .tonal-embed { margin: 1.2rem 0; }
.mono-partie, .tn-partie {
  max-width: none; padding: 0.9rem 1rem;
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.mono-partie .tn-title, .tn-partie .tn-title { margin: 0; font-size: 1.1rem; }
.mono-partie p, .tn-partie p { margin: 0; }
.mono-embed-fallback { font-size: 0.9rem; color: var(--muted); font-style: italic; }

/* ── Cercle des quintes ─────────────────────────────────── */
.cercle-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2rem; }
.cercle-wrap { flex: 0 1 340px; min-width: 240px; }
.cercle-svg { display: block; width: 100%; height: auto; overflow: visible; user-select: none; }
.cercle-side { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.cercle-side:not(:has(> :not([hidden]))) { display: none; }
.c-pos { cursor: pointer; outline: none; }
.c-hit { fill: transparent; stroke: transparent; stroke-width: 2; }
.c-name { font-family: inherit; font-size: 19px; fill: var(--text); pointer-events: none; }
.c-pos:hover .c-hit { fill: var(--brand-tint); }
.c-pos:focus-visible .c-hit { stroke: var(--focus); stroke-width: 3; }
.c-pos.sel .c-hit { fill: var(--brand-tint); stroke: var(--brand-edge); }
.c-pos.sel .c-name, .c-pos.tonic .c-name { fill: var(--brand); font-weight: 700; }
.c-pos.bad .c-hit, .c-pos.flash .c-hit { fill: var(--err-bg); stroke: var(--err-strong); }
.c-pos.miss .c-hit { stroke: var(--warn-edge-hi); stroke-width: 2.5; stroke-dasharray: 3 4; }
.cercle-svg.locked .c-pos { cursor: default; }
.cercle-svg.locked .c-pos:hover .c-hit { fill: transparent; }
.cercle-svg.locked .c-pos.sel .c-hit { fill: var(--brand-tint); }
.c-ring { fill: none; stroke: var(--brand); stroke-width: 3; pointer-events: none; }
.c-arc { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; }

/* Jouer la gamme (étape « clavier ») : la bascule d'instrument et les
   pastilles de progression en bandeau, puis l'instrument. Les trois dessins
   — clavier de piano, boutons d'accordéon, manche de guitare — sont des
   objets, pas des surfaces de l'interface : leurs couleurs (--key-*,
   --neck-*) tiennent dans les deux thèmes. Rien n'y est écrit, trouver la
   note est l'exercice ; chaque touche porte son nom en aria-label. Un dessin
   trop large pour la colonne défile dans sa scène plutôt que de s'écraser. */
.cercle-kb {
  display: flex; flex-direction: column; gap: 0.5rem;
  width: max-content; max-width: 100%; margin: 0 auto;
}
.cercle-kb[hidden] { display: none; }
.kb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; }
.kb-dots { display: flex; gap: 0.35rem; margin-left: auto; }
.kb-dots span { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--brand-edge); }
.kb-dots span.on { background: var(--brand-fill); border-color: var(--brand-fill); }
.kb-stage { overflow-x: auto; padding-bottom: 0.2rem; }
.ins { user-select: none; touch-action: manipulation; }

/* Piano : les blanches à la file, les noires à cheval entre deux. */
.kb { position: relative; width: 560px; min-width: 360px; max-width: 100%; height: 150px; }
.kb-key { position: absolute; top: 0; padding: 0; cursor: pointer; border: 1px solid var(--key-edge); }
.kb-key.white { height: 100%; z-index: 1; background: var(--key-white); border-radius: 0 0 6px 6px; }
.kb-key.black { height: 62%; z-index: 2; background: var(--key-black); border-color: var(--key-black); border-radius: 0 0 4px 4px; }
.kb-key.played { background: var(--ok); border-color: var(--ok-strong); }
.kb-key.wrong { background: var(--err-strong); border-color: var(--err-strong); }
.kb-key:focus-visible { z-index: 3; }

/* Accordéon, système français : le clavier debout comme sur l'instrument —
   les trois rangées en colonnes, la première (celle des Do) à gauche, les
   graves en haut. Les colonnes se décalent d'un tiers de pas, si bien que le
   demi-ton descend vers la droite. Le pas d'une rangée (une tierce mineure)
   et l'écart des colonnes sont du même ordre, comme sous la main. Tout est
   en pixels : un clavier ne s'étire pas. */
.acc {
  --acc-step: 32px; --acc-col: 34px; --acc-size: 26px;
  width: max-content; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
}
.acc-nums { display: flex; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.acc-nums span { width: var(--acc-col); text-align: center; }
.acc-board { position: relative; width: calc(var(--acc-col) * 3); }
.acc-btn {
  position: absolute; width: var(--acc-size); height: var(--acc-size); padding: 0;
  transform: translateX(-50%); border-radius: 50%; cursor: pointer;
  background: var(--key-white); border: 1px solid var(--key-edge);
}
.acc-btn::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px;
  margin: -3px 0 0 -3px; border-radius: 50%; background: var(--key-black); opacity: 0;
}
.acc-btn.repere { border-width: 2px; border-color: var(--key-black); }
.acc-btn.repere::after { opacity: 1; }
.acc-btn.played { background: var(--ok); border-color: var(--ok-strong); }
.acc-btn.wrong { background: var(--err-strong); border-color: var(--err-strong); }
.acc-btn:focus-visible { z-index: 2; }

/* Guitare : la case 0 est la corde à vide, derrière le sillet ; la corde
   grave en bas, la plus épaisse, comme sur une tablature. On se repère aux
   marques de nacre et aux numéros, sous le bois. */
.gt {
  --gt-step: 26px; display: flex; flex-direction: column; gap: 0.3rem;
  width: 620px; min-width: 430px; max-width: 100%;
}
.gt-board {
  position: relative; height: calc(var(--gt-step) * 6);
  background: var(--neck); border-radius: 3px 5px 5px 3px;
}
.gt-string {
  position: absolute; left: 0; width: 100%; border-radius: 1px;
  background: var(--neck-string); transform: translateY(-50%);
}
.gt-wire { position: absolute; top: 0; height: 100%; width: 2px; background: var(--neck-fret); transform: translateX(-50%); }
.gt-wire.nut { width: 5px; background: var(--neck-mark); }
.gt-inlay {
  position: absolute; top: calc(var(--gt-step) * 3); width: 9px; height: 9px;
  border-radius: 50%; background: var(--neck-mark); opacity: 0.7;
  transform: translate(-50%, -50%);
}
.gt-cell { position: absolute; height: var(--gt-step); padding: 0; background: none; border: none; cursor: pointer; }
.gt-cell::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 17px; height: 17px;
  margin: -9px 0 0 -9px; border-radius: 50%; opacity: 0;
  background: var(--neck-mark); border: 1.5px solid var(--neck-mark);
}
.gt-cell:hover::after { opacity: 0.35; }
.gt-cell.played::after { opacity: 1; background: var(--ok); border-color: var(--ok-strong); }
.gt-cell.wrong::after { opacity: 1; background: var(--err-strong); border-color: var(--err-strong); }
.gt-nums { position: relative; height: 0.95rem; font-size: 0.7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.gt-nums span { position: absolute; transform: translateX(-50%); }

/* ── Armures ────────────────────────────────────────────── */
.arm-stage { display: flex; justify-content: center; min-height: 110px; }
.arm-stage:empty { display: none; } /* tons voisins : rien à graver avant la correction */
.arm-staffs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem 1.2rem; }
.arm-staff {
  margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  padding: 0.5rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
/* SVG en ligne : il suit la couleur du texte, dans les deux thèmes. Verovio
   pose color="black" sur ses groupes ; `inherit` l'emporte sur l'attribut. */
.arm-svg { color: var(--text); }
.arm-svg svg { display: block; height: 104px; width: auto; max-width: 100%; }
.arm-svg svg, .arm-svg svg * { color: inherit; }
.arm-svg svg * { fill: currentColor; stroke: currentColor; }
.arm-staff figcaption { display: flex; flex-direction: column; align-items: center; font-size: 0.85rem; color: var(--text-soft); }
.arm-staff figcaption strong { color: var(--text); }
.arm-staffs figcaption { margin-top: auto; } /* légendes alignées malgré des portées de largeurs différentes */
.arm-loading { align-self: center; padding: 2rem 1rem; font-size: 0.9rem; color: var(--muted); font-style: italic; }
.arm-answer { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.arm-choice {
  min-width: 11rem; padding: 0.65rem 1rem;
  background: var(--surface); border: 1.5px solid var(--brand-edge); border-radius: 7px;
  cursor: pointer; font-family: inherit; font-size: 0.98rem; color: var(--text);
}
.arm-choice:hover:not(:disabled) { background: var(--brand-tint); }
.arm-choice:disabled { cursor: default; }
.arm-choice.good { background: var(--ok-bg); border-color: var(--ok-edge); color: var(--ok-fg); font-weight: 600; }
.arm-choice.bad { background: var(--err-bg); border-color: var(--err-edge); color: var(--err-fg); }
.arm-row { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.arm-tile {
  min-width: 3.4rem; padding: 0.45rem 0.6rem;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  cursor: pointer; font-family: inherit; font-size: 0.98rem; color: var(--text);
}
.arm-tile:hover:not(:disabled) { background: var(--brand-tint); border-color: var(--brand-edge); }
.arm-tile:disabled { opacity: 0.35; cursor: default; }
.arm-tile.placed { cursor: default; background: var(--brand-tint); border-color: var(--brand-edge); font-weight: 600; }
.arm-rail-box {
  width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem;
  margin-top: 0.3rem;
}
.arm-rail { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; min-height: 2.4rem; }
.arm-rail-lbl { font-size: 0.88rem; color: var(--text-soft); }
.arm-empty { font-size: 0.9rem; color: var(--muted); font-style: italic; }
/* Tons voisins : deux rangées de pastilles, majeur et mineur. Une pastille
   choisie prend l'aplat de la marque ; à la correction, juste / faux / oubliée
   (tiretée), les autres s'effacent. */
.arm-picks { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.arm-mode-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.arm-mode-lbl {
  min-width: 4.2rem; text-align: right; margin-right: 0.3rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.arm-pick[aria-pressed="true"] { background: var(--brand-fill); border-color: var(--brand-fill); color: #fff; font-weight: 600; }
.arm-pick.good, .arm-pick.bad, .arm-pick.missed { opacity: 1; font-weight: 600; }
.arm-pick.good { background: var(--ok-bg); border-color: var(--ok-edge); color: var(--ok-fg); }
.arm-pick.bad { background: var(--err-bg); border-color: var(--err-edge); color: var(--err-fg); }
.arm-pick.missed { background: var(--surface); border: 1.5px dashed var(--ok-edge); color: var(--ok-fg); }
.arm-pick-count { width: 100%; text-align: center; font-size: 0.85rem; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.arm-missed { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; text-align: center; }

@media (max-width: 760px) {
  .mono-row { grid-template-columns: 1fr; gap: 0; }
  .mono-who { margin-left: 14px; }
  .arm-choice { min-width: 0; flex: 1 1 45%; }
  .arm-picks { align-items: stretch; }
  .arm-mode-row { justify-content: center; }
  .arm-mode-lbl { width: 100%; margin-right: 0; text-align: center; }
}
/* Téléphone : les trois armures des tons voisins restent côte à côte — c'est
   leur comparaison qui fait la correction —, à la largeur d'un tiers. */
@media (max-width: 520px) {
  .arm-staffs { flex-wrap: nowrap; gap: 0.4rem; width: 100%; }
  .arm-staffs .arm-staff { flex: 1 1 0; min-width: 0; padding: 0.35rem 0.3rem; }
  .arm-staffs .arm-svg { width: 100%; }
  .arm-staffs .arm-svg svg { width: 100%; height: auto; }
  .arm-staffs figcaption { font-size: 0.75rem; text-align: center; }
}
