/* The few rules Tailwind utilities cannot express. Shared by every page. */
:root {
  --nav-max: 1303px;
  --page-gutter: 1rem;
}

@media (min-width: 640px) {
  :root {
    --page-gutter: 2rem;
  }
}

/* Same outer box as the navbar pill, including its side inset. */
.nav-frame {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--nav-max));
  margin-inline: auto;
}

/* Scrollers reach the screen edges on small screens, then sit inside the navbar frame. */
.nav-bleed-x {
  width: calc(100% + (var(--page-gutter) * 2));
  margin-inline: calc(var(--page-gutter) * -1);
  padding-inline: var(--page-gutter);
}

@media (min-width: 1024px) {
  .nav-bleed-x {
    width: 100%;
    margin-inline: 0;
    padding-inline: 0;
  }
}

html {
  scroll-behavior: smooth;
}

/* `clip` contains the decorative glows without making the page a scroll
   container, which would break the sticky header. */
body {
  overflow-x: clip;
}

summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

details[open] .faq-chevron {
  transform: rotate(180deg);
}

/* Header gets a solid glass backing once it floats over page content. */
#site-header.is-scrolled > nav {
  background-color: rgba(30, 30, 30, 0.85);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.gamesSwiper .swiper-slide {
  width: 220px;
}

@media (min-width: 1024px) {
  .gamesSwiper .swiper-slide {
    width: 273px;
  }
}
