:root{
  --cg-home-container: min(calc(100% - 40px), var(--cg-container));
  --cg-top-title-size: 24px;
  --cg-top-gap: 12px;
  --cg-top-large-size: 360px;
  --cg-top-small-size: 174px;
  --cg-top-radius: 20px;
  --cg-top-border: var(--cg-link-active);
  --cg-top-overlay: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.18), transparent);

  --cg-rail-title-size: 24px;
  --cg-rail-gap: 12px;
  --cg-rail-card-size: calc((100vw - 40px - (7 * 12px)) / 8);
  --cg-rail-radius: 20px;
  --cg-rail-border: var(--cg-link-active);
  --cg-rail-overlay: linear-gradient(to top, rgba(0,0,0,.84), rgba(0,0,0,.16), transparent);

  --cg-cat-card-bg: var(--cg-surface-card);
  --cg-cat-card-bg-2: var(--cg-surface-card-2);
  --cg-cat-icon: var(--cg-icon-color);
  --cg-cat-intro-width: 520px;
  --cg-cat-card-width: 205px;
  --cg-cat-card-height: 136px;
  --cg-cat-grid-gap: 12px;
  --cg-cat-intro-title-size: 28px;
  --cg-cat-intro-text-size: 15px;
  --cg-cat-link-size: 14px;
  --cg-cat-name-size: 17px;
  --cg-cat-icon-size: 36px;
}

.cg-home-page{
  display: block;
  width: 100%;
}

.cg-home-page > section{
  display: block;
  width: var(--cg-home-container);
  margin-left: auto;
  margin-right: auto;
  clear: both;
  float: none;
  box-sizing: border-box;
}

/* Welcome */
.cg-welcome-bar{
  margin-top: 20px;
  margin-bottom: 24px;
}

.cg-welcome-bar__inner{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  min-height: 162px;
  padding: 28px 34px;
  border-radius: var(--cg-radius-xl);
  background: linear-gradient(90deg, var(--cg-surface-card) 0%, var(--cg-surface-card-2) 100%);
  box-shadow: var(--cg-shadow-soft);
}

.cg-welcome-bar__brand{
  flex: 0 0 auto;
  min-width: 255px;
  display: flex;
  justify-content: center;
}

.cg-welcome-bar__brand-wrap{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-decoration: none;
}

.cg-welcome-bar__logo{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.cg-welcome-bar__logo .custom-logo-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cg-welcome-bar__logo .custom-logo{
  display: block;
  width: 100%;
  object-fit: contain;
}

.cg-welcome-bar__logo-fallback{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--cg-link-active) 14%, transparent);
  color: var(--cg-text-main);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.cg-welcome-bar__brand-text{
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  line-height: 0.98;
}

