@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,700;1,500&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #0d0612;
  --surface: #1a0f24;
  --surface-2: #261533;
  --gold: #e8b84a;
  --magenta: #d946a8;
  --violet: #9b5de5;
  --text: #f5eef8;
  --muted: #a894b8;
  --border: rgba(232, 184, 74, 0.2);
  --glow: 0 0 40px rgba(217, 70, 168, 0.15);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(155, 93, 229, 0.25), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(217, 70, 168, 0.12), transparent),
    var(--bg);
}

a { color: var(--gold); }

.shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.eyebrow {
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--magenta);
  margin: 0 0 0.75rem;
}

h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-weight: 700;
  margin: 0;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  color: var(--muted);
  margin: 1rem auto 0;
  max-width: 36rem;
  line-height: 1.6;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--glow);
}

.panel h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.panel p.sub {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.tag-btn {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  font: inherit;
  transition: 0.15s ease;
}

.tag-btn:hover { border-color: var(--gold); }

.tag-btn.selected {
  background: linear-gradient(135deg, rgba(232, 184, 74, 0.2), rgba(217, 70, 168, 0.2));
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(232, 184, 74, 0.15);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--magenta));
  color: #1a0f24;
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.results {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 1.1rem 1.25rem;
  animation: reveal 0.5s ease both;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.card h3 {
  margin: 0 0 0.25rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
}

.card .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.card .bio {
  margin: 0 0 1rem;
  line-height: 1.5;
}

.roster {
  margin-top: 3rem;
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.roster-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 1rem;
  transition: 0.15s ease;
}

.roster-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.profile-header {
  margin-bottom: 2rem;
}

.profile-header h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.chip {
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

input, textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 0.6rem;
  padding: 0.7rem 0.85rem;
  font: inherit;
}

textarea { min-height: 110px; resize: vertical; }

.status {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.status.ok { color: #7ddea8; }
.status.err { color: #ff8fab; }

footer {
  margin-top: 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .shell { padding: 1.25rem 1rem 3rem; }
}
