/* Utility Classes specific to the Axis Gamepad Pro Stealth Aesthetic */

/* Smooth body scroll */
html {
  scroll-behavior: smooth;
}

/* Chamfered Corners */
.chamfer {
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.chamfer-sm {
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

/* Glassmorphism */
.glass {
  background: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.1);
}

/* Text Gradients */
.text-gradient {
  background: linear-gradient(to right, #D4AF37, #FFFFFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Top Announcement Ticker Animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.animate-scroll {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
}

/* Scroll reveal animations */
[data-reveal="true"] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="true"].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* FAQ summary marker removal (cross-browser) */
details summary::-webkit-details-marker {
  display: none;
}

details summary::marker {
  display: none;
  content: '';
}

/* Mobile: pad body so floating CTA doesn't cover content */
@media (max-width: 639px) {
  body {
    padding-bottom: 72px;
  }
}

/* Horizontal scroll-fade hint for tables on mobile */
.scroll-fade {
  position: relative;
}

.scroll-fade::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to right, transparent, rgba(18, 18, 18, 0.9));
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s;
}

/* Safe-area offset for notched phones – adjust position, not internal padding */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .fixed.bottom-4 {
    bottom: calc(1rem + env(safe-area-inset-bottom));
  }
}