/* ------------------------------------------------------------------
   rotator-cuff.css — ajustements de style propres à la maquette « coiffe des
   rotateurs ». La charte générale (coquille UI, scène 3D, panneau, thème
   clair/sombre, responsive) vient de /core/css/ui.css.
------------------------------------------------------------------ */

/* jauges à crans (stades de rupture) : un petit tiret sous chaque cran, aligné
   sur la position du curseur (le centre du curseur de 18 px parcourt la piste
   de 9 px à largeur - 9 px) */
.ticks {
  display: flex; justify-content: space-between;
  padding: 0 8px; margin-top: -3px;
  pointer-events: none;
}
.ticks i { display: block; width: 2px; height: 6px; border-radius: 1px; background: var(--border-2); }

/* liste déroulante « long biceps » : même rendu que dans la maquette arthrose — hauteur
   tactile (44 px), chevron maison */
.field-label { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 500; }
.select { position: relative; margin-top: 2px; }
.select select {
  -webkit-appearance: none; appearance: none;
  width: 100%; min-height: 44px; padding: 10px 38px 10px 12px;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-sm);
  cursor: pointer;
}
.select select:hover { border-color: var(--tone, var(--accent)); }
.select::after {
  content: ""; position: absolute; right: 15px; top: 50%;
  width: 7px; height: 7px; margin-top: -6px; pointer-events: none;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg);
}

/* « Bouger le bras », « Flexion du bras » : la pastille du bouton passe de play à pause pendant l'animation */
#btn-abduction-play .ico-pause, #btn-flexion-play .ico-pause { display: none; }
#btn-abduction-play.is-playing .ico-play, #btn-flexion-play.is-playing .ico-play { display: none; }
#btn-abduction-play.is-playing .ico-pause, #btn-flexion-play.is-playing .ico-pause { display: block; }

/* rapporteur du CSA : affiché au-dessus de l'acromion pendant l'animation « angle CSA
   augmenté » (cf. csaGaugeShow dans rotator-cuff-viewer.js) */
.csa-gauge {
  position: absolute; transform: translate(-50%, -100%);
  opacity: 0; transition: opacity .25s ease;
  --csa: var(--ok);
}
.csa-gauge.on { opacity: 1; }
.csa-gauge.bad { --csa: var(--danger); }
.csa-gauge svg { display: block; overflow: visible; filter: drop-shadow(0 1px 2px rgba(16,32,38,.18)); }
.csa-plate { fill: color-mix(in srgb, var(--surface) 88%, transparent); stroke: var(--border-2); stroke-width: 1; }
.csa-band { fill: none; stroke-width: 4; stroke-linecap: butt; }
.csa-band.ok { stroke: var(--ok); }
.csa-band.bad { stroke: color-mix(in srgb, var(--danger) 55%, transparent); }
.csa-tick { stroke: var(--ink-3); stroke-width: 1; }
.csa-tick.thr { stroke: var(--danger); stroke-width: 1.6; }
.csa-thr { font: 600 9px "IBM Plex Sans", Helvetica, Arial, sans-serif; fill: var(--danger); text-anchor: middle; }
.csa-ref { stroke: var(--ink-2); stroke-width: 1.6; stroke-dasharray: 4 3; }
.csa-sector { fill: var(--csa); fill-opacity: .18; transition: fill .3s; }
.csa-arc { fill: none; stroke: var(--csa); stroke-width: 1.6; transition: stroke .3s; }
.csa-ray { stroke: var(--csa); stroke-width: 2.4; stroke-linecap: round; transition: stroke .3s; }
.csa-tip, .csa-vertex { fill: var(--csa); transition: fill .3s; }
.csa-vertex { fill: var(--ink-2); }
.csa-val { font: 700 22px "IBM Plex Sans", Helvetica, Arial, sans-serif; fill: var(--csa); transition: fill .3s; font-variant-numeric: tabular-nums; }
.csa-cap { font: 600 10px "IBM Plex Sans", Helvetica, Arial, sans-serif; fill: var(--ink-2); letter-spacing: .06em; }