.cg-welcome-bar__brand-line{
  color: var(--cg-text-main);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.cg-welcome-bar__brand-line--strong{
  margin-top: 2px;
}

.cg-welcome-bar__features{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px 34px;
  min-width: 0;
}

.cg-welcome-item{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.cg-welcome-item__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  color: var(--cg-link-active);
  opacity: 1;
}

.cg-welcome-item__icon svg{
  width: 30px;
  height: 30px;
  display: block;
  fill: currentColor;
}

.cg-welcome-item__icon--mask{
  background-color: var(--cg-link-active);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.cg-welcome-item__icon--gamer{
  -webkit-mask-image: url('../img/gamer.svg');
  mask-image: url('../img/gamer.svg');
}

.cg-welcome-item__icon--install{
  -webkit-mask-image: url('../img/install.svg');
  mask-image: url('../img/install.svg');
}

.cg-welcome-item__icon--responsive{
  -webkit-mask-image: url('../img/responsive.svg');
  mask-image: url('../img/responsive.svg');
}

.cg-welcome-item__icon--free{
  -webkit-mask-image: url('../img/free.svg');
  mask-image: url('../img/free.svg');
}

.cg-welcome-item__text{
  color: var(--cg-text-soft);
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Common arrows */
.cg-top-picks__arrow,
.cg-new-games__arrow,
.cg-popular-games__arrow,
.cg-browse-categories__arrow,
.cg-category-row__arrow{
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52px;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: var(--cg-text-main);
  cursor: pointer;
  z-index: 9;
  opacity: 0;
  transition: opacity .22s ease;
}

.cg-top-picks__wrap:hover .cg-top-picks__arrow,
.cg-new-games__wrap:hover .cg-new-games__arrow,
.cg-popular-games__wrap:hover .cg-popular-games__arrow,
.cg-browse-categories__rail:hover .cg-browse-categories__arrow,
.cg-category-row__wrap:hover .cg-category-row__arrow{
  opacity: 1;
}

.cg-top-picks__arrow--left,
.cg-new-games__arrow--left,
.cg-popular-games__arrow--left,
.cg-browse-categories__arrow--left,
.cg-category-row__arrow--left{
  left: 0;
}

.cg-top-picks__arrow--right,
.cg-new-games__arrow--right,
.cg-popular-games__arrow--right,
.cg-browse-categories__arrow--right,
.cg-category-row__arrow--right{
  right: 0;
}

.cg-top-picks__arrow::before,
.cg-new-games__arrow::before,
.cg-popular-games__arrow::before,
.cg-browse-categories__arrow::before,
.cg-category-row__arrow::before{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52px;
  opacity: .16;
  pointer-events: none;
}

.cg-top-picks__arrow--left::before,
.cg-new-games__arrow--left::before,
.cg-popular-games__arrow--left::before,
.cg-browse-categories__arrow--left::before,
.cg-category-row__arrow--left::before{
  left: 0;
  background: linear-gradient(to right, rgba(12,13,20,.16) 0%, rgba(12,13,20,.06) 42%, rgba(12,13,20,.01) 72%, rgba(12,13,20,0) 100%);
}

.cg-top-picks__arrow--right::before,
.cg-new-games__arrow--right::before,
.cg-popular-games__arrow--right::before,
.cg-browse-categories__arrow--right::before,
.cg-category-row__arrow--right::before{
  right: 0;
  background: linear-gradient(to left, rgba(12,13,20,.16) 0%, rgba(12,13,20,.06) 42%, rgba(12,13,20,.01) 72%, rgba(12,13,20,0) 100%);
}

.cg-top-picks__arrow span,
.cg-new-games__arrow span,
.cg-popular-games__arrow span,
.cg-browse-categories__arrow span,
.cg-category-row__arrow span{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 90px;
  line-height: .8;
  font-weight: 300;
  z-index: 2;
  color: var(--cg-text-main);
  text-shadow: 0 8px 18px rgba(0,0,0,.16);
  opacity: .95;
  transition: transform .18s ease, text-shadow .18s ease, opacity .18s ease;
}

.cg-top-picks__arrow--left span,
.cg-new-games__arrow--left span,
.cg-popular-games__arrow--left span,
.cg-browse-categories__arrow--left span,
.cg-category-row__arrow--left span{
  left: 8px;
}

.cg-top-picks__arrow--right span,
.cg-new-games__arrow--right span,
.cg-popular-games__arrow--right span,
.cg-browse-categories__arrow--right span,
.cg-category-row__arrow--right span{
  right: 8px;
}

/* Top Picks */
.cg-top-picks{
  margin-bottom: 34px;
}

.cg-top-picks__head{
  margin-bottom: 14px;
}

.cg-top-picks__title{
  font-size: var(--cg-top-title-size);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cg-text-main);
}

.cg-top-picks__tablet,
.cg-top-picks__mobile{
  display: none;
}

.cg-top-picks__wrap{
  position: relative;
}

.cg-top-picks__viewport{
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding-top: 10px;
  padding-bottom: 12px;
}

.cg-top-picks__viewport::-webkit-scrollbar{
  display: none;
}

.cg-top-picks__track{
  display: flex;
  gap: var(--cg-top-gap);
  align-items: stretch;
  width: max-content;
}

.cg-top-picks__group{
  display: grid;
  grid-template-columns:
    var(--cg-top-large-size)
    calc((var(--cg-top-small-size) * 3) + (var(--cg-top-gap) * 2))
    var(--cg-top-large-size);
  gap: var(--cg-top-gap);
  align-items: stretch;
  flex: 0 0 auto;
}

.cg-top-picks__small-grid{
  display: grid;
  grid-template-columns: repeat(3, var(--cg-top-small-size));
  grid-template-rows: repeat(2, var(--cg-top-small-size));
  gap: var(--cg-top-gap);
}

.cg-top-card{
  position: relative;
  overflow: hidden;
  border-radius: var(--cg-top-radius);
  background: var(--cg-surface-card);
  border: 2px solid transparent;
  transition: transform .18s ease, border-color .18s ease, box-shadow .22s ease, background .22s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.cg-top-card:hover{
  transform: scale(1.018);
  border-color: var(--cg-top-border);
  z-index: 4;
  box-shadow: 0 14px 32px rgba(0,0,0,.30);
}

.cg-top-card__link{
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.cg-top-card__media{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--cg-surface-card-2);
}

.cg-top-card__media img,
.cg-top-card__placeholder{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cg-top-card__placeholder{
  background: linear-gradient(135deg, var(--cg-surface-card) 0%, var(--cg-surface-card-2) 100%);
}

.cg-top-card__overlay{
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 12px 12px;
  background: var(--cg-top-overlay);
  opacity: 0;
  transition: opacity .18s ease;
}

.cg-top-card:hover .cg-top-card__overlay{
  opacity: 1;
}

.cg-top-card__title{
  margin: 0;
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Shared game cards */
.cg-game-card{
  width: var(--cg-rail-card-size);
  position: relative;
  overflow: hidden;
  border-radius: var(--cg-rail-radius);
  background: var(--cg-surface-card);
  border: 2px solid transparent;
  transition: transform .18s ease, border-color .18s ease, box-shadow .22s ease, background .22s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  flex: 0 0 auto;
}

.cg-game-card:hover{
  transform: scale(1.018);
  border-color: var(--cg-rail-border);
  z-index: 4;
  box-shadow: 0 14px 32px rgba(0,0,0,.30);
}

.cg-game-card__link{
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.cg-game-card__media{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--cg-surface-card-2);
}

.cg-game-card__media img,
.cg-game-card__placeholder{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cg-game-card__placeholder{
  background: linear-gradient(135deg, var(--cg-surface-card) 0%, var(--cg-surface-card-2) 100%);
}

.cg-game-card__badge{
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  border: 1px solid rgba(0,0,0,.08);
}

.cg-game-card__badge--new{
  background: color-mix(in srgb, var(--cg-link-active) 88%, transparent);
  color: #fff;
}

.cg-game-card__badge--top{
  background: #f1c75b;
  color: #33260a;
}

.cg-game-card__badge--updated{
  background: rgba(87,205,159,.92);
  color: #0d2b20;
}

.cg-game-card__overlay{
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 12px 12px;
  background: var(--cg-rail-overlay);
  opacity: 0;
  transition: opacity .18s ease;
}

.cg-game-card:hover .cg-game-card__overlay{
  opacity: 1;
}

.cg-game-card__title{
  margin: 0;
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* New / Popular / Category Rows */
.cg-new-games,
.cg-popular-games,
.cg-category-row{
  margin-bottom: 34px;
}

.cg-new-games__head,
.cg-popular-games__head,
.cg-category-row__head{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.cg-new-games__title,
.cg-popular-games__title,
.cg-category-row__title{
  font-size: var(--cg-rail-title-size);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cg-text-main);
}

.cg-new-games__more,
.cg-popular-games__more,
.cg-category-row__more{
  color: var(--cg-link-hover);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: color .18s ease;
}

.cg-new-games__more:hover,
.cg-popular-games__more:hover,
.cg-category-row__more:hover{
  color: var(--cg-link-active);
}

.cg-new-games__wrap,
.cg-popular-games__wrap,
.cg-category-row__wrap{
  position: relative;
}

.cg-new-games__viewport,
.cg-popular-games__viewport,
.cg-category-row__viewport{
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding-top: 10px;
  padding-bottom: 12px;
}

.cg-new-games__viewport::-webkit-scrollbar,
.cg-popular-games__viewport::-webkit-scrollbar,
.cg-category-row__viewport::-webkit-scrollbar{
  display: none;
}

.cg-new-games__track,
.cg-popular-games__track,
.cg-category-row__track{
  display: flex;
  gap: var(--cg-rail-gap);
  align-items: stretch;
  width: max-content;
}

.cg-popular-games__group{
  display: flex;
  flex-direction: column;
  gap: var(--cg-rail-gap);
  flex: 0 0 auto;
}

.cg-popular-games__row{
  display: flex;
  gap: var(--cg-rail-gap);
  align-items: stretch;
}

/* Browse Categories */
.cg-browse-categories{
  margin-bottom: 40px;
}

.cg-browse-categories__wrap{
  display: grid;
  grid-template-columns: var(--cg-cat-intro-width) minmax(0, 1fr);
  gap: var(--cg-cat-grid-gap);
  align-items: stretch;
}

.cg-browse-categories__intro-card{
  height: calc((var(--cg-cat-card-height) * 2) + var(--cg-cat-grid-gap) - 20px);
  padding: 22px 24px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(28,30,52,.98) 0%, rgba(33,35,58,.94) 100%);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
}

.cg-browse-categories__intro-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.cg-browse-categories__intro-title{
  font-size: var(--cg-cat-intro-title-size);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.04em;
  max-width: 390px;
}

.cg-browse-categories__intro-icon{
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.cg-browse-categories__intro-icon svg{
  width: 38px;
  height: 38px;
  fill: currentColor;
}

.cg-browse-categories__intro-text{
  margin: 0 0 14px;
  color: rgba(255,255,255,.78);
  font-size: var(--cg-cat-intro-text-size);
  line-height: 1.42;
  font-weight: 600;
  max-width: 430px;
}

.cg-browse-categories__intro-link{
  color: #8f88ff;
  font-size: var(--cg-cat-link-size);
  font-weight: 800;
  text-decoration: none;
  transition: color .18s ease;
  margin-top: auto;
}

.cg-browse-categories__intro-link:hover{
  color: #6842ff;
}

.cg-browse-categories__rail{
  position: relative;
  min-width: 0;
}

.cg-browse-categories__viewport{
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding-top: 2px;
  padding-bottom: 2px;
}

.cg-browse-categories__viewport::-webkit-scrollbar{
  display: none;
}

.cg-browse-categories__track{
  display: flex;
  gap: var(--cg-cat-grid-gap);
  align-items: stretch;
  width: max-content;
}

.cg-browse-categories__group{
  display: flex;
  flex-direction: column;
  gap: var(--cg-cat-grid-gap);
  flex: 0 0 auto;
}

.cg-browse-categories__row{
  display: flex;
  gap: var(--cg-cat-grid-gap);
  align-items: stretch;
}

.cg-category-card{
  width: var(--cg-cat-card-width);
  min-height: var(--cg-cat-card-height);
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--cg-cat-card-bg) 0%, var(--cg-cat-card-bg-2) 100%);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease;
}

.cg-category-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.24);
}

.cg-category-card__icon{
  width: var(--cg-cat-icon-size);
  height: var(--cg-cat-icon-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cg-cat-icon);
  margin-bottom: 10px;
}

.cg-category-card__icon svg{
  width: var(--cg-cat-icon-size);
  height: var(--cg-cat-icon-size);
  fill: currentColor;
}

.cg-category-card__name{
  color: #f5f7ff;
  font-size: var(--cg-cat-name-size);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 0;
}


/* SEO + FAQ */
.cg-home-seo-faq{
  margin-bottom: 44px;
}

.cg-home-seo-faq__grid{
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 12px;
  align-items: stretch;
}

.cg-home-seo-faq__content,
.cg-home-seo-faq__faq{
  display: flex;
}

.cg-home-seo-faq__card{
  width: 100%;
  height: 100%;
  padding: 24px 24px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--cg-surface-card) 0%, var(--cg-surface-card-2) 100%);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
}

.cg-home-seo-faq__title{
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cg-text-main);
}

