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

De Wiki Gla
Ir para navegação Ir para pesquisar
m
 
(29 revisões intermediárias por 2 usuários não estão sendo mostradas)
Linha 1: Linha 1:
<script>
/*******************************************************************************
    (function () {
* TEMA ESCURO MODERNO - WIKI GLA
        const $ = (s, root = document) => root.querySelector(s);
* Estilo wiki.gg com paleta personalizada
        const $$ = (s, root = document) => Array.from(root.querySelectorAll(s));
* Substitua seu Common.css por este arquivo
*******************************************************************************/


        // Idempotent helpers
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&display=swap');
        const ensureRemoved = sel => { Array.from(document.querySelectorAll(sel)).forEach(n => n.remove()); };
        const onceFlag = (el, key) => { if (!el) return false; if (el.dataset[key]) return false; el.dataset[key] = '1'; return true; };


        // Basic DOM nodes
/*******************************************************************************
        const skillsTab = $('#skills');
* SISTEMA DE VARIÁVEIS - PALETA ESCURA
        const skinsTab = $('#skins');
*******************************************************************************/
:root {
    /* Backgrounds */
    --page-bg: #14161b;
    --content-bg: #1f2229;
    --content-bg-alt: #242831;
    --surface-bg: #2a2f38;
   
    /* Borders & Shadows */
    --border-color: #2d313a;
    --border-light: #343a46;
    --shadow-color: rgba(0, 0, 0, 0.45);
    --content-shadow: 0 8px 22px var(--shadow-color);
   
    /* Text */
    --text-primary: #e7ebf2;
    --text-secondary: #b7bfcc;
    --text-muted: #8891a0;
   
    /* Links */
    --link-color: #7ec8ff;
    --link-visited: #9aa9ff;
    --link-hover: #a7e0ff;
    --link-new: #ff6b6b;
   
    /* Accent Colors */
    --accent-primary: #459cca;
    --accent-secondary: #5684c8;
    --accent-gradient: linear-gradient(135deg, #459cca 0%, #5684c8 100%);
   
    /* Tables */
    --table-bg: #242831;
    --table-header: #2d313a;
    --table-border: #343a46;
    --table-hover: #2a303b;
    --table-stripe: #262b34;
   
    /* Forms */
    --input-bg: #242831;
    --input-border: #3d4450;
    --input-focus: #459cca;
   
    /* Scrollbar */
    --scrollbar-track: #1f2229;
    --scrollbar-thumb: #3d4450;
    --scrollbar-hover: #4a5263;
   
    /* Legacy compatibility */
    --content-text: var(--text-primary);
    --simpleSearch-bg: var(--input-bg);
    --searchInput-text: var(--text-secondary);
    --lightGray: var(--surface-bg);
    --gray: var(--border-light);
    --transparent-blue: rgba(69, 156, 202, 0.3);
    --blue: #459cca;
}


        // Clean up legacy nodes/titles/placeholders before building
/*******************************************************************************
        ensureRemoved('.top-rail');
* BASE & BODY
        ensureRemoved('.content-card');
*******************************************************************************/
        ensureRemoved('.video-placeholder');
html {
        // remove old duplicated skins titles (text match)
    scroll-behavior: smooth;
        Array.from(document.querySelectorAll('.card-skins-title, .card-skins .card-skins-title, .cardskins-title, .rail-title')).forEach(t => {
}
            if ((t.textContent || '').trim().toLowerCase().includes('skins')) {
                // keep only if it's inside a future top-rail.skins we will create; remove for now
                t.remove();
            }
        });


        // Build top-rail for skills (only icon-bar, centered)
body {
        if (skillsTab) {
    background-color: var(--page-bg);
            const iconBar = skillsTab.querySelector('.icon-bar');
    color: var(--text-primary);
            if (iconBar) {
    font-family: 'Noto Sans', sans-serif;
                const rail = document.createElement('div');
}
                rail.className = 'top-rail skills';
                // center icon bar inside rail
                rail.appendChild(iconBar);
                skillsTab.prepend(rail);
            }
        }


        // Build top-rail for skins (single title + keep carousel wrapper)
/* Remove imagem de fundo clara */
        if (skinsTab) {
body::before {
            const wrapper = skinsTab.querySelector('.skins-carousel-wrapper');
    display: none !important;
            const rail = document.createElement('div');
}
            rail.className = 'top-rail skins';
            const title = document.createElement('div');
            title.className = 'rail-title';
            title.textContent = 'Skins & Spotlights';
            rail.appendChild(title);
            if (wrapper) {
                const card = document.createElement('div');
                card.className = 'content-card';
                card.appendChild(wrapper);
                skinsTab.prepend(rail);
                skinsTab.appendChild(card);
            } else {
                skinsTab.prepend(rail);
            }
        }


        // Create content-card for skills (description + video) and move nodes in
/*******************************************************************************
        if (skillsTab) {
* TIPOGRAFIA
            const details = skillsTab.querySelector('.skills-details');
*******************************************************************************/
            const videoContainer = skillsTab.querySelector('.video-container');
body,
            const card = document.createElement('div');
.mw-parser-output,
            card.className = 'content-card skills-grid';
.mw-headline,
            if (details) card.appendChild(details);
#firstHeading,
            if (videoContainer) card.appendChild(videoContainer);
h1, h2, h3, h4, h5, h6,
            skillsTab.appendChild(card);
p, ul, ol, li,
        }
table, td, th, caption {
    font-family: 'Noto Sans', sans-serif !important;
    color: var(--text-primary);
}


        // ----- Elements after build
h1, h2, h3, h4, h5, h6 {
        const iconsBar = $('#skills') ? $('.icon-bar', $('#skills')) : null;
    color: var(--text-primary) !important;
        const iconItems = iconsBar ? Array.from(iconsBar.querySelectorAll('.skill-icon')) : [];
    border-bottom: none !important;
        const descBox = $('#skills') ? $('.desc-box', $('#skills')) : null;
}
        const videoBox = $('#skills') ? $('.video-container', $('#skills')) : null;


        // Video cache and state
.mw-headline {
        const videosCache = new Map();
    border-bottom: none !important;
        let totalVideos = 0, loadedVideos = 0, autoplay = false;
}


        // Single placeholder node: create once at page load and never re-create later.
#firstHeading {
        let placeholder = videoBox ? videoBox.querySelector('.video-placeholder') : null;
    border-bottom: none !important;
        let placeholderCreatedOnLoad = false;
    color: var(--text-primary) !important;
        // true once the single placeholder was used/consumed (only show for the first active video)
}
        let placeholderConsumed = false;
        if (!placeholder && videoBox) {
            placeholder = document.createElement('div');
            placeholder.className = 'video-placeholder';
            placeholder.innerHTML = '<img src="/images/d/d5/Icon_gla.png" alt="Carregando...">';
            videoBox.appendChild(placeholder);
            placeholderCreatedOnLoad = true;
        } else if (placeholder) {
            // If a placeholder already exists in DOM (legacy), mark it as created on load.
            placeholderCreatedOnLoad = true;
        }
        if (!placeholder) placeholderConsumed = true; // nothing to show


        // Robust hide/show: fade-out hides the single placeholder but keeps it in DOM
/*******************************************************************************
        // so it can be reused without duplication. Removal (DOM delete) is avoided.
* LINKS
        const removePlaceholderSmooth = () => {
*******************************************************************************/
            if (!placeholder) return;
a {
            if (placeholder.classList.contains('fade-out')) return;
    color: var(--link-color) !important;
            placeholder.classList.add('fade-out');
    transition: color 0.2s ease;
            // when transition completes, keep node but hide it so showPlaceholder can reuse.
}
            const onEnd = () => {
                try { placeholder.style.display = 'none'; } catch (e) { /* ignore */ }
                placeholder.removeEventListener('transitionend', onEnd);
            };
            placeholder.addEventListener('transitionend', onEnd, { once: true });
            // fallback ensure it's hidden
            setTimeout(() => { try { placeholder.style.display = 'none'; } catch (e) {} }, 600);
        };


        // showPlaceholder: shows the single placeholder created at load (no new nodes).
a:visited {
        const showPlaceholder = () => {
    color: var(--link-visited) !important;
            if (!videoBox) return;
}
            if (!placeholder || !placeholderCreatedOnLoad) return;
            if (placeholderConsumed) return; // never show again after first use
            placeholder.classList.remove('fade-out');
            placeholder.style.display = 'flex';
            // force reflow to ensure transition apply on hide later
            void placeholder.offsetWidth;
        };


        // Utility: attach listener only once per element
a:hover {
        const addOnce = (el, ev, fn) => {
    color: var(--link-hover) !important;
            if (!el) return;
    text-decoration: none;
            const attr = `data-wired-${ev}`;
}
            if (el.hasAttribute(attr)) return;
            el.addEventListener(ev, fn);
            el.setAttribute(attr, '1');
        };


        // Preload videos (idempotent: skip if present in map)
a.new {
        if (iconItems.length && videoBox) {
    color: var(--link-new) !important;
            iconItems.forEach(el => {
}
                const src = (el.dataset.video || '').trim();
                const idx = el.dataset.index || '';
                if (!src || videosCache.has(idx)) return;


                totalVideos++;
/*******************************************************************************
                const v = document.createElement('video');
* CONTENT AREA
                v.className = 'skill-video';
*******************************************************************************/
                v.setAttribute('controls', '');
#content,
                v.setAttribute('preload', 'auto');
.mw-body {
                v.setAttribute('playsinline', '');
    background-color: var(--content-bg) !important;
                v.style.display = 'none';
    color: var(--text-primary) !important;
                v.dataset.index = idx;
    border: 1px solid var(--border-color) !important;
                // prefer consistent sizing: width 100% inside video container, and use 16:9 to avoid layout jumps
    box-shadow: var(--content-shadow);
                v.style.width = '100%';
}
                v.style.maxWidth = '100%';
                v.style.height = 'auto';
                v.style.aspectRatio = '16/9';
                v.style.objectFit = 'cover';
                const source = document.createElement('source');
                source.src = src;
                source.type = 'video/webm';
                v.appendChild(source);


                v.addEventListener('canplay', () => {
#mw-page-base,
                    loadedVideos++;
#mw-head-base {
                    if (loadedVideos === 1) { try { v.pause(); v.currentTime = 0; } catch (e) { } }
    background: transparent !important;
                    const active = $('.skill-icon.active', iconsBar);
}
                    if (active && active.dataset.index === idx) {
                        // remove placeholder for the active video (only once)
                        if (!placeholderConsumed) {
                            setTimeout(() => { removePlaceholderSmooth(); placeholderConsumed = true; }, 180);
                        }
                    }
                    if (loadedVideos === totalVideos) autoplay = true;
                });


                v.addEventListener('error', () => {
#mw-head-base {
                    loadedVideos++;
    background: linear-gradient(180deg, var(--page-bg) 0%, transparent 100%) !important;
                    removePlaceholderSmooth();
}
                    if (loadedVideos === totalVideos) autoplay = true;
                });


                videoBox.appendChild(v);
/*******************************************************************************
                videosCache.set(idx, v);
* SIDEBAR & NAVIGATION
            });
*******************************************************************************/
        }
#mw-panel {
    background: transparent;
}


        if (totalVideos === 0 && placeholder) {
#mw-panel .mw-portlet {
            // no videos: hide placeholder but keep the node for idempotence
    background: transparent;
            placeholder.style.display = 'none';
}
            placeholder.classList.add('fade-out');
        }


        // Attach skill icon click handlers once
