/* ============================================================
   Emperator Beta — Tema Dragonic
   Paleta extraída do template: carvão / bronze / cobre / vermelho
   ============================================================ */

@font-face {
    font-family: 'Cinzel Decorative';
    src: url('../fonts/CinzelDecorative-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Cinzel Decorative';
    src: url('../fonts/CinzelDecorative-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Cinzel Decorative';
    src: url('../fonts/CinzelDecorative-Black.ttf') format('truetype');
    font-weight: 900;
    font-display: swap;
}

:root {
    --carvao: #111111;
    --carvao-claro: #171717;
    --carvao-painel: #1a1816;
    --carvao-fundo: #0d0d0d;
    --bronze: #94764d;
    --bronze-claro: #c19a63;
    --cobre: #ce7f41;
    --vermelho: #b53623;
    --vermelho-claro: #cb4530;
    --vermelho-escuro: #7d1d10;
    --texto: #d9d4cb;
    --prata: #9b9b9b;
    --negro: #000000;

    --fonte-titulo: 'Cinzel Decorative', 'Palatino Linotype', Georgia, serif;
    --fonte-corpo: system-ui, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--carvao);
    color: var(--texto);
    font-family: var(--fonte-corpo);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--fonte-titulo);
    color: var(--bronze-claro);
    letter-spacing: 0.02em;
}

.text-justify { text-align: justify; }

a { color: var(--cobre); }
a:hover { color: var(--bronze-claro); }

.link-ouro { color: var(--bronze-claro); text-decoration: none; }
.link-ouro:hover { color: var(--cobre); text-decoration: underline; }

.text-prata { color: var(--prata) !important; }
.text-ouro { color: var(--bronze-claro) !important; }

.pixelart, img.pixelart {
    image-rendering: pixelated;
}

/* Cantos retos em todos os componentes */
.btn, .card, .form-control, .form-select, .alert, .badge,
.navbar-toggler, .form-check-input, .dropdown-menu, .toast {
    border-radius: 0 !important;
}

/* Divisor ornamental */
.divisor-ouro {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--bronze), transparent);
    opacity: 1;
    margin: 1.5rem auto;
    width: 60%;
}

.section-title {
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--bronze);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1)
}

.section-title::after {
    content: "";
    display: block;
    width: 140px;
    height: 1px;
    margin: 0.8rem auto 0;
    background: linear-gradient(90deg, transparent, var(--bronze), transparent);
}

/* ---------- Seções one-page (estilo Dragonic) ---------- */

.secao {
    position: relative;
    padding: 4.5rem 0;
}

.secao-a { background: var(--carvao); --dente-cor: var(--carvao); }
.secao-b { background: var(--carvao-claro); --dente-cor: var(--carvao-claro); }

/* Borda serrilhada no topo da seção, invadindo a seção anterior */
.dentes::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    pointer-events: none;
    background:
        linear-gradient(135deg, var(--dente-cor) 50%, transparent 50%) 0 0 / 14px 10px repeat-x,
        linear-gradient(-135deg, var(--dente-cor) 50%, transparent 50%) 7px 0 / 14px 10px repeat-x;
}

/* ---------- Vídeos com loop suave (crossfade) ---------- */

/* Dois players sobrepostos se revezam; só o ativo fica visível */
.video-loop video {
    opacity: 0;
    transition: opacity 1s ease;
}

.video-loop video.video-ativo {
    opacity: 1;
}

/* ---------- Vídeo de fundo da página (discreto) ---------- */

.pagina-fundo {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.pagina-fundo video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

/* Camada escura que mantém o vídeo discreto */
.pagina-fundo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.8), rgba(13, 13, 13, 0.88));
}

/* Conteúdo acima do vídeo */
main, .footer-medieval {
    position: relative;
    z-index: 1;
}

/* Seções com fundo sólido ficam transparentes quando há vídeo atrás */
.com-video-fundo main.secao,
.com-video-fundo main .secao {
    background: transparent;
}

/* ---------- Vídeo de fundo de uma seção específica ---------- */

.secao-video { position: relative; }

.secao-fundo {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.secao-fundo video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.secao-fundo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 13, 0.82);
}

.secao-video > .container {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .pagina-fundo video, .secao-fundo video { display: none; }
}

/* ---------- Preloader ---------- */

#preloader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.3rem;
    background: var(--carvao-fundo);
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

#preloader.encerrado {
    opacity: 0;
    visibility: hidden;
}

