:root {
  --bg-1: #120c2b;
  --bg-2: #2a1259;
  --bg-3: #0b2a4a;
  --card: rgba(255, 255, 255, .07);
  --card-strong: rgba(255, 255, 255, .13);
  --line: rgba(255, 255, 255, .16);
  --text: #f6f3ff;
  --muted: #b9b0d8;
  --gold: #ffd23f;
  --pink: #ee4266;
  --teal: #3bceac;
  --blue: #5aa9e6;
  --danger: #ff5c7a;
  --radius: 18px;
  --display: 'Bungee', 'Arial Black', system-ui, sans-serif;
  --stick-ink: #f6f3ff;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 15% 10%, var(--bg-2), transparent 60%),
              radial-gradient(1000px 700px at 90% 90%, var(--bg-3), transparent 60%),
              var(--bg-1);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display { font-family: var(--display); font-weight: 400; letter-spacing: .02em; margin: 0; }

button, .btn {
  font: inherit; font-weight: 800; cursor: pointer; border: 0; border-radius: 999px;
  padding: .8em 1.5em; color: #1a1a2e; background: var(--gold);
  box-shadow: 0 4px 0 #b8901a, 0 8px 24px rgba(0, 0, 0, .35);
  transition: transform .08s, box-shadow .08s, filter .15s;
  -webkit-tap-highlight-color: transparent;
}
button:hover { filter: brightness(1.07); }
button:active { transform: translateY(3px); box-shadow: 0 1px 0 #b8901a, 0 4px 12px rgba(0, 0, 0, .35); }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
button.secondary { background: var(--card-strong); color: var(--text); box-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
button.danger { background: var(--danger); color: #fff; box-shadow: 0 4px 0 #a3233b; }
button.teal { background: var(--teal); box-shadow: 0 4px 0 #23866e; }
button.small { padding: .45em .9em; font-size: .85em; }

input[type=text], input[type=password], input[type=number] {
  font: inherit; font-size: 1.2em; padding: .8em 1em; border-radius: 14px; width: 100%;
  border: 2px solid var(--line); background: rgba(0, 0, 0, .25); color: var(--text); outline: none;
}
input:focus { border-color: var(--gold); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2em; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

.toast-wrap { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #fff; color: #1a1a2e; padding: .7em 1.2em; border-radius: 12px; font-weight: 700; box-shadow: 0 8px 30px rgba(0,0,0,.4); animation: toast-in .25s ease-out; }
.toast.error { background: var(--danger); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }

@keyframes pulse { 50% { opacity: .45; } }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
.avatar { border-radius: 50%; background: var(--c, var(--gold)); background-size: cover; background-position: center; border: 2px solid rgba(255,255,255,.8); flex-shrink: 0; display: grid; place-items: center; font-weight: 800; color: #1a1a2e; }
.link { background: none; box-shadow: none; color: var(--muted); text-decoration: underline; font-weight: 600; padding: .4em; }
.link:active { transform: none; box-shadow: none; }
