:root {
  --red: #b71c1c;
  --green: #1b5e20;
  --ink: #1d1d1f;
  --card: #ffffff;
  --muted: #5f6368;
}

* { box-sizing: border-box; }

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

body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
}

.banner {
  background: var(--red);
  color: #fff;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  text-align: center;
}

#status-text {
  font-size: 1.25rem;
  font-weight: 700;
}

#notice {
  margin-top: 6px;
  background: #fff3cd;
  color: #5d4300;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 600;
}

#map {
  flex: 1;
  min-height: 0;
  background: #e8eef2;
}

.card {
  background: var(--card);
  padding: 12px 16px calc(env(safe-area-inset-bottom) + 12px);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#updated {
  font-size: 1.05rem;
  font-weight: 600;
}

#updated.stale { color: var(--red); }

#follow {
  flex: none;
  border: 2px solid var(--green);
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 600;
}

#follow[aria-pressed="false"] {
  background: #fff;
  color: var(--green);
}

.safety {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Truck marker */
.truck {
  font-size: 34px;
  line-height: 1;
  text-align: center;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
}

.truck .santa {
  display: block;
  font-size: 24px;
  margin-bottom: -6px;
}

.truck.stale {
  filter: grayscale(1) opacity(0.6);
}