.preloader-emblema {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-logo {
    max-width: 105px;
    height: auto;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.8));
}

.preloader-anel {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(148, 118, 77, 0.25);
    border-top-color: var(--bronze-claro);
    border-radius: 50%;
    animation: preloader-giro 0.9s linear infinite;
}

@keyframes preloader-giro {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .preloader-anel { animation: none; }
}

.preloader-texto {
    font-family: var(--fonte-titulo);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--bronze);
}

/* ---------- Navbar ---------- */

.navbar-medieval {
    background: var(--carvao);
    border-bottom: 1px solid rgba(148, 118, 77, 0.45);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

/* Barra de jogadores online (abaixo da navbar) */
.online-bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding-top: 1px;
    padding-bottom: 4px;
    background: #94764de3;
    border-bottom: 1px solid rgba(80, 55, 21, 0.83);
    font-family: var(--fonte-corpo);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: #ffffff;
}

.online-bar #online-count {
    color: #ffffff;
    margin-top: 2px;
    font-weight: 700;
}

.online-dot {
    margin-top: 2px;
    width: 8px;
    height: 8px;
    margin-right: 0.5rem;
    border-radius: 50%;
    background: #35c257;
    box-shadow: 0 0 6px #35c257;
    animation: online-pulso 1.8s ease-in-out infinite;
}

@keyframes online-pulso {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
    .online-dot { animation: none; }
}

.brand-medieval {
    font-family: var(--fonte-titulo);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bronze-claro) !important;
    text-shadow: 0 1px 3px var(--negro);
}

.brand-crown { color: var(--cobre-claro); }

.navbar-medieval .nav-link {
    font-family: var(--fonte-corpo);
    color: var(--texto);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}

.navbar-medieval .nav-link:hover,
.navbar-medieval .nav-link:focus {
    color: var(--bronze-claro);
}

/* Página atual em destaque */
.navbar-medieval .nav-link.active {
    color: var(--bronze-claro);
    font-weight: 700;
    border-bottom: 2px solid var(--bronze-claro);
}

/* ---------- Botões ---------- */

.btn-ouro, .btn-real, .btn-gray {
    font-family: var(--fonte-corpo);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    border-radius: 0;
    padding: 0.55rem 1.4rem;
}

/* Ação primária — botão CTA extraído do template (9-slice) */
.btn-ouro {
    background: none;
    border: 1px solid transparent;
    border-image: url('../img/ui/btn-cta.png') 20 40 fill / 20px 40px stretch;
    color: #f0e6d8;
    padding: 0.95rem 3rem;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
}

.btn-gray {
    background: none;
    border: 1px solid transparent;
    border-image: url('../img/ui/btn-cta-disabled.png') 20 40 fill / 20px 40px stretch;
    color: #f0e6d8;
    padding: 0.95rem 3rem;
    opacity: 0.8;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
}

.btn-ouro:hover, .btn-ouro:focus {
    background: none;
    border-image-source: url('../img/ui/btn-cta-hover.png');
    color: #ffffff;
}

/* Ação secundária — mesma sprite do template */
.btn-real {
    background: none;
    border: 1px solid transparent;
    border-image: url('../img/ui/btn-cta.png') 20 40 fill / 20px 40px stretch;
    color: #f0e6d8;
    padding: 0.95rem 3rem;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
}

.btn-real:hover, .btn-real:focus {
    background: none;
    border-image-source: url('../img/ui/btn-cta-hover.png');
    color: #ffffff;
}

.btn-lg.btn-ouro, .btn-lg.btn-real {
    padding: 1.1rem 3.4rem;
    font-size: 0.95rem;
}

.btn-sm.btn-ouro, .btn-sm.btn-real {
    padding: 0.7rem 2.4rem;
    font-size: 0.75rem;
}

/* ---------- Efeito de fumaça no hover (apenas botões) ---------- */

.btn-ouro, .btn-real {
    position: relative;
}