#mw-panel .mw-portlet h3 {
        iconItems.forEach(el => {
    color: var(--text-muted) !important;
            if (el.dataset.wired) return;
    font-size: 0.75em;
            el.dataset.wired = '1';
    text-transform: uppercase;
            const name = el.dataset.nome || el.dataset.name || '';
    letter-spacing: 0.5px;
            const desc = (el.dataset.desc || '').replace(/'''(.*?)'''/g, '<b>$1</b>');
}
            const attrs = el.dataset.atr || el.dataset.attrs || '';
            const idx = el.dataset.index || '';
            const hasVideo = !!(el.dataset.video && el.dataset.video.trim() !== '');


            el.title = name;
#mw-panel .mw-portlet .vector-menu-content-list > li > a {
            el.addEventListener('click', () => {
    color: var(--link-color) !important;
                // update description area
    font-size: 0.80rem !important;
                if (descBox) {
    font-weight: 500 !important;
                    descBox.innerHTML = `
    padding: 0.3em 0;
  <div class="skill-title"><h3>${name}</h3></div>
    transition: color 0.2s ease, padding-left 0.2s ease;
  ${renderAttributes(attrs)}
}
  <div class="desc">${desc}</div>
`;
                }


                // switch videos: hide all, show selected (if any)
#mw-panel .mw-portlet .vector-menu-content-list > li > a:hover {
                videosCache.forEach(v => { try { v.pause(); } catch (e) { } v.style.display = 'none'; });
    color: var(--link-hover) !important;
                if (videoBox) {
    padding-left: 4px;
                    if (hasVideo && videosCache.has(idx)) {
}
                        const v = videosCache.get(idx);
                        // ensure video container visible and video fills container consistently
                        videoBox.style.display = 'block';
                        v.style.display = 'block';
                        try { v.currentTime = 0; } catch (e) {}
                        // show the (single) placeholder until this video can play
                        if (v.readyState >= 3) {
                            if (!placeholderConsumed) { removePlaceholderSmooth(); placeholderConsumed = true; }
                        } else {
                            // show placeholder only if it hasn't been used yet
                            if (!placeholderConsumed) {
                                showPlaceholder();
                                const canplayHandler = () => { removePlaceholderSmooth(); placeholderConsumed = true; v.removeEventListener('canplay', canplayHandler); };
                                v.addEventListener('canplay', canplayHandler);
                            }
                        }
                        if (autoplay) v.play().catch(() => { });
                    } else {
                        // no video for this skill: hide video area and hide placeholder
                        videoBox.style.display = 'none';
                        if (placeholder) {
                            placeholder.style.display = 'none';
                            placeholder.classList.add('fade-out');
                        }
                    }
                }


                // active state
#p-logo {
                iconItems.forEach(i => i.classList.remove('active'));
    background-color: transparent !important;
                el.classList.add('active');
}
                if (!autoplay && loadedVideos > 0) autoplay = true;
            });
        });


        // Tooltip: single global tooltip for skill icons (idempotent)
#p-navigation {
        (function initSkillTooltip() {
    background-color: transparent;
            if (document.querySelector('.skill-tooltip')) return;
}
            const tip = document.createElement('div');
 
            tip.className = 'skill-tooltip';
#p-tb {
            tip.setAttribute('role', 'tooltip');
    display: none;
            tip.setAttribute('aria-hidden', 'true');
}
            document.body.appendChild(tip);


            function measureAndPos(el) {
/*******************************************************************************
                if (!el || tip.getAttribute('aria-hidden') === 'true') return;
* SEARCH BAR
                // reset to measure
*******************************************************************************/
                tip.style.left = '0px';
#simpleSearch {
                tip.style.top = '0px';
    background-color: var(--input-bg) !important;
                const rect = el.getBoundingClientRect();
    border: 1px solid var(--input-border) !important;
                const tr = tip.getBoundingClientRect();
    border-radius: 6px;
                let left = Math.round(rect.left + (rect.width - tr.width) / 2);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
                left = Math.max(8, Math.min(left, window.innerWidth - tr.width - 8));
}
                let top = Math.round(rect.top - tr.height - 8);
                if (top < 8) top = Math.round(rect.bottom + 8);
                tip.style.left = left + 'px';
                tip.style.top = top + 'px';
            }


            function show(el, text) {
#simpleSearch:focus-within {
                tip.textContent = text || '';
    border-color: var(--input-focus) !important;
                tip.setAttribute('aria-hidden', 'false');
    box-shadow: 0 0 0 3px rgba(69, 156, 202, 0.2);
                tip.style.opacity = '1';
}
                measureAndPos(el);
 
            }
#searchInput {
    background-color: transparent !important;
    color: var(--text-primary) !important;
    border: none !important;
}
 
#searchInput::placeholder {
    color: var(--text-muted);
}
 
#searchButton {
    filter: invert(0.8);
}
 
#p-search {
    float: left;
    margin-left: -0.1em;
    margin-right: 1em;
    margin-top: -0.4em;
}
 
/*******************************************************************************
* TABS & ACTIONS
*******************************************************************************/
.vector-menu-tabs,
.vector-menu-tabs a,
#mw-head .vector-menu-dropdown h3 {
    background: none;
}
 
.vector-menu-tabs li {
    background: transparent;
}
 
.vector-menu-tabs li a {
    color: var(--text-secondary) !important;
    background: transparent;
    transition: color 0.2s ease;
}
 
.vector-menu-tabs li a:hover {
    color: var(--link-hover) !important;
}
 
.vector-menu-tabs .selected {
    background: var(--content-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-bottom-color: var(--content-bg) !important;
    border-radius: 4px 4px 0 0;
}
 
.vector-menu-tabs .selected a {
    color: var(--text-primary) !important;
    font-weight: 600;
}
 
#p-cactions {
    background: none;
    margin-top: -0.6em;
}
 
#p-cactions li {
    background: none;
}
 
#p-cactions li.selected {
    background: var(--content-bg);
    border: 1px solid var(--border-color);
}
 
#p-cactions li a {
    background-color: var(--surface-bg) !important;
    color: var(--link-color) !important;
}
 
.vector-menu-dropdown .vector-menu-content {
    background-color: var(--content-bg) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
 
.vector-menu-dropdown .vector-menu-content li a {
    color: var(--text-primary) !important;
}
 
.vector-menu-dropdown .vector-menu-content li a:hover {
    background-color: var(--surface-bg) !important;
}
 
#ca-view,
#ca-history,
#ca-viewsource {
    display: none !important;
}
 
/*******************************************************************************
* DISCORD BUTTON
*******************************************************************************/
#n-Discord {
    font-size: 10px;
    line-height: 1.5em;
}
 
#p-Discord-label {
    display: none;
}
 
#n-Discord a {
    color: #fff !important;
    font-weight: bold;
    border-radius: 6px;
    border: 1px solid #4c57d0;
    background-color: #5865f2;
    display: block;
    position: relative;
    padding: 6px 8px 5px calc(14px + 6.5px * 2);
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
    transition: all 0.2s ease;
}
 
#n-Discord a::after {
    content: '';
    background: url(/images/7/76/Discord-brands.png) no-repeat;
    background-size: contain;
    background-position: center;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
    position: absolute;
    top: 4px;
    left: 6px;
    width: 18px;
    height: 18px;
}
 
#n-Discord a:hover {
    text-decoration: none;
    background-color: #7885ff;
    border-color: #6c77f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}
 
/*******************************************************************************
* TABLES - GENERAL
*******************************************************************************/
table {
    background-color: var(--table-bg);
    border-color: var(--table-border);
}
 
table th {
    background-color: var(--table-header) !important;
    color: var(--text-primary) !important;
    border-color: var(--table-border) !important;
}
 
table td {
    background-color: var(--table-bg) !important;
    color: var(--text-primary) !important;
    border-color: var(--table-border) !important;
}


            function hide() {
table tr:hover td {
                tip.setAttribute('aria-hidden', 'true');
    background-color: var(--table-hover) !important;
                tip.style.opacity = '0';
}
            }


            // attach once to each icon
/*******************************************************************************
            Array.from(document.querySelectorAll('.icon-bar .skill-icon')).forEach(icon => {
* TABLE-ENHANCE
                if (icon.dataset.tipwired) return;
*******************************************************************************/
                icon.dataset.tipwired = '1';
table.table-enhance {
                const label = icon.dataset.nome || icon.dataset.name || icon.title || '';
    background-color: var(--table-bg);
                icon.addEventListener('mouseenter', () => show(icon, label));
    border: 1px solid var(--table-border);
                icon.addEventListener('mousemove', () => measureAndPos(icon));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
                icon.addEventListener('mouseleave', hide);
}
            });


            // keep positioned while scrolling/resizing
.table-enhance th,
            window.addEventListener('scroll', () => {
.table-enhance td {
                const visible = document.querySelector('.skill-tooltip[aria-hidden="false"]');
    border: 1px solid var(--table-border);
                if (!visible) return;
    color: var(--text-primary);
                const hover = document.querySelector('.icon-bar .skill-icon:hover') || document.querySelector('.icon-bar .skill-icon.active');
}
                measureAndPos(hover);
            }, true);
            window.addEventListener('resize', () => {
                const hover = document.querySelector('.icon-bar .skill-icon:hover') || document.querySelector('.icon-bar .skill-icon.active');
                measureAndPos(hover);
            });
        })();


        // Select first skill by default (dispatch click once)
.table-enhance th {
        if (iconItems.length) {
    background-color: var(--table-header);
            const first = iconItems[0];
    color: var(--text-primary);
            if (first) {
}
                // ensure default active visual & trigger behavior
                if (!first.classList.contains('active')) first.classList.add('active');
                // trigger click after microtask so videos are ready to be shown
                setTimeout(() => first.click(), 0);
            }
        }


        // Description height is fixed via CSS (max-height). Keep this function as no-op
.table-enhance tr:nth-child(even) td {
        // to avoid dynamic inline max-height adjustments that cause inconsistent behaviour.
    background-color: var(--table-stripe);
        function syncDescHeight() {
}
            return;
        }


        // keep in sync on resize and when videos change layout
.table-enhance tr:hover td {
        window.addEventListener('resize', syncDescHeight);
    background-color: var(--table-hover);
        if (videoBox) new ResizeObserver(syncDescHeight).observe(videoBox);
}


        // call sync after each icon click (desc is rebuilt there)
.table-enhance-vertical td:first-child {
        // patch: wrap existing click wiring to call syncDescHeight after updating DOM
    color: var(--link-color);
        iconItems.forEach(el => {
}
            const wired = !!el.dataset._sync_wired;
            if (wired) return;
            el.dataset._sync_wired = '1';
            // find existing click handler we attached earlier and chain sync
            el.addEventListener('click', () => {
                // run in next microtask so DOM update from earlier handler is settled
                Promise.resolve().then(syncDescHeight);
            });
        });


        // horizontal scroll on wheel (attach once)
/*******************************************************************************
        if (iconsBar) addOnce(iconsBar, 'wheel', (e) => {
* WIKITABLES
            if (e.deltaY) {
*******************************************************************************/
                e.preventDefault();
table.wikitable,
                iconsBar.scrollLeft += e.deltaY;
table.wikitablec,
            }
table.wikitablew,
        });
table.wikitablenb,
table.wikitablewhite,
table.wikitablecenter,
table.wikitablew-tr,
table.prettytable {
    background-color: var(--table-bg) !important;
    border: 1px solid var(--table-border) !important;
}


        // skins carousel arrows init (idempotent)
