/* Native UI_Emotion panel (emotion.js). Geometry comes from emotion-data.js. */
.emotion-overlay{position:absolute;inset:0;z-index:95;pointer-events:auto}
.emotion-panel{position:absolute;left:50%;box-sizing:border-box;display:grid;border-style:solid;
  transform:translateX(-50%) scale(var(--emotion-scale,1));transform-origin:50% 100%}
.emotion-slot{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;
  padding:0;border:0;background:center/100% 100% no-repeat;cursor:pointer}
.emotion-slot>span{display:block;background-repeat:no-repeat;image-rendering:pixelated;pointer-events:none}
.emotion-slot:hover,.emotion-slot:focus-visible{filter:brightness(1.18);outline:none}
.emotion-slot:active>span{transform:scale(.92)}
/* Slot previews animate through the four native frames (as in the official client);
   600ms per loop matches the 150ms/frame bubble. Background size is 100% x 400%, so
   positions 0%, 33.3%, 66.7%, 100% are frames 0..3 (steps end before 133.3%). */
.emotion-slot>span{animation:emotion-preview 600ms steps(4) infinite}
@keyframes emotion-preview{from{background-position:0 0}to{background-position:0 133.333%}}
