/**
 * Карусель игр под персонажем на главной.
 * Две горизонтальные линии (верх + низ), контент строго по центру.
 *
 * Высота/отступ от персонажа — меняй только --hero-games-gap:
 *   меньше / отрицательное = выше (ближе к ногам)
 *   больше = ниже (дальше от ног)
 */

body.page-home {
  /* Отрицательный gap = карусель поднимается к ногам */
  --hero-games-gap: -36px;
}

body.page-home .hero .hero-promo-hud-strap {
  position: relative;
  z-index: 5;
  width: 100%;
  margin: var(--hero-games-gap) 0 0;
  padding: 0;
  pointer-events: none;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.page-home .hero-games-marquee {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 52px;
  overflow: hidden;
  pointer-events: auto;
  background: #0a0a0c;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 0;
  border-right: 0;
  box-sizing: border-box;
  box-shadow: none;
  outline: none;
  mask-image: none;
  -webkit-mask-image: none;
}

body.page-home .hero-games-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  animation: heroGamesMarquee 84s linear infinite;
  will-change: transform;
}

body.page-home .hero-games-marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
}

body.page-home .hero-games-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 0 24px;
  margin: 0;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: opacity 0.2s ease;
}

body.page-home .hero-games-marquee__item:hover,
body.page-home .hero-games-marquee__item:focus-visible {
  opacity: 0.85;
  outline: none;
}

body.page-home .hero-games-marquee__item:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.35);
  outline-offset: -4px;
}

body.page-home .hero-games-marquee__icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
  background: #141416;
}

body.page-home .hero-games-marquee__name,
body.page-home .hero-games-marquee__desc {
  display: inline-block;
  font-family: 'Onder', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

body.page-home .hero-games-marquee__name {
  color: #ffffff;
}

body.page-home .hero-games-marquee__desc {
  color: rgba(255, 255, 255, 0.4);
}

/* Короткие палочки-разделители по центру (не на всю высоту) */
body.page-home .hero-games-marquee__divider {
  display: block;
  align-self: center;
  width: 1px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
  border: 0;
}

@keyframes heroGamesMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .hero-games-marquee__track {
    animation: none;
  }
}

@media (max-width: 720px) {
  body.page-home {
    --hero-games-gap: -28px;
  }

  body.page-home .character-banner-image img,
  body.page-home #character-banner-image {
    transform: translateY(-36px) scale(0.95) !important;
  }

  body.page-home .hero-games-marquee {
    height: 46px;
  }

  body.page-home .hero-games-marquee__item {
    gap: 8px;
    padding: 0 16px;
  }

  body.page-home .hero-games-marquee__icon {
    width: 28px;
    height: 28px;
  }

  body.page-home .hero-games-marquee__name,
  body.page-home .hero-games-marquee__desc {
    font-size: 11px;
  }
}
