/* Люксовая забота рядом · звук + рисованные реакции · SHOKERI BEAUTY */
.sb-care-presence {
  position: fixed;
  /* Ниже шапки — не перекрывать корзину / кабинет / приложение */
  top: calc(var(--site-header-h, 78px) + 8px + env(safe-area-inset-top, 0px));
  right: 12px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(280px, calc(100vw - 24px));
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 180, 210, 0.32);
  background: linear-gradient(135deg, rgba(36, 12, 28, 0.94), rgba(12, 6, 14, 0.92));
  box-shadow: 0 8px 24px rgba(255, 61, 154, 0.16);
  color: #fff8fb;
  font-family: var(--font-body, Manrope, sans-serif);
  font-size: 0.72rem;
  line-height: 1.25;
  pointer-events: auto;
}
.sb-care-presence[hidden] { display: none !important; }
.sb-care-presence__mark {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, #ff7eb8, #c45a7a 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 220, 230, 0.35);
}
.sb-care-presence__mark svg { width: 16px; height: 16px; }
.sb-care-presence__txt { min-width: 0; }
.sb-care-presence__txt b {
  display: block;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.sb-care-presence__txt span {
  display: block;
  color: rgba(255, 230, 240, 0.72);
  font-size: 0.66rem;
}
.sb-care-presence__mute {
  border: 0;
  background: transparent;
  color: #ffd0e6;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 4px;
  opacity: 0.85;
}
.sb-care-presence__mute:hover { opacity: 1; }

.sb-care-sticker {
  position: fixed;
  z-index: 12100;
  width: 96px;
  height: 96px;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  filter: drop-shadow(0 8px 16px rgba(255, 80, 150, 0.25));
  animation: sb-care-pop 1.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.sb-care-sticker svg { width: 100%; height: 100%; overflow: visible; }
.sb-care-sticker .ink {
  fill: none;
  stroke: #ff8fbf;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: sb-care-draw 0.85s ease forwards;
}
.sb-care-sticker .ink-gold {
  stroke: #e8b07a;
  stroke-width: 1.8;
  animation-delay: 0.12s;
}
.sb-care-sticker .fill-soft {
  fill: rgba(255, 120, 170, 0.22);
  opacity: 0;
  animation: sb-care-fill 0.5s 0.35s ease forwards;
}
.sb-care-sticker--milestone {
  width: 120px;
  height: 120px;
  animation-duration: 1.7s;
}

@keyframes sb-care-pop {
  0% { opacity: 0; transform: translate(-50%, -40%) scale(0.55); }
  18% { opacity: 1; transform: translate(-50%, -55%) scale(1.05); }
  70% { opacity: 1; transform: translate(-50%, -58%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -72%) scale(0.92); }
}
@keyframes sb-care-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes sb-care-fill {
  to { opacity: 1; }
}

.sb-care-toast {
  position: fixed;
  left: 50%;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(12px);
  z-index: 12090;
  max-width: min(320px, calc(100vw - 28px));
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 180, 210, 0.28);
  background: rgba(18, 8, 16, 0.94);
  color: #fff8fb;
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.sb-care-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Подсветка отмеченного шага */
[data-cl-check]:checked + span,
.course-check.is-on,
.practice.done,
.coach-block.done {
  animation: sb-care-glow 0.9s ease;
}
@keyframes sb-care-glow {
  0% { box-shadow: 0 0 0 0 rgba(255, 120, 170, 0); }
  40% { box-shadow: 0 0 0 6px rgba(255, 120, 170, 0.18); }
  100% { box-shadow: 0 0 0 0 rgba(255, 120, 170, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .sb-care-sticker,
  .sb-care-sticker .ink,
  .sb-care-sticker .fill-soft,
  [data-cl-check]:checked + span,
  .course-check.is-on {
    animation: none !important;
  }
  .sb-care-sticker { opacity: 0.9; transform: translate(-50%, -50%); }
}

@media (max-width: 430px) {
  .sb-care-presence {
    top: auto;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    right: 10px;
    left: auto;
  }
  .sb-care-toast {
    bottom: calc(118px + env(safe-area-inset-bottom, 0px));
  }
}
