/*
 * Estilos do site novo por cima do visual MAD (style.min.css / custom.css).
 * Cores: fundo #070606, texto branco, destaque laranja rgb(var(--o-clr)).
 */

:root {
    --panel-bg: rgba(16, 16, 20, .78);
    --panel-border: rgba(255, 255, 255, .1);
    --field-bg: rgba(255, 255, 255, .05);
    --ok: 23, 191, 111;
    --bad: 235, 72, 72;
    --warn: 240, 180, 60;
    --radius: .5rem;
}

body { font-family: var(--ff_i); }
.muted { color: rgba(var(--w-clr), .55); }
.highlight { color: rgb(var(--o-clr)); }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    border-radius: var(--radius);
    border: 2px solid rgb(var(--o-clr));
    background: rgb(var(--o-clr));
    color: #fff;
    font-family: var(--ff);
    font-size: .95rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(var(--o-clr), .35); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--ghost { background: transparent; border-color: rgba(var(--w-clr), .4); }
.btn--ghost:hover { border-color: rgb(var(--o-clr)); box-shadow: none; }
.btn--big { width: 100%; padding: 1rem 1.5rem; font-size: 1.05rem; }
.btn--small { padding: .45rem .9rem; font-size: .8rem; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin: 1.25rem 0; }

/* ---------- Cabeçalho ---------- */
.header__register {
    font-family: var(--ff);
    font-size: .9rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    padding: .55rem 1.1rem;
    border-radius: var(--radius);
    background: rgb(var(--o-clr));
    transition: box-shadow .15s ease;
}
.header__register:hover { box-shadow: 0 4px 16px rgba(var(--o-clr), .4); }
.header__login--account { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Teclado: abre os menus com Tab, igual ao hover do MAD */
.nav__link--dropdown:focus-within .dropdown,
.lang:focus-within .lang__hidden { opacity: 1; visibility: visible; pointer-events: all; transform: translateY(0); }
@media (max-width: 61.99em) {
    .header__register { display: none; }
}

/* ---------- Páginas internas ---------- */
.video-bg--short, .video-bg--short::after, .video-bg--short video { height: 26rem !important; }
.video-bg--short video { width: 100%; object-fit: cover; }
.page { position: relative; padding: 9rem 0 6rem; min-height: 70vh; }
.page__container { position: relative; z-index: 1; max-width: 72rem; }
.page__title {
    font-family: var(--ff);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 2rem;
    text-shadow: 0 0 1.25rem #000;
}

.panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: .75rem;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.panel--narrow { max-width: 40rem; margin-left: auto; margin-right: auto; }
.panel--center { text-align: center; }
.panel--table { padding: 1rem; }
.panel__title { font-family: var(--ff); font-size: 1.3rem; letter-spacing: .05em; margin: .25rem .5rem 1rem; }
.panel__lead { font-size: 1.05rem; line-height: 1.6; margin: 0 0 1.5rem; color: rgba(var(--w-clr), .85); }
.panel h2 { font-family: var(--ff); letter-spacing: .04em; }

/* ---------- Formulários ---------- */
.form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field label { font-size: .85rem; font-weight: 600; letter-spacing: .03em; color: rgba(var(--w-clr), .8); }
.form-field small { font-size: .78rem; color: rgba(var(--w-clr), .5); }
.form-field input,
.form-field select {
    width: 100%;
    background: var(--field-bg);
    border: 1px solid rgba(var(--w-clr), .15);
    border-radius: var(--radius);
    color: #fff;
    padding: .8rem .9rem;
    font-size: 1rem;
    outline: none;
    transition: border-color .15s ease, background .15s ease;
}
.form-field select option { background: #15151b; }
.form-field input:focus,
.form-field select:focus { border-color: rgb(var(--o-clr)); background: rgba(255, 255, 255, .08); }
.form-field[hidden] { display: none; }
.form__links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin: 0; font-size: .9rem; }
.form__links a, .legacy-content a, .alert a, .checkbox a, .support a { color: rgb(var(--o-clr)); text-decoration: underline; }
.checkbox { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; line-height: 1.5; cursor: pointer; }
.checkbox input { margin-top: .25rem; accent-color: rgb(var(--o-clr)); width: 1rem; height: 1rem; flex-shrink: 0; }
.alert .checkbox { margin-top: .6rem; }

.captcha { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.captcha img { border-radius: var(--radius); width: 150px; height: 48px; image-rendering: pixelated; background: #14121c; }
.captcha input { flex: 1; min-width: 8rem; text-transform: uppercase; letter-spacing: .3em; }
.captcha__refresh {
    width: 2.6rem; height: 2.6rem;
    border-radius: 50%;
    border: 1px solid rgba(var(--w-clr), .2);
    background: transparent;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}
.captcha__refresh:hover { border-color: rgb(var(--o-clr)); }

/* ---------- Avisos ---------- */
.alert { border-radius: var(--radius); padding: .9rem 1rem; font-size: .92rem; line-height: 1.55; border: 1px solid; }
.alert--info { background: rgba(var(--w-clr), .04); border-color: rgba(var(--w-clr), .15); }
.alert--warn { background: rgba(var(--warn), .1); border-color: rgba(var(--warn), .45); margin-bottom: 1.25rem; }

.toasts { position: fixed; top: 6.5rem; right: 1rem; left: 1rem; z-index: 1000; display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; pointer-events: none; }
.toast {
    pointer-events: auto;
    display: flex; align-items: flex-start; gap: 1rem;
    max-width: 28rem;
    padding: .9rem 1rem .9rem 1.1rem;
    border-radius: var(--radius);
    background: #15151b;
    border-left: 4px solid;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
    font-size: .95rem; line-height: 1.45;
    animation: toast-in .25s ease;
}
.toast--success { border-color: rgb(var(--ok)); }
.toast--error { border-color: rgb(var(--bad)); }
.toast__close { background: none; border: 0; color: rgba(var(--w-clr), .6); font-size: 1.3rem; line-height: 1; cursor: pointer; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Tabelas, abas e paginação ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th {
    text-align: left;
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(var(--w-clr), .45);
    padding: .75rem .9rem;
    border-bottom: 1px solid rgba(var(--w-clr), .1);
    white-space: nowrap;
}
.table td { padding: .75rem .9rem; border-bottom: 1px solid rgba(var(--w-clr), .05); white-space: nowrap; }
.table tbody tr:hover { background: rgba(var(--w-clr), .03); }
.table__pos { color: rgba(var(--w-clr), .5); font-weight: 700; width: 3rem; }
.is-top--1 .table__pos { color: #f5c542; }
.is-top--2 .table__pos { color: #c9d1d9; }
.is-top--3 .table__pos { color: #d98c4a; }
.table__empty { text-align: center; padding: 2rem !important; }
.table-note { font-size: .78rem; color: rgba(var(--w-clr), .4); margin: .75rem .5rem 0; }

.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1.25rem; }
.tabs__item {
    padding: .55rem 1.1rem;
    border-radius: 2rem;
    border: 1px solid rgba(var(--w-clr), .18);
    background: rgba(0, 0, 0, .35);
    font-size: .88rem;
    font-weight: 600;
    transition: border-color .15s ease, background .15s ease;
}
.tabs__item:hover { border-color: rgba(var(--o-clr), .7); }
.tabs__item.is-active { background: rgb(var(--o-clr)); border-color: rgb(var(--o-clr)); }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: 1.5rem; }
.pagination__item {
    min-width: 2.4rem; height: 2.4rem;
    align-items: center; justify-content: center;
    border-radius: var(--radius);
    border: 1px solid rgba(var(--w-clr), .15);
    font-weight: 600;
}
.pagination__item.is-active, .pagination__item:hover { background: rgb(var(--o-clr)); border-color: rgb(var(--o-clr)); }

.status-dot { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; }
.status-dot::before { content: ''; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status-dot--on { color: rgb(var(--ok)); }
.status-dot--off { color: rgb(var(--bad)); }

/* ---------- Home ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; margin-bottom: var(--cont-section-gap); }
.home-grid__col { display: flex; flex-direction: column; gap: 1.5rem; }
@media (max-width: 61.99em) { .home-grid { grid-template-columns: minmax(0, 1fr); } }
.home-grid .widget { background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: .75rem; padding: 1.5rem; backdrop-filter: blur(6px); }
.home-grid .widget__heading { margin-bottom: 1rem; }
.status-card__row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(var(--w-clr), .07); }
.status-card__row span:first-child { color: rgba(var(--w-clr), .65); }
.status-card__actions { display: flex; gap: .6rem; margin-top: 1.25rem; }
.status-card__actions .btn { flex: 1; padding: .7rem .5rem; font-size: .85rem; }
.news-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.news-list__item { display: flex; gap: 1rem; align-items: flex-start; padding: .6rem; border-radius: var(--radius); transition: background .15s ease; }
.news-list__item:hover { background: rgba(var(--w-clr), .05); }
.news-list__item img { width: 4.5rem; height: 4.5rem; border-radius: var(--radius); flex-shrink: 0; }
.news-list__item time { font-size: .75rem; color: rgb(var(--o-clr)); font-weight: 600; }
.news-list__item strong { display: block; margin: .15rem 0 .25rem; font-size: 1rem; }
.news-list__item p { margin: 0; font-size: .85rem; color: rgba(var(--w-clr), .6); line-height: 1.45; }
.discord-widget { width: 100%; height: 26rem; border: 0; border-radius: var(--radius); }

.countdown { margin: 1.5rem 0; }
.countdown__label { font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(var(--w-clr), .7); margin-bottom: .6rem; text-shadow: 0 0 10px #000; }
.countdown__grid { display: flex; gap: .6rem; }
.countdown__grid div {
    display: flex; flex-direction: column; align-items: center;
    min-width: 4.4rem; padding: .6rem .4rem;
    border-radius: var(--radius);
    background: rgba(0, 0, 0, .55);
    border: 1px solid rgba(var(--o-clr), .5);
}
.countdown__grid b { font-family: var(--ff); font-size: 1.8rem; line-height: 1; }
.countdown__grid span { font-size: .7rem; text-transform: uppercase; color: rgba(var(--w-clr), .6); margin-top: .3rem; }

.streams__video-container iframe { border: 0; border-radius: .375rem; }

/* ---------- Notícias ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.25rem; }
.news-card {
    display: flex; flex-direction: column;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: .75rem;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease;
}
.news-card:hover { transform: translateY(-3px); border-color: rgba(var(--o-clr), .6); }
.news-card img { width: 100%; height: 11rem; }
.news-card__body { padding: 1.1rem 1.25rem 1.4rem; }
.news-card time { font-size: .78rem; color: rgb(var(--o-clr)); font-weight: 600; }
.news-card h2 { font-size: 1.15rem; margin: .35rem 0 .5rem; }
.news-card p { margin: 0; font-size: .9rem; color: rgba(var(--w-clr), .65); line-height: 1.5; }

.article { line-height: 1.75; font-size: 1rem; }
.article__date { display: block; color: rgb(var(--o-clr)); font-weight: 600; margin-bottom: 1rem; }
.article__content img { border-radius: var(--radius); height: auto; }
.article__content a { color: rgb(var(--o-clr)); text-decoration: underline; }
.article .more-btn { margin-top: 2rem; }

/* Conteúdo antigo do Slayer (regras, info, termos) */
.legacy-content { overflow-x: auto; line-height: 1.6; }
.legacy-content .pddInner { padding: 0; }
.legacy-content hr { border: 0; border-top: 1px solid rgba(var(--w-clr), .1); margin: 1.25rem 0 1.75rem; }
.legacy-content ul, .legacy-content ol { padding-left: 1.4rem; }
.legacy-content h2, .legacy-content h3 {
    position: relative;
    margin: 2rem 0 .9rem; padding-left: .85rem;
    font-family: var(--ff); font-size: 1.35rem; letter-spacing: .06em; text-transform: uppercase;
    color: #fff;
}
.legacy-content h2::before, .legacy-content h3::before {
    content: ''; position: absolute; left: 0; top: .15em; bottom: .15em;
    width: 4px; border-radius: 2px; background: rgb(var(--o-clr));
}
.legacy-content .dual-colmn > div > h2:first-child { margin-top: 0; }
.legacy-content .dual-colmn > div > br { display: none; }

/* Duas colunas, como no Slayer (uma coluna no celular) */
.legacy-content .dual-colmn { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
@media (max-width: 61.99em) { .legacy-content .dual-colmn { grid-template-columns: 1fr; } }

/* Tabelas de informação (.table-new do Slayer) e qualquer outra tabela do conteúdo */
.legacy-content table {
    width: 100%; margin: 0 0 1.5rem;
    border-collapse: separate; border-spacing: 0;
    border: 1px solid rgba(var(--w-clr), .12); border-radius: .5rem; overflow: hidden;
    background: rgba(0, 0, 0, .25);
    font-size: .93rem;
}
.legacy-content td, .legacy-content th {
    padding: .7rem .9rem;
    border-bottom: 1px solid rgba(var(--w-clr), .08);
    color: rgba(var(--w-clr), .7);
    vertical-align: middle;
}
.legacy-content tr:last-child td { border-bottom: 0; }
.legacy-content td + td { border-left: 1px solid rgba(var(--w-clr), .08); }
.legacy-content tr:nth-child(even) td { background: rgba(var(--w-clr), .03); }
.legacy-content tr:hover td { background: rgba(var(--o-clr), .07); }
.legacy-content td b, .legacy-content td strong { color: #fff; font-weight: 700; }
.legacy-content td b span { color: #fff !important; }
.legacy-content td img { vertical-align: middle; }
.legacy-content td img[width="14"] { width: 16px; height: 16px; margin-left: .25rem; }
.legacy-content td img[width="32"] { border-radius: 4px; border: 1px solid rgba(var(--w-clr), .15); background: #000; }

/* ---------- Castelos ---------- */
.castle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1.5rem; }
.castle-card { display: flex; flex-direction: column; background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: .75rem; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); transition: border-color .2s ease, transform .2s ease; }
.castle-card:hover { border-color: rgba(var(--o-clr), .6); transform: translateY(-3px); }
.castle-card__photo { position: relative; aspect-ratio: 200 / 113; background: #111 center / cover no-repeat; }
.castle-card__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10, 10, 14, .95) 100%); }
.castle-card__name { position: absolute; left: 1.1rem; bottom: .6rem; z-index: 1; margin: 0; font-family: var(--ff); font-size: 1.6rem; letter-spacing: .05em; text-shadow: 0 2px 10px #000; }
.castle-card__body { padding: 1rem 1.1rem 1.25rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.castle-card__info { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0; font-size: .92rem; }
.castle-card__info dt { color: rgba(var(--w-clr), .55); }
.castle-card__info dd { margin: 0; text-align: right; font-weight: 600; }
.castle-card__label { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(var(--w-clr), .5); margin-bottom: .4rem; }
.castle-card__wards { border-top: 1px solid rgba(var(--w-clr), .08); padding-top: .9rem; }
.ward-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.ward { display: inline-flex; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); transition: transform .15s ease; }
.ward:hover { transform: translateY(-2px) scale(1.08); }
.ward img { width: 32px; height: 32px; object-fit: contain; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .25); background: #000; }
.castle-card__sides { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; font-size: .88rem; border-top: 1px solid rgba(var(--w-clr), .08); padding-top: .9rem; margin-top: auto; }
.castle-card__sides p { margin: 0; color: rgba(var(--w-clr), .75); }

/* ---------- Download e lives ---------- */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.download-card { margin: 0; text-align: center; display: flex; flex-direction: column; }
.download-card h2 { margin-top: 0; }
.download-card .button-row { margin-top: auto; padding-top: 1rem; }
.steps { margin: 0; padding-left: 1.3rem; line-height: 2; }

.stream-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.stream-card { background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: .75rem; overflow: hidden; }
.stream-card iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.stream-card__name { padding: .8rem 1rem; font-size: .9rem; }
.stream-card__name a { color: rgb(var(--o-clr)); }

/* ---------- Janela "Como jogar" ---------- */
.modal__close { font-size: 2rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }
.play-downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .75rem; margin-top: .75rem; }
.play-downloads__item { border: 1px solid rgba(var(--w-clr), .12); border-radius: var(--radius); padding: .9rem; background: rgba(255, 255, 255, .03); }
.play-downloads__name { font-weight: 700; margin-bottom: .25rem; }
.play-downloads__descr { font-size: .8rem; color: rgba(var(--w-clr), .6); margin-bottom: .7rem; }
.play-downloads__links { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---------- Diversos ---------- */
.success-icon {
    width: 4.5rem; height: 4.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 2.2rem;
    background: rgba(var(--ok), .15);
    color: rgb(var(--ok));
    border: 2px solid rgb(var(--ok));
}
.price-tag { font-size: 1.4rem; margin: 1.5rem 0; padding: 1rem; border-radius: var(--radius); background: rgba(var(--o-clr), .1); border: 1px dashed rgba(var(--o-clr), .6); }
.big-code { font-family: var(--ff); font-size: 6rem; margin: 0; line-height: 1; color: rgb(var(--o-clr)); }

.cookie-bar {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 900;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    max-width: 40rem; margin: 0 auto;
    padding: .9rem 1.1rem;
    border-radius: var(--radius);
    background: #15151b;
    border: 1px solid var(--panel-border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
    font-size: .88rem;
}
.cookie-bar a { color: rgb(var(--o-clr)); text-decoration: underline; }

@media (max-width: 39.99em) {
    .page { padding-top: 7.5rem; }
    .panel--table { padding: .5rem; }
    .table th, .table td { padding: .6rem .55rem; }
    .countdown__grid div { min-width: 3.6rem; }
    .countdown__grid b { font-size: 1.4rem; }
    .stream-grid { grid-template-columns: 1fr; }
    .castle-card__sides { grid-template-columns: 1fr; }
    .cookie-bar { flex-direction: column; align-items: stretch; text-align: center; }
}

/* A janela "Como jogar" fica acima do cabeçalho e do aviso de cookies */
.modal[data-modal] { z-index: 1100; }
body.body-locked .cookie-bar { display: none; }

/* Bloco do Discord na home */
.widget__footer { text-align: center; margin-top: .5rem; }
.discord-card {
    display: flex; flex-direction: column; align-items: center; gap: .75rem;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #5865f2, #4752c4);
    text-align: center;
}
.discord-card p { margin: 0; font-size: 1rem; line-height: 1.5; }

/* Estatísticas da home: link centralizado como no MAD */
.statistics__footer { text-align: center; }

/* ---------- Galeria de vídeos ---------- */
.video-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.5rem; }
.video-thumb {
    position: relative; display: block; width: 100%; padding: 0;
    aspect-ratio: 16 / 9; overflow: hidden; cursor: pointer;
    border-radius: .5rem;
    border: 2px solid rgba(255, 255, 255, .14);
    background: #000;
    transition: transform .2s ease, border-color .2s ease;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s ease; }
.video-thumb:hover { transform: scale(1.015); border-color: rgb(var(--o-clr)); }
.video-thumb:hover img { opacity: 1; }
.video-thumb__play {
    position: absolute; top: 50%; left: 50%;
    width: 4rem; height: 4rem; margin: -2rem 0 0 -2rem;
    border-radius: 50%;
    background: rgba(var(--o-clr), .9);
    box-shadow: 0 0 25px rgba(var(--o-clr), .5);
}
.video-thumb__play::after {
    content: ''; position: absolute; top: 50%; left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid; border-width: .7rem 0 .7rem 1.15rem;
    border-color: transparent transparent transparent #fff;
}

.video-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 1rem; background: rgba(0, 0, 0, .85); }
.video-modal[hidden] { display: none; }
.video-modal__box { position: relative; width: min(64rem, 100%); }
.video-modal__frame { aspect-ratio: 16 / 9; background: #000; border-radius: .5rem; overflow: hidden; }
.video-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-modal__close { position: absolute; top: -2.75rem; right: 0; background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; }

/* ---------- Olimpíada ---------- */
.page-note { text-align: center; color: rgba(var(--w-clr), .6); margin: -.25rem 0 1.25rem; font-size: .92rem; }
.class-filter { display: flex; align-items: center; justify-content: center; gap: .75rem; margin: 0 auto 1.25rem; max-width: 26rem; }
.class-filter label { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(var(--w-clr), .7); }
.class-filter select {
    flex: 1; background: var(--field-bg); color: #fff;
    border: 1px solid rgba(var(--w-clr), .15); border-radius: var(--radius);
    padding: .65rem .8rem; font-size: .95rem; outline: none;
}
.class-filter select:focus { border-color: rgb(var(--o-clr)); }
.class-filter select option { background: #15151b; }
.table--grouped .class-group + .class-group tr:first-child td { border-top: 2px solid rgba(var(--w-clr), .12); }
.table__class { color: rgb(var(--o-clr)); font-weight: 600; }
.table tr.is-empty td { color: rgba(var(--w-clr), .4); }
.table tr.is-empty .table__class { color: rgba(var(--o-clr), .55); }

/* ---------- Vote no servidor (home) ---------- */
.widget__lead { margin: -.25rem 0 1rem; font-size: .9rem; text-align: center; }
.vote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .75rem; }
.vote-grid__item {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 2 / 1; padding: .55rem .75rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, .12);
    background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .07), rgba(0, 0, 0, .35) 75%), #0d0d12;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.vote-grid__item img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.vote-grid__item:hover { transform: translateY(-2px); border-color: rgb(var(--o-clr)); box-shadow: 0 6px 18px rgba(var(--o-clr), .25); }

/* ---------- Comunidade no Discord (home) ---------- */
.community {
    position: relative; overflow: hidden;
    padding: 4.5rem 0;
    margin-bottom: var(--cont-section-gap);
    border-top: 1px solid rgba(255, 255, 255, .06);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background:
        radial-gradient(ellipse 45% 70% at 78% 50%, rgba(88, 101, 242, .22), transparent 70%),
        linear-gradient(180deg, rgba(10, 10, 16, .85), rgba(7, 6, 6, .95));
}
.community__container { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 2rem; }
.community__badge {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .35rem .8rem; border-radius: 2rem;
    font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: #a5adff; background: rgba(88, 101, 242, .15); border: 1px solid rgba(88, 101, 242, .45);
}
.community__title { font-family: var(--ff); font-size: clamp(2rem, 4.5vw, 3.3rem); line-height: 1.1; margin: 1rem 0 .75rem; letter-spacing: .03em; text-shadow: 0 0 25px rgba(0, 0, 0, .6); }
.community__lead { color: rgba(255, 255, 255, .65); font-size: 1.08rem; line-height: 1.6; max-width: 32rem; margin: 0 0 1.5rem; }
.community__stats { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.25rem; font-size: 1.05rem; color: rgba(255, 255, 255, .7); }
.community__stats span { display: inline-flex; align-items: center; gap: .45rem; }
.community__stats b { font-size: 1.45rem; color: #fff; }
.community__dot { width: .55rem; height: .55rem; border-radius: 50%; background: #9aa0aa; display: inline-block; }
.community__dot--on { background: rgb(var(--ok)); box-shadow: 0 0 8px rgb(var(--ok)); }
.community__avatars { display: flex; align-items: center; flex-wrap: wrap; margin-bottom: 2rem; }
.community__avatars img {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
    border: 2px solid #0d0d14; background: #2b2d42;
    margin-left: -10px; transition: transform .15s ease;
}
.community__avatars img:first-child { margin-left: 0; }
.community__avatars img:hover { transform: translateY(-3px); z-index: 1; }
.community__more { margin-left: .9rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.community__button {
    display: inline-flex; align-items: center; gap: .65rem;
    padding: 1rem 2.2rem; border-radius: .6rem;
    font-family: var(--ff); font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; color: #fff;
    background: linear-gradient(180deg, #6d78ff, #4752c4);
    border: 1px solid rgba(255, 255, 255, .25);
    box-shadow: 0 10px 30px rgba(88, 101, 242, .45);
    transition: transform .15s ease, box-shadow .15s ease;
}
.community__button:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(88, 101, 242, .6); }
.community__logo { position: relative; display: grid; place-items: center; justify-self: center; width: 16rem; height: 16rem; color: #5865f2; }
.community__logo::before, .community__logo::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    border: 1px solid rgba(88, 101, 242, .25);
    background: radial-gradient(circle, rgba(88, 101, 242, .18), transparent 65%);
    animation: community-pulse 4s ease-in-out infinite;
}
.community__logo::after { inset: 2.2rem; border-color: rgba(88, 101, 242, .35); animation-delay: -2s; }
.community__logo svg { position: relative; width: 9rem; height: 9rem; filter: drop-shadow(0 0 30px rgba(88, 101, 242, .7)); }
@keyframes community-pulse { 50% { transform: scale(1.06); opacity: .65; } }
@media (max-width: 61.99em) {
    .community__container { grid-template-columns: 1fr; text-align: center; }
    .community__lead { margin-left: auto; margin-right: auto; }
    .community__stats, .community__avatars { justify-content: center; }
    .community__logo { display: none; }
}
@media (prefers-reduced-motion: reduce) { .community__logo::before, .community__logo::after { animation: none; } }

/* ---------- O servidor agora (home) ---------- */
.server-now { padding: 1rem 0 var(--cont-section-gap); }
.server-now__title {
    position: relative; text-align: center; margin: 0 0 2.5rem; padding-bottom: 1.1rem;
    font-family: var(--ff); font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: .05em; text-transform: uppercase;
}
.server-now__title::after {
    content: ''; position: absolute; left: 50%; bottom: 0; width: 14rem; height: 2px; transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgb(var(--o-clr)), transparent);
}
.server-now__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; }
.now-card { background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: .75rem; padding: 1.4rem 1.5rem; backdrop-filter: blur(6px); }
.now-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.now-card__head h3 { margin: 0; font-family: var(--ff); font-size: 1.3rem; letter-spacing: .05em; text-transform: uppercase; }
.now-card__head a { font-size: .85rem; font-weight: 700; color: rgb(var(--o-clr)); white-space: nowrap; }
.now-card__head a:hover { text-decoration: underline; }
.now-list { list-style: none; margin: 0; padding: 0; }
.now-list__item { display: flex; align-items: center; gap: .9rem; padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.now-list__item:last-child { border-bottom: 0; }
.now-list__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.now-list__main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-list__main small, .now-list__side small { font-size: .78rem; color: rgba(255, 255, 255, .5); }
.now-list__side { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; text-align: right; }
.now-list__value { font-family: var(--ff); font-size: 1.25rem; color: rgb(var(--o-clr)); }
.now-list__empty { padding: 1.5rem 0; text-align: center; color: rgba(255, 255, 255, .45); font-size: .9rem; }
.now-rank {
    flex-shrink: 0; width: 1.9rem; height: 1.9rem; border-radius: 50%;
    display: grid; place-items: center; font-weight: 800; font-size: .85rem;
    color: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .25);
}
.now-rank--1 { background: linear-gradient(180deg, #ffd66b, #d99a1e); color: #3b2500; border: 0; }
.now-rank--2 { background: linear-gradient(180deg, #f1f3f6, #a9b2bf); color: #2a2f36; border: 0; }
.now-rank--3 { background: linear-gradient(180deg, #f2b27a, #b8682d); color: #3a1c05; border: 0; }
.boss-tag { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .5rem; border-radius: .25rem; }
.boss-tag--alive { color: rgb(var(--ok)); background: rgba(var(--ok), .12); border: 1px solid rgba(var(--ok), .4); }
.boss-tag--dead { color: #ff7d7d; background: rgba(var(--bad), .12); border: 1px solid rgba(var(--bad), .4); }

/* ---------- Territory War (página de castelos) ---------- */
.tw-banner {
    display: grid; grid-template-columns: auto 1.1fr 1.3fr auto; align-items: center; gap: 1.5rem;
    margin-bottom: 2rem; padding: 1.4rem 1.6rem;
    border-radius: .75rem;
    border: 1px solid rgba(var(--o-clr), .35); border-left: 4px solid rgb(var(--o-clr));
    background: linear-gradient(90deg, rgba(var(--o-clr), .12), rgba(16, 16, 20, .85) 45%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35); backdrop-filter: blur(6px);
}
.tw-banner__icon { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: .5rem; color: rgb(var(--o-clr)); border: 1px solid rgba(var(--o-clr), .4); background: rgba(0, 0, 0, .35); }
.tw-banner small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--o-clr)); margin-bottom: .2rem; }
.tw-banner__title strong { display: block; font-family: var(--ff); font-size: 1.6rem; letter-spacing: .03em; line-height: 1.15; }
.tw-banner__title span, .tw-banner__date span { display: block; font-size: .8rem; color: rgba(255, 255, 255, .55); margin-top: .2rem; }
.tw-banner__date { padding-left: 1.5rem; border-left: 1px solid rgba(255, 255, 255, .1); }
.tw-banner__date strong { display: block; font-size: 1.05rem; }
.tw-banner__date strong::first-letter { text-transform: uppercase; }
.tw-banner__timer { text-align: right; }
.tw-timer { display: flex; align-items: flex-start; gap: .4rem; }
.tw-timer div { display: flex; flex-direction: column; align-items: center; min-width: 2.6rem; }
.tw-timer b { font-family: var(--ff); font-size: 2rem; line-height: 1; }
.tw-timer span { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-top: .3rem; }
.tw-timer i { font-style: normal; font-size: 1.5rem; line-height: 1.2; color: rgba(255, 255, 255, .35); }
.tw-live { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--ff); font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; color: #ff7d7d; }
.tw-live i { width: .7rem; height: .7rem; border-radius: 50%; background: #ff4b4b; box-shadow: 0 0 0 0 rgba(255, 75, 75, .7); animation: tw-pulse 1.4s infinite; }
@keyframes tw-pulse { 70% { box-shadow: 0 0 0 .7rem rgba(255, 75, 75, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 75, 75, 0); } }
.tw-banner--live { border-color: rgba(255, 75, 75, .5); border-left-color: #ff4b4b; background: linear-gradient(90deg, rgba(255, 75, 75, .14), rgba(16, 16, 20, .85) 45%); }
@media (max-width: 61.99em) {
    .tw-banner { grid-template-columns: auto 1fr; }
    .tw-banner__date { grid-column: 1 / -1; padding-left: 0; border-left: 0; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .1); }
    .tw-banner__timer { grid-column: 1 / -1; text-align: left; }
}

/* ---------- Rodapé ---------- */
.site-footer { position: relative; z-index: 1; padding: 3.5rem 0 1.75rem; background: linear-gradient(180deg, rgba(7, 6, 6, .2), rgba(7, 6, 6, .92) 30%); }
.site-footer__top {
    display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem;
    padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.site-footer__logo img { height: 4.2rem; width: auto; }
.site-footer__tagline { margin: .9rem 0 1.25rem; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--o-clr)); }
.site-footer__socials { display: flex; gap: .65rem; }
.site-footer__socials a {
    display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
    color: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .3);
    transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
.site-footer__socials a:hover { color: #fff; border-color: rgb(var(--o-clr)); transform: translateY(-2px); }
.site-footer__col h4 { margin: .3rem 0 1.1rem; font-family: var(--ff); font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.site-footer__col a { color: rgba(255, 255, 255, .62); font-size: .95rem; transition: color .15s ease; }
.site-footer__col a:hover { color: rgb(var(--o-clr)); }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.5rem; font-size: .8rem; color: rgba(255, 255, 255, .45); }
.site-footer__bottom p { margin: 0; line-height: 1.5; }
.site-footer__bottom a { color: rgba(255, 255, 255, .55); white-space: nowrap; }
.site-footer__bottom a:hover { color: rgb(var(--o-clr)); }
@media (max-width: 61.99em) { .site-footer__top { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 39.99em) {
    .site-footer__top { grid-template-columns: 1fr; text-align: center; }
    .site-footer__socials { justify-content: center; }
    .site-footer__bottom { flex-direction: column; text-align: center; }
}

/* ---------- Seletor de idioma com bandeiras ---------- */
.flag { display: inline-block; flex-shrink: 0; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
.lang-switch { position: relative; display: none; }
@media only screen and (min-width: 40em) { .lang-switch { display: block; } }
.lang-switch__current {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .45rem .7rem; border-radius: .45rem;
    background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .15);
    color: #fff; font-size: .85rem; font-weight: 700; letter-spacing: .08em; cursor: pointer;
    transition: border-color .15s ease;
}
.lang-switch__arrow { opacity: .7; transition: transform .2s ease; }
.lang-switch:hover .lang-switch__current, .lang-switch.is-open .lang-switch__current { border-color: rgb(var(--o-clr)); }
.lang-switch:hover .lang-switch__arrow, .lang-switch.is-open .lang-switch__arrow { transform: rotate(180deg); }
.lang-switch__menu {
    position: absolute; right: 0; top: calc(100% + .5rem); z-index: 50;
    min-width: 11rem; margin: 0; padding: .4rem; list-style: none;
    border-radius: .6rem; background: #15151b; border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.lang-switch__menu::before { content: ''; position: absolute; left: 0; right: 0; top: -.6rem; height: .6rem; } /* mantém o hover ao descer o mouse */
.lang-switch:hover .lang-switch__menu, .lang-switch:focus-within .lang-switch__menu, .lang-switch.is-open .lang-switch__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switch__menu a {
    display: flex; align-items: center; gap: .65rem;
    padding: .55rem .7rem; border-radius: .4rem;
    color: rgba(255, 255, 255, .8); font-size: .92rem;
}
.lang-switch__menu a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.lang-switch__menu a.is-active { color: #fff; background: rgba(var(--o-clr), .14); }
.lang-switch__menu i { margin-left: auto; font-style: normal; color: rgb(var(--o-clr)); font-weight: 800; }
.menu-lang { display: inline-flex; align-items: center; gap: .6rem; }

/* Rankings: colunas com largura fixa (colgroup) e números centralizados */
.table--ranking { table-layout: fixed; min-width: 40rem; }
.table--ranking td { overflow: hidden; text-overflow: ellipsis; }
.table .num { text-align: center; }
