*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: #0b0b10;
  color: #fff;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.card {
  background: #13131c;
  border: 1px solid rgba(167,139,250,.2);
  border-radius: 24px;
  padding: 32px 24px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.icon {
  font-size: 48px;
  margin-bottom: 12px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%{ transform: translateY(-6px); }
}

h1 {
  font-size: 26px;
  margin: 0 0 6px;
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  color: rgba(255,255,255,.45);
  font-size: 14px;
  margin: 0 0 28px;
}

button#btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
  color: #0b0b10;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}

button#btn:active {
  opacity: .85;
  transform: scale(.97);
}

/* Результат */
.result {
  margin-top: 24px;
  background: rgba(255,255,255,.04);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.coord-row {
  display: flex;
  justify-content: space-between;
  align-items: center;font-size: 15px;
}

.label {
  color: rgba(255,255,255,.5);
}

.value {
  font-weight: 700;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.map-btn {
  display: block;
  margin-top: 6px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(167,139,250,.35);
  color: #a78bfa;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
}
.map-btn:hover { background: rgba(167,139,250,.1); }

/*Ошибка */
.error {
  margin-top: 20px;
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: 12px;
  padding: 14px;
  color: #f87171;
  font-size: 14px;
  line-height: 1.5;
}

/* Загрузка */
.loader {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,.5);
  font-size: 14px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(167,139,250,.3);
  border-top-color: #a78bfa;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden { display: none !important; }