:root {
  --bg: #0a0e1f;
  --bg2: #141c3a;
  --panel: rgba(255, 255, 255, 0.06);
  --panel2: rgba(255, 255, 255, 0.11);
  --line: rgba(255, 255, 255, 0.13);
  --text: #f1f3ff;
  --muted: #9aa3c7;
  --red: #ff4d6d;
  --green: #06d6a0;
  --gold: #ffd166;
  --blue: #3a86ff;
  --purple: #8338ec;
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent; }
input { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.avatar { display: inline-grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--c, #556); font-size: 1em; line-height: 1; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08); flex: 0 0 auto; }
.avatar.sm { width: 1.8em; height: 1.8em; font-size: .9em; }
.avatar.huge { width: 4.4em; height: 4.4em; font-size: 1.6em; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.1), 0 20px 60px rgba(0, 0, 0, .45); }
.chip { display: inline-flex; align-items: center; gap: .55em; padding: .35em .9em .35em .4em; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); white-space: nowrap; }
.chip .avatar { font-size: .85em; }
.chip.offline { opacity: .45; }
.chip.checked { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.chip .tick { color: var(--green); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: .6em; justify-content: center; }
.pill { display: inline-flex; align-items: center; gap: .4em; padding: .3em .8em; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: .85em; color: var(--muted); white-space: nowrap; }
.crown { color: var(--gold); }
.toasts { position: fixed; left: 50%; top: max(12px, env(safe-area-inset-top)); transform: translateX(-50%); display: flex; flex-direction: column; gap: .5rem; z-index: 50; pointer-events: none; width: max-content; max-width: 92vw; }
.toast { background: #1c2445; border: 1px solid var(--line); padding: .7em 1.1em; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); animation: toastIn .25s ease-out; font-weight: 600; }
.toast.warn { border-color: var(--gold); }
.toast.error { border-color: var(--red); background: #3a1a2a; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .35s ease-out both; }
.conn { width: .7em; height: .7em; border-radius: 50%; background: var(--red); display: inline-block; box-shadow: 0 0 10px var(--red); }
.conn.online { background: var(--green); box-shadow: 0 0 10px var(--green); }
