/* buynfa storefront preview — scoped to html.buynfa-preview */
html.buynfa-preview {
  --void: #050507;
  --bone: #e8e6e1;
  --ap-bg: var(--void);
  --ap-panel: #0c0b12;
  --ap-line: #232833;
  --ap-muted: #9a9d9a;
  --ap-text: var(--bone);
  --ap-purple-a: #9d6bff;
  --ap-purple-b: #7c3aed;
  --ap-purple: #a78bfa;
  --ap-purple-glow: rgba(124, 58, 237, 0.4);
  --bn-signal: #b794ff;
  --bn-magenta: #e879f9;
  --ap-green: var(--bn-signal);
  --ap-radius-sm: 4px;
  --ap-radius: 8px;
  --ap-gutter: clamp(1.25rem, 4vw, 2.75rem);
  --ap-max: 1320px;
  --ap-shell: var(--ap-max);
  --ap-edge: max(var(--ap-gutter), calc((100vw - var(--ap-max)) / 2 + var(--ap-gutter)));
  --ap-display: 'Outfit', Inter, system-ui, sans-serif;
  --bv2-bg: var(--ap-bg);
  --bv2-surface: #0a0812;
  --bv2-elevated: #14101f;
  --bv2-border: rgba(167, 139, 250, 0.14);
  --bv2-text: var(--ap-text);
  --bv2-muted: var(--ap-muted);
  --bv2-accent: var(--ap-purple-a);
  --bv2-accent-hover: #c084fc;
  --bv2-radius: 14px;
  --bv2-action: var(--ap-purple-b);
  --bv2-glow: rgba(155, 107, 255, 0.35);
  --bv2-gutter: var(--ap-gutter);
  --bv2-max: var(--ap-max);
  --bv2-display: var(--ap-display);
}

html.buynfa-preview,
html.buynfa-preview body {
  margin: 0;
  width: 100%;
  min-height: 100dvh;
  background: var(--ap-bg);
  color: var(--ap-text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
}

html.buynfa-preview body {
  display: flex;
  flex-direction: column;
  padding-bottom: max(4.75rem, calc(env(safe-area-inset-bottom, 0px) + 3.5rem));
}

.ap-preview-ribbon {
  position: relative;
  z-index: 60;
  margin: 0;
  padding: 0.45rem var(--ap-gutter);
  border-bottom: 1px solid rgba(167, 139, 250, 0.2);
  background: rgba(109, 40, 217, 0.18);
  color: #c4b5fd;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.ap-preview-ribbon a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

html.buynfa-preview main {
  flex: 1;
  width: 100%;
}

html.buynfa-preview *,
html.buynfa-preview *::before,
html.buynfa-preview *::after {
  box-sizing: border-box;
}

html.buynfa-preview::before {
  content: '';
  position: fixed;
  inset: -4%;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(118deg, rgba(155, 107, 255, 0.04) 1px, transparent 1px),
    linear-gradient(208deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px;
  mask-image: radial-gradient(ellipse 130% 95% at 50% -15%, #000 12%, transparent 72%);
  animation: bn-grid-drift 32s linear infinite;
}

html.buynfa-preview::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 42% at 72% 12%, rgba(124, 58, 237, 0.38), transparent 58%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(124, 58, 237, 0.12), transparent 65%),
    radial-gradient(ellipse 40% 35% at 15% 85%, rgba(232, 121, 249, 0.06), transparent 58%);
  animation: bn-aurora 22s ease-in-out infinite alternate;
}

.ap-shell {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--ap-max);
  margin-inline: auto;
  padding-inline: var(--ap-gutter);
}

.ap-icon {
  display: block;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Header */
.ap-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--ap-line);
  background: rgba(5, 5, 7, 0.88);
  backdrop-filter: blur(14px);
}

.ap-header__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 62px;
}

.ap-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 0.25rem;
  overflow: visible;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.ap-brand__logo {
  display: block;
  width: 30px;
  height: 30px;
}

.ap-brand__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(145deg, #a78bfa, #6d28d9);
  font-size: 0.85rem;
  font-weight: 800;
}

.ap-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.1rem;
}

