/* ==========================================================================
   EXC STUDIOS — 2.5D Digital Mascot Engine v1.0
   Autonomous, interactive companion based on sprite rig segmentation
   Domain: excstudios.dev
   ========================================================================== */

:root {
  --exc-ice: #8bdeff;
  --exc-cyan: #00e5ff;
  --exc-cyan-glow: rgba(0, 229, 255, 0.45);
  --exc-cyan-intense: rgba(0, 229, 255, 0.85);
  --exc-navy: #091323;
  --exc-dark-bg: rgba(9, 14, 24, 0.94);
  --exc-border: rgba(0, 229, 255, 0.25);
  --exc-white: #eefaff;
  --exc-t2: #9cb3c9;
}

/* Master Mascot Container */
.exc-mascot,
.exc-mascot * {
  box-sizing: border-box;
}

.exc-mascot {
  position: fixed;
  right: clamp(14px, 2.5vw, 28px);
  bottom: clamp(14px, 2.5vw, 24px);
  width: clamp(135px, 11vw, 165px);
  z-index: 950; /* Above regular content, below headers (1000) and modals (2000) */
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  color: var(--exc-white);
  -webkit-tap-highlight-color: transparent;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.exc-mascot[data-ready="false"] { visibility: hidden; }
.exc-mascot[data-obstructing="true"] { visibility: hidden; }

/* Dim when site modals or mobile drawer are open to prevent overlapping controls */
body:has(#mobileNavDrawer.is-open) .exc-mascot,
body:has(.modal-overlay.is-open) .exc-mascot,
body.has-open-overlay .exc-mascot {
  opacity: 0.12;
  pointer-events: none !important;
  transform: scale(0.92);
}

/* Stage Hitbox (aspect ratio matches sprite canvas 1152 x 1365) */
.exc-mascot .exc-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1152 / 1365;
  pointer-events: auto;
  cursor: pointer;
  outline: none;
  transition: filter 0.25s ease;
  filter: drop-shadow(0 10px 22px rgba(0, 229, 255, 0.2)) drop-shadow(0 0 14px rgba(0, 160, 255, 0.15));
}

.exc-mascot .exc-stage:hover,
.exc-mascot .exc-stage:focus-visible {
  filter: drop-shadow(0 12px 28px rgba(0, 229, 255, 0.45)) drop-shadow(0 0 22px rgba(0, 200, 255, 0.3));
}

.exc-mascot .exc-stage:focus-visible {
  outline: 2px solid var(--exc-cyan);
  outline-offset: 4px;
  border-radius: 28px;
}

/* 2.5D Perspective Orientation (yaw & roll driven by mouse or states) */
.exc-mascot .exc-orient {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateY(var(--exc-yaw, 0deg)) rotateZ(var(--exc-roll, 0deg));
  transition: transform 320ms cubic-bezier(0.2, 0.75, 0.3, 1);
  will-change: transform;
}

/* Whole-Body Float / Bobbing */
.exc-mascot .exc-float {
  position: absolute;
  inset: 0;
  animation: exc-bob 3.6s ease-in-out infinite;
  will-change: transform;
}

/* Individual Rig Parts (Stacked layers in 1152x1365 coordinate system) */
.exc-mascot .exc-part {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  transform-origin: var(--exc-px, 50%) var(--exc-py, 50%);
  will-change: transform;
}

/* Individual Idle Sub-Animations */
.exc-mascot .exc-part[data-part="ear_left"] {
  animation: exc-ear-left 4s ease-in-out infinite;
}

.exc-mascot .exc-part[data-part="ear_right"] {
  animation: exc-ear-right 3.4s ease-in-out infinite;
}

.exc-mascot .exc-part[data-part="arm_left"] {
  animation: exc-arm-left 3.8s ease-in-out infinite;
}

.exc-mascot .exc-part[data-part="arm_right"] {
  animation: exc-arm-right 4.2s ease-in-out infinite;
}

.exc-mascot .exc-part[data-part="eye_left"],
.exc-mascot .exc-part[data-part="eye_right"] {
  animation: exc-blink 6.3s ease-in-out infinite;
}

.exc-mascot .exc-part[data-part="eye_right"] {
  animation-delay: -0.08s;
}

.exc-mascot .exc-part[data-part="tail"] {
  animation: exc-tail 3.2s ease-in-out infinite;
}

/* Floating Digital Particles / Cyber Voxel Sparks */
.exc-mascot .exc-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.exc-mascot .exc-spark {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--exc-cyan);
  box-shadow: 0 0 9px var(--exc-cyan);
  border-radius: 1px;
  animation: exc-spark 3.4s ease-in-out infinite;
  left: var(--sx);
  top: var(--sy);
  animation-delay: var(--sd);
  pointer-events: none;
}

