/* =========================================================
   WEAPONS OF WAR — tema novo (layout + botões)
   Usado pelo index.html. As outras páginas ainda usam styles.css.
   ========================================================= */

:root {
    /* Fundo bordô escuro */
    --bg:        #0e0507;
    --bg-2:      #170709;
    --panel:     #200a0e;
    --panel-2:   #2b0d13;
    --line:      rgba(190, 80, 80, .16);
    --violet:    #b3303f;
    --violet-2:  #6e0f1c;
    --text:      #f2e7e5;
    --muted:     #b89c9b;

    /* Vermelho/brasa da logo — botões */
    --ember:     #ff6a2a;
    --red:       #d61f1a;
    --blood:     #7a0a12;
    --gold-hi:   #ffe0a0;
    --gold:      #d79a3e;
    --gold-lo:   #5c2c09;

    /* Troque aqui a arte do topo quando tiver uma no tema da logo */
    --hero-art:  url('hero-bg.jpg');

    --wrap: 1120px;
    --bar-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Rajdhani', 'Segoe UI', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; }
section[id], #news-hero { scroll-margin-top: calc(var(--bar-h) + 16px); }

/* =========================================================
   BOTÃO ORNAMENTADO VERMELHO (Download, Register, Login…)
   ========================================================= */
.btn-ornate {
    --h: 52px;
    --tip: 18px;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--h);
    min-width: 200px;
    padding: 0 calc(var(--tip) + 26px);
    border: 0;
    background: none;
    color: #fff4e2;
    font: 700 1rem/1 'Cinzel', Georgia, serif;
    letter-spacing: .14em;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(255, 150, 70, .75), 0 1px 0 #3a0006;
    cursor: pointer;
    filter: drop-shadow(0 6px 12px rgba(90, 0, 10, .55));
    transition: filter .25s ease, transform .15s ease;
}
/* moldura dourada */
.btn-ornate::before,
.btn-ornate::after {
    content: "";
    position: absolute;
    z-index: -1;
    clip-path: polygon(0 50%, var(--tip) 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, var(--tip) 100%);
}
.btn-ornate::before {
    inset: 0;
    background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 38%, var(--gold-lo) 52%, var(--gold) 70%, #f3c47a 100%);
}
/* miolo vermelho em brasa */
.btn-ornate::after {
    inset: 3px 4px;
    --tip: calc(var(--h) * .3);
    background:
        linear-gradient(180deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 42%),
        radial-gradient(120% 140% at 50% 115%, var(--ember) 0%, var(--red) 38%, var(--blood) 78%, #3a0309 100%);
    transition: filter .25s ease;
}
.btn-ornate > span { position: relative; }
.btn-ornate:hover {
    filter: drop-shadow(0 0 14px rgba(255, 90, 30, .65)) drop-shadow(0 6px 12px rgba(90, 0, 10, .55));
    transform: translateY(-1px);
}
.btn-ornate:hover::after { filter: brightness(1.18) saturate(1.1); }
.btn-ornate:active { transform: translateY(1px); }
.btn-ornate:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 4px; }

.btn-ornate--lg { --h: 66px; --tip: 24px; min-width: 300px; font-size: 1.4rem; }
.btn-ornate--sm { --h: 36px; --tip: 12px; min-width: 0; padding: 0 26px; font-size: .78rem; }
.btn-ornate--block { width: 100%; min-width: 0; --h: 44px; }


/* =========================================================
   BOTÃO FORJADO (Download / Register) — usa as imagens
   btn-download.webp e btn-register.webp.
   No hover: rachaduras de lava se espalham pela pedra
   + brilho vermelho suave atrás do botão.
   As rachaduras (SVG) são colocadas pelo wov-buttons.js.
   ========================================================= */
.btn-forge {
    --h: 56px;
    /* área da pedra vermelha dentro da moldura dourada */
    --plate: polygon(2.8% 31%, 6.7% 8%, 93.3% 8%, 97.6% 31%, 90.5% 91%, 9.5% 91%);
    position: relative;
    isolation: isolate;
    display: inline-block;
    height: var(--h);
    width: calc(var(--h) * 3.75);
    cursor: pointer;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55));
    transition: filter .35s ease, scale .3s cubic-bezier(.3, 1.5, .5, 1), translate .3s ease;
    -webkit-tap-highlight-color: transparent;
}
.bf-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    transition: filter .35s ease;
}
/* brilho vermelho bem fraco atrás do botão */
.btn-forge::before {
    content: "";
    position: absolute;
    inset: -45% -10%;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(230, 30, 20, .45), rgba(230, 30, 20, .12) 55%, transparent 100%);
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}

/* rachaduras */
.bf-cracks {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    clip-path: var(--plate);
    pointer-events: none;
}
.bf-cracks path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset .45s cubic-bezier(.5, 0, .2, 1);
    transition-delay: 0s;
}
.bf-cracks .crack-glow { stroke: rgba(255, 110, 20, .75); stroke-width: 6; filter: blur(2.5px); }
.bf-cracks .crack-dark { stroke: rgba(25, 0, 3, .9); stroke-width: 2.6; }
.bf-cracks .crack-core { stroke: #ffc04a; stroke-width: 1.1; }

.btn-forge:hover,
.btn-forge:focus-visible {
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55)) drop-shadow(0 0 12px rgba(255, 50, 20, .4));
}
.btn-forge:hover::before,
.btn-forge:focus-visible::before { opacity: 1; }
.btn-forge:hover .bf-img,
.btn-forge:focus-visible .bf-img { filter: brightness(1.1) saturate(1.08); }
.btn-forge:hover .bf-cracks path,
.btn-forge:focus-visible .bf-cracks path {
    stroke-dashoffset: 0;
    transition-duration: .6s;
    transition-delay: calc(var(--d, 0) * 1ms);
}
/* pedra "pulsa" de leve enquanto está rachada */
.btn-forge:hover .bf-cracks { animation: lavaPulse 1.6s ease-in-out .7s infinite; }
@keyframes lavaPulse { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }

/* no hover o botão vem "pra frente" (cresce um pouco e sobe levemente) */
.btn-forge:hover,
.btn-forge:focus-visible { scale: 1.08; translate: 0 -2px; }
.btn-forge:active { scale: 1.03; translate: 0 0; transition-duration: .1s; }
.btn-forge:focus-visible { outline: 2px solid #ffe29a; outline-offset: 4px; }

.btn-forge--lg { --h: 78px; }
.hero .btn-forge--lg { --h: 62px; margin-top: 22px; }   /* REGISTER do topo */

/* =========================================================
   BARRA SUPERIOR
   ========================================================= */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--bar-h);
    background: linear-gradient(180deg, rgba(16, 5, 8, .96), rgba(16, 5, 8, .82));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}
