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

De Wiki Gla
Ir para navegação Ir para pesquisar
m
Etiqueta: Revertido
m
Etiqueta: Revertido
Linha 1: Linha 1:
<script>
<script>
(function() {
(function() {
      
 
     const buttons = document.querySelectorAll('.tab-btn');
     // Tabs functionality
     const contents = document.querySelectorAll('.tab-content');
     const buttons = document.querySelectorAll('.character-tab-btn');
     const contents = document.querySelectorAll('.character-tab-content');
     buttons.forEach(btn => btn.addEventListener('click', () => {
     buttons.forEach(btn => btn.addEventListener('click', () => {
         buttons.forEach(b => b.classList.remove('active'));
         buttons.forEach(b => b.classList.remove('active'));
Linha 10: Linha 11:
         document.getElementById(btn.dataset.tab).classList.add('active');
         document.getElementById(btn.dataset.tab).classList.add('active');
     }));
     }));
   
    activarFlechasCarrusel();


     const cuadrosContainer = document.querySelector('.cuadros-container');
    activateCarouselArrows();
     const descripcionContainer = document.querySelector('.descripcion-container');
 
     const videoContainer = document.querySelector('.video-container');
     const skillsBar = document.querySelector('.character-skills-bar');
     const cuadros = [...cuadrosContainer.querySelectorAll('.cuadro')];
     const descriptionBox = document.querySelector('.character-description-box');
     const videoBox = document.querySelector('.character-video-box');
     const skillIcons = [...skillsBar.querySelectorAll('.character-skill-icon')];


     cuadros.forEach(div => {
     skillIcons.forEach(div => {
         const nome = div.dataset.nome;
         const name = div.dataset.name;
         const desc = div.dataset.desc.replace(/'''(.*?)'''/g, '<b>$1</b>');
         const desc = div.dataset.desc.replace(/'''(.*?)'''/g, '<b>$1</b>');
         const atr = div.dataset.atr;
         const attr = div.dataset.attr;
         const video = div.dataset.video;
         const video = div.dataset.video;


         div.title = nome;
         div.title = name;


         div.addEventListener('click', () => {
         div.addEventListener('click', () => {
             descripcionContainer.innerHTML = `
             descriptionBox.innerHTML = `
                 <div class="titulo-habilidad">
                 <div class="character-skill-title">
                <h3>${nome}</h3>
                    <h3>${name}</h3>
                <div class="tooltip-container">
                    <div class="character-tooltip-container">
                    <button class="info-btn">i</button>
                        <button class="character-info-btn">i</button>
                    <span class="tooltip-text">
                        <span class="character-tooltip-text">
                    Informação adicional sobre a habilidade, dicas ou efeitos especiais.
                        Extra information, tips or effects for this skill.
                    </span>
                        </span>
                </div>
                    </div>
                 </div>
                 </div>
                 ${generarHTMLAtributos(atr)}
                 ${generateAttributesHTML(attr)}
                 <div class="desc">${desc}</div>`;
                 <div class="character-desc-text">${desc}</div>`;


             videoContainer.innerHTML = video ? `
             videoBox.innerHTML = video ? `
                 <video width="100%" controls playsinline>
                 <video width="100%" controls playsinline>
                 <source src="${video}" type="video/webm">
                 <source src="${video}" type="video/webm">
                 </video>` : '';
                 </video>` : '';


             cuadros.forEach(c => c.classList.remove('activo'));
             skillIcons.forEach(c => c.classList.remove('active'));
             div.classList.add('activo');
             div.classList.add('active');
         });
         });
         ['data-nome', 'data-desc', 'data-atr', 'data-video', 'data-index'].forEach(attr => div.removeAttribute(attr));
 
         ['data-name', 'data-desc', 'data-attr', 'data-video', 'data-index'].forEach(attr => div.removeAttribute(attr));
     });
     });


     if (cuadros.length) cuadros[0].click();
     if (skillIcons.length) skillIcons[0].click();


     cuadrosContainer.addEventListener('wheel', e => {
     skillsBar.addEventListener('wheel', e => {
         if (e.deltaY) {
         if (e.deltaY) {
        e.preventDefault();
            e.preventDefault();
        cuadrosContainer.scrollLeft += e.deltaY;
            skillsBar.scrollLeft += e.deltaY;
         }
         }
     });
     });


     function activarFlechasCarrusel() {
     function activateCarouselArrows() {
         const carousel = document.querySelector('.skins-carousel');
         const carousel = document.querySelector('.character-skins-carousel');
         const wrapper = document.querySelector('.skins-carousel-wrapper');
         const wrapper = document.querySelector('.character-skins-carousel-wrapper');
         const [leftBtn, rightBtn] = ['.skins-arrow.left', '.skins-arrow.right'].map(sel => document.querySelector(sel));
         const [leftBtn, rightBtn] = ['.character-skins-arrow.left', '.character-skins-arrow.right'].map(sel => document.querySelector(sel));
         let isPredictingScroll = false, isAutoScrolling = false;
         let isPredictingScroll = 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('hiding') && btn.style.display !== 'none') {
                 btn.classList.add('desapareciendo');
                 btn.classList.add('hiding');
                 setTimeout(() => {
                 setTimeout(() => {
                     btn.style.display = 'none';
                     btn.style.display = 'none';
                     btn.classList.remove('desapareciendo');
                     btn.classList.remove('hiding');
                 }, 300);
                 }, 300);
             }
             }
Linha 83: Linha 85:
                 void btn.offsetWidth;
                 void btn.offsetWidth;
             }
             }
             btn.classList.remove('desapareciendo');
             btn.classList.remove('hiding');
         };
         };