/* Speech Bubble (Dark Glassmorphism) */
.exc-mascot .exc-bubble {
  position: absolute;
  right: calc(100% - 10px);
  bottom: 56%;
  width: 275px;
  padding: 16px 18px;
  background: var(--exc-dark-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--exc-border);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75), 0 0 24px rgba(0, 229, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: auto;
  animation: exc-bubble-in 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.exc-mascot .exc-bubble[hidden],
.exc-mascot[hidden] {
  display: none !important;
}

/* Speech Bubble Tail */
.exc-mascot .exc-bubble::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 22px;
  width: 12px;
  height: 12px;
  background: var(--exc-dark-bg);
  border-top: 1px solid var(--exc-border);
  border-right: 1px solid var(--exc-border);
  transform: rotate(45deg);
}

/* ==========================================================================
   INTERACTIVE AI CHAT PANEL (Google Gemini Assistant)
   ========================================================================== */

.exc-mascot .exc-chat-panel {
  position: absolute;
  right: calc(100% - 10px);
  bottom: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 500px;
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  background: var(--exc-dark-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--exc-border);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 28px rgba(0, 229, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  pointer-events: auto;
  overflow: hidden;
  animation: exc-bubble-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.exc-mascot .exc-chat-panel[hidden] {
  display: none !important;
}

/* Chat Header */
.exc-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.exc-chat-title-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
}

.exc-chat-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

.exc-chat-title-text {
  display: flex;
  flex-direction: column;
}

.exc-chat-title {
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--exc-cyan);
  text-transform: uppercase;
}

.exc-chat-status {
  font-size: 9.5px;
  color: #7998b4;
  display: flex;
  align-items: center;
  gap: 4px;
}

.exc-chat-status::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.exc-chat-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.exc-chat-btn-icon {
  background: transparent;
  border: 0;
  color: var(--exc-t2);
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.15s ease;
  line-height: 1;
}

.exc-chat-btn-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Chat Messages Stream */
.exc-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.exc-chat-body::-webkit-scrollbar {
  width: 4px;
}
.exc-chat-body::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.25);
  border-radius: 4px;
}

/* Message Bubble */
.exc-chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 88%;
  animation: exc-msg-in 0.2s ease-out both;
}

@keyframes exc-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.exc-chat-msg.bot {
  align-self: flex-start;
}

.exc-chat-msg.user {
  align-self: flex-end;
}

.exc-msg-bubble {
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.48;
  word-break: break-word;
}

.exc-chat-msg.bot .exc-msg-bubble {
  background: rgba(14, 23, 38, 0.88);
  border: 1px solid rgba(0, 229, 255, 0.22);
  color: #eaf5ff;
  border-bottom-left-radius: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.exc-chat-msg.user .exc-msg-bubble {
  background: linear-gradient(135deg, rgba(0, 160, 255, 0.35), rgba(0, 229, 255, 0.2));
  border: 1px solid rgba(0, 229, 255, 0.45);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.exc-msg-bubble a {
  color: var(--exc-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.exc-msg-bubble a:hover {
  color: #ffffff;
}

/* Prompt Chips */
.exc-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.exc-chip {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: #c9e8fa;
  border-radius: 12px;
  padding: 5px 9px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.exc-chip:hover {
  background: rgba(0, 229, 255, 0.2);
  border-color: rgba(0, 229, 255, 0.55);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Typing / Thinking Indicator */
.exc-typing-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  background: rgba(14, 23, 38, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 12px;
  width: fit-content;
  color: #9cb9d3;
  font-size: 11px;
}

.exc-typing-dots {
  display: inline-flex;
  gap: 3px;
}

.exc-typing-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--exc-cyan);
  animation: exc-typing-bounce 1.2s infinite ease-in-out;
}

.exc-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.exc-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes exc-typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

/* Chat Input Bar */
.exc-chat-footer {
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 12, 20, 0.95);
}

.exc-chat-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 12px;
  padding: 3px 6px 3px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.exc-chat-form:focus-within {
  border-color: var(--exc-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}

.exc-chat-input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 12.5px;
  padding: 7px 0;
}

.exc-chat-input::placeholder {
  color: #6d8ba6;
}

.exc-chat-send {
  background: var(--exc-cyan);
  border: 0;
  color: #030812;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.exc-chat-send:hover:not(:disabled) {
  background: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 0 10px var(--exc-cyan);
}

.exc-chat-send:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.exc-chat-disclaimer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 9.5px;
  color: #5c7994;
}

.exc-mascot .exc-bubble strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--exc-cyan);
  margin-bottom: 8px;
}

