html {
  scroll-behavior: smooth;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 9999;
  pointer-events: none;
  background: linear-gradient(90deg, #00d4ff 0%, #7b5cff 45%, #ff4fd8 100%);
}

.gsap-reveal {
  will-change: transform, opacity;
}

.fx-cursor,
.fx-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.fx-cursor {
  width: 90px;
  height: 90px;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  background: url("../cat-normal.png") center center / contain no-repeat;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fx-cursor-dot {
  display: none !important;
}

body.cursor-active .fx-cursor,
body.cursor-active .fx-cursor-dot {
  opacity: 1;
}

body.cursor-hover .fx-cursor {
  width: 99px;
  height: 99px;
  transform: translate(-50%, -50%) rotate(-8deg);
  box-shadow: 0 13px 36px rgba(0, 0, 0, 0.38);
}

body.cursor-click .fx-cursor {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  overflow: hidden;
  background: url("../cat-click.png") center center / contain no-repeat;
  transform: translate(-50%, -50%) rotate(8deg) scale(0.96);
}

.cursor-ripple {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.star-rain-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99990;
  overflow: hidden;
  perspective: 1000px;
}

.cursor-star {
  position: absolute;
  top: -40px;
  left: 0;
  width: 18px;
  height: 18px;
  background: linear-gradient(145deg, #ffe888 0%, #ffc84d 55%, #ffb629 100%);
  clip-path: polygon(50% 0%, 61% 34%, 98% 35%, 68% 57%, 79% 91%, 50% 71%, 21% 91%, 32% 57%, 2% 35%, 39% 34%);
  filter: drop-shadow(0 3px 4px rgba(143, 83, 0, 0.35));
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.cursor-star::after {
  content: "";
  position: absolute;
  inset: 14% 18% auto 18%;
  height: 30%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

@media (hover: none), (pointer: coarse), (max-width: 1050px) {
  .fx-cursor,
  .fx-cursor-dot,
  .cursor-ripple,
  .star-rain-layer {
    display: none !important;
  }
}

@media (hover: hover) and (pointer: fine) and (min-width: 1051px) {
  body.cursor-active,
  body.cursor-active * {
    cursor: none !important;
  }
}