.ap-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.6rem;
  border-radius: 8px;
  color: var(--ap-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.ap-nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.ap-nav__link--on {
  color: #fff;
}

.ap-header__end {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ap-header__auth {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ap-online {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--ap-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ap-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.ap-online i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ap-green);
  box-shadow: 0 0 10px rgba(183, 148, 255, 0.85);
}

.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0 0.9rem;
  border-radius: var(--ap-radius-sm);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.15s;
}

.ap-btn:active {
  transform: scale(0.98);
}

.ap-btn--discord {
  border: 0;
  background: #5865f2;
  color: #fff;
}

a.ap-btn.ap-btn--discord {
  color: #fff;
}

.ap-btn--discord:hover {
  background: #4752c4;
  color: #fff;
}

.ap-btn--login {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.ap-btn--login:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(167, 139, 250, 0.35);
}

.ap-btn--register {
  border: 0;
  background: linear-gradient(in oklab, var(--ap-purple-a) 0%, var(--ap-purple-b) 100%);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.25), 0 8px 24px var(--ap-purple-glow);
}

.ap-btn--register:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.45), 0 12px 32px var(--ap-purple-glow);
}

.ap-btn--admin {
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
  text-decoration: none;
  font-weight: 600;
}

.ap-btn--admin:hover {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.55);
  color: #fff;
}

.ap-btn--signin {
  border-color: rgba(255, 255, 255, 0.12);
  background: #f4f4f5;
  color: #111;
}

.ap-btn--primary {
  border: 0;
  background: linear-gradient(in oklab, var(--ap-purple-a) 0%, var(--ap-purple-b) 100%);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.25), 0 8px 32px var(--ap-purple-glow);
}

.ap-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.5), 0 16px 48px var(--ap-purple-glow);
}

.ap-btn--outline {
  border-color: var(--ap-line);
  background: #15121c;
  color: rgba(255, 255, 255, 0.85);
}

.ap-btn--outline:hover {
  background: rgba(255, 255, 255, 0.06);
}

.ap-cart {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ap-line);
  border-radius: 10px;
  color: #e4e4e7;
  text-decoration: none;
}

.ap-cart__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ap-purple);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}

.ap-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ap-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  cursor: pointer;
}

/* Hero */
.ap-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4rem);
}

.ap-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: min(72%, 780px);
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 55% 45%, rgba(59, 130, 246, 0.14), transparent 68%),
    radial-gradient(ellipse 55% 50% at 78% 58%, rgba(155, 107, 255, 0.22), transparent 72%);
  filter: blur(12px);
  opacity: 0.95;
}

.ap-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}

.ap-hero__grid > div:first-child {
  overflow: visible;
  min-width: 0;
  padding-right: 0.25rem;
}

.ap-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 999px;
  background: rgba(109, 40, 217, 0.14);
  color: #c4b5fd;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ap-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.9);
}

.ap-hero h1 {
  margin: 0 0 1rem;
  max-width: 16em;
  font-family: var(--ap-display, Outfit, Inter, system-ui, sans-serif);
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #fff;
}

.ap-hero h1 .ap-hero__hl,
.ap-hero h1 em {
  font-style: normal;
  font-weight: 700;
  display: inline;
  padding-right: 0.1em;
  color: #c4b5fd;
  background: linear-gradient(105deg, #e9d5ff 0%, #a78bfa 45%, #d8b4fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.ap-hero__sub {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.ap-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.ap-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.ap-stats div strong {
  display: block;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ap-stats div span {
  display: block;
  margin-top: 0.2rem;
  color: var(--ap-muted);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  padding-bottom: 0.1em;
  text-transform: uppercase;
}

.ap-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin-top: 1.35rem;
  padding: 0;
  list-style: none;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 500;
}

.ap-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ap-btn--sm {
  min-height: 34px;
  padding-inline: 0.75rem;
  font-size: 0.75rem;
}

.ap-trust svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  opacity: 0.85;
}

.ap-hero__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(200px, 28vw, 320px);
  padding: 0.5rem 0;
}

.ap-hero__glow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.ap-hero__glow--warm {
  inset: 5% -5% -15% 10%;
  background: radial-gradient(ellipse 65% 55% at 48% 55%, rgba(59, 130, 246, 0.28), transparent 72%);
  filter: blur(44px);
  opacity: 0.9;
}

.ap-hero__glow--violet {
  inset: -5% -15% -25% 25%;
  background: radial-gradient(ellipse 60% 52% at 65% 55%, rgba(124, 58, 237, 0.35), transparent 70%);
  filter: blur(48px);
  opacity: 0.7;
}

