#intdev-elf {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99990;
  width: clamp(92px, 10vw, 128px);
  pointer-events: none;
  isolation: isolate;
  line-height: 1.3;
}
#intdev-elf .ie-trigger {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
  appearance: none;
  line-height: 0;
  touch-action: manipulation;
}
#intdev-elf .ie-trigger:focus-visible {
  outline: 2px solid #8d3340;
  outline-offset: -3px;
  border-radius: 12px;
}
#intdev-elf svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(-4px 5px 8px rgba(20, 18, 15, 0.14));
  transform-origin: right center;
}
#intdev-elf .ie-mouth-hover {display:none;}
#intdev-elf .ie-trigger:hover .ie-mouth-rest,
#intdev-elf.is-playing .ie-mouth-rest {display:none;}
#intdev-elf .ie-trigger:hover .ie-mouth-hover,
#intdev-elf.is-playing .ie-mouth-hover {
  display:inline;
  transform-box: fill-box;
  transform-origin:center;
  animation: ie-mouth-smile .42s ease-in-out infinite alternate;
}
#intdev-elf .ie-trigger:hover svg,
#intdev-elf.is-playing svg {animation: ie-elf-rock 2.2s ease-in-out infinite;}
#intdev-elf .ie-trigger:hover .ie-hat,
#intdev-elf.is-playing .ie-hat {
  transform-box: fill-box;
  transform-origin: 80% 92%;
  animation: ie-hat-wiggle 1.2s ease-in-out infinite;
}
#intdev-elf .ie-trigger:hover .ie-pompom,
#intdev-elf.is-playing .ie-pompom {
  transform-box: fill-box;
  transform-origin: center;
  animation: ie-pompom-bounce .95s ease-in-out infinite alternate;
}
#intdev-elf .ie-trigger:hover .ie-nose,
#intdev-elf.is-playing .ie-nose {
  transform-box: fill-box;
  transform-origin: center;
  animation: ie-nose-bob .55s ease-in-out infinite alternate;
}
#intdev-elf .ie-bubble {
  display:none;
  position:absolute;
  right: calc(100% + 24px);
  top: 14%;
  width: min(260px, calc(100vw - 150px));
  min-height: 118px;
  padding: 20px 22px;
  background: linear-gradient(180deg, #faf7f0 0%, #efe9dd 100%);
  color:#2c2a28;
  border:2px solid #2c2a28;
  border-radius: 34px;
  font: 700 18px/1.3 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align:center;
  display:none;
  align-items:center;
  justify-content:center;
  box-shadow:0 12px 28px rgba(20,18,15,0.14);
}
#intdev-elf.is-playing .ie-bubble {display:flex;}
#intdev-elf .ie-bubble::before {
  content:'';
  position:absolute;
  right:-16px;
  top:50%;
  width:28px;
  height:28px;
  margin-top:-14px;
  background: linear-gradient(135deg, #f8f4ec 0%, #ede7da 100%);
  border-top:2px solid #2c2a28;
  border-right:2px solid #2c2a28;
  border-radius: 0 10px 0 0;
  transform: rotate(45deg);
}

@keyframes ie-mouth-smile {
  from {transform: translateY(0) scale(1,1);}
  to {transform: translateY(-1px) scale(1.02,1.08);}
}
@keyframes ie-elf-rock {
  0%,100% {transform: rotate(0deg) translateX(0);}
  50% {transform: rotate(-2deg) translateX(-1px);}
}
@keyframes ie-hat-wiggle {
  0%,100% {transform: rotate(0deg);}
  30% {transform: rotate(3deg) translateY(-1px);}
  65% {transform: rotate(-2deg);}
}
@keyframes ie-pompom-bounce {
  from {transform: translateY(0) scale(1);}
  to {transform: translateY(-2px) scale(1.06);}
}
@keyframes ie-nose-bob {
  from {transform: translateX(0) rotate(0deg);}
  to {transform: translateX(-1px) rotate(-3deg);}
}
@media (max-width: 600px) {
  #intdev-elf {width:72px;}
  #intdev-elf .ie-bubble {
    right: calc(100% + 14px);
    top: 10%;
    width: min(220px, calc(100vw - 105px));
    min-height: 96px;
    padding: 16px 18px;
    font-size: 14px;
    border-radius: 28px;
  }
  #intdev-elf .ie-bubble::before {
    right:-12px;
    width:22px;
    height:22px;
    margin-top:-11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #intdev-elf .ie-trigger:hover svg,
  #intdev-elf.is-playing svg,
  #intdev-elf .ie-trigger:hover .ie-hat,
  #intdev-elf.is-playing .ie-hat,
  #intdev-elf .ie-trigger:hover .ie-pompom,
  #intdev-elf.is-playing .ie-pompom,
  #intdev-elf .ie-trigger:hover .ie-nose,
  #intdev-elf.is-playing .ie-nose,
  #intdev-elf .ie-trigger:hover .ie-mouth-hover,
  #intdev-elf.is-playing .ie-mouth-hover {animation:none;}
}

#intdev-elf .ie-bubble {box-sizing:border-box; flex-direction:column; gap:12px; font-size:16px; width:min(280px,calc(100vw - 165px));}
#intdev-elf .ie-count {color:#8d3340; font-weight:700;}
@media(max-width:600px){#intdev-elf .ie-bubble {width:min(220px,calc(100vw - 105px));font-size:14px;gap:9px;}}
