/* Shared theme — palette + top bar. Linked by the solver and by every guide page. */

:root {
  --bg0: #0d0f14;
  --bg1: #13161e;
  --bg2: #1a1e2a;
  --bg3: #222736;
  --border: #2e3448;
  --border-bright: #404868;
  --gold: #c8a84b;
  --gold-dim: #7a6530;
  --gold-bright: #f0cc70;
  --teal: #4ecdc4;      /* reserved for exemption slots — the game uses cyan for those */
  --violet: #a78bfa;    /* target-slot marks, so they never read as an exemption */
  --red: #e05c5c;
  --green: #5cbe7a;
  --text: #c8cdd8;
  --text-dim: #6b7280;
  --text-bright: #e8ecf4;
  /* cell size scales with viewport: comfortable on 1080p, larger on 2K/4K */
  --cell: clamp(52px, 4.2vw, 88px);
  --ui-scale: clamp(0.85, 0.6vw + 0.4, 1.4);
  --font-mono: 'Share Tech Mono', monospace;
  --font-display: 'Cinzel', serif;
}

/* ── Top bar ─────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px,1.2vw,24px);
  padding: clamp(6px,0.6vh,12px) clamp(12px,1.2vw,24px);
  border-bottom: 1px solid var(--border);
  background: var(--bg1);
  flex-shrink: 0;
}
.topbar h1 {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.2vw, 22px);
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0;
}
.topbar .subtitle {
  color: var(--text-dim);
  font-size: clamp(10px, 0.7vw, 13px);
  letter-spacing: 1px;
  margin-top: 2px;
}
.topbar-links {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.6vw, 12px);
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Buttons and anchors share this — they're the same control to the reader. */
.topbar-link {
  font-family: inherit;
  background: none;
  cursor: pointer;
  font-size: clamp(10px, 0.7vw, 12px);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-dim);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 6px 12px;
  transition: border-color 0.15s, color 0.15s;
}
.topbar-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}