.cg-home-seo-faq__seo-collapse{
  position: relative;
  overflow: hidden;
  transition: max-height .28s ease;
}

.cg-home-seo-faq__seo-collapse.is-collapsed{
  max-height: 220px;
}

.cg-home-seo-faq__seo-collapse.is-expanded{
  max-height: 1200px;
}

.cg-home-seo-faq__seo-collapse.is-collapsed::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: linear-gradient(to bottom, rgba(23,24,42,0), color-mix(in srgb, var(--cg-surface-card-2) 98%, transparent));
  pointer-events: none;
}

.cg-home-seo-faq__text{
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--cg-text-soft);
}

.cg-home-seo-faq__text:last-child{
  margin-bottom: 0;
}

.cg-home-seo-faq__toggle{
  margin-top: 14px;
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: var(--cg-link-hover);
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  transition: color .18s ease, opacity .18s ease;
}

.cg-home-seo-faq__toggle:hover{
  color: var(--cg-link-active);
}

.cg-home-seo-faq__toggle-label-less{
  display: none;
}

.cg-home-seo-faq__toggle[aria-expanded="true"] .cg-home-seo-faq__toggle-label-more{
  display: none;
}

.cg-home-seo-faq__toggle[aria-expanded="true"] .cg-home-seo-faq__toggle-label-less{
  display: inline;
}

