html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at top left, rgba(141, 208, 231, 0.24), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 224, 137, 0.22), transparent 24%),
    linear-gradient(180deg, #f7fafa 0%, #eef3f4 100%);
}

button,
input,
select {
  font: inherit;
}

.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

.medal-gold {
  color: #745b00;
  font-variation-settings:
    "FILL" 1,
    "wght" 700,
    "GRAD" 0,
    "opsz" 24;
}

.medal-silver {
  color: #4a626d;
  font-variation-settings:
    "FILL" 1,
    "wght" 700,
    "GRAD" 0,
    "opsz" 24;
}

.medal-bronze {
  color: #574500;
  font-variation-settings:
    "FILL" 1,
    "wght" 700,
    "GRAD" 0,
    "opsz" 24;
}

.period-trigger {
  border: 1px solid rgba(24, 102, 122, 0.08);
}

.period-trigger:focus-visible,
.period-option:focus-visible {
  outline: 2px solid rgba(24, 102, 122, 0.28);
  outline-offset: 2px;
}

.period-menu {
  animation: menu-in 0.16s ease-out;
}

.period-option {
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.period-option:hover {
  background: rgba(24, 102, 122, 0.08);
  color: #18667a;
  transform: translateY(-1px);
}

.period-option.active {
  background: rgba(24, 102, 122, 0.12);
  color: #18667a;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
