:root {
  --bg: #f3f0fa;
  --panel: #ffffff;
  --text: #16121f;
  --muted: #6a6478;
  --line: #d9d3e8;
  --purple: #7c3aed;
  --purple-deep: #6d28d9;
  --purple-dim: rgba(124, 58, 237, 0.12);
  --discord: #5865f2;
  --font: "DM Sans", sans-serif;
  --display: "Syne", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

.wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Space Grotesk", var(--display), sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
}

.steps {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.steps li {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps li.on {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.steps li.done {
  background: var(--purple-dim);
  border-color: var(--purple);
  color: var(--purple);
}

.card {
  display: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem 1.75rem;
}

.card.on {
  display: block;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple);
  margin-bottom: 0.6rem;
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.lead {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.tips {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.tips li {
  font-size: 0.92rem;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
}

.tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.7rem 1.2rem;
  border: none;
  cursor: pointer;
  width: 100%;
}

.btn-discord {
  background: var(--discord);
  color: #fff;
}

.btn-discord:hover {
  filter: brightness(1.06);
}

.btn-main {
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: #fff;
}

.btn-main:hover {
  filter: brightness(1.06);
}

.note {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.server-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.server-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--line);
  flex-shrink: 0;
}

.muted {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.15rem;
}

.small {
  font-size: 0.82rem;
}

.hidden {
  display: none !important;
}

.err {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  margin-top: 0.75rem;
}

.btn + .btn,
a.btn + .btn,
.btn + a.btn {
  margin-top: 0.65rem;
}

.guild-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
  max-height: 320px;
  overflow: auto;
}

.guild-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  font-family: var(--font);
  color: var(--text);
}

.guild-row:hover:not(:disabled) {
  border-color: var(--purple);
}

.guild-row.dim,
.guild-row:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.guild-row strong {
  display: block;
  font-size: 0.95rem;
}