.btn-ouro::before, .btn-real::before {
    content: "";
    position: absolute;
    inset: -16px -26px;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(38% 55% at 22% 62%, rgba(230, 199, 90, 0.5), transparent 72%),
        radial-gradient(32% 48% at 52% 38%, rgba(212, 175, 55, 0.4), transparent 70%),
        radial-gradient(42% 58% at 79% 60%, rgba(193, 154, 99, 0.46), transparent 72%);
    filter: blur(9px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-ouro:hover::before, .btn-ouro:focus::before,
.btn-real:hover::before, .btn-real:focus::before {
    opacity: 1;
    animation: fumaca-deriva 1.3s ease-in-out infinite alternate;
}

@keyframes fumaca-deriva {
    from { transform: translateY(3px) scale(0.96); }
    to   { transform: translateY(-7px) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
    .btn-ouro:hover::before, .btn-real:hover::before {
        animation: none;
    }
}

/* ---------- Painel ---------- */

.painel-medieval {
    position: relative;
    background: linear-gradient(180deg, var(--carvao-painel), #131211);
    border: 1px solid rgba(148, 118, 77, 0.5);
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
}

/* Ornamentos de canto em bronze */
.painel-medieval::before,
.painel-medieval::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: var(--bronze);
    border-style: solid;
    pointer-events: none;
}

.painel-medieval::before {
    top: 3px;
    left: 3px;
    border-width: 1px 0 0 1px;
}

.painel-medieval::after {
    bottom: 3px;
    right: 3px;
    border-width: 0 1px 1px 0;
}

.painel-titulo {
    font-size: 1.05rem;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(148, 118, 77, 0.35);
    padding-bottom: 0.6rem;
    margin-bottom: 1rem;
}

/* ---------- Banner (hero) ---------- */

.hero-medieval {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    padding: 6.5rem 0;
    text-align: center;
    background: radial-gradient(ellipse at 50% 30%, #2a2118, var(--carvao-fundo) 70%);
    border-bottom: 1px solid rgba(148, 118, 77, 0.45);
}

/* Vídeo de fundo do banner — ancorado na base da seção */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    z-index: 0;
}

/* Camada preta sobre o vídeo */
.hero-medieval::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(10, 8, 7, 0.75));
    pointer-events: none;
}

.hero-medieval > .container {
    position: relative;
    z-index: 2;
}

.hero-medieval h1 {
    font-size: clamp(2rem, 5.5vw, 3.75rem);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--bronze-claro);
    text-shadow: 0 2px 12px var(--negro);
}

.hero-medieval .hero-sub {
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    color: var(--prata);
    max-width: 640px;
    margin: 1.2rem auto 2.2rem;
}

/* Contagem regressiva do lançamento */
.hero-countdown-wrap {
    margin-top: 10px;
    margin-bottom: 2.4rem;
}

.hero-countdown-label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    color: var(--bronze-claro);
    margin-bottom: 0.85rem;
}

.hero-countdown {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
}

.cd-bloco {
    min-width: 78px;
    padding: 0.7rem 0.5rem;
    background: rgba(13, 13, 13, 0.55);
    border: 1px solid var(--bronze);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

.cd-num {
    display: block;
    font-family: var(--fonte-titulo);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--bronze-claro);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    font-variant-numeric: tabular-nums;
}

.cd-rot {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--prata);
}

@media (max-width: 575.98px) {
    .hero-countdown { gap: 0.4rem; }
    .cd-bloco { min-width: 62px; padding: 0.5rem 0.3rem; }
    .cd-num { font-size: 1.55rem; }
    .cd-rot { font-size: 0.6rem; }
}

.hero-logo-wrap {
    position: relative;
    display: inline-block;
}

/* Fumaça dourada sutil atrás da logo */
.hero-logo-wrap::before {
    content: "";
    position: absolute;
    inset: -12% -8%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 50% at 50% 55%, rgba(212, 175, 55, 0.4), transparent 70%),
        radial-gradient(ellipse 40% 35% at 35% 40%, rgba(206, 127, 65, 0.3), transparent 72%),
        radial-gradient(ellipse 38% 34% at 68% 45%, rgba(230, 199, 90, 0.28), transparent 72%);
    filter: blur(24px);
    animation: logo-fumaca 6s ease-in-out infinite alternate;
}

@keyframes logo-fumaca {
    0%   { opacity: 0.55; transform: translateY(5px) scale(0.96); }
    100% { opacity: 1;    transform: translateY(-6px) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-logo-wrap::before { animation: none; opacity: 0.8; }
}

.hero-logo {
    max-width: min(300px, 70vw);
    height: auto;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.8));
}

.hero-emblema {
    font-size: 3.2rem;
    color: var(--bronze);
    text-shadow: 0 0 28px rgba(206, 127, 65, 0.45);
    line-height: 1;
}

/* ---------- Vídeo ---------- */

.video-moldura {
    border: 1px solid var(--bronze);
    outline: 1px solid rgba(0, 0, 0, 0.8);
    border-radius: 0;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.video-moldura video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Selo "Em Breve" sobre o vídeo do trailer */
.trailer-em-breve {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 13, 13, 0.45);
    pointer-events: none;
}