.ap-hero__frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 920 / 430;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 120, 40, 0.08),
    0 0 100px rgba(255, 90, 20, 0.12);
  transform: perspective(900px) rotateY(-4deg) rotateX(2deg);
  transform-origin: center center;
}

.ap-hero__frame--cutout {
  aspect-ratio: auto;
  min-height: clamp(300px, 36vw, 460px);
  max-width: min(100%, 520px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: perspective(900px) rotateY(-3deg);
}

.ap-hero__frame--cutout .ap-hero__frame-vignette {
  background:
    linear-gradient(to top, rgba(3, 3, 5, 0.5) 0%, transparent 35%),
    radial-gradient(ellipse 90% 70% at 50% 80%, rgba(59, 130, 246, 0.12), transparent 60%);
}

.ap-hero__frame--cutout .ap-hero__frame-shine {
  background: linear-gradient(118deg, rgba(147, 197, 253, 0.08) 0%, transparent 45%, rgba(167, 139, 250, 0.06) 100%);
}

.ap-hero__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.ap-hero__frame--cutout img {
  width: 100%;
  height: auto;
  max-height: min(460px, 52vh);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 48px rgba(59, 130, 246, 0.12));
}

.ap-hero__frame-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(3, 3, 5, 0.75) 0%, transparent 42%),
    linear-gradient(to right, rgba(3, 3, 5, 0.35) 0%, transparent 35%),
    linear-gradient(135deg, rgba(109, 40, 217, 0.15) 0%, transparent 50%);
}

.ap-hero__frame-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 38%,
    rgba(255, 140, 50, 0.06) 62%,
    transparent 100%
  );
}

@media (prefers-reduced-motion: no-preference) {
  .ap-hero__glow--warm {
    animation: ap-hero-pulse-warm 8s ease-in-out infinite alternate;
  }
  .ap-hero__glow--violet {
    animation: ap-hero-pulse-violet 10s ease-in-out infinite alternate;
  }
}

@keyframes ap-hero-pulse-warm {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 0.95; transform: scale(1.04); }
}

@keyframes ap-hero-pulse-violet {
  from { opacity: 0.55; transform: scale(1); }
  to { opacity: 0.8; transform: scale(1.03); }
}

/* Category cards */
.ap-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0 0 3rem;
}

.ap-cat {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 1.1rem;
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius);
  overflow: hidden;
  background: var(--ap-panel);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.ap-cat:hover {
  border-color: rgba(167, 139, 250, 0.35);
  transform: translateY(-2px);
}

.ap-cat__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, #000 70%);
}

.ap-cat__bg--rust {
  background-position: center 22%;
  opacity: 0.42;
}

.ap-cat__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: auto;
  border: 1px solid var(--ap-line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  color: #c4b5fd;
}

.ap-cat__tag {
  position: relative;
  z-index: 1;
  margin-top: 0.75rem;
  color: #a78bfa;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ap-cat h2 {
  position: relative;
  z-index: 1;
  margin: 0.35rem 0 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ap-cat p {
  position: relative;
  z-index: 1;
  margin: 0.4rem 0 0;
  color: var(--ap-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.ap-cat__stat {
  position: relative;
  z-index: 1;
  margin-top: 0.65rem;
  color: var(--ap-green);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Main layout blocks */
.ap-games-block {
  padding-bottom: 2.5rem;
}

.ap-promo-row {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  padding-bottom: 2.5rem;
}

.ap-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ap-section-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.ap-section-head p {
  margin: 0;
  color: var(--ap-muted);
  font-size: 0.875rem;
}

.ap-section-head a {
  color: #a78bfa;
  font-size: 0.8125rem;
  font-weight: 650;
  text-decoration: none;
}

.ap-games {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.ap-games__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.25rem;
  border: 1px dashed var(--ap-line);
  border-radius: var(--ap-radius);
  color: var(--ap-muted);
  font-size: 0.875rem;
  text-align: center;
}

.ap-game {
  display: block;
  padding: 0;
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius);
  overflow: hidden;
  background: var(--ap-panel);
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}

.ap-game:hover {
  border-color: rgba(167, 139, 250, 0.35);
  transform: translateY(-2px);
}

.ap-game img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #15121c;
}

.ap-game div {
  padding: 0.55rem 0.6rem 0.65rem;
}

.ap-game strong {
  display: block;
  font-size: 0.8125rem;
}

.ap-game span {
  display: block;
  margin-top: 0.15rem;
  color: #6b7280;
  font-size: 0.6875rem;
}

.ap-icon--xs {
  width: 0.8rem;
  height: 0.8rem;
}

/* Sidebar widget — top spenders */
.ap-widget {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18, 16, 28, 0.95), rgba(8, 7, 12, 0.98));
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.ap-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.65rem 0.65rem 0;
}

