:root {
  --bg: #1b1340; --bg2: #2a1d63; --card: #ffffff14; --text: #fff; --muted: #c9c0ee;
  --a: #e21b3c; --b: #1368ce; --c: #d89e00; --d: #26890c; --ok: #2ecc71; --bad: #ff4d6d; --accent: #ffcb3d;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body { font-family: system-ui, "Segoe UI", Roboto, sans-serif; color: var(--text);
  background: radial-gradient(1200px 800px at 20% -10%, var(--bg2), var(--bg)) fixed; }
button { font: inherit; cursor: pointer; border: 0; color: inherit; }
.btn { background: var(--accent); color: #2b1d00; font-weight: 800; padding: .9em 1.6em; border-radius: 14px; font-size: 1.1rem;
  box-shadow: 0 5px 0 #b88a14; transition: transform .1s; }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 #b88a14; }
.btn:disabled { background: #6a5f96; color: #cfc8ee; box-shadow: 0 5px 0 #4c4375; cursor: not-allowed; }
.btn.ghost { background: var(--card); color: var(--text); box-shadow: none; }
.btn.danger { background: var(--bad); color: #fff; box-shadow: 0 5px 0 #b3203d; }
.opt-0 { background: var(--a); } .opt-1 { background: var(--b); } .opt-2 { background: var(--c); } .opt-3 { background: var(--d); }
.muted { color: var(--muted); }
.pill { background: var(--card); padding: .35em .9em; border-radius: 99px; font-weight: 700; }
.q-img { width: 100%; max-height: 32vh; object-fit: contain; border-radius: 16px; background: #0003; }
.hidden { display: none !important; }
.status-dot { position: fixed; top: 8px; right: 8px; width: 12px; height: 12px; border-radius: 50%; background: #2ecc71; z-index: 50; }
.status-dot.off { background: #ff4d6d; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
