@import url('https://fonts.googleapis.com/css2?family=Cormorant:wght@300;400&family=Azeret+Mono:wght@300;400&display=swap');

:root {
  --bg: #040b14;
  --panel: rgba(9, 21, 36, 0.75);
  --text: #eef6ff;
  --accent: #ff4b3e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 30% 20%, #0d1e35 0%, var(--bg) 60%);
  color: var(--text);
}

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

/* ── Topbar ───────────────────────────────────────────── */

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(5, 12, 22, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.topbar h1 {
  margin: 0;
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(238, 246, 255, 0.88);
}

/* ── Live dot ─────────────────────────────────────────── */

@keyframes pulse-out {
  0%   { transform: scale(1);   opacity: 0.75; }
  70%  { transform: scale(2.8); opacity: 0;    }
  100% { transform: scale(1);   opacity: 0;    }
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 75, 62, 0.65);
  flex-shrink: 0;
}

.live-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  animation: pulse-out 2.4s ease-out infinite;
}

/* ── UTC clock ────────────────────────────────────────── */

.utc-clock {
  margin-left: auto;
  font-family: 'Azeret Mono', 'Courier New', monospace;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(238, 246, 255, 0.62);
  font-variant-numeric: tabular-nums;
}

/* ── Map stage ────────────────────────────────────────── */

.stage-wrap {
  position: relative;
  flex: 1;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 16px;
}

#map-canvas {
  width: min(100%, 1400px);
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 28px 64px rgba(0, 0, 0, 0.6),
    0 4px 20px rgba(0, 0, 0, 0.45);
}

/* ── Overlay panel ────────────────────────────────────── */

.overlay {
  position: absolute;
  left: 36px;
  bottom: 36px;
  max-width: min(560px, calc(100vw - 72px));
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(4, 10, 19, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(238, 246, 255, 0.82);
  transition: opacity 480ms ease;
}

.overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
