:root {
  --dude-purple: #9945ff;
  --dude-purple-dark: #6519bd;
}

/* The mascot assets are now natively purple, so the old blue-to-purple filter is no longer needed. */
.hero-guy {
  filter: saturate(1.08) drop-shadow(0 35px 28px #3f0a683d) !important;
}

.top-social-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  margin-right: 0.65rem;
}

.top-social-button {
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border: 1px solid #6d23ad2b;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  white-space: nowrap;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.top-social-button:hover {
  transform: translateY(-2px) rotate(-1deg);
}

.top-social-button--x {
  color: #fff;
  background: #17131c;
  box-shadow: 0 9px 20px #17131c26;
}

.top-social-button--telegram {
  color: #fff;
  background: linear-gradient(120deg, var(--dude-purple-dark), var(--dude-purple) 70%, #14dba2);
  box-shadow: 0 9px 22px #812ce039;
}

.social-icon {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 950;
}

.top-social-button--telegram .social-icon {
  color: var(--dude-purple-dark);
  background: #fff;
  transform: rotate(-14deg);
}

.moved-social-link {
  display: none !important;
}

.hero-dog-button {
  z-index: 6;
  position: absolute;
  right: -1.5%;
  bottom: 6%;
  width: min(16rem, 35%);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: 52% 88%;
  animation: dogHappyBounce 3.1s ease-in-out infinite;
}

.hero-dog {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 18px #4e281d30);
}

.hero-dog-button:hover,
.hero-dog-button:focus-visible {
  animation-duration: 0.8s;
}

.hero-dog-button--celebrate {
  animation: dogCelebrate 0.55s ease-in-out 2 !important;
}

.dog-bubble {
  position: absolute;
  top: -0.5rem;
  left: 50%;
  width: max-content;
  max-width: 12rem;
  padding: 0.55rem 0.75rem;
  color: #fff;
  background: #17131c;
  border: 2px solid #fff;
  border-radius: 1rem 1rem 1rem 0.3rem;
  font-size: clamp(0.65rem, 1vw, 0.78rem);
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.5rem) rotate(-2deg);
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow: 0 10px 25px #32145529;
}

.dog-bubble--show {
  opacity: 1;
  transform: translate(-50%, 0) rotate(-2deg);
}

@keyframes dogHappyBounce {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-0.65rem) rotate(1.5deg); }
}

@keyframes dogCelebrate {
  0%, 100% { transform: translateY(0) rotate(-2deg) scale(1); }
  50% { transform: translateY(-1rem) rotate(4deg) scale(1.06); }
}

@media (max-width: 1180px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 780px) {
  .nav-wrap {
    overflow: visible;
  }

  .top-social-links {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 50%;
    margin: 0;
    transform: translateX(-50%);
    filter: drop-shadow(0 10px 20px #4a136623);
  }

  .hero {
    padding-top: 10.5rem !important;
  }

  .hero-dog-button {
    right: 0;
    bottom: 7%;
    width: 32%;
  }
}

@media (max-width: 460px) {
  .top-social-button {
    min-height: 2.5rem;
    padding: 0 0.7rem;
    font-size: 0.68rem;
  }

  .nav-action {
    padding-inline: 0.8rem !important;
  }

  .hero-dog-button {
    width: 34%;
    right: -1%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-dog-button {
    animation: none;
  }
}
