/* ================= RESET ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #efefef;
  color: #111;
}

.page {
  max-width: 1400px;
  margin: 0 auto;
}
/* ================= CATEGORY ROW ================= */
.category-row {
  display: flex;
  align-items: stretch;
  gap: 16px; /* small clean gap */
  padding-left: 20px;
  padding-bottom: 10px;
}
/* ================= CATEGORY CARD ================= */
.category-card {
  flex: 0 0 400px; /* wide banner */
  height: calc((110px * 2) + 16px); /* EXACT = 2 rows + gap */
  border-radius: 6px;
  padding: 20px;
  color: #fff;

  display: flex;
  flex-direction: column;
  justify-content: center;

  background-size: cover;
  background-position: center;
}

.category-card div {
  font-family: "Poppins", sans-serif;
  font-weight: 700;        /* 🔥 Bold */
  font-size: 28px;         /* 🔥 Exact */
  line-height: 1;          /* 100% */
  letter-spacing: 0;
  margin: 0 0 6px 0;
  text-transform: uppercase;
}

.category-card span {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 14px;
  opacity: 0.95;
}

.category-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #fff;
}

/* CATEGORY NAME */
.category-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;        /* 🔥 Bold */
  font-size: 37px;         /* 🔥 Exact */
  line-height: 1;          /* 100% */
  letter-spacing: 0;
  margin: 0 0 6px 0;
}

/* GAME COUNT */
.category-count {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 16px;
  opacity: 0.95;
}

/* ================= RAIL ================= */
.rail {
  flex: 1;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* ================= GAME GRID (🔥 KEY FIX) ================= */
.games {
  flex: 1;
  display: grid;

  grid-auto-flow: column;
  grid-template-rows: repeat(2, 110px); /* 🔥 2 rows */
  grid-auto-columns: 180px;

  gap: 16px;

  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;

  padding-right: 0;
}
.games::-webkit-scrollbar {
  display: none;
}

/* ================= GAME CARD ================= */
.game {
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-color: #eaeaea;

  width: 100%;
  height: 100%;

  flex-shrink: 0;
}


/* ================= ARROW ================= */
.arrow {
  width: 40px;
  min-width: 40px;

  border: none;
  cursor: pointer;

  color: #fff;
  font-size: 40px;
  font-weight: bold;

  border-radius: 0; /* 🔥 NO ROUND */
  margin: 0;        /* 🔥 TOUCH GRID */
}

/* ================= MOBILE ================= */
@media (max-width: 600px) {


.category-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #fff;
}

/* CATEGORY NAME */
.category-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;        /* 🔥 Bold */
  font-size: 37px;         /* 🔥 Exact */
  line-height: 1;          /* 100% */
  letter-spacing: 0;
  margin: 0 0 6px 0;
}

/* GAME COUNT */
.category-count {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 16px;
  opacity: 0.95;
}



  .rail {
    overflow: hidden;
  }

    .category-row {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }

  .category-card {
    width: 100%;
    height: 180px; /* taller banner like figma */
    padding: 16px;
    border-radius: 12px;
  }

  /* 🔥 IMPORTANT: kill 2-row layout */
  .games {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 16px) / 3);

    gap: 8px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    padding-right: 8px;
  }

  .game {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
    scroll-snap-align: start;
    border-radius: 10px;
  }

  .arrow {
    display: none;
  }

  .games::-webkit-scrollbar {
    display: none;
  }
}

.game {
  display: block;
  border-radius: 6px;
  overflow: hidden;
}

.game-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  opacity: 0;
  transform: scale(1.02);
  transition: opacity .35s ease, transform .35s ease;
}

.game-img[loading="eager"],
.game-img.complete {
  opacity: 1;
  transform: scale(1);
}

/* Fade-in when loaded */
.game-img:not([loading="eager"]) {
  opacity: 1;
  transform: scale(1);
}
.hero-banner-link {
  display: block;
  margin: 0 auto;
  padding: 10px 20px;
  text-decoration: none;
}

