/*
 * Sello de tinta TuSello: lo comparten /login, /signup y la landing.
 * js/sello.js dibuja el SVG dentro de .acc-slot-ring; el filtro #acc-tinta
 * va una vez en cada página. Cada página decide el tamaño de la casilla y su
 * etiqueta; aquí solo vive el sello y su caída.
 */
.acc-slot-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px dashed var(--acc-slot-line, #948d7e);
  transition: border-color 160ms ease, transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}
.acc-slot.is-stamped .acc-slot-ring { border-color: transparent; }
.acc-slot.is-landing .acc-slot-ring { animation: acc-thump 220ms 120ms cubic-bezier(0.22, 1, 0.36, 1); }

.acc-stamp {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  color: var(--acc-stamp, #1f3cff);
  transform: rotate(var(--acc-r, -8deg));
  pointer-events: none;
}
.acc-slot.is-landing .acc-stamp { animation: acc-press 240ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.acc-stamp.is-lifting { opacity: 0; transition: opacity 150ms ease; }

@keyframes acc-press {
  0% { opacity: 0; transform: rotate(var(--acc-r, -8deg)) scale(1.55); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: rotate(var(--acc-r, -8deg)) scale(1); }
}
@keyframes acc-thump {
  0% { transform: scale(1); }
  40% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

/* Texto que solo leen los lectores de pantalla (": listo" en cada sello). */
.acc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.acc-ink-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .acc-slot.is-landing .acc-stamp { animation: acc-fade 120ms ease both; }
  .acc-slot.is-landing .acc-slot-ring { animation: none; }
  @keyframes acc-fade { from { opacity: 0; } to { opacity: 1; } }
}
