:root {
  --blue: #2168d1;
  --dark: #102b55;
  --muted: #64748b;
  --border: #e0e7f1;
}

* {
  box-sizing: border-box;
}

body {
  background: #f4f7fc;
  color: #17243d;
  -webkit-font-smoothing: antialiased;
}

header {
  background: linear-gradient(
    135deg, #102b55, #2168d1
  );
  padding: 30px 22px;
  border-radius: 0 0 26px 26px;
  box-shadow: 0 8px 24px #102b5520;
}

header h1 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 0 0 12px;
}

#subtitle {
  font-size: 16px;
  opacity: .9;
}

header select {
  background: #ffffff;
  color: var(--dark);
  font-size: 14px;
  border: none;
}

main {
  max-width: 760px;
  margin: 24px auto;
  padding: 0 16px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 5px 20px #102b5508;
}

h2 {
  font-size: 23px;
  color: var(--dark);
  margin-top: 0;
}

h3 {
  line-height: 1.45;
}

#countryLabel {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
}

#country {
  width: 100%;
  background: #f8faff;
}

.muted {
  font-size: 14px;
  line-height: 1.6;
}

button.option {
  border: 1px solid #dce5f2;
  border-radius: 14px;
  padding: 18px;
  line-height: 1.5;
  font-weight: 500;
}

button.option.selected,
button.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

button.primary {
  width: 100%;
  font-weight: 600;
  padding: 16px;
}

button:focus-visible,
select:focus-visible {
  outline: 3px solid #82b5ff;
  outline-offset: 3px;
}

progress {
  height: 10px;
  accent-color: var(--blue);
}

.result-track {
  height: 14px;
}

.result-fill {
  background: linear-gradient(
    90deg, #2168d1, #60a5fa
  );
}

.result-fill.local {
  background: linear-gradient(
    90deg, #078b89, #2dd4bf
  );
}

.archive-button {
  padding: 16px;
}

@media (max-width: 480px) {
  header {
    padding: 24px 18px;
  }

  header h1 {
    font-size: 28px;
  }

  .card {
    padding: 18px;
  }

  h2 {
    font-size: 21px;
  }

  button, select {
    font-size: 16px;
  }
}
