/* Live-Quiz – gemeinsame Styles (Beamer-freundlich, freundliches Dunkeldesign) */
:root {
	--bg: #141633;
	--card: #1f2350;
	--card2: #2a2f6b;
	--text: #f5f6ff;
	--muted: #aab0dd;
	--accent: #7c83ff;
	--ok: #2ecc71;
	--bad: #ff6b6b;
	--warn: #ffd166;
	--optA: #ff6b6b;
	--optB: #54a0ff;
	--optC: #feca57;
	--optD: #a29bfe;
	--radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	background: var(--bg);
	color: var(--text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
button {
	font: inherit;
	border: 0;
	border-radius: 12px;
	padding: 10px 18px;
	background: var(--accent);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}
button:hover { filter: brightness(1.12); }
button:disabled { opacity: .45; cursor: default; filter: none; }
button.ghost { background: transparent; border: 2px solid var(--card2); color: var(--muted); }
button.danger { background: var(--bad); }
button.ok { background: var(--ok); color: #08210f; }
input, select, textarea {
	font: inherit;
	background: #12142e;
	color: var(--text);
	border: 2px solid var(--card2);
	border-radius: 10px;
	padding: 9px 12px;
	outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
.card { background: var(--card); border-radius: var(--radius); padding: 16px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.optgrid { display: grid; gap: 12px; }
.opt {
	border-radius: var(--radius);
	padding: 14px 16px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 12px;
	color: #1c1430;
	font-size: 1.05rem;
}
.opt .letter {
	background: rgba(0, 0, 0, .22);
	color: #fff;
	border-radius: 10px;
	min-width: 2em;
	text-align: center;
	padding: 4px 6px;
	font-size: 1.1em;
}
.optA { background: var(--optA); }
.optB { background: var(--optB); }
.optC { background: var(--optC); }
.optD { background: var(--optD); }
.opt.selected { outline: 4px solid #fff; outline-offset: -4px; }
.opt.correct { outline: 4px solid var(--ok); outline-offset: -4px; }
.opt.dim { opacity: .45; }
.timerbar { height: 14px; border-radius: 8px; background: #0e1027; overflow: hidden; }
.timerbar > div { height: 100%; background: linear-gradient(90deg, var(--ok), var(--warn), var(--bad)); width: 100%; }
.avatar { display: inline-block; }
.avatar svg { display: block; width: 100%; height: 100%; }