.room-taunt-icon{display:inline-block;width:2.1em;height:2.1em;flex:none}
.room-taunt-icon>svg{display:block;width:100%;height:100%;overflow:visible}
.room-taunt-burst{position:absolute;z-index:36;pointer-events:none;isolation:isolate;width:0;height:0}
.room-taunt-object{position:absolute;left:-26px;top:-26px;width:52px;height:52px;filter:drop-shadow(0 2px 2px #1e0816c4)}
.room-taunt-particle{position:absolute;left:-2px;top:-2px;width:5px;height:5px;border-radius:50%;box-shadow:0 0 4px var(--taunt-color)}
.room-taunt-burst[data-effect=sandal] .room-taunt-particle,.room-taunt-burst[data-effect=confetti] .room-taunt-particle{border-radius:1px;width:4px;height:7px}
.room-taunt-burst[data-effect=bubbles] .room-taunt-particle{background:none!important;width:9px;height:9px;border:1px solid #a6f4ff;box-shadow:inset 0 0 3px #d0edff}
.room-taunt-burst[data-effect=pillow] .room-taunt-particle{border-radius:80% 15% 70% 25%;width:7px;height:4px}
.room-taunt-burst[data-effect=ice] .room-taunt-particle{border-radius:0;clip-path:polygon(50% 0,100% 55%,55% 100%,0 50%)}
.room-taunt-burst[data-effect=egg] .room-taunt-particle,.room-taunt-burst[data-effect=tomato] .room-taunt-particle{width:7px;height:4px;border-radius:71% 21% 63% 34%}
.room-taunt-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}
.room-taunt-choices button{display:grid;place-items:center;min-width:0;padding:1px}
.room-taunt-choices .room-taunt-icon{width:25px;height:25px}
@media(prefers-reduced-motion:reduce){.room-taunt-particle{display:none}}
.room-chat-choices[data-show=taunts]{display:grid;grid-template-columns:1fr}
.room-taunt-targets{display:flex;flex-wrap:wrap;gap:3px}
.room-taunt-targets button{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.room-chat-panel #room-chat-taunt-toggle{min-height:24px;justify-self:start;font-size:.63rem}

/* Effects above the open chat panel, without blocking chat or board taps. */
.room-chat-sticker-effect{position:absolute;top:0;left:0;display:grid;place-items:center;width:clamp(44px,9vmin,68px);aspect-ratio:1;transform:translate(-50%,-50%);border:1px solid #ffe2a2;border-radius:17%;background:radial-gradient(ellipse at 45% 30%,#623650,#281323);color:#ffebc4;box-shadow:0 0 12px #ffcd827c,0 3px 10px #160a16aa;animation:room-chat-sticker-pop 1.35s both}
.room-chat-sticker-effect img{position:absolute;width:90%;height:90%;object-fit:contain;visibility:hidden}
.room-chat-sticker-fallback{padding:4px;text-align:center;font:750 .61rem/1.05 system-ui,sans-serif}
.room-chat-sticker-effect.is-ready img{visibility:visible}
.room-chat-sticker-effect.is-ready .room-chat-sticker-fallback{visibility:hidden}
@keyframes room-chat-sticker-pop{
 0%{opacity:0;transform:translate(-50%,-15%) rotate(var(--sticker-tilt)) scale(.5)}
 20%{opacity:1;transform:translate(-50%,-64%) rotate(calc(-1 * var(--sticker-tilt))) scale(1.17)}
 36%,72%{opacity:1;transform:translate(-50%,-50%) rotate(0) scale(1)}
 100%{opacity:0;transform:translate(-50%,-84%) scale(.8)}
}
.room-effect-still{animation:none}
/* Only the traveling sprite changes transform/opacity; impact stays at the avatar. */
.room-chat-sticker-effect.room-chat-sticker-flight{animation:none}
.room-taunt-object,.room-chat-sticker-effect.room-chat-sticker-flight{
 will-change:transform,opacity
}
.room-taunt-burst[aria-hidden=true],.room-taunt-burst *{pointer-events:none}
@media(prefers-reduced-motion:reduce){
 .room-chat-sticker-effect.room-chat-sticker-flight,.room-effect-still{animation:none}
 .room-taunt-object,.room-chat-sticker-effect.room-chat-sticker-flight{will-change:auto}
}

/* Old WebViews may advertise WAAPI but reject complex keyframes. */
.room-taunt-object.room-taunt-still{opacity:1}
.room-chat-panel:has(.room-chat-choices[data-show=taunts]){overscroll-behavior:contain;touch-action:pan-y}
/* The loadout uses existing Taunt space; no new HUD button and no full-table overlay. */
.room-taunt-custom{grid-template-columns:repeat(4,minmax(0,1fr))}
.room-taunt-custom button{min-height:33px}
.room-taunt-custom img{width:29px;height:29px;object-fit:contain}
