/* Private preview PIN gate. Kept outside the Vite bundle so preview-dist can be protected without gating the public build. */
html.preview-gate-pending body,
html.preview-gate-active body {
  overflow: hidden;
}

html.preview-gate-pending body > :not(.preview-gate),
html.preview-gate-active body > :not(.preview-gate) {
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

.preview-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,61,61,0.22), transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(255,255,255,0.08), transparent 30%),
    rgba(5,5,7,0.96);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}

.preview-gate__panel {
  width: min(520px, 100%);
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
  padding: clamp(28px, 6vw, 48px);
  border: 1px solid var(--border-2, rgba(255,255,255,0.22));
  border-radius: var(--r-xl, 24px);
  background: rgba(18,18,22,0.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 34px 120px -28px rgba(0,0,0,0.92);
}

.preview-gate__mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(255,61,61,0.24));
}

.preview-gate__eyebrow {
  font-family: var(--font-mono, monospace);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent, #ff3d3d);
}

.preview-gate__title {
  max-width: 14ch;
  font-family: var(--font-dot, monospace);
  font-size: clamp(1.75rem, 5.8vw, 3.1rem);
  font-weight: 500;
  line-height: .98;
  color: var(--ink, #fff);
}

.preview-gate__copy {
  margin-top: -4px;
  color: var(--ink-2, rgba(255,255,255,0.68));
}

.preview-gate__form {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 8px;
}

.preview-gate__input {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--border-2, rgba(255,255,255,0.22));
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--ink, #fff);
  font-family: var(--font-mono, monospace);
  font-size: .95rem;
  letter-spacing: .18em;
  text-align: center;
  outline: none;
}

.preview-gate__input:focus {
  border-color: rgba(255,61,61,0.72);
  box-shadow: 0 0 0 4px rgba(255,61,61,0.14);
}

.preview-gate__btn {
  white-space: nowrap;
}

.preview-gate__error {
  min-height: 1.2em;
  color: var(--accent-2, #ff7878);
  font-family: var(--font-mono, monospace);
  font-size: .72rem;
}

@media (max-width: 520px) {
  .preview-gate__form {
    grid-template-columns: 1fr;
  }
  .preview-gate__btn {
    width: 100%;
  }
}