.ap-tabs button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.45rem;
  border: 1px solid transparent;
  border-radius: 10px 10px 0 0;
  background: transparent;
  color: var(--ap-muted);
  font-family: inherit;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.ap-tabs button .ap-icon {
  width: 0.85rem;
  height: 0.85rem;
  opacity: 0.7;
}

.ap-tabs button[aria-selected='true'] {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
  border-bottom-color: transparent;
  background: rgba(255, 255, 255, 0.04);
}

.ap-tabs button[aria-selected='true'] .ap-icon {
  opacity: 1;
  color: #c4b5fd;
}

.ap-podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 0.35rem;
  align-items: end;
  padding: 0.75rem 0.85rem 0.35rem;
}

.ap-podium__col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.ap-podium__col--1 {
  z-index: 1;
}

.ap-podium__rank-bg {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(3rem, 10vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
}

.ap-podium__col--1 .ap-podium__rank-bg {
  color: rgba(251, 191, 36, 0.07);
  font-size: clamp(3.25rem, 11vw, 5rem);
}

.ap-podium__crown {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 0 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.55);
  background: radial-gradient(circle at 50% 35%, rgba(254, 240, 138, 0.35), rgba(251, 191, 36, 0.12));
  color: #fcd34d;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(251, 191, 36, 0.45),
    0 4px 16px rgba(0, 0, 0, 0.35);
}

.ap-podium__crown .ap-icon {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
  stroke: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.ap-podium__name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin: 0 0 0.15rem;
  color: #c4b5fd;
  font-size: 0.8125rem;
  font-weight: 650;
  z-index: 1;
}

.ap-podium__col--1 .ap-podium__name {
  font-family: var(--ap-display, Outfit, Inter, sans-serif);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fef3c7;
  text-shadow: 0 0 22px rgba(251, 191, 36, 0.35);
}

.ap-podium__amt {
  margin: 0 0 0.45rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  z-index: 1;
}

.ap-podium__col--1 .ap-podium__amt {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #fff;
}

.ap-podium__bar {
  width: 100%;
  border-radius: 10px 10px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.35));
}

.ap-podium__col--2 .ap-podium__bar {
  height: 3.25rem;
}

.ap-podium__col--1 .ap-podium__bar {
  height: 4.35rem;
  border-color: rgba(251, 191, 36, 0.45);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.18), rgba(0, 0, 0, 0.4));
  box-shadow:
    inset 0 1px 0 rgba(251, 191, 36, 0.35),
    0 0 28px rgba(251, 191, 36, 0.12);
}

.ap-podium__col--3 .ap-podium__bar {
  height: 2.65rem;
  border-color: rgba(180, 83, 9, 0.35);
}

