:root {
  --bg0: #0a0b0d;
  --bg1: #12151a;
  --ink: #f3efe6;
  --muted: #9a9488;
  --accent: #c8f135;
  --accent-dim: #8aa61f;
  --danger: #ff5a6a;
  --gold: #e4c56b;
  --panel: rgba(255, 255, 255, 0.04);
  --line: rgba(243, 239, 230, 0.12);
  --display: "Syne", sans-serif;
  --body: "IBM Plex Sans", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg0);
  color: var(--ink);
  font-family: var(--body);
}

body {
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(200, 241, 53, 0.12), transparent 55%),
    radial-gradient(900px 600px at 100% 0%, rgba(228, 197, 107, 0.08), transparent 50%),
    linear-gradient(180deg, #10131a 0%, #07080a 100%);
  background-attachment: fixed;
}

h1, h2, h3, .brand {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  background: var(--accent);
  color: #0b0d08;
  font-weight: 700;
  transition: transform 0.15s ease, filter 0.15s ease;
}
button:hover { transform: translateY(-1px); filter: brightness(1.05); }
button:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
button.danger { background: var(--danger); color: white; }

input, textarea, select {
  width: 100%;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  outline: none;
}
input:focus, textarea:focus { border-color: var(--accent); }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
}

.muted { color: var(--muted); }
.accent { color: var(--accent); }
.gold { color: var(--gold); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  background: #1c212b;
  border: 1px solid var(--line);
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}
.toast.show { opacity: 1; }

.char {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #000;
}

.char.lg {
  width: 110px;
  height: 110px;
  border-radius: 22px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,241,53,0.0); }
  50% { box-shadow: 0 0 40px 0 rgba(200,241,53,0.18); }
}

.rise { animation: rise 0.45s ease both; }
