:root {
  --bg: #120f1a;
  --panel: #1d1828;
  --panel-2: #272036;
  --text: #f3eefc;
  --muted: #a99fbf;
  --accent: #c58bff;
  --accent-2: #ff8fc8;
  --live: #ff4d6a;
  --ok: #5ee0a0;
  --warn: #ffc85e;
  --radius: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; border-radius: 999px; padding: 10px 18px; background: var(--panel-2); transition: transform .1s, background .2s, opacity .2s; }
button:hover { background: #342a48; }
button:active { transform: scale(.96); }
button:disabled { opacity: .4; cursor: not-allowed; }
button.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #1a1024; font-weight: 600; }
button.danger { background: var(--live); color: white; }
button.icon { padding: 12px; width: 48px; height: 48px; display: inline-grid; place-items: center; font-size: 20px; }
button.off { background: #4a2b35; }
input { font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid #3a3050; border-radius: 12px; padding: 12px 14px; outline: none; }
input:focus { border-color: var(--accent); }
.muted { color: var(--muted); }
.hidden { display: none !important; }

video { background: #000; border-radius: var(--radius); object-fit: cover; }

/* ---------- banners + hearts ---------- */
.banner-layer { position: fixed; inset: 0; pointer-events: none; display: grid; place-items: center; z-index: 50; }
.banner {
  padding: 28px 48px; border-radius: 28px; font-size: clamp(28px, 5vw, 64px); font-weight: 700; text-align: center;
  background: rgba(29, 24, 40, .85); backdrop-filter: blur(16px); box-shadow: 0 0 80px rgba(197, 139, 255, .45);
  animation: banner-in .5s cubic-bezier(.2, 1.4, .4, 1), banner-out .6s ease-in forwards; animation-delay: 0s, var(--stay, 3.5s);
}
.banner small { display: block; font-size: .4em; font-weight: 400; color: var(--muted); margin-top: 6px; }
@keyframes banner-in { from { transform: scale(.6) translateY(20px); opacity: 0; } }
@keyframes banner-out { to { transform: scale(.9); opacity: 0; } }
.glow { position: fixed; inset: 0; pointer-events: none; z-index: 40; box-shadow: inset 0 0 160px 40px rgba(197, 139, 255, .55); animation: glow 3s ease-in-out forwards; }
@keyframes glow { 0%, 100% { opacity: 0; } 30%, 60% { opacity: 1; } }
.heart { position: fixed; bottom: -40px; font-size: 32px; pointer-events: none; z-index: 45; animation: float var(--dur, 3s) ease-out forwards; }
@keyframes float { to { transform: translate(var(--dx, 0), -110vh) rotate(var(--rot, 0deg)); opacity: 0; } }

/* ---------- live indicator ---------- */
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--live); color: white; font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.live-pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: white; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- status pills ---------- */
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.mode-open .status-dot, .status-dot.mode-open { background: var(--ok); }
.status-dot.mode-busy { background: var(--warn); }
.status-dot.mode-sleeping { background: #7f8cff; }
.status-dot.mode-closed { background: var(--live); }