table.wikitable th,
        (function initSkinsArrows() {
table.wikitablec th,
            const carousel = $('.skins-carousel');
table.wikitablew th,
            const wrapper = $('.skins-carousel-wrapper');
table.wikitablenb th,
            const left = $('.skins-arrow.left');
table.wikitablewhite th,
            const right = $('.skins-arrow.right');
table.wikitablecenter th,
            if (!carousel || !left || !right || !wrapper) return;
table.wikitablew-tr th,
            if (wrapper.dataset.wired) return;
table.prettytable th {
            wrapper.dataset.wired = '1';
    background-color: var(--table-header) !important;
            const scrollAmt = () => Math.round(carousel.clientWidth * 0.6);
    color: var(--text-primary) !important;
            function setState() {
    border: 1px solid var(--table-border) !important;
                const max = carousel.scrollWidth - carousel.clientWidth;
}
                const x = carousel.scrollLeft;
                const hasLeft = x > 5, hasRight = x < max - 5;
                left.style.display = hasLeft ? 'inline-block' : 'none';
                right.style.display = hasRight ? 'inline-block' : 'none';
                wrapper.classList.toggle('has-left', hasLeft);
                wrapper.classList.toggle('has-right', hasRight);
                carousel.style.justifyContent = (!hasLeft && !hasRight) ? 'center' : '';
            }
            function go(dir) {
                const max = carousel.scrollWidth - carousel.clientWidth;
                const next = dir < 0
                    ? Math.max(0, carousel.scrollLeft - scrollAmt())
                    : Math.min(max, carousel.scrollLeft + scrollAmt());
                carousel.scrollTo({ left: next, behavior: 'smooth' });
            }
            left.addEventListener('click', () => go(-1));
            right.addEventListener('click', () => go(1));
            carousel.addEventListener('scroll', setState);
            new ResizeObserver(setState).observe(carousel);
            setState();
        })();


        // Render attributes function (keeps empty rows above visible ones)
table.wikitable td,
        function renderAttributes(str) {
table.wikitablec td,
            const vals = (str || '').split(',').map(v => v.trim());
table.wikitablew td,
            const pve = parseInt(vals[0], 10);
table.wikitablenb td,
            const pvp = parseInt(vals[1], 10);
table.wikitablewhite td,
            const ene = parseInt(vals[2], 10);
table.wikitablecenter td,
            const cd = parseInt(vals[3], 10);
table.wikitablew-tr td,
table.prettytable td {
    background-color: var(--table-bg) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--table-border) !important;
}


            const recargaVal = isNaN(cd) ? '-' : cd;
table.wikitable tr:hover td,
            const energiaLabel = isNaN(ene) ? 'Energia' : (ene >= 0 ? 'Ganho de energia' : 'Custo de energia');
table.wikitablew tr:hover td,
            const energiaVal = isNaN(ene) ? '-' : Math.abs(ene);
table.wikitablew-tr tr:hover td {
            const poderVal = isNaN(pve) ? '-' : pve;
    background-color: var(--table-hover) !important;
            const poderPvpVal = isNaN(pvp) ? '-' : pvp;
}


            const rows = [
/*******************************************************************************
                ['Recarga', recargaVal],
* JQUERY TABLESORTER
                [energiaLabel, energiaVal],
*******************************************************************************/
                ['Poder', poderVal],
.jquery-tablesorter {
                ['Poder PvP', poderPvpVal],
    background-color: var(--table-bg) !important;
            ];
    border-color: var(--table-border) !important;
}


            // Only render actual attributes. Do not emit invisible placeholders
.jquery-tablesorter tr td {
            const visible = rows.filter(([, v]) => v !== '-');
    background-color: var(--table-bg) !important;
            if (visible.length === 0) return ''; // nothing to show -> no reserved space
    color: var(--text-primary) !important;
            const visibleHtml = visible.map(([label, value]) => `
}
                <div class="attr-row">
                    <span class="attr-label">${label}:</span>
                    <span class="attr-value">${value}</span>
                </div>
            `).join('');
            return `<div class="attr-list">${visibleHtml}</div>`;
        }


        // language-aware tab label for Skills
.jquery-tablesorter tr th {
        (function localizeSkillsTab() {
    background-color: var(--table-header) !important;
            const lang = (document.documentElement.lang || navigator.language || '').toLowerCase();
    color: var(--text-primary) !important;
            const code = lang.split('-')[0];
}
            const map = {
                en: 'Skills',
                'pt': 'Habilidades',
                'pt-br': 'Habilidades',
                'es': 'Habilidades',
                pl: 'Umiejętności'
            };
            // prefer full match (pt-br) then base code
            const key = map[lang] ? lang : (map[code] ? code : 'en');
            const label = map[key] || map.en;
            // try well-known selector first, fallback to searching for english-like text
            let btn = document.querySelector('.character-tabs .tab-btn[data-tab="skills"]') ||
                      Array.from(document.querySelectorAll('.character-tabs .tab-btn')).find(b => /skill|habil|umiej/i.test(b.textContent || ''));
            if (btn) btn.textContent = label;
        })();


        // DEBUG: log video sources and errors
#mw-content-text .mw-parser-output .jquery-tablesorter {
        setTimeout(() => {
     background-color: var(--table-bg) !important;
            console.log('DEBUG: totalVideos=', totalVideos);
     color: var(--text-primary) !important;
            Array.from(document.querySelectorAll('.skill-icon')).forEach(el => {
     border-color: var(--table-border) !important;
                console.log('icon', el.dataset.index, 'data-video=', el.dataset.video);
}
            });
            videosCache.forEach((v, idx) => {
                const src = v.querySelector('source') ? v.querySelector('source').src : v.src;
                console.log('video element', idx, 'src=', src, 'readyState=', v.readyState);
                v.addEventListener('error', (ev) => {
                    console.error('VIDEO ERROR idx=', idx, 'src=', src, 'error=', v.error);
                });
                v.addEventListener('loadedmetadata', () => {
                    console.log('loadedmetadata idx=', idx, 'dimensions=', v.videoWidth, 'x', v.videoHeight);
                });
            });
        }, 600);
     })();
</script>
<style>
    /* ===========================
  Base
  =========================== */
    img {
        pointer-events: none;
        user-select: none;
    }
    /* video baseline; specific skill video sizing overridden below */
    video { max-height: none; }
    .mw-body {
        padding: unset !important;
     }
    /* precisa de !important p/ MediaWiki */
    .mw-body-content {
        line-height: 1.5;
     }
    .mw-body-content p {
        display: none;
    }
    /* ===========================
  Banner
  =========================== */
    /* Hide the original banner element (we'll use the image as the template background)
      and keep the selector so existing markup doesn't break. */
    .banner { display: none !important; }


    /* Use the banner image as the background for the template container and add
/*******************************************************************************
      a subtle dark overlay via ::before to improve text contrast. */
* CARDS
    .character-box {
*******************************************************************************/
        /* ...existing properties... */
.card {
        background-image: url(https://i.imgur.com/RktmgO8.png);
    background-color: var(--content-bg);
        background-position: center top;
    border: 1px solid var(--border-color);
        background-repeat: no-repeat;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        background-size: cover;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
        position: relative; /* ensure positioning context for ::before */
}
        z-index: 1; /* base layer for the box content */
    }


    /* overlay sits above the background image but below the content; darker bottom-to-top gradient */
.card:hover {
    .character-box::before {
    transform: translateY(-2px);
        content: "";
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
        position: absolute;
}
        inset: 0;
        pointer-events: none;
        background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.60));
        z-index: 0; /* overlay: below content (content kept at z-index:1) */
    }


    /* ===========================
.card-title {
  Character topbar
    background: var(--accent-gradient);
  =========================== */
    color: #fff;
    .character-box {
}
        color: #000;
        font-family: 'Noto Sans', sans-serif;
        width: 100%;
        margin: auto;
        position: relative;
        user-select: none;
    }


    .character-box p {
/*******************************************************************************
        display: unset;
* HOMEPAGE
    }
*******************************************************************************/
.initialPage--table {
    background: transparent !important;
}


    .character-topbar {
.initialPage--table > tbody > tr > th,
        display: flex;
.initialPage--table > tbody > tr > td {
        flex-direction: column;
     background: transparent !important;
        align-items: flex-start;
}
        padding: 8px 20px 0;
     z-index: 1; /* topbar above overlay */
    }


    .character-name-box {
.initialPage--title th {
        display: flex;
    background-color: transparent !important;
        align-items: center;
    color: var(--text-primary) !important;
        gap: 14px;
}
    }


    .topbar-icon {
.initialPage--menuTitle {
        margin-top: 8px;
    background: var(--accent-gradient);
        width: 100px;
    color: #fff;
        height: 100px;
}
        object-fit: none;
    }


    .character-name {
.initialPage--menuContainer,
        color: #fff;
.initialPage--sideMenuContainer {
        font-size: 56px;
    background: transparent;
        font-family: 'Orbitron', sans-serif;
}
        font-weight: 900;
        text-shadow: 0 0 6px #000, 0 0 9px #000;
    }


    .topbar-description {
/*******************************************************************************
        display: none;
* SOCIAL MEDIA LINKS
    }
*******************************************************************************/
.initialPage--socialMedia {
    border-top: 2px solid var(--border-light);
}


    /* ===========================
.initialPage--socialMediaLink {
  Header / Artwork
    color: var(--text-secondary) !important;
  =========================== */
}
    .character-header {
        position: relative;
        overflow: hidden; /* artwork must not 'vazar' */
        display: flex;
        gap: 10px;
        flex-direction: column;
        z-index: 1; /* header/topbar layer */
    }


    /* artwork removed from layout (server still accepts param but we ignore rendering).
.initialPage--socialMediaLink:visited {
      ensure it doesn't reserve space if present in legacy markup */
     color: var(--text-secondary) !important;
     .character-art { display: none !important; width: 0 !important; height: 0 !important; overflow: hidden !important; }
}


    /* Class / tier chips */
.socialMedia--svg svg {
    .class-tags {
    fill: var(--text-secondary);
        display: flex;
}
        gap: 9px;
        flex-wrap: wrap;
        margin-left: .28rem;
    }


    .class-tag {
/* Discord */
        background: #353420;
.initialPage--socialMedia.discord > .initialPage--socialMediaLink:hover {
        color: #fff;
    color: #5865f2 !important;
        outline: 2px solid #000;
}
        padding: 1px 6px;
        border-radius: 4px;
        font-size: .9em;
        font-weight: 700;
        box-shadow: 0 0 2px rgb(0 0 0 / 70%);
    }


    .character-info .tier,
.initialPage--socialMedia.discord:before {
    .character-info .class-tag {
    background: #5865f2;
        font-size: 18px;
}
        color: #bbb;
    }


    /* ===========================
.initialPage--socialMedia.discord > .initialPage--socialMediaLink:hover > .socialMedia--svg svg {
  Tabs
    fill: #5865f2 !important;
  =========================== */
}
    .character-tabs {
        margin: 4px 0 4px 8px;
        display: flex;
        gap: 12px;
    }


    .tab-btn {
/* Instagram */
        padding: 5px 20px;
.initialPage--socialMedia.instagram > .initialPage--socialMediaLink:hover {
        background: #333;
    color: #f09433 !important;
        color: #fff;
}
        border: 2px solid transparent;
        border-radius: 8px;
        font-size: 20px;
        cursor: pointer;
        font-weight: 600;
        line-height: 1;
        transition: background .15s, border-color .15s;
    }


    .tab-btn.active {
.initialPage--socialMedia.instagram:before {
        background: #156bc7;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        border-color: #156bc7;
}
    }


    .tab-content {
/* Facebook */
        display: none;
.initialPage--socialMedia.facebook > .initialPage--socialMediaLink:hover {
        padding: 0 8px 8px;
     color: #4267B2 !important;
        position: relative;
}
     z-index: 2; /* content layer */
    }


    .tab-content.active {
.initialPage--socialMedia.facebook:before {
        display: block;
    background: #4267B2;
    }
}


    /* ===========================
/*******************************************************************************
  Skills
* BADGES & SECTION TITLES
  =========================== */