.topbar-inner {
    position: relative;
    /* mesma largura das colunas do site (Server Information ... notícias) */
    max-width: var(--wrap);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    --dl-space: 96px;      /* metade do DOWNLOAD + respiro */
    --login-space: 118px;  /* largura do LOGIN + mesmo espaço dos links */
    --nav-gap: 26px;       /* espaço entre o DOWNLOAD e os links ao lado */
    display: flex;
    align-items: center;
}
.topnav {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.topnav-group {
    display: flex;
    align-items: center;
    gap: 4px;
}
/* esquerda: da borda até o DOWNLOAD | direita: do DOWNLOAD até o LOGIN */
.topnav-left  { width: calc(50% - var(--dl-space)); justify-content: space-between; padding-right: var(--nav-gap); }
.topnav-right { width: calc(50% - var(--dl-space) - var(--login-space)); margin-right: var(--login-space); justify-content: space-between; padding-left: var(--nav-gap); }
.topnav-left a:first-child { padding-left: 0; }   /* HOME começa alinhado com o Server Information */
.topnav a {
    position: relative;
    padding: 8px 6px;
    font-weight: 700;
    font-size: .74rem;
    letter-spacing: .07em;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease;
}
.topnav a::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 0;
    width: 70%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--ember), transparent);
    transform: translateX(-50%) scaleX(0);
    transition: transform .25s ease;
}
.topnav a:hover, .topnav a.is-active { color: #fff; }
.topnav a:hover::after, .topnav a.is-active::after { transform: translateX(-50%) scaleX(1); }

/* DOWNLOAD no centro da barra (lugar do "AWAKENING") */
.btn-download-top {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
    --h: 44px;
}
/* DOWNLOAD da barra se mexe menos que o REGISTER */
.btn-download-top:hover,
.btn-download-top:focus-visible { scale: 1.04; translate: 0 -1px; }
.btn-download-top:active { scale: 1.01; }

/* LOGIN */
.login-wrap { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); }   /* LOGIN termina alinhado com as notícias */
.login-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 14px);
    width: 290px;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-top: 2px solid var(--red);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.login-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.login-box { display: grid; gap: 10px; }
.login-box input {
    width: 100%;
    padding: 11px 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--text);
    font: inherit;
    font-size: .95rem;
}
.login-box input:focus { outline: none; border-color: var(--ember); }
.login-box .btn-ornate { margin-top: 4px; }
#login-msg { margin-top: 10px; color: #ff8a7a; font-size: .9rem; }
#login-msg:empty { display: none; }
.logged-in-alert {
    position: relative;
    min-height: 124px;
    padding-right: 102px;
    font-size: .95rem;
    display: grid;
    gap: 10px;
}
.acc-welcome { min-height: 22px; }

