/**
 * TVK Cursor Ring — кольцо у курсора + подсветка текста при наведении
 */

@media (hover: hover) and (pointer: fine) {
  body.tvk-cursor-ring-active,
  body.tvk-cursor-ring-active a,
  body.tvk-cursor-ring-active button,
  body.tvk-cursor-ring-active .btn,
  body.tvk-cursor-ring-active input,
  body.tvk-cursor-ring-active textarea,
  body.tvk-cursor-ring-active select,
  body.tvk-cursor-ring-active label {
    cursor: none !important;
  }
}

.tvk-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  pointer-events: none;
  z-index: 10050;
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.tvk-cursor-ring-active .tvk-cursor-ring {
  opacity: 1;
}

.tvk-cursor-ring__dot {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(0, 201, 167, 0.85);
  background: rgba(0, 201, 167, 0.12);
  box-shadow:
    0 0 0 1px rgba(0, 201, 167, 0.15),
    0 0 18px rgba(0, 201, 167, 0.35);
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    width 0.22s ease,
    height 0.22s ease;
}

.tvk-cursor-ring.is-hidden {
  opacity: 0 !important;
}

/* Режимы кольца */
.tvk-cursor-ring--text .tvk-cursor-ring__dot {
  transform: scale(1.55);
  border-color: rgba(0, 201, 167, 1);
  background: rgba(0, 201, 167, 0.18);
  box-shadow:
    0 0 0 1px rgba(0, 201, 167, 0.25),
    0 0 24px rgba(0, 201, 167, 0.5);
}

.tvk-cursor-ring--heading .tvk-cursor-ring__dot {
  transform: scale(2.1);
  border-color: rgba(110, 231, 183, 0.95);
  background: rgba(110, 231, 183, 0.1);
  box-shadow: 0 0 28px rgba(110, 231, 183, 0.45);
}

.tvk-cursor-ring--link .tvk-cursor-ring__dot {
  transform: scale(1.35);
  border-color: rgba(255, 140, 100, 0.95);
  background: rgba(220, 38, 38, 0.12);
  box-shadow: 0 0 22px rgba(220, 38, 38, 0.4);
}

.tvk-cursor-ring--btn .tvk-cursor-ring__dot {
  transform: scale(2.4);
  border-width: 2px;
  border-color: rgba(220, 38, 38, 0.95);
  background: rgba(220, 38, 38, 0.14);
  box-shadow: 0 0 32px rgba(220, 38, 38, 0.55);
}

.tvk-cursor-ring--card .tvk-cursor-ring__dot {
  transform: scale(3.2);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 40px rgba(0, 201, 167, 0.2);
}

/* Подсветка текста */
.tvk-cursor-target {
  transition:
    color 0.28s ease,
    text-shadow 0.28s ease,
    -webkit-text-fill-color 0.28s ease;
}

.tvk-cursor-target.is-cursor-hot--text {
  color: #6ee7b7 !important;
  text-shadow: 0 0 20px rgba(0, 201, 167, 0.35);
}

.tvk-cursor-target.is-cursor-hot--heading {
  color: #99f6e4 !important;
  text-shadow: 0 0 28px rgba(0, 201, 167, 0.45);
}

.tvk-cursor-target.is-cursor-hot--link {
  color: #ffb4a2 !important;
  text-shadow: 0 0 16px rgba(220, 38, 38, 0.35);
}

.tvk-cursor-target.is-cursor-hot--muted {
  color: #cbd5e1 !important;
}

/* Hero h1 — градиент не ломаем, только cycle */
.hero-h1 .hero-text-cycle__item.tvk-cursor-target.is-cursor-hot--heading {
  -webkit-text-fill-color: #99f6e4;
}

@media (prefers-reduced-motion: reduce) {
  .tvk-cursor-ring {
    display: none !important;
  }

  body.tvk-cursor-ring-active,
  body.tvk-cursor-ring-active * {
    cursor: auto !important;
  }

  .tvk-cursor-target.is-cursor-hot--text,
  .tvk-cursor-target.is-cursor-hot--heading,
  .tvk-cursor-target.is-cursor-hot--link,
  .tvk-cursor-target.is-cursor-hot--muted {
    color: inherit !important;
    text-shadow: none !important;
  }
}