.ap-leaderboard {
  margin: 0;
  padding: 0.25rem 0 0.35rem;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ap-leaderboard li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ap-leaderboard li:last-child {
  border-bottom: 0;
}

.ap-rank {
  width: 1.1rem;
  color: #52525b;
  font-size: 0.75rem;
  font-weight: 700;
}

.ap-leaderboard__user {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
  color: #a78bfa;
}

.ap-leaderboard__user .ap-icon {
  color: #7c6bdc;
  flex-shrink: 0;
}

.ap-leaderboard b {
  font-weight: 650;
  color: #c4b5fd;
}

.ap-leaderboard em {
  font-style: normal;
  color: #fff;
  font-weight: 650;
  font-size: 0.8125rem;
}

.ap-widget__hint {
  margin: 0;
  padding: 0.55rem 0.85rem 0.75rem;
  color: #52525b;
  font-size: 0.6875rem;
  line-height: 1.45;
}

.ap-panel[hidden] {
  display: none;
}

.ap-giveaway-note {
  margin: 0;
  padding: 0.75rem 0.85rem;
  color: var(--ap-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.ap-giveaway-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0 0.85rem 0.85rem;
  text-align: center;
}

.ap-giveaway-stats div {
  padding: 0.5rem;
  border: 1px solid var(--ap-line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
}

.ap-giveaway-stats strong {
  display: block;
  font-size: 0.9375rem;
}

.ap-giveaway-stats span {
  display: block;
  margin-top: 0.15rem;
  color: #6b7280;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Discord community card */
.ap-discord-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: clamp(1.35rem, 3vw, 2rem) clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid rgba(167, 139, 250, 0.12);
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(124, 58, 237, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(88, 28, 135, 0.15), transparent 50%),
    linear-gradient(145deg, rgba(14, 12, 22, 0.98), rgba(5, 5, 7, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.ap-discord-card__glow {
  position: absolute;
  inset: -30% auto auto -20%;
  width: 55%;
  height: 70%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.2), transparent 70%);
  pointer-events: none;
}

.ap-discord-card__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: linear-gradient(145deg, #8b5cf6, #6d28d9);
  box-shadow: 0 12px 32px rgba(109, 40, 217, 0.45);
  color: #fff;
}

.ap-discord-card__icon .ap-icon {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
  stroke: none;
}

.ap-discord-card__logo {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  color: #fff;
}

.ap-discord-card__eyebrow {
  position: relative;
  margin: 0 0 0.5rem;
  color: #a78bfa;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ap-discord-card h3 {
  position: relative;
  margin: 0 0 0.65rem;
  max-width: 26ch;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.ap-discord-card__copy {
  position: relative;
  margin: 0;
  max-width: 42ch;
  color: var(--ap-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.ap-discord-card__foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.35rem;
}

.ap-discord-card__online {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--ap-line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--ap-muted);
  font-size: 0.6875rem;
  font-weight: 600;
}

.ap-discord-card__online i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ap-green);
  box-shadow: 0 0 10px rgba(183, 148, 255, 0.75);
}

.ap-discord-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}

.ap-discord-card__cta:hover {
  background: rgba(0, 0, 0, 0.75);
  border-color: rgba(167, 139, 250, 0.35);
  transform: translateY(-1px);
}

.ap-discord-card__cta .ap-icon {
  opacity: 0.85;
}

/* Legacy community block (unused) */
.ap-community {
  display: none;
}

.ap-community__eyebrow {
  margin: 0 0 0.35rem;
  color: #a78bfa;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ap-community h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.ap-community p {
  margin: 0;
  max-width: 640px;
  color: var(--ap-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.ap-community .ap-btn {
  margin-top: 1rem;
}

.ap-community__hint {
  margin-top: 0.65rem !important;
  font-size: 0.75rem !important;
}

/* Trust strip — full-width band, content in shell */
.ap-band {
  width: 100%;
  box-sizing: border-box;
}

.ap-trust-band {
  border-top: 1px solid var(--ap-line);
  border-bottom: 1px solid var(--ap-line);
  background:
    linear-gradient(180deg, rgba(10, 9, 16, 0.85) 0%, rgba(3, 3, 5, 0.98) 100%),
    radial-gradient(ellipse 90% 120% at 50% 0%, rgba(155, 107, 255, 0.07), transparent 58%);
}

.ap-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 1.75rem);
  padding-block: 2rem 2.5rem;
  border: 0;
  background: transparent;
}

.ap-trust-strip article strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
}

.ap-trust-strip article p {
  margin: 0;
  color: var(--ap-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

/* Footer — full-width band + centered floor glow */
.ap-footer-band {
  position: relative;
  width: 100%;
  background: #030304;
  overflow: hidden;
}

.ap-footer-band::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -35%;
  width: min(1600px, 140vw);
  height: 85%;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.16), transparent 68%);
}

.ap-footer-band::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

.ap-footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 1.5rem;
  background: transparent;
}

.ap-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 2rem;
}

.ap-footer__brand p {
  max-width: 300px;
  margin: 0.85rem 0 1rem;
  color: var(--ap-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.ap-footer h2 {
  margin: 0 0 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}

.ap-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ap-footer li + li {
  margin-top: 0.5rem;
}

.ap-footer a {
  color: var(--ap-muted);
  font-size: 0.8125rem;
  text-decoration: none;
}

.ap-footer a:hover {
  color: #c4b5fd;
}

.ap-footer a.ap-btn--discord,
.ap-footer a.ap-btn--discord:hover {
  color: #fff;
}

.ap-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ap-line);
  color: #52525b;
  font-size: 0.6875rem;
}

