/* ===== Poker Tools Design System — Luxury Minimal × Elite Geek ===== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500;600;700&family=Syne:wght@500;600;700;800&display=swap');

:root {
  /* Surfaces */
  --bg-primary: #0c0e14;
  --bg-secondary: #12151e;
  --bg-card: #161a26;
  --bg-input: #0a0c12;
  --bg-hover: #1c2030;

  /* Borders */
  --border: #1e2230;
  --border-light: #181c28;
  --border-accent: #2a3048;

  /* Text */
  --text: #c8cad0;
  --text-muted: #5c6070;
  --text-label: #8890a4;
  --text-heading: #eaeaef;
  --text-bright: #ffffff;
  --text-link: #6878a0;
  --text-link-hover: #a0b0d0;

  /* Accent — muted gold */
  --accent: #b09750;
  --accent-dim: #806c3a;
  --accent-glow: rgba(176, 151, 80, 0.08);

  /* Poker action colors */
  --color-allin: #9b59b6;
  --color-raise: #d45050;
  --color-call: #48a868;
  --color-fold: #3a8fd4;
  --color-gray: #1a1e28;
  --grid-line: #252838;

  /* Status */
  --status-ready: #48a868;
  --status-wip: #b09750;
  --status-soon: #5c6070;

  /* Typography */
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Keep legacy aliases */
  --font-ui: var(--font-body);
  --font-sans: var(--font-body);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11' 1; /* DM Sans alternate forms */
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

h2 { margin: 0; }

/* ===== Sticky header ===== */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-primary);
  padding: 10px 0 0 0;
}

/* ===== Header (sim-viewer / poker-news-bob style) ===== */
.header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.header h2 {
  font-size: 1.3rem;
  font-weight: 700;
}

/* ===== Toolbar ===== */
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  margin-bottom: var(--space-md);
}
.toolbar label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 2px;
}
.toolbar select {
  padding: 7px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s;
}
.toolbar select:focus {
  outline: none;
  border-color: var(--accent-dim);
}

/* ===== Back link ===== */
.back-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, color 0.2s;
}
.back-link:hover {
  border-color: var(--accent-dim);
  color: var(--text-label);
}

/* ===== Legend ===== */
.legend {
  display: flex;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.legend-item { display: flex; align-items: center; gap: 5px; }
.legend-swatch { width: 14px; height: 10px; border-radius: 2px; }

/* ===== Separator ===== */
.sep { width: 1px; height: 24px; background: var(--border); margin: 0 4px; }

/* ===== Loading ===== */
.loading {
  text-align: center;
  padding: 60px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Selection ===== */
::selection {
  background: var(--accent);
  color: var(--bg-primary);
}
