@property --pd-edge-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes pd-edge-light {
  to { --pd-edge-angle: 360deg; }
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn {
  color: #f5f1e9 !important;
  border: 4px solid transparent !important;
  background:
    linear-gradient(#090909, #090909) padding-box,
    conic-gradient(from var(--pd-edge-angle), #ff7a00, #ffd166, #ff3d81, #8b5cf6, #22d3ee, #26a269, #ff7a00) border-box !important;
  animation: pd-edge-light 4.5s linear infinite;
  transition: color 180ms ease, filter 180ms ease, transform 180ms ease;
}

button:hover,
button:focus-visible,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
.btn:hover {
  color: #fff !important;
  background:
    linear-gradient(#090909, #090909) padding-box,
    conic-gradient(from var(--pd-edge-angle), #ff7a00, #ffd166, #ff3d81, #8b5cf6, #22d3ee, #26a269, #ff7a00) border-box !important;
  filter: drop-shadow(0 0 10px #ff9a21aa);
}

button:active,
button[aria-pressed="true"],
button.active,
button.is-active,
input[type="button"]:active,
input[type="submit"]:active,
.btn:active,
.btn[aria-pressed="true"] {
  color: #fff !important;
  background:
    linear-gradient(#ff9a1f, #ed6a00) padding-box,
    conic-gradient(from var(--pd-edge-angle), #ff7a00, #ffd166, #ff3d81, #8b5cf6, #22d3ee, #26a269, #ff7a00) border-box !important;
  filter: drop-shadow(0 0 10px #ff8a00bb);
}

button:active,
input[type="button"]:active,
input[type="submit"]:active,
.btn:active {
  transform: scale(.985);
}

button:disabled,
input:disabled {
  animation: none;
  filter: saturate(.45);
}

.photoarea .photo-btn {
  color: #fff !important;
  border: 2px solid #ef7200 !important;
  background: #ef7200 !important;
  animation: none !important;
  box-shadow: 0 2px 8px #ef720055;
}

.photoarea .photo-btn:hover,
.photoarea .photo-btn:focus-visible {
  color: #fff !important;
  border-color: #ff8a00 !important;
  background: #ff8a00 !important;
  filter: brightness(1.05);
}

.photoarea .photo-btn:active {
  color: #fff !important;
  border-color: #d95f00 !important;
  background: #d95f00 !important;
}

@media (prefers-reduced-motion: reduce) {
  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  .btn { animation: none; }
}
