/* Haven Maps design tokens. Black-first, Waze-inspired: chunky, rounded, high contrast. */
:root {
  --safe: #2ee68a;
  --mid: #ffc233;
  --fast: #ff4f5e;
  --blue: #33c3ff;
  --radius: 20px;
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  --bg: #000000;
  --bg-2: #0a0a0b;
  --card: #141517;
  --card-2: #1c1e21;
  --line: #2a2d31;
  --text: #ffffff;
  --muted: #9a9fa6;
  --map-street: #1a1c1f;
  --map-block: #0c0d0e;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  --glow: 0 0 22px rgba(46, 230, 138, 0.4);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f2f3f5;
  --bg-2: #f5f6f8;
  --card: #ffffff;
  --card-2: #f1f2f4;
  --line: #e1e3e7;
  --text: #0b0c0e;
  --muted: #646a73;
  --map-street: #e2e4e8;
  --map-block: #f7f8f9;
  --shadow: 0 10px 30px rgba(20, 24, 30, 0.14);
  --glow: 0 0 18px rgba(46, 230, 138, 0.35);
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

/* Icons */
.ic { display: inline-grid; place-items: center; font-style: normal; line-height: 0; }
.ic svg { width: 100%; height: 100%; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.logo svg { width: 30px; height: 30px; color: var(--text); }

.theme-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--card);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  transition: transform 0.15s ease;
}
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle svg { width: 21px; height: 21px; }
.theme-toggle .ic { width: 21px; height: 21px; }
html[data-theme="dark"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s;
}
.btn:active { transform: scale(0.96); }
.btn .ic { width: 18px; height: 18px; }
.btn-primary {
  background: var(--safe);
  color: #002611;
  box-shadow: var(--glow);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost {
  background: var(--card-2);
  border: none;
}

[hidden] { display: none !important; }
