/* BonBon section bubbles (js/loops-say.js). Cream porcelain and gold, plum only for text. */
.lsay { display: flex; align-items: flex-end; gap: .5rem; margin: .9rem 0 .6rem; text-align: left; min-height: 44px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.lsay.is-in { opacity: 1; transform: none; }
.lsay-bb { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fffdf9; box-shadow: 0 0 0 1.5px #ecd7a4; display: grid; place-items: center; overflow: hidden; }
.lsay-bb img { width: 34px; height: 34px; object-fit: contain; }
.lsay-bub { position: relative; margin: 0; max-width: 300px; padding: .6rem .85rem; border-radius: 18px 18px 18px 6px; background: #fffdf9; color: #2D1928;
  box-shadow: 0 0 0 1px #ecd7a4, 0 8px 18px -14px rgba(59, 34, 22, .45); font: 500 .92rem/1.4 "DM Sans", system-ui, -apple-system, sans-serif; letter-spacing: 0; text-transform: none; }
.lsay-dots { display: inline-flex; gap: 4px; padding: .3rem 0; }
.lsay-dots i { width: 6px; height: 6px; border-radius: 50%; background: #b9a8b1; animation: lsayDot 1s infinite; }
.lsay-dots i:nth-child(2) { animation-delay: .15s; } .lsay-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes lsayDot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
.lsay.lsay-c { justify-content: center; }
/* The line sits under the dots from the start (hidden), so the bubble box never changes size.
   While BonBon types, only a small pill around the dots shows, by the tail; when he speaks it grows out to the full bubble
   and the words fade in. The paint is two clipped layers (gold ring on ::before, cream on ::after), so the growing is
   paint only: the bubble box never changes size and nothing on the page moves (no layout shift) (Loops, Nov 15). */
.lsay-bub { isolation: isolate; background: transparent; box-shadow: none; }
.lsay-bub::before, .lsay-bub::after { content: ""; position: absolute; z-index: -1; transition: clip-path .36s cubic-bezier(.2, .8, .2, 1); }
.lsay-bub::before { inset: -1px; border-radius: 19px 19px 19px 7px; background: #ecd7a4; box-shadow: 0 8px 18px -14px rgba(59, 34, 22, .45); clip-path: inset(0 -12px -24px -12px round 19px 19px 19px 7px); }
.lsay-bub::after { inset: 0; border-radius: 18px 18px 18px 6px; background: #fffdf9; clip-path: inset(0 0 0 0 round 18px 18px 18px 6px); }
.lsay-bub:not(.is-said)::before { clip-path: inset(calc(100% - 2.5rem - 2px) calc(100% - 3.7rem - 2px) 0 0 round 19px 19px 19px 7px); }
.lsay-bub:not(.is-said)::after { clip-path: inset(calc(100% - 2.5rem) calc(100% - 3.7rem) 0 0 round 18px 18px 18px 6px); }
.lsay-bub:not(.is-said) .lsay-txt { visibility: hidden; }
.lsay-bub:not(.is-said) .lsay-dots { position: absolute; left: .85rem; bottom: 0; height: min(100%, 2.5rem); align-items: center; padding: 0; }
.lsay-bub.is-said .lsay-dots { display: none; }
.lsay-bub.is-said .lsay-txt { animation: lsayIn .3s .12s ease-out both; }
@keyframes lsayIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lsay { opacity: 1; transform: none; transition: none; } .lsay-dots i, .lsay-bub.is-said .lsay-txt { animation: none; } .lsay-bub::before, .lsay-bub::after { transition: none; } }
