:root {
  --bg: #1a1c2c;
  --panel: #262a40;
  --text: #f1f1f4;
  --muted: #a8abc0;
  --accent: #f4b942;
  --good: #3fb56b;
  --fair: #e0b83a;
  --poor: #d9534f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 0 8px;
}

h1 { margin: 0; font-size: 1.5rem; letter-spacing: 0.02em; }
#puzzle-label { color: var(--muted); font-variant-numeric: tabular-nums; }

#card, #summary {
  background: var(--panel);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

#round-label { color: var(--muted); font-size: 0.85rem; }
#place-name { font-size: 1.35rem; font-weight: 600; margin: 2px 0; }
#place-category { color: var(--accent); font-size: 0.9rem; }
#feedback { min-height: 1.4em; margin-top: 6px; font-variant-numeric: tabular-nums; }

#actions { margin-top: 8px; display: flex; gap: 8px; }

button {
  font: inherit;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  background: var(--accent);
  color: #1a1c2c;
  font-weight: 600;
  cursor: pointer;
}

button:disabled { background: #555a78; color: var(--muted); cursor: default; }

/* A crosshair over the map, since clicking places the pin; the closed hand while dragging to pan. */
.maplibregl-canvas-container.maplibregl-interactive { cursor: crosshair; }
.maplibregl-canvas-container.maplibregl-interactive:active { cursor: grabbing; }

#map {
  flex: 1;
  min-height: 55vh;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

#total { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
#rounds div { font-variant-numeric: tabular-nums; }
#streak, #share-status { color: var(--muted); margin: 6px 0; }

footer { color: var(--muted); font-size: 0.8rem; padding: 8px 0 16px; }
footer a { color: var(--muted); }
