/* Local font overrides */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins/Poppins-VariableFont_wght.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins/Poppins-Italic-VariableFont_wght.woff2') format('woff2');
  font-weight: 100 900; font-style: italic; font-display: swap;
}

/* Dark background: the live site uses a WebGL canvas for this */
html { background-color: #000 !important; overflow-x: hidden !important; }
body { background-color: #000 !important; overflow-x: hidden !important; }

/* Sticky header: extends below nav bar for the blur zone.
   backdrop-filter and mask-image live on ::before so the header element itself
   has neither — otherwise backdrop-filter creates a containing block that traps
   #mobileMenu (position:fixed) and the mask clips it invisible. */
header#mainHeader {
  position: fixed !important;
  min-height: 160px !important;
  pointer-events: none !important;
}
header#mainHeader::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  -webkit-backdrop-filter: blur(var(--header-blur, 0px)) !important;
  backdrop-filter: blur(var(--header-blur, 0px)) !important;
  background-color: rgba(0, 0, 0, var(--header-bg, 0)) !important;
  -webkit-mask-image: linear-gradient(to bottom, black 45%, transparent 100%) !important;
  mask-image: linear-gradient(to bottom, black 45%, transparent 100%) !important;
  pointer-events: none !important;
  z-index: -1 !important;
}
/* Re-enable pointer events for actual nav content */
header#mainHeader > * {
  pointer-events: auto;
}

/* Keep nav links white regardless of lightNav dynamic class */
html header#mainHeader.lightNav a:not(.btn-light),
html header#mainHeader.lightNav button { color: #fff !important; }

/* Keep header top bar (logo + hamburger) above the mobile overlay */
header#mainHeader > div:first-child {
  position: relative !important;
  z-index: 310 !important;
}

/* Mobile menu: full-screen overlay matching live site */
#mobileMenu {
  position: fixed !important;
  top: 0 !important; left: 0 !important;
  width: 100vw !important; height: 100vh !important;
  z-index: 300 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2.5rem !important;
  padding: 0 !important;
  background: #000 !important;
  border-top: none !important;
  opacity: 0;
  pointer-events: none !important;
  transition: opacity 0.2s ease;
}
#mobileMenu.is-open {
  opacity: 1 !important;
  pointer-events: auto !important;
}
#mobileMenu a {
  font-size: clamp(1.25rem, 5vw, 1.75rem) !important;
  font-weight: 500 !important;
  border-bottom: none !important;
  padding: 0 !important;
  color: #fff !important;
  text-align: center !important;
  display: block !important;
  width: auto !important;
}
/* Hide CTA buttons inside mobile menu */
#mobileMenu > .flex { display: none !important; }
/* Blue X icon when menu open (matches reference) */
#hamburger-btn #icon-x { color: #2b54ff !important; }

/* Suppress Alpine.js-powered scroll-animated clipping that leaves text invisible */
[x-scroll-reveal], [x-text-reveal], [data-barba-translate] {
  --clip-left: 0% !important;
  --clip-right: 0% !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Home games carousel — horizontal scroll without Fancybox JS */
.home-games-carousel {
  display: flex !important;
  flex-direction: row !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  gap: 1rem !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(255,255,255,.2) transparent !important;
  padding-bottom: .5rem !important;
}
.home-games-carousel .f-carousel__slide {
  flex: 0 0 190px !important;
  scroll-snap-align: start !important;
  min-width: 0 !important;
}

/* Screenshots carousel — horizontal scroll without Fancybox JS */
.screens-carousel {
  display: flex !important;
  flex-direction: row !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  gap: 1rem !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(255,255,255,.2) transparent !important;
  padding-bottom: .5rem !important;
}
.screens-carousel .f-carousel__slide {
  flex: 0 0 auto !important;
  width: auto !important;
  max-height: 480px !important;
  scroll-snap-align: start !important;
}
.screens-carousel .f-carousel__slide img {
  height: 100% !important;
  width: auto !important;
  max-height: 480px !important;
  border-radius: 12px !important;
  display: block !important;
}

/* Posts (articles) carousel */
.posts-carousel {
  display: flex !important;
  flex-direction: row !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  gap: 0.75rem !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(255,255,255,.2) transparent !important;
  padding-bottom: .5rem !important;
  padding-left: 7.142857vw !important;
  padding-right: 7.142857vw !important;
  justify-content: center !important;
}
.posts-carousel .f-carousel__slide,
.posts-carousel > a.post-push {
  flex: 0 0 240px !important;
  scroll-snap-align: start !important;
  min-width: 0 !important;
}
.posts-carousel .f-carousel__slide .post-img {
  aspect-ratio: 1 / 1 !important;
}
.posts-carousel .f-carousel__slide .post-title {
  font-size: 1rem !important;
  line-height: 1.3 !important;
}

/* Legal pages: constrain wysi content width and remove oversized padding */
section.block-wysi {
  max-width: 100% !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}
section.block-wysi article.wysi {
  padding: 2rem 7vw 4rem !important;
  overflow-x: auto;
  font-size: 0.82rem !important;
}
section.block-wysi article.wysi table {
  min-width: 600px;
}

/* Redirect arrow.svg from WP path to local assets */
[class*="btn"]:after {
  -webkit-mask: url('/assets/images/arrow.svg') no-repeat center / contain !important;
  mask: url('/assets/images/arrow.svg') no-repeat center / contain !important;
}

/* Footer legal menu: vertically center the hyphen separator pseudo-elements.
   vertical-align:middle aligns both the link text and the ::after glyph to the
   same optical midpoint, which inline-flex/align-items cannot achieve because
   the hyphen glyph sits lower in its em-box than Latin ascenders. */
footer#mainFooter .menu-mentions li {
  display: inline-block !important;
  vertical-align: middle !important;
}
footer#mainFooter .menu-mentions a {
  vertical-align: middle !important;
  line-height: 1 !important;
  display: inline !important;
}
footer#mainFooter .menu-mentions li::after {
  vertical-align: middle !important;
  line-height: 1 !important;
  display: inline !important;
}

/* Footer legal bar: 3-column grid so the menu-mentions is always truly
   centered regardless of the copyright text width on the left.
   Column 1 (1fr) = copyright, Column 2 (auto) = menu, Column 3 (1fr) = empty. */
footer#mainFooter .col-span-14 > div {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
}
footer#mainFooter .menu-mentions {
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
  margin: 0 !important;
  justify-self: center !important;
  gap: 0 !important;
}

/* icon font path already patched in theme-compiled.css */
