:root {
  color-scheme: dark;
  --bg: #0f0f12;
  --card: #18181c;
  --border: #2a2a30;
  --text: #e8e8ea;
  --muted: #9a9aa2;
  --accent: #d1a3ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

h1 { margin: 0 0 24px; font-size: 1.5rem; }

.preview { margin-bottom: 24px; }

.banner-preview {
  position: relative;
  background: #222;
}

.banner-preview img#bannerImg {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.pfp {
  position: absolute;
  bottom: -28px;
  left: 16px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--card);
  object-fit: cover;
}

.bio-preview {
  margin-top: 40px;
  padding: 14px;
  background: #1f1f24;
  border-radius: 10px;
}

.bio-preview .label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.bio-preview p { margin: 0; }

.terms p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.accept-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin: 16px 0;
  cursor: pointer;
}

button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #1a0d26;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

button:disabled {
  background: #3a3a40;
  color: var(--muted);
  cursor: not-allowed;
}

.reveal {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.reveal.hidden { display: none; }

.reveal ol { padding-left: 20px; line-height: 1.9; }
.reveal a { color: var(--accent); }
.reveal code {
  display: inline-block;
  background: #1f1f24;
  padding: 2px 6px;
  border-radius: 4px;
}

.revert-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f4f4f6;
    --card: #ffffff;
    --border: #e2e2e6;
    --text: #1a1a1e;
    --muted: #6b6b73;
  }
  .bio-preview, .reveal code { background: #f0f0f3; }
}