*******************************************************************************/
    .skills-container {
.badge {
        display: flex;
    background: var(--accent-gradient);
        gap: 20px;
    color: #fff;
     }
     box-shadow: rgba(69, 156, 202, 0.3) 0px 0px 0px 3px;
}


    .skills-details {
.section-title {
        flex: 1;
    background: var(--accent-gradient);
        display: flex;
    color: #fff;
        flex-direction: column;
}
        gap: 10px;
        width: auto; /* let grid control widths */
        justify-content: center;
    }


    .icon-bar {
/*******************************************************************************
        display: flex;
* FILTERS (CHARACTERS PAGE)
        flex-wrap: nowrap;
*******************************************************************************/
        gap: 10px;
.filter {
        width: 100%;
    background-color: var(--content-bg);
        overflow-x: auto;
    border: 2px solid var(--border-light);
        overflow-y: hidden;
}
        padding: 6px 6px; /* centraliza melhor verticalmente */
        margin-bottom: 6px;
        scrollbar-width: thin;
        scrollbar-color: #ababab transparent;
        scroll-behavior: smooth;
        justify-content: flex-start;
        align-items: center; /* centraliza os ícones verticalmente dentro da barra */
        position: relative;
        z-index: 4;
    }


    .icon-bar::-webkit-scrollbar {
.filter--title {
        height: 6px;
    background: var(--accent-gradient);
    }
    border-right: 2px solid var(--border-light);
    color: #fff;
}


     .icon-bar::-webkit-scrollbar-track {
.filter--input {
        background: transparent;
     background-color: var(--input-bg);
    }
    border: 2px solid var(--border-light);
    color: var(--text-primary);
}


    .icon-bar::-webkit-scrollbar-thumb {
.filter--input::placeholder {
        background: #151515;
    color: var(--text-muted);
        border-radius: 3px;
}
    }


    :root {
.filter--searchButton {
        --icon-size: 39px;
    background: var(--accent-gradient);
        --icon-radius: 8px;
    border: 2px solid var(--border-light);
        /* ring width and colors (icons-only overrides) */
}
        --icon-ring-w: 2px;
        --icon-idle: #bbb;
        --icon-active: #FFD257;              /* amarelo agradável */
        --icon-active-ring: rgba(255,210,87,.45);
        --icon-active-glow: rgba(255,210,87,.35);
    }


    /* ensure each icon is vertically centered inside the bar */
.filter--icon img {
    .icon-bar .skill-icon {
    filter: grayscale(0.5) brightness(0.9);
        /* keep original sizing and alignment but ensure perfect clipping */
}
        width: var(--icon-size);
        height: var(--icon-size);
        position: relative;
        flex: 0 0 auto;
        border-radius: var(--icon-radius);
        overflow: hidden;        /* hard clip the image */
        contain: paint;          /* reduce subpixel leakage */
        margin-top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
        background-clip: padding-box;
    }


    .icon-bar .skill-icon img {
.filter--icon.active img {
        display: block;
    filter: grayscale(0) brightness(1);
        width: 100%;
    box-shadow: 0 0 12px rgba(69, 156, 202, 0.5);
        height: 100%;
}
        object-fit: cover;
        border-radius: inherit;
        clip-path: inset(0 round var(--icon-radius));
        -webkit-clip-path: inset(0 round var(--icon-radius));
        will-change: transform;
        backface-visibility: hidden;
        transform: translateZ(0);
        transition: transform .12s ease;
    }


    /* internal ring implemented via inset box-shadow to avoid border layout changes */
/*******************************************************************************
    .icon-bar .skill-icon::after {
* CHARACTER CARDS
        content: "";
*******************************************************************************/
        position: absolute;
#characters-container > div > a > img {
        inset: 0;
    filter: grayscale(0.2) brightness(0.95);
        border-radius: inherit;
    border: 2px solid var(--border-color);
        /* internal ring keeps constant thickness between states */
    transition: all 0.25s ease;
        box-shadow: inset 0 0 0 var(--icon-ring-w) var(--icon-idle);
}
        pointer-events: none;
        z-index: 2;
        transition: box-shadow .14s ease;
    }


     /* subtle hover color change without changing ring width */
#characters-container > div:hover > a > img {
     .icon-bar .skill-icon:hover::after {
     filter: grayscale(0) brightness(1);
        box-shadow: inset 0 0 0 var(--icon-ring-w) #e0e0e0;
     border-color: var(--accent-primary);
    }
    box-shadow: 0 0 20px rgba(69, 156, 202, 0.4);
    transform: scale(1.05);
}


    /* separate pseudo for glow so ring thickness does not change */
/*******************************************************************************
    .icon-bar .skill-icon::before {
* CHARACTER PAGE
        content: "";
*******************************************************************************/
        position: absolute;
.characterInfo--name {
        inset: 0;
    color: var(--text-primary) !important;
        border-radius: inherit;
}
        pointer-events: none;
        z-index: 1;
        box-shadow: none;
        opacity: 0;
        transition: opacity .14s ease, box-shadow .14s ease;
    }


    .icon-bar .skill-icon.active::after {
.characterInfo--contentContainer {
        box-shadow: inset 0 0 0 var(--icon-ring-w) var(--icon-active);
    background-color: var(--content-bg);
    }
}


    .icon-bar .skill-icon.active::before {
.stats--container {
        /* glow only (does not change inner ring thickness) */
    background-color: var(--content-bg);
        box-shadow: 0 0 10px 2px var(--icon-active-glow), 0 0 0 4px var(--icon-active-ring);
}
        opacity: 1;
    }


    /* smooth zoom on the image only (keeps ring aligned) */
.bar-filled {
    .icon-bar .skill-icon.active img {
    background: var(--accent-primary);
        transform: scale(1.10);
}
    }


    @media (prefers-reduced-motion: reduce) {
.bar-notFilled {
        .icon-bar .skill-icon {
    background: var(--transparent-blue);
            transition: none;
}
        }
    }


    /* Title description */
/*******************************************************************************
    .skill-title {
* SKILLS TABS
        margin: 0 0 12px;
*******************************************************************************/
        display: flex;
.tabsContainer table {
        justify-content: center;
    background: transparent;
        align-items: center;
}
    }


    .skill-title h3 {
.tabsContainer table > tbody > tr > td {
        margin: 0;
    border-bottom: 2px solid var(--border-color);
        width: 100%;
}
        text-align: center;
        font-size: 1.6em;
        color: #fff;
    }


    /* Description */
.tab-skill {
    /* Description box: remove own card background/shadow so it doesn't stack
     background-color: var(--content-bg);
      on top of the outer .content-card. The .content-card remains the main
    border: 2px solid transparent;
      visual container. Keep padding and readable colors. */
    transition: all 0.25s ease;
     .desc-box {
}
        padding: 12px 18px; /* breathing room */
        background: transparent;
        border-radius: 6px;
        position: relative;
        box-shadow: none;
        color: #fff;
        transition: all .3s ease;
        z-index: 2;
        overflow: visible;
        text-shadow: none;
        /* allow description area to grow but not force whole card height */
        height: auto;
        min-height: 0;
    }


    .desc-box h3 {
.tab-skill.active {
        font-size: 2.7em;
    border-color: var(--accent-primary);
        margin: 0;
    background-color: var(--surface-bg);
        text-align: center;
}
        padding-top: 0;
    }


    .desc {
.tab-skill:hover {
        flex: 1;
    background-color: var(--surface-bg);
        font-size: 1.32em !important;
}
        line-height: 1.7 !important;
        letter-spacing: .01em;
        /* Fixed max height so long descriptions always scroll consistently */
        max-height: 100%;
        /* keep scrollbar gutter stable to avoid layout shift of background/content */
        overflow-y: auto;
        scrollbar-gutter: stable;
        margin-top: 10px;
        padding-right: 8px;
        color: #f1efe9;
        /* allow long words/URLs to wrap instead of pushing layout */
        overflow-wrap: anywhere;
        word-break: break-word;
        white-space: normal;
    }


    .desc b,
.skillInfo--name {
     .desc strong {
     color: var(--text-primary) !important;
        font-weight: 700;
}
        color: #fff;
    }


    .desc::-webkit-scrollbar {
.skillInfo--description {
        width: 7px;
    color: var(--text-secondary);
        height: 7px;
}
    }


    .desc::-webkit-scrollbar-thumb {
.skillInfo > div > .skillInfo--infoContainer b {
        background: #156bc7;
    color: var(--link-color) !important;
        border-radius: 10px;
}
    }


    .desc::-webkit-scrollbar-track {
.skillInfo--attributesContainer > h1 {
        background: #151515a8;
    color: var(--text-muted) !important;
        border-radius: 10px;
}
    }


    /* Attributes list */
/* Scrollbar for skills */
    .attrs,
.skillInfo--description::-webkit-scrollbar,
    .attr-list {
.tabSkill--container::-webkit-scrollbar {
        display: block;
    width: 8px;
        margin: 6px 0 12px;
    height: 8px;
    }
}


    .desc-box .attrs,
.skillInfo--description::-webkit-scrollbar-track,
    .desc-box .attr-list,
.tabSkill--container::-webkit-scrollbar-track {
    .desc-box .attrs *,
    background-color: var(--scrollbar-track);
    .desc-box .attr-list * {
    border-radius: 10px;
        text-shadow: none;
}
        font-family: 'Noto Sans', sans-serif;
    }


    .attrs__row,
.skillInfo--description::-webkit-scrollbar-thumb,
    .attr-row {
.tabSkill--container::-webkit-scrollbar-thumb {
        display: flex;
    background-color: var(--scrollbar-thumb);
        align-items: baseline;
    border-radius: 10px;
        gap: 8px;
}
        min-height: 22px;
        line-height: 1.2;
    }


    .attrs__row--empty,
.skillInfo--description::-webkit-scrollbar-thumb:hover,
    .attr-row.is-empty {
.tabSkill--container::-webkit-scrollbar-thumb:hover {
        display: none;
    background-color: var(--scrollbar-hover);
    }
}


    .attrs__label,
/*******************************************************************************
    .attr-label {
* ATTRIBUTE CARDS
        font-weight: 700;
*******************************************************************************/
        color: #f0c87b;
.attribute--cardsContainer {
        font-size: .98rem;
    background: var(--surface-bg);
        white-space: nowrap;
    border: 2px solid var(--border-color);
        margin: 0;
}
    }


    .attrs__value,
.cardAttribute--value {
    .attr-value {
    color: var(--text-primary) !important;
        color: #fff;
}
        font-weight: 800;
        /* equal size with label for consistent centering */
        font-size: .98rem;
        letter-spacing: .01em;
        margin: 0;
    }


    /* ensure rows center both label & value (value vertically centered on label) */
/*******************************************************************************
    .attr-row {
* SKINS CONTAINER
        align-items: center;
*******************************************************************************/
    }
.skins--container {
    background-color: var(--content-bg);
}


    /* remove fixed skill pane height and let content decide height */
.skins--container::-webkit-scrollbar {
    :root { --skill-pane-height: unset; }
    width: 8px;
     .skills-container { align-items: flex-start; }
     height: 8px;
}


    /* Video container: allow the video to display at its original size
.skins--container::-webkit-scrollbar-track {
      while keeping it responsive (max-width:100%). Remove extra inner
    background-color: var(--scrollbar-track);
      shadows so the .content-card is the primary card. Center content. */
    border-radius: 10px;
    .video-container {
}
        position: relative;
        width: 100%;
        max-width: 100%;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        box-shadow: none;
        overflow: hidden; /* rounded corners */
        padding: 0;
        z-index: 2;
    }
    /* ensure every skill video has consistent visible size to avoid tiny thumbnails;
        videos fill the video column (responsive) using 16:9 to avoid layout jumps */
    .video-container>video {
        /* Preencher a coluna do vídeo; mostrar conteúdo inteiro sem recorte */
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: contain;
        object-position: center;
        z-index: 2;
        display: block;
        border-radius: 6px;
        background: #000;
    }


    /* Center the placeholder/logo while videos load. Keep it as an overlay
.skins--container::-webkit-scrollbar-thumb {
      so it doesn't shift layout. */
    background-color: var(--scrollbar-thumb);
    .video-placeholder {
     border-radius: 10px;
        position: absolute;
}
        inset: 0;
        z-index: 6;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
        opacity: 1;
        transition: opacity .28s ease;
        background: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.0)); /* transparent overlay but keeps stacking context */
     }


    .video-placeholder img {
/*******************************************************************************
        max-width: 160px;
* CALCULATOR XP
        width: auto;
*******************************************************************************/
        height: auto;
.calcXp--container {
        opacity: 0.98;
    background-color: var(--content-bg);
        display: block;
    border: 2px solid var(--border-light);
    }
}


    /* fade-out helper used by JS removePlaceholder() */
