/* The "reading thousands of posts" moment, and its error state. */
.screen--matching { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 72dvh; text-align: center; }
.scan { position: relative; width: 100%; max-width: 520px; margin-bottom: 30px; }
/* The face reel sits in the well of the chamber (ui/reel.js). */
.reel { position: absolute; left: 50%; top: 79%; width: 19%; aspect-ratio: 1; padding: 3px; border: 1px solid var(--butter); border-radius: 50%; background: var(--bg); transform: translate(-50%, -50%); }
.reel img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--raise); }
.reel img:not([src]) { visibility: hidden; }
.reel.landed { animation: land 900ms var(--ease) both; }
@keyframes land {
  0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 var(--butter-ring); }
  35% { transform: translate(-50%, -50%) scale(1.22); box-shadow: 0 0 0 10px var(--butter-ring); }
  100% { transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 0 0 22px rgba(243, 224, 160, 0); }
}
.screen--matching.failed .reel { opacity: .35; }
.hemi--scan .seat { fill: var(--seat-off); animation: scan 1.8s ease-in-out infinite; }
@keyframes scan { 0%, 100% { fill: var(--seat-off); } 50% { fill: var(--butter); } }
.matching-line { min-height: 1.3em; margin: 0 0 22px; font: 300 clamp(1.8rem, 7vw, 2.6rem)/1.15 var(--serif); letter-spacing: -.015em; outline: none; }
.meter { width: min(320px, 80%); height: 4px; overflow: hidden; border-radius: 4px; background: var(--border-strong); }
.meter span { display: block; width: 0; height: 100%; background: var(--butter); transition: width 300ms var(--ease); }
.match-error { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.match-error p { flex-basis: 100%; margin: 0 0 8px; color: var(--muted); }
.screen--matching.failed .hemi--scan .seat { animation: none; }