.cg-faq-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}

.cg-faq-item{
  border-radius: 14px;
  background: color-mix(in srgb, var(--cg-text-main) 3%, transparent);
  border: 1px solid color-mix(in srgb, var(--cg-text-main) 5%, transparent);
  overflow: hidden;
}

.cg-faq-item__question{
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--cg-text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  text-align: left;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 800;
}

.cg-faq-item__icon{
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.cg-faq-item__icon::before,
.cg-faq-item__icon::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: color-mix(in srgb, var(--cg-link-hover) 85%, transparent);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  transition: transform .2s ease, opacity .2s ease;
}

.cg-faq-item__icon::after{
  transform: translate(-50%, -50%) rotate(90deg);
}

.cg-faq-item.is-open .cg-faq-item__icon::after{
  opacity: 0;
}

.cg-faq-item__answer{
  display: none;
  padding: 0 18px 16px;
}

.cg-faq-item.is-open .cg-faq-item__answer{
  display: block;
}

.cg-faq-item__answer p{
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--cg-text-soft);
}

/* Home pre-footer */
.cg-home-prefooter{
  margin-bottom: 34px;
  padding: 56px 0 4px;
}

.cg-home-prefooter__inner{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.cg-home-prefooter__btn{
  min-width: 252px;
  height: 64px;
  padding: 0 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
  cursor: pointer;
}

.cg-home-prefooter__btn:hover{
  transform: translateY(-1px);
}

.cg-home-prefooter__btn-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  flex: 0 0 auto;
}

.cg-home-prefooter__btn-text{
  display: inline-block;
}

