/* RC88 · Avviso di traduzione dei testi delle schede.
   Piccolo, sobrio, dentro la scheda: dice che il testo è in arrivo in inglese
   e sparisce da solo quando la traduzione è pronta. */
.rc88-ct-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 6px 11px;
  border: 1px solid rgba(201, 168, 106, .38);
  border-radius: 999px;
  background: rgba(201, 168, 106, .1);
  color: #7a6534;
  font: 700 11.5px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .03em;
}

.rc88-ct-note[data-state="working"]::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 2px solid rgba(201, 168, 106, .35);
  border-top-color: #a9873f;
  border-radius: 50%;
  animation: rc88-ct-spin .8s linear infinite;
}

.rc88-ct-note[data-state="error"] {
  border-color: rgba(165, 63, 44, .32);
  background: rgba(165, 63, 44, .08);
  color: #8d3a29;
}

@keyframes rc88-ct-spin {
  to { transform: rotate(360deg); }
}

/* Su fondo scuro (diretta, regia, pannelli notturni) l'avviso resta leggibile. */
.rc88-live .rc88-ct-note,
.regia-display .rc88-ct-note,
[data-theme="dark"] .rc88-ct-note {
  border-color: rgba(243, 212, 137, .42);
  background: rgba(243, 212, 137, .12);
  color: #f0dcae;
}

@media (prefers-reduced-motion: reduce) {
  .rc88-ct-note[data-state="working"]::before { animation: none; }
}
