

.games-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 90% at 90% 20%, rgba(80, 145, 221, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 80% at 0% 100%, rgba(255, 82, 0, 0.14), transparent 60%),
    linear-gradient(180deg, #0a1033 0%, #050a24 60%, #030617 100%);
}

.games-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 30% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 30% 50%, #000 20%, transparent 75%);
  pointer-events: none;
}

.games-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: 2.75rem 1rem 2.75rem;
}

.games-hero__copy {
  max-width: 620px;
}

.games-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff8a4c;
}

.games-hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
}

.games-hero__subtitle {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
}

.games-hero__stats {
  display: flex;
  gap: 0.75rem;
}

.games-hero__stat {
  display: flex;
  flex-direction: column;
  min-width: 120px;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid #ff5200;
}

.games-hero__stat strong {
  font-size: 1.6rem;
  line-height: 1.1;
  color: #fff;
}

.games-hero__accent {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #c44a00 35%, #ff5200 65%, transparent 100%);
  opacity: 0.85;
}

.games-hub-panel {
  position: relative;
  background:
    radial-gradient(ellipse 70% 40% at 0% 0%, rgba(255, 82, 0, 0.06), transparent 60%),
    linear-gradient(180deg, #f3f1ef 0%, #f0f2f5 30%, #eceff3 100%);
}

.games-hub__header {
  position: relative;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(33, 37, 41, 0.18);
}

.games-hub__header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 72px;
  height: 3px;
  background: linear-gradient(90deg, #c44a00, #ff5200);
}

.games-hub__title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: #212529;
}

.games-hub__title .bi {
  color: #c44a00;
}

.games-hub__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.games-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 48px rgba(26, 29, 33, 0.07);
  overflow: hidden;
}

.games-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #c44a00, #ff5200);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.games-row:hover::after {
  transform: scaleX(1);
}

.games-row__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #1a1d21;
  min-height: 260px;
}

.games-row__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.games-row:hover .games-row__media img {
  transform: scale(1.04);
}

.games-row__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: #fff;
  background: linear-gradient(180deg, #ff6a1f 0%, #ff5200 45%, #c44a00 100%);
  box-shadow: 0 10px 26px rgba(196, 74, 0, 0.45);
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.games-row:hover .games-row__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.games-row__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem 2rem;
}

.games-row__body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ff5200, #c44a00, transparent);
}

.games-row__logo {
  height: 44px;
  width: auto;
  margin-bottom: 0.85rem;
  object-fit: contain;
}

.games-row__title {
  margin: 0 0 0.6rem;
  font-size: 1.45rem;
  font-weight: 700;
}

.games-row__title a,
body.joyple-page-inner .games-row__title a {
  color: #212529;
  text-decoration: none;
}

.games-row__title a:hover {
  color: #c44a00;
}

.games-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.games-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.4em 0.65em;
  color: #fff;
  background: #2a3038;
}

.games-tag--genre {
  background: #c44a00;
}

.games-tag--lang {
  color: #212529;
  background: #f1f3f5;
  border: 1px solid #dee2e6;
}

.games-tag img {
  border-radius: 2px;
}

.games-row__desc {
  margin: 0 0 1.4rem;
  font-size: 0.96rem;
  line-height: 1.65;
  color: #6c757d;
  max-width: 52ch;
}

.games-row__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.75rem;
}

.games-row__actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
}

.games-btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #ff6a1f 0%, #ff5200 45%, #c44a00 100%);
  border: 1px solid #c44a00;
  box-shadow: 0 8px 20px rgba(196, 74, 0, 0.28);
}

.games-btn-primary:hover,
.games-btn-primary:focus {
  color: #fff;
  filter: brightness(1.05);
  border-color: #c44a00;
}

.games-btn-outline {
  color: #212529;
  background: #fff;
  border: 1px solid #212529;
}

.games-btn-outline:hover,
.games-btn-outline:focus {
  color: #fff;
  background: #212529;
}

.games-row__site,
body.joyple-page-inner .games-row__site {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c44a00;
  text-decoration: none;
}

.games-row__site:hover {
  text-decoration: underline;
}

.games-soon {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 260px;
  color: #fff;
  background: #1a1d21;
  border: 1px solid #121417;
  overflow: hidden;
}

.games-soon::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(18, 20, 23, 0.96) 0%, rgba(18, 20, 23, 0.8) 40%, rgba(18, 20, 23, 0.1) 100%);
}

.games-soon::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #ff5200, #c44a00, transparent);
}

.games-soon__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.games-soon__body {
  position: relative;
  z-index: 2;
  max-width: 480px;
  padding: 2rem;
}

.games-soon__badge {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 82, 0, 0.18);
  border-left: 3px solid #ff5200;
}

.games-soon__title {
  margin: 0 0 0.45rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
}

.games-soon__text {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.games-soon__platforms {
  display: flex;
  gap: 0.4rem;
}

.games-soon__platforms .games-tag {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 991.98px) {
  .games-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .games-row__media {
    min-height: 0;
    aspect-ratio: 16 / 8;
  }

  .games-row__body::before {
    top: 0;
    bottom: auto;
    right: 0;
    width: auto;
    height: 3px;
    background: linear-gradient(90deg, #ff5200, #c44a00, transparent);
  }

  .games-row__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.85);
  }
}

@media (max-width: 575.98px) {
  .games-hero__stats {
    width: 100%;
  }

  .games-hero__stat {
    flex: 1 1 0;
    min-width: 0;
  }

  .games-row__body {
    padding: 1.35rem 1.25rem;
  }

  .games-row__logo {
    height: 36px;
  }

  .games-row__title {
    font-size: 1.2rem;
  }

  .games-row__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .games-soon {
    min-height: 240px;
  }

  .games-soon::before {
    background: linear-gradient(180deg, rgba(18, 20, 23, 0.3) 0%, rgba(18, 20, 23, 0.95) 65%);
  }

  .games-soon {
    align-items: flex-end;
  }

  .games-soon__body {
    padding: 1.5rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .games-row *, .games-row::after { transition: none !important; }
}