.calcXp--resultTitle {
    .video-placeholder.fade-out {
    color: var(--text-secondary) !important;
        opacity: 0;
}
    }


    @media (max-width:1100px) {
.calcXp--formItem input {
        .top-rail {
    background-color: var(--input-bg);
            flex-direction: column;
    border: 2px solid var(--border-light);
            align-items: stretch;
    color: var(--text-primary);
        }
}
        .top-rail .icon-bar {
            order: 2;
            width: 100%;
            flex-wrap: wrap;
        }
        .content-card.skills-grid { grid-template-columns: 1fr; }
    }


    @media (max-aspect-ratio: 3/4) {
.calcXp--formItem span {
        .character-header .character-art {
    color: var(--link-color);
            display: none;
}
        }


        .video-container {
#calculate-btn {
            width: 80%;
    background: var(--accent-gradient);
            border-radius: 3%;
    color: #fff;
            margin-top: 2%;
    border: none;
            align-self: center;
    box-shadow: 0 4px 12px rgba(69, 156, 202, 0.3);
        }
}
    }


#calculate-btn:hover {
    box-shadow: 0 6px 16px rgba(69, 156, 202, 0.4);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #3d8ab8 0%, #4a76b5 100%);
}


/*******************************************************************************
* ITEM INFOBOX
*******************************************************************************/
.iteminfobox {
    background: var(--content-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}


    /* Tiers */
.iteminfobox b {
     .tier-bronze .topbar-icon,
     color: var(--link-color);
    .tier-bronze .tier {
}
        outline: 2px solid #7b4e2f;
    }


     .tier-silver .topbar-icon,
/*******************************************************************************
     .tier-silver .tier {
* TOOLTIPS
        outline: 2px solid #d6d2d2;
*******************************************************************************/
     }
.tooltipster-default {
     background-color: var(--content-bg) !important;
     color: var(--text-primary) !important;
    border: 1px solid var(--border-color);
     box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}


     .tier-gold .topbar-icon,
.tip2 {
     .tier-gold .tier {
    background-color: var(--content-bg);
        outline: 2px solid #fcd300;
     border: 1px solid var(--border-color);
    }
     box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    color: var(--text-primary);
}


     .tier-diamond .topbar-icon,
/*******************************************************************************
     .tier-diamond .tier {
* TRANSCRIPTIONS / DIALOGS
        outline: 2px solid #60dae2;
*******************************************************************************/
    }
.transcrições {
     background-color: var(--surface-bg);
    border-radius: 8px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
}


    /* Top rail: created dynamically by JS; styles for tabs header */
.transcrições::before {
    .top-rail {
    background-color: var(--surface-bg);
        display:flex;
}
        align-items:center;
        justify-content:center;
        width:max-content;
        max-width:96vw;
        margin:8px auto;
        padding:8px 12px;
        background:rgba(0,0,0,.55);
        border: 2px solid rgba(255,255,255,.08);
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,.25);
        -webkit-backdrop-filter:blur(2px);
        backdrop-filter:blur(2px);
    }


     /* hide title by default (skills rail won't show it) */
.transcrições b,
    .top-rail .rail-title { display:none; }
.transcrições strong {
     color: var(--text-primary) !important;
}


    /* skins variant shows the title at left */
.me {
    .top-rail.skins .rail-title {
    color: var(--text-primary);
        display:block;
}
        font-weight:800;
        font-size:clamp(20px,2.2vw,28px);
        color:#fff;
        margin-right:auto;
    }


    /* center icons and keep scroll behavior if overflow */
/*******************************************************************************
    .top-rail .icon-bar {
* TABBER COMPONENT
        width:auto;
*******************************************************************************/
        justify-content:center;
.mw-tabber-container {
        margin:0;
    background-color: var(--content-bg);
        overflow-x:auto; /* preserve horizontal scroll */
    border: 1px solid var(--border-color);
    }
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}


    /* Card sizing: larger but constrained to viewport; padding included via box-sizing */
.mw-tabber-tabs {
     .content-card {
     background-color: var(--surface-bg);
        width: min(1600px, 96vw);
     border-bottom: 2px solid var(--border-color);
        max-width: 96vw;
}
        margin: 10px auto;
        background: #26211C;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,.30);
        padding: 18px;
        z-index: 2; /* above overlay */
     }
    /* layout specific for skills card: larger grid */
    /* Make the video column wider so the video has more space.
        minmax garante largura mínima para o vídeo e permite expansão até 70% do card. */
    .content-card.skills-grid {
        display: grid;
        /* user requested layout for testing: description column wider, video a bit smaller */
        grid-template-columns: minmax(320px, 60%) minmax(320px, 45%);
        gap: 16px; /* menor gap para evitar overflow */
        align-items: start; /* don't stretch items vertically */
        grid-auto-rows: auto;
        margin: 10px auto 0;
    }
    @media (max-width:1100px) {
        .top-rail {
            flex-direction: column;
            align-items: stretch;
        }
        .top-rail .icon-bar {
            order: 2;
            width: 100%;
            flex-wrap: wrap;
        }
        .content-card.skills-grid { grid-template-columns: 1fr; gap: 12px; }
        .video-container { width: 80%; max-width: 820px; align-self: center; }
    }


    @media (max-width:600px) {
.mw-tabber-tab {
     /* Make the card fit symmetrically on small screens (same left/right limit) */
     background-color: var(--surface-bg);
    .content-card {
    border-right: 1px solid var(--border-color);
        box-sizing: border-box;
    color: var(--text-secondary);
        /* limitar ao viewport menos safe-area + margem interna */
}
        max-width: calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 16px);
        width: 100%;
        margin: 10px auto;
        padding: 12px;
        border-radius: 10px;
        overflow: hidden; /* evita scroll horizontal causado por filhos */
    }


    /* ensure the skills grid collapses to single column and doesn't overflow */
.mw-tabber-tab:hover {
    .content-card.skills-grid {
    background-color: var(--content-bg);
        grid-template-columns: 1fr;
    color: var(--link-hover);
        gap: 12px;
}
    }


    /* top-rail full width, icon bar flush edge-to-edge */
.mw-tabber-tab.active {
     .top-rail {
     background-color: var(--content-bg);
        width: calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right));
    color: var(--link-color);
        max-width: 100%;
     border-bottom: 3px solid var(--accent-primary);
        margin: 0 auto 8px;
}
        padding: 6px 8px;
        border-radius: 0;
        box-sizing: border-box;
        overflow: hidden;
     }
    .top-rail .icon-bar {
        width: 100%;
        padding: 0 6px;
        gap: 12px;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }


    /* larger, more visible icons on mobile */
.mw-tabber-content {
    :root { --icon-size: 92px; } /* overrides default on mobile */
    background-color: var(--content-bg);
    .icon-bar .skill-icon {
}
        width: var(--icon-size);
        height: var(--icon-size);
        flex: 0 0 auto;
    }


    /* limitar explicitamente elementos do vídeo/skins para não extrapolarem */
/*******************************************************************************
    .video-container,
* PRESET ABAS
    .skins-carousel-wrapper,
*******************************************************************************/
    .skins-carousel {
.tabela-abas {
        max-width: calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 16px);
     background: transparent;
        box-sizing: border-box;
}
    }
    .video-container > video,
    .video-container img,
     .skins-carousel img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }


    /* extra safety: prevent horizontal scroll coming from other elements using 100vw */
.mostrar-aba {
    html, body, .mw-body, .mw-body-content {
    background-color: transparent;
        overflow-x: hidden;
    }
}
}


/* ===========================
.mostrar-aba:hover::after {
  Base — mobile/overflow guards
     background-color: var(--text-muted);
  =========================== */
/* evitar qualquer elemento extrapolar o viewport e respeitar safe-area (iPhone notch) */
html, body, .mw-body, .mw-body-content {
    box-sizing: border-box;
    max-width: 100vw;
     overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
}


/* garantir imagens / vídeos internos não forçarem overflow */
.mostrar-aba.ativa::after {
.content-card, .top-rail, .video-container, .skins-carousel-wrapper, .skins-carousel {
     background-color: var(--accent-primary);
     box-sizing: border-box;
    max-width: 100%;
}
}
/* impedir filhos de extrapolarem a coluna do card */
 
.content-card *,
.sec-aba-cem {
.top-rail *,
     color: var(--text-primary);
.video-container * {
     max-width: 100%;
    box-sizing: border-box;
}
}


/* ---------------------------
.aba {
  Visual tweaks: icons, attrs, desc
     background-color: var(--content-bg);
  --------------------------- */
/* override base icon size (desktop) */
:root {
     --icon-size: 56px;  /* desktop icons larger */
    --icon-radius: 10px;
}
}


/* make skill icons use the variable (safety if other rules exist) */
/*******************************************************************************
.icon-bar .skill-icon {
* WANTED PAGE
     width: var(--icon-size) !important;
*******************************************************************************/
     height: var(--icon-size) !important;
#selectbox-wanted {
    background-color: var(--input-bg);
     border: 2px solid var(--border-light);
     color: var(--text-primary);
}
}


/* Icon active color variables (only for icon visuals: border + glow) */
.wantedPortrait--title {
:root {
     color: var(--text-primary);
    --icon-active: #F7D34B;
     --icon-active-ring: rgba(247,211,75,.35);
    --icon-active-glow: rgba(247,211,75,.32);
}
}


/* Ensure perfect clipping and aligned border for skill icons */
/*******************************************************************************
.icon-bar .skill-icon {
* GLOBAL EVENT WIDGET
*******************************************************************************/
.global-event-widget {
    background-color: var(--content-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
     overflow: hidden;
     overflow: hidden;
    border-radius: var(--icon-radius);
    contain: paint;
    width: var(--icon-size) !important;
    height: var(--icon-size) !important;
    position: relative; /* keep stacking for pseudo element */
}
}


.icon-bar .skill-icon img {
#global-event-time {
     display: block;
    background: linear-gradient(to right, rgba(20, 22, 27, 0.9), transparent);
     width: 100%;
    color: var(--text-primary);
     height: 100%;
}
     object-fit: cover;
 
     border-radius: inherit;
/*******************************************************************************
     clip-path: inset(0 round var(--icon-radius));
* CATEGORIES
*******************************************************************************/
#mw-normal-catlinks {
    background-color: var(--surface-bg);
    border: 1px solid var(--border-color);
    padding: 0.5em 1em;
    border-radius: 4px;
}
 
#mw-normal-catlinks ul a,
#mw-normal-catlinks a {
    color: var(--link-color) !important;
}
 
/*******************************************************************************
* TABLE OF CONTENTS
*******************************************************************************/
#toc {
    background-color: var(--surface-bg);
    border: 1px solid var(--border-color);
}
 
#toc h2 {
    color: var(--text-primary);
}
 
#toc ul li a {
    color: var(--link-color) !important;
}
 
#toc .toctogglelabel,
span.toctogglespan {
     display: none !important;
}
 
/*******************************************************************************
* IMAGE THUMBNAILS
*******************************************************************************/
.thumb {
    background-color: var(--surface-bg);
    border: 1px solid var(--border-color);
}
 
.thumbinner {
    background-color: var(--surface-bg);
    border: 1px solid var(--border-color);
}
 
.thumbcaption {
    color: var(--text-secondary) !important;
}
 
.mw-parser-output .center .thumbcaption,
.mw-parser-output .tright .thumbcaption {
     color: var(--text-secondary) !important;
}
 
