/* Hand-drawn smoke; three softly layered curls rise and evaporate without a burst. */
.roach-smoke {
  position:absolute;left:-90px;top:-150px;z-index:3;width:180px;height:164px;
  pointer-events:none;overflow:visible;opacity:0;color:#dce7cf;
  transform:scale(clamp(.8,var(--roach-scale),1.45));
  transform-origin:center 91%;mix-blend-mode:screen;
}
.roach-smoke .smoke-wisp {opacity:0;transform-box:view-box;transform-origin:50% 91%}
.roach-interaction.removed .roach-smoke {opacity:1}
.roach-interaction.removed .smoke-haze {animation:roach-smoke-haze 1.72s cubic-bezier(.16,.55,.21,1) both}
.roach-interaction.removed .smoke-one {animation:roach-smoke-curl 1.77s cubic-bezier(.18,.53,.3,1) .03s both}
.roach-interaction.removed .smoke-two {animation:roach-smoke-drift 1.86s cubic-bezier(.23,.58,.34,1) .10s both}
.roach-interaction.removed .smoke-thread {animation:roach-smoke-curl 1.48s ease-out .17s both}
@keyframes roach-smoke-haze {
  0% {opacity:0;transform:translate(0,11px) scale(.52,.39)}
  29% {opacity:.73}
  55% {opacity:.47;transform:translate(-8px,-12px) scale(.91,.92)}
  100% {opacity:0;transform:translate(-20px,-36px) scale(1.21,1.17)}
}
@keyframes roach-smoke-curl {
  0% {opacity:0;transform:translate(0,9px) scale(.55,.44) rotate(4deg)}
  32% {opacity:.88}
  66% {opacity:.36;transform:translate(4px,-17px) scale(.99,1.01) rotate(-8deg)}
  100% {opacity:0;transform:translate(13px,-38px) scale(1.16,1.21) rotate(-14deg)}
}
@keyframes roach-smoke-drift {
  0% {opacity:0;transform:translate(0,5px) scale(.59,.48) rotate(-4deg)}
  36% {opacity:.66}
  70% {opacity:.30;transform:translate(-10px,-19px) scale(1.04,1.02) rotate(7deg)}
  100% {opacity:0;transform:translate(-17px,-33px) scale(1.18,1.17) rotate(10deg)}
}
@media(prefers-reduced-motion:reduce){
  .roach-interaction.removed .roach-smoke {display:none}
  .roach-interaction.removed .smoke-wisp {animation:none}
}

/* Caption coordinates live in the same 1672 × 941 image as the bug-bearing leaf. */
.roach-interaction .roach-message {
  position:absolute;top:0;bottom:auto;left:0;width:0;height:0;max-width:none;
  transform:none;text-shadow:none;filter:none;overflow:visible;
}
.roach-interaction.removed .roach-message {animation:none}
.roach-caption-svg {
  position:absolute;width:calc(1672px * var(--roach-scale));height:calc(941px * var(--roach-scale));
  left:calc(-1000px * var(--roach-scale));top:calc(-420px * var(--roach-scale));
  display:block;overflow:visible;pointer-events:none;visibility:hidden;
}
.roach-interaction.removed .roach-caption-svg {visibility:visible}
.roach-caption-svg text {
  fill:#fbffe9;stroke:#142016;stroke-width:3px;stroke-linejoin:round;
  paint-order:stroke fill;font:normal 20px "Marker Felt","Segoe Print",Manrope,sans-serif;
  letter-spacing:.35px;
}
.roach-caption-svg tspan {opacity:0}
.roach-interaction.removed .roach-caption-svg tspan {
  animation:leaf-word-appear .23s ease-out calc(.20s + var(--i) * .049s) both;
}
@keyframes leaf-word-appear {from {opacity:0}to{opacity:1}}
@media(max-width:760px) {
  .roach-caption-svg text {font-size:27.5px;stroke-width:4px;letter-spacing:.1px}
}
@media(prefers-reduced-motion:reduce) {
  .roach-interaction.removed .roach-caption-svg tspan {opacity:1;animation:none}
}
