.rcf { max-width: 720px; margin: 1.5em auto; }
.rcf-campo {
  position: relative;
  aspect-ratio: 105 / 68;
  border-radius: 6px;
  overflow: hidden;
  background: #222;
  container-type: inline-size;
}
.rcf-campo svg { display: block; width: 100%; height: 100%; }

.rcf-buio {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  background: rgba(8, 18, 10, 0.74);
  border-left: 2px solid rgba(255, 255, 255, 0.85);
  transition: width 1.2s ease-out;
}
.rcf-buio.rcf-completo { border-left: 0; }

.rcf-testo {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 2px 18px rgba(0, 0, 0, 0.45);
  background: radial-gradient(ellipse 55% 45% at 50% 50%, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}
.rcf-riga { display: block; line-height: 1.1; }
.rcf-piccola {
  font-size: 14px;
  font-size: clamp(11px, 3.2cqw, 28px);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.rcf-grande {
  font-size: 64px;
  font-size: clamp(44px, 17cqw, 140px);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin: 0.06em 0 0.1em;
}
.rcf-cifra { font-variant-numeric: tabular-nums; letter-spacing: 0.12em; }

.rcf .rcf-bottone {
  position: absolute;
  left: 50%;
  bottom: 5cqw;
  bottom: clamp(10px, 5cqw, 40px);
  transform: translateX(-50%);
  padding: 0.65em 1.8em;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-size: clamp(12px, 2.6cqw, 22px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: #14361a;
  background: #fff;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.rcf .rcf-bottone:hover { opacity: 0.8; color: #14361a; }
.rcf .rcf-bottone:focus,
.rcf .rcf-bottone:active { transform: translateX(-50%) scale(0.9); }
.rcf .rcf-bottone:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .rcf-buio, .rcf .rcf-bottone { transition: none; }
}
