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

:root {
  --paper: #f5f4f2;
  --card: #111111;
  --ink: #ffffff;
  --muted: #c0c0c0;
  --line: rgba(255, 255, 255, 0.22);
  --red: #dc2626;
  --red-deep: #b91c1c;
  --display: "Oswald", Impact, sans-serif;
  --ui: "Inter", 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(--paper);
  color: var(--muted);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vw, 56px) 20px;
}

.gate__card {
  width: min(440px, 100%);
  padding: 36px 28px 28px;
  background: var(--card);
  border-radius: 8px;
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gate__logo {
  display: block;
  width: min(240px, 72%);
  height: auto;
  margin: 0 0 28px;
}

.gate__headline {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 2.15rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.gate__question {
  margin: 10px 0 24px;
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

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

.btn-yes,
.link-no,
.btn-leave {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 4px;
  font-family: var(--ui);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.btn-yes {
  border: none;
  background: var(--red);
  color: #fff;
}

.btn-yes:hover { background: var(--red-deep); }

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

.link-no:hover,
.btn-leave:hover {
  border-color: #fff;
}

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

.gate__denied h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.gate__denied p {
  margin: 0 0 4px;
  max-width: 28ch;
  font-size: 0.95rem;
  color: var(--muted);
}

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

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(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
