:root {
  --bg: #050814;
  --panel: rgba(13, 19, 34, 0.88);
  --line: rgba(142, 116, 255, 0.28);
  --text: #f7f8ff;
  --muted: #b8bfd8;
  --cyan: #5ae7ff;
  --violet: #9b6cff;
  --pink: #ff5fcf;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(91, 92, 255, 0.34), transparent 36%),
    radial-gradient(circle at 12% 24%, rgba(255, 95, 207, 0.13), transparent 34%),
    linear-gradient(180deg, #090d20 0%, var(--bg) 72%);
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.join-card {
  width: min(100%, 520px);
  padding: 34px 28px 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45), 0 0 54px rgba(124, 92, 255, 0.10);
  backdrop-filter: blur(16px);
  text-align: center;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.82;
  margin-bottom: 24px;
  font-weight: 950;
  letter-spacing: -0.06em;
  transform: skewX(-5deg);
}

.brand-pixel,
.brand-arena {
  font-size: clamp(2.3rem, 11vw, 4rem);
}

.brand-pixel { color: #fff; text-shadow: 0 0 20px rgba(255,255,255,.18); }
.brand-arena { color: var(--cyan); text-shadow: 0 0 24px rgba(90,231,255,.35); }

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(90, 231, 255, 0.35);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1 {
  margin: 16px 0 10px;
  font-size: clamp(2rem, 8vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.lead,
.helper,
.footnote,
.invalid-state p {
  color: var(--muted);
}

.lead {
  margin: 0 auto;
  max-width: 42ch;
  font-size: 1rem;
}

.actions { margin-top: 26px; }

.primary-button,
.store-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 850;
}

.primary-button {
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, var(--violet), #6b4eff 52%, var(--pink));
  box-shadow: 0 14px 34px rgba(109, 76, 255, 0.34);
}

.primary-button:active { transform: translateY(1px); }

.helper {
  margin: 18px auto 0;
  max-width: 42ch;
  font-size: 0.9rem;
}

.store-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.store-button {
  min-height: 48px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
  color: #fff;
}

.invalid-state {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(255, 95, 207, 0.28);
  border-radius: 16px;
  background: rgba(255, 95, 207, 0.06);
}

.invalid-state h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.invalid-state p { margin: 0; }

.footnote {
  margin: 24px 0 0;
  font-size: 0.78rem;
}

@media (max-width: 420px) {
  .page-shell { padding: 14px; }
  .join-card { padding: 28px 18px 22px; border-radius: 22px; }
  .store-actions { grid-template-columns: 1fr; }
}
