:root {
  --bg-base: #070b14;
  --accent-start: #2563eb;
  --accent-end: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.38);
}

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

html,
body {
  min-height: 100%;
  background-color: var(--bg-base);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(520px circle at 50% 45%, rgba(37, 99, 235, 0.22), transparent 65%),
    radial-gradient(420px circle at 80% 90%, rgba(34, 197, 94, 0.08), transparent 55%);
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.join-btn {
  width: min(100%, 260px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: #ffffff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 14px 32px var(--accent-glow);
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
  -webkit-tap-highlight-color: transparent;
  animation: btn-enter 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.join-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.48);
}

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

.join-btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 3px;
}

.join-btn.is-busy {
  opacity: 0.78;
  cursor: wait;
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.16s ease;
}

.join-btn:hover .btn-arrow {
  transform: translateX(3px);
}

@keyframes btn-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .join-btn,
  .btn-arrow {
    transition: none;
  }
}