.hero-banner-link picture,
.hero-banner-link img {
  width: 100%;
  display: block;
}

.hero-banner-link img {
  border-radius: 24px;
  object-fit: cover;
  transition: transform .25s ease;
}

.hero-banner-link:hover img {
  transform: scale(1.01);
}

/* Tablet */
@media (max-width: 1024px) {
  .hero-banner-link {
    max-width: 100%;
    padding: 0 15px;
  }

  .hero-banner-link img {
    border-radius: 16px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .hero-banner-link {
    padding: 0 12px;
  }
}
.nostalgia-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 10px;
}

.nostalgia-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.nostalgia-icon {
  font-size: 28px;
  line-height: 1;
}

.nostalgia-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.nostalgia-section p {
  font-size: 15px;
  color: #6b6b6b;
  max-width: 700px;
}

/* BUTTON AS <a> */
.nostalgia-btn {
  padding: 10px 18px;
  background: #000000;
  color: #ffffff;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}

.nostalgia-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
@media (max-width: 600px) {
  .nostalgia-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .nostalgia-section h2 {
    font-size: 18px;
  }

  .nostalgia-section p {
    font-size: 13px;
  }

  .nostalgia-btn {
    align-self: flex-start;
  }
}
@media (max-width: 1024px) {
  .nostalgia-section {
    padding: 18px 20px;
  }

  .nostalgia-section p {
    max-width: 100%;
  }
}
.games-section {
 margin: 10px;
  padding: 10px 10px;
  background-color: #f7f7f7;
  border-radius: 10px;
  border-bottom-color: #6b6b6b;
}

.games-scroll {
  display: grid;
  grid-auto-flow: column;              /* horizontal scroll */
  grid-template-rows: repeat(2, 1fr);  /* 🔥 ALWAYS 2 rows */
  gap: 12px;

  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding-bottom: 8px;
}

.games-scroll::-webkit-scrollbar {
  display: none;
}

@media (max-width: 600px) {
  .games-scroll {
   display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 16px) / 3);
  grid-template-rows: repeat(2, 1fr);  /* 🔥 ALWAYS 2 rows */

    gap: 8px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
}
}

/* GAME CARD */
.game-card {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;

  border-radius: 8px;
  overflow: hidden;
  background: #eee;
  flex-shrink: 0;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 600px) {
  .game-card {
    width: 100%;
    height: 100%;
  }
  .games-section {
  padding: 10px 10px;
  overflow: hidden;
}
}
@media (max-width: 1024px) {
  .game-card {
    width: 100%;
    height: 100%;
  }
    .games-section {
  padding: 10px 10px;
  overflow: hidden;
}
}
@media (min-width: 1025px) {
  .game-card {
    width: 150px;
    height: 150px;
  }
}
.tags-section {
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  margin: 10px;
}

/* title spacing */
.tags-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* wrapper */
.tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* tags flow */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* 🔥 EXACT pill sizing */
.tag-pill {
  padding: 10px 20px;
  min-height: 42px;
  border-radius: 999px;
  background-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
}

/* All tags pill */
.all-tags-pill {
  background: #000;
  color: #fff;
  font-weight: 600;
}

/* mobile */
@media (max-width: 600px) {
  .tag-pill {
    padding: 8px 16px;
    min-height: 38px;
    font-size: 13px;
    background-color: transparent;
  }
}
/* ================= HEADER ================= */
.site-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #ddd;
  position: relative;
  z-index: 1000;
  margin-bottom: 10px;
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ================= LOGO ================= */
.logo img {
  height: 40px;
  display: block;
}

/* ================= DESKTOP NAV ================= */
.nav-menu {
  display: flex;
  gap: 40px;
}

.nav-menu a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: #0057ff;
}

.nav-menu a.active {
  color: #0057ff;
}


/* ================= HAMBURGER BUTTON ================= */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle img {
  width: 26px;
  height: 26px;
  display: block;
}


/* ================= MOBILE MENU ================= */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #ddd;
}

.mobile-menu a {
  padding: 14px 20px;
  text-decoration: none;
  font-weight: 600;
  color: #222;
  border-bottom: 1px solid #eee;
}

