#preview-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: #f5f0e8;
  color: #0a0a0a;
  font-family: 'DM Sans', system-ui, sans-serif;
}

#preview-gate.is-visible {
  display: flex;
}

#preview-gate .gate-panel {
  width: min(440px, 100%);
  text-align: center;
}

#preview-gate .gate-art {
  margin: 0 auto 20px;
  width: 132px;
  height: 88px;
}

#preview-gate .gate-headline {
  margin: 0 0 12px;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(2.1rem, 8vw, 3.1rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: 12ch;
  margin-inline: auto;
}

#preview-gate .gate-sub {
  margin: 0 0 28px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(10, 10, 10, 0.62);
  max-width: 30ch;
  margin-inline: auto;
}

#preview-gate .gate-label {
  display: block;
  margin-bottom: 8px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(10, 10, 10, 0.72);
}

#preview-gate .gate-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(10, 10, 10, 0.18);
  border-radius: 10px;
  padding: 13px 14px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.95rem;
  background: #fffdf8;
  color: #0a0a0a;
  text-align: center;
  letter-spacing: 0.08em;
}

#preview-gate .gate-input:focus {
  outline: 2px solid rgba(10, 10, 10, 0.22);
  outline-offset: 2px;
}

#preview-gate .gate-input.is-shake {
  animation: gate-shake 0.45s ease;
}

@keyframes gate-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

#preview-gate .gate-btn {
  margin-top: 14px;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  background: #0a0a0a;
  color: #f5f0e8;
}

#preview-gate .gate-btn:hover {
  background: #ff4d1c;
}

#preview-gate .gate-error {
  min-height: 1.25em;
  margin-top: 12px;
  font-size: 0.88rem;
  color: #b42318;
}

#preview-gate .gate-whisper {
  margin-top: 22px;
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(10, 10, 10, 0.42);
}
