/* CRADLE V89-R6 shared social-channel rail.
   Uses the established full-width cut-glass language on desktop and mobile. */
.hero-social-rail {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(5, minmax(52px, 76px));
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.2vw, 30px);
  width: var(--shell);
  max-width: calc(100% - 44px);
  min-height: 54px;
  margin: -8px auto 8px;
  padding: 7px clamp(28px, 6vw, 88px);
  overflow: hidden;
  border: 1px solid rgba(185, 106, 255, .25);
  border-radius: 17px 17px 5px 5px;
  clip-path: polygon(13px 0, calc(100% - 13px) 0, 100% 13px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 13px);
  background:
    linear-gradient(180deg, rgba(31, 13, 49, .48), rgba(7, 3, 14, .62)),
    radial-gradient(circle at 50% -30%, rgba(171, 84, 255, .19), transparent 62%);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, .30),
    inset 0 1px 0 rgba(255, 255, 255, .07),
    inset 0 -1px 0 rgba(154, 80, 238, .10),
    0 0 30px rgba(126, 52, 255, .07);
  backdrop-filter: blur(12px) saturate(118%);
  -webkit-backdrop-filter: blur(12px) saturate(118%);
}

.hero-social-rail::before,
.hero-social-rail::after {
  content: "";
  position: absolute;
  top: 0;
  width: 24%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 185, 255, .78));
}

.hero-social-rail::before {
  left: 18px;
}

.hero-social-rail::after {
  right: 18px;
  transform: scaleX(-1);
}

.hero-social-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 38px;
  border: 1px solid rgba(197, 132, 255, .12);
  border-radius: 12px;
  color: #f4edff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(118, 42, 190, .035)),
    rgba(8, 3, 18, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    background-color 170ms ease,
    box-shadow 170ms ease;
}

.hero-social-link::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 9px;
  background: radial-gradient(circle at 50% 12%, rgba(209, 159, 255, .11), transparent 70%);
  pointer-events: none;
}

.hero-social-link::after {
  content: "";
  position: absolute;
  inset: auto 18% 2px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(184, 91, 255, .88), transparent);
  opacity: .35;
  transition: opacity 170ms ease;
}

.hero-social-link img {
  position: relative;
  z-index: 1;
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(191, 117, 255, .28));
}

.hero-social-link:hover,
.hero-social-link:focus-visible {
  border-color: rgba(205, 143, 255, .50);
  background: rgba(145, 61, 220, .13);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 20px rgba(148, 66, 237, .18);
  transform: translateY(-2px) scale(1.035);
  outline: none;
}

.hero-social-link:hover::after,
.hero-social-link:focus-visible::after {
  opacity: 1;
}

.hero-social-link-youtube:hover,
.hero-social-link-youtube:focus-visible {
  background: rgba(255, 45, 85, .12);
}

.hero-social-link-instagram:hover,
.hero-social-link-instagram:focus-visible {
  background: rgba(219, 73, 255, .13);
}

.hero-social-link-steam:hover,
.hero-social-link-steam:focus-visible {
  background: rgba(78, 153, 255, .12);
}

.hero-social-link-telegram:hover,
.hero-social-link-telegram:focus-visible {
  background: rgba(74, 174, 255, .13);
}

@media (max-width: 760px), (max-width: 900px) and (pointer: coarse) {
  body.mobile-v89-lite .hero-social-rail {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    width: calc(100dvw - 24px);
    max-width: calc(100dvw - 24px);
    min-height: 48px;
    margin: 8px auto 6px;
    padding: 5px 7px;
    border-radius: 14px;
    clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 10px);
    background:
      linear-gradient(180deg, rgba(29, 12, 46, .58), rgba(7, 3, 14, .70)),
      radial-gradient(circle at 50% -20%, rgba(171, 84, 255, .16), transparent 65%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.mobile-v89-lite .hero-social-link {
    width: 100%;
    height: 36px;
    border-radius: 10px;
    transition: none;
  }

  body.mobile-v89-lite .hero-social-link img {
    width: 20px;
    height: 20px;
  }

  body.mobile-v89-lite .hero-social-link:hover,
  body.mobile-v89-lite .hero-social-link:focus-visible {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-social-link {
    transition: none;
  }
}
