/* ============================================================
   The Switch — 18+ threshold as a neon sign buzzing to life.
   Dead dark room; the VV sign flickers on; flipping the
   switch strobes the lights and drops you into her world.
   ============================================================ */

.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(70% 60% at 50% 35%, rgba(29, 16, 51, 0.95), rgba(10, 5, 18, 1) 80%),
    var(--void);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.gate[hidden] { display: none; }

.gate.is-open {
  opacity: 0;
  visibility: hidden;
}

/* strobe flash on entry */
.gate-flash {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--uv);
  opacity: 0;
  pointer-events: none;
}

.gate-flash.is-firing {
  animation: strobe 0.55s steps(2, jump-none) forwards;
}

@keyframes strobe {
  0% { opacity: 0.9; }
  40% { opacity: 0.1; }
  70% { opacity: 0.55; }
  100% { opacity: 0; }
}

.gate-content {
  position: relative;
  text-align: center;
  padding: 2rem;
  max-width: 36rem;
}

.gate-sign {
  font-family: var(--font-neon);
  font-size: clamp(2.6rem, 9vw, 5.2rem);
  line-height: 1.1;
  color: var(--violet-hot);
  text-shadow:
    0 0 10px rgba(214, 179, 255, 0.9),
    0 0 34px rgba(157, 92, 255, 0.7),
    0 0 90px rgba(157, 92, 255, 0.45);
  animation: neon-flicker 4.2s linear infinite;
}

@keyframes neon-flicker {
  0%, 6%, 8%, 100% { opacity: 1; }
  7% { opacity: 0.35; }
  42%, 44% { opacity: 1; }
  43% { opacity: 0.5; }
  71%, 73.5% { opacity: 1; }
  72% { opacity: 0.25; }
  72.8% { opacity: 0.8; }
}

.gate-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 3.2vw, 1.8rem);
  color: var(--chrome);
  margin-top: 1.6rem;
  line-height: 1.35;
}

.gate-sub {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

.gate-actions {
  margin-top: 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.gate-leave {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.5rem 1rem;
  transition: color 0.4s ease;
}

.gate-leave:hover { color: var(--magenta); }

.gate-legal {
  position: absolute;
  bottom: 1.6rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: rgba(141, 127, 168, 0.55);
}

body.gate-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .gate-sign { animation: none; }
  .gate-flash.is-firing { animation: none; opacity: 0; }
}
