/* Maskot şekil ve ruh hali */
/* Canlı / dinamik şekiller */
.mascot-theme-root[data-mascot-shape='pulse'] .cust-empty-blob {
  animation: mascot-shape-pulse-live 5.2s ease-in-out infinite;
}
.mascot-theme-root[data-mascot-shape='wave'] .cust-empty-blob {
  position: relative;
  animation: mascot-shape-wave-live 6s ease-in-out infinite;
}
.mascot-theme-root[data-mascot-shape='wave'] .cust-empty-blob::before {
  content: '';
  position: absolute;
  inset: 9%;
  border-radius: inherit;
  background: radial-gradient(ellipse 90% 130% at 50% 115%, rgba(255, 255, 255, 0.42), transparent 58%);
  opacity: 0.55;
  animation: mascot-inner-wave-skew 3.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: soft-light;
}
.mascot-theme-root[data-mascot-shape='ripple'] .cust-empty-blob {
  position: relative;
  animation: mascot-shape-ripple-hue 5.5s ease-in-out infinite;
}
.mascot-theme-root[data-mascot-shape='ripple'] .cust-empty-blob::before {
  content: '';
  position: absolute;
  inset: -8%;
  border-radius: inherit;
  background: conic-gradient(from 0deg, transparent 0%, rgba(255, 255, 255, 0.38) 45%, transparent 78%);
  animation: mascot-ripple-spin 5s linear infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.42;
  mix-blend-mode: screen;
}
.mascot-theme-root[data-mascot-shape='morph'] .cust-empty-blob {
  animation: mascot-shape-morph-live 7s ease-in-out infinite;
}

