:root {
  --bg: #0d0b1a;
  --bg2: #16122e;
  --pink: #ff5d8f;
  --cyan: #5dd6ff;
  --yellow: #ffd45d;
  --purple: #c08bff;
  --ink: #f4f1ff;
  --muted: #9b95c4;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  font-family: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 800px at 70% -10%, #2a1f5e 0%, var(--bg) 55%);
  overflow: hidden;
  touch-action: manipulation;
}

.wordmark {
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- landing / join screens ---------- */
.screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 28px;
  text-align: center;
}
.logo { font-size: clamp(48px, 14vw, 120px); }
.tag { color: var(--muted); font-size: clamp(15px, 4vw, 20px); max-width: 22ch; line-height: 1.4; }

.btn {
  border: none;
  border-radius: 18px;
  padding: 18px 26px;
  font-size: 20px;
  font-weight: 700;
  font-family: inherit;
  color: #15102e;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  box-shadow: 0 10px 30px rgba(255, 93, 143, 0.35);
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease;
  width: 100%;
  max-width: 360px;
}
.btn:active { transform: scale(0.96); }
.btn.ghost { background: rgba(255,255,255,0.06); color: var(--ink); box-shadow: none; border: 1px solid rgba(255,255,255,0.12); }
.btn:disabled { filter: grayscale(0.7) brightness(0.7); cursor: default; }

.field {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.field label { color: var(--muted); font-size: 13px; font-weight: 600; padding-left: 4px; }
.input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--ink);
  font-size: 22px;
  font-family: inherit;
  outline: none;
}
.input:focus { border-color: var(--cyan); }
.code-input { text-transform: uppercase; letter-spacing: 0.5em; text-align: center; font-weight: 800; }

.row { display: flex; gap: 12px; width: 100%; max-width: 360px; }

.note { color: var(--muted); font-size: 13px; }
.hidden { display: none !important; }
