/* =========================================================
   Storefront skin — dark base + red accent
   Colors come from settings.json (theme_color etc.) via the
   tokens defined in layouts/master.njk. Change the accent
   there, not here.
   ========================================================= */

:root {
  --bs-primary: var(--accent);
  --bs-primary-rgb: var(--cl-accent-rgb);
  --bs-link-hover-color: var(--accent-2);
  --text-dim: rgba(255, 255, 255, 0.55);
}

html { scroll-behavior: smooth; }

body {
  overflow-x: hidden;
  font-family: var(--bs-font-sans-serif);
  background: var(--bg);
  color: #f4f4f5;
}

/* soft accent glow behind the top of the page */
body::before {
  content: "";
  position: fixed; inset: 0 0 auto 0; height: 70vh;
  z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(var(--cl-accent-rgb), 0.16), transparent 70%);
}

/* ---------- section headings ---------- */
body .section-title, body .section-title h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.15;
  text-align: center; margin: 0 auto;
  color: #fff; background: none; -webkit-text-fill-color: #fff;
  animation: none; filter: none;
}
body .section-subtitle, body .section-subtitle p {
  font-size: 0.85rem; line-height: 1.7; color: var(--text-dim);
  text-align: center; margin: 0.5rem auto 1.5rem; max-width: 40rem;
}

/* little uppercase pill above each heading */
body .w3fkq, body .d3k9r {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.25rem 0.7rem; margin-bottom: 1rem;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  border-radius: 999px;
}
body .w3fkq svg, body .d3k9r svg { color: rgba(255, 255, 255, 0.6); width: 12px; height: 12px; }

/* ---------- buttons ---------- */
body .btn-primary, body a.btn-primary, body button.btn-primary {
  --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent);
  color: #fff !important;
  background: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  border-radius: 0.5rem; font-weight: 600;
  box-shadow: 0 0 0 0 transparent !important;
  transition: filter 0.2s ease, transform 0.2s ease;
}
body .btn-primary:hover:not(:disabled) { filter: brightness(1.12); color: #fff !important; background: var(--accent) !important; }
body .btn-primary:disabled, body .btn-primary.disabled { opacity: 0.45 !important; cursor: not-allowed; }
body .form-control:focus, body .form-select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 0.2rem rgba(var(--cl-accent-rgb), 0.2);
}

/* ---------- navbar ---------- */
body .n8kw2.q2vx8 .m3xq1, body .n8kw2.q2vx8-open .m3xq1 {
  background: rgba(10, 8, 9, 0.8) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35) !important;
}
body .m3xq1 .navbar-nav.gap-3 .btn { border-radius: 0.5rem !important; font-size: 0.8rem !important; }
body .m3xq1 .nav-link { font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); }
body .m3xq1 .nav-link:hover { color: #fff; }
body .m3xq1 .cart .count {
  background: var(--accent) !important; color: #fff !important;
}

/* ---------- hero ---------- */
body .p3wr8 { background: var(--bg); }
body .p3wr8 .t2nq6 {
  background-size: cover; background-position: center bottom;
  filter: brightness(0.85) contrast(1.05);
  transform: none;
}
body .p3wr8::before {
  content: "" !important; display: block !important;
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(var(--cl-accent-rgb), 0.38), transparent 70%),
    linear-gradient(180deg, rgba(10, 8, 9, 0.2), rgba(10, 8, 9, 0.35) 55%, var(--bg) 100%);
  mix-blend-mode: normal;
}
body .p3wr8::after { background: linear-gradient(to bottom, transparent 0%, var(--bg) 100%); }

/* green trust badge */
body .r4yt9 {
  color: #4ade80; font-size: 0.72rem; font-weight: 600;
  background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.35);
  animation: none; padding: 0.3rem 0.8rem;
}
body .r4yt9:hover { background: rgba(34, 197, 94, 0.18); border-color: rgba(34, 197, 94, 0.5); }

body .w5ck3 h1 { font-weight: 650; font-size: clamp(2.6rem, 5.5vw, 4rem); letter-spacing: -0.02em; line-height: 1.08; }
body .e8vp5 {
  background: linear-gradient(180deg, #f4f4f5, #9a9a9f) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; color: transparent !important;
}
body .w5ck3 p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.62); text-shadow: none; }