.cg-home-prefooter__btn--random{
  background: transparent;
  color: var(--cg-btn-ghost-text);
  border: 1.5px solid var(--cg-btn-ghost-border);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.cg-home-prefooter__btn--random:hover{
  color: var(--cg-text-soft);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.cg-home-prefooter__btn--top{
  border: 0;
  color: var(--cg-btn-primary-text);
  background: linear-gradient(90deg, var(--cg-link-active) 0%, color-mix(in srgb, var(--cg-link-active) 82%, white) 100%);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--cg-link-active) 28%, transparent);
}

.cg-home-prefooter__btn--top:hover{
  box-shadow: 0 16px 32px color-mix(in srgb, var(--cg-link-active) 34%, transparent);
}

/* -------------------------------------------------------------------------- */
/* GeneratePress overrides - Home only                                        */
/* -------------------------------------------------------------------------- */
.cg-home-page .cg-top-picks__arrow:hover,
.cg-home-page .cg-top-picks__arrow:focus,
.cg-home-page .cg-new-games__arrow:hover,
.cg-home-page .cg-new-games__arrow:focus,
.cg-home-page .cg-popular-games__arrow:hover,
.cg-home-page .cg-popular-games__arrow:focus,
.cg-home-page .cg-browse-categories__arrow:hover,
.cg-home-page .cg-browse-categories__arrow:focus,
.cg-home-page .cg-category-row__arrow:hover,
.cg-home-page .cg-category-row__arrow:focus{
  background: transparent !important;
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: var(--cg-text-main) !important;
}

.cg-home-page .cg-top-picks__arrow,
.cg-home-page .cg-new-games__arrow,
.cg-home-page .cg-popular-games__arrow,
.cg-home-page .cg-browse-categories__arrow,
.cg-home-page .cg-category-row__arrow{
  overflow: visible;
}

.cg-home-page .cg-top-picks__arrow::after,
.cg-home-page .cg-new-games__arrow::after,
.cg-home-page .cg-popular-games__arrow::after,
.cg-home-page .cg-browse-categories__arrow::after,
.cg-home-page .cg-category-row__arrow::after{
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}

.cg-home-page .cg-top-picks__arrow--left::after,
.cg-home-page .cg-new-games__arrow--left::after,
.cg-home-page .cg-popular-games__arrow--left::after,
.cg-home-page .cg-browse-categories__arrow--left::after,
.cg-home-page .cg-category-row__arrow--left::after{
  left: -8px;
  width: 34px;
  background: linear-gradient(to right, rgba(0,0,0,.82), rgba(0,0,0,.52), rgba(0,0,0,.10), transparent);
  transform: translateX(-5px);
  filter: blur(22px);
}

.cg-home-page .cg-top-picks__arrow--right::after,
.cg-home-page .cg-new-games__arrow--right::after,
.cg-home-page .cg-popular-games__arrow--right::after,
.cg-home-page .cg-browse-categories__arrow--right::after,
.cg-home-page .cg-category-row__arrow--right::after{
  right: -8px;
  width: 34px;
  background: linear-gradient(to left, rgba(0,0,0,.82), rgba(0,0,0,.52), rgba(0,0,0,.10), transparent);
  transform: translateX(5px);
  filter: blur(22px);
}

.cg-home-page .cg-top-picks__arrow:hover::after,
.cg-home-page .cg-top-picks__arrow:focus::after,
.cg-home-page .cg-new-games__arrow:hover::after,
.cg-home-page .cg-new-games__arrow:focus::after,
.cg-home-page .cg-popular-games__arrow:hover::after,
.cg-home-page .cg-popular-games__arrow:focus::after,
.cg-home-page .cg-browse-categories__arrow:hover::after,
.cg-home-page .cg-browse-categories__arrow:focus::after,
.cg-home-page .cg-category-row__arrow:hover::after,
.cg-home-page .cg-category-row__arrow:focus::after{
  opacity: 1;
  transform: translateX(0);
}

.cg-home-page .cg-top-picks__arrow:hover span,
.cg-home-page .cg-top-picks__arrow:focus span,
.cg-home-page .cg-new-games__arrow:hover span,
.cg-home-page .cg-new-games__arrow:focus span,
.cg-home-page .cg-popular-games__arrow:hover span,
.cg-home-page .cg-popular-games__arrow:focus span,
.cg-home-page .cg-browse-categories__arrow:hover span,
.cg-home-page .cg-browse-categories__arrow:focus span,
.cg-home-page .cg-category-row__arrow:hover span,
.cg-home-page .cg-category-row__arrow:focus span{
  transform: translateY(-50%) scale(1.06);
  text-shadow:
    0 10px 22px rgba(0,0,0,.38),
    0 0 10px rgba(0,0,0,.18);
  opacity: 1;
}

.cg-home-page .cg-home-seo-faq__toggle,
.cg-home-page .cg-home-seo-faq__toggle:visited{
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--cg-link-hover) !important;
}