/* Live chat */
.ap-chat {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.ap-chat__panel {
  width: min(320px, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid var(--ap-line);
  border-radius: 14px;
  background: rgba(10, 10, 14, 0.96);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  animation: ap-rise 0.2s ease;
}

@keyframes ap-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ap-chat__panel[hidden] {
  display: none;
}

.ap-chat__panel h4 {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
}

.ap-chat__panel p {
  margin: 0;
  color: var(--ap-muted);
  font-size: 0.8125rem;
}

.ap-chat__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--ap-line);
  border-radius: 999px;
  background: #0c0b12;
  color: var(--bone);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.ap-chat__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ap-green);
  box-shadow: 0 0 10px rgba(183, 148, 255, 0.85);
}

@media (max-width: 1024px) {
  .ap-games {
    grid-template-columns: repeat(3, 1fr);
  }
  .ap-promo-row {
    grid-template-columns: 1fr;
  }
  .ap-discord-card {
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .ap-nav {
    display: none;
  }
  .ap-online {
    display: none;
  }
  .ap-online--mobile {
    display: inline-flex;
    margin: 0 0 0.65rem;
  }
  .ap-menu-btn {
    display: grid;
    place-items: center;
  }
  .ap-hero__grid {
    grid-template-columns: 1fr;
  }
  .ap-hero__art {
    min-height: 0;
    order: -1;
    padding: 0.25rem 0 1rem;
  }

  .ap-hero__frame {
    max-width: 100%;
    transform: none;
  }

  .ap-hero::before {
    width: 100%;
    height: 55%;
    top: auto;
    bottom: 0;
    right: 0;
  }
  .ap-cats {
    grid-template-columns: 1fr;
  }
  .ap-games {
    grid-template-columns: repeat(2, 1fr);
  }
  .ap-trust-strip {
    grid-template-columns: 1fr 1fr;
  }
  .ap-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .ap-stats {
    grid-template-columns: 1fr;
  }
  .ap-trust-strip {
    grid-template-columns: 1fr;
  }
  .ap-footer__grid {
    grid-template-columns: 1fr;
  }
  .ap-header__end .ap-header__auth {
    display: none;
  }
}

.ap-mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid var(--ap-line);
}

.ap-mobile-nav--open {
  display: flex;
}

.ap-mobile-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  color: var(--ap-muted);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}

.ap-mobile-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

@media (prefers-reduced-motion: reduce) {
  html.buynfa-preview::before,
  html.buynfa-preview::after {
    animation: none;
  }
  html.buynfa-preview .ap-hero > .ap-hero__grid > div {
    animation: none;
  }
}

html.buynfa-preview .ap-header {
  border-bottom: none;
  background: transparent;
  backdrop-filter: none;
  padding-top: 0.45rem;
}

