/* Yoovic Marketplace — the few rules Tailwind's CDN build can't express well. */

:root {
  --ring: #3b6ef6;
}

html { -webkit-text-size-adjust: 100%; }
body { font-feature-settings: "cv02", "cv03", "cv04"; }

/* Numbers in stat blocks should never jitter as they update. */
.tabular { font-variant-numeric: tabular-nums; }

/* One consistent, visible focus ring across both portals. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Autofill on the dark admin login shouldn't repaint the field white. */
input:-webkit-autofill,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: inherit;
  transition: background-color 100000s ease-in-out 0s;
}

/* The module rail on the auth pages: a scrollable list with a soft fade-out
   at the bottom edge rather than a hard cut. */
.rail-fade {
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}

.rail-fade::-webkit-scrollbar { width: 4px; }
.rail-fade::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
