@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-void: #060606;
  --bg: #0a0a0a;
  --bg-raised: #141414;
  --bg-card: #1a1a1a;
  --gold: #d4af37;
  --gold-light: #e5c84a;
  --gold-dark: #a88b25;
  --text: #cccccc;
  --text-hi: #f0f0f0;
  --text-dim: #888888;
  --border: rgba(212, 175, 55, 0.15);
  --radius: 8px;
  --display: "Bebas Neue", system-ui, sans-serif;
  --ui: "Inter", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-slow: 720ms;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--bg-void);
  color: var(--text);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.gate {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 48px) 20px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(212, 175, 55, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 35% at 85% 15%, rgba(212, 175, 55, 0.06), transparent 50%),
    var(--bg-void);
}

.gate__glow {
  position: absolute;
  width: min(480px, 75vw);
  height: min(480px, 75vw);
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.16);
  filter: blur(90px);
  pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate;
}

.gate__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: clamp(36px, 5vw, 48px) clamp(24px, 4vw, 40px) 32px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 40px rgba(212, 175, 55, 0.08);
}

.gate__logo {
  display: block;
  width: min(220px, 68vw);
  height: auto;
  margin-bottom: 6px;
}

.gate__eyebrow {
  margin: 0;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.gate__headline {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 7vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text-hi);
}

.gate__strain {
  margin: -4px 0 0;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.gate__question {
  margin: 4px 0 10px;
  max-width: 34ch;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.gate__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.btn-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--ui);
  font-size: 0.92rem;
  font-weight: 700;
  color: #0a0a0a;
  cursor: pointer;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.22);
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    filter var(--dur-fast) var(--ease-out);
}

.btn-yes:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(212, 175, 55, 0.32);
}

.btn-yes:active { transform: scale(0.98); }

.btn-yes svg { flex-shrink: 0; }

.link-no {
  appearance: none;
  width: 100%;
  min-height: 46px;
  border: 1px solid #555;
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--ui);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-hi);
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.link-no:hover {
  border-color: var(--gold-dark);
  background: rgba(212, 175, 55, 0.06);
}

.gate__denied {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.gate__denied h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-hi);
}

.gate__denied p {
  margin: 0;
  max-width: 30ch;
  font-size: 0.9rem;
  color: var(--text);
}

.btn-leave {
  appearance: none;
  width: 100%;
  min-height: 46px;
  border: 1px solid #555;
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--ui);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-hi);
  cursor: pointer;
}

.btn-leave:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.back-link {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  font-family: var(--ui);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gold);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.back-link:hover { color: var(--gold-light); }

.gate__disclaimer {
  margin: 8px 0 0;
  font-size: 0.65rem;
  line-height: 1.5;
  color: var(--text-dim);
  opacity: 0.85;
}

body.is-denied .gate__eyebrow,
body.is-denied .gate__headline,
body.is-denied .gate__strain,
body.is-denied .gate__question,
body.is-denied .gate__actions,
body.is-denied .gate__disclaimer { display: none; }

body.is-denied .gate__denied { display: flex; }

.enter-veil {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(212, 175, 55, 0.28), transparent 55%),
    #060606;
  transform: translateY(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  pointer-events: none;
}

.enter-veil.show {
  transform: translateY(0);
  pointer-events: auto;
}

.enter-veil__text {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.enter-veil__sub {
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(204, 204, 204, 0.7);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 580ms var(--ease-out) both; }
  .reveal.d1 { animation-delay: 40ms; }
  .reveal.d2 { animation-delay: 120ms; }
  .reveal.d3 { animation-delay: 200ms; }
  .reveal.d4 { animation-delay: 280ms; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes drift {
    from { transform: translateX(-50%) translate(0, 0); }
    to { transform: translateX(-50%) translate(10px, -16px); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .gate__glow { animation: none !important; }
}

@media (max-width: 480px) {
  .gate__inner { padding: 32px 20px 28px; }
  .gate__logo { width: min(180px, 62vw); }
}
