:root {
  --bg: #fffaf5;
  --text: #2b1d14;
  --muted: #6b5a4e;
  --fire: #e8471c;
  --contained: #8a8a8a;
  --hotspot: #f5b700;
  --panel: rgba(255, 255, 255, 0.94);
}

* { box-sizing: border-box; }

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

body { display: flex; flex-direction: column; }

header {
  padding: 10px 16px;
  border-bottom: 3px solid var(--fire);
}

header h1 { margin: 0; font-size: 1.4rem; }
header h1::before { content: "🔥 "; }
#summary { margin: 2px 0 0; color: var(--muted); font-size: 0.95rem; }

#map { flex: 1; min-height: 300px; }

.panel {
  position: absolute;
  right: 12px;
  bottom: 28px;
  z-index: 1000;
  background: var(--panel);
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
  font-size: 0.85rem;
  line-height: 1.6;
}

.dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  vertical-align: -1px;
  margin-right: 4px;
}
.dot.active { background: var(--fire); }
.dot.contained { background: var(--contained); }
.dot.hotspot { background: var(--hotspot); width: 7px; height: 7px; margin: 0 6px 0 2px; vertical-align: 1px; }
.panel strong { display: block; }
.panel strong + div { margin-top: 1px; }
.panel .note + strong { margin-top: 6px; }
.note { color: var(--muted); }

.fire-popup h3 { margin: 0 0 4px; font-size: 1rem; }
.fire-popup table { border-collapse: collapse; }
.fire-popup td { padding: 1px 8px 1px 0; vertical-align: top; }
.fire-popup td:first-child { color: var(--muted); }

@media (max-width: 600px) {
  header h1 { font-size: 1.15rem; }
  .panel { right: 8px; bottom: 40px; font-size: 0.78rem; }
}
