/* Emotes propios del chat (13/oct): la imagen dentro del mensaje y el selector. Lo usan la tienda y la página del equipo. */
.emote{display:inline-block;height:1.8em;width:auto;max-width:6em;vertical-align:-.5em;margin:0 .06em;object-fit:contain}
.solo-emotes .emote{height:58px;max-width:none;vertical-align:middle;margin:2px 3px}
.chat-escribir,.b-escribir{position:relative}
.emotes-panel{position:absolute;left:8px;right:8px;bottom:calc(100% - 2px);z-index:30;display:grid;grid-template-rows:auto auto auto minmax(0,1fr);height:min(400px,60vh);background:var(--panel,#1B0F28);border:1px solid var(--borde,#3A2550);border-radius:16px;box-shadow:0 -12px 34px #000a;overflow:hidden;color:var(--texto,#F6EEFF)}
.emotes-cab{display:flex;gap:6px;padding:8px 8px 6px}
.emotes-buscar{flex:1;min-width:0;padding:8px 12px;border-radius:10px;border:1px solid var(--borde,#3A2550);background:var(--noche,#0C0612);color:var(--texto,#F6EEFF);font:500 15px/1.2 var(--body,system-ui,sans-serif)}
.emotes-buscar:focus{outline:2px solid var(--fucsia,#FF2E93);outline-offset:-1px}
.emotes-cerrar{flex:none;width:36px;border:0;border-radius:10px;background:#ffffff10;color:var(--texto,#F6EEFF);cursor:pointer;font-size:14px}
.emotes-pestanas{display:flex;flex-wrap:wrap;gap:2px;padding:0 6px 6px}   /* en filas: todas a la vista (Paula: «no me deja avanzar al lado») */
.emotes-pestanas button{flex:none;width:40px;height:36px;display:grid;place-items:center;border:0;border-radius:9px;background:none;cursor:pointer;font-size:18px;color:inherit}
.emotes-pestanas button:hover{background:#ffffff10}
.emotes-pestanas button[aria-selected="true"]{background:#ffffff1c;box-shadow:inset 0 -2px 0 var(--fucsia,#FF2E93)}
.emotes-pestanas .emote{height:26px;max-width:32px;margin:0;vertical-align:middle}
.emotes-titulo{margin:0;padding:2px 12px 4px;font:700 11px/1 var(--hud,system-ui,sans-serif);letter-spacing:.08em;text-transform:uppercase;color:var(--suave,#B7A6CC)}
.emotes-rejilla{overflow-y:auto;padding:2px 8px 10px;display:grid;grid-template-columns:repeat(auto-fill,minmax(48px,1fr));gap:4px;align-content:start;overscroll-behavior:contain}
.emote-op{height:48px;display:grid;place-items:center;border:0;border-radius:10px;background:none;cursor:pointer;padding:3px}
.emote-op:hover,.emote-op:focus-visible{background:#ffffff16;outline:none}
.emote-op .emote{height:38px;max-width:44px;margin:0;vertical-align:middle}
.emotes-vacio{grid-column:1/-1;margin:14px 4px;color:var(--suave,#B7A6CC);font-size:14px}
[data-emotes-para][aria-expanded="true"]{background:#ffffff1a!important}
@media (max-width:520px){.emotes-panel{left:4px;right:4px;height:min(330px,52vh)}.emotes-rejilla{grid-template-columns:repeat(auto-fill,minmax(44px,1fr))}.emote-op{height:44px}.emote-op .emote{height:34px}}

/* Mientras carga, un fondo suave en vez del ícono roto (13/oct) */
.emote-op .emote:not(.cargado),.emotes-pestanas .emote:not(.cargado){background:#ffffff0d;border-radius:8px;min-width:24px}
.emote-texto{font:600 .85em/1 var(--hud,monospace);opacity:.75}
/* Los de pixel muy chiquitos (20 y 47 px) se agrandan sin ponerse borrosos (13/oct) */
img.emote[src*="/memes/cutehalloweenbat."],img.emote[src*="/memes/flareonyapbark."]{image-rendering:pixelated}
