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

:root {
  --forest: #163317;
  --forest-deep: #0d3619;
  --green: #01693a;
  --gold: #f3bd66;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.18);
  --ui: "DM Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
}

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

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

body {
  background: var(--forest);
  color: var(--muted);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vw, 56px) 20px;
  background:
    radial-gradient(ellipse 55% 40% at 50% 0%, rgba(243, 189, 102, 0.16), transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 100%, rgba(1, 105, 58, 0.35), transparent 55%),
    var(--forest);
}

.gate__inner {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gate__logo {
  display: block;
  width: min(240px, 70vw);
  height: auto;
  margin-bottom: 28px;
}

.gate__eyebrow {
  margin: 0 0 12px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.gate__headline {
  margin: 0;
  font-size: clamp(2.1rem, 7vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.gate__question {
  margin: 12px 0 28px;
  max-width: 30ch;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
}

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

.btn-yes {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  background: var(--gold);
  font-family: var(--ui);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--forest-deep);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.btn-yes:hover {
  background: #ffc97a;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(243, 189, 102, 0.3);
}

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

.link-no,
.btn-leave {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  font-family: var(--ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.link-no:hover,
.btn-leave:hover {
  border-color: var(--gold);
  color: var(--ink);
}

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

.gate__denied h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
}

.gate__denied p {
  margin: 0 0 6px;
  max-width: 30ch;
  font-size: 0.92rem;
  color: var(--muted);
}

.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;
}

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

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

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 560ms var(--ease-out) both; }
  .reveal.d1 { animation-delay: 40ms; }
  .reveal.d2 { animation-delay: 140ms; }
  .reveal.d3 { animation-delay: 240ms; }

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