/* Allergen 10-12 (Opus, Nov 9, NEW, refine of 4). Distinct interaction flavors
   on top of the shared velvet + iMessage chrome. */

/* 10 · iMessage velvet: the most literal text thread on keeper 4's plum */
html[data-v-ldallergy="10"] #menu .unified-allergy.ld-allergy {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 1px rgba(212,168,67,.18), 0 30px 60px -32px rgba(45,25,40,.8);
}
html[data-v-ldallergy="10"] .ld-allergy-btn { padding-top: 1.35rem; }
html[data-v-ldallergy="10"] .ld-allergy-copy { border-radius: 20px 20px 20px 6px; }
html[data-v-ldallergy="10"] .lda-im-msg { border-radius: 20px 20px 20px 6px; }
html[data-v-ldallergy="10"] .lda-im-typing { border-radius: 16px 16px 16px 6px; }
html[data-v-ldallergy="10"] .ld-allergy-icons { padding: .5rem .8rem .55rem; }
html[data-v-ldallergy="10"]:not(.glz-static) .ld-allergy.is-lit .lda-ico-art img {
  animation: lda10-soft 2.8s ease-in-out calc(var(--i, 0) * 120ms + 800ms) infinite;
}
@keyframes lda10-soft {
  0%, 100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(0,-2px,0); }
}

/* 11 · Night text: darker cinema velvet, a bigger rise, a slow warning glow */
html[data-v-ldallergy="11"] #menu .unified-allergy.ld-allergy {
  background: radial-gradient(120% 140% at 8% 0%, #5A204F 0%, #341428 48%, #160810 100%) !important;
  border-color: rgba(226, 188, 96, .62) !important;
  box-shadow: inset 0 1px 0 rgba(255, 232, 180, .12), 0 0 0 1px rgba(212,168,67,.22), 0 36px 70px -28px rgba(0,0,0,.85);
}
html[data-v-ldallergy="11"] .ld-allergy-copy,
html[data-v-ldallergy="11"] .lda-im-msg {
  background: #FFF8EC; border-color: rgba(226, 188, 96, .7);
  box-shadow: 0 18px 36px -20px rgba(0,0,0,.7);
}
html[data-v-ldallergy="11"] .ld-allergy-avatar::after {
  content: ""; position: absolute; inset: -18%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(226, 188, 96, .42), rgba(226, 188, 96, 0));
  pointer-events: none;
}
html[data-v-ldallergy="11"] .lda-ico-ban { filter: drop-shadow(0 0 5px rgba(255, 86, 66, .85)); }
html[data-v-ldallergy="11"]:not(.glz-static) .ld-allergy.is-lit .lda-ico-ban {
  animation: lda11-glow 2.2s ease-in-out calc(var(--i, 0) * 140ms + 700ms) infinite;
}
@keyframes lda11-glow {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(255, 86, 66, .5)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 8px rgba(255, 86, 66, .95)); transform: scale(1.04); }
}
html[data-v-ldallergy="11"]:not(.glz-static) .ld-allergy.is-open .lda-im {
  animation-name: lda11-rise; animation-duration: .78s;
}
@keyframes lda11-rise {
  0% { opacity: 0; transform: translate3d(0, 28px, 0) scale(.9); }
  70% { opacity: 1; transform: translate3d(0, -4px, 0) scale(1.02); }
  100% { opacity: 1; transform: none; }
}
html[data-v-ldallergy="11"] .lda-im-time { color: #E8C46A; }

/* 12 · Spring chat: hover-lift tokens, Bonbon squash on open, lively bubbles */
html[data-v-ldallergy="12"] #menu .unified-allergy.ld-allergy {
  background: radial-gradient(130% 160% at 100% 0%, #7A356C 0%, #4A1942 46%, #2A1226 100%) !important;
}
html[data-v-ldallergy="12"] .ld-allergy-cta { border-radius: 999px; }
html[data-v-ldallergy="12"]:not(.glz-static) .ld-ico { transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
html[data-v-ldallergy="12"]:not(.glz-static) .ld-ico:hover { transform: translate3d(0, -5px, 0) scale(1.08); }
html[data-v-ldallergy="12"]:not(.glz-static) .ld-allergy.is-open .ld-allergy-avatar img {
  animation: lda12-pop .7s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes lda12-pop {
  0% { transform: scale(.82, 1.12) rotate(0deg); }
  55% { transform: scale(1.08, .92) rotate(-10deg); }
  100% { transform: scale(1) rotate(-7deg); }
}
html[data-v-ldallergy="12"]:not(.glz-static) .ld-allergy.lda-seq-msg1 .lda-msg1,
html[data-v-ldallergy="12"]:not(.glz-static) .ld-allergy.lda-seq-msg2 .lda-msg2 {
  animation-name: lda12-bub; animation-duration: .62s;
}
@keyframes lda12-bub {
  0% { opacity: 0; transform: translate3d(-16px, 16px, 0) scale(.7) rotate(-3deg); }
  68% { opacity: 1; transform: translate3d(0, -5px, 0) scale(1.05) rotate(.6deg); }
  100% { opacity: 1; transform: none; }
}
html[data-v-ldallergy="12"] .lda-ico-art img { box-shadow: 0 6px 14px -7px rgba(0,0,0,.6), 0 0 0 2px rgba(255,255,255,.12); }

@media (prefers-reduced-motion: reduce) {
  html[data-v-ldallergy="10"] .lda-ico-art img,
  html[data-v-ldallergy="11"] .lda-ico-ban,
  html[data-v-ldallergy="12"] .ld-ico,
  html[data-v-ldallergy="12"] .ld-allergy-avatar img { animation: none !important; transform: none !important; }
}
