/* Allergen 16-18 + 22-24 (Opus, Nov 9, NEW). Icon contrast flavors and
   interactive iMessage treatments in Opus's warmer, springier voice. */

/* 16 · Ink wells: cream glyphs, thick gold rings, a soft gold pulse */
html[data-v-ldallergy="16"] .lda-ico-art,
html[data-v-ldallergy="22"] .lda-ico-art {
  background: radial-gradient(circle at 32% 28%, #4A1D40 0%, #160810 75%);
  box-shadow:
    0 0 0 2.5px #E2BA5C,
    0 0 0 5px rgba(20, 6, 16, .9),
    inset 0 2px 3px rgba(255,255,255,.18),
    0 8px 14px -8px rgba(0,0,0,.75);
}
html[data-v-ldallergy="16"],
html[data-v-ldallergy="22"] {
  --lda-ico-fill: #FFF8EC;
  --lda-ico-stroke: #FFF1C8;
  --lda-ico-accent: #F3D58A;
}
html[data-v-ldallergy="16"]:not(.glz-static) .ld-allergy.is-lit .lda-ico-art,
html[data-v-ldallergy="22"]:not(.glz-static) .ld-allergy.is-lit .lda-ico-art {
  animation: lda16-ring 2.8s ease-in-out calc(var(--i, 0) * 140ms + 900ms) infinite;
}
@keyframes lda16-ring {
  0%, 100% { box-shadow: 0 0 0 2.5px #E2BA5C, 0 0 0 5px rgba(20,6,16,.9), inset 0 2px 3px rgba(255,255,255,.18), 0 8px 14px -8px rgba(0,0,0,.75); }
  50% { box-shadow: 0 0 0 3px #F3D58A, 0 0 0 7px rgba(226,186,96,.35), inset 0 2px 3px rgba(255,255,255,.22), 0 8px 16px -6px rgba(0,0,0,.7); }
}

/* 17 · Enamel pins: saturated wells, hover/tap lift, a quick shine */
html[data-v-ldallergy="17"],
html[data-v-ldallergy="24"] {
  --lda-ico-fill: #FFF8EC;
  --lda-ico-stroke: #FFF4D2;
  --lda-ico-accent: #F3D58A;
}
html[data-v-ldallergy="17"] .lda-ico-wheat, html[data-v-ldallergy="24"] .lda-ico-wheat { background: radial-gradient(circle at 32% 28%, #6B8A22, #2A3A0C); }
html[data-v-ldallergy="17"] .lda-ico-dairy, html[data-v-ldallergy="24"] .lda-ico-dairy { background: radial-gradient(circle at 32% 28%, #3A6EA8, #12243C); }
html[data-v-ldallergy="17"] .lda-ico-eggs, html[data-v-ldallergy="24"] .lda-ico-eggs { background: radial-gradient(circle at 32% 28%, #C4842A, #4A2A08); }
html[data-v-ldallergy="17"] .lda-ico-soy, html[data-v-ldallergy="24"] .lda-ico-soy { background: radial-gradient(circle at 32% 28%, #3E8A4A, #14341A); }
html[data-v-ldallergy="17"] .lda-ico-tree-nuts, html[data-v-ldallergy="24"] .lda-ico-tree-nuts { background: radial-gradient(circle at 32% 28%, #8A4A22, #3A1A0A); }
html[data-v-ldallergy="17"] .lda-ico-peanuts, html[data-v-ldallergy="24"] .lda-ico-peanuts { background: radial-gradient(circle at 32% 28%, #B87428, #4A2808); }
html[data-v-ldallergy="17"] .lda-ico-art,
html[data-v-ldallergy="24"] .lda-ico-art {
  box-shadow:
    0 0 0 2px #FFF8EC,
    0 0 0 4px #2D1928,
    inset 0 2px 4px rgba(255,255,255,.28),
    0 8px 14px -8px rgba(0,0,0,.7);
}
html[data-v-ldallergy="17"]:not(.glz-static) .ld-ico,
html[data-v-ldallergy="24"]:not(.glz-static) .ld-ico {
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}
html[data-v-ldallergy="17"]:not(.glz-static) .ld-ico:hover,
html[data-v-ldallergy="17"]:not(.glz-static) .ld-ico:active,
html[data-v-ldallergy="24"]:not(.glz-static) .ld-ico:hover,
html[data-v-ldallergy="24"]:not(.glz-static) .ld-ico:active {
  transform: translate3d(0, -5px, 0) scale(1.08);
}

/* 18 · Warning medals: cream well, heavy plum glyph, slash nudges then pulses */
html[data-v-ldallergy="18"],
html[data-v-ldallergy="23"] {
  --lda-ico-fill: #4A1942;
  --lda-ico-stroke: #1A0814;
  --lda-ico-accent: #8A1540;
}
html[data-v-ldallergy="18"] .lda-ico-art,
html[data-v-ldallergy="23"] .lda-ico-art {
  background: radial-gradient(circle at 32% 28%, #FFF8EC, #F0D9A8);
  box-shadow:
    0 0 0 3px #2D1928,
    0 0 0 6px #D4A843,
    inset 0 2px 3px rgba(255,255,255,.7),
    0 8px 14px -8px rgba(0,0,0,.65);
}
html[data-v-ldallergy="18"] .ld-ico-name,
html[data-v-ldallergy="23"] .ld-ico-name { color: #FFF8EC; }
html[data-v-ldallergy="18"]:not(.glz-static) .ld-allergy.is-lit .lda-ico-ban,
html[data-v-ldallergy="23"]:not(.glz-static) .ld-allergy.is-lit .lda-ico-ban {
  animation: lda18-nudge .7s cubic-bezier(.16, 1, .3, 1) calc(var(--i, 0) * 90ms + 600ms) both,
             lda18-pulse 2.4s ease-in-out calc(var(--i, 0) * 90ms + 1.4s) infinite;
}
@keyframes lda18-nudge {
  0% { transform: rotate(0deg) scale(1); }
  35% { transform: rotate(-14deg) scale(1.08); }
  70% { transform: rotate(8deg) scale(1.02); }
  100% { transform: rotate(0deg) scale(1); }
}
@keyframes lda18-pulse {
  0%, 100% { filter: drop-shadow(0 1px 1px rgba(0,0,0,.45)); }
  50% { filter: drop-shadow(0 0 6px rgba(224, 36, 32, .85)); }
}

/* 22 · Velvet tapbacks: 10's iMessage velvet + classic blue composer */
html[data-v-ldallergy="22"] #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="22"] .ld-allergy-copy,
html[data-v-ldallergy="22"] .lda-in { border-radius: 20px 20px 20px 6px; }
html[data-v-ldallergy="22"] .lda-im-typing { border-radius: 16px 16px 16px 6px; }

/* 23 · Night tapbacks: cinematic velvet, spotlight, glowing slash */
html[data-v-ldallergy="23"] #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="23"] .ld-allergy-copy,
html[data-v-ldallergy="23"] .lda-in {
  background: #FFF8EC; border-color: rgba(226, 188, 96, .7);
  box-shadow: 0 18px 36px -20px rgba(0,0,0,.7);
}
html[data-v-ldallergy="23"] .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="23"] .lda-im-time { color: #E8C46A; }
html[data-v-ldallergy="23"] .lda-out { background: #3B8CFF; }
html[data-v-ldallergy="23"]:not(.glz-static) .ld-allergy.is-open .lda-im {
  animation-name: lda23-rise; animation-duration: .78s;
}
@keyframes lda23-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; }
}

/* 24 · Spring tapbacks: hover-lift tokens, Bonbon squash, lively bubbles */
html[data-v-ldallergy="24"] #menu .unified-allergy.ld-allergy {
  background: radial-gradient(130% 160% at 100% 0%, #7A356C 0%, #4A1942 46%, #2A1226 100%) !important;
}
html[data-v-ldallergy="24"] .ld-allergy-cta { border-radius: 999px; }
html[data-v-ldallergy="24"]:not(.glz-static) .ld-allergy.is-open .ld-allergy-avatar img {
  animation: lda24-pop .7s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes lda24-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="24"]:not(.glz-static) .ld-allergy.lda-seq-msg1 .lda-msg1,
html[data-v-ldallergy="24"]:not(.glz-static) .ld-allergy.lda-seq-msg2 .lda-msg2,
html[data-v-ldallergy="24"]:not(.glz-static) .lda-out-in {
  animation-name: lda24-bub; animation-duration: .62s;
}
@keyframes lda24-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; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-v-ldallergy="16"] .lda-ico-art,
  html[data-v-ldallergy="17"] .ld-ico,
  html[data-v-ldallergy="18"] .lda-ico-ban,
  html[data-v-ldallergy="22"] .lda-ico-art,
  html[data-v-ldallergy="23"] .lda-ico-ban,
  html[data-v-ldallergy="23"] .lda-im,
  html[data-v-ldallergy="24"] .ld-ico,
  html[data-v-ldallergy="24"] .ld-allergy-avatar img {
    animation: none !important; transform: none !important;
  }
}

/* 28 · Porcelain glaze: sheen sweep, thicker gold bevel, staggered coin-drop */
html[data-v-ldallergy="28"] .lda-ico-art {
  box-shadow:
    0 0 0 1.5px #5A3A10,
    0 0 0 3.5px #F0C85A,
    0 0 0 5px #2D1928,
    inset 0 3px 5px rgba(255,255,255,1),
    inset 0 -3px 4px rgba(120, 80, 20, .35),
    0 12px 18px -10px rgba(0,0,0,.7);
}
html[data-v-ldallergy="28"] .lda-ico-art::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%;
  background: linear-gradient(115deg, transparent 28%, rgba(255,255,255,.72) 48%, transparent 64%);
  background-size: 220% 100%;
  pointer-events: none; z-index: 3;
}
html[data-v-ldallergy="28"]:not(.glz-static) .ld-allergy.is-lit .lda-ico-art::after {
  animation: lda28-sheen 2.8s ease-in-out calc(var(--i, 0) * 160ms + 700ms) infinite;
}
@keyframes lda28-sheen {
  0%, 100% { background-position: 120% 0; opacity: .15; }
  40%, 60% { background-position: -20% 0; opacity: .9; }
}
html[data-v-ldallergy="28"]:not(.glz-static) .ld-allergy.is-lit .ld-ico {
  animation: lda28-drop .78s cubic-bezier(.16, 1, .3, 1) calc(var(--i, 0) * 90ms + 80ms) both;
}
@keyframes lda28-drop {
  0% { opacity: 0; transform: translate3d(0, -22px, 0) scale(.72); }
  68% { opacity: 1; transform: translate3d(0, 4px, 0) scale(1.06); }
  100% { opacity: 1; transform: none; }
}

/* 29 · Tilted mint: 3D hover/tap tilt, richer porcelain, springy lift */
html[data-v-ldallergy="29"] .lda-ico-art {
  background:
    radial-gradient(circle at 28% 22%, #FFFFFF 0%, #FFF6E6 38%, #EDD7B0 72%, #D4B47A 100%);
  box-shadow:
    0 0 0 1px #6B4A12,
    0 0 0 3px #E2BA5C,
    0 0 0 4px #2D1928,
    inset 0 4px 5px rgba(255,255,255,.98),
    inset 0 -3px 5px rgba(90, 50, 10, .32),
    0 10px 16px -8px rgba(0,0,0,.65);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}
html[data-v-ldallergy="29"]:not(.glz-static) .ld-ico:hover .lda-ico-art,
html[data-v-ldallergy="29"]:not(.glz-static) .ld-ico:active .lda-ico-art {
  transform: translate3d(0, -5px, 0) rotate(-7deg) scale(1.1);
}
html[data-v-ldallergy="29"]:not(.glz-static) .ld-allergy.is-lit .ld-ico {
  animation: lda29-tilt-in .8s cubic-bezier(.16, 1, .3, 1) calc(var(--i, 0) * 85ms + 60ms) both;
}
@keyframes lda29-tilt-in {
  0% { opacity: 0; transform: translate3d(0, 16px, 0) rotate(10deg) scale(.7); }
  70% { opacity: 1; transform: translate3d(0, -4px, 0) rotate(-5deg) scale(1.08); }
  100% { opacity: 1; transform: none; }
}
html[data-v-ldallergy="29"] .ld-allergy-copy,
html[data-v-ldallergy="29"] .lda-in { border-radius: 20px 20px 20px 6px; }

/* 30 · Halo coins: double gold rim, slightly larger coins, one gold pulse */
html[data-v-ldallergy="30"] .lda-ico-art {
  width: 56px; height: 56px;
  box-shadow:
    0 0 0 2px #FFF8EC,
    0 0 0 4px #E2BA5C,
    0 0 0 6px #2D1928,
    0 0 0 8px rgba(226, 186, 96, .35),
    inset 0 3px 4px rgba(255,255,255,.95),
    inset 0 -2px 3px rgba(120, 80, 20, .28),
    0 10px 16px -8px rgba(0,0,0,.65);
}
html[data-v-ldallergy="30"] .lda-ico-art .lda-glyph,
html[data-v-ldallergy="30"] .ld-ico svg.lda-glyph { width: 42px; height: 42px; }
html[data-v-ldallergy="30"]:not(.glz-static) .ld-allergy.is-lit .lda-ico-art {
  animation: lda30-halo 1.8s ease-in-out calc(var(--i, 0) * 110ms + 700ms) 1 both;
}
@keyframes lda30-halo {
  0%, 100% { box-shadow: 0 0 0 2px #FFF8EC, 0 0 0 4px #E2BA5C, 0 0 0 6px #2D1928, 0 0 0 8px rgba(226,186,96,.35), inset 0 3px 4px rgba(255,255,255,.95), inset 0 -2px 3px rgba(120,80,20,.28), 0 10px 16px -8px rgba(0,0,0,.65); }
  45% { box-shadow: 0 0 0 2px #FFF8EC, 0 0 0 4px #F3D58A, 0 0 0 6px #2D1928, 0 0 0 12px rgba(226,186,96,.6), inset 0 3px 4px rgba(255,255,255,.95), inset 0 -2px 3px rgba(120,80,20,.28), 0 10px 18px -6px rgba(0,0,0,.7); }
}
@media (max-width: 479.98px) {
  html[data-v-ldallergy="30"] .lda-ico-art { width: 52px; height: 52px; }
  html[data-v-ldallergy="30"] .lda-ico-art .lda-glyph,
  html[data-v-ldallergy="30"] .ld-ico svg.lda-glyph { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-v-ldallergy="28"] .lda-ico-art::after,
  html[data-v-ldallergy="28"] .ld-ico,
  html[data-v-ldallergy="29"] .lda-ico-art,
  html[data-v-ldallergy="29"] .ld-ico,
  html[data-v-ldallergy="30"] .lda-ico-art {
    animation: none !important; transform: none !important;
  }
}
