:root {
  --bg: #050c2e;
  --bg2: #0b1d5c;
  --cell: #1537a8;
  --cell2: #0e2a85;
  --gold: #ffd24a;
  --gold2: #f5a623;
  --text: #eef2ff;
  --muted: #9aa7d6;
  --ok: #2ecc71;
  --bad: #ff4d4f;
  --font: 'Segoe UI', 'Inter', system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(ellipse at 50% 0%, var(--bg2) 0%, var(--bg) 70%) fixed;
}
button { font: inherit; cursor: pointer; }
input, select { font: inherit; }

.btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  background: #24358a;
  color: var(--text);
  font-weight: 600;
  transition: transform 0.05s, filter 0.15s;
}
.btn:hover { filter: brightness(1.2); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: default; filter: none; transform: none; }
.btn.gold { background: linear-gradient(180deg, var(--gold), var(--gold2)); color: #2a1a00; }
.btn.ok { background: var(--ok); color: #04210f; }
.btn.bad { background: var(--bad); color: #2a0000; }
.btn.ghost { background: transparent; border: 1px solid #3a4a9a; }
.btn.small { padding: 6px 10px; font-size: 14px; border-radius: 8px; }

.si-offline {
  position: fixed; top: 10px; left: 50%; transform: translateX(-50%);
  background: #b71c1c; color: #fff; padding: 8px 16px; border-radius: 999px;
  font-weight: 600; z-index: 9999; display: none;
}
.si-offline.show { display: block; }
.si-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #000c; color: #fff; padding: 10px 18px; border-radius: 10px;
  opacity: 0; transition: 0.2s; z-index: 9999; pointer-events: none; max-width: 90vw;
}
.si-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
