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

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.24), transparent 32rem),
    radial-gradient(circle at 85% 85%, rgba(14, 165, 233, 0.14), transparent 28rem),
    #07111f;
}

.shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(100%, 660px);
  padding: clamp(28px, 6vw, 54px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.eyebrow {
  margin-bottom: 14px;
  color: #60a5fa;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.intro {
  max-width: 54ch;
  margin: 22px 0 30px;
  color: #b8c5d6;
  font-size: 1.02rem;
  line-height: 1.7;
}

.location-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 94px;
  padding: 20px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.72);
}

.status-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fbbf24;
  box-shadow: 0 0 0 7px rgba(251, 191, 36, 0.12);
}

.location-panel[data-state="success"] .status-dot {
  background: #34d399;
  box-shadow: 0 0 0 7px rgba(52, 211, 153, 0.12);
}

.location-panel[data-state="empty"] .status-dot {
  background: #94a3b8;
  box-shadow: 0 0 0 7px rgba(148, 163, 184, 0.12);
}

.label {
  display: block;
  margin-bottom: 5px;
  color: #8ea0b7;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

#location-result {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(1.25rem, 4vw, 1.85rem);
}

.details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}

.details div {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.64);
}

.details dt {
  margin-bottom: 7px;
  color: #8ea0b7;
  font-size: 0.75rem;
}

.details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  font-weight: 700;
}

.privacy-note {
  margin: 22px 0 0;
  color: #8091a8;
  font-size: 0.82rem;
  line-height: 1.6;
}

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #111827;
  color: #fff;
}

@media (max-width: 620px) {
  .shell {
    align-items: start;
    padding: 14px;
  }

  .card {
    margin-top: 20px;
    border-radius: 22px;
  }

  .details {
    grid-template-columns: 1fr;
  }
}