.exc-mascot .exc-bubble strong::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--exc-cyan);
  box-shadow: 0 0 6px var(--exc-cyan);
}

.exc-mascot .exc-bubble p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #eaf5ff;
  font-weight: 400;
}

.exc-mascot .exc-close {
  position: absolute;
  top: 8px;
  right: 8px;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: var(--exc-t2);
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.exc-mascot .exc-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* Quick Navigation Links */
.exc-mascot .exc-links {
  display: grid;
  gap: 6px;
}

.exc-mascot .exc-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #d9f0fd;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.exc-mascot .exc-links a:hover {
  background: rgba(0, 229, 255, 0.14);
  border-color: rgba(0, 229, 255, 0.45);
  color: #ffffff;
  transform: translateX(-2px);
  box-shadow: 0 4px 12px rgba(0, 229, 255, 0.15);
}

/* Dismiss (Hide) Mascot Button */
.exc-mascot .exc-dismiss {
  position: absolute;
  right: 0;
  top: 2px;
  background: rgba(7, 16, 26, 0.85);
  backdrop-filter: blur(8px);
  color: var(--exc-t2);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0.35;
  transition: opacity 0.2s, transform 0.2s, color 0.2s;
  padding: 0;
}

.exc-mascot:hover .exc-dismiss,
.exc-mascot .exc-dismiss:focus-visible {
  opacity: 1;
}

.exc-mascot .exc-dismiss:hover {
  color: #ffffff;
  border-color: rgba(0, 229, 255, 0.6);
  transform: scale(1.1);
}

/* Sleep Zzz Indicator */
.exc-mascot .exc-zzz {
  position: absolute;
  left: 60%;
  top: 16%;
  font-family: ui-monospace, "SF Mono", monospace;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--exc-cyan);
  text-shadow: 0 0 10px var(--exc-cyan);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* Restore Mascot Pill (Visible only when mascot was hidden by user) */
.exc-restore-pill {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 940;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(9, 14, 24, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--exc-border);
  color: var(--exc-ice);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-family: ui-monospace, "SF Mono", monospace;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 14px rgba(0, 229, 255, 0.15);
  transition: all 0.2s ease;
}

.exc-restore-pill:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--exc-cyan);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   STATE ANIMATIONS
   idle, welcome, curious, happy, thinking, sleeping, talking, error, teleport
   ========================================================================== */

/* State: Welcome (Left arm wave) */
.exc-mascot[data-state="welcome"] .exc-part[data-part="arm_left"] {
  animation: exc-wave 0.45s ease-in-out 5 alternate;
}

/* State: Happy (Cheer hop + ear wiggles) */
.exc-mascot[data-state="happy"] .exc-float {
  animation: exc-cheer 0.52s ease-in-out 3;
}
.exc-mascot[data-state="happy"] .exc-part[data-part="ear_left"] {
  animation: exc-ear-left 0.2s ease-in-out 5;
}
.exc-mascot[data-state="happy"] .exc-part[data-part="ear_right"] {
  animation: exc-ear-right 0.2s ease-in-out 5;
}

/* State: Curious (Fast orientation response) */
.exc-mascot[data-state="curious"] .exc-orient {
  transition-duration: 0.18s;
}

/* State: Sleeping (Dimmed glow, squinted eyes, slow float, Zzz) */
.exc-mascot[data-state="sleeping"] .exc-part[data-part="eye_left"],
.exc-mascot[data-state="sleeping"] .exc-part[data-part="eye_right"] {
  animation: none;
  transform: scaleY(0.1);
}
.exc-mascot[data-state="sleeping"] .exc-float {
  animation-duration: 7.5s;
  filter: brightness(0.65);
}
.exc-mascot[data-state="sleeping"] .exc-zzz {
  opacity: 1;
  animation: exc-bob 2.6s ease-in-out infinite;
}
.exc-mascot[data-state="sleeping"] .exc-spark {
  display: none;
}

