/* LiveBoard — shared styles. Premium, calm, high-contrast (§28). */
:root {
  --bg: #0b0f17;
  --bg-soft: #121826;
  --card: #161d2e;
  --card-2: #1b2438;
  --line: #243049;
  --text: #eef2fb;
  --muted: #93a0bd;
  --accent: #5b8cff;
  --accent-2: #7c5cff;
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 20px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; height: 100%;
  background: radial-gradient(1200px 800px at 70% -10%, #16203a 0, transparent 60%), var(--bg);
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
body { overflow: hidden; }
a { color: inherit; }

.muted { color: var(--muted); }
.center { display: grid; place-items: center; height: 100%; }
.hidden { display: none !important; }

button {
  font: inherit; color: var(--text); cursor: pointer;
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 18px;
}
button:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--accent), #4a78ee); border-color: transparent; font-weight: 650; }
.btn-accent { background: linear-gradient(180deg, var(--accent-2), #6a4ae0); border-color: transparent; }

/* Landing */
.landing { max-width: 520px; margin: 0 auto; padding: 28px; text-align: center; }
.brand { font-size: 30px; font-weight: 800; letter-spacing: 0.5px; }
.brand small { display:block; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 6px; }
.pairbox { margin-top: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.pairbox img { width: 220px; height: 220px; border-radius: 14px; background:#fff; padding:10px; }
.code { font-size: 40px; font-weight: 800; letter-spacing: 8px; margin: 10px 0; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
.stack { display: grid; gap: 12px; margin-top: 18px; }

/* Subtle mode switch (View · Present · Manage) — shared by display + remote. */
.modes { display: flex; gap: 2px; }
.mode { display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: none; border: 1px solid transparent; border-radius: 999px;
  padding: 7px 12px; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--muted); text-decoration: none; }
.mode:hover { color: var(--text); }
.mode span { font-size: 13px; }
.mode.active { color: var(--text); background: var(--card-2); border-color: var(--line); }

/* Connection dot — subtle (green when connected). */
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line);
  flex: 0 0 auto; transition: background .2s; }
.dot.on { background: var(--good); box-shadow: 0 0 8px rgba(52,211,153,.6); }