.mobile-menu a:hover {
  background: #f5f5f5;
}

/* ================= TABLET ================= */
@media (max-width: 1024px) {
  .nav-menu {
    gap: 28px;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  .nav-menu {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-menu.active {
    display: flex;
  }

  .logo img {
    height: 30px;
  }
}
/* ================= FOOTER BASE ================= */
.site-footer {
  background: #000;
  color: #aaa;
  border-top: 1px solid #111;
  font-size: 14px;
}

/* ================= CONTAINER ================= */
.footer-container {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr;
  gap: 60px;
}

/* ================= LOGO ================= */
.footer-logo img {
  height: 40px;
  margin-bottom: 20px;
}

/* ================= HEADINGS ================= */
.footer-col h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

/* ================= TEXT ================= */
.footer-left p {
  line-height: 1.8;
  color: #888;
}

/* ================= LISTS ================= */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
  color: #888;
  line-height: 1.7;
}

/* Blue bullet style */
.footer-col ul li::before {
  content: "•";
  color: #00aaff;
  margin-right: 8px;
}

/* ================= LINKS ================= */
.footer-right a {
  color: #aaa;
  text-decoration: none;
  transition: color .3s ease;
}

.footer-right a:hover {
  color: #00aaff;
}

/* ================= BOTTOM STRIP ================= */
.footer-bottom {
  text-align: center;
  padding: 18px;
  border-top: 2px solid #989898;
  color: #777;
  font-size: 13px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-left p {
    max-width: 600px;
    margin: auto;
  }

  .footer-col ul li::before {
    display: none;
  }
}
/* ================= MOBILE FIX ================= */
@media (max-width: 768px) {

  .footer-container {
    grid-template-columns: 1fr;
    gap: 35px;
    text-align: left; /* 🔥 default left alignment */
  }

  /* Logo center */
  .footer-logo {
    text-align: center;
  }

  .footer-logo img {
    margin: 0 auto 20px;
    display: block;
  }

  /* Description left */
  .footer-left p {
    text-align: left;
  }

  /* Disclaimer heading center */
  .footer-center h3 {
    text-align: center;
  }

  /* Disclaimer list left */
  .footer-center ul {
    text-align: left;
  }

  .footer-center ul li {
    padding-left: 0;
  }
.footer-right h3 {
    text-align: center;
  }
  /* About links left */
   .footer-right ul {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 🔥 2 columns */
    gap: 12px 20px;
    text-align: left;
  }

  .footer-right ul li {
    margin-bottom: 0;
  }
  /* Disclaimer bullets */
  .footer-center ul li::before,
  .footer-right ul li::before {
    content: "•";
    color: #00aaff;
    margin-right: 8px;
    display: inline-block;
  }

  .footer-center ul li,
  .footer-right ul li {
    position: relative;
    padding-left: 14px;
  }

}




/* ======================================================
   GLOBAL NO HORIZONTAL SCROLL (SITE-WIDE FIX)
   ====================================================== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Prevent any child from forcing width */
*,
*::before,
*::after {
  box-sizing: border-box;
  max-width: 100%;
}

/* Media elements safety */
img, video, iframe, canvas, svg {
  max-width: 100%;
  height: auto;
  display: block;
}







@media (max-width: 768px) {
  .category-row {
    gap: 12px;
  }

  .category-card {
    flex: 0 0 200px;
    height: calc((90px * 2) + 12px);
  }

  .games {
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
  }

  .arrow {
    width: 42px;
    font-size: 24px;
  }
}

/* ======================================================
   FLEX / GRID SAFETY
   ====================================================== */

/* Prevent flex children from overflowing */
.category-row,
.rail,
.tags-wrapper,
.tags-container{
  max-width: 100%;
  overflow-x: hidden;
}


/* ================= NEW BADGE ================= */
.game {
  position: relative; /* required for badge */
}

/* badge container */
.new-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  pointer-events: none;
  z-index: 5;
}

/* svg image */
.new-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