Linha 133: Linha 135:
     }
     }


     function generarHTMLAtributos(str) {
     function generateAttributesHTML(str) {
         const vals = str.split(',').map(v => v.trim());
         const vals = str.split(',').map(v => v.trim());
         const title = ['Poder PVE','Poder PVP','Energia','Recarga'];
         const title = ['PVE Power','PVP Power','Energy','Cooldown'];
         return `
         return `
             <div class="attribute--cardsContainer">
             <div class="character-attributes-cards">
                 ${vals.map((v, i) => {
                 ${vals.map((v, i) => {
                     let f = v === '-' ? '-' : parseInt(v);
                     let f = v === '-' ? '-' : parseInt(v);
                     if (i === 2 && !isNaN(f)) f = (f > 0 ? '+' : '') + f;
                     if (i === 2 && !isNaN(f)) f = (f > 0 ? '+' : '') + f;
                     return `
                     return `
                            <div class="cardAttribute">
                        <div class="character-attribute-card">
                                <span class="cardAttribute--title">${title[i]}</span>
                            <span class="character-attribute-title">${title[i]}</span>
                                <h2 class="cardAttribute--value">${f}${i === 3 && f !== '-' ? ' seg' : ''}</h2>
                            <h2 class="character-attribute-value">${f}${i === 3 && f !== '-' ? ' sec' : ''}</h2>
                            </div>
                        </div>
                        </span>`;
                    `;
                 }).join('')}
                 }).join('')}
             </div>`;
             </div>`;
Linha 154: Linha 156:


<style>
<style>
    img { pointer-events: none; user-select: none; }
.character-box {
    .personaje-box { padding: 16px; color: #000; font-family: 'Noto Sans', sans-serif !important; width: 98%; margin: auto; position: relative;  user-select: none; }
     padding: 24px;
    .cuadro img { width: 100%; height: 100%; object-fit: cover; }
     color: #fff;
     .personaje-topbar { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 16px; padding-top: 0; }
     font-family: 'Orbitron', 'Noto Sans', Arial, sans-serif;
     .personaje-nome-box { display: flex; align-items: center; gap: 8px; }
     width: 98%;
    .topbar-icon { margin-top: 8px; width: 100px; height: 100px; object-fit: none; }
     margin: 28px auto;
     .nome { font-size: 56px; font-family: 'Orbitron', sans-serif; font-weight: 900; }
     position: relative;
     .topbar-description { font-size: 16px; margin-top: 6px; width: fit-content; padding-inline: 16px; border-radius: 0 10px 10px 0; box-shadow: 0 0 2px rgb(0 0 0 / 70%); }
     user-select: none;
     .personaje-header { display: flex; gap: 10px; flex-direction: column; }
     background: #1c2025;
     .art-personaje { width: 37.3vw; height: auto; position: absolute; right: 1rem; top: 0.4rem; z-index: 9; }
     border-radius: 18px;
     .classes{ display: flex; gap: 6px; flex-wrap: wrap; }
     box-shadow: 0 2px 24px #0008;
    .classe { padding: 1px 6px; border-radius: 4px; font-size: 0.9em; font-weight: bold; box-shadow: 0 0 2px rgb(0 0 0 / 70%); }
     max-width: 1200px;
    .personaje-info { user-select: none; }
}
     .personaje-info .tier, .personaje-info .classe { font-size: 18px; color: #bbb; }
.character-header {
     .personaje-tabs { margin: 4px 0 4px 8px; display: flex; gap: 12px; justify-content: flex-start; }
     display: flex;
    .tab-btn { padding: 5px 20px; background: #333; color: white; border: none; border-radius: 8px; font-size: 20px; cursor: pointer; }
     align-items: flex-start;
     .tab-btn.active { background: #156bc7; font-weight: bold; }
    gap: 24px;
     .tab-content { display: none; background: #26211cd6; padding: 0 8px 8px; }
     margin-bottom: 10px;
    .tab-content.active { display: block; }
}
     .habilidades-container { display: flex; gap: 20px; }
.character-icon {
     .habilidades-details { flex: 1; display: flex; flex-direction: column; gap: 10px; width: 50%; justify-content: center; }
     width: 88px;
     .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; }
     height: 88px;
    .cuadros-container::-webkit-scrollbar { height: 6px; }
     border-radius: 9px;
    .cuadros-container::-webkit-scrollbar-track { background: transparent; }
     object-fit: cover;
     .cuadros-container::-webkit-scrollbar-thumb { background-color: #151515; border-radius: 3px; }
     border: 3px solid #2bd8d3;
     .cuadros-container .cuadro { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 5px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
     background: #181b1e;
     .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; }
.character-info-block {
     .titulo-habilidad h3 { font-size: 1.6em; color: white; text-align: center; margin: 0; width: 100%; }
     display: flex;
     .tooltip-container { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
     flex-direction: column;
    .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; }
     gap: 4px;
     .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; }
.character-name {
     .descripcion-container h3 { font-size: 2.7em; margin: 0; text-align: center; padding-top: 0px; }
     font-size: 3.3em;
     .descripcion-container p, .desc { font-size: 1.2em; margin: 0; }
     font-weight: 900;
     .descripcion-container { min-height: 27.5rem; 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; }
     letter-spacing: 0.04em;
    .desc { overflow-y: auto !important; max-height: inherit; margin-top: 10px; }
     color: #fff;
     .desc * { font-size: inherit !important; line-height: inherit; }
     margin-bottom: 2px;
     .descripcion-container .descLevel { margin-top: 5px; font-weight: bold; }
     text-shadow: 2px 2px 0 #1ca8b6;
     .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; }
.character-classes {
    .descripcion-container .desc::-webkit-scrollbar-track, .tabSkill--container::-webkit-scrollbar-track { background-color: #151515a8; border-radius: 10px; }
     font-size: 1.12em;
    .tier-bronze .personaje-header { background: linear-gradient(145deg, rgb(255 106 0 / 15%), rgb(6 2 0 / 15%)); background-color: #3e3025; background-blend-mode: soft-light; background-size: cover; box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.05), 0 0 10px rgba(205, 127, 50, 0.15); color: #ffffff; padding-bottom: 10px; position: relative; overflow: hidden; }
     color: #2bd8d3;
     .tier-bronze .topbar-icon, .tier-bronze .classe, .tier-bronze .topbar-description { background-color: #7b4e2f; }
     margin-bottom: 3px;
     .tier-bronze .nome { text-shadow: 2px 2px #83736a; }
     font-weight: bold;
    .tier-silver .personaje-header { background: linear-gradient(145deg, rgb(255 255 255 / 10%), rgb(0 0 0 / 10%)); background-color: #77777e; background-blend-mode: soft-light; background-size: cover; box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.07), 0 0 12px rgba(192, 192, 192, 0.15); color: #000000; padding-bottom: 10px; position: relative; overflow: hidden; }
     display: flex;
    .tier-silver .topbar-icon, .tier-silver .classe, .tier-silver .topbar-description { background-color: #d6d2d2;}
     gap: 10px;
    .tier-silver .nome { text-shadow: 2px 2px #9d9d9d; }
}
     .tier-gold .personaje-header { background: linear-gradient(145deg, rgb(246 255 0 / 38%), rgb(0 0 0 / 42%)); background-color: #ad8f16; background-blend-mode: soft-light; background-size: cover; box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.05), 0 0 14px rgba(255, 215, 0, 0.2); color: #000000; padding-bottom: 10px; position: relative; overflow: hidden; }
.character-desc {
    .tier-gold .topbar-icon, .tier-gold .classe, .tier-gold .topbar-description { background-color: #fcd300; }
     background: #1a252e;
    .tier-gold .nome { text-shadow: 2px 2px #dad405; }
     color: #b6eaff;
    .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; }
     border-radius: 7px;
    .tier-diamond .topbar-icon, .tier-diamond .classe, .tier-diamond .topbar-description { background: #60dae2; }
     padding: 9px 16px;
    .tier-diamond .nome { text-shadow: 2px 2px #a6c0cc; }
     font-size: 1.21em;
     .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; }
     margin-top: 5px;
    .attribute--cardsContainer { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; background: unset; border: unset; }
     box-shadow: 0 1px 4px #0003;
    .cardAttribute { width: 138px; height: 60px; background-color: #473838; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2px; box-shadow: 0 3px 7px rgba(0,0,0,0.5); transition: transform 0.2s; border: 1px solid #00000047; }
     max-width: 650px;
    .cardAttribute--title { font-size: 1.1rem; font-weight: bold; }
}
     .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); 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 1px !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: 1vw; overflow-x: auto; scroll-behavior: smooth; padding: 10px 0; flex-grow: 1; }
    .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: 12vw; height: 39vh; flex: 0 0 auto; border: 2px solid #697EC9 !important; 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%; }
     .skins--imageBanner img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5); scale: 1.1; }
     .skins--imageSkin img { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); height: 140px; width: auto; z-index: 2; transition: transform 0.2s; }
     .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 {
.character-tabs {
        0%, 100% { box-shadow: inset 0 0 8px rgba(255,255,255,0.4), 0 0 16px rgba(80,255,255,0.6); }
    margin: 20px 0 8px 0;
        50% { box-shadow: inset 0 0 16px rgba(255,255,255,0.6), 0 0 24px rgba(160,255,255,0.8); }
    display: flex;
     }
     gap: 16px;
     @keyframes moveStars {
}
        0% { background-position: 0 0; }
.character-tab-btn {
        100% { background-position: 90px -90px; }
    padding: 7px 28px;
     }
    font-size: 1.14em;
     @keyframes glow {
    border: none;
        0% { box-shadow: 0 0 2px 1px rgba(255,255,0,0.35); }
    border-radius: 6px;
        50% { box-shadow: 0 0 4px 2px rgba(255,255,0,0.7); }
    background: #393a40;
        100% { box-shadow: 0 0 2px 1px rgba(255,255,0,0.35); }
    color: #fff;
     }
    font-weight: bold;
    cursor: pointer;
    transition: background .18s;
    outline: none;
    letter-spacing: 1px;
}
.character-tab-btn.active {
    background: #2bd8d3;
    color: #191c1d;
}
 
.character-tab-content {
    display: none;
}
.character-tab-content.active {
    display: block;
    margin-top: 10px;
}
 
.character-skills-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    padding: 6px 0 10px 2px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #2bd8d3 #181b1e;
    margin-bottom: 6px;
}
.character-skill-icon {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 1px 5px #0004;
    transition: border 0.2s, box-shadow 0.2s, transform 0.12s;
    background: #181b1e;
    display: flex;
    align-items: center;
    justify-content: center;
}
.character-skill-icon.active {
    border: 2.5px solid #2bd8d3;
    box-shadow: 0 0 0 3px #2bd8d366;
    transform: scale(1.11);
}
.character-skill-icon img {
     width: 80%;
    height: 80%;
    object-fit: contain;
}
 
.character-main-content {
    display: flex;
     gap: 24px;
    margin-top: 10px;
}
.character-description-box {
    flex: 1 1 60%;
    display: flex;
    flex-direction: column;
    gap: 13px;
    background: #181b1e;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 0 16px #0003;
    min-width: 350px;
    max-width: 600px;
}
.character-desc-text {
    color: #fff;
    font-size: 1.1em;
}
.character-skill-title h3 {
    font-size: 2.3em;
    letter-spacing: 1.6px;
    margin-bottom: 3px;
    color: #2bd8d3;
}
.character-attributes-cards {
    display: flex;
    gap: 17px;
    margin-bottom: 9px;
}
.character-attribute-card {
    background: #2bd8d320;
    border-radius: 6px;
    padding: 10px;
    min-width: 80px;
    text-align: center;
    color: #fff;
    font-weight: 600;
}
.character-attribute-title {
     font-size: 1.1em;
    color: #b6eaff;
}
.character-attribute-value {
    font-size: 1.22em;
     color: #fff;
}
 
.character-video-box {
    flex: 1 1 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #181b1e;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 0 16px #0003;
    min-width: 350px;
    max-width: 600px;
    min-height: 240px;
    margin-left: 10px;
}
 
.character-tooltip-container {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}
.character-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;
}
.character-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;
}
.character-tooltip-container:hover .character-tooltip-text {
    visibility: visible;
     opacity: 1;
}


    @media (max-aspect-ratio: 3/4) {
@media (max-width: 1050px) {
        .desc { font-size: 26px; line-height: 1.5; overflow-y: auto !important; max-height: inherit; margin: 0; width: 100%; margin-top: 8px; }
    .character-main-content { flex-direction: column; }
        .desc * { font-size: inherit !important; line-height: inherit; }
    .character-video-box, .character-description-box { max-width: 100%; min-width: 0; }
        .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 { display: none; width: 370px; height: 290px; position: absolute; right: 0.5rem; top: 1.1rem; z-index: 9; }
        .topbar-description{ font-size: 22px; }
        .personaje-info .tier, .personaje-info .classe { font-size: 30px; }
        .cuadros-container { width: 98%; place-self: center; padding: 10px 0 16px 1px; }
        .cuadros-container .cuadro { flex: 0 0 auto; width: 80px; height: 80px; }
        .descripcion-container h3 { font-size: 3.6em; margin-top: -14px; }
        .descripcion-container p { font-size: 2.3em; margin-bottom: 5px; }
        .descripcion-container { padding: 22px !important; }
        .tab-btn { padding: 10px 20px; font-size: 26px; }
        .tab-content{ padding: 0 8px 20px; }
        .classe { padding: 0px 5px; font-size: 1.4em; }
        .cardAttribute--title { font-size: 1.85rem; }
        .cardAttribute--value { font-size: 1.65rem !important; }
        .cardAttribute { width: 156px; height: 84px; }
        .tooltip-container { position: absolute; right: -6px; top: 30%; scale: 1.1; }
        .tooltip-text { font-size: 26px; }
        .skins-carousel { gap: 20px; }
        .skin-card { width: 236px; height: 400px; }
        .skins--imageSkin img { height: 170px; }
        .tooltipster-content { font-size: 26px; }
        .attribute-title, .card-skins-title { width: 100% !important; }
        .skins-arrow { display: none !important; }
        .skins-carousel-wrapper::after, .skins-carousel-wrapper::before { background: unset; }
    }
</style>
</style>

Edição das 17h03min de 8 de agosto de 2025

<script> (function() {

   // Tabs functionality
   const buttons = document.querySelectorAll('.character-tab-btn');
   const contents = document.querySelectorAll('.character-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');
   }));
   activateCarouselArrows();
   const skillsBar = document.querySelector('.character-skills-bar');
   const descriptionBox = document.querySelector('.character-description-box');
   const videoBox = document.querySelector('.character-video-box');
   const skillIcons = [...skillsBar.querySelectorAll('.character-skill-icon')];
   skillIcons.forEach(div => {
       const name = div.dataset.name;
       const desc = div.dataset.desc.replace(/(.*?)/g, '$1');
       const attr = div.dataset.attr;
       const video = div.dataset.video;
       div.title = name;
       div.addEventListener('click', () => {
           descriptionBox.innerHTML = `

${name}

                       <button class="character-info-btn">i</button>
                       
                       Extra information, tips or effects for this skill.
                       
               ${generateAttributesHTML(attr)}
${desc}

`;

           videoBox.innerHTML = video ? `
               <video width="100%" controls playsinline>
               <source src="${video}" type="video/webm">
               </video>` : ;
           skillIcons.forEach(c => c.classList.remove('active'));
           div.classList.add('active');
       });
       ['data-name', 'data-desc', 'data-attr', 'data-video', 'data-index'].forEach(attr => div.removeAttribute(attr));
   });
   if (skillIcons.length) skillIcons[0].click();
   skillsBar.addEventListener('wheel', e => {
       if (e.deltaY) {
           e.preventDefault();
           skillsBar.scrollLeft += e.deltaY;
       }
   });
   function activateCarouselArrows() {
       const carousel = document.querySelector('.character-skins-carousel');
       const wrapper = document.querySelector('.character-skins-carousel-wrapper');
       const [leftBtn, rightBtn] = ['.character-skins-arrow.left', '.character-skins-arrow.right'].map(sel => document.querySelector(sel));
       let isPredictingScroll = false;
       const getScrollAmount = () => carousel.clientWidth * 0.6;
       const hideArrow = btn => {
           if (!btn.classList.contains('hiding') && btn.style.display !== 'none') {
               btn.classList.add('hiding');
               setTimeout(() => {
                   btn.style.display = 'none';
                   btn.classList.remove('hiding');
               }, 300);
           }
       };
       const showArrow = btn => {
           if (btn.style.display === 'none') {
               btn.style.display = 'inline-block';
               void btn.offsetWidth;
           }
           btn.classList.remove('hiding');
       };
       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);
           if (!hasLeft && !hasRight) { carousel.style.justifyContent = 'center'; } else { carousel.style.justifyContent = ; }
       };
       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 generateAttributesHTML(str) {
       const vals = str.split(',').map(v => v.trim());
       const title = ['PVE Power','PVP Power','Energy','Cooldown'];
       return `
               ${vals.map((v, i) => {
                   let f = v === '-' ? '-' : parseInt(v);
                   if (i === 2 && !isNaN(f)) f = (f > 0 ? '+' : ) + f;
                   return `
                           ${title[i]}

${f}${i === 3 && f !== '-' ? ' sec' : }

                   `;
               }).join()}

`;

   }

})(); </script>

<style> .character-box {

   padding: 24px;
   color: #fff;
   font-family: 'Orbitron', 'Noto Sans', Arial, sans-serif;
   width: 98%;
   margin: 28px auto;
   position: relative;
   user-select: none;
   background: #1c2025;
   border-radius: 18px;
   box-shadow: 0 2px 24px #0008;
   max-width: 1200px;

} .character-header {

   display: flex;
   align-items: flex-start;
   gap: 24px;
   margin-bottom: 10px;

} .character-icon {

   width: 88px;
   height: 88px;
   border-radius: 9px;
   object-fit: cover;
   border: 3px solid #2bd8d3;
   background: #181b1e;

} .character-info-block {

   display: flex;
   flex-direction: column;
   gap: 4px;

} .character-name {

   font-size: 3.3em;
   font-weight: 900;
   letter-spacing: 0.04em;
   color: #fff;
   margin-bottom: 2px;
   text-shadow: 2px 2px 0 #1ca8b6;

} .character-classes {

   font-size: 1.12em;
   color: #2bd8d3;
   margin-bottom: 3px;
   font-weight: bold;
   display: flex;
   gap: 10px;

} .character-desc {

   background: #1a252e;
   color: #b6eaff;
   border-radius: 7px;
   padding: 9px 16px;
   font-size: 1.21em;
   margin-top: 5px;
   box-shadow: 0 1px 4px #0003;
   max-width: 650px;

}

.character-tabs {

   margin: 20px 0 8px 0;
   display: flex;
   gap: 16px;

} .character-tab-btn {

   padding: 7px 28px;
   font-size: 1.14em;
   border: none;
   border-radius: 6px;
   background: #393a40;
   color: #fff;
   font-weight: bold;
   cursor: pointer;
   transition: background .18s;
   outline: none;
   letter-spacing: 1px;

} .character-tab-btn.active {

   background: #2bd8d3;
   color: #191c1d;

}

.character-tab-content {

   display: none;

} .character-tab-content.active {

   display: block;
   margin-top: 10px;

}

.character-skills-bar {

   display: flex;
   flex-wrap: nowrap;
   gap: 14px;
   padding: 6px 0 10px 2px;
   overflow-x: auto;
   scrollbar-width: thin;
   scrollbar-color: #2bd8d3 #181b1e;
   margin-bottom: 6px;

} .character-skill-icon {

   width: 54px;
   height: 54px;
   border-radius: 8px;
   border: 2px solid transparent;
   cursor: pointer;
   box-shadow: 0 1px 5px #0004;
   transition: border 0.2s, box-shadow 0.2s, transform 0.12s;
   background: #181b1e;
   display: flex;
   align-items: center;
   justify-content: center;

} .character-skill-icon.active {

   border: 2.5px solid #2bd8d3;
   box-shadow: 0 0 0 3px #2bd8d366;
   transform: scale(1.11);

} .character-skill-icon img {

   width: 80%;
   height: 80%;
   object-fit: contain;

}

.character-main-content {

   display: flex;
   gap: 24px;
   margin-top: 10px;

} .character-description-box {

   flex: 1 1 60%;
   display: flex;
   flex-direction: column;
   gap: 13px;
   background: #181b1e;
   border-radius: 10px;
   padding: 24px;
   box-shadow: 0 0 16px #0003;
   min-width: 350px;
   max-width: 600px;

} .character-desc-text {

   color: #fff;
   font-size: 1.1em;

} .character-skill-title h3 {

   font-size: 2.3em;
   letter-spacing: 1.6px;
   margin-bottom: 3px;
   color: #2bd8d3;

} .character-attributes-cards {

   display: flex;
   gap: 17px;
   margin-bottom: 9px;

} .character-attribute-card {

   background: #2bd8d320;
   border-radius: 6px;
   padding: 10px;
   min-width: 80px;
   text-align: center;
   color: #fff;
   font-weight: 600;

} .character-attribute-title {

   font-size: 1.1em;
   color: #b6eaff;

} .character-attribute-value {

   font-size: 1.22em;
   color: #fff;

}

.character-video-box {

   flex: 1 1 40%;
   display: flex;
   align-items: center;
   justify-content: center;
   background: #181b1e;
   border-radius: 10px;
   padding: 24px;
   box-shadow: 0 0 16px #0003;
   min-width: 350px;
   max-width: 600px;
   min-height: 240px;
   margin-left: 10px;

}

.character-tooltip-container {

   position: absolute;
   right: 0;
   top: 50%;
   transform: translateY(-50%);

} .character-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;

} .character-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;

} .character-tooltip-container:hover .character-tooltip-text {

   visibility: visible;
   opacity: 1;

}

@media (max-width: 1050px) {

   .character-main-content { flex-direction: column; }
   .character-video-box, .character-description-box { max-width: 100%; min-width: 0; }

} </style>