.cg-home-page .cg-home-seo-faq__toggle:hover,
.cg-home-page .cg-home-seo-faq__toggle:focus,
.cg-home-page .cg-home-seo-faq__toggle:active{
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--cg-link-active) !important;
  outline: none !important;
  opacity: 1;
}

/* Responsive */
@media (max-width: 1480px){
  .cg-welcome-bar__inner{
    gap: 26px;
    padding: 24px 28px;
  }

  .cg-welcome-bar__brand{
    min-width: 230px;
  }

  .cg-welcome-bar__brand-line{
    font-size: 24px;
  }

  .cg-welcome-bar__features{
    gap: 20px 26px;
  }

  .cg-welcome-item__text{
    font-size: 15px;
  }

  :root{
    --cg-cat-intro-width: 470px;
    --cg-cat-card-width: 188px;
    --cg-cat-card-height: 128px;
    --cg-cat-intro-title-size: 25px;
    --cg-cat-intro-text-size: 14px;
    --cg-cat-name-size: 16px;
    --cg-cat-icon-size: 32px;
  }
}

@media (max-width: 1180px){
  :root{
    --cg-home-container: min(calc(100% - 18px), var(--cg-container));
    --cg-cat-intro-title-size: 26px;
    --cg-cat-intro-text-size: 14px;
    --cg-cat-card-width: 188px;
    --cg-cat-card-height: 124px;
    --cg-cat-name-size: 16px;
    --cg-cat-icon-size: 31px;
  }

  .cg-welcome-bar__inner{
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto;
    gap: 22px;
  }

  .cg-welcome-bar__brand{
    min-width: 0;
    width: 100%;
    justify-content: center;
  }

  .cg-welcome-bar__features{
    width: 100%;
    justify-content: center;
    gap: 18px 24px;
  }

  .cg-browse-categories__wrap,
  .cg-home-seo-faq__grid{
    grid-template-columns: 1fr;
  }

  .cg-browse-categories__intro-card{
    height: auto;
    min-height: 0;
  }

  .cg-home-prefooter{
    padding-top: 44px;
  }

  .cg-home-prefooter__inner{
    gap: 18px;
  }

  .cg-home-prefooter__btn{
    min-width: 230px;
    height: 60px;
    padding: 0 24px;
    font-size: 17px;
  }

  .cg-browse-categories__intro-text{
    max-width: none;
  }
}

@media (max-width: 1024px){
  .cg-top-picks__desktop{
    display: none;
  }

  .cg-top-picks__tablet{
    display: block;
  }

  .cg-top-picks__tablet-group{
    margin-bottom: 10px;
  }

  .cg-top-picks__tablet-large-row{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 10px;
  }

  .cg-top-picks__tablet-small-row{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 10px;
  }

  .cg-top-card__title,
  .cg-game-card__title{
    font-size: 12px;
  }

  .cg-game-card{
    width: calc((100vw - 24px - (5 * 10px)) / 6);
  }

  .cg-new-games__arrow,
  .cg-popular-games__arrow,
  .cg-category-row__arrow{
    display: none;
  }
}

