:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #06080d;
  color: #f7f7f2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
}

#app {
  position: relative;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(circle at 70% 35%, rgba(36, 115, 184, 0.2), transparent 28%),
    linear-gradient(135deg, #070910 0%, #101018 48%, #111712 100%);
}

#globe {
  display: block;
  width: 100%;
  height: 100%;
}

.panel,
.info {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 12, 18, 0.76);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.panel {
  top: 24px;
  left: 24px;
  width: min(380px, calc(100vw - 48px));
  padding: 18px;
  border-radius: 8px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #8ee0c0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 4vw, 2.45rem);
  line-height: 1.02;
}

.search {
  display: grid;
  gap: 7px;
  color: #c7d0db;
  font-size: 0.84rem;
}

input[type="text"],
input[list] {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

.toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.toggles label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: #edf2f7;
  font-size: 0.9rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.stats span {
  min-height: 28px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(142, 224, 192, 0.11);
  color: #bdf7e0;
  font-size: 0.78rem;
}

.info {
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 5px;
  width: min(340px, calc(100vw - 48px));
  padding: 14px 16px;
  border-radius: 8px;
  color: #d9e2ec;
}

.info strong {
  color: #fff;
}

.info span {
  color: #b8c4d1;
  font-size: 0.88rem;
}

@media (max-width: 700px) {
  body {
    overflow: hidden;
  }

  .panel {
    top: 12px;
    left: 12px;
    width: calc(100vw - 24px);
    padding: 14px;
  }

  h1 {
    margin-bottom: 12px;
  }

  .toggles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .toggles label {
    justify-content: center;
    min-height: 34px;
    padding: 7px 5px;
    font-size: 0.74rem;
  }

  .toggles input {
    display: none;
  }

  .info {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
}