.magnify a {
     display: none;
}
 
/*******************************************************************************
* EDITOR & UPLOAD
*******************************************************************************/
.wikiEditor-ui-toolbar {
     background-color: var(--surface-bg);
     border-color: var(--border-color);
}
 
.wikiEditor-ui-toolbar .tabs span.tab a {
    color: var(--text-primary) !important;
}
 
.wikiEditor-ui-toolbar .group .tool-select .label {
    color: var(--text-primary) !important;
}
 
.wikiEditor-ui-toolbar .group .tool-select .options .option {
    color: var(--text-primary) !important;
    background-color: var(--content-bg);
}
 
.wikiEditor-ui-toolbar .group .tool-select .options .option:hover {
    background-color: var(--surface-bg);
}
 
.wikiEditor-ui-toolbar .booklet > .index {
    color: var(--text-primary);
    background-color: var(--surface-bg);
}
 
.codeEditor-status-message {
    color: var(--text-primary) !important;
    background-color: var(--surface-bg);
    border-color: var(--border-color);
}
 
#msupload-div a {
    color: var(--link-color) !important;
}
 
#msupload-bottom a {
    color: var(--text-primary) !important;
}
 
#msupload-list .file {
    background: var(--surface-bg);
    border-top: 1px solid var(--border-color);
     color: var(--text-primary) !important;
}
 
/*******************************************************************************
* MISC ELEMENTS
*******************************************************************************/
.mw-destfile-warning {
    background-color: var(--surface-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}
 
.mw-logline-protect {
    color: var(--text-primary) !important;
}
}


.icon-bar .skill-icon::after {
div.mw-number-text {
     border-radius: inherit;
     color: var(--text-muted) !important;
    /* keep neutral/inactive ring defined elsewhere; this ensures radius matches image */
}
}


.icon-bar .skill-icon.active::after {
div.mw-number-text h3 {
     border-color: var(--icon-active);
     color: var(--text-secondary) !important;
    box-shadow: 0 0 0 2px var(--icon-active), 0 0 0 4px var(--icon-active-ring), 0 0 10px 2px var(--icon-active-glow);
}
}


/* Tooltip style (single global tooltip attached to body to avoid clipping) */
hr {
.skill-tooltip {
     border-color: var(--border-color);
     position: fixed;
    z-index: 9999;
    pointer-events: none;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(17,17,17,.9);
    color: #fff;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,.5);
    opacity: 0;
    transition: opacity .12s ease, transform .08s ease;
    white-space: nowrap;
}
}


/* Icon clipping, ring and active halo (overrides; scoped to icons only) */
ul {
:root {
     list-style-image: none;
     --icon-ring-w: 2px;
    --icon-idle: #bbb;
    --icon-active: #FFD95A;                /* amarelo mais visível */
    --icon-active-ring: rgba(255,217,90,.50);
    --icon-active-glow: rgba(255,217,90,.38);
}
}


.icon-bar .skill-icon {
.mw-parser-output small li,
    position: relative;
.mw-parser-output tr i,
    border: none !important;
.mw-parser-output tr big {
    outline: none !important;
     color: var(--text-primary) !important;
    overflow: hidden;
    border-radius: var(--icon-radius);
    contain: paint;
    isolation: isolate;
    will-change: transform;
     transform: translateZ(0);
    /* keep original sizing/flow from existing rules (do not change --icon-size) */
}
}


.icon-bar .skill-icon img {
#contentSub,
     display: block;
#contentSub2 {
    width: 100%;
     margin: 0 !important;
    height: 100%;
     padding: 0 !important;
    object-fit: cover;
     display: none;
    border-radius: inherit;
    -webkit-clip-path: inset(0 round var(--icon-radius));
     clip-path: inset(0 round var(--icon-radius));
     transition: transform .12s ease;
    backface-visibility: hidden;
    transform: translateZ(0);
}
}


.icon-bar .skill-icon::after {
#footer-info-lastmod {
     content: "";
     display: none !important;
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
    /* internal ring that NEVER changes thickness between states */
    box-shadow: inset 0 0 0 var(--icon-ring-w) var(--icon-idle);
    transition: box-shadow .12s ease;
}
}


.icon-bar .skill-icon::before {
/*******************************************************************************
    content: "";
* SCALE UP HOVER EFFECT
    position: absolute;
*******************************************************************************/
    inset: -2px;
.scaleUp-hover {
     border-radius: calc(var(--icon-radius) + 2px);
     transition: all 0.25s ease;
    pointer-events: none;
    z-index: 1;
    box-shadow: none;
    opacity: 0;
    transition: opacity .12s ease, box-shadow .12s ease;
}
}


/* Active state: gentle scale + yellow ring + halo. No change in ring thickness. */
.scaleUp-hover:hover {
.icon-bar .skill-icon.active {
     transform: scale(1.08);
     transform: scale(1.08);
    filter: brightness(1.1);
}
/*******************************************************************************
* GLOBAL SCROLLBAR
*******************************************************************************/
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background-color: var(--scrollbar-track);
}
::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 5px;
}
}
.icon-bar .skill-icon.active::after {
 
     box-shadow: inset 0 0 0 var(--icon-ring-w) var(--icon-active);
::-webkit-scrollbar-thumb:hover {
     background-color: var(--scrollbar-hover);
}
}
.icon-bar .skill-icon.active::before {
 
     opacity: 1;
/* Firefox */
     box-shadow:
* {
        0 0 12px 3px var(--icon-active-glow),
     scrollbar-width: thin;
        0 0 0 4px var(--icon-active-ring);
     scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
}
.icon-bar .skill-icon.active img {
 
     transform: scale(1.08);
/*******************************************************************************
* SELECTION HIGHLIGHT
*******************************************************************************/
::selection {
    background-color: rgba(69, 156, 202, 0.4);
    color: var(--text-primary);
}
 
::-moz-selection {
    background-color: rgba(69, 156, 202, 0.4);
    color: var(--text-primary);
}
 
/*******************************************************************************
* RESPONSIVE ADJUSTMENTS
*******************************************************************************/
@media screen and (max-width: 1024px) {
    .initialPage--sideMenuContainer .card {
        background-color: var(--content-bg);
    }
}
 
@media screen and (max-width: 768px) {
     .mw-tabber-tab {
        background-color: var(--surface-bg);
        border-bottom: 1px solid var(--border-color);
    }
   
    .mw-tabber-tab.active {
        border-bottom: 3px solid var(--accent-primary);
    }
}
}


/* Hover should never change ring thickness — only color hint */
/*******************************************************************************
.icon-bar .skill-icon:hover:not(.active)::after {
* VIDEO RESPONSIVO
     box-shadow: inset 0 0 0 var(--icon-ring-w) #e0e0e0;
*******************************************************************************/
.video-responsivo {
    background: var(--page-bg);
     border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}
}
 
    /* ===========================
.pagevideo {
  Fixed background (scoped to article content only)
     border: 1px solid var(--border-color);
  =========================== */
     border-radius: 8px;
/* aplicar o background apenas quando .character-box estiver dentro do conteúdo do artigo */
     background-color: var(--page-bg);
.mw-body-content .character-box {
     background-image: url("https://i.imgur.com/RktmgO8.png");
    background-position: center top;
    background-repeat: no-repeat;
     /* keep the visual background stable when content height changes.
      using fixed attachment prevents the artwork from scaling as the box grows. */
    background-size: cover;
     background-attachment: fixed;
    position: relative; /* stacking context para pseudo-elementos */
    z-index: 1;
}
}


/* overlay interno (escuro) acima do background mas abaixo do conteúdo da caixa */
/*******************************************************************************
.mw-body-content .character-box::before {
* UTILITY OVERRIDES (ensure dark theme)
    content: "";
*******************************************************************************/
    position: absolute;
.oo-ui-popupWidget-head > .oo-ui-iconElement-noIcon + .oo-ui-labelElement-label {
    inset: 0;
     color: var(--text-primary);
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.60));
     z-index: 0; /* abaixo do conteúdo (.character-box deve ter z-index > 0) */
}
}


/* remove any previous global fixed rules that targeted body.character-bg .character-box
#ca-delete a,
  NOTE: original reset removed the background we want; removed to keep .character-box background. */
#ca-move a,
/* (reset removed) */
#ca-unprotect a {
</style>
    background-color: var(--surface-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--link-color) !important;
}

Edição atual tal como às 18h29min de 17 de janeiro de 2026

/*******************************************************************************

* TEMA ESCURO MODERNO - WIKI GLA
* Estilo wiki.gg com paleta personalizada
* Substitua seu Common.css por este arquivo
*******************************************************************************/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&display=swap');