.mascot-theme-root[data-mascot-shape='cloud'] .cust-empty-blob {
  border-radius: 50%;
  width: 46px;
  height: 40px;
  margin-top: 14px;
  box-shadow:
    -16px 6px 0 -2px color-mix(in srgb, var(--m-c1, hsl(var(--m-d1, 334), 82%, 72%)) 88%, #fff),
    16px 8px 0 -1px color-mix(in srgb, var(--m-c2, hsl(var(--m-d2, 2), 78%, 58%)) 90%, #fff),
    0 -10px 0 -6px color-mix(in srgb, var(--m-c0, hsl(var(--m-d0, 310), 88%, 94%)) 80%, #fff);
}
.mascot-theme-root[data-mascot-shape='egg'] .cust-empty-blob {
  width: 52px;
  height: 70px;
  border-radius: 50% 50% 48% 48% / 58% 58% 42% 42%;
}
.mascot-theme-root[data-mascot-shape='pebble'] .cust-empty-blob {
  width: 68px;
  height: 50px;
  margin-top: 10px;
  border-radius: 48% 52% 46% 54% / 58% 50% 50% 42%;
}
.mascot-theme-root[data-mascot-shape='clover'] .cust-empty-blob {
  width: 36px;
  height: 36px;
  margin-top: 14px;
  border-radius: 50%;
  clip-path: none;
  box-shadow:
    -14px -8px 0 0 color-mix(in srgb, var(--m-c1, hsl(var(--m-d1, 334), 82%, 72%)) 90%, #fff),
    14px -8px 0 0 color-mix(in srgb, var(--m-c2, hsl(var(--m-d2, 2), 78%, 58%)) 90%, #fff),
    -12px 14px 0 0 color-mix(in srgb, var(--m-c2, hsl(var(--m-d2, 2), 78%, 58%)) 88%, #fff),
    12px 14px 0 0 color-mix(in srgb, var(--m-c3, hsl(var(--m-d3, 28), 74%, 48%)) 90%, #fff);
}
.mascot-theme-root[data-mascot-shape='leaf'] .cust-empty-blob {
  border-radius: 0;
  transform: none;
  clip-path: polygon(48% 0%, 70% 18%, 96% 8%, 78% 46%, 90% 96%, 48% 74%, 18% 98%, 8% 48%, 28% 22%);
}
.mascot-theme-root[data-mascot-shape='moon'] .cust-empty-blob {
  border-radius: 50%;
  box-shadow: none;
  -webkit-mask: radial-gradient(circle at 74% 48%, transparent 0 16px, #000 17px);
  mask: radial-gradient(circle at 74% 48%, transparent 0 16px, #000 17px);
}
.mascot-theme-root[data-mascot-shape='sun'] .cust-empty-blob {
  border-radius: 50%;
  box-shadow:
    0 -22px 0 -12px color-mix(in srgb, var(--m-c1, hsl(var(--m-d1, 334), 82%, 72%)) 80%, #fff),
    0 22px 0 -12px color-mix(in srgb, var(--m-c1, hsl(var(--m-d1, 334), 82%, 72%)) 80%, #fff),
    -22px 0 0 -12px color-mix(in srgb, var(--m-c1, hsl(var(--m-d1, 334), 82%, 72%)) 80%, #fff),
    22px 0 0 -12px color-mix(in srgb, var(--m-c1, hsl(var(--m-d1, 334), 82%, 72%)) 80%, #fff),
    16px -16px 0 -13px color-mix(in srgb, var(--m-c2, hsl(var(--m-d2, 2), 78%, 58%)) 75%, #fff),
    -16px -16px 0 -13px color-mix(in srgb, var(--m-c2, hsl(var(--m-d2, 2), 78%, 58%)) 75%, #fff),
    16px 16px 0 -13px color-mix(in srgb, var(--m-c2, hsl(var(--m-d2, 2), 78%, 58%)) 75%, #fff),
    -16px 16px 0 -13px color-mix(in srgb, var(--m-c2, hsl(var(--m-d2, 2), 78%, 58%)) 75%, #fff);
}
.mascot-theme-root[data-mascot-shape='bolt'] .cust-empty-blob {
  border-radius: 0;
  clip-path: polygon(58% 0%, 22% 44%, 44% 44%, 30% 100%, 84% 46%, 58% 46%);
}
.mascot-theme-root[data-mascot-shape='gem'] .cust-empty-blob {
  border-radius: 2px;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}
.mascot-theme-root[data-mascot-shape='shield'] .cust-empty-blob {
  border-radius: 12px 12px 50% 50%;
  clip-path: polygon(0% 0%, 100% 0%, 100% 72%, 50% 100%, 0% 72%);
}
.mascot-theme-root[data-mascot-shape='flower'] .cust-empty-blob {
  border-radius: 0;
  clip-path: polygon(
    50% 0%,
    62% 18%,
    82% 10%,
    78% 32%,
    100% 38%,
    82% 52%,
    92% 72%,
    68% 70%,
    62% 92%,
    50% 78%,
    38% 92%,
    32% 70%,
    8% 72%,
    18% 52%,
    0% 38%,
    22% 32%,
    18% 10%,
    38% 18%
  );
}
.mascot-theme-root[data-mascot-shape='ticket'] .cust-empty-blob {
  border-radius: 0;
  clip-path: polygon(0% 0%, 100% 0%, 100% 35%, 92% 50%, 100% 65%, 100% 100%, 0% 100%, 0% 65%, 8% 50%, 0% 35%);
}
.mascot-theme-root[data-mascot-shape='bow'] .cust-empty-blob {
  border-radius: 0;
  clip-path: polygon(
    0% 30%, 30% 8%, 42% 34%, 50% 16%, 58% 34%, 70% 8%, 100% 30%,
    100% 70%, 70% 92%, 58% 66%, 50% 84%, 42% 66%, 30% 92%, 0% 70%
  );
}

@keyframes mascot-shape-pulse-live {
  0%,
  100% {
    border-radius: 58% 42% 62% 38% / 48% 55% 45% 52%;
    transform: scale(1);
  }
  50% {
    border-radius: 48% 52% 55% 45% / 52% 48% 52% 48%;
    transform: scale(1.045);
  }
}
@keyframes mascot-shape-wave-live {
  0%,
  100% {
    border-radius: 55% 45% 48% 52% / 50% 52% 48% 50%;
  }
  50% {
    border-radius: 45% 55% 52% 48% / 48% 46% 54% 52%;
  }
}
@keyframes mascot-inner-wave-skew {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: translateY(-3px) scale(1.04);
    opacity: 0.7;
  }
}
@keyframes mascot-ripple-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes mascot-shape-ripple-hue {
  0%,
  100% {
    filter: saturate(1) hue-rotate(0deg);
  }
  50% {
    filter: saturate(1.12) hue-rotate(12deg);
  }
}
@keyframes mascot-shape-morph-live {
  0% {
    border-radius: 58% 42% 62% 38% / 48% 55% 45% 52%;
  }
  33% {
    border-radius: 42% 58% 48% 52% / 55% 48% 52% 45%;
  }
  66% {
    border-radius: 52% 48% 55% 45% / 42% 55% 48% 58%;
  }
  100% {
    border-radius: 58% 42% 62% 38% / 48% 55% 45% 52%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mascot-theme-root[data-mascot-shape='pulse'] .cust-empty-blob,
  .mascot-theme-root[data-mascot-shape='wave'] .cust-empty-blob,
  .mascot-theme-root[data-mascot-shape='ripple'] .cust-empty-blob,
  .mascot-theme-root[data-mascot-shape='morph'] .cust-empty-blob {
    animation: none !important;
  }
  .mascot-theme-root[data-mascot-shape='wave'] .cust-empty-blob::before,
  .mascot-theme-root[data-mascot-shape='ripple'] .cust-empty-blob::before {
    animation: none !important;
  }
}

.cust-empty--mascot-bored .cust-empty-blob,
.global-mascot[data-mood="bored"] .cust-empty-blob {
  background: linear-gradient(
    145deg,
    hsl(var(--m-b0, 292), 58%, 88%) 0%,
    hsl(var(--m-b1, 302), 60%, 70%) 40%,
    hsl(var(--m-b2, 312), 62%, 54%) 70%,
    hsl(var(--m-b3, 318), 64%, 46%) 100%
  );
  box-shadow: inset 0 2px 12px rgba(255, 255, 255, 0.28);
  filter: saturate(0.85);
}
.cust-empty--mascot-angry .cust-empty-blob,
.global-mascot[data-mood="angry"] .cust-empty-blob {
  background: linear-gradient(
    145deg,
    hsl(var(--m-a0, 12), 86%, 78%) 0%,
    hsl(var(--m-a1, 8), 88%, 62%) 35%,
    hsl(var(--m-a2, 4), 90%, 48%) 68%,
    hsl(var(--m-a3, 2), 88%, 40%) 100%
  );
  box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.22);
  animation: cust-empty-blob-morph 4s ease-in-out infinite;
  filter: brightness(1.05) contrast(1.08);
}
.cust-empty--mascot-eat .cust-empty-blob,
.global-mascot[data-mood="eat"] .cust-empty-blob {
  animation: cust-empty-blob-munch 0.45s ease-in-out 4;
}
@keyframes cust-empty-blob-munch {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.05, 0.92) translateY(2px); }
}
.cust-empty--break .cust-empty-blob,
.global-mascot[data-mood="break"] .cust-empty-blob {
  background: linear-gradient(
    145deg,
    hsl(var(--m-k0, 210), 82%, 82%) 0%,
    hsl(var(--m-k1, 214), 78%, 64%) 38%,
    hsl(var(--m-k2, 218), 76%, 50%) 72%,
    hsl(var(--m-k3, 222), 72%, 42%) 100%
  );
  box-shadow: inset 0 2px 12px rgba(255, 255, 255, 0.3);
  animation: cust-empty-blob-morph 14s ease-in-out infinite;
}
.cust-empty--break .cust-empty-eye,
.global-mascot[data-mood="break"] .cust-empty-eye {
  animation: cust-empty-sleep 3.2s ease-in-out infinite;
}
.cust-empty--break .cust-empty-eye::after,
.global-mascot[data-mood="break"] .cust-empty-eye::after {
  opacity: 0.15;
}
@keyframes cust-empty-sleep {
  0%, 100% { transform: scaleY(0.2); border-radius: 4px; }
  50% { transform: scaleY(0.08); }
}
@keyframes cust-empty-blob-morph {
  0%, 100% { border-radius: 58% 42% 62% 38% / 48% 55% 45% 52%; transform: rotate(-3deg) scale(1); }
  33% { border-radius: 42% 58% 48% 52% / 55% 48% 52% 45%; transform: rotate(4deg) scale(1.03); }
  66% { border-radius: 52% 48% 38% 62% / 42% 58% 48% 52%; transform: rotate(-2deg) scale(0.98); }
}

/* ── Mimi Brain moods ────────────────────────── */
/* Drink */
.cust-empty--mascot-drink .cust-empty-blob,
.global-mascot[data-mood="drink"] .cust-empty-blob {
  animation: mimi-drink 0.55s ease-in-out 3;
  filter: hue-rotate(20deg) saturate(1.2);
}
@keyframes mimi-drink {
  0%, 100% { transform: scale(1) rotate(0deg); }
  30% { transform: scale(1.04, 0.96) rotate(-4deg); }
  70% { transform: scale(0.97, 1.04) rotate(3deg); }
}

/* Yawn */
.cust-empty--mascot-yawn .cust-empty-blob,
.global-mascot[data-mood="yawn"] .cust-empty-blob {
  animation: mimi-yawn 1.8s ease-in-out 2;
  filter: saturate(0.7) brightness(0.95);
}
@keyframes mimi-yawn {
  0%, 100% { transform: scale(1); }
  20% { transform: scale(1.06, 0.95); }
  40% { transform: scale(0.95, 1.07); }
  60% { transform: scale(1.04, 0.97); }
}
.cust-empty--mascot-yawn .cust-empty-eye,
.global-mascot[data-mood="yawn"] .cust-empty-eye {
  animation: mimi-yawn-eye 1.8s ease-in-out 2;
}
@keyframes mimi-yawn-eye {
  0%, 100% { transform: scaleY(1); }
  30%, 80% { transform: scaleY(0.25); border-radius: 4px; }
}

/* Stretch */
.cust-empty--mascot-stretch .cust-empty-blob,
.global-mascot[data-mood="stretch"] .cust-empty-blob {
  animation: mimi-stretch 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 2;
  filter: brightness(1.08) saturate(1.15);
}
@keyframes mimi-stretch {
  0% { transform: scale(1); }
  40% { transform: scale(0.88, 1.18); }
  70% { transform: scale(1.12, 0.9); }
  100% { transform: scale(1); }
}

/* Celebrate */
.cust-empty--mascot-celebrate .cust-empty-blob,
.global-mascot[data-mood="celebrate"] .cust-empty-blob {
  animation: mimi-celebrate 0.4s ease-in-out infinite;
  filter: brightness(1.15) saturate(1.3);
  box-shadow: 0 0 24px 6px rgba(255, 220, 50, 0.45);
}
@keyframes mimi-celebrate {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.08) rotate(-6deg); }
  75% { transform: scale(1.08) rotate(6deg); }
}
.cust-empty-mascot-eyes {
  position: absolute;
  left: 0;
  right: 0;
  top: 38%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.cust-empty-eye {
  position: relative;
  width: 11px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff 0%, #f1f5f9 100%);
  box-shadow:
    inset 0 -1px 1px rgba(0,0,0,0.12),
    0 1px 2px rgba(0,0,0,0.15);
  transform-origin: center 60%;
  animation: cust-empty-blink 5s ease-in-out infinite;
}
.cust-empty-eye--r {
  animation-delay: 0.04s;
}
.mascot-theme-root[data-mascot-eye="none"]:not([style*="--cos-eye-color"]) .cust-empty-eye::after {
  content: none;
}
.mascot-theme-root[data-mascot-eye="none"]:not([style*="--cos-eye-color"]) .cust-empty-eye--r {
  background: #2563eb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.15);
}
.cust-empty-eye::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 6px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #334155 0%, #0f172a 65%);
  box-shadow: 0 0 0 0.5px rgba(255,255,255,0.4);
}
@keyframes cust-empty-blink {
  0%, 38%, 41%, 42%, 45%, 76%, 79%, 80%, 83%, 100% {
    transform: scaleY(1);
    opacity: 1;
  }
  39%, 40% {
    transform: scaleY(0.1);
    opacity: 0.88;
  }
  77%, 78% {
    transform: scaleY(0.1);
    opacity: 0.88;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cust-empty-mascot {
    transition: none;
  }
  .cust-empty-eye {
    animation: none !important;
  }
  .cust-empty-aurora--a,
  .cust-empty-aurora--b,
  .cust-empty-aurora--c {
    animation: none !important;
  }
}
[data-theme="dark"] .cust-empty-stage {
  background: var(--bg-3);
}
.cust-empty-text { font-size:14px; font-weight:600; color: var(--text-2); position: relative; z-index: 1; }
.cust-empty-sub  { font-size:12px; position: relative; z-index: 1; max-width: 320px; line-height: 1.45; }
.cust-empty-bubble {
  position: relative;
  z-index: 1;
  max-width: 340px;
  margin: 0 auto;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 12%, var(--bg-2));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.cust-empty-bubble--pop {
  opacity: 1;
  transform: translateY(0) scale(1);
}
[data-theme="dark"] .cust-empty-bubble {
  background: color-mix(in srgb, var(--accent) 18%, var(--bg-3));
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
[data-mood-color="off"] .cust-empty-blob {
  background: linear-gradient(
    145deg,
    var(--m-c0, #f5d0fe) 0%,
    var(--m-c1, #c084fc) 32%,
    var(--m-c2, #7c3aed) 62%,
    var(--m-c3, #4c1d95) 100%
  ) !important;
  filter: none !important;
}
[data-mood-color="off"][data-mood="celebrate"] .cust-empty-blob,
[data-mood-color="off"].cust-empty--mascot-celebrate .cust-empty-blob {
  box-shadow: inset 0 2px 14px rgba(255, 255, 255, 0.42) !important;
}
.global-mascot[data-mood-color="off"].global-mascot--sad .cust-empty-mascot,
.global-mascot[data-mood-color="off"].global-mascot--celebrate .cust-empty-mascot {
  filter: none !important;
}
.mascot-theme-root[data-mascot-idle="1"] .cust-empty-eye,
#cust-empty[data-mascot-idle="1"] .cust-empty-eye {
  animation-duration: 8.5s;
}
.global-mascot[data-call-heat="off"] .cust-empty-mascot,
#cust-empty[data-call-heat="off"] .cust-empty-mascot {
  filter: none;
}
