:root {
  --bg: #0b1220;
  --card: rgba(18, 28, 48, 0.92);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f4f7fb;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #22c55e;
  --danger: #f87171;
  --font-display: "Outfit", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(56, 189, 248, 0.22), transparent 42%),
    radial-gradient(circle at 80% 75%, rgba(34, 197, 94, 0.18), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.08), transparent 55%);
  pointer-events: none;
}

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #041018;
}

.brand h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.03em;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.card.hidden,
.hidden { display: none !important; }

.card h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 22px;
}

.sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.label {
  display: block;
  margin: 12px 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.input {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  outline: none;
}

.input:focus {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

select.input {
  color-scheme: dark;
  background-color: #12203a;
  color: #f8fafc;
}

select.input option,
select.input optgroup {
  background-color: #12203a;
  color: #ffffff;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.hobby-block {
  margin-top: 16px;
}

.guardian-block {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.section-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
}

.hobby-hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.hobby-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hobby-chips button {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
  background: rgba(56, 189, 248, 0.1);
}

.hobby-chips button.selected {
  border-color: transparent;
  color: #041018;
  background: linear-gradient(135deg, #38bdf8, #22c55e);
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
}

.primary,
.ghost,
.back {
  font: inherit;
  cursor: pointer;
  border-radius: 12px;
}

.primary {
  width: 100%;
  margin-top: 18px;
  border: none;
  padding: 13px 16px;
  font-weight: 800;
  font-family: var(--font-display);
  color: #041018;
  background: linear-gradient(135deg, #38bdf8, #22c55e);
}

.primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

.ghost {
  width: 100%;
  margin-top: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 12px 14px;
  font-weight: 700;
}

.ghost.subtle {
  opacity: 0.75;
  font-size: 13px;
}

.back {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 0;
  margin-bottom: 10px;
  font-weight: 700;
}

.alert {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
  font-size: 13px;
}
