.storyPortrait{position:relative}
.catReactionBubble{position:absolute;bottom:calc(100% + 14px);left:50%;transform:translateX(-50%);white-space:nowrap;padding:16px 23px;border:1px solid #c5a46b;border-radius:30px;background:#183744;color:#f7e4bf;font:30px/1.3 Georgia;box-shadow:0 8px 24px #0003;pointer-events:none;z-index:2}
.catReactionBubble:after{content:'';position:absolute;left:35%;bottom:-10px;width:18px;height:18px;transform:rotate(45deg);background:#183744;border-right:1px solid #c5a46b;border-bottom:1px solid #c5a46b}
.mouseCheeseAside{text-align:center;font-style:italic;color:#d9bd82}
@media(max-height:760px),(max-width:850px){.catReactionBubble{bottom:auto;top:8px;font-size:18px;padding:8px 15px}}
.panel.storyTalk.hasCatReaction{overflow:visible}

.leoReactionBubble{font-size:22px;white-space:normal;width:260px;text-align:center;padding:14px 18px}
@media(max-height:760px),(max-width:850px){.leoReactionBubble{font-size:15px;width:170px;top:4px;padding:7px 10px}}
#leoWorldReaction{position:fixed;transform:translate(-50%,-100%);max-width:240px;padding:12px 17px;border-radius:22px;border:1px solid #c5a46b;background:#183744;color:#f7e4bf;font:18px/1.35 Georgia;text-align:center;pointer-events:none;z-index:12}
#leoWorldReaction:after{content:'';position:absolute;bottom:-9px;left:48%;width:16px;height:16px;transform:rotate(45deg);background:#183744;border-right:1px solid #c5a46b;border-bottom:1px solid #c5a46b}
.workComicBubble{display:table;margin:12px auto 18px!important;padding:12px 20px;border:1px solid #bca16c;border-radius:24px;background:#183744;color:#f7e4bf!important;max-width:90%;font:18px/1.35 Georgia!important;text-align:center}
/* Keep the groom's puzzle reaction within the same book-paper layout. */
.groomMessage.workComicBubble{max-width:92%;margin:16px auto!important}
.snakeMessage.workComicBubble{max-width:92%;margin:14px auto!important}
.rubelMessage.workComicBubble{max-width:92%;margin:14px auto!important}
/* On short PC windows, keep speech above faces, not inside the portrait. */
@media(min-width:851px) and (max-height:760px){.catReactionBubble,.leoReactionBubble{top:auto;bottom:calc(100% + 14px)}}
/* Compact landscape: keep speech with its portrait, clear of faces and controls. */
@media(max-width:1100px) and (max-height:600px){
 .storyPortrait .catReactionBubble{position:relative;display:block;top:auto;bottom:auto;left:auto;transform:none;box-sizing:border-box;width:100%;max-width:100%;white-space:normal;font-size:13px;line-height:1.35;padding:7px 6px;margin:10px 0 0;border-radius:14px}
 .storyPortrait .catReactionBubble:after{top:-6px;bottom:auto;left:45%;width:10px;height:10px;border:0;border-top:1px solid #c5a46b;border-left:1px solid #c5a46b}
}
