/* css/processing.css — the «processing» card (TLProcesando, js/ui/processing.js).
   Santi, 2026-10-18: a server operation that takes 2-4 s with nothing on
   screen reads as «did I tap it?». A centred card with a gradient and an
   animation of the house — a target with points orbiting it, not the usual
   spinner — shown for at least 1.5 s.
   ⚠️ The layer is 100000, the value of the app's previous waiting overlay:
   it must sit above full-screen layers such as Registrations (99999). */
.tl-proc {
  position: fixed;
  inset: 0;
  z-index: var(--z-espera);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 180ms ease-out;
}
.tl-proc[hidden] { display: none; }
/* The second colour of the 3D designs (processing-3d.js): the app's
   --accent-2; Score doesn't define it, so the same two values as a fallback. */
.tl-proc { --tl-proc-2: var(--accent-2, #56beb0); }
:root[data-theme="light"] .tl-proc { --tl-proc-2: var(--accent-2, #2a7a6f); }
.tl-proc.visible { opacity: 1; }

.tl-proc-card {
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 26px 22px 22px;
  border-radius: 14px;
  border: 1px solid var(--border);
  /* Plain, no gradient (Santi, 2026-10-19): a tinted top made the card look
     as if its upper edge hadn't been drawn, depending on what was behind. */
  background: var(--card);
  box-shadow: 0 12px 40px color-mix(in srgb, #000 35%, transparent);
  transform: translateY(6px) scale(.98);
  transition: transform 180ms ease-out;
}
.tl-proc.visible .tl-proc-card { transform: none; }

.tl-proc-ico { display: block; width: 84px; height: 84px; overflow: visible; }
/* Where the design of the day goes (SVG target or the 3D canvas). */
.tl-proc-hueco { width: 84px; height: 84px; }
.tl-proc-ring { fill: none; stroke: var(--border); stroke-width: 1.5; }
.tl-proc-centro { fill: var(--accent); }
.tl-proc-halo { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .35; transform-origin: 42px 42px;
  animation: tlProcHalo 1.8s ease-out infinite; }
.tl-proc-dot { fill: var(--accent); }
.tl-proc-dot.suave { opacity: .55; }
.tl-proc-orb { transform-origin: 42px 42px; }
/* Calm on purpose (Santi, 2026-10-23): someone waiting must not be rushed;
   it was 1.6 / 2.6 / 3.8 s per lap. */
.tl-proc-orb.o1 { animation: tlProcGiro 2.8s linear infinite; }
.tl-proc-orb.o2 { animation: tlProcGiro 4.2s linear infinite reverse; }
.tl-proc-orb.o3 { animation: tlProcGiro 6s linear infinite; }

.tl-proc-txt {
  margin: 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
}

@keyframes tlProcGiro { to { transform: rotate(360deg); } }
@keyframes tlProcHalo {
  0% { transform: scale(.6); opacity: .5; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Reduced motion: no orbits, the centre breathes slowly instead — still
   says «working» without anything moving across the screen. */
@media (prefers-reduced-motion: reduce) {
  .tl-proc, .tl-proc-card { transition: none; }
  .tl-proc-orb, .tl-proc-halo { animation: none; }
  .tl-proc-halo { opacity: 0; }
  .tl-proc-centro { animation: tlProcPulso 2.4s ease-in-out infinite; }
  @keyframes tlProcPulso { 50% { opacity: .45; } }
}
