/* Home game carousel */
#screen-home.cat-mesa .game-card {
  background: linear-gradient(160deg, #2a1050 0%, #150828 100%);
  border-color: #4a2070;
}

#screen-home.cat-mesa .game-card:hover:not(.disabled) {
  border-color: #c8a0ff;
  box-shadow: 0 20px 50px rgba(180,100,255,0.28), 0 6px 18px rgba(0,0,0,0.7);
}

#screen-home.cat-mesa .game-carousel .game-card.carousel-focus {
  border-color: #c8a0ff;
  box-shadow: 0 20px 54px rgba(180,100,255,0.26), 0 8px 22px rgba(0,0,0,0.7);
}

#screen-home.cat-mesa .game-card-name { color: #e0d0ff; }
#screen-home.cat-mesa .game-card-desc { color: #7060a0; }

#screen-home.cat-mesa .game-carousel-arrow {
  border-color: rgba(176,120,255,0.28);
  color: #d8c8ff;
}

#screen-home.cat-mesa .game-carousel-arrow:hover {
  border-color: #b078ff;
  background: rgba(144,80,192,0.16);
  color: #fff;
}

.game-grid {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.game-carousel {
  display: grid;
  grid-template-columns: 48px minmax(0, auto) 48px;
  align-items: center;
  gap: 14px;
}

.game-carousel .game-grid {
  width: 560px;
  min-height: 260px;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  perspective: 900px;
}

.game-carousel .game-grid.carousel-anim-next {
  animation: carouselSlideNext 0.26s ease-out;
}

.game-carousel .game-grid.carousel-anim-prev {
  animation: carouselSlidePrev 0.26s ease-out;
}

@keyframes carouselSlideNext {
  from { transform: translateX(58px); }
  to   { transform: translateX(0); }
}

@keyframes carouselSlidePrev {
  from { transform: translateX(-58px); }
  to   { transform: translateX(0); }
}

.game-carousel-arrow {
  width: 48px;
  height: 70px;
  border: 1px solid rgba(240,192,64,0.24);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: #d8eed8;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s, background 0.12s, color 0.12s;
}

.game-carousel-arrow:hover {
  transform: translateY(-2px);
  border-color: #f0c040;
  background: rgba(240,192,64,0.12);
  color: #fff;
}

.game-carousel-arrow[disabled] {
  opacity: 0.22;
  cursor: default;
  pointer-events: none;
}

.game-card {
  width: 160px;
  height: 220px;
  background: linear-gradient(160deg, #1c5230 0%, #0d2e18 100%);
  border: 2px solid #2a6a3a;
  border-radius: 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding: 18px 14px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  user-select: none;
}

.game-card:hover:not(.disabled) {
  transform: translateY(-10px) scale(1.03);
  border-color: #f0c040;
  box-shadow: 0 20px 50px rgba(240,192,64,0.22), 0 6px 18px rgba(0,0,0,0.6);
}

.game-carousel .game-card {
  transform: scale(0.72);
  opacity: 0.38;
  filter: saturate(0.72) brightness(0.75);
  pointer-events: none;
}

.game-carousel .game-card.carousel-side-left {
  transform: translateX(24px) scale(0.74) rotateY(12deg);
}

.game-carousel .game-card.carousel-side-right {
  transform: translateX(-24px) scale(0.74) rotateY(-12deg);
}

.game-carousel .game-card.carousel-focus {
  transform: scale(1.1);
  opacity: 1;
  filter: none;
  pointer-events: auto;
  z-index: 2;
  border-color: #f0c040;
  box-shadow: 0 20px 54px rgba(240,192,64,0.2), 0 8px 22px rgba(0,0,0,0.65);
}

.game-carousel .game-card.carousel-focus:hover:not(.disabled) {
  transform: translateY(-8px) scale(1.16);
}

.game-card.disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.game-card-preview {
  width: 52px;
  height: 74px;
  background: #fff;
  border-radius: 7px;
  border: 2px solid #d0a020;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 4px 10px rgba(0,0,0,0.5);
  flex-shrink: 0;
}

.gcp-val { font-size: 1.7rem; font-weight: 900; color: #b07800; line-height: 1; }
.gcp-sym { font-size: 0.9rem; color: #b07800; }
.game-card-icon { font-size: 2.4rem; flex-shrink: 0; }

.game-card-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #d8eed8;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
}

.game-card-desc {
  font-size: 0.68rem;
  color: #6a9070;
  text-align: center;
  line-height: 1.5;
}

.game-card-badge {
  background: rgba(100,60,0,0.45);
  border: 1px solid #906020;
  border-radius: 10px;
  padding: 3px 10px;
  font-size: 0.62rem;
  color: #c09040;
  letter-spacing: 1px;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .game-card {
    width: 136px;
    min-width: 136px;
    height: 160px;
    padding: 14px 10px;
    justify-content: center;
    gap: 14px;
  }

  .game-card-desc {
    display: none;
  }

  .game-card-name {
    max-width: 100%;
    font-size: 0.72rem;
    line-height: 1.15;
    letter-spacing: 1px;
    white-space: nowrap;
  }

  .game-grid { gap: 12px; }

  .game-carousel {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: 100%;
  }

  .game-carousel .game-grid {
    width: min(100%, 420px);
    min-height: 200px;
    touch-action: pan-y;
    user-select: none;
  }

  .game-carousel-arrow {
    display: none;
  }

  .game-carousel .game-card.carousel-side-left {
    transform: translateX(46px) scale(0.98);
    pointer-events: auto;
  }

  .game-carousel .game-card.carousel-side-right {
    transform: translateX(-46px) scale(0.98);
    pointer-events: auto;
  }

  .game-carousel .game-card.carousel-focus {
    min-width: 136px;
    transform: scale(0.98);
  }

  .game-carousel .game-card.carousel-focus:hover:not(.disabled) {
    transform: translateY(-6px) scale(1.03);
  }
}