/* Foto do jogador no canto superior direito da caixa ACCOUNT */
.acc-profile-side {
    position: absolute;
    top: 0;
    right: 0;
    width: 86px;
    display: grid;
    justify-items: center;
    gap: 6px;
}
.acc-profile-photo {
    width: 72px;
    height: 72px;
    display: block;
    border: 2px solid #9e2b31;
    background: #0d1117;
    box-shadow: inset 0 0 0 1px rgba(255, 190, 120, .10), 0 4px 12px rgba(0,0,0,.45);
    overflow: hidden;
    text-decoration: none;
}
.acc-profile-avatar {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.acc-profile-avatar--empty {
    display: grid;
    place-items: center;
    color: #806b67;
    font-size: 31px;
    line-height: 1;
}
.btn-profile-acc {
    width: 86px;
    box-sizing: border-box;
    padding: 5px 7px;
    border: 1px solid #a42a31;
    background: linear-gradient(180deg, #7d1820 0%, #551017 100%);
    color: #ffe0d2;
    text-align: center;
    text-decoration: none;
    font: 700 .75rem 'Cinzel', Georgia, serif;
    letter-spacing: .06em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.btn-profile-acc:hover {
    background: linear-gradient(180deg, #a3232c 0%, #70141d 100%);
    color: #fff;
}

.btn-logout {
    justify-self: start;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--red);
    color: #ffb4a6;
    font: 700 .8rem 'Rajdhani', sans-serif;
    letter-spacing: .08em;
    cursor: pointer;
}
.btn-logout:hover { background: var(--blood); color: #fff; }

/* ===== Caixinha do jogador: pontos (TP/CP) + botao Vote ===== */
.acc-points { display: flex; gap: 10px; flex-wrap: wrap; }
.acc-point {
    display: inline-flex; align-items: baseline; gap: 4px;
    background: #0d1117; border: 1px solid var(--line); border-radius: 6px;
    padding: 5px 10px; font-family: 'Cinzel', Georgia, serif; font-weight: 700;
    color: #ffd2a8; font-size: .95rem;
}
.acc-point small { font-size: .7em; color: var(--muted); font-weight: 600; }
.acc-point.acc-cp { color: #58d0ff; }
.acc-point.acc-cp small { color: #6fa8c0; }
.acc-actions { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: 4px; }
.acc-actions .btn-logout { margin-left: auto; }
.btn-vote-acc {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px; border-radius: 3px; text-decoration: none;
    background: linear-gradient(180deg, #2e8b3f 0%, #1c6e2b 100%);
    border: 1px solid rgba(140, 255, 150, .35);
    color: #eafff0; font: 700 .8rem 'Cinzel', Georgia, serif; letter-spacing: .08em;
    box-shadow: inset 0 1px 0 rgba(200, 255, 200, .18), 0 4px 10px rgba(0, 0, 0, .35);
    transition: background .2s ease, border-color .2s ease;
}
.btn-vote-acc:hover { background: linear-gradient(180deg, #38a84c 0%, #228233 100%); border-color: rgba(170, 255, 180, .6); }

.login-foot { margin: 12px 0 0; font-size: .85rem; color: var(--muted); }
.login-foot a { color: #ff9a6a; }
#user-area:not(:empty) ~ .login-foot { display: none; }

.nav-toggle { display: none; }

/* Discord flutuante */
.discord-btn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    width: 52px;
    height: 52px;
    transition: transform .2s ease;
}
.discord-btn img { width: 100%; height: 100%; object-fit: contain; }
.discord-btn:hover { transform: scale(1.08); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    min-height: 640px;
    height: 78vh;
    max-height: 820px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-art {
    position: absolute;
    inset: 0;
    background: var(--hero-art) center 40% / cover no-repeat;
}
/* escurece e puxa a cor pro roxo/vermelho do layout */
.hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(270deg, rgba(14, 5, 7,0) 35%, rgba(14, 5, 7,.35) 60%, rgba(14, 5, 7,.6) 100%),   /* escurece atrás da logo */
        linear-gradient(180deg, rgba(14, 5, 7,.25) 0%, rgba(14, 5, 7,0) 25%, rgba(14, 5, 7,.15) 60%, rgba(14, 5, 7,.75) 88%, var(--bg) 100%),
        linear-gradient(0deg, rgba(80, 8, 18,.12), rgba(80, 8, 18,.05));
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    /* mesma largura do bloco Server Information / News, pra ficar alinhado */
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px 90px;
    display: flex;
    /* logo + REGISTER do lado esquerdo */
    justify-content: flex-start;
}
.hero-copy {
    width: min(440px, 48%);
    margin-left: -20px;   /* compensa a borda transparente da imagem da logo */
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-logo {
    width: 100%;
    max-width: 440px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6)) drop-shadow(0 0 30px rgba(255, 90, 30, .25));
}
/* ---------- Logo com fumaça de fogo vermelho-escura em volta ----------
   O wov-buttons.js coloca a logo dentro de .logo-stage e desenha
   a fumaça atrás dela (canvas .logo-smoke). */
.logo-stage {
    position: relative;
    display: block;
    width: 100%;
    max-width: 440px;
}
.logo-stage .hero-logo { position: relative; z-index: 2; }
.logo-shine {                /* brilho de espelho, exatamente por cima da logo */
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: screen;
}
.logo-smoke {
    position: absolute;
    left: -25%; top: -45%;
    width: 150%; height: 190%;
    z-index: 1;
    pointer-events: none;
}

.hero-subtitle {
    margin: 6px 0 26px;
    text-align: center;
    white-space: nowrap;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 600;
    font-size: .92rem;
    letter-spacing: .04em;
    color: #f2e3d0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}

/* personagem (Assassin) do lado direito da logo, como na referência.
   A parte de baixo some suavemente atrás do bloco de notícias. */
.hero-char {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: calc(52% + 150px);
    transform: translateX(-50%);
    height: 90%;
    width: auto;
    max-width: none;
    pointer-events: none;
    user-select: none;

    filter: none;

    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 97%);
            mask-image: linear-gradient(180deg, #000 72%, transparent 97%);
}
.hero-content { z-index: 3; }

/* bolinhas antigas desativadas (agora é a cinza do canvas .hero-ash) */
.hero-embers { display: none; }

/* cinza de fogo subindo por cima da foto do fundo */
.hero-ash {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* =========================================================
   CONTEÚDO
   ========================================================= */
.page {
    position: relative;
    z-index: 3;
    max-width: var(--wrap);
    margin: -150px auto 0;
    padding: 0 24px 80px;
}
.panel-title {
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
}
.section-title {
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    font-size: 1.7rem;
    color: #fff;
    text-align: center;
    margin-bottom: 26px;
}
.section-title::after {
    content: "";
    display: block;
    width: 90px;
    height: 2px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, transparent, var(--ember), transparent);
}

/* ---------- Servidor + notícias (como o bloco "Latest News") ---------- */
.news-row {
    display: grid;
    grid-template-columns: 300px 1fr;
    background: linear-gradient(180deg, rgba(44, 12, 18, .94), rgba(23, 7, 10, .97));
    border: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
}
.server-card {
    padding: 18px 18px 14px;
    background: linear-gradient(180deg, rgba(122, 10, 18, .35), rgba(14, 5, 7, .4));
    border-right: 1px solid var(--line);
}
.server-card .panel-title { padding-bottom: 10px; font-size: 1rem; border-bottom: 1px solid rgba(255, 106, 42, .35); }
.stats-list { margin-top: 6px; }
.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
}
.stat-item:last-child { border-bottom: 0; }
.stat-label { font-weight: 600; font-size: .82rem; color: var(--muted); }
.stat-value { font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: .92rem; color: #ffd2a8; }
.stat-value small { font-size: .7em; margin-left: 1px; }

.news-panel { padding: 22px 26px 18px; min-width: 0; }
.news-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.news-head::after {
    content: "";
    position: absolute;
    left: 0; bottom: -1px;
    width: 120px; height: 2px;
    background: var(--violet);
}
.news-kicker { font-size: .82rem; color: var(--muted); }
/* ---------- WOW Valhalla News: lista + foto do lado direito ---------- */
.news-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.news-tabs button {
    padding: 6px 10px;
    background: none;
    border: 0;
    border-radius: 2px;
    color: var(--muted);
    font: 600 .82rem 'Rajdhani', sans-serif;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}
.news-tabs button:hover { color: #fff; }
.news-tabs button.is-active {
    color: #ffdcdc;
    background: radial-gradient(closest-side, rgba(179, 48, 63, .35), transparent);
}
.news-tabs button:focus-visible { outline: 2px solid var(--violet); outline-offset: 1px; }

.news-feed-body {
    display: grid;
    margin-top: 6px;
}
.news-list { min-width: 0; }
.news-card[hidden] { display: none; }
.news-card details { border-bottom: 1px solid var(--line); }
.news-card summary {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto 10px;
    align-items: center;
    gap: 12px;
    padding: 13px 10px;
    cursor: pointer;
    list-style: none;
    transition: background .2s ease;
}
.news-card summary::-webkit-details-marker { display: none; }
.news-card summary::after {
    content: "";
    width: 7px; height: 7px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform .2s ease;
}
.news-card summary:hover { background: rgba(179, 48, 63, .08); }
.news-card details[open] summary {
    background: linear-gradient(90deg, rgba(179, 48, 63, .22), rgba(179, 48, 63, .04));
    box-shadow: inset 3px 0 0 var(--violet);
}
.news-card details[open] summary::after { transform: rotate(-135deg); border-color: #fff; }
.news-card summary:focus-visible { outline: 2px solid var(--violet); outline-offset: -2px; }
.news-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: .98rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-card:not(:has(details[open])) h3 { color: #dcc8c5; }
.news-card details[open] h3 { white-space: normal; }
.news-when { font-weight: 600; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.news-card details[open] .news-when { color: #fff; }

/* etiqueta da categoria */
.news-type {
    justify-self: start;
    padding: 2px 7px;
    font-weight: 700;
    font-size: .68rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: 1px solid currentColor;
}
.cat-update .news-type { color: #f4a3ae; }
.cat-notice .news-type { color: #ffb347; }
.cat-event  .news-type { color: #ff6a4a; }

.news-body { padding: 6px 12px 18px 84px; }
.news-body p { margin: 6px 0 10px; color: #e8d9d6; max-width: 62ch; }
.news-read { font-size: .82rem; font-weight: 600; color: var(--gold); }
.news-empty { padding: 20px 10px; color: var(--muted); }

/* ---------- Home: Server Info | Notícias | Foto grande (slide) ----------
   A foto é maior que o painel e "sai" por cima dele, como na referência. */
.news-row--home {
    grid-template-columns: 200px minmax(0, 1fr) 370px;
    align-items: start;
    background: none;
    border: 0;
    box-shadow: none;
}
.news-row--home .server-card,
.news-row--home .news-feed {
    align-self: stretch;
    min-height: 300px;
    margin-top: 60px;
    margin-bottom: 0;
    background: linear-gradient(180deg, rgba(44, 12, 18, .94), rgba(23, 7, 10, .97));
    border: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
}
.news-row--home .server-card {
    background: linear-gradient(180deg, rgba(122, 10, 18, .45), rgba(23, 7, 10, .97));
    border-right: 0;
}
.news-row--home .news-feed { padding-right: 44px; }   /* espaço pra foto encostar */
.news-row--home .server-card { padding: 18px 16px 14px; }
.news-row--home .server-card .panel-title { font-size: .92rem; white-space: nowrap; }
.news-row--home .news-head { flex-wrap: wrap; row-gap: 6px; }
.news-row--home .news-head .panel-title { white-space: nowrap; }
.news-row--home .news-tabs button { padding: 5px 7px; font-size: .78rem; }
/* a foto termina um pouco abaixo do painel, como na referência */
.news-row--home { padding-bottom: 16px; }

.news-media {
    position: relative;
    z-index: 2;
    margin: 0 0 0 -24px;          /* invade um pouco o painel */
    aspect-ratio: 10 / 11;        /* mais alta que o painel: sai por cima e por baixo */
    filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .65));
}
/* borda fina vermelho quase preto, cantos chanfrados como o botão DOWNLOAD */
.nm-frame {
    --c: 16px;
    --cut: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
    position: absolute;
    inset: 0;
    clip-path: var(--cut);
    background: #2a0508;
}
.nm-frame img {
    position: absolute;
    inset: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    --c: 15px;
    clip-path: var(--cut);
    object-fit: cover;
}

/* barrinha do slide (enche em 4 s) */
.news-progress {
    position: absolute;
    left: 18px; right: 18px; bottom: -10px;
    height: 4px;
    background: rgba(255, 255, 255, .06);
}
.news-progress i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--violet-2), var(--violet));
}
.news-progress.is-running i { animation: newsBar 4s linear forwards; }
.news-progress.is-paused i { animation-play-state: paused; }
@keyframes newsBar { from { width: 0; } to { width: 100%; } }

/* notícia do slide atual fica destacada (sem abrir o texto) */
.news-card.is-current summary {
    background: linear-gradient(90deg, rgba(179, 48, 63, .22), rgba(179, 48, 63, .04));
    box-shadow: inset 3px 0 0 var(--violet);
}
.news-card.is-current h3 { color: #fff !important; }
.news-card.is-current .news-when { color: #fff; }

/* ---------- Sobre ---------- */
.about { margin: 80px auto 0; max-width: 720px; text-align: center; }
.about p { margin: 0; color: #e8d9d6; font-size: 1.08rem; }

/* ---------- Classes (card com personagem à direita) ---------- */
.classes { margin-top: 90px; }
.carousel-wrapper { position: relative; }
.carousel-item { display: none; }
.carousel-item.active { display: block; animation: fadeIn .45s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.carousel-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 460px;
    background: linear-gradient(180deg, #200a0e, #120508);
    border: 1px solid var(--line);
    overflow: hidden;
}
.carousel-text { padding: 46px 20px 40px 56px; position: relative; z-index: 2; }
.carousel-text h3 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: .04em;
}
.class-subtitle { margin: 2px 0 18px; color: var(--muted); font-weight: 600; }
.class-features { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 6px; }
.class-features li { position: relative; padding-left: 16px; color: #ebdcd9; font-size: .98rem; }
.class-features li::before {
    content: "";
    position: absolute;
    left: 0; top: .62em;
    width: 6px; height: 6px;
    background: var(--ember);
    transform: rotate(45deg);
}
.stats-title { font-family: 'Cinzel', Georgia, serif; font-size: 1.05rem; color: #fff; margin-bottom: 12px; }
.class-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; max-width: 440px; }
.stat-row { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 8px; }
.stat-row span { font-size: .85rem; font-weight: 600; color: #ffb48a; }
.stat-bar { height: 5px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.stat-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet-2), var(--violet)); }

.carousel-visual { position: relative; }
.carousel-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* os personagens ficam do lado direito das artes: puxa a foto pra esquerda
       pra eles aparecerem no meio da parte visível */
    object-position: 100% 30%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}


.carousel-button {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 42px; height: 42px;
    transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    background: rgba(14, 5, 7, .8);
    border: 1px solid var(--line);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
.carousel-button:hover { background: var(--blood); border-color: var(--red); }
.carousel-button:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.carousel-button.prev { left: -21px; }
.carousel-button.next { right: -21px; }

.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.dot {
    width: 10px; height: 10px;
    background: rgba(255, 255, 255, .18);
    transform: rotate(45deg);
    cursor: pointer;
    transition: background .2s ease;
}
.dot.active { background: var(--ember); box-shadow: 0 0 8px rgba(255, 106, 42, .7); }

/* ---------- Chamada final ---------- */
.download-cta {
    margin-top: 90px;
    padding: 50px 24px 56px;
    text-align: center;
    background:
        radial-gradient(60% 120% at 50% 100%, rgba(214, 31, 26, .22), transparent 70%),
        linear-gradient(180deg, var(--panel-2), var(--bg-2));
    border: 1px solid var(--line);
}
.download-cta p { margin: -8px 0 26px; color: #e8d9d6; }

/* ---------- Rodapé ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    background: #0a0304;
    padding: 28px 24px 34px;
    text-align: center;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; }
.footer-links a:hover { color: #fff; }
.footer-copy { margin: 14px 0 0; color: #7d6466; font-size: .82rem; letter-spacing: .06em; }

/* animação usada pelo script.js */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1119px) {
    .topnav a { padding: 8px 4px; font-size: .7rem; letter-spacing: .05em; }
    .topnav-group { gap: 4px; }
    .topbar-inner { --dl-space: 90px; --login-space: 112px; --nav-gap: 22px; }
    .btn-download-top { --h: 42px; top: 9px; }
}

@media (max-width: 1060px) {
    .nav-toggle {
        display: flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 40px; height: 40px; padding: 0 9px;
        background: none; border: 1px solid var(--line); cursor: pointer;
    }
    .nav-toggle span { height: 2px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
    .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .topnav {
        position: absolute;
        top: var(--bar-h);
        left: 0; right: 0;
        height: auto;
        padding: 8px 20px 16px;
        flex-direction: column;
        align-items: stretch;
        background: rgba(16, 5, 8, .98);
        border-bottom: 1px solid var(--line);
        display: none;
    }
    .nav-open .topnav { display: flex; }
    .topnav-group, .topnav-left, .topnav-right { width: auto; margin: 0; padding: 0; flex-direction: column; align-items: stretch; gap: 0; }
    .topnav-left a:first-child { padding-left: 4px; }
    .topnav a { padding: 12px 4px; font-size: .85rem; border-bottom: 1px solid var(--line); }
    .topnav a::after { display: none; }

    .btn-download-top { --h: 40px; top: 10px; }

    .hero { min-height: 560px; height: auto; padding: 60px 0 170px; }
    .hero-char { display: none; }
    .hero-art { background-position: 50% 40%; }
    .hero-art::after {
        background:
            linear-gradient(180deg, rgba(14, 5, 7,.3) 0%, rgba(14, 5, 7,.45) 60%, var(--bg) 100%),
            linear-gradient(0deg, rgba(80, 8, 18,.12), rgba(80, 8, 18,.05));
    }
    .hero-content { padding: 0 20px; justify-content: center; }
    .hero-copy { width: 100%; max-width: 520px; margin-left: 0; }
    .hero-subtitle { white-space: normal; }

    .page { margin-top: -110px; padding: 0 16px 60px; }
    .news-row { grid-template-columns: 1fr; }
    .server-card { border-right: 0; border-bottom: 1px solid var(--line); }
    .stats-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
    .stat-item:nth-last-child(2) { border-bottom: 0; }
    .news-panel { padding: 20px 16px 14px; }
    .news-row--home { grid-template-columns: 1fr; }
    .news-row--home .server-card, .news-row--home .news-feed { margin-top: 0; min-height: 0; }
    .news-row--home .news-feed { padding-right: 16px; border-top: 0; }
    .news-row--home .server-card { border-right: 1px solid var(--line); border-bottom: 0; }
    .news-media { order: 1; margin: 0 0 6px; aspect-ratio: 16 / 10; }
    .news-row--home .news-feed { order: 2; }
    .news-row--home .server-card { order: 3; border-top: 0; }
    .news-head { flex-wrap: wrap; }
    .news-card summary { grid-template-columns: auto minmax(0, 1fr) 10px; gap: 4px 10px; }
    .news-card summary .news-type { grid-column: 1; grid-row: 1; }
    .news-card summary .news-when { grid-column: 2; grid-row: 1; justify-self: start; }
    .news-card summary h3 { grid-column: 1 / 3; grid-row: 2; white-space: normal; }
    .news-card summary::after { grid-column: 3; grid-row: 1 / span 2; }
    .news-body { padding: 4px 12px 16px; }

    .carousel-content { grid-template-columns: 1fr; }
    .carousel-visual { order: -1; height: 300px; }
    .carousel-image {
        -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
                mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
    }
    .carousel-text { padding: 8px 22px 30px; }
    .carousel-button { top: 150px; }
    .carousel-button.prev { left: 8px; }
    .carousel-button.next { right: 8px; }
}

@media (max-width: 520px) {
    .news-kicker { display: none; }
    .btn-forge--lg { --h: 66px; }
    .hero .btn-forge--lg { --h: 56px; }
    .btn-download-top { --h: 36px; top: 12px; }
    .login-wrap .btn-ornate--sm { padding: 0 18px; font-size: .7rem; }
    .login-panel { width: min(290px, calc(100vw - 32px)); }
    .class-stats { grid-template-columns: 1fr; }
    .stats-list { grid-template-columns: 1fr; }
    .stat-item:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .logo-smoke, .logo-shine, .hero-ash { display: none; }
    .reveal { opacity: 1; transform: none; }
    .btn-forge:hover .bf-cracks path, .btn-forge:focus-visible .bf-cracks path { stroke-dashoffset: 0; }
}

/* =========================================================
   PÁGINAS INTERNAS (Rules, Support, Register, Company Info,
   Terms of Purchase, Privacy Policy, EULA)
   Mesmo layout do index; o conteúdo da página fica no lugar
   das notícias.
   ========================================================= */
.page-row { align-items: start; }
.sub-page .server-card { align-self: stretch; }
.sub-page .server-card > * { position: relative; }
@media (min-width: 1061px) {
    /* o Server Information acompanha a rolagem em páginas longas */
    .sub-page .server-card .panel-title,
    .sub-page .server-card .stats-list { position: sticky; }
    .sub-page .server-card .panel-title { top: calc(var(--bar-h) + 22px); }
    .sub-page .server-card .stats-list  { top: calc(var(--bar-h) + 70px); }
}
.page-panel { padding: 24px 32px 30px; }
.page-panel .panel-title { font-size: 1.3rem; letter-spacing: .02em; }

.page-body { padding-top: 22px; color: #e8d9d6; }
.page-body > :first-child { margin-top: 0; }
.page-body p { margin: 0 0 12px; max-width: 72ch; }
.page-body a { color: #ff9a6a; text-underline-offset: 3px; }
.page-body a:hover { color: #ffc49e; }
.page-body ul { margin: 4px 0 14px; padding: 0; list-style: none; display: grid; gap: 6px; }
.page-body ul li { position: relative; padding-left: 18px; max-width: 70ch; }
.page-body ul li::before {
    content: "";
    position: absolute;
    left: 2px; top: .62em;
    width: 6px; height: 6px;
    background: var(--ember);
    transform: rotate(45deg);
}
.page-body h3 {
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: .03em;
    color: #fff;
    margin: 0 0 10px;
}
.page-body h4 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #ffb48a;
    margin: 16px 0 6px;
}

/* intro de páginas legais / regras / suporte */
.legal-intro, .rules-intro, .sp-intro, .register-copy {
    padding: 14px 18px;
    margin-bottom: 22px;
    background: linear-gradient(90deg, rgba(179, 48, 63, .14), rgba(179, 48, 63, .02));
    box-shadow: inset 3px 0 0 var(--violet);
}
.legal-intro p:last-child, .legal-intro ul:last-child { margin-bottom: 0; }
.rules-intro, .sp-intro, .register-copy { margin-top: 0; }
.page-body .rules-intro, .page-body .sp-intro, .page-body .register-copy { max-width: none; }
.legal-notice { color: #ffb48a; font-weight: 700; }

/* blocos legais */
.legal-block { padding: 20px 0 8px; border-top: 1px solid var(--line); }
.legal-block:first-of-type { border-top: 0; padding-top: 4px; }
.legal-contact { font-weight: 600; }

/* regras numeradas */
.rules-list { list-style: none; margin: 0 0 18px; padding: 0; counter-reset: rule; display: grid; gap: 4px; }
.rules-list li {
    counter-increment: rule;
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 14px;
    padding: 16px 12px 12px 0;
    border-bottom: 1px solid var(--line);
}
.rules-list li::before {
    content: counter(rule);
    grid-row: 1 / span 2;
    width: 36px; height: 36px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    font: 700 1rem 'Cinzel', Georgia, serif;
    color: #fff4e2;
    background: radial-gradient(circle at 50% 30%, #e0452a, #8a0d14 70%);
    border: 1px solid var(--gold);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.rules-list h3 { margin-bottom: 4px; }
.rules-list p { margin: 0; }
.rules-support { margin-top: 16px; font-weight: 600; }

/* formulários (Register / Support) */
.register-card { max-width: 520px; }
.register-box, .sp-form { display: grid; gap: 12px; }
.register-box input,
.sp-field input,
.sp-field textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--text);
    font: inherit;
    font-size: 1rem;
}
.register-box input:focus,
.sp-field input:focus,
.sp-field textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(255, 106, 42, .15); }
.sp-form { grid-template-columns: 1fr 1fr; gap: 14px 18px; max-width: 680px; }
.sp-field { display: grid; gap: 6px; }
.sp-field.full { grid-column: 1 / -1; }
.sp-field label { font-weight: 700; font-size: .9rem; color: #fff; }
.sp-field label span { color: var(--ember); }
.sp-field textarea { min-height: 170px; resize: vertical; }
.sp-count { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }

/* botões dos formulários */
button.btn-forge { padding: 0; border: 0; background: none; font: inherit; }
.btn-forge--form { --h: 58px; justify-self: center; margin: 8px 0 4px; }
.btn-send { justify-self: center; min-width: 200px; grid-column: 1 / -1; margin-top: 6px; }
.btn-send:disabled { opacity: .6; cursor: wait; }

#register-msg, #support-msg { margin-top: 14px; font-weight: 600; }
#register-msg:empty, #support-msg:empty { display: none; }
#support-msg.is-ok { color: #8fe3a5; }
#support-msg.is-error { color: #ff8a7a; }
.register-security {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: .95rem;
    color: var(--muted);
}
.register-security strong { color: #ffb48a; }

@media (max-width: 1060px) {
    .page-row .page-panel { order: -1; }          /* conteúdo antes do Server Information no celular */
    .page-row .server-card { border-bottom: 0; border-top: 1px solid var(--line); }
    .page-panel { padding: 20px 18px 24px; }
}
@media (max-width: 600px) {
    .sp-form { grid-template-columns: 1fr; }
    .rules-list li { grid-template-columns: 36px 1fr; column-gap: 10px; }
    .rules-list li::before { width: 30px; height: 30px; font-size: .9rem; }
}

/* =========================================================
   BOTÃO SIMPLES (LOGIN da barra, LOGIN da caixinha, REGISTER do formulário)
   ========================================================= */
.btn-simple {
    --h: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--h);
    padding: 0 26px;
    background: linear-gradient(180deg, #8c1626 0%, #5e0b16 100%);
    border: 1px solid rgba(255, 150, 120, .35);
    border-radius: 3px;
    color: #fff3ec;
    font: 700 .85rem/1 'Cinzel', Georgia, serif;
    letter-spacing: .12em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 210, 190, .18), 0 4px 12px rgba(0, 0, 0, .35);
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .1s ease;
}
.btn-simple:hover {
    background: linear-gradient(180deg, #a51c2e 0%, #6e0d1a 100%);
    border-color: rgba(255, 170, 130, .65);
    box-shadow: inset 0 1px 0 rgba(255, 210, 190, .25), 0 0 14px rgba(200, 40, 30, .35);
}
.btn-simple:active { transform: translateY(1px); }
.btn-simple:focus-visible { outline: 2px solid #ffcf9a; outline-offset: 3px; }
.btn-simple:disabled { opacity: .6; cursor: wait; }

.btn-simple--sm { --h: 34px; padding: 0 20px; font-size: .76rem; }
.btn-simple--block { width: 100%; margin-top: 4px; }
.btn-simple--form { min-width: 200px; justify-self: center; margin: 8px 0 4px; }

@media (max-width: 520px) {
    .login-wrap .btn-simple--sm { padding: 0 14px; font-size: .7rem; }
}

/* ===== Cursor personalizado ===== */
body.wov,
body.wov * {
    cursor: url('https://www.wowvalhalla.com/cursor.png'), auto;
}

/* mãozinha de clicar: botões e links */
body.wov a,
body.wov button,
body.wov .btn-forge,
body.wov .btn-simple,
body.wov summary,
body.wov .dot,
body.wov .carousel-button,
body.wov .news-tabs button,
body.wov [role="button"],
body.wov input[type="submit"],
body.wov .btn-forge,
body.wov .btn-forge *,
body.wov .btn-download-top,
body.wov .btn-download-top * {
    cursor: url('https://www.wowvalhalla.com/cursor-hover.png'), pointer !important;
}
/* =========================================================
   BLOOD PALACE + TOP 5 (abaixo do Server Information)
   Dados: ranking.php  ->  desenhado pelo realm.js
   ========================================================= */
.realm-widgets { margin-top: 14px; }
.rw-block + .rw-block { margin-top: 16px; }
.server-card .rw-title {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 8px;
    font-size: .88rem;
    letter-spacing: .02em;
    border-bottom: 1px solid rgba(255, 106, 42, .35);
}
.rw-crown { width: 15px; height: 15px; flex: none; color: var(--gold); filter: drop-shadow(0 0 4px rgba(255, 106, 42, .45)); }
.rw-list { margin-top: 4px; }
.rw-list .stat-item { gap: 10px; }
.rw-list .stat-item:last-child { border-bottom: 0; }
.rw-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ff8a6a;
}
.rw-empty { padding: 8px 0 2px; font-size: .8rem; color: var(--muted); list-style: none; }

.rw-top { list-style: none; margin: 4px 0 0; padding: 0; }
.rw-player {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
}
.rw-player:last-child { border-bottom: 0; }
.rw-rank {
    flex: none;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    font-size: .72rem;
    color: var(--muted);
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, .25);
}
.rw-rank--gold   { color: #2a1400; background: linear-gradient(180deg, #ffe0a0, #d79a3e); border-color: #ffe0a0; }
.rw-rank--silver { color: #1a1a1a; background: linear-gradient(180deg, #f2f2f2, #9da3a8); border-color: #e6e6e6; }
.rw-rank--bronze { color: #1e0c02; background: linear-gradient(180deg, #f0b07a, #9a5a2a); border-color: #f0b07a; }
.rw-pname {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    font-size: .82rem;
    color: var(--text);
}
.rw-lv {
    flex: none;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    font-size: .8rem;
    color: #ffd2a8;
}

/* Páginas internas: o bloco inteiro acompanha a rolagem junto (em vez de
   só o título e a lista), pra o ranking não passar por baixo do Server Info. */
@media (min-width: 1061px) {
    .sub-page .server-card .server-card-body { position: sticky; top: calc(var(--bar-h) + 22px); }
    .sub-page .server-card .server-card-body .panel-title,
    .sub-page .server-card .server-card-body .stats-list { position: static; }
}

/* Celular / tablet: Blood Palace e Top 5 lado a lado */
@media (max-width: 1060px) {
    .rw-list .stat-item:nth-last-child(2) { border-bottom: 1px solid var(--line); }
    .realm-widgets:has(.rw-block) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 20px;
        align-items: start;
    }
    .rw-block + .rw-block { margin-top: 0; }
}
@media (max-width: 520px) {
    .realm-widgets:has(.rw-block) { grid-template-columns: 1fr; }
    .rw-block + .rw-block { margin-top: 16px; }
}

/* PROFILE PANEL FIX VERSION: 20261023profilepanel2 */


/* =========================================================
   KING OF PK (acima do Server Information na Home)
   ========================================================= */
.king-pk-card {
    position: relative;
    margin: 0 0 16px;
    padding: 10px 8px 14px;
    text-align: center;
    background: linear-gradient(180deg, rgba(74, 9, 16, .72), rgba(18, 5, 8, .9));
    border: 1px solid rgba(255, 106, 42, .28);
    box-shadow: inset 0 0 0 1px rgba(255, 190, 120, .05), 0 12px 24px rgba(0, 0, 0, .28);
    overflow: hidden;
}
.king-pk-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top center, rgba(255, 149, 65, .14), transparent 56%);
    pointer-events: none;
}
.king-pk-heading {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 800;
    font-size: .9rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #ffe0bd;
    text-shadow: 0 0 10px rgba(255, 106, 42, .28);
}
.king-pk-frame {
    --cut: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
    position: relative;
    width: 132px;
    height: 132px;
    margin: 0 auto;
    padding: 4px;
    clip-path: var(--cut);
    background: linear-gradient(180deg, rgba(255, 206, 143, .98), rgba(192, 83, 32, .95));
    box-shadow: 0 0 0 1px rgba(73, 17, 0, .6) inset, 0 0 22px rgba(255, 122, 37, .35), 0 10px 20px rgba(0, 0, 0, .45);
    isolation: isolate;
}
.king-pk-frame::before {
    content: "";
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(126, 198, 255, .44);
    clip-path: var(--cut);
    opacity: .82;
    filter: drop-shadow(0 0 7px rgba(135, 220, 255, .58));
    animation: kingPkPulse 1.8s ease-in-out infinite alternate;
    pointer-events: none;
}
.king-pk-avatar,
.king-pk-placeholder {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    clip-path: var(--cut);
    object-fit: cover;
}
.king-pk-placeholder {
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 35%, rgba(69, 14, 24, .95), rgba(19, 7, 11, .98));
    color: #ffd8b4;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 800;
    font-size: 1.9rem;
    letter-spacing: .12em;
    text-shadow: 0 0 18px rgba(255, 106, 42, .28);
}
.king-pk-placeholder span { transform: translateX(.08em); }
.king-pk-bolt {
    position: absolute;
    z-index: 2;
    width: 26px;
    height: 62px;
    background: linear-gradient(180deg, rgba(214, 248, 255, .95), rgba(110, 210, 255, .75));
    clip-path: polygon(48% 0, 76% 0, 58% 34%, 88% 34%, 38% 100%, 49% 56%, 18% 56%);
    filter: drop-shadow(0 0 8px rgba(110, 210, 255, .92)) drop-shadow(0 0 15px rgba(110, 210, 255, .5));
    opacity: .88;
    animation: kingPkFlicker 1.35s steps(2, end) infinite;
    pointer-events: none;
}
.king-pk-bolt--1 { top: -13px; left: -10px; transform: rotate(-18deg); }
.king-pk-bolt--2 { top: -10px; right: -10px; transform: scaleX(-1) rotate(-12deg); animation-delay: .22s; }
.king-pk-bolt--3 { bottom: -16px; left: -6px; transform: rotate(161deg); animation-delay: .42s; }
.king-pk-bolt--4 { bottom: -16px; right: -8px; transform: scaleX(-1) rotate(163deg); animation-delay: .14s; }
.king-pk-name {
    position: relative;
    z-index: 1;
    margin-top: 11px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: .92rem;
    color: #fff4e7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.king-pk-meta {
    position: relative;
    z-index: 1;
    margin-top: 3px;
    min-height: 16px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .03em;
    color: #ffba91;
}
.king-pk-card.is-empty .king-pk-name { color: #d8b7a1; }
.king-pk-card.is-empty .king-pk-meta { color: var(--muted); }
@keyframes kingPkFlicker {
    0%, 12%, 18%, 100% { opacity: .9; }
    9%, 14% { opacity: .36; }
}
@keyframes kingPkPulse {
    from { opacity: .55; transform: scale(.992); }
    to   { opacity: .95; transform: scale(1.005); }
}
@media (max-width: 1060px) {
    .king-pk-card { max-width: 240px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 520px) {
    .king-pk-frame { width: 120px; height: 120px; }
    .king-pk-heading { font-size: .84rem; }
}


/* =========================================================
   ACCOUNT PANEL - Vote / Logout same height
   ========================================================= */
.acc-actions {
    align-items: center;
}

.acc-actions > .btn-vote-acc,
.acc-actions > .btn-logout {
    box-sizing: border-box;
    height: 34px;
    min-height: 34px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-top: 0;
    margin-bottom: 0;
}

.acc-actions > .btn-vote-acc {
    align-self: center;
}

.acc-actions > .btn-logout {
    align-self: center;
    margin-left: auto;
}


/* =========================================================
   KING OF PK - bloco independente acima do Server Information
   ========================================================= */
.news-row--home {
    position: relative;
}

@media (min-width: 1061px) {
    /* Fica no espaço vazio da arte, alinhado com a coluna esquerda.
       Não pertence ao Server Information e não altera a altura dele. */
    .news-row--home > .king-pk-card {
        position: absolute;
        z-index: 12;
        top: -130px;
        left: 0;
        width: 200px;
        height: 180px;
        margin: 0;
        padding: 8px 10px 10px;
        box-sizing: border-box;
        overflow: visible;
        text-align: center;
        background: linear-gradient(180deg, rgba(45, 7, 12, .80), rgba(13, 4, 6, .82));
        border: 1px solid rgba(207, 49, 39, .70);
        box-shadow: 0 12px 26px rgba(0,0,0,.30), inset 0 0 18px rgba(147, 22, 24, .10);
    }

    .news-row--home > .king-pk-card .king-pk-heading {
        height: 28px;
        margin: 0 0 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: .90rem;
        line-height: 1;
        letter-spacing: .08em;
    }

    .news-row--home > .king-pk-card .king-pk-frame {
        width: 126px;
        height: 126px;
        margin: 0 auto;
    }

    /* No espaço marcado: somente título + foto/raios. */
    .news-row--home > .king-pk-card .king-pk-name,
    .news-row--home > .king-pk-card .king-pk-meta {
        display: none;
    }
}

/* Em telas menores volta para o fluxo normal, acima do Server Information. */
@media (max-width: 1060px) {
    .news-row--home > .king-pk-card {
        position: static;
        grid-column: 1 / -1;
        width: min(240px, 100%);
        margin: 0 auto 14px;
    }
}


/* =========================================================
   KING OF PK - VISUAL PRO / integrado ao tema do site
   Sem caixa externa; placa do título + moldura recortada
   ========================================================= */
@media (min-width: 1061px) {
    .news-row--home > .king-pk-card {
        top: -128px;
        left: 0;
        width: 200px;
        height: 178px;
        padding: 0;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        overflow: visible;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .news-row--home > .king-pk-card::before {
        display: none;
    }

    /* Plaquinha do título: bem encostada na foto */
    .news-row--home > .king-pk-card .king-pk-heading {
        position: relative;
        z-index: 8;
        width: 154px;
        height: 29px;
        margin: 0 0 -2px;
        padding: 0 16px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Cinzel', Georgia, serif;
        font-size: .79rem;
        font-weight: 800;
        line-height: 1;
        letter-spacing: .095em;
        color: #f7d4b4;
        text-transform: uppercase;
        white-space: nowrap;
        background:
            linear-gradient(180deg, rgba(93, 17, 24, .98), rgba(41, 7, 11, .98));
        border: 1px solid #8f2429;
        border-bottom-color: #4c0c10;
        clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 9px 100%, 0 50%);
        box-shadow:
            inset 0 1px 0 rgba(255, 208, 163, .13),
            inset 0 -7px 14px rgba(0, 0, 0, .22),
            0 3px 10px rgba(0, 0, 0, .45),
            0 0 10px rgba(157, 30, 34, .12);
        text-shadow: 0 1px 0 #2b0507, 0 0 8px rgba(255, 118, 62, .12);
    }

    .news-row--home > .king-pk-card .king-pk-heading::before,
    .news-row--home > .king-pk-card .king-pk-heading::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 13px;
        height: 1px;
        background: linear-gradient(90deg, transparent, #d3573f);
        opacity: .72;
    }
    .news-row--home > .king-pk-card .king-pk-heading::before {
        left: 10px;
    }
    .news-row--home > .king-pk-card .king-pk-heading::after {
        right: 10px;
        transform: scaleX(-1);
    }

    /* Moldura da foto - só a borda acompanha o recorte */
    .news-row--home > .king-pk-card .king-pk-frame {
        --cut: polygon(13px 0, calc(100% - 13px) 0, 100% 13px, 100% calc(100% - 13px), calc(100% - 13px) 100%, 13px 100%, 0 calc(100% - 13px), 0 13px);
        position: relative;
        z-index: 5;
        width: 146px;
        height: 146px;
        margin: 0 auto;
        padding: 2px;
        box-sizing: border-box;
        clip-path: var(--cut);
        background: linear-gradient(145deg, #d74a35 0%, #7a1119 36%, #32060a 56%, #9f1d22 78%, #ef7449 100%);
        box-shadow:
            0 0 0 1px rgba(36, 3, 6, .92) inset,
            0 7px 18px rgba(0, 0, 0, .52),
            0 0 10px rgba(134, 17, 22, .26);
        isolation: isolate;
    }

    /* Segundo filete interno, mais fino e sofisticado */
    .news-row--home > .king-pk-card .king-pk-frame::after {
        content: "";
        position: absolute;
        z-index: 4;
        inset: 5px;
        clip-path: var(--cut);
        border: 1px solid rgba(225, 96, 68, .42);
        pointer-events: none;
        box-shadow: inset 0 0 10px rgba(86, 7, 12, .34);
    }

    /* tira o contorno azul antigo */
    .news-row--home > .king-pk-card .king-pk-frame::before {
        content: "";
        position: absolute;
        inset: -1px;
        clip-path: var(--cut);
        border: 0;
        opacity: 1;
        background: radial-gradient(circle at 50% 0%, rgba(245, 93, 55, .13), transparent 44%);
        filter: none;
        animation: none;
        pointer-events: none;
    }

    .news-row--home > .king-pk-card .king-pk-avatar,
    .news-row--home > .king-pk-card .king-pk-placeholder {
        position: relative;
        z-index: 2;
        width: 100%;
        height: 100%;
        clip-path: var(--cut);
        object-fit: cover;
        background-color: #110507;
    }

    .news-row--home > .king-pk-card .king-pk-placeholder {
        background:
            radial-gradient(circle at 50% 33%, rgba(91, 18, 24, .72), transparent 34%),
            linear-gradient(145deg, #25090d, #100406 60%, #1c070a);
        color: #dca786;
        font-size: 1.55rem;
        text-shadow: 0 0 12px rgba(183, 54, 39, .2);
    }

    /* Raios agora no tom do site, menores e mais sutis */
    .news-row--home > .king-pk-card .king-pk-bolt {
        z-index: 7;
        width: 18px;
        height: 47px;
        background: linear-gradient(180deg, #ffd1a5 0%, #f06d46 28%, #a41622 74%, #5d080f 100%);
        filter:
            drop-shadow(0 0 3px rgba(255, 118, 69, .72))
            drop-shadow(0 0 7px rgba(149, 18, 25, .55));
        opacity: .77;
        animation: kingPkRedFlicker 1.7s steps(2, end) infinite;
    }
    .news-row--home > .king-pk-card .king-pk-bolt--1 { top: -7px; left: -5px; transform: rotate(-17deg); }
    .news-row--home > .king-pk-card .king-pk-bolt--2 { top: -6px; right: -5px; transform: scaleX(-1) rotate(-15deg); animation-delay: .25s; }
    .news-row--home > .king-pk-card .king-pk-bolt--3 { bottom: -9px; left: -3px; transform: rotate(161deg); animation-delay: .48s; }
    .news-row--home > .king-pk-card .king-pk-bolt--4 { bottom: -9px; right: -4px; transform: scaleX(-1) rotate(163deg); animation-delay: .16s; }
}

@keyframes kingPkRedFlicker {
    0%, 10%, 17%, 100% { opacity: .78; }
    12%, 15% { opacity: .35; }
}

/* Tablet/celular: mantém a mesma linguagem visual sem a caixa externa */
@media (max-width: 1060px) {
    .news-row--home > .king-pk-card {
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        overflow: visible;
    }
    .news-row--home > .king-pk-card::before { display: none; }
    .news-row--home > .king-pk-card .king-pk-heading {
        width: 154px;
        height: 29px;
        margin: 0 auto -2px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(180deg, rgba(93, 17, 24, .98), rgba(41, 7, 11, .98));
        border: 1px solid #8f2429;
        clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 9px 100%, 0 50%);
        box-shadow: 0 3px 10px rgba(0, 0, 0, .45);
    }
    .news-row--home > .king-pk-card .king-pk-frame {
        width: 146px;
        height: 146px;
        padding: 2px;
        background: linear-gradient(145deg, #d74a35, #7a1119 40%, #32060a 60%, #b32b2c 100%);
        box-shadow: 0 7px 18px rgba(0,0,0,.52), 0 0 10px rgba(134,17,22,.26);
    }
}


/* =========================================================
   KING OF PK - FINAL: FOTO MENOR + PLACA REALMENTE EMBAIXO
   ========================================================= */
@media (min-width: 1061px) {
    .news-row--home > .king-pk-card {
        top: -122px !important;
        width: 200px !important;
        height: 151px !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .news-row--home > .king-pk-card .king-pk-frame {
        order: 1 !important;
        width: 122px !important;
        height: 122px !important;
        min-width: 122px !important;
        min-height: 122px !important;
        max-width: 122px !important;
        max-height: 122px !important;
        margin: 0 auto !important;
        flex: 0 0 122px !important;
    }

    .news-row--home > .king-pk-card .king-pk-heading {
        order: 2 !important;
        position: relative !important;
        width: 136px !important;
        height: 27px !important;
        min-height: 27px !important;
        margin: -1px 0 0 !important;
        padding: 0 13px !important;
        flex: 0 0 27px !important;
        font-size: .73rem !important;
        letter-spacing: .085em !important;
    }

    .news-row--home > .king-pk-card .king-pk-name,
    .news-row--home > .king-pk-card .king-pk-meta {
        display: none !important;
    }
}

@media (max-width: 1060px) {
    .news-row--home > .king-pk-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .news-row--home > .king-pk-card .king-pk-frame {
        order: 1 !important;
        width: 122px !important;
        height: 122px !important;
        min-width: 122px !important;
        min-height: 122px !important;
        max-width: 122px !important;
        max-height: 122px !important;
        margin: 0 auto !important;
        flex: 0 0 122px !important;
    }
    .news-row--home > .king-pk-card .king-pk-heading {
        order: 2 !important;
        width: 136px !important;
        height: 27px !important;
        margin: -1px auto 0 !important;
        font-size: .73rem !important;
    }
}


/* =========================================================
   KING OF PK - COMING SOON / posição mais baixa
   ========================================================= */
@media (min-width: 1061px) {
    .news-row--home > .king-pk-card {
        top: -88px !important;
    }

    .news-row--home > .king-pk-card .king-pk-placeholder {
        display: grid;
        place-items: center;
        text-align: center;
    }

    .news-row--home > .king-pk-card .king-pk-placeholder span {
        transform: none !important;
        font-family: 'Cinzel', Georgia, serif;
        font-size: .72rem;
        font-weight: 800;
        line-height: 1.35;
        letter-spacing: .09em;
        color: #e7b08c;
        text-shadow: 0 1px 0 #210406, 0 0 9px rgba(205, 55, 37, .24);
    }
}

@media (max-width: 1060px) {
    .news-row--home > .king-pk-card .king-pk-placeholder {
        display: grid;
        place-items: center;
        text-align: center;
    }
    .news-row--home > .king-pk-card .king-pk-placeholder span {
        transform: none !important;
        font-family: 'Cinzel', Georgia, serif;
        font-size: .72rem;
        font-weight: 800;
        line-height: 1.35;
        letter-spacing: .09em;
        color: #e7b08c;
    }
}
