:root {
  color-scheme: dark;
  --ink: #f7f4ee;
  --amber: #ffb020;
  --amber-ink: #1c1406;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  height: 100%;
  background: #000;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

body {
  position: fixed;
  inset: 0;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

[hidden] { display: none !important; }

.stage {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding:
    calc(env(safe-area-inset-top) + 24px)
    24px
    calc(env(safe-area-inset-bottom) + 24px);
  background: #07080c;
  overflow: hidden;
}

.join {
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.join::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 32, 0.55), rgba(255, 45, 140, 0.05) 68%, transparent 72%);
  filter: blur(8px);
  z-index: -1;
  animation: glow 3.6s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber);
}

h1 {
  margin: 0;
  font-size: clamp(4.5rem, 22vw, 7.5rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.lead {
  margin: 18px 0 28px;
  font-size: 1.15rem;
  color: #d9d3c7;
}

#join-btn {
  width: 100%;
  min-height: 72px;
  border: 0;
  border-radius: 999px;
  background: var(--amber);
  color: var(--amber-ink);
  font: inherit;
  font-size: 1.35rem;
  font-weight: 800;
  cursor: pointer;
}

#join-btn:active { transform: scale(0.98); }

.hint {
  margin: 18px 0 0;
  color: #b7b1a6;
  font-size: 0.95rem;
}

.caption {
  margin: 0 0 8px;
  font-size: clamp(1.1rem, 4.5vw, 2rem);
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.message {
  margin: 0;
  max-width: 16ch;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.message.title { font-size: clamp(2.4rem, 12vw, 6rem); }

.message.fill {
  font-size: clamp(6rem, 38vw, 16rem);
  font-variant-numeric: tabular-nums;
  line-height: 0.8;
}

.badge {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 18%);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: clamp(1.4rem, 6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  pointer-events: none;
}

.banner {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 12px);
  left: 16px;
  right: 16px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 0.95rem;
}

.banner.show { position: fixed; }

@keyframes glow {
  50% { transform: scale(1.08); opacity: 0.8; }
}

@media (prefers-reduced-motion: reduce) {
  .join::before { animation: none; }
}
