.btn {
  font: inherit;
  padding: 0.5rem 1rem;
  border: none;
  background: #246;
  color: #fff;
  box-shadow: 0 0.25rem 0.5rem rgb(0 0 0 / 25%);
}

@media (forced-colors: active) {
  .btn {
    border: 1px solid ButtonText;
    box-shadow: none;
  }
}