:root {
  --bg1: #2a1b6e;
  --bg2: #5b2a9c;
  --panel: rgba(255, 255, 255, 0.1);
  --panel-strong: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --accent: #ffc233;
  --good: #2ecc8f;
  --bad: #ff5c6c;
  --a0: #ff5c6c;
  --a1: #4f8cff;
  --a2: #f5b301;
  --a3: #22b07d;
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 10%, #7a3fd1 0%, transparent 45%),
    radial-gradient(circle at 85% 90%, #2f7fd8 0%, transparent 45%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
  background-color: var(--bg1);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; }
.hidden { display: none !important; }
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; aspect-ratio: 1; line-height: 1;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18);
}
.btn {
  background: var(--accent); color: #2a1b00; font-weight: 900;
  border-radius: 14px; padding: 0.7em 1.4em;
  box-shadow: 0 5px 0 #b98700; transition: transform 0.08s, box-shadow 0.08s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #b98700; }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn.ghost { background: var(--panel-strong); color: #fff; box-shadow: 0 5px 0 rgba(0, 0, 0, 0.25); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; }
@keyframes pop { 0% { transform: scale(0.3); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulse { 50% { transform: scale(1.06); } }
.pop { animation: pop 0.45s cubic-bezier(.2,.9,.3,1.3) both; }
.rise { animation: rise 0.5s ease both; }
