/* LASERWAR League — лёгкие анимации (концепт laserwar_animation_demo) */

@media (prefers-reduced-motion: reduce) {
  .league-animate-fade,
  .league-reveal,
  .league-marquee__inner,
  .league-cta-shine::before {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Hero: лазерные лучи поверх обложки */
.league-hero {
  position: relative;
}

.league-hero__beams {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

.league-hero .container {
  position: relative;
  z-index: 2;
}

.league-hero__text h1,
.league-hero__text h4 {
  opacity: 0;
  animation: leagueFadeUp 0.9s ease forwards;
}

.league-hero__text h4 {
  animation-delay: 0.25s;
}

@keyframes leagueFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Появление блоков при скролле */
.league-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.league-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.league-reveal--delay-1 { transition-delay: 0.08s; }
.league-reveal--delay-2 { transition-delay: 0.16s; }
.league-reveal--delay-3 { transition-delay: 0.24s; }

/* Карточки активности и видео */
.activity-list .row.league-reveal.is-visible:hover {
  transform: translateY(-3px);
}

.home-featured-videos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .home-featured-videos__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
}

.home-featured-videos .video-card {
  margin-bottom: 0;
  padding-left: 0;
  padding-right: 0;
}

.home-featured-videos__more {
  margin-top: 2.5rem;
  margin-bottom: 0;
}

.home-featured-videos .league-reveal.is-visible .video-card:hover .video-card__play {
  filter: drop-shadow(0 0 8px rgba(255, 59, 59, 0.45));
}

/* Лента под hero — без растягивания низкого разрешения */
.home-intro-tape {
  display: block;
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  border-radius: 12px;
}

.home-intro-tape img {
  display: block;
  width: 100%;
  height: clamp(160px, 22vw, 260px);
  object-fit: cover;
  object-position: center;
}

/* Коллаж «Лазертаг 2.0» — фон на всю площадь блока, без пустых ячеек */
.about-highlight__mosaic {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  width: 100%;
  max-width: none;
  margin: 0;
  background: #0f1524;
}

.about-highlight__cell {
  overflow: hidden;
  min-height: 0;
  background: #1a2238;
}

.about-highlight__cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-highlight__cell--1 { grid-column: 1 / 7; grid-row: 1 / 2; }
.about-highlight__cell--2 { grid-column: 7 / 13; grid-row: 1 / 2; }
.about-highlight__cell--3 { grid-column: 1 / 7; grid-row: 2 / 3; }
.about-highlight__cell--4 { grid-column: 7 / 13; grid-row: 2 / 3; }
.about-highlight__cell--5 { grid-column: 1 / 4; grid-row: 3 / 4; }
.about-highlight__cell--6 { grid-column: 4 / 13; grid-row: 3 / 4; }

.about-highlight .about-highlight__overlay {
  position: relative;
  z-index: 1;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  min-height: clamp(280px, 32vw, 380px);
}

.about-highlight__overlay > .container {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.about-highlight__cta-wrap {
  margin: 0.5rem 0 0;
  text-align: center;
}

.about-highlight__overlay a.about-highlight__cta {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  font-style: normal;
  color: #fff !important;
  text-decoration: none !important;
  background: #e40000;
  border-radius: 12px;
  padding: 12px 26px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.about-highlight__overlay a.about-highlight__cta:hover,
.about-highlight__overlay a.about-highlight__cta:focus {
  background: #c90000;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

@media (max-width: 767px) {
  .about-highlight__mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }

  .about-highlight__cell--1 { grid-column: 1 / 2; grid-row: 1 / 2; }
  .about-highlight__cell--2 { grid-column: 2 / 3; grid-row: 1 / 2; }
  .about-highlight__cell--3 { grid-column: 1 / 2; grid-row: 2 / 3; }
  .about-highlight__cell--4 { grid-column: 2 / 3; grid-row: 2 / 3; }
  .about-highlight__cell--5 { grid-column: 1 / 2; grid-row: 3 / 4; }
  .about-highlight__cell--6 { grid-column: 2 / 3; grid-row: 3 / 4; }

  .about-highlight .about-highlight__overlay {
    min-height: clamp(320px, 70vw, 420px);
  }

  .about-highlight__overlay > .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .home-intro-tape {
    border-radius: 0;
  }

  .home-intro-tape img {
    height: clamp(140px, 42vw, 200px);
  }
}

@media (max-width: 767px) {
  .league-hero__beams {
    display: none;
  }
}

/* CTA с бликом */
.league-cta-shine {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.league-cta-shine::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translateX(-120%);
  pointer-events: none;
}

.league-cta-shine:hover::before {
  animation: leagueSweep 1.1s ease;
}

.league-cta-shine:hover {
  text-shadow: 0 0 12px rgba(255, 59, 59, 0.25);
}

@keyframes leagueSweep {
  to {
    transform: translateX(120%);
  }
}

/* Бегущая строка турниров */
.league-marquee {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
  padding: 1.25rem 0;
  background: linear-gradient(90deg, #141c30, #1a2744, #141c30);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
  margin-bottom: 0;
}

.league-marquee + .container {
  padding-top: 2.5rem;
}

.league-marquee__inner {
  display: flex;
  width: max-content;
  animation: leagueMarquee 45s linear infinite;
}

.league-marquee__track {
  display: flex;
  flex-shrink: 0;
  gap: 3.5rem;
  align-items: center;
  padding-right: 3.5rem;
}

.league-marquee__track span {
  color: rgba(244, 247, 251, 0.55);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.league-marquee__track span:nth-child(odd) {
  color: rgba(74, 163, 255, 0.75);
}

@keyframes leagueMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