/* State: Thinking (Thoughtful angle tilt) */
.exc-mascot[data-state="thinking"] .exc-orient {
  transform: perspective(900px) rotateZ(-5deg) !important;
}

/* State: Talking (Faster float cycle) */
.exc-mascot[data-state="talking"] .exc-float {
  animation-duration: 1.35s;
}

/* State: Error (Shiver side-to-side, amber/red sparkle shift) */
.exc-mascot[data-state="error"] .exc-orient {
  animation: exc-shiver 0.16s linear 6;
}
.exc-mascot[data-state="error"] .exc-particles {
  filter: hue-rotate(145deg);
}

/* ==========================================================================
   KEYFRAME DEFINITIONS
   ========================================================================== */

@keyframes exc-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes exc-ear-left {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(-3deg); }
}

@keyframes exc-ear-right {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(3deg); }
}

@keyframes exc-arm-left {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(-2.2deg); }
}

@keyframes exc-arm-right {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(2deg); }
}

@keyframes exc-tail {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(2.5deg); }
}

@keyframes exc-blink {
  0%, 4%, 6%, 48%, 50%, 100% { transform: scaleY(1); }
  5% { transform: scaleY(0.07); }
  49% { transform: scaleY(0.12); }
}

@keyframes exc-wave {
  from { transform: rotate(-5deg); }
  to { transform: rotate(-22deg); }
}

@keyframes exc-cheer {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-22px) scale(1.04); }
}

@keyframes exc-shiver {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@keyframes exc-spark {
  0%, 100% { opacity: 0; transform: translateY(8px) scale(0.5); }
  30%, 60% { opacity: 0.9; }
  75% { transform: translateY(-16px) scale(1.1); }
}

@keyframes exc-bubble-in {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Mobile <= 768px)
   ========================================================================== */

@media (max-width: 768px) {
  .exc-mascot {
    width: clamp(90px, 22vw, 110px);
    right: max(12px, env(safe-area-inset-right, 12px));
    bottom: max(12px, env(safe-area-inset-bottom, 12px));
  }

  .exc-mascot .exc-chat-panel {
    position: fixed;
    right: 12px;
    bottom: 125px;
    left: 12px;
    width: auto;
    max-width: calc(100vw - 24px);
    height: min(480px, calc(100vh - 145px));
  }

  .exc-mascot .exc-bubble {
    right: calc(100% - 24px);
    width: min(255px, calc(100vw - 80px));
    bottom: 54%;
    padding: 13px 15px;
  }

  .exc-mascot .exc-bubble p {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .exc-mascot .exc-links a {
    padding: 6px 9px;
    font-size: 11px;
  }

  /* Show only 3 particles on mobile to minimize GPU load */
  .exc-mascot .exc-spark:nth-child(n+4) {
    display: none;
  }
}

/* ==========================================================================
   ACCESSIBILITY: PREFERS-REDUCED-MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .exc-mascot .exc-float,
  .exc-mascot .exc-part,
  .exc-mascot .exc-spark,
  .exc-mascot .exc-zzz,
  .exc-mascot .exc-orient,
  .exc-mascot .exc-bubble {
    animation: none !important;
    transition: none !important;
  }

  .exc-mascot[data-state="sleeping"] .exc-part[data-part="eye_left"],
  .exc-mascot[data-state="sleeping"] .exc-part[data-part="eye_right"] {
    transform: none;
  }
}

body:has(.modal-overlay.is-open) .exc-mascot,body:has(#mobileNavDrawer.is-open) .exc-mascot{visibility:hidden}
.exc-mascot[hidden]{display:none!important}
.exc-chat-body{min-height:0;overscroll-behavior:contain}
.exc-chat-disclaimer{line-height:1.45;gap:8px}
.exc-mascot .exc-close,.exc-chat-btn-icon,.exc-mascot .exc-dismiss{min-width:28px;min-height:28px}
@media(max-width:768px){.exc-mascot .exc-chat-panel{height:min(480px,calc(100dvh - 145px));max-height:calc(100dvh - 145px)}}
@media(prefers-reduced-motion:reduce){.exc-mascot *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.exc-chat-disclaimer{flex-wrap:wrap}.exc-char-count{flex-shrink:0}.exc-chat-disclaimer a{color:var(--exc-ice);text-decoration:underline}
