/* ============================================================
   VIEW: CONNECTING — transition loader
   Reference: docs/img_reference/02-connecting.png
   ============================================================

   Minimalni: black fullscreen, "CONNECTING" text uprostred,
   scratches v rozich (pres .fx-scratch-corners utility).
   ============================================================ */

.connecting-screen {
  position: fixed;
  inset: 0;
  /* Vrstvy (od shora dolu):
     1. Pravidelny dot grid 22px × 22px (~80×50 dots na 1920×1080) per
        docs/img_reference/02-connecting.png density
     2. Scanlines (existing, ne hybat)
     3. Base background — dark gradient
  */
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.10) 0px, rgba(255, 255, 255, 0.05) 1px, transparent 2.5px) 0 0 / 22px 22px,
    repeating-linear-gradient(180deg, transparent 0 2px, rgba(0, 0, 0, 0.10) 2px 3px),
    var(--bg-base);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.connecting-screen[hidden] { display: none; }

.connecting-inner {
  position: relative;
  z-index: 2;     /* nad .fx-stripes */
}

.connecting-label {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 1.35rem;        /* +20% z 1.125rem dle reference image proportion */
  letter-spacing: 0.32em;
  color: var(--text-strong);
  text-transform: uppercase;
  opacity: 0.92;
  animation: connecting-pulse 1.4s ease-in-out infinite;
}

@keyframes connecting-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .connecting-label { animation: none; opacity: 0.92; }
}
