:root {
  --bg: #07111f;
  --bg-2: #0c1d35;
  --panel: rgba(10, 21, 40, 0.78);
  --panel-2: rgba(14, 29, 54, 0.82);
  --line: rgba(125, 202, 255, 0.16);
  --text: #eef7ff;
  --muted: #9db9d8;
  --cyan: #7af0ff;
  --blue: #6ca8ff;
  --green: #58e5b4;
  --violet: #a48cff;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html {
  background: #07162b;
}
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #07162b;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.22;
  pointer-events: none;
}
.orb-a { width: 34vw; height: 34vw; left: -8vw; top: -8vw; background: #1d4ed8; }
.orb-b { width: 26vw; height: 26vw; right: -7vw; top: 24vh; background: #06b6d4; }

.app-shell {
  width: min(calc(100% - 24px), var(--max));
  margin: 0 auto;
  padding: 18px 0 92px;
}

.hero-card,
.panel,
.info-card,
.primary-card,
.cookie-banner {
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card,
.panel,
.info-card,
.primary-card {
  background: linear-gradient(180deg, rgba(10,19,36,0.78), rgba(10,21,40,0.90));
}

.hero-card {
  border-radius: var(--radius-xl);
  padding: 20px;
}

.hero-top,
.panel-head,
.primary-grid,
.details-grid,
.action-row {
  display: grid;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(122, 240, 255, 0.08);
  border: 1px solid rgba(122, 240, 255, 0.14);
  color: #ddfbff;
  font-size: 0.82rem;
  margin-bottom: 14px;
}

h1, h2, h3 { margin: 0; }
h1 {
  font-size: clamp(2rem, 7vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}
h2 {
  font-size: clamp(1.35rem, 4vw, 2rem);
  letter-spacing: -0.04em;
}
h3 {
  font-size: 1rem;
}
.lead {
  margin: 14px 0 0;
  max-width: 62ch;
  line-height: 1.65;
  color: var(--muted);
}

.primary-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.primary-card {
  border-radius: var(--radius-lg);
  padding: 18px;
}

.accent-card {
  box-shadow: var(--shadow), 0 0 38px rgba(122, 240, 255, 0.12);
}

.card-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.primary-value {
  font-size: clamp(1.6rem, 5vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 800;
  word-break: break-word;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.subtle-row {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.action-row {
  grid-template-columns: repeat(2, auto);
  gap: 12px;
  justify-content: start;
  margin-top: 18px;
}

.panel {
  border-radius: var(--radius-xl);
  padding: 18px;
  margin-top: 18px;
}

.panel-head {
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.panel-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.details-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.info-card {
  border-radius: var(--radius-lg);
  padding: 16px;
}

.wide-card {
  grid-column: 1 / -1;
}

.kv-list {
  margin: 14px 0 0;
  display: grid;
  gap: 12px;
}
.kv-list div {
  display: grid;
  gap: 6px;
  padding: 12px 13px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.kv-list dt {
  color: var(--muted);
  font-size: 0.86rem;
}
.kv-list dd {
  margin: 0;
  line-height: 1.45;
  word-break: break-word;
}

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

.map-wrap {
  margin-top: 14px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

#mapFrame {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
}

.btn {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  cursor: pointer;
  background: rgba(255,255,255,0.04);
  font: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.56; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, rgba(122,240,255,0.18), rgba(108,168,255,0.18));
  border-color: rgba(122,240,255,0.2);
  box-shadow: 0 0 30px rgba(122,240,255,0.12);
}
.btn-secondary {
  background: rgba(255,255,255,0.06);
}

.details-panel.is-collapsed {
  display: none;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  border-radius: 18px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(15,28,52,0.9), rgba(11,21,40,0.94));
}
.cookie-copy {
  color: var(--muted);
  line-height: 1.5;
}
.hidden { display: none; }

@media (max-width: 920px) {
  .primary-grid,
  .details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(calc(100% - 16px), var(--max));
    padding: 10px 0 106px;
  }

  .hero-card,
  .panel,
  .primary-card,
  .info-card {
    padding: 16px;
    border-radius: 22px;
  }

  .panel-head {
    grid-template-columns: 1fr;
  }

  .action-row {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  #mapFrame {
    min-height: 300px;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
