Mudanças entre as edições de "Widget:Droflax"

De Wiki Gla
Ir para navegação Ir para pesquisar
Etiqueta: Reversão manual
Linha 1: Linha 1:
<script>(function() {
<div class="personaje-box">
     'use strict';
     <div class="personaje-header">
   
        <div class="personaje-topbar">
    // Buscar todos los contenedores de personaje
            <div class="personaje-nome-box">
    const personajeBoxes = document.querySelectorAll('.personaje-box');
                <img src="/images/6/63/Franky_ts_medal.png" class="topbar-icon">
      
                <div class="personaje-nome-category">
     personajeBoxes.forEach(initPersonaje);
                    <div class="nome"></div>
      
                    <div class="classes"></div>
     function initPersonaje(personajeBox) {
                </div>
        // Obtener el nombre del personaje del ID
            </div>
        const personajeId = personajeBox.id;
        </div>
        if (!personajeId) return;
        <div class="topbar-description">Franky (TS) é um personagem do tier diamante.</div>
       
        <div class="personaje-tabs">
        const nome = personajeId.replace('personaje-', '');
            <button class="tab-btn" data-tab="arma">Arma</button>
        const dataScript = document.getElementById(`personaje-data-${nome}`);
            <button class="tab-btn active" data-tab="habilidades">Habilidades</button>
          
            <button class="tab-btn" data-tab="skins">Skins</button>
        if (!dataScript) {
        </div>
             console.error(`No se encontraron datos para el personaje: ${nome}`);
     </div>
             return;
     <img class="art-personaje" alt="Arte del personaje">
        }
    <div class="tab-content active" id="habilidades">
       
        <div class="cuadros-container"></div>
        let data;
        <div class="habilidades-container">
        try {
            <div class="habilidades-details">
             data = JSON.parse(dataScript.textContent);
                <div class="descripcion-container"></div>
        } catch (e) {
            </div>
             console.error('Error al parsear datos del personaje:', e);
            <div class="video-container"></div>
             return;
        </div>
        }
     </div>
       
     <div class="tab-content" id="skins"></div>
        // Inicializar tabs
</div>
        initTabs(personajeBox);
 
       
<script>
        // Inicializar habilidades
(function() {
        initHabilidades(personajeBox, data.habilidades);
    const dataEl = document.getElementById('persona-data');
          
    if (!dataEl) return console.error('Persona widget: no se encontró #persona-data');
        // Inicializar skins carousel
    const { nome = '', tier = '', classe = '', image = '', habilidadesRaw = '', skinsRaw = '' } = dataEl.dataset;
        initSkinsCarousel(personajeBox);
    const habilidades = [];
          
    let i = 1;
        // Remover el script de datos
    while (dataEl.dataset[`hab${i}Nome`]) {
        dataScript.remove();
         habilidades.push({
             nome: dataEl.dataset[`hab${i}Nome`],
             icon: dataEl.dataset[`hab${i}Icon`],
             level: parseInt(dataEl.dataset[`hab${i}Level`]),
             descripcion: dataEl.dataset[`hab${i}Desc`],
             atributos: dataEl.dataset[`hab${i}Atr`],
            video: dataEl.dataset[`hab${i}Video`]
         });
         i++;
     }
     }
   
 
     function initTabs(container) {
     const skins = [];
        const buttons = container.querySelectorAll('.tab-btn');
    let j = 1;
        const contents = container.querySelectorAll('.tab-content');
    while (dataEl.dataset[`skin${j}Image`]) {
       
         skins.push({
         buttons.forEach(btn => {
             image: dataEl.dataset[`skin${j}Image`],
             btn.addEventListener('click', () => {
            banner: dataEl.dataset[`skin${j}Banner`],
                buttons.forEach(b => b.classList.remove('active'));
            tooltip: dataEl.dataset[`skin${j}Tooltip`]
                contents.forEach(c => c.classList.remove('active'));
               
                btn.classList.add('active');
                const tabId = btn.dataset.tab;
                const targetContent = container.querySelector(`#${tabId}`);
                if (targetContent) {
                    targetContent.classList.add('active');
                }
            });
         });
         });
        j++;
     }
     }
    document.querySelector('.nome').textContent = nome;
    document.querySelector('img.art-personaje').src = image;
      
      
     function initHabilidades(container, habilidades) {
     const buttons = document.querySelectorAll('.tab-btn');
        const cuadrosContainer = container.querySelector('.cuadros-container');
    const contents = document.querySelectorAll('.tab-content');
        const descripcionContainer = container.querySelector('.descripcion-container');
    buttons.forEach(btn => btn.addEventListener('click', () => {
        const videoContainer = container.querySelector('.video-container');
         buttons.forEach(b => b.classList.remove('active'));
          
         contents.forEach(c => c.classList.remove('active'));
        if (!cuadrosContainer || !descripcionContainer || !videoContainer) return;
         btn.classList.add('active');
          
         document.getElementById(btn.dataset.tab).classList.add('active');
        const cuadros = cuadrosContainer.querySelectorAll('.cuadro');
    }));
          
 
         cuadros.forEach((cuadro, index) => {
    const tierClass = {
            cuadro.addEventListener('click', () => {
        'bronze': 'tier-bronze', 'bronce': 'tier-bronze',
                const hab = habilidades[index];
        'silver': 'tier-silver', 'prata': 'tier-silver',
                if (!hab) return;
        'gold': 'tier-gold', 'ouro': 'tier-gold',
               
        'diamond': 'tier-diamond', 'diamante': 'tier-diamond'
                // Formatear descripción
    }[tier.toLowerCase()];
                const descripcionFormateada = hab.desc.replace(/'''(.*?)'''/g, '<b>$1</b>');
   
               
    if (tierClass) document.querySelector('.personaje-box').classList.add(tierClass);
                // Generar HTML de la descripción
 
                descripcionContainer.innerHTML = `
    // Render skins
                    <div class="titulo-habilidad">
    document.getElementById('skins').innerHTML = `
                        <h3>${hab.nome}</h3>
        <div class="card-skins">
                        <div class="tooltip-container">
            <span class="card-skins-title">SKINS & SPOTLIGHTS</span>
                            <button class="info-btn">i</button>
            <div class="skins-carousel-wrapper">
                            <span class="tooltip-text">
                <button class="skins-arrow left">«</button>
                                Información adicional sobre la habilidad, consejos o efectos especiales.
                <div class="skins-carousel">
                            </span>
                ${skins.map(skin => `
                         </div>
                    <div class="skin-card">
                        <img class="skins--imageBanner" src="${skin.banner}" alt="banner">
                         <img class="skins--imageSkin" src="${skin.image}" alt="skin">
                     </div>
                     </div>
                    ${generarHTMLAtributos(hab.atr)}
                `).join('')}
                    <div class="desc">${descripcionFormateada}</div>
                </div>
                 `;
                 <button class="skins-arrow right">»</button>
               
            </div>
                // Mostrar video si existe
         </div>`;
                videoContainer.innerHTML = hab.video ? `
                    <video width="100%" controls playsinline>
                        <source src="${hab.video}" type="video/webm">
                        Tu navegador no soporta el elemento video.
                    </video>
                ` : '';
               
                // Actualizar estado activo
                cuadros.forEach(c => c.classList.remove('activo'));
                cuadro.classList.add('activo');
            });
        });
       
        // Scroll horizontal con rueda del mouse
        cuadrosContainer.addEventListener('wheel', e => {
            if (e.deltaY) {
                e.preventDefault();
                cuadrosContainer.scrollLeft += e.deltaY;
            }
        });
       
         // Activar primera habilidad por defecto
        if (cuadros.length > 0) {
            cuadros[0].click();
        }
    }
      
      
     function generarHTMLAtributos(atributos) {
     activarFlechasCarrusel();
        if (!atributos) return '';
 
       
    // Render habilidades
        const vals = atributos.split(',').map(v => v.trim());
    const [cuadrosContainer, descripcionContainer, videoContainer] = [
         const labels = ['Poder PVE', 'Poder PVP', 'Energía', 'Recarga'];
        '.cuadros-container', '.descripcion-container', '.video-container'
         const icons = [
    ].map(sel => document.querySelector(sel));
            '/images/7/7a/Icon-pve.png',
    const cuadros = [];
            '/images/5/5f/Icon-pvp.png',
 
            '/images/3/38/Icon-energy.png',
    habilidades.forEach(hab => {
            '/images/b/b1/Icon-cooldown.png'
         const div = document.createElement('div');
        ];
        div.className = 'cuadro';
         div.innerHTML = `<img src="${hab.icon}" alt="${hab.nome}" style="width:100%;height:100%;object-fit:cover">`;
        div.title = hab.nome;
        hab.descripcion = hab.descripcion.replace(/'''(.*?)'''/g, '<b>$1</b>');
          
          
         return `
         div.addEventListener('click', () => {
            <div class="attribute--cardsContainer">
            descripcionContainer.innerHTML = `
                ${vals.map((v, i) => {
                <div class="titulo-habilidad">
                    let valor = v === '-' ? '-' : parseInt(v);
                    <h3>${hab.nome}</h3>
                    if (i === 1 && !isNaN(valor)) {
                    <div class="tooltip-container">
                        valor = (valor > 0 ? '+' : '') + valor;
                        <button class="info-btn">i</button>
                    }
                        <span class="tooltip-text">
                    return `
                             Información adicional sobre la habilidad, consejos o efectos especiales.
                        <span class="simple-tooltip simple-tooltip-inline" data-tooltip="${labels[i]}">
                            <div class="cardAttribute">
                                <img src="${icons[i]}" class="cardAttribute--icon">
                                <h2 class="cardAttribute--value">${valor}${i === 0 && valor !== '-' ? ' seg' : ''}</h2>
                             </div>
                         </span>
                         </span>
                     `;
                     </div>
                 }).join('')}
                </div>
            </div>
                 ${generarHTMLAtributos(hab.atributos)}
        `;
                <div class="desc">${hab.descripcion}</div>`;
    }
           
   
            videoContainer.innerHTML = hab.video ? `
    function initSkinsCarousel(container) {
                <video width="100%" controls playsinline>
        const carousel = container.querySelector('.skins-carousel');
                    <source src="${hab.video}" type="video/webm">
        const wrapper = container.querySelector('.skins-carousel-wrapper');
                </video>` : '';
        const leftBtn = container.querySelector('.skins-arrow.left');
           
        const rightBtn = container.querySelector('.skins-arrow.right');
            cuadros.forEach(c => c.classList.remove('activo'));
          
            div.classList.add('activo');
        if (!carousel || !wrapper || !leftBtn || !rightBtn) return;
         });
       
        let isPredictingScroll = false;
          
          
        cuadros.push(div);
        cuadrosContainer.appendChild(div);
    });
    if (cuadros.length) cuadros[0].click();
    cuadrosContainer.addEventListener('wheel', e => e.deltaY && (e.preventDefault(), cuadrosContainer.scrollLeft += e.deltaY));
    dataEl.remove();
    function activarFlechasCarrusel() {
        const carousel = document.querySelector('.skins-carousel');
        const wrapper = document.querySelector('.skins-carousel-wrapper');
        const [leftBtn, rightBtn] = ['.skins-arrow.left', '.skins-arrow.right'].map(sel => document.querySelector(sel));
        let isPredictingScroll = false, isAutoScrolling = false;
         const getScrollAmount = () => carousel.clientWidth * 0.6;
         const getScrollAmount = () => carousel.clientWidth * 0.6;
       
 
         const hideArrow = btn => {
         const hideArrow = btn => {
             if (!btn.classList.contains('desapareciendo') && btn.style.display !== 'none') {
             if (!btn.classList.contains('desapareciendo') && btn.style.display !== 'none') {
Linha 173: Linha 162:
             }
             }
         };
         };
       
 
         const showArrow = btn => {
         const showArrow = btn => {
             if (btn.style.display === 'none') {
             if (btn.style.display === 'none') {
                 btn.style.display = 'inline-block';
                 btn.style.display = 'inline-block';
                 void btn.offsetWidth; // Force reflow
                 void btn.offsetWidth;
             }
             }
             btn.classList.remove('desapareciendo');
             btn.classList.remove('desapareciendo');
         };
         };
       
 
         const setArrowsState = scrollLeft => {
         const setArrowsState = scrollLeft => {
             const maxScroll = carousel.scrollWidth - carousel.clientWidth;
             const maxScroll = carousel.scrollWidth - carousel.clientWidth;
             const hasLeft = scrollLeft > 5;
             const hasLeft = scrollLeft > 5, hasRight = scrollLeft < maxScroll - 5;
            const hasRight = scrollLeft < maxScroll - 5;
             hasLeft ? showArrow(leftBtn) : hideArrow(leftBtn);
              
             hasRight ? showArrow(rightBtn) : hideArrow(rightBtn);
            if (hasLeft) showArrow(leftBtn);
            else hideArrow(leftBtn);
              
            if (hasRight) showArrow(rightBtn);
            else hideArrow(rightBtn);
           
             wrapper.classList.toggle('has-left', hasLeft);
             wrapper.classList.toggle('has-left', hasLeft);
             wrapper.classList.toggle('has-right', hasRight);
             wrapper.classList.toggle('has-right', hasRight);
         };
         };
       
 
         const handleArrowClick = direction => {
         const handleArrowClick = dir => {
             isPredictingScroll = true;
             isPredictingScroll = true;
             const scrollLeft = carousel.scrollLeft;
             const scrollLeft = carousel.scrollLeft, maxScroll = carousel.scrollWidth - carousel.clientWidth;
            const maxScroll = carousel.scrollWidth - carousel.clientWidth;
             const nextScroll = dir === 'left' ? Math.max(0, scrollLeft - getScrollAmount()) : Math.min(maxScroll, scrollLeft + getScrollAmount());
           
 
             const nextScroll = direction === 'left'  
                ? Math.max(0, scrollLeft - getScrollAmount())
                : Math.min(maxScroll, scrollLeft + getScrollAmount());
           
             setArrowsState(nextScroll);
             setArrowsState(nextScroll);
             carousel.scrollTo({ left: nextScroll, behavior: 'smooth' });
             carousel.scrollTo({ left: nextScroll, behavior: 'smooth' });
           
 
            // Esperar a que termine el scroll
             let last = -1, still = 0;
             let lastPosition = -1;
             const wait = setInterval(() => {
            let stillCount = 0;
                 const current = Math.round(carousel.scrollLeft);
             const checkScroll = setInterval(() => {
                 if (current === last) {
                 const currentPosition = Math.round(carousel.scrollLeft);
                     if (++still >= 2) {
                 if (currentPosition === lastPosition) {
                         clearInterval(wait);
                     if (++stillCount >= 2) {
                         clearInterval(checkScroll);
                         isPredictingScroll = false;
                         isPredictingScroll = false;
                         setArrowsState(currentPosition);
                         setArrowsState(current);
                     }
                     }
                 } else {
                 } else {
                     lastPosition = currentPosition;
                     last = current;
                     stillCount = 0;
                     still = 0;
                 }
                 }
             }, 50);
             }, 50);
         };
         };
       
 
        // Event listeners
         carousel.addEventListener('scroll', () => {
         carousel.addEventListener('scroll', () => {
             if (!isPredictingScroll) {
             if (!isPredictingScroll) setArrowsState(carousel.scrollLeft);
                setArrowsState(carousel.scrollLeft);
            }
         });
         });
       
 
        // Resize observer para recalcular cuando cambie el tamaño
         new ResizeObserver(() => {
         if (window.ResizeObserver) {
            if (!isPredictingScroll) setArrowsState(carousel.scrollLeft);
            new ResizeObserver(() => {
        }).observe(carousel);
                if (!isPredictingScroll) {
 
                    setArrowsState(carousel.scrollLeft);
                }
            }).observe(carousel);
        }
       
         leftBtn.addEventListener('click', () => handleArrowClick('left'));
         leftBtn.addEventListener('click', () => handleArrowClick('left'));
         rightBtn.addEventListener('click', () => handleArrowClick('right'));
         rightBtn.addEventListener('click', () => handleArrowClick('right'));
       
        // Estado inicial
         setArrowsState(carousel.scrollLeft);
         setArrowsState(carousel.scrollLeft);
     }
     }
   
 
    // Inicializar tooltips simples
 
     function initSimpleTooltips() {
     function generarHTMLAtributos(str) {
         const tooltipElements = document.querySelectorAll('[data-tooltip]');
         const vals = str.split(',').map(v => v.trim());
       
        const labels = ['Poder PVE', 'Poder PVP', 'Energía', 'Recarga'];
        tooltipElements.forEach(element => {
        const icons = [
            element.addEventListener('mouseenter', (e) => {
            '/images/7/7a/Icon-pve.png',
                const tooltip = document.createElement('div');
            '/images/5/5f/Icon-pvp.png',
                tooltip.className = 'simple-tooltip-popup';
            '/images/3/38/Icon-energy.png',
                tooltip.innerHTML = e.target.dataset.tooltip;
            '/images/b/b1/Icon-cooldown.png'
                document.body.appendChild(tooltip);
        ];
               
        return `
                 const rect = e.target.getBoundingClientRect();
            <div class="attribute--cardsContainer">
                tooltip.style.position = 'absolute';
                 ${vals.map((v, i) => {
                tooltip.style.left = rect.left + (rect.width / 2) - (tooltip.offsetWidth / 2) + 'px';
                    let f = v === '-' ? '-' : parseInt(v);
                tooltip.style.top = rect.top - tooltip.offsetHeight - 8 + 'px';
                    if (i === 1 && !isNaN(f)) f = (f > 0 ? '+' : '') + f;
                tooltip.style.zIndex = '9999';
                    return `
                tooltip.style.background = '#222';
                        <span class="simple-tooltip simple-tooltip-inline tooltipstered" data-simple-tooltip="<p><b>${labels[i]}</b></p>">
                tooltip.style.color = '#fff';
                            <div class="cardAttribute">
                tooltip.style.padding = '8px 10px';
                                <img src="${icons[i]}" class="cardAttribute--icon">
                tooltip.style.borderRadius = '4px';
                                <h2 class="cardAttribute--value">${f}${i === 0 && f !== '-' ? ' seg' : ''}</h2>
                tooltip.style.fontSize = '12px';
                            </div>
                tooltip.style.whiteSpace = 'nowrap';
                        </span>`;
                tooltip.style.boxShadow = '0 2px 10px rgba(0,0,0,0.5)';
                 }).join('')}
                tooltip.style.pointerEvents = 'none';
            </div>`;
            });
           
            element.addEventListener('mouseleave', () => {
                 const tooltips = document.querySelectorAll('.simple-tooltip-popup');
                tooltips.forEach(tooltip => tooltip.remove());
            });
        });
     }
     }
   
    // Inicializar tooltips después de que se cargue el contenido
    setTimeout(initSimpleTooltips, 100);
   
})();
})();
</script>
</script>
<style>
    img { pointer-events: none; user-select: none; }
    .personaje-box { padding: 16px; color: #000; font-family: 'Segoe UI', sans-serif; width: 90%; margin: auto; position: relative;  user-select: none; }
    .personaje-topbar { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 16px; }
    .personaje-nome-box { display: flex; align-items: center; gap: 8px; }
    .topbar-icon { width: 90px; height: 90px; object-fit: none; background: #60dae2; }
    .nome { font-size: 60px; font-family: 'Orbitron', sans-serif; font-weight: 900; }
    .topbar-description { font-size: 16px; margin-top: 6px; background: #6AF3FB; width: fit-content; padding-inline: 16px; border-radius: 0 10px 10px 0; }
    .personaje-header { display: flex; gap: 10px; flex-direction: column; }
    .art-personaje { width: 665px; position: absolute; right: 1rem; top: 0.4rem; z-index: 9; }
    .personaje-info { user-select: none; }
    .personaje-info .tier, .personaje-info .classe { font-size: 18px; color: #bbb; }
    .personaje-tabs { margin: 4px 0 4px 8px; display: flex; gap: 12px; justify-content: flex-start; }
    .tab-btn { padding: 8px 20px; background: #333; color: white; border: none; border-radius: 8px; font-size: 20px; cursor: pointer; }
    .tab-btn.active { background: #156bc7; font-weight: bold; }
    .tab-content { display: none; background: #26211cd6; padding: 0 8px 8px; }
    .tab-content.active { display: block; }
    .habilidades-container { display: flex; gap: 20px; }
    .habilidades-details { flex: 1; display: flex; flex-direction: column; gap: 10px; width: 50%; justify-content: center; }
    .cuadros-container { display: flex; flex-wrap: nowrap; gap: 10px; width: 56%; overflow-x: auto; overflow-y: hidden; padding: 10px 0 3px 1px; margin-bottom: 6px; scrollbar-width: thin; scrollbar-color: #ababab transparent; scroll-behavior: smooth; }
    .cuadros-container::-webkit-scrollbar { height: 6px; }
    .cuadros-container::-webkit-scrollbar-track { background: transparent; }
    .cuadros-container::-webkit-scrollbar-thumb { background-color: #151515; border-radius: 3px; }
    .cuadros-container .cuadro { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 5px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
    .cuadros-container .cuadro.activo { box-shadow: 0 0 10px 3px rgba(255, 255, 0, 0.5); border: 1px solid #FFD700; animation: glow 2s ease-in-out infinite; }
    .titulo-habilidad { position: relative; display: flex; justify-content: center; align-items: center; margin-bottom: 8px; padding-right: 32px; }
    .titulo-habilidad h3 { font-size: 1.6em; color: white; text-align: center; margin: 0; width: 100%; }
    .tooltip-container { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
    .info-btn { border: none; color: #D3DBDC; background-color: #787878; font-weight: bold; border-radius: 50%; width: 44px; height: 44px; font-family: 'Noto Sans'; cursor: pointer; transition: 0.2s; box-shadow: 0 0 3px #000; font-size: 40px; padding: 0; line-height: 24px; text-align: center; }
    .tooltip-text { visibility: hidden; width: 220px; background-color: #222; color: #fff; text-align: left; padding: 8px 10px; border-radius: 8px; position: absolute; z-index: 10; bottom: 130%; left: 50%; transform: translate(-85%, 110%); opacity: 0; transition: opacity 0.3s; font-size: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.5); pointer-events: none; }
    .tooltip-container:hover .tooltip-text { visibility: visible; opacity: 1; }
    .descripcion-container h3 { font-size: 2.7em; margin: 0; text-align: center; padding-top: 0px; }
    .descripcion-container p, .desc { font-size: 1.2em; margin: 0; }
    .descripcion-container { min-height: 25.1rem; max-height: 50%; padding: 4px 16px !important; background: #26211C; border-radius: 8px; position: relative; box-shadow: 0 0 7px rgb(255 255 255 / 82%), 0 0 5px rgb(255 255 255 / 96%); color: #fff; backdrop-filter: blur(2px); transition: all 0.3s ease; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; padding-top: 0px !important; }
    .desc { overflow-y: auto !important; max-height: inherit; margin-top: 10px; }
    .desc * { font-size: inherit !important; line-height: inherit; }
    .descripcion-container .descLevel { margin-top: 5px; font-weight: bold; }
    .descripcion-container .desc::-webkit-scrollbar, .tabSkill--container::-webkit-scrollbar { width: 7px; height: 7px; }
    .descripcion-container .desc::-webkit-scrollbar-thumb, .tabSkill--container::-webkit-scrollbar-thumb { background-color: rgb(71 153 255); border-radius: 10px; }
    .descripcion-container .desc::-webkit-scrollbar-track, .tabSkill--container::-webkit-scrollbar-track { background-color: #151515a8; border-radius: 10px; }
    .tier-diamond .personaje-header { background: linear-gradient(145deg, rgba(160,250,255,0.2), rgba(80,180,200,0.5)), url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='15,2 18,11 28,11 20,17 23,27 15,21 7,27 10,17 2,11 12,11' fill='%23ffffff' fill-opacity='0.25'/%3E%3C/svg%3E"); background-color: #4b8292; background-blend-mode: soft-light; background-size: 45px 45px; box-shadow: inset 0 0 8px rgba(255,255,255,0.1), 0 0 15px rgba(100,255,255,0.25); animation: moveStars 5s linear infinite; padding-bottom: 10px; position: relative; overflow: hidden; }
    .video-container { width: 43%; height: fit-content; display: flex; align-items: center; justify-content: center; background-color: #000; padding: 0; overflow: hidden; align-self: center; border-radius: 2%; box-shadow: 0 0 7px rgb(255 255 255 / 82%), 0 0 5px rgb(255 255 255 / 96%); z-index: 999; }
    .attribute--cardsContainer { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; background: unset; border: unset; }
    .cardAttribute { width: 80px; height: 90px; background-color: #473838; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 5px; box-shadow: 0 3px 7px rgba(0,0,0,0.5); transition: transform 0.2s; border: 1px solid #00000047; }
    .cardAttribute--icon { height: 28px; margin-bottom: 14px; }
    .cardAttribute--value { font-size: 14px !important; font-weight: bold; margin: 0 !important; color: white; border-bottom: unset; }
    .attribute-title, .card-skins-title { font-size: 1.4em; text-align: center; letter-spacing: 1px; font-family: sans-serif !important; border-bottom: 2px solid #9d9c9c; color: white !important; padding-bottom: 8px; margin-bottom: 16px; width: 75%; }
    .card-skins { padding-block: 12px; border-radius: 12px; box-shadow: 0 2px 6px rgba(0,0,0,0.1);  pointer-events: none; user-select: none; }
    .skins-carousel-wrapper::before, .skins-carousel-wrapper::after { content: ''; position: absolute; top: 0; width: 60px; height: 100%; pointer-events: none; opacity: 0; transition: opacity 0.4s ease; z-index: 3; }
    .skins-carousel-wrapper::before { left: 0; background: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%); }
    .skins-carousel-wrapper::after { right: 0; background: linear-gradient(to left, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%); }
    .skins-carousel-wrapper.has-left::before, .skins-carousel-wrapper.has-right::after { opacity: 1; }
    .has-left { padding-left: 60px; }
    .has-left .skins-carousel { mask-image: linear-gradient(to right, transparent 0px, black 40px, black 100%); }
    .has-right { padding-right: 60px; }
    .has-right .skins-carousel { mask-image: linear-gradient(to right, black 0px, black calc(100% - 40px), transparent 100%); }
    .skins-arrow { opacity: 1; transform: scale(1); transition: opacity 0.3s ease, transform 0.3s ease; display: inline-block; }
    .skins-arrow.hidden { opacity: 0; transform: scale(0.8); pointer-events: none; visibility: hidden; }
    .card-skins-title { display: block; border-bottom: unset; font-size: 40px; font-weight: bold; padding-bottom: unset; margin-bottom: 10px; width: 47%; }
    .skins-carousel-wrapper { min-height: 21.1rem; max-height: 60%; padding: 0 16px 20px !important; background: #26211C; border-radius: 8px; position: relative; box-shadow: 0 0 7px rgb(255 255 255 / 82%), 0 0 5px rgb(255 255 255 / 96%); color: #fff; backdrop-filter: blur(2px); transition: all 0.3s ease; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; flex: 1; display: flex; flex-direction: row; gap: 10px; justify-content: center; align-items: center; overflow: visible; z-index: 99; }
    .skins-carousel { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; padding: 10px 0; flex-grow: 1; justify-content: center; }
    .skins-carousel.both-mask { mask-image: linear-gradient(to right, transparent 0px, black 40px, black calc(100% - 40px), transparent 100%); }
    .skins-carousel.left-mask { mask-image: linear-gradient(to right, transparent 0px, black 40px, black 100%); }
    .skins-carousel.right-mask { mask-image: linear-gradient(to right, black 0px, black calc(100% - 40px), transparent 100%); }
    .skins-carousel.no-mask { mask-image: none; }
    .skins-carousel::-webkit-scrollbar { display: none; }
    .skin-card { position: relative; width: 200px; height: 320px; flex: 0 0 auto; border: 2px solid #697EC9; border-radius: 8px; overflow: hidden; box-shadow: 0 0 8px #00f2ff70; background: #111; }
    .skin-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; border-radius: inherit; z-index: 2; box-shadow: inset 0 0 12px 6px rgba(180,180,180,0.25); }
    .skins--imageBanner { width: 100%; height: 109%; scale: 1.1; object-fit: cover; filter: brightness(0.5); }
    .skins--imageSkin { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); height: 140px; width: auto; z-index: 2; transition: transform 0.2s; }
    .skins--imageSkin:hover { transform: translateX(-50%) scale(1.05); }
    .skins-arrow { background: none; border: none; color: white; font-size: 36px; cursor: pointer; padding: 8px; z-index: 5; transition: 0.2s; }
    .skins-arrow.left { margin-right: 8px; }
    .skins-arrow.right { margin-left: 8px; }
    .mw-body-content { line-height: 1.5 !important; }
    @keyframes glowDiamond {
        0%, 100% { box-shadow: inset 0 0 8px rgba(255,255,255,0.4), 0 0 16px rgba(80,255,255,0.6); }
        50% { box-shadow: inset 0 0 16px rgba(255,255,255,0.6), 0 0 24px rgba(160,255,255,0.8); }
    }
    @keyframes moveStars {
        0% { background-position: 0 0; }
        100% { background-position: 90px -90px; }
    }
    @keyframes glow {
        0% { box-shadow: 0 0 2px 1px rgba(255,255,0,0.35); }
        50% { box-shadow: 0 0 4px 2px rgba(255,255,0,0.7); }
        100% { box-shadow: 0 0 2px 1px rgba(255,255,0,0.35); }
    }
    @media (max-aspect-ratio: 3/4) {
        .desc { font-size: 30px; line-height: 1.5; overflow-y: auto !important; max-height: inherit; margin: 0; width: 100%; }
        .desc * { font-size: inherit !important; line-height: inherit; }
        .habilidades-container { display: flex; gap: 20px; flex-direction: column-reverse; }
        .habilidades-details { flex: 1; display: flex; flex-direction: column; width: 96%; align-self: center; }
        .video-container { width: 80%; border-radius: 3%; margin-top: 2%; }
        .art-personaje { right: 2%; width: 290px; top: 1.45vh; }
        .tap-btn { font-size: 30px; }
        .personaje-info .tier, .personaje-info .classe { font-size: 30px; }
        .cuadros-container .cuadro { flex: 0 0 auto; width: 80px; height: 80px; }
        .personaje-box { padding: 32px; }
        .descripcion-container h3 { font-size: 2.5em; margin-top: -12px; }
        .descripcion-container p { font-size: 2.3em; margin-bottom: 5px; }
        .descripcion-container { padding: 22px !important; }
        .tab-btn { padding: 14px 22px; font-size: 34px; }
    }
</style>

Edição das 16h12min de 20 de julho de 2025

               <img src="/images/6/63/Franky_ts_medal.png" class="topbar-icon">
Franky (TS) é um personagem do tier diamante.
           <button class="tab-btn" data-tab="arma">Arma</button>
           <button class="tab-btn active" data-tab="habilidades">Habilidades</button>
           <button class="tab-btn" data-tab="skins">Skins</button>
   <img class="art-personaje" alt="Arte del personaje">

<script> (function() {

   const dataEl = document.getElementById('persona-data');
   if (!dataEl) return console.error('Persona widget: no se encontró #persona-data');
   const { nome = , tier = , classe = , image = , habilidadesRaw = , skinsRaw =  } = dataEl.dataset;
   const habilidades = [];
   let i = 1;
   while (dataEl.dataset[`hab${i}Nome`]) {
       habilidades.push({
           nome: dataEl.dataset[`hab${i}Nome`],
           icon: dataEl.dataset[`hab${i}Icon`],
           level: parseInt(dataEl.dataset[`hab${i}Level`]),
           descripcion: dataEl.dataset[`hab${i}Desc`],
           atributos: dataEl.dataset[`hab${i}Atr`],
           video: dataEl.dataset[`hab${i}Video`]
       });
       i++;
   }
   const skins = [];
   let j = 1;
   while (dataEl.dataset[`skin${j}Image`]) {
       skins.push({
           image: dataEl.dataset[`skin${j}Image`],
           banner: dataEl.dataset[`skin${j}Banner`],
           tooltip: dataEl.dataset[`skin${j}Tooltip`]
       });
       j++;
   }
   document.querySelector('.nome').textContent = nome;
   document.querySelector('img.art-personaje').src = image;
   
   const buttons = document.querySelectorAll('.tab-btn');
   const contents = document.querySelectorAll('.tab-content');
   buttons.forEach(btn => btn.addEventListener('click', () => {
       buttons.forEach(b => b.classList.remove('active'));
       contents.forEach(c => c.classList.remove('active'));
       btn.classList.add('active');
       document.getElementById(btn.dataset.tab).classList.add('active');
   }));
   const tierClass = {
       'bronze': 'tier-bronze', 'bronce': 'tier-bronze',
       'silver': 'tier-silver', 'prata': 'tier-silver',
       'gold': 'tier-gold', 'ouro': 'tier-gold',
       'diamond': 'tier-diamond', 'diamante': 'tier-diamond'
   }[tier.toLowerCase()];
   
   if (tierClass) document.querySelector('.personaje-box').classList.add(tierClass);
   // Render skins
   document.getElementById('skins').innerHTML = `
           SKINS & SPOTLIGHTS

`;

   activarFlechasCarrusel();
   // Render habilidades
   const [cuadrosContainer, descripcionContainer, videoContainer] = [
       '.cuadros-container', '.descripcion-container', '.video-container'
   ].map(sel => document.querySelector(sel));
   const cuadros = [];
   habilidades.forEach(hab => {
       const div = document.createElement('div');
       div.className = 'cuadro';
       div.innerHTML = `<img src="${hab.icon}" alt="${hab.nome}" style="width:100%;height:100%;object-fit:cover">`;
       div.title = hab.nome;
       hab.descripcion = hab.descripcion.replace(/(.*?)/g, '$1');
       
       div.addEventListener('click', () => {
           descripcionContainer.innerHTML = `

${hab.nome}

                       <button class="info-btn">i</button>
                       
                           Información adicional sobre la habilidad, consejos o efectos especiales.
                       
               ${generarHTMLAtributos(hab.atributos)}
${hab.descripcion}

`;

           videoContainer.innerHTML = hab.video ? `
               <video width="100%" controls playsinline>
                   <source src="${hab.video}" type="video/webm">
               </video>` : ;
           
           cuadros.forEach(c => c.classList.remove('activo'));
           div.classList.add('activo');
       });
       
       cuadros.push(div);
       cuadrosContainer.appendChild(div);
   });
   if (cuadros.length) cuadros[0].click();
   cuadrosContainer.addEventListener('wheel', e => e.deltaY && (e.preventDefault(), cuadrosContainer.scrollLeft += e.deltaY));
   dataEl.remove();
   function activarFlechasCarrusel() {
       const carousel = document.querySelector('.skins-carousel');
       const wrapper = document.querySelector('.skins-carousel-wrapper');
       const [leftBtn, rightBtn] = ['.skins-arrow.left', '.skins-arrow.right'].map(sel => document.querySelector(sel));
       let isPredictingScroll = false, isAutoScrolling = false;
       const getScrollAmount = () => carousel.clientWidth * 0.6;
       const hideArrow = btn => {
           if (!btn.classList.contains('desapareciendo') && btn.style.display !== 'none') {
               btn.classList.add('desapareciendo');
               setTimeout(() => {
                   btn.style.display = 'none';
                   btn.classList.remove('desapareciendo');
               }, 300);
           }
       };
       const showArrow = btn => {
           if (btn.style.display === 'none') {
               btn.style.display = 'inline-block';
               void btn.offsetWidth;
           }
           btn.classList.remove('desapareciendo');
       };
       const setArrowsState = scrollLeft => {
           const maxScroll = carousel.scrollWidth - carousel.clientWidth;
           const hasLeft = scrollLeft > 5, hasRight = scrollLeft < maxScroll - 5;
           hasLeft ? showArrow(leftBtn) : hideArrow(leftBtn);
           hasRight ? showArrow(rightBtn) : hideArrow(rightBtn);
           wrapper.classList.toggle('has-left', hasLeft);
           wrapper.classList.toggle('has-right', hasRight);
       };
       const handleArrowClick = dir => {
           isPredictingScroll = true;
           const scrollLeft = carousel.scrollLeft, maxScroll = carousel.scrollWidth - carousel.clientWidth;
           const nextScroll = dir === 'left' ? Math.max(0, scrollLeft - getScrollAmount()) : Math.min(maxScroll, scrollLeft + getScrollAmount());
           setArrowsState(nextScroll);
           carousel.scrollTo({ left: nextScroll, behavior: 'smooth' });
           let last = -1, still = 0;
           const wait = setInterval(() => {
               const current = Math.round(carousel.scrollLeft);
               if (current === last) {
                   if (++still >= 2) {
                       clearInterval(wait);
                       isPredictingScroll = false;
                       setArrowsState(current);
                   }
               } else {
                   last = current;
                   still = 0;
               }
           }, 50);
       };
       carousel.addEventListener('scroll', () => {
           if (!isPredictingScroll) setArrowsState(carousel.scrollLeft);
       });
       new ResizeObserver(() => {
           if (!isPredictingScroll) setArrowsState(carousel.scrollLeft);
       }).observe(carousel);
       leftBtn.addEventListener('click', () => handleArrowClick('left'));
       rightBtn.addEventListener('click', () => handleArrowClick('right'));
       setArrowsState(carousel.scrollLeft);
   }


   function generarHTMLAtributos(str) {
       const vals = str.split(',').map(v => v.trim());
       const labels = ['Poder PVE', 'Poder PVP', 'Energía', 'Recarga'];
       const icons = [
           '/images/7/7a/Icon-pve.png',
           '/images/5/5f/Icon-pvp.png',
           '/images/3/38/Icon-energy.png',
           '/images/b/b1/Icon-cooldown.png'
       ];
       return `
               ${vals.map((v, i) => {
                   let f = v === '-' ? '-' : parseInt(v);
                   if (i === 1 && !isNaN(f)) f = (f > 0 ? '+' : ) + f;
                   return `
<span class="simple-tooltip simple-tooltip-inline tooltipstered" data-simple-tooltip="

${labels[i]}

">
                               <img src="${icons[i]}" class="cardAttribute--icon">

${f}${i === 0 && f !== '-' ? ' seg' : }

                       `;
               }).join()}

`;

   }

})(); </script>

<style>

   img { pointer-events: none; user-select: none; }
   .personaje-box { padding: 16px; color: #000; font-family: 'Segoe UI', sans-serif; width: 90%; margin: auto; position: relative;  user-select: none; }
   .personaje-topbar { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 16px; }
   .personaje-nome-box { display: flex; align-items: center; gap: 8px; }
   .topbar-icon { width: 90px; height: 90px; object-fit: none; background: #60dae2; }
   .nome { font-size: 60px; font-family: 'Orbitron', sans-serif; font-weight: 900; }
   .topbar-description { font-size: 16px; margin-top: 6px; background: #6AF3FB; width: fit-content; padding-inline: 16px; border-radius: 0 10px 10px 0; }
   .personaje-header { display: flex; gap: 10px; flex-direction: column; }
   .art-personaje { width: 665px; position: absolute; right: 1rem; top: 0.4rem; z-index: 9; }
   .personaje-info { user-select: none; }
   .personaje-info .tier, .personaje-info .classe { font-size: 18px; color: #bbb; }
   .personaje-tabs { margin: 4px 0 4px 8px; display: flex; gap: 12px; justify-content: flex-start; }
   .tab-btn { padding: 8px 20px; background: #333; color: white; border: none; border-radius: 8px; font-size: 20px; cursor: pointer; }
   .tab-btn.active { background: #156bc7; font-weight: bold; }
   .tab-content { display: none; background: #26211cd6; padding: 0 8px 8px; }
   .tab-content.active { display: block; }
   .habilidades-container { display: flex; gap: 20px; }
   .habilidades-details { flex: 1; display: flex; flex-direction: column; gap: 10px; width: 50%; justify-content: center; }
   .cuadros-container { display: flex; flex-wrap: nowrap; gap: 10px; width: 56%; overflow-x: auto; overflow-y: hidden; padding: 10px 0 3px 1px; margin-bottom: 6px; scrollbar-width: thin; scrollbar-color: #ababab transparent; scroll-behavior: smooth; }
   .cuadros-container::-webkit-scrollbar { height: 6px; }
   .cuadros-container::-webkit-scrollbar-track { background: transparent; }
   .cuadros-container::-webkit-scrollbar-thumb { background-color: #151515; border-radius: 3px; }
   .cuadros-container .cuadro { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 5px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
   .cuadros-container .cuadro.activo { box-shadow: 0 0 10px 3px rgba(255, 255, 0, 0.5); border: 1px solid #FFD700; animation: glow 2s ease-in-out infinite; }
   .titulo-habilidad { position: relative; display: flex; justify-content: center; align-items: center; margin-bottom: 8px; padding-right: 32px; }
   .titulo-habilidad h3 { font-size: 1.6em; color: white; text-align: center; margin: 0; width: 100%; }
   .tooltip-container { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
   .info-btn { border: none; color: #D3DBDC; background-color: #787878; font-weight: bold; border-radius: 50%; width: 44px; height: 44px; font-family: 'Noto Sans'; cursor: pointer; transition: 0.2s; box-shadow: 0 0 3px #000; font-size: 40px; padding: 0; line-height: 24px; text-align: center; }
   .tooltip-text { visibility: hidden; width: 220px; background-color: #222; color: #fff; text-align: left; padding: 8px 10px; border-radius: 8px; position: absolute; z-index: 10; bottom: 130%; left: 50%; transform: translate(-85%, 110%); opacity: 0; transition: opacity 0.3s; font-size: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.5); pointer-events: none; }
   .tooltip-container:hover .tooltip-text { visibility: visible; opacity: 1; }
   .descripcion-container h3 { font-size: 2.7em; margin: 0; text-align: center; padding-top: 0px; }
   .descripcion-container p, .desc { font-size: 1.2em; margin: 0; }
   .descripcion-container { min-height: 25.1rem; max-height: 50%; padding: 4px 16px !important; background: #26211C; border-radius: 8px; position: relative; box-shadow: 0 0 7px rgb(255 255 255 / 82%), 0 0 5px rgb(255 255 255 / 96%); color: #fff; backdrop-filter: blur(2px); transition: all 0.3s ease; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; padding-top: 0px !important; }
   .desc { overflow-y: auto !important; max-height: inherit; margin-top: 10px; }
   .desc * { font-size: inherit !important; line-height: inherit; }
   .descripcion-container .descLevel { margin-top: 5px; font-weight: bold; }
   .descripcion-container .desc::-webkit-scrollbar, .tabSkill--container::-webkit-scrollbar { width: 7px; height: 7px; }
   .descripcion-container .desc::-webkit-scrollbar-thumb, .tabSkill--container::-webkit-scrollbar-thumb { background-color: rgb(71 153 255); border-radius: 10px; }
   .descripcion-container .desc::-webkit-scrollbar-track, .tabSkill--container::-webkit-scrollbar-track { background-color: #151515a8; border-radius: 10px; }
   .tier-diamond .personaje-header { background: linear-gradient(145deg, rgba(160,250,255,0.2), rgba(80,180,200,0.5)), url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='15,2 18,11 28,11 20,17 23,27 15,21 7,27 10,17 2,11 12,11' fill='%23ffffff' fill-opacity='0.25'/%3E%3C/svg%3E"); background-color: #4b8292; background-blend-mode: soft-light; background-size: 45px 45px; box-shadow: inset 0 0 8px rgba(255,255,255,0.1), 0 0 15px rgba(100,255,255,0.25); animation: moveStars 5s linear infinite; padding-bottom: 10px; position: relative; overflow: hidden; }
   .video-container { width: 43%; height: fit-content; display: flex; align-items: center; justify-content: center; background-color: #000; padding: 0; overflow: hidden; align-self: center; border-radius: 2%; box-shadow: 0 0 7px rgb(255 255 255 / 82%), 0 0 5px rgb(255 255 255 / 96%); z-index: 999; }
   .attribute--cardsContainer { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; background: unset; border: unset; }
   .cardAttribute { width: 80px; height: 90px; background-color: #473838; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 5px; box-shadow: 0 3px 7px rgba(0,0,0,0.5); transition: transform 0.2s; border: 1px solid #00000047; }
   .cardAttribute--icon { height: 28px; margin-bottom: 14px; }
   .cardAttribute--value { font-size: 14px !important; font-weight: bold; margin: 0 !important; color: white; border-bottom: unset; }
   .attribute-title, .card-skins-title { font-size: 1.4em; text-align: center; letter-spacing: 1px; font-family: sans-serif !important; border-bottom: 2px solid #9d9c9c; color: white !important; padding-bottom: 8px; margin-bottom: 16px; width: 75%; }
   .card-skins { padding-block: 12px; border-radius: 12px; box-shadow: 0 2px 6px rgba(0,0,0,0.1);  pointer-events: none; user-select: none; }
   .skins-carousel-wrapper::before, .skins-carousel-wrapper::after { content: ; position: absolute; top: 0; width: 60px; height: 100%; pointer-events: none; opacity: 0; transition: opacity 0.4s ease; z-index: 3; }
   .skins-carousel-wrapper::before { left: 0; background: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%); }
   .skins-carousel-wrapper::after { right: 0; background: linear-gradient(to left, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%); }
   .skins-carousel-wrapper.has-left::before, .skins-carousel-wrapper.has-right::after { opacity: 1; }
   .has-left { padding-left: 60px; }
   .has-left .skins-carousel { mask-image: linear-gradient(to right, transparent 0px, black 40px, black 100%); }
   .has-right { padding-right: 60px; }
   .has-right .skins-carousel { mask-image: linear-gradient(to right, black 0px, black calc(100% - 40px), transparent 100%); }
   .skins-arrow { opacity: 1; transform: scale(1); transition: opacity 0.3s ease, transform 0.3s ease; display: inline-block; }
   .skins-arrow.hidden { opacity: 0; transform: scale(0.8); pointer-events: none; visibility: hidden; }
   .card-skins-title { display: block; border-bottom: unset; font-size: 40px; font-weight: bold; padding-bottom: unset; margin-bottom: 10px; width: 47%; }
   .skins-carousel-wrapper { min-height: 21.1rem; max-height: 60%; padding: 0 16px 20px !important; background: #26211C; border-radius: 8px; position: relative; box-shadow: 0 0 7px rgb(255 255 255 / 82%), 0 0 5px rgb(255 255 255 / 96%); color: #fff; backdrop-filter: blur(2px); transition: all 0.3s ease; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; flex: 1; display: flex; flex-direction: row; gap: 10px; justify-content: center; align-items: center; overflow: visible; z-index: 99; }
   .skins-carousel { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; padding: 10px 0; flex-grow: 1; justify-content: center; }
   .skins-carousel.both-mask { mask-image: linear-gradient(to right, transparent 0px, black 40px, black calc(100% - 40px), transparent 100%); }
   .skins-carousel.left-mask { mask-image: linear-gradient(to right, transparent 0px, black 40px, black 100%); }
   .skins-carousel.right-mask { mask-image: linear-gradient(to right, black 0px, black calc(100% - 40px), transparent 100%); }
   .skins-carousel.no-mask { mask-image: none; }
   .skins-carousel::-webkit-scrollbar { display: none; }
   .skin-card { position: relative; width: 200px; height: 320px; flex: 0 0 auto; border: 2px solid #697EC9; border-radius: 8px; overflow: hidden; box-shadow: 0 0 8px #00f2ff70; background: #111; }
   .skin-card::before { content: ; position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; border-radius: inherit; z-index: 2; box-shadow: inset 0 0 12px 6px rgba(180,180,180,0.25); }
   .skins--imageBanner { width: 100%; height: 109%; scale: 1.1; object-fit: cover; filter: brightness(0.5); }
   .skins--imageSkin { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); height: 140px; width: auto; z-index: 2; transition: transform 0.2s; }
   .skins--imageSkin:hover { transform: translateX(-50%) scale(1.05); }
   .skins-arrow { background: none; border: none; color: white; font-size: 36px; cursor: pointer; padding: 8px; z-index: 5; transition: 0.2s; }
   .skins-arrow.left { margin-right: 8px; }
   .skins-arrow.right { margin-left: 8px; }
   .mw-body-content { line-height: 1.5 !important; }
   @keyframes glowDiamond {
       0%, 100% { box-shadow: inset 0 0 8px rgba(255,255,255,0.4), 0 0 16px rgba(80,255,255,0.6); }
       50% { box-shadow: inset 0 0 16px rgba(255,255,255,0.6), 0 0 24px rgba(160,255,255,0.8); }
   }
   @keyframes moveStars {
       0% { background-position: 0 0; }
       100% { background-position: 90px -90px; }
   }
   @keyframes glow {
       0% { box-shadow: 0 0 2px 1px rgba(255,255,0,0.35); }
       50% { box-shadow: 0 0 4px 2px rgba(255,255,0,0.7); }
       100% { box-shadow: 0 0 2px 1px rgba(255,255,0,0.35); }
   }
   @media (max-aspect-ratio: 3/4) {
       .desc { font-size: 30px; line-height: 1.5; overflow-y: auto !important; max-height: inherit; margin: 0; width: 100%; }
       .desc * { font-size: inherit !important; line-height: inherit; }
       .habilidades-container { display: flex; gap: 20px; flex-direction: column-reverse; }
       .habilidades-details { flex: 1; display: flex; flex-direction: column; width: 96%; align-self: center; }
       .video-container { width: 80%; border-radius: 3%; margin-top: 2%; }
       .art-personaje { right: 2%; width: 290px; top: 1.45vh; }
       .tap-btn { font-size: 30px; }
       .personaje-info .tier, .personaje-info .classe { font-size: 30px; }
       .cuadros-container .cuadro { flex: 0 0 auto; width: 80px; height: 80px; }
       .personaje-box { padding: 32px; }
       .descripcion-container h3 { font-size: 2.5em; margin-top: -12px; }
       .descripcion-container p { font-size: 2.3em; margin-bottom: 5px; }
       .descripcion-container { padding: 22px !important; }
       .tab-btn { padding: 14px 22px; font-size: 34px; }
   }

</style>