/* =========================================================
   HERO
========================================================= */

.hero {
  --hero-slider-height: 360px;
  --hero-link-height: 58px;

  position: relative;
  padding: 18px 0 0;
}

/* =========================================================
   SLIDER
========================================================= */

.hero-slider {
  position: relative;
  width: 100%;
  height: var(--hero-slider-height);
  overflow: hidden;

  background: radial-gradient(circle at 84% 26%, rgba(255, 47, 91, 0.14), transparent 28%), radial-gradient(circle at 72% 82%, rgba(131, 88, 255, 0.1), transparent 32%), linear-gradient(135deg, #121321, #191a2d 58%, #21172b);

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;

  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hero-slider__viewport,
.hero-slider__track,
.hero-slider__slide,
.hero-slider__slide picture {
  width: 100%;
  height: 100%;
}

.hero-slider__viewport,
.hero-slider__track {
  position: relative;
}

.hero-slider__viewport {
  overflow: hidden;
}

.hero-slider__slide {
  position: absolute;
  inset: 0;
  z-index: 1;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: scale(1.012);

  transition:
    opacity 540ms ease,
    transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s linear 540ms;
}

.hero-slider__slide.is-active {
  z-index: 2;

  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: scale(1);

  transition:
    opacity 540ms ease,
    transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s linear 0s;
}

.hero-slider__slide picture {
  display: block;
}

.hero-slider__image {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;

  object-fit: cover;
  object-position: center;

  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* =========================================================
   SLIDER DOTS
========================================================= */

.hero-slider__dots {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  pointer-events: none;
}

.hero-slider__dot {
  width: 8px;
  height: 8px;
  padding: 0;

  background: rgba(255, 255, 255, 0.38);

  border: 0;
  border-radius: 999px;

  cursor: pointer;
  pointer-events: auto;

  transition:
    width 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.hero-slider__dot:hover {
  background: rgba(255, 255, 255, 0.72);
  transform: scale(1.08);
}

.hero-slider__dot.is-active {
  width: 24px;
  background: var(--accent);
}

.hero-slider:not(.is-slider) .hero-slider__dots {
  display: none;
}

/* =========================================================
   HERO QUICK LINKS
========================================================= */

.hero-links {
  display: grid;
  grid-template-columns: 1.12fr repeat(3, minmax(0, 1fr));
  gap: 12px;

  width: 100%;
  margin-top: 12px;
}

/* =========================================================
   BASE BUTTON
========================================================= */

.hero-links__item {
  position: relative;

  display: flex;
  align-items: center;
  gap: 12px;

  min-width: 0;
  min-height: 58px;
  padding: 8px 42px 8px 12px;

  overflow: hidden;

  color: #fff;
  text-decoration: none;

  /*
   * 1 layer = button background
   * 2 layer = gradient border
   */
  background:
    linear-gradient(180deg, #27243c 0%, #1d1e34 46%, #16182c 100%) padding-box,
    linear-gradient(110deg, rgba(255, 35, 92, 0.62) 0%, rgba(120, 100, 153, 0.78) 42%, rgba(116, 124, 153, 0.72) 100%) border-box;

  border: 1px solid transparent;
  border-radius: 13px;

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);

  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    filter 200ms ease;
}

/* =========================================================
   BOTTOM ACCENT
========================================================= */

.hero-links__item::after {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 3;

  width: 29%;
  height: 2px;

  content: '';

  background: linear-gradient(90deg, #ff285c 0%, #d7286f 55%, rgba(215, 40, 111, 0) 100%);

  border-radius: 0 999px 999px 0;

  opacity: 0.9;

  transition:
    width 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 200ms ease;
}

/* =========================================================
   RIGHT CHEVRON
========================================================= */

.hero-links__item::before {
  position: absolute;
  top: 50%;
  right: 17px;
  z-index: 4;

  width: 8px;
  height: 8px;

  content: '';

  border-top: 2px solid rgba(255, 255, 255, 0.92);
  border-right: 2px solid rgba(255, 255, 255, 0.92);

  transform: translateY(-50%) rotate(45deg);

  transition:
    transform 200ms ease,
    border-color 200ms ease;
}

/* =========================================================
   ICON
========================================================= */

.hero-links__icon {
  position: relative;
  z-index: 2;

  display: inline-flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  color: #ff285d;

  background: linear-gradient(180deg, rgba(255, 42, 94, 0.09), rgba(255, 42, 94, 0.035));

  border: 1px solid rgba(255, 32, 91, 0.72);
  border-radius: 10px;

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);

  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;

  transition:
    transform 200ms ease,
    background 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

/* =========================================================
   LABEL
========================================================= */

.hero-links__label {
  position: relative;
  z-index: 2;

  min-width: 0;

  overflow: hidden;

  color: #fff;

  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;

  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   SECONDARY HOVER
========================================================= */

.hero-links__item:not(.hero-links__item--register):hover {
  transform: translateY(-2px);

  filter: brightness(1.06);

  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.24),
    0 0 18px rgba(255, 36, 91, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.hero-links__item:not(.hero-links__item--register):hover::after {
  width: 48%;
  opacity: 1;
}

.hero-links__item:not(.hero-links__item--register):hover::before {
  transform: translateY(-50%) translateX(3px) rotate(45deg);
}

.hero-links__item:not(.hero-links__item--register):hover .hero-links__icon {
  background: rgba(255, 39, 92, 0.12);

  border-color: rgba(255, 39, 92, 0.95);

  box-shadow:
    0 0 16px rgba(255, 39, 92, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  transform: translateY(-1px);
}

/* =========================================================
   MIRROR
========================================================= */

.hero-links__item--mirror::after {
  background: linear-gradient(90deg, #a846b8 0%, #b63894 42%, #d72b79 70%, rgba(215, 43, 121, 0) 100%);
}

/* =========================================================
   BONUS
========================================================= */

.hero-links__item--bonus::after {
  background: linear-gradient(90deg, #ff2f66 0%, #df2e76 52%, rgba(223, 46, 118, 0) 100%);
}

/* =========================================================
   TOURNAMENT
========================================================= */

.hero-links__item--tournament::after {
  background: linear-gradient(90deg, #d93983 0%, #a946a4 55%, rgba(169, 70, 164, 0) 100%);
}

/* =========================================================
   REGISTER — PRIMARY
========================================================= */

.hero-links__item--register {
  background:
    linear-gradient(105deg, #c90d49 0%, #d91351 28%, #e61b5a 58%, #ef2864 82%, #f43a6c 100%) padding-box,
    linear-gradient(110deg, #e82961 0%, #ef3a70 52%, #f45a7e 100%) border-box;

  border-color: transparent;

  background-size:
    150% 100%,
    100% 100%;

  animation:
    hero-register-gradient 6s ease-in-out infinite,
    hero-register-glow 3.4s ease-in-out infinite;
}

/* =========================================================
   REGISTER BOTTOM ACCENT
========================================================= */

.hero-links__item--register::after {
  right: 12px;
  bottom: 0;
  left: 12px;

  width: auto;
  height: 2px;

  background: linear-gradient(90deg, rgba(255, 71, 113, 0), rgba(255, 83, 126, 0.58), rgba(255, 112, 147, 0.72), rgba(255, 71, 113, 0));

  opacity: 0.62;

  filter: blur(0.2px);
}

/* =========================================================
   REGISTER ICON
========================================================= */

.hero-links__item--register .hero-links__icon {
  color: #fff;

  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));

  border-color: rgba(255, 255, 255, 0.42);

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* =========================================================
   REGISTER HOVER
========================================================= */

.hero-links__item--register:hover {
  transform: translateY(-2px);

  filter: brightness(1.035);
}

.hero-links__item--register:hover::before {
  transform: translateY(-50%) translateX(3px) rotate(45deg);
}

.hero-links__item--register:hover .hero-links__icon {
  background: rgba(255, 255, 255, 0.16);

  border-color: rgba(255, 255, 255, 0.58);

  transform: translateY(-1px);
}

/* =========================================================
   REGISTER ANIMATION
========================================================= */

@keyframes hero-register-gradient {
  0%,
  100% {
    background-position:
      0% 50%,
      0 0;
  }

  50% {
    background-position:
      100% 50%,
      0 0;
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {
  .hero-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  
    .hero-slider__image {
  object-fit: fill;

}
}

/* =========================================================
   MOBILE HERO LINKS
========================================================= */

@media (max-width: 640px) {
  .hero {
    padding-top: 4px;
  }

  .hero-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    column-gap: 12px;
    row-gap: 9px;

    width: calc(100% - 12px);
    margin: 10px auto 0;
  }

  .hero-links__item {
    min-height: 44px;

    gap: 7px;
    padding: 6px 28px 6px 7px;

    border-radius: 11px;
  }

  .hero-links__icon {
    flex: 0 0 28px;

    width: 28px;
    height: 28px;

    border-radius: 8px;

    font-size: 12px;
  }

  .hero-links__label {
    font-size: 10px;
  }

  .hero-links__item::before {
    right: 10px;

    font-size: 20px;
  }
  
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {
  .hero-links {
    column-gap: 10px;
    row-gap: 8px;

    width: calc(100% - 8px);
  }

  .hero-links__item {
    min-height: 42px;

    gap: 6px;
    padding: 5px 25px 5px 6px;
  }

  .hero-links__icon {
    flex-basis: 26px;

    width: 26px;
    height: 26px;

    font-size: 11px;
  }

  .hero-links__label {
    font-size: 9px;
  }

  .hero-links__item::before {
    right: 8px;

    font-size: 18px;
  }
}

/* =========================================================
   TOUCH
========================================================= */

@media (hover: none) {
  .hero-links__item:hover,
  .hero-links__item--register:hover {
    transform: none;
    filter: none;
  }

  .hero-links__item:not(.hero-links__item--register):hover::after {
    width: 29%;
  }

  .hero-links__item:hover::before {
    transform: translateY(-50%) rotate(45deg);
  }

  .hero-links__item:hover .hero-links__icon {
    transform: none;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .hero-links__item,
  .hero-links__item::before,
  .hero-links__item::after,
  .hero-links__icon {
    transition: none;
  }

  .hero-links__item--register {
    animation: none;
  }
}
