/**
 * AnimateBox.dev — Attract Button
 * https://animatebox.dev
 *
 * Soft pointer attract, counter-parallax label, fill sweep, optional tilt.
 * Theme via --ab-att-* variables. Defaults: DM Sans, black & white, solid fills.
 */

.ab-attract-button {
  --ab-att-font: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
  --ab-att-fg: #0b0b0c;
  --ab-att-fg-hover: #f3f1ec;
  --ab-att-bg: #f3f1ec;
  --ab-att-fill: #0b0b0c;
  --ab-att-border: #f3f1ec;
  --ab-att-border-hover: #f3f1ec;
  --ab-att-border-width: 1.5px;
  --ab-att-radius: 10px;
  --ab-att-padding: 1.15rem 2.4rem;
  --ab-att-size: 1.05rem;
  --ab-att-weight: 600;
  --ab-att-tracking: 0.02em;
  --ab-att-width: auto;
  --ab-att-perspective: 600px;

  position: relative;
  display: inline-block;
  width: var(--ab-att-width);
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  perspective: var(--ab-att-perspective);
  font-family: var(--ab-att-font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

.ab-attract-button__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 11rem;
  height: 4.25rem;
  margin: 0;
  padding: var(--ab-att-padding);
  border: var(--ab-att-border-width) solid var(--ab-att-border);
  border-radius: var(--ab-att-radius);
  background: var(--ab-att-bg);
  color: var(--ab-att-fg);
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  font-size: var(--ab-att-size);
  font-weight: var(--ab-att-weight);
  letter-spacing: var(--ab-att-tracking);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.2s ease, border-width 0.2s ease;
}

.ab-attract-button.is-active .ab-attract-button__btn,
.ab-attract-button__btn:focus-visible {
  border-width: 2px;
  border-color: var(--ab-att-border-hover);
  outline: none;
}

.ab-attract-button__btn:focus {
  outline: none;
}

.ab-attract-button__btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.ab-attract-button__filler {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--ab-att-fill);
  transform: translate3d(0, 105%, 0);
  pointer-events: none;
  will-change: transform;
}

.ab-attract-button__text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  will-change: transform;
}

.ab-attract-button__label {
  display: block;
  color: var(--ab-att-fg);
  will-change: transform, opacity, color;
}

@media (prefers-reduced-motion: reduce) {
  .ab-attract-button__btn,
  .ab-attract-button__text,
  .ab-attract-button__filler,
  .ab-attract-button__label {
    will-change: auto;
  }

  .ab-attract-button.is-active .ab-attract-button__filler {
    transform: none;
  }
}
