:root {
  --bg: #12101f;
  --bg2: #1d1a33;
  --card: #26223f;
  --text: #f4f2ff;
  --muted: #a9a3c9;
  --accent: #7c5cff;
  --ok: #22c55e;
  --bad: #ef4444;
  --warn: #f59e0b;
  --a0: #e5484d; --a1: #3e63dd; --a2: #f5a524; --a3: #30a46c; --a4: #8e4ec6; --a5: #12a594;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(circle at 20% 0%, #2b2257 0%, var(--bg) 55%) fixed;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; }
button { font: inherit; cursor: pointer; border: 0; border-radius: 12px; }
input, textarea, select {
  font: inherit; color: var(--text); background: var(--bg2);
  border: 2px solid #3a3560; border-radius: 12px; padding: 12px 14px; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
.btn { background: var(--accent); color: white; padding: 14px 22px; font-weight: 700; font-size: 1.05rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.secondary { background: #3a3560; }
.btn.danger { background: var(--bad); }
.btn.small { padding: 8px 12px; font-size: .9rem; font-weight: 600; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.card { background: var(--card); border-radius: var(--radius); padding: 20px; }
.error { color: #ffb4b4; min-height: 1.3em; margin-top: 8px; }

/* Antwortfarben */
.c0 { background: var(--a0); } .c1 { background: var(--a1); } .c2 { background: var(--a2); }
.c3 { background: var(--a3); } .c4 { background: var(--a4); } .c5 { background: var(--a5); }

.timerbar { height: 10px; background: #ffffff22; border-radius: 99px; overflow: hidden; }
.timerbar > div { height: 100%; width: 100%; background: linear-gradient(90deg, var(--ok), var(--warn), var(--bad)); background-size: 300% 100%; transform-origin: left; }

.spinner {
  width: 42px; height: 42px; border-radius: 50%;
  border: 4px solid #ffffff22; border-top-color: var(--accent);
  animation: spin 1s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.pop { animation: pop .35s ease-out; }
