.btn {
  position: relative;
  height: 56px;
  padding: 0 26px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    background 0.2s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: min(0px, (100% - var(--tap-size)) / 2);
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.btn.medium {
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.btn.small {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-xs);
  font-size: 14px;
}

.btn.round {
  border-radius: var(--radius-full);
}

.btn.block {
  width: 100%;
}

.btn.primary {
  background: var(--blue);
  color: var(--white);
}

.btn.light {
  background: var(--white);
  color: var(--ink);
}

.btn.glass {
  background: rgb(255 255 255 / 16%);
  color: var(--white);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn.surface {
  background: var(--white);
  color: var(--ink-2);
  box-shadow: var(--shadow-floating);
}

@media (width <= 960px) {
  .btn.adaptive {
    height: 52px;
    padding: 0 16px;
    font-size: 16px;
  }
}

@media (hover: hover) {
  .btn.primary:hover {
    filter: brightness(1.05);
  }

  .btn.glass:hover {
    background: rgb(255 255 255 / 26%);
  }
}