body .b1nz7 .btn { font-size: 0.82rem; padding: 0.55rem 1.3rem; border-radius: 0.5rem; }
body .b1nz7 .btn-primary, body .b1nz7 .btn-primary:hover,
body .b1nz7 .btn-primary:focus, body .b1nz7 .btn-primary:active {
  color: #fff !important; background: var(--accent) !important; border-color: var(--accent) !important;
}
body .b1nz7 .btn-clear, body .b1nz7 .btn-clear:hover, body .b1nz7 .btn-clear:focus {
  color: #fff; background: rgba(120, 120, 128, 0.55); border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

/* ---------- game posters ---------- */
body .m4xk9 { gap: 0.6rem; max-width: 960px; }
body .b6rw1 { border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
body .b6rw1::after { display: none; }
body .b6rw1:hover .f2tn8 { transform: scale(1.04); }

/* ---------- cards / bento ---------- */
body .a1x9k { background: transparent; border: 0; }
body .f7j1n, body .g4t8x {
  background: var(--surface); border: 1px solid var(--line); box-shadow: none;
  transform: none;
}
body .f7j1n:hover { background: var(--surface); border-color: rgba(var(--cl-accent-rgb), 0.35); transform: none; }
body .f7j1n::after { opacity: 0; }
body .f7j1n:hover::after { opacity: 0.6; }
body .k3wvq, body .m9tzp { opacity: 0.35; }

/* ---------- FAQ ---------- */
body .g7lk2 .f3tn9.accordion-item {
  background: var(--surface) !important; border: 1px solid var(--line) !important;
  border-radius: 0.6rem !important; box-shadow: none;
}
body .g7lk2 .f3tn9.accordion-item:hover,
body .g7lk2 .f3tn9.accordion-item:has(.c8lq4[aria-expanded="true"]) { border-color: var(--line-strong) !important; }
body .g7lk2 .accordion-button { font-size: 0.8rem; font-weight: 500; }

/* ---------- reviews ---------- */
body .f9k2m { background: var(--surface); border: 1px solid var(--line); box-shadow: none; }

/* ---------- footer ---------- */
body footer, body footer .component {
  background: transparent !important;
  border-top: 1px solid var(--line) !important;
}

/* ---------- generic cards (product cards, cart, panels) ---------- */
body .card {
  background: var(--surface) !important; border: 1px solid var(--line) !important;
  box-shadow: none; transform: none;
}
body .card:hover { border-color: var(--line-strong) !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- hero sizing + Discord button (match reference) ---------- */
@media (min-width: 768px) {
  body .p3wr8, body .p3wr8.height-short { min-height: 720px; }
}
body .p3wr8 .t2nq6 { background-position: center 8% !important; background-size: cover; }
body .b1nz7 .btn.m4rp9, body .b1nz7 .btn-clear {
  background: rgba(113, 113, 122, 0.6) !important; color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* flat accent buy buttons, as in the reference */
body .i8v5j, body .i8v5j:hover { background: var(--accent) !important; border-color: var(--accent) !important; box-shadow: none !important; }

/* poster names are part of the image now */
body .v9cx3 { display: none; }


/* Hidden theme: keep one continuous dark canvas while preserving the red ambient glow. */
html, body { background-color: var(--bg) !important; }
body, body main, body main > *, body .component, body section.component { background-color: transparent; }
body::before { z-index: 0; height: 100vh; opacity: 1; pointer-events: none; }
body > * { position: relative; }
body .bg-block-primary, body .bg-block-secondary { background: transparent !important; }
/* Red icon treatment for homepage section labels (Games, Why Us, FAQ, Affiliate). */
body .q7np2 .w3fkq svg, body .k3wvq + .m9tzp + .b2m7q .d3k9r svg, body .faq .section-title svg, body .affiliate .section-title svg { color: var(--accent) !important; }


/* Final visual polish: continuous canvas, red section icons, and seamless hero fade. */
html, body, #app, .flex-wrapper { background-color: var(--bg) !important; }
body main, body main > *, body section.component, body .component:not([data-component-id="navbar"]):not(.hidden-footer) { background-color: transparent !important; }
body .p3wr8::before {
  background: radial-gradient(ellipse 78% 58% at 50% 0%, rgba(var(--cl-accent-rgb), .28), transparent 72%),
    linear-gradient(180deg, rgba(8, 5, 6, .08) 0%, rgba(8, 5, 6, .22) 58%, var(--bg) 100%) !important;
}
body .p3wr8::after { background: linear-gradient(180deg, transparent 45%, var(--bg) 100%) !important; }
/* Recolor icons in Games, Why Us, FAQ, Feedbacks, and Affiliate headings/pills. */
body .w3fkq svg, body .d3k9r svg, body .section-title svg, body .section-title i,
body [class*="feedback"] .w3fkq svg, body [class*="affiliate"] .w3fkq svg,
body [class*="faq"] .w3fkq svg, body [class*="why"] .w3fkq svg { color: var(--accent) !important; fill: currentColor !important; }
body .hidden-footer-logo img { object-fit: contain; }
