/* BugOutBot v2 — theme tokens (day / night / red) */
:root,
[data-theme="day"] {
  --bob-page: #f5f1e8;
  --bob-paper: #f5f1e8;
  --bob-line: #d9d1c1;
  --bob-ink: #1a1e18;
  --bob-muted: #5a7247;
  --bob-accent: #ff6b2b;
  --bob-chip-bg: #1a1e18;
  --bob-chip-fg: #f5f1e8;
  --bob-card: #fffdf8;
  --bob-nav-bg: rgba(26, 30, 24, 0.96);
  --bob-nav-fg: #9aa89a;
  --bob-fig-plate: #fffdf8;
  --bob-fig-ink: #1a1e18;
  --bob-top-bg: rgba(245, 241, 232, 0.94);
  --bob-shadow: rgba(26, 30, 24, 0.12);
  --bob-fire: #e07a3a;
  --bob-shelter: #5a7247;
  --bob-food: #3d6e8c;
  /* Sleek UI surfaces (buttons, rows, cards) */
  --ui-surface: #fffdf9;
  --ui-surface-press: #f3eee4;
  --ui-hairline: rgba(26, 30, 24, 0.09);
  --ui-hairline-strong: rgba(26, 30, 24, 0.15);
  --ui-elev: 0 1px 2px rgba(26, 30, 24, 0.05), 0 6px 18px -8px rgba(26, 30, 24, 0.14);
  --ui-title: #1a1e18;
  --ui-sub: #676b62;
  --ui-chev: rgba(26, 30, 24, 0.3);
  --ui-focus: #e0602a;
  --ui-tile-neutral: rgba(26, 30, 24, 0.05);
  color-scheme: light;
}

[data-theme="night"] {
  --bob-page: #0f1210;
  --bob-paper: #0f1210;
  --bob-line: #2e352c;
  --bob-ink: #e8e1d0;
  --bob-muted: #8a9a82;
  --bob-accent: #ff6b2b;
  --bob-chip-bg: #262c24;
  --bob-chip-fg: #f5f1e8;
  --bob-card: #1a1e18;
  --bob-nav-bg: rgba(15, 18, 16, 0.96);
  --bob-nav-fg: #9aa89a;
  --bob-fig-plate: #fffdf8;
  --bob-fig-ink: #1a1e18;
  --bob-top-bg: rgba(15, 18, 16, 0.94);
  --bob-shadow: rgba(0, 0, 0, 0.4);
  --ui-surface: #171b16;
  --ui-surface-press: #1f241e;
  --ui-hairline: rgba(232, 225, 208, 0.08);
  --ui-hairline-strong: rgba(232, 225, 208, 0.14);
  --ui-elev: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 1px 2px rgba(0, 0, 0, 0.45);
  --ui-title: #ece6d6;
  --ui-sub: #9ba394;
  --ui-chev: rgba(232, 225, 208, 0.3);
  --ui-focus: #ff8a52;
  --ui-tile-neutral: rgba(232, 225, 208, 0.06);
  color-scheme: dark;
}

[data-theme="red"] {
  --bob-page: #0d0200;
  --bob-paper: #0d0200;
  --bob-line: #3a1a0e;
  --bob-ink: #f5f1e8;
  --bob-muted: #a84a20;
  --bob-accent: #ff3b1a;
  --bob-chip-bg: #1a0e0a;
  --bob-chip-fg: #ff6b2b;
  --bob-card: #1a0500;
  --bob-nav-bg: rgba(13, 2, 0, 0.96);
  --bob-nav-fg: #a84a20;
  --bob-fig-plate: #fffdf8;
  --bob-fig-ink: #1a1e18;
  --bob-top-bg: rgba(13, 2, 0, 0.94);
  --bob-shadow: rgba(0, 0, 0, 0.5);
  --ui-surface: #160400;
  --ui-surface-press: #220800;
  --ui-hairline: rgba(255, 90, 40, 0.13);
  --ui-hairline-strong: rgba(255, 90, 40, 0.22);
  --ui-elev: 0 1px 2px rgba(0, 0, 0, 0.5);
  --ui-title: #f5f1e8;
  --ui-sub: #d0683e;
  --ui-chev: rgba(255, 107, 43, 0.45);
  --ui-focus: #ff6b2b;
  --ui-tile-neutral: rgba(255, 90, 40, 0.08);
  color-scheme: dark;
}

:root {
  --bob-text-scale: 1;
  --bob-safe-bottom: env(safe-area-inset-bottom, 0px);
  --bob-safe-top: env(safe-area-inset-top, 0px);
  --bob-nav-h: 64px;
  --bob-top-h: 52px;
  --bob-max: 520px;
  --ui-r: 16px;       /* one radius for every card / big button */
  --ui-r-tile: 12px;  /* nested icon tiles + small buttons */
}

/* Phone landscape: shorter chrome so the 390px-tall viewport stays usable. */
@media (orientation: landscape) and (max-height: 500px) {
  :root {
    --bob-nav-h: 52px;
    --bob-top-h: 44px;
  }
}