@media (max-width: 767px){
  :root{
    --cg-home-container: min(calc(100% - 16px), var(--cg-container));
    --cg-cat-intro-title-size: 21px;
    --cg-cat-intro-text-size: 14px;
    --cg-cat-link-size: 14px;
    --cg-cat-card-width: 150px;
    --cg-cat-card-height: 106px;
    --cg-cat-name-size: 14px;
    --cg-cat-icon-size: 28px;
  }

  .cg-welcome-bar{
    margin-top: 14px;
    margin-bottom: 18px;
  }

  .cg-welcome-bar__inner{
    min-height: 0;
    padding: 16px 18px;
    border-radius: 22px;
    gap: 0;
  }

  .cg-welcome-bar__brand{
    width: 100%;
    min-width: 0;
    display: flex;
    justify-content: center;
  }

  .cg-welcome-bar__brand-wrap{
    gap: 12px;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .cg-welcome-bar__logo .custom-logo{
    max-width: 150px;
    max-height: 150px;
  }

  .cg-welcome-bar__logo-fallback{
    min-width: 46px;
    min-height: 46px;
    border-radius: 12px;
    font-size: 10px;
  }

  .cg-welcome-bar__brand-line{
    font-size: 18px;
    line-height: 1;
  }

  .cg-welcome-bar__brand-line--strong{
    margin-top: 1px;
  }

  .cg-welcome-bar__features{
    display: none;
  }

  .cg-top-picks__desktop,
  .cg-top-picks__tablet{
    display: none;
  }

  .cg-top-picks__mobile{
    display: block;
  }

  .cg-top-picks__mobile-group{
    margin-bottom: 10px;
  }

  .cg-top-picks__mobile-group > .cg-top-card--large{
    margin-bottom: 8px;
  }

  .cg-top-picks__mobile-small-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .cg-top-card,
  .cg-game-card{
    border-radius: 16px;
  }

  .cg-top-card:hover,
  .cg-game-card:hover{
    transform: none;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(0,0,0,.22);
  }

  .cg-top-card__overlay,
  .cg-game-card__overlay{
    display: none;
  }

  .cg-new-games__head,
  .cg-popular-games__head,
  .cg-category-row__head{
    gap: 10px;
    margin-bottom: 12px;
  }

  .cg-new-games__title,
  .cg-popular-games__title,
  .cg-category-row__title{
    font-size: 21px;
  }

  .cg-new-games__more,
  .cg-popular-games__more,
  .cg-category-row__more{
    font-size: 13px;
  }

  .cg-game-card{
    width: calc((100vw - 16px - (3 * 8px)) / 4);
  }

  .cg-new-games__arrow,
  .cg-popular-games__arrow,
  .cg-browse-categories__arrow,
  .cg-category-row__arrow{
    display: none;
  }

  .cg-new-games__viewport,
  .cg-popular-games__viewport,
  .cg-category-row__viewport{
    padding-top: 6px;
    padding-bottom: 8px;
  }

  .cg-browse-categories{
    margin-bottom: 28px;
  }

  .cg-browse-categories__wrap{
    gap: 10px;
  }

  .cg-browse-categories__intro-card,
  .cg-home-seo-faq__card{
    padding: 18px 18px 16px;
    border-radius: 16px;
    height: auto;
  }

  .cg-browse-categories__intro-icon{
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  .cg-browse-categories__intro-icon svg{
    width: 34px;
    height: 34px;
  }

  .cg-browse-categories__track,
  .cg-browse-categories__group,
  .cg-browse-categories__row{
    gap: 8px;
  }

  .cg-category-card{
    padding: 14px 14px 13px;
    border-radius: 14px;
  }

  .cg-category-card__icon{
    margin-bottom: 6px;
  }

  .cg-home-seo-faq{
    margin-bottom: 28px;
  }

  .cg-home-seo-faq__grid{
    gap: 10px;
  }

  .cg-home-seo-faq__title{
    font-size: 21px;
    margin-bottom: 12px;
  }

  .cg-home-seo-faq__text{
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 10px;
  }

  .cg-home-seo-faq__seo-collapse.is-collapsed{
    max-height: 190px;
  }

  .cg-home-seo-faq__toggle{
    margin-top: 12px;
    font-size: 13px;
  }

  .cg-faq-item{
    border-radius: 12px;
  }

  .cg-faq-item__question{
    padding: 14px 14px;
    font-size: 14px;
  }

  .cg-faq-item__answer{
    padding: 0 14px 14px;
  }

  .cg-faq-item__answer p{
    font-size: 13px;
  }

  .cg-home-prefooter{
    margin-bottom: 24px;
    padding-top: 28px;
  }

  .cg-home-prefooter__inner{
    flex-direction: column;
    gap: 14px;
  }

  .cg-home-prefooter__btn{
    width: 100%;
    min-width: 0;
    height: 54px;
    padding: 0 18px;
    font-size: 16px;
    gap: 12px;
  }

  .cg-home-prefooter__btn-icon{
    font-size: 20px;
  }
}

@media (max-width: 480px){
  .cg-welcome-bar__inner{
    padding: 14px 14px;
  }

  .cg-welcome-bar__brand-wrap{
    gap: 10px;
  }

  .cg-welcome-bar__logo .custom-logo{
    max-width: 100px;
    max-height: 100px;
  }

  .cg-welcome-bar__logo-fallback{
    min-width: 42px;
    min-height: 42px;
  }

  .cg-welcome-bar__brand-line{
    font-size: 16px;
  }

  .cg-game-card{
    width: calc((100vw - 16px - (3 * 8px)) / 4);
  }

  :root{
    --cg-cat-card-width: 138px;
    --cg-cat-card-height: 100px;
    --cg-cat-name-size: 13px;
    --cg-cat-icon-size: 26px;
  }
}




/* LIGHT MODE - clean shadow without fake bg under cards */
:root[data-theme="light"] .cg-game-card,
:root[data-theme="light"] .cg-top-card{
  background: transparent !important;
  box-shadow: none !important;
  border-color: rgba(0, 43, 80, 0.10) !important;
}

/* shadow only on image area */
:root[data-theme="light"] .cg-game-card__media,
:root[data-theme="light"] .cg-top-card__media{
  background: #ffffff !important;
  box-shadow: none !important;
  filter: drop-shadow(0 10px 18px rgba(0, 43, 80, 0.10));
}

/* hover stays clean */
:root[data-theme="light"] .cg-game-card:hover,
:root[data-theme="light"] .cg-top-card:hover{
  box-shadow: none !important;
}

:root[data-theme="light"] .cg-game-card:hover .cg-game-card__media,
:root[data-theme="light"] .cg-top-card:hover .cg-top-card__media{
  filter: drop-shadow(0 14px 22px rgba(0, 43, 80, 0.12));
}

/* if placeholder exists */
:root[data-theme="light"] .cg-game-card__placeholder,
:root[data-theme="light"] .cg-top-card__placeholder{
  background: #ffffff !important;
}




/* categories boxes match the shorter intro box */
.cg-category-card{
  min-height: calc(var(--cg-cat-card-height) - 10px);
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cg-category-card__icon{
  margin-bottom: 8px;
}

.cg-category-card__name{
  margin-top: 0;
}




/* =========================================================
 * LIGHT MODE FIX - BROWSE CATEGORIES SECTION ONLY
 * ======================================================= */

/* intro/content box */
:root[data-theme="light"] .cg-browse-categories__intro-card{
  background: #ffffff !important;
  border: 1px solid rgba(0,43,80,.10) !important;
  box-shadow: 0 10px 24px rgba(0,43,80,.08) !important;
}

/* intro texts */
:root[data-theme="light"] .cg-browse-categories__intro-title{
  color: #002b50 !important;
}

:root[data-theme="light"] .cg-browse-categories__intro-text{
  color: #002b50 !important;
}

:root[data-theme="light"] .cg-browse-categories__intro-link{
  color: #6842ff !important;
}

:root[data-theme="light"] .cg-browse-categories__intro-link:hover{
  color: #a48eff !important;
}

/* keep intro icon same original color - do not change it */
:root[data-theme="light"] .cg-browse-categories__intro-icon{
  color: #ffffff !important;
}

/* category cards background */
:root[data-theme="light"] .cg-category-card{
  background: #ffffff !important;
  border: 1px solid rgba(0,43,80,.10) !important;
  box-shadow: 0 10px 24px rgba(0,43,80,.08) !important;
}

/* category names in light mode */
:root[data-theme="light"] .cg-category-card__name{
  color: #002b50 !important;
}



:root[data-theme="light"] .cg-browse-categories__intro-card .cg-browse-categories__intro-icon svg{
  fill: currentColor !important;
}



/* =========================================================
 * LIGHT MODE - arrows shadow uses body bg color
 * final override
 * ======================================================= */

:root[data-theme="light"] .cg-top-picks__arrow--left::before,
:root[data-theme="light"] .cg-new-games__arrow--left::before,
:root[data-theme="light"] .cg-popular-games__arrow--left::before,
:root[data-theme="light"] .cg-browse-categories__arrow--left::before,
:root[data-theme="light"] .cg-category-row__arrow--left::before{
  background: linear-gradient(
    to right,
    var(--cg-body-bg) 0%,
    rgba(131,255,231,.72) 42%,
    rgba(131,255,231,.24) 72%,
    rgba(131,255,231,0) 100%
  ) !important;
}

:root[data-theme="light"] .cg-top-picks__arrow--right::before,
:root[data-theme="light"] .cg-new-games__arrow--right::before,
:root[data-theme="light"] .cg-popular-games__arrow--right::before,
:root[data-theme="light"] .cg-browse-categories__arrow--right::before,
:root[data-theme="light"] .cg-category-row__arrow--right::before{
  background: linear-gradient(
    to left,
    var(--cg-body-bg) 0%,
    rgba(131,255,231,.72) 42%,
    rgba(131,255,231,.24) 72%,
    rgba(131,255,231,0) 100%
  ) !important;
}

/* second glow layer */
:root[data-theme="light"] .cg-home-page .cg-top-picks__arrow--left::after,
:root[data-theme="light"] .cg-home-page .cg-new-games__arrow--left::after,
:root[data-theme="light"] .cg-home-page .cg-popular-games__arrow--left::after,
:root[data-theme="light"] .cg-home-page .cg-browse-categories__arrow--left::after,
:root[data-theme="light"] .cg-home-page .cg-category-row__arrow--left::after{
  background: linear-gradient(
    to right,
    rgba(131,255,231,.86),
    rgba(131,255,231,.46),
    rgba(131,255,231,.10),
    transparent
  ) !important;
  filter: blur(22px) !important;
}

:root[data-theme="light"] .cg-home-page .cg-top-picks__arrow--right::after,
:root[data-theme="light"] .cg-home-page .cg-new-games__arrow--right::after,
:root[data-theme="light"] .cg-home-page .cg-popular-games__arrow--right::after,
:root[data-theme="light"] .cg-home-page .cg-browse-categories__arrow--right::after,
:root[data-theme="light"] .cg-home-page .cg-category-row__arrow--right::after{
  background: linear-gradient(
    to left,
    rgba(131,255,231,.86),
    rgba(131,255,231,.46),
    rgba(131,255,231,.10),
    transparent
  ) !important;
  filter: blur(22px) !important;
}