/*******************************************************************************

* SISTEMA DE VARIÁVEIS - PALETA ESCURA
*******************************************************************************/
root {
   /* Backgrounds */
   --page-bg: #14161b;
   --content-bg: #1f2229;
   --content-bg-alt: #242831;
   --surface-bg: #2a2f38;
   
   /* Borders & Shadows */
   --border-color: #2d313a;
   --border-light: #343a46;
   --shadow-color: rgba(0, 0, 0, 0.45);
   --content-shadow: 0 8px 22px var(--shadow-color);
   
   /* Text */
   --text-primary: #e7ebf2;
   --text-secondary: #b7bfcc;
   --text-muted: #8891a0;
   
   /* Links */
   --link-color: #7ec8ff;
   --link-visited: #9aa9ff;
   --link-hover: #a7e0ff;
   --link-new: #ff6b6b;
   
   /* Accent Colors */
   --accent-primary: #459cca;
   --accent-secondary: #5684c8;
   --accent-gradient: linear-gradient(135deg, #459cca 0%, #5684c8 100%);
   
   /* Tables */
   --table-bg: #242831;
   --table-header: #2d313a;
   --table-border: #343a46;
   --table-hover: #2a303b;
   --table-stripe: #262b34;
   
   /* Forms */
   --input-bg: #242831;
   --input-border: #3d4450;
   --input-focus: #459cca;
   
   /* Scrollbar */
   --scrollbar-track: #1f2229;
   --scrollbar-thumb: #3d4450;
   --scrollbar-hover: #4a5263;
   
   /* Legacy compatibility */
   --content-text: var(--text-primary);
   --simpleSearch-bg: var(--input-bg);
   --searchInput-text: var(--text-secondary);
   --lightGray: var(--surface-bg);
   --gray: var(--border-light);
   --transparent-blue: rgba(69, 156, 202, 0.3);
   --blue: #459cca;

}

/*******************************************************************************

* BASE & BODY
*******************************************************************************/

html {

   scroll-behavior: smooth;

}

body {

   background-color: var(--page-bg);
   color: var(--text-primary);
   font-family: 'Noto Sans', sans-serif;

}

/* Remove imagem de fundo clara */ body::before {

   display: none !important;

}

/*******************************************************************************

* TIPOGRAFIA
*******************************************************************************/

body, .mw-parser-output, .mw-headline,

  1. firstHeading,

h1, h2, h3, h4, h5, h6, p, ul, ol, li, table, td, th, caption {

   font-family: 'Noto Sans', sans-serif !important;
   color: var(--text-primary);

}

h1, h2, h3, h4, h5, h6 {

   color: var(--text-primary) !important;
   border-bottom: none !important;

}

.mw-headline {

   border-bottom: none !important;

}

  1. firstHeading {
   border-bottom: none !important;
   color: var(--text-primary) !important;

}

/*******************************************************************************

* LINKS
*******************************************************************************/

a {

   color: var(--link-color) !important;
   transition: color 0.2s ease;

}

a:visited {

   color: var(--link-visited) !important;

}

a:hover {

   color: var(--link-hover) !important;
   text-decoration: none;

}

a.new {

   color: var(--link-new) !important;

}

/*******************************************************************************

* CONTENT AREA
*******************************************************************************/
  1. content,

.mw-body {

   background-color: var(--content-bg) !important;
   color: var(--text-primary) !important;
   border: 1px solid var(--border-color) !important;
   box-shadow: var(--content-shadow);

}

  1. mw-page-base,
  2. mw-head-base {
   background: transparent !important;

}

  1. mw-head-base {
   background: linear-gradient(180deg, var(--page-bg) 0%, transparent 100%) !important;

}

/*******************************************************************************

* SIDEBAR & NAVIGATION
*******************************************************************************/
  1. mw-panel {
   background: transparent;

}

  1. mw-panel .mw-portlet {
   background: transparent;

}

  1. mw-panel .mw-portlet h3 {
   color: var(--text-muted) !important;
   font-size: 0.75em;
   text-transform: uppercase;
   letter-spacing: 0.5px;

}

  1. mw-panel .mw-portlet .vector-menu-content-list > li > a {
   color: var(--link-color) !important;
   font-size: 0.80rem !important;
   font-weight: 500 !important;
   padding: 0.3em 0;
   transition: color 0.2s ease, padding-left 0.2s ease;

}

  1. mw-panel .mw-portlet .vector-menu-content-list > li > a:hover {
   color: var(--link-hover) !important;
   padding-left: 4px;

}

  1. p-logo {
   background-color: transparent !important;

}

  1. p-navigation {
   background-color: transparent;

}

  1. p-tb {
   display: none;

}

/*******************************************************************************

* SEARCH BAR
*******************************************************************************/
  1. simpleSearch {
   background-color: var(--input-bg) !important;
   border: 1px solid var(--input-border) !important;
   border-radius: 6px;
   transition: border-color 0.2s ease, box-shadow 0.2s ease;

}

  1. simpleSearch:focus-within {
   border-color: var(--input-focus) !important;
   box-shadow: 0 0 0 3px rgba(69, 156, 202, 0.2);

}

  1. searchInput {
   background-color: transparent !important;
   color: var(--text-primary) !important;
   border: none !important;

}

  1. searchInput::placeholder {
   color: var(--text-muted);

}

  1. searchButton {
   filter: invert(0.8);

}

  1. p-search {
   float: left;
   margin-left: -0.1em;
   margin-right: 1em;
   margin-top: -0.4em;

}

/*******************************************************************************

* TABS & ACTIONS
*******************************************************************************/

.vector-menu-tabs, .vector-menu-tabs a,

  1. mw-head .vector-menu-dropdown h3 {
   background: none;

}

.vector-menu-tabs li {

   background: transparent;

}

.vector-menu-tabs li a {

   color: var(--text-secondary) !important;
   background: transparent;
   transition: color 0.2s ease;

}

.vector-menu-tabs li a:hover {

   color: var(--link-hover) !important;

}

.vector-menu-tabs .selected {

   background: var(--content-bg) !important;
   border: 1px solid var(--border-color) !important;
   border-bottom-color: var(--content-bg) !important;
   border-radius: 4px 4px 0 0;

}

.vector-menu-tabs .selected a {

   color: var(--text-primary) !important;
   font-weight: 600;

}

  1. p-cactions {
   background: none;
   margin-top: -0.6em;

}

  1. p-cactions li {
   background: none;

}

  1. p-cactions li.selected {
   background: var(--content-bg);
   border: 1px solid var(--border-color);

}

  1. p-cactions li a {
   background-color: var(--surface-bg) !important;
   color: var(--link-color) !important;

}

.vector-menu-dropdown .vector-menu-content {

   background-color: var(--content-bg) !important;
   border: 1px solid var(--border-color) !important;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);

}

.vector-menu-dropdown .vector-menu-content li a {

   color: var(--text-primary) !important;

}

.vector-menu-dropdown .vector-menu-content li a:hover {

   background-color: var(--surface-bg) !important;

}

  1. ca-view,
  2. ca-history,
  3. ca-viewsource {
   display: none !important;

}

/*******************************************************************************

* DISCORD BUTTON
*******************************************************************************/
  1. n-Discord {
   font-size: 10px;
   line-height: 1.5em;

}

  1. p-Discord-label {
   display: none;

}

  1. n-Discord a {
   color: #fff !important;
   font-weight: bold;
   border-radius: 6px;
   border: 1px solid #4c57d0;
   background-color: #5865f2;
   display: block;
   position: relative;
   padding: 6px 8px 5px calc(14px + 6.5px * 2);
   box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
   transition: all 0.2s ease;

}

  1. n-Discord a::after {
   content: ;
   background: url(/images/7/76/Discord-brands.png) no-repeat;
   background-size: contain;
   background-position: center;
   filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
   position: absolute;
   top: 4px;
   left: 6px;
   width: 18px;
   height: 18px;

}

  1. n-Discord a:hover {
   text-decoration: none;
   background-color: #7885ff;
   border-color: #6c77f0;
   transform: translateY(-1px);
   box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);

}

/*******************************************************************************

* TABLES - GENERAL
*******************************************************************************/

table {

   background-color: var(--table-bg);
   border-color: var(--table-border);

}

table th {

   background-color: var(--table-header) !important;
   color: var(--text-primary) !important;
   border-color: var(--table-border) !important;

}

table td {

   background-color: var(--table-bg) !important;
   color: var(--text-primary) !important;
   border-color: var(--table-border) !important;

}

table tr:hover td {

   background-color: var(--table-hover) !important;

}

/*******************************************************************************

* TABLE-ENHANCE
*******************************************************************************/

table.table-enhance {

   background-color: var(--table-bg);
   border: 1px solid var(--table-border);
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);

}

.table-enhance th, .table-enhance td {

   border: 1px solid var(--table-border);
   color: var(--text-primary);

}

.table-enhance th {

   background-color: var(--table-header);
   color: var(--text-primary);

}

.table-enhance tr:nth-child(even) td {

   background-color: var(--table-stripe);

}

.table-enhance tr:hover td {

   background-color: var(--table-hover);

}

.table-enhance-vertical td:first-child {

   color: var(--link-color);

}

/*******************************************************************************

* WIKITABLES
*******************************************************************************/

table.wikitable, table.wikitablec, table.wikitablew, table.wikitablenb, table.wikitablewhite, table.wikitablecenter, table.wikitablew-tr, table.prettytable {

   background-color: var(--table-bg) !important;
   border: 1px solid var(--table-border) !important;

}

table.wikitable th, table.wikitablec th, table.wikitablew th, table.wikitablenb th, table.wikitablewhite th, table.wikitablecenter th, table.wikitablew-tr th, table.prettytable th {

   background-color: var(--table-header) !important;
   color: var(--text-primary) !important;
   border: 1px solid var(--table-border) !important;

}

table.wikitable td, table.wikitablec td, table.wikitablew td, table.wikitablenb td, table.wikitablewhite td, table.wikitablecenter td, table.wikitablew-tr td, table.prettytable td {

   background-color: var(--table-bg) !important;
   color: var(--text-primary) !important;
   border: 1px solid var(--table-border) !important;

}

table.wikitable tr:hover td, table.wikitablew tr:hover td, table.wikitablew-tr tr:hover td {

   background-color: var(--table-hover) !important;

}

/*******************************************************************************

* JQUERY TABLESORTER
*******************************************************************************/

.jquery-tablesorter {

   background-color: var(--table-bg) !important;
   border-color: var(--table-border) !important;

}

.jquery-tablesorter tr td {

   background-color: var(--table-bg) !important;
   color: var(--text-primary) !important;

}

.jquery-tablesorter tr th {

   background-color: var(--table-header) !important;
   color: var(--text-primary) !important;

}

  1. mw-content-text .mw-parser-output .jquery-tablesorter {
   background-color: var(--table-bg) !important;
   color: var(--text-primary) !important;
   border-color: var(--table-border) !important;

}

/*******************************************************************************

* CARDS
*******************************************************************************/

.card {

   background-color: var(--content-bg);
   border: 1px solid var(--border-color);
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
   transition: transform 0.2s ease, box-shadow 0.2s ease;

}

.card:hover {

   transform: translateY(-2px);
   box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);

}

.card-title {

   background: var(--accent-gradient);
   color: #fff;

}

/*******************************************************************************

* HOMEPAGE
*******************************************************************************/

.initialPage--table {

   background: transparent !important;

}

.initialPage--table > tbody > tr > th, .initialPage--table > tbody > tr > td {

   background: transparent !important;

}

.initialPage--title th {

   background-color: transparent !important;
   color: var(--text-primary) !important;

}

.initialPage--menuTitle {

   background: var(--accent-gradient);
   color: #fff;

}

.initialPage--menuContainer, .initialPage--sideMenuContainer {

   background: transparent;

}

/*******************************************************************************

* SOCIAL MEDIA LINKS
*******************************************************************************/

.initialPage--socialMedia {

   border-top: 2px solid var(--border-light);

}

.initialPage--socialMediaLink {

   color: var(--text-secondary) !important;

}

.initialPage--socialMediaLink:visited {

   color: var(--text-secondary) !important;

}

.socialMedia--svg svg {

   fill: var(--text-secondary);

}

/* Discord */ .initialPage--socialMedia.discord > .initialPage--socialMediaLink:hover {

   color: #5865f2 !important;

}

.initialPage--socialMedia.discord:before {

   background: #5865f2;

}

.initialPage--socialMedia.discord > .initialPage--socialMediaLink:hover > .socialMedia--svg svg {

   fill: #5865f2 !important;

}

/* Instagram */ .initialPage--socialMedia.instagram > .initialPage--socialMediaLink:hover {

   color: #f09433 !important;

}

.initialPage--socialMedia.instagram:before {

   background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);

}

/* Facebook */ .initialPage--socialMedia.facebook > .initialPage--socialMediaLink:hover {

   color: #4267B2 !important;

}

.initialPage--socialMedia.facebook:before {

   background: #4267B2;

}

/*******************************************************************************

* BADGES & SECTION TITLES
*******************************************************************************/

.badge {

   background: var(--accent-gradient);
   color: #fff;
   box-shadow: rgba(69, 156, 202, 0.3) 0px 0px 0px 3px;

}

.section-title {

   background: var(--accent-gradient);
   color: #fff;

}

/*******************************************************************************

* FILTERS (CHARACTERS PAGE)
*******************************************************************************/

.filter {

   background-color: var(--content-bg);
   border: 2px solid var(--border-light);

}

.filter--title {

   background: var(--accent-gradient);
   border-right: 2px solid var(--border-light);
   color: #fff;

}

.filter--input {

   background-color: var(--input-bg);
   border: 2px solid var(--border-light);
   color: var(--text-primary);

}

.filter--input::placeholder {

   color: var(--text-muted);

}

.filter--searchButton {

   background: var(--accent-gradient);
   border: 2px solid var(--border-light);

}

.filter--icon img {

   filter: grayscale(0.5) brightness(0.9);

}

.filter--icon.active img {

   filter: grayscale(0) brightness(1);
   box-shadow: 0 0 12px rgba(69, 156, 202, 0.5);

}

/*******************************************************************************

* CHARACTER CARDS
*******************************************************************************/
  1. characters-container > div > a > img {
   filter: grayscale(0.2) brightness(0.95);
   border: 2px solid var(--border-color);
   transition: all 0.25s ease;

}

  1. characters-container > div:hover > a > img {
   filter: grayscale(0) brightness(1);
   border-color: var(--accent-primary);
   box-shadow: 0 0 20px rgba(69, 156, 202, 0.4);
   transform: scale(1.05);

}

/*******************************************************************************

* CHARACTER PAGE
*******************************************************************************/

.characterInfo--name {

   color: var(--text-primary) !important;

}

.characterInfo--contentContainer {

   background-color: var(--content-bg);

}

.stats--container {

   background-color: var(--content-bg);

}

.bar-filled {

   background: var(--accent-primary);

}

.bar-notFilled {

   background: var(--transparent-blue);

}

/*******************************************************************************

* SKILLS TABS
*******************************************************************************/