html.buynfa-preview .ap-header__row {
  margin-bottom: 0.45rem;
  padding-block: 0.35rem;
  border: 1px solid rgba(167, 139, 250, 0.14);
  border-radius: 14px;
  background: rgba(8, 7, 14, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

html.buynfa-preview .ap-mobile-nav {
  max-width: var(--ap-max);
  margin-inline: auto;
  padding-inline: var(--ap-gutter);
}

html.buynfa-preview .ap-nav__link--on {
  color: #fff;
  background: rgba(155, 107, 255, 0.12);
  box-shadow: inset 0 -2px 0 var(--ap-purple-a);
}

html.buynfa-preview .ap-hero h1 {
  font-family: var(--ap-display);
  font-weight: 700;
  letter-spacing: -0.028em;
}

html.buynfa-preview .ap-section-head h2,
html.buynfa-preview .ap-cat h2 {
  font-family: var(--ap-display);
  font-weight: 700;
}

html.buynfa-preview .ap-hero__grid > div:first-child {
  animation: bn-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.buynfa-preview .ap-cat {
  border-radius: 12px;
  transition:
    border-color 0.25s,
    transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.3s;
}

html.buynfa-preview .ap-cat:hover {
  border-color: rgba(232, 121, 249, 0.38);
  box-shadow: 0 22px 48px rgba(109, 40, 217, 0.25);
  transform: translateY(-4px) rotate(-0.4deg);
}

html.buynfa-preview .ap-cat__stat {
  color: var(--bn-magenta);
}

html.buynfa-preview .ap-stats div strong {
  background: linear-gradient(180deg, #fff, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* lobby-chat placement: see lobby-chat.css (html.buynfa-preview .lobby-chat) */

.ap-page-inner {
  position: relative;
  z-index: 1;
  padding-bottom: 2.5rem;
}

.ap-header__user {
  position: relative;
}

.ap-user-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 9rem;
  padding: 0.35rem;
  border: 1px solid var(--ap-line);
  border-radius: 10px;
  background: var(--ap-panel);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  z-index: 40;
}

.ap-user-menu a,
.ap-user-menu button {
  display: block;
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ap-text);
  font: inherit;
  font-size: 0.8125rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.ap-user-menu a:hover,
.ap-user-menu button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.ap-auth {
  padding: 2rem 0 3rem;
  display: grid;
  place-items: center;
  min-height: 50vh;
}

.ap-auth__card {
  width: min(420px, 100%);
  padding: 1.75rem;
  border: 1px solid rgba(167, 139, 250, 0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(14, 12, 22, 0.98), rgba(6, 5, 10, 0.99));
}

.ap-auth__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  color: inherit;
  text-decoration: none;
}

.ap-auth__title {
  margin: 0 0 1rem;
  font-family: var(--ap-display);
  font-size: 1.35rem;
}

html.buynfa-preview .ap-auth .auth-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

html.buynfa-preview .ap-auth .auth-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(167, 139, 250, 0.14);
  border-radius: 10px;
  background: #14101f;
  color: var(--ap-text);
  font: inherit;
}

html.buynfa-preview .ap-auth .auth-submit {
  width: 100%;
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ap-purple-a), var(--ap-purple-b));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.ap-catalog-block {
  padding-bottom: 3rem;
}

.ap-catalog-group {
  margin-top: 1.25rem;
}

.ap-catalog-group__title {
  margin: 0 0 0.65rem;
  font-family: var(--ap-display);
  font-size: 1rem;
  color: var(--ap-purple);
}

.ap-games--products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ap-game__ph {
  display: grid;
  place-items: center;
  aspect-ratio: 460 / 215;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  color: var(--ap-purple);
}

.ap-game--product .ap-game__ph {
  font-size: 1.5rem;
}

.ap-trust .ap-icon {
  width: 0.85rem;
  height: 0.85rem;
  stroke: var(--ap-purple);
}

.ap-home-tabs {
  position: sticky;
  top: 3.25rem;
  z-index: 25;
  padding-block: 0.65rem;
  margin-bottom: 0.35rem;
  background: linear-gradient(180deg, rgba(5, 5, 7, 0.92) 70%, transparent);
  backdrop-filter: blur(8px);
}

.ap-home-tabs__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid rgba(167, 139, 250, 0.14);
  border-radius: 999px;
  background: rgba(10, 8, 18, 0.85);
}

.ap-home-tabs__link {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--ap-muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.ap-home-tabs__link:hover {
  color: var(--ap-text);
  background: rgba(255, 255, 255, 0.04);
}

.ap-home-tabs__link--on {
  border-color: rgba(167, 139, 250, 0.35);
  background: rgba(109, 40, 217, 0.2);
  color: #fff;
}

.ap-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.1rem;
}

.ap-filter-tabs__btn {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--ap-line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--ap-muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.ap-filter-tabs__btn:hover {
  border-color: rgba(167, 139, 250, 0.3);
  color: var(--ap-text);
}

.ap-filter-tabs__btn--on {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(109, 40, 217, 0.18);
  color: #fff;
}

html.buynfa-preview .ap-page-inner .category-pill,
html.buynfa-preview .ap-page-inner .pill-tabs__tab {
  border: 1px solid var(--ap-line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--ap-muted);
  font-size: 0.75rem;
  font-weight: 650;
}

html.buynfa-preview .ap-page-inner .category-pill--active,
html.buynfa-preview .ap-page-inner .pill-tabs__tab--active {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(109, 40, 217, 0.18);
  color: #fff;
}
