:root {
  --bg: #0b1020;
  --panel: #151b35;
  --text: #f0f4ff;
  --muted: #8a93b8;
  --accent: #ffcc33;
  --accent-2: #4ade80;
  --danger: #ef4444;
}

* { box-sizing: border-box; }

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

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

header {
  padding: 14px 18px;
  background: var(--panel);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}
header h1 {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
}
header .badge {
  margin-left: auto;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--muted);
}
header .badge.live { background: rgba(74,222,128,0.18); color: var(--accent-2); }

main { flex: 1; position: relative; }

#map { width: 100%; height: 100%; background: #1a2040; }

.panel {
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 14px;
  padding: 18px 20px;
  font-size: 18px;
  font-weight: 600;
  color: #0b1020;
  background: var(--accent);
  cursor: pointer;
  transition: transform 0.05s ease;
}
.btn:active { transform: scale(0.98); }
.btn.secondary { background: var(--panel); color: var(--text); }
.btn.danger { background: var(--danger); color: white; }
.btn[disabled] { opacity: 0.5; }

.stat {
  background: var(--panel);
  border-radius: 14px;
  padding: 14px 16px;
}
.stat .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.stat .value { font-size: 28px; font-weight: 700; margin-top: 4px; }

.overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: rgba(11, 16, 32, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  gap: 18px;
  align-items: center;
  z-index: 500;
}
.overlay .big { font-size: 24px; font-weight: 700; }
.overlay .sub { color: var(--muted); font-size: 13px; }

.hint {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 10px;
}
