/* Global UX enhancements — injected on every page */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: clip;
}

::selection {
  background: rgba(59, 233, 107, 0.35);
  color: #fff;
}

a,
button,
input,
textarea,
select {
  -webkit-tap-highlight-color: rgba(59, 233, 107, 0.18);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #3be96b !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(59, 233, 107, 0.22) !important;
}

.an3-skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 12px 20px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  background: #3be96b;
  color: #03190b;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: top 0.2s ease;
}

.an3-skip:focus,
.an3-skip:focus-visible {
  top: 16px;
  outline: 2px solid #03190b;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #3be96b, 0 8px 24px rgba(0, 0, 0, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 919px) {
  body.an3-menu-open {
    overflow: hidden;
  }
}