.tabsContainer table {

   background: transparent;

}

.tabsContainer table > tbody > tr > td {

   border-bottom: 2px solid var(--border-color);

}

.tab-skill {

   background-color: var(--content-bg);
   border: 2px solid transparent;
   transition: all 0.25s ease;

}

.tab-skill.active {

   border-color: var(--accent-primary);
   background-color: var(--surface-bg);

}

.tab-skill:hover {

   background-color: var(--surface-bg);

}

.skillInfo--name {

   color: var(--text-primary) !important;

}

.skillInfo--description {

   color: var(--text-secondary);

}

.skillInfo > div > .skillInfo--infoContainer b {

   color: var(--link-color) !important;

}

.skillInfo--attributesContainer > h1 {

   color: var(--text-muted) !important;

}

/* Scrollbar for skills */ .skillInfo--description::-webkit-scrollbar, .tabSkill--container::-webkit-scrollbar {

   width: 8px;
   height: 8px;

}

.skillInfo--description::-webkit-scrollbar-track, .tabSkill--container::-webkit-scrollbar-track {

   background-color: var(--scrollbar-track);
   border-radius: 10px;

}

.skillInfo--description::-webkit-scrollbar-thumb, .tabSkill--container::-webkit-scrollbar-thumb {

   background-color: var(--scrollbar-thumb);
   border-radius: 10px;

}

.skillInfo--description::-webkit-scrollbar-thumb:hover, .tabSkill--container::-webkit-scrollbar-thumb:hover {

   background-color: var(--scrollbar-hover);

}

/*******************************************************************************

* ATTRIBUTE CARDS
*******************************************************************************/

.attribute--cardsContainer {

   background: var(--surface-bg);
   border: 2px solid var(--border-color);

}

.cardAttribute--value {

   color: var(--text-primary) !important;

}

/*******************************************************************************

* SKINS CONTAINER
*******************************************************************************/

.skins--container {

   background-color: var(--content-bg);

}

.skins--container::-webkit-scrollbar {

   width: 8px;
   height: 8px;

}

.skins--container::-webkit-scrollbar-track {

   background-color: var(--scrollbar-track);
   border-radius: 10px;

}

.skins--container::-webkit-scrollbar-thumb {

   background-color: var(--scrollbar-thumb);
   border-radius: 10px;

}

/*******************************************************************************

* CALCULATOR XP
*******************************************************************************/

.calcXp--container {

   background-color: var(--content-bg);
   border: 2px solid var(--border-light);

}

.calcXp--resultTitle {

   color: var(--text-secondary) !important;

}

.calcXp--formItem input {

   background-color: var(--input-bg);
   border: 2px solid var(--border-light);
   color: var(--text-primary);

}

.calcXp--formItem span {

   color: var(--link-color);

}

  1. calculate-btn {
   background: var(--accent-gradient);
   color: #fff;
   border: none;
   box-shadow: 0 4px 12px rgba(69, 156, 202, 0.3);

}

  1. calculate-btn:hover {
   box-shadow: 0 6px 16px rgba(69, 156, 202, 0.4);
   transform: translateY(-2px);
   background: linear-gradient(135deg, #3d8ab8 0%, #4a76b5 100%);

}

/*******************************************************************************

* ITEM INFOBOX
*******************************************************************************/

.iteminfobox {

   background: var(--content-bg);
   border: 1px solid var(--border-color);
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);

}

.iteminfobox b {

   color: var(--link-color);

}

/*******************************************************************************

* TOOLTIPS
*******************************************************************************/

.tooltipster-default {

   background-color: var(--content-bg) !important;
   color: var(--text-primary) !important;
   border: 1px solid var(--border-color);
   box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);

}

.tip2 {

   background-color: var(--content-bg);
   border: 1px solid var(--border-color);
   box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
   color: var(--text-primary);

}

/*******************************************************************************

* TRANSCRIPTIONS / DIALOGS
*******************************************************************************/

.transcrições {

   background-color: var(--surface-bg);
   border-radius: 8px;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
   color: var(--text-primary);

}

.transcrições::before {

   background-color: var(--surface-bg);

}

.transcrições b, .transcrições strong {

   color: var(--text-primary) !important;

}

.me {

   color: var(--text-primary);

}

/*******************************************************************************

* TABBER COMPONENT
*******************************************************************************/

.mw-tabber-container {

   background-color: var(--content-bg);
   border: 1px solid var(--border-color);
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);

}

.mw-tabber-tabs {

   background-color: var(--surface-bg);
   border-bottom: 2px solid var(--border-color);

}

.mw-tabber-tab {

   background-color: var(--surface-bg);
   border-right: 1px solid var(--border-color);
   color: var(--text-secondary);

}

.mw-tabber-tab:hover {

   background-color: var(--content-bg);
   color: var(--link-hover);

}

.mw-tabber-tab.active {

   background-color: var(--content-bg);
   color: var(--link-color);
   border-bottom: 3px solid var(--accent-primary);

}

.mw-tabber-content {

   background-color: var(--content-bg);

}

/*******************************************************************************

* PRESET ABAS
*******************************************************************************/

.tabela-abas {

   background: transparent;

}

.mostrar-aba {

   background-color: transparent;

}

.mostrar-aba:hover::after {

   background-color: var(--text-muted);

}

.mostrar-aba.ativa::after {

   background-color: var(--accent-primary);

}

.sec-aba-cem {

   color: var(--text-primary);

}

.aba {

   background-color: var(--content-bg);

}

/*******************************************************************************

* WANTED PAGE
*******************************************************************************/
  1. selectbox-wanted {
   background-color: var(--input-bg);
   border: 2px solid var(--border-light);
   color: var(--text-primary);

}

.wantedPortrait--title {

   color: var(--text-primary);

}

/*******************************************************************************

* GLOBAL EVENT WIDGET
*******************************************************************************/

.global-event-widget {

   background-color: var(--content-bg);
   border: 1px solid var(--border-color);
   border-radius: 8px;
   overflow: hidden;

}

  1. global-event-time {
   background: linear-gradient(to right, rgba(20, 22, 27, 0.9), transparent);
   color: var(--text-primary);

}

/*******************************************************************************

* CATEGORIES
*******************************************************************************/
  1. mw-normal-catlinks {
   background-color: var(--surface-bg);
   border: 1px solid var(--border-color);
   padding: 0.5em 1em;
   border-radius: 4px;

}

  1. mw-normal-catlinks ul a,
  2. mw-normal-catlinks a {
   color: var(--link-color) !important;

}

/*******************************************************************************

* TABLE OF CONTENTS
*******************************************************************************/
  1. toc {
   background-color: var(--surface-bg);
   border: 1px solid var(--border-color);

}

  1. toc h2 {
   color: var(--text-primary);

}

  1. toc ul li a {
   color: var(--link-color) !important;

}

  1. toc .toctogglelabel,

span.toctogglespan {

   display: none !important;

}

/*******************************************************************************

* IMAGE THUMBNAILS
*******************************************************************************/

.thumb {

   background-color: var(--surface-bg);
   border: 1px solid var(--border-color);

}

.thumbinner {

   background-color: var(--surface-bg);
   border: 1px solid var(--border-color);

}

.thumbcaption {

   color: var(--text-secondary) !important;

}

.mw-parser-output .center .thumbcaption, .mw-parser-output .tright .thumbcaption {

   color: var(--text-secondary) !important;

}

.magnify a {

   display: none;

}

/*******************************************************************************

* EDITOR & UPLOAD
*******************************************************************************/

.wikiEditor-ui-toolbar {

   background-color: var(--surface-bg);
   border-color: var(--border-color);

}

.wikiEditor-ui-toolbar .tabs span.tab a {

   color: var(--text-primary) !important;

}

.wikiEditor-ui-toolbar .group .tool-select .label {

   color: var(--text-primary) !important;

}

.wikiEditor-ui-toolbar .group .tool-select .options .option {

   color: var(--text-primary) !important;
   background-color: var(--content-bg);

}

.wikiEditor-ui-toolbar .group .tool-select .options .option:hover {

   background-color: var(--surface-bg);

}

.wikiEditor-ui-toolbar .booklet > .index {

   color: var(--text-primary);
   background-color: var(--surface-bg);

}

.codeEditor-status-message {

   color: var(--text-primary) !important;
   background-color: var(--surface-bg);
   border-color: var(--border-color);

}

  1. msupload-div a {
   color: var(--link-color) !important;

}

  1. msupload-bottom a {
   color: var(--text-primary) !important;

}

  1. msupload-list .file {
   background: var(--surface-bg);
   border-top: 1px solid var(--border-color);
   color: var(--text-primary) !important;

}

/*******************************************************************************

* MISC ELEMENTS
*******************************************************************************/

.mw-destfile-warning {

   background-color: var(--surface-bg);
   border: 1px solid var(--border-color);
   color: var(--text-primary);

}

.mw-logline-protect {

   color: var(--text-primary) !important;

}

div.mw-number-text {

   color: var(--text-muted) !important;

}

div.mw-number-text h3 {

   color: var(--text-secondary) !important;

}

hr {

   border-color: var(--border-color);

}

ul {

   list-style-image: none;

}

.mw-parser-output small li, .mw-parser-output tr i, .mw-parser-output tr big {

   color: var(--text-primary) !important;

}

  1. contentSub,
  2. contentSub2 {
   margin: 0 !important;
   padding: 0 !important;
   display: none;

}

  1. footer-info-lastmod {
   display: none !important;

}

/*******************************************************************************

* SCALE UP HOVER EFFECT
*******************************************************************************/

.scaleUp-hover {

   transition: all 0.25s ease;

}

.scaleUp-hover:hover {

   transform: scale(1.08);
   filter: brightness(1.1);

}

/*******************************************************************************

* GLOBAL SCROLLBAR
*******************************************************************************/
-webkit-scrollbar {
   width: 10px;
   height: 10px;

}

-webkit-scrollbar-track {
   background-color: var(--scrollbar-track);

}

-webkit-scrollbar-thumb {
   background-color: var(--scrollbar-thumb);
   border-radius: 5px;

}

-webkit-scrollbar-thumb:hover {
   background-color: var(--scrollbar-hover);

}

/* Firefox */

  • {
   scrollbar-width: thin;
   scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);

}

/*******************************************************************************

* SELECTION HIGHLIGHT
*******************************************************************************/
selection {
   background-color: rgba(69, 156, 202, 0.4);
   color: var(--text-primary);

}

-moz-selection {
   background-color: rgba(69, 156, 202, 0.4);
   color: var(--text-primary);

}

/*******************************************************************************

* RESPONSIVE ADJUSTMENTS
*******************************************************************************/

@media screen and (max-width: 1024px) {

   .initialPage--sideMenuContainer .card {
       background-color: var(--content-bg);
   }

}

@media screen and (max-width: 768px) {

   .mw-tabber-tab {
       background-color: var(--surface-bg);
       border-bottom: 1px solid var(--border-color);
   }
   
   .mw-tabber-tab.active {
       border-bottom: 3px solid var(--accent-primary);
   }

}

/*******************************************************************************

* VIDEO RESPONSIVO
*******************************************************************************/

.video-responsivo {

   background: var(--page-bg);
   border: 1px solid var(--border-color);
   border-radius: 8px;
   overflow: hidden;

}

.pagevideo {

   border: 1px solid var(--border-color);
   border-radius: 8px;
   background-color: var(--page-bg);

}

/*******************************************************************************

* UTILITY OVERRIDES (ensure dark theme)
*******************************************************************************/

.oo-ui-popupWidget-head > .oo-ui-iconElement-noIcon + .oo-ui-labelElement-label {

   color: var(--text-primary);

}

  1. ca-delete a,
  2. ca-move a,
  3. ca-unprotect a {
   background-color: var(--surface-bg) !important;
   border-color: var(--border-color) !important;
   color: var(--link-color) !important;

}