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

:root {
  --ink: #15171a;
  --card: #15171a;
  --gold: #ffc520;
  --gold-soft: rgba(255, 197, 32, 0.35);
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --display: "Lora", Georgia, 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(--ink);
  color: var(--white);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(255, 197, 32, 0.08), transparent 60%),
    var(--ink);
}

.gate__card {
  width: min(500px, 100%);
  padding: 28px 24px 24px;
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  text-align: center;
}

.gate__logo {
  display: block;
  width: min(210px, 70%);
  height: auto;
  margin: 0 auto 20px;
}

.gate__headline {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--gold);
}

.gate__question,
.gate__certify {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 400;
  color: var(--white);
}

.gate__certify {
  margin-bottom: 22px;
}

.gate__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 14px;
  margin-bottom: 16px;
}

.gate__or {
  font-size: 0.9rem;
  color: var(--white);
}

.btn-yes,
.link-no,
.btn-leave {
  appearance: none;
  min-height: 50px;
  padding: 15px 32px;
  border-radius: 4px;
  font-family: var(--ui);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.btn-yes {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.btn-yes:hover {
  background: #ffd24d;
  border-color: #ffd24d;
  transform: translateY(-1px);
}

.link-no,
.btn-leave {
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
}

.link-no:hover,
.btn-leave:hover {
  background: rgba(255, 255, 255, 0.08);
}

.gate__note {
  display: block;
  font-size: 0.6rem;
  color: var(--muted);
}

.gate__denied {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.gate__denied h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold);
}

.gate__denied p {
  margin: 0 0 4px;
  max-width: 34ch;
  color: var(--white);
}

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

body.is-denied .gate__headline,
body.is-denied .gate__question,
body.is-denied .gate__certify,
body.is-denied .gate__actions { 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: 8px;
  background: var(--gold);
  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: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}

.enter-veil__sub {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(21, 23, 26, 0.65);
}

@media (prefers-reduced-motion: reduce) {
  .enter-veil { transition: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 520ms 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(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
