.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  isolation: isolate;
  background: linear-gradient(to bottom, var(--g1, #ffffff), var(--g2, #d9d9d9));
  color: var(--btn-color, #ffffff);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: linear-gradient(to bottom, var(--g2, #d9d9d9), var(--g1, #ffffff));
  z-index: -1;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
  filter: brightness(0.97);
}

.btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.btn.circle {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
}

.btn.pill {
  border-radius: 999px;
}

.btn.small {
  min-height: 34px;
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
}

.btn.medium {
  min-height: 44px;
  padding: 0.75rem 1.2rem;
  font-size: 1rem;
}

.btn.large {
  min-height: 54px;
  padding: 0.95rem 1.5rem;
  font-size: 1.08rem;
}

.btn.xlarge {
  min-height: 64px;
  padding: 1.1rem 1.8rem;
  font-size: 1.16rem;
}

.btn.circle.small {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
}

.btn.circle.medium {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
}

.btn.circle.large {
  width: 54px;
  min-width: 54px;
  height: 54px;
  min-height: 54px;
  padding: 0;
}

.btn.circle.xlarge {
  width: 64px;
  min-width: 64px;
  height: 64px;
  min-height: 64px;
  padding: 0;
}

.btn.red {
  --g1: #ff7a7c;
  --g2: #d9343a;
}

.btn.blue {
  --g1: #63b0ff;
  --g2: #1c6fe0;
}

.btn.green {
  --g1: #58dc87;
  --g2: #169447;
}

.btn.yellow {
  --g1: #ffe066;
  --g2: #d4a900;
  --btn-color: #111111;
}

.btn.orange {
  --g1: #ffb06b;
  --g2: #de6f16;
}

.btn.purple {
  --g1: #c27dff;
  --g2: #7f34d1;
}

.btn.pink {
  --g1: #ff79b7;
  --g2: #c92d78;
}

.btn.black {
  --g1: #3a3a3a;
  --g2: #0f0f0f;
}

.btn.white {
  --g1: #ffffff;
  --g2: #d8d8d8;
  --btn-color: #111111;
}

.btn.gray {
  --g1: #9097a5;
  --g2: #59606d;
}
