:root {
  --bg: #0f1116; --card: #181b22; --line: rgba(255,255,255,.09); --text: #e8eaf0; --dim: #9aa3b8;
  --accent: #5c7cfa; --good: #51cf66; --warn: #fcc419; --bad: #ff6b6b;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 15px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
button { font: inherit; color: var(--text); background: #232733; border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 12px; cursor: pointer; }
button:active { transform: scale(.97); }
button.primary { background: var(--accent); border-color: var(--accent); font-weight: 600; }
button.danger { background: #c92a2a; border-color: #c92a2a; font-weight: 600; }
input, textarea { font: inherit; color: var(--text); background: #11131a; border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; outline: none; width: 100%; }
input:focus, textarea:focus { border-color: var(--accent); }
.logo { font-weight: 800; letter-spacing: .12em; font-size: 18px; }
.logo span { color: var(--accent); }
.err { color: var(--bad); min-height: 1.2em; }

#pairing { position: fixed; inset: 0; background: var(--bg); display: flex; align-items: center;
  justify-content: center; padding: 16px; z-index: 50; }
.pair-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.pair-card h2 { margin: 4px 0 0; font-size: 20px; }
.pair-card p { margin: 0; color: var(--dim); }
#pair-code { font-size: 28px; letter-spacing: .4em; text-align: center; }
#pair-go { background: var(--accent); border-color: var(--accent); font-weight: 600; padding: 12px; }
