* { box-sizing: border-box; margin: 0; padding: 0; }

/* ═══════════════════════════════════════════════════════════════════════
   DESIGN TOKENS — shared values; the switchable themes are in themes.css.
   Each .theme-* class redefines the redesign tokens (--surface, --accent,
   --radius, …) AND bridges the legacy variable names the existing
   components still read (--blue, --bg-app, --text-muted, …), so toggling
   one class on <body> re-themes the whole app. Default = Midnight.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --sidebar-w: 320px;
  --font-mono: ui-monospace, 'SFMono-Regular', 'SF Mono', Menlo, Consolas, monospace;
  /* decorative gradients reused across themes */
  --tik-cyan: #00f2ea; --tik-pink: #ff0050; --snap-yellow: #FFFC00;
  --story-ring: linear-gradient(135deg, #f9ed32 0%, #ee2a7b 40%, #6228d7 80%, #00f2ea 100%);
  --story-ring-alt: linear-gradient(135deg, #ff0050 0%, #ee2a7b 50%, #6228d7 100%);
}

/* The themes themselves (15 of them) are in themes.css. */

html,body { height:100%; }
body { font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif); background:var(--bg); color:var(--text); }

/* ─── Relationship stage badges ─────────────────────────────────────────── */
.stage-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 1px 6px;
  border-radius: 20px;
  vertical-align: middle;
  margin-left: 5px;
  line-height: 16px;
  text-transform: uppercase;
}
.stage-friend   { background: rgba(74,158,255,0.18); color: #4a9eff; }
.stage-close    { background: rgba(155,89,182,0.18); color: #b47ee8; }
.stage-intimate { background: rgba(231,76,60,0.18);  color: #ff6b5e; }
.stage-soulmate { background: rgba(243,156,18,0.22); color: #f4b942; }

@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }
