@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono.woff2') format('woff2');
}

:root {
  --bg: #05080f;
  --bg-elev: #0b1019;
  --text-primary: #e8edf5;
  --text-secondary: #8b95a8;
  --text-muted: #4a5466;
  --accent: #7dd3fc;
  --accent-dim: rgba(125, 211, 252, 0.5);
  --accent-glow: rgba(125, 211, 252, 0.35);
  --hairline: rgba(125, 165, 210, 0.12);
  --panel-bg: rgba(8, 14, 24, 0.55);
  --panel-border: rgba(125, 165, 210, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* TITLE BAR */
.title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent);
  z-index: 10;
  position: relative;
}

.title-text {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.34em;
  color: var(--text-primary);
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--accent);
}

.status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* STAGE */
.stage {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

#map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* OVERLAY */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
}

.coming-soon {
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: clamp(56px, 9vw, 144px);
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
  user-select: none;
}

/* PANELS */
.panel {
  position: absolute;
  background: var(--panel-bg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 14px 18px 12px;
  min-width: 200px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  z-index: 6;
}

.panel-tl { top: 24px; left: 24px; }
.panel-tr { top: 24px; right: 24px; }
.panel-bl { bottom: 24px; left: 24px; }
.panel-br { bottom: 24px; right: 24px; }

.panel-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.panel-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 30px;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 5px;
}

.panel-unit {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.panel-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-top: 6px;
}

.panel.is-error {
  border-color: rgba(220, 130, 100, 0.35);
}

.panel.is-error .panel-subtitle {
  color: rgba(220, 130, 100, 0.8);
}

.panel-citation {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 11px;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
}

.panel-citation em {
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
}

/* FOOTER */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  border-top: 1px solid var(--hairline);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
  z-index: 10;
  position: relative;
}

.footer em {
  font-style: italic;
  color: var(--text-muted);
}

/* Small screens */
@media (max-width: 768px) {
  .coming-soon { font-size: 44px; letter-spacing: 0.06em; }
  .panel { min-width: 140px; padding: 10px 12px 8px; }
  .panel-value { font-size: 20px; }
  .panel-label { font-size: 9px; }
  .panel-unit, .panel-citation { font-size: 8px; }
  .panel-tl, .panel-tr { top: 12px; }
  .panel-bl, .panel-br { bottom: 12px; }
  .panel-tl, .panel-bl { left: 12px; }
  .panel-tr, .panel-br { right: 12px; }
  .title-text { font-size: 11px; letter-spacing: 0.22em; }
  .status { font-size: 9px; }
  .footer { font-size: 8px; padding: 8px 12px; }
}