.trailer-em-breve span {
    font-family: var(--fonte-titulo);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: clamp(1.1rem, 2.8vw, 1.95rem);
    color: var(--bronze-claro);
    padding: 0.4rem 1.5rem;
    border: 2px solid var(--bronze);
    background: rgba(13, 13, 13, 0.55);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* ---------- Cards (notícias / vocações) ---------- */

.card-medieval {
    background: linear-gradient(180deg, var(--carvao-painel), #131211);
    border: 1px solid rgba(148, 118, 77, 0.4);
    border-radius: 0;
    color: var(--texto);
    height: 100%;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.card-medieval:hover {
    transform: translateY(-3px);
    border-color: var(--bronze);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
}

.card-medieval .card-title {
    font-family: var(--fonte-titulo);
    color: var(--bronze-claro);
}

.card-medieval .card-img-top {
    background: linear-gradient(135deg, #221d17, var(--carvao));
    border-bottom: 1px solid rgba(148, 118, 77, 0.35);
    object-fit: cover;
    height: 170px;
    image-rendering: pixelated;
}

.news-date {
    font-size: 0.75rem;
    color: var(--prata);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

/* Imagem na lista de notícias (lateral) — altura fixa limita o card */
.news-list-img {
    width: 100%;
    height: 100%;
    max-height: 200px;
    object-fit: cover;
    border-right: 1px solid rgba(148, 118, 77, 0.35);
}

/* Cada linha de notícia limitada à altura da imagem (overflow hidden evita scrollbar no hover) */
.news-list-card .row {
    max-height: 200px;
    overflow: hidden;
}

/* Banner da notícia (página do artigo) */
.news-banner {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border: 1px solid rgba(148, 118, 77, 0.45);
}

@media (max-width: 575.98px) {
    .news-list-img {
        height: 180px;
        border-right: 0;
        border-bottom: 1px solid rgba(148, 118, 77, 0.35);
    }
    /* Empilhado: sem limite de altura para não cortar o texto */
    .news-list-card .row {
        max-height: none;
        overflow: visible;
    }
}

/* Miniatura de vocação (seleção de personagem) */
.vocacao-img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    object-position: center top;
    border: 1px solid rgba(217, 212, 203, 0.3);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
}

.vocacao-placeholder {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    border: 1px solid var(--bronze);
    border-radius: 0;
    background: radial-gradient(circle, #221d17, var(--carvao-fundo));
    color: var(--bronze-claro);
    margin: 0 auto;
}

.badge-especialidade {
    background: transparent;
    border: 1px solid var(--bronze);
    color: var(--texto);
    font-weight: 400;
    font-family: var(--fonte-corpo);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ---------- Formulários ---------- */

.form-control, .form-select {
    background-color: var(--carvao-fundo);
    border: 1px solid #3a332b;
    color: var(--texto);
}

.form-control:focus, .form-select:focus {
    background-color: var(--carvao-fundo);
    border-color: var(--bronze);
    box-shadow: 0 0 0 0.2rem rgba(148, 118, 77, 0.2);
    color: var(--texto);
}

.form-control::placeholder { color: #6e675e; }

.form-label {
    font-family: var(--fonte-corpo);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--bronze-claro);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-text { color: var(--prata); }

.invalid-feedback { display: block; }

.form-check-input {
    background-color: var(--carvao-fundo);
    border-color: var(--bronze);
}

.form-check-input:checked {
    background-color: var(--vermelho);
    border-color: var(--vermelho-escuro);
}

/* Cartão de seleção de vocação (radio) */
.vocacao-radio { display: none; }

.vocacao-radio-card {
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(148, 118, 77, 0.35);
    border-radius: 0;
    background: var(--carvao-fundo);
    padding: 1rem;
    text-align: center;
    height: 100%;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.3s ease;
}

.vocacao-radio-card:hover { border-color: var(--bronze); }

/* Aura de fumaça dourada atrás do card selecionado */
.vocacao-radio-card::before {
    content: "";
    position: absolute;
    inset: -22px -26px;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(40% 55% at 20% 68%, rgba(230, 199, 90, 0.65), transparent 70%),
        radial-gradient(34% 50% at 52% 32%, rgba(212, 175, 55, 0.55), transparent 68%),
        radial-gradient(46% 58% at 82% 64%, rgba(193, 154, 99, 0.6), transparent 70%);
    filter: blur(13px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.vocacao-radio:checked + .vocacao-radio-card {
    border-color: var(--cobre);
    background: linear-gradient(180deg, #2a2214, var(--carvao-fundo));
    box-shadow: 0 0 26px rgba(212, 175, 55, 0.55), inset 0 0 14px rgba(206, 127, 65, 0.25);
}

.vocacao-radio:checked + .vocacao-radio-card::before {
    opacity: 1;
    animation: fumaca-deriva 1.6s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
    .vocacao-radio:checked + .vocacao-radio-card::before { animation: none; }
}

/* ---------- Tabelas ---------- */

.table-medieval {
    --bs-table-bg: transparent;
    --bs-table-color: var(--texto);
    --bs-table-border-color: rgba(148, 118, 77, 0.3);
    --bs-table-hover-bg: rgba(148, 118, 77, 0.1);
    --bs-table-hover-color: var(--texto);
}

.table-medieval thead th {
    font-family: var(--fonte-corpo);
    color: var(--bronze-claro);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    border-bottom: 1px solid var(--bronze);
}

.badge-online {
    background: #1f7a33;
    border: 1px solid #35c257;
}

.badge-offline {
    background: #3a3a3a;
    border: 1px solid #5c5c5c;
}

/* ---------- Alertas ---------- */

.alert-medieval {
    border-width: 1px;
    border-style: solid;
    font-family: var(--fonte-corpo);
}

.alert-success.alert-medieval {
    background: #14291a;
    border-color: #2e8b46;
    color: #c9f0d2;
}

.alert-danger.alert-medieval {
    background: #2d1310;
    border-color: var(--vermelho);
    color: #f0cdc6;
}

.alert-warning.alert-medieval {
    background: #2a2212;
    border-color: var(--bronze);
    color: #e8dcc0;
}

/* ---------- Toast (mensagens do sistema) ---------- */

.toast-medieval {
    background: var(--carvao-painel);
    border: 1px solid var(--bronze);
    color: var(--texto);
    font-family: var(--fonte-corpo);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.65);
}

/* Fade suave ao entrar e ao ser removido */
.toast-medieval.fade {
    transition: opacity 0.5s ease;
}

.toast-medieval .bi {
    font-size: 1.1rem;
}

.toast-success { border-left: 3px solid #2e8b46; }
.toast-success .bi { color: #35c257; }

.toast-danger { border-left: 3px solid var(--vermelho); }
.toast-danger .bi { color: var(--vermelho-claro); }

.toast-warning { border-left: 3px solid var(--bronze-claro); }
.toast-warning .bi { color: var(--bronze-claro); }

/* ---------- Footer ---------- */

.footer-medieval {
    background: var(--carvao-fundo);
    border-top: 1px solid rgba(148, 118, 77, 0.45);
    margin-top: 3rem;
}

.footer-brand { font-size: 1.1rem; }

/* ---------- Módulo de vocação (estilo "Choose your weapon") ---------- */

.voc-module, .card-module {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    min-height: 480px;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 40%, #2a2118, #121110 75%);
    border: 1px solid rgba(217, 212, 203, 0.22);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.6);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.voc-module:hover {
    border-color: rgba(217, 212, 203, 0.45);
}

.card-module:hover {
    transform: translateY(-3px);
    border-color: rgba(217, 212, 203, 0.45);
}

/* Camada de escurecimento — some no hover */
.voc-module::before, .card-module::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(8, 6, 5, 0.55);
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.voc-module:hover::before, .card-module:hover::before {
    opacity: 0;
}

/* Arte ocupa o módulo inteiro */
.voc-module-bg, .card-module-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.25s ease, filter 0.2s ease;
}

.card-module:hover .voc-module-bg {
    transform: scale(1.04);
}

/* No hover da vocação a imagem escurece rapidamente enquanto o vídeo entra */
.voc-module:hover .voc-module-bg,
.voc-ficha-img:hover img {
    filter: brightness(0.3);
}

.voc-ficha-img img {
    transition: filter 0.2s ease;
}

/* Vídeo da vocação: revela no hover sobre a imagem */
.voc-video {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.voc-module:hover .voc-video,
.voc-ficha-img:hover .voc-video {
    opacity: 1;
}

.voc-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Variante alta (página de vocações) */
.voc-module-lg {
    min-height: 740px;
}

/* Rodapé do módulo: gradiente ancorado na base do painel (texto + botão) */
.voc-module-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(36, 30, 27, 0), rgba(36, 30, 27, 0.94) 22%);
}

.voc-module-text {
    padding: 2rem 1.1rem 1.2rem;
}

/* Botão com respiro das bordas do módulo */
.voc-module-bottom > .btn {
    margin: 0 0.85rem 0.85rem;
}

.voc-module-text h3 {
    font-family: var(--fonte-titulo);
    color: #ece1cd;
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.voc-module-text .voc-role {
    color: #d9cfc2;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.voc-module-text p {
    color: #cfc6bb;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.voc-module-text .badge-especialidade {
    border-color: rgba(236, 225, 205, 0.45);
    color: #ece1cd;
}

/* ---------- Ficha de vocação (página de vocações) ---------- */

.voc-ficha {
    background: linear-gradient(180deg, var(--carvao-painel), #131211);
    border: 1px solid rgba(148, 118, 77, 0.45);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.voc-ficha-img {
    position: relative;
    min-height: 300px;
}

.voc-ficha-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.voc-ficha-info {
    padding: 1.6rem 1.8rem;
}

/* Barras de atributo (1 a 3) */
.barra-atributo {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.5rem;
}

.barra-atributo .rotulo {
    width: 96px;
    flex-shrink: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bronze-claro);
}

.barra-seg {
    width: 36px;
    height: 10px;
    background: rgba(148, 118, 77, 0.15);
    border: 1px solid rgba(148, 118, 77, 0.4);
}

.barra-seg.cheia {
    background: linear-gradient(180deg, var(--bronze-claro), var(--bronze));
    border-color: var(--bronze);
    box-shadow: 0 0 6px rgba(193, 154, 99, 0.35);
}

/* Slots de habilidade */
.hab-slot {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background: radial-gradient(circle, #221d17, var(--carvao-fundo));
    border: 1px solid var(--bronze);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7);
    cursor: help;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hab-slot:hover {
    border-color: var(--cobre);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7), 0 0 10px rgba(206, 127, 65, 0.4);
}

.hab-slot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hab-interroga {
    font-family: var(--fonte-titulo);
    font-size: 1.5rem;
    color: var(--bronze);
}

/* Selo "?" indicando tooltip — só em dispositivos de toque (sem hover) */
.hab-tooltip-hint {
    display: none;
    position: absolute;
    top: -7px;
    right: -7px;
    width: 19px;
    height: 19px;
    z-index: 3;
    align-items: center;
    justify-content: center;
    background: var(--bronze);
    border: 1px solid var(--bronze-claro);
    color: var(--carvao-fundo);
    font-family: var(--fonte-corpo);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

@media (hover: none) {
    .hab-tooltip-hint { display: flex; }
}

/* Ficha de vocação no mobile: nome, atributos e habilidades centralizados */
@media (max-width: 991.98px) {
    .voc-ficha-info h2,
    .voc-ficha-info .voc-role,
    .voc-ficha-info h3 {
        text-align: center;
    }

    .barra-atributo,
    .voc-habilidades {
        justify-content: center;
    }

    .voc-ficha-info .btn {
        width: 100%;
    }
}

/* Tooltip no tema */
.tooltip-inner {
    background: var(--carvao-painel);
    border: 1px solid var(--bronze);
    border-radius: 0;
    color: var(--texto);
    font-family: var(--fonte-corpo);
    font-size: 0.8rem;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before { border-top-color: var(--bronze); }
.tooltip.bs-tooltip-bottom .tooltip-arrow::before { border-bottom-color: var(--bronze); }
.tooltip.bs-tooltip-start .tooltip-arrow::before { border-left-color: var(--bronze); }
.tooltip.bs-tooltip-end .tooltip-arrow::before { border-right-color: var(--bronze); }

/* ---------- Página de informações ---------- */

.info-rate {
    font-family: var(--fonte-titulo);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--bronze-claro);
    line-height: 1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

/* ---------- Seções da home ---------- */

.sobre-icone {
    font-size: 2rem;
    color: var(--bronze);
    line-height: 1;
}

.texto-destaque {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    color: var(--prata);
    font-size: 1.02rem;
    line-height: 1.8;
}

/* ---------- Responsivo ---------- */

@media (max-width: 991.98px) {
    .navbar-medieval .btn { margin-top: 0.5rem; }
}

@media (max-width: 575.98px) {
    .hero-medieval { padding: 4rem 0; }
    .painel-medieval { padding: 1rem; }
    .btn-lg.btn-ouro, .btn-lg.btn-real { width: 100%; }
    .secao { padding: 3rem 0; }
}
