/* =======================================================
   RESET E ESTRUTURA GERAL (SEU CÓDIGO ORIGINAL)
   ======================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Adicionado para evitar quebra de layout */
}

body {
    background-image: url("../image/background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

html {
    height: 100%;
}

#fit-root {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Película escura sobre o fundo */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1; 
    pointer-events: none;
}

body > * {
    position: relative;
    z-index: 2;
}

/* =======================================================
   FONTES
   ======================================================= */
@font-face {
    font-family: 'Steelfish-Eb';
    src: url('../fonts/info-server/Steelfish_Eb.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'norwester';
    src: url('../fonts/contador/norwester.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat-ExtraBold';
    src: url("../fonts/Montserrat-ExtraBold.ttf") format('truetype');
}

@font-face {
    font-family: 'Montserrat-SemiBold';
    src: url("../fonts/Montserrat-SemiBold.ttf") format('truetype');
}

/* =======================================================
   ESTILOS GERAIS
   ======================================================= */
.server_title {
    font-family: Cinzel, serif;
    font-size: 1.4em;
    color: #f0f0f0;
    margin: auto;
    margin-top: 30px;
    text-shadow: 0 0 3px #fff, 0 0 2px #ff0
}

.container.text-center {
    display: flex;
    justify-content: center;
    /*align-items: flex-end; */
    flex-wrap: wrap;
    gap: clamp(30px, 1vw, 60px);
    padding-top: 0; 
    margin-top: -140px;
    padding-bottom: 50px;
    width: 100%;
}

/* =======================================================
   CONTAINER DO SERVIDOR (A CORREÇÃO PRINCIPAL)
   ======================================================= */
.server-container {
    position: relative;
    width: 100%;
    /* O aspect-ratio garante que a div tenha SEMPRE o tamanho exato da imagem de fundo */
    aspect-ratio: 1026 / 1577; 
    
    background-size: 100% 100%; /* Força a imagem a preencher a caixa exata */
    background-position: center top;
    background-repeat: no-repeat;
    
    margin: 0;
    color: white;
    display: block;
    
    /* Tamanhos do card */
    flex: 0 1 380px; /* Base 380px, mas pode encolher */
    min-width: 280px; 
    max-width: 380px;

    transition: background-image 0.25s ease-out, transform 0.2s ease;
}

.aurera-01:hover {
    background-image: url("../image/Widgets_01/widget_us_hover.png") !important;
}

.aurera-02:hover {
    background-image: url("../image/Widgets_01/widget_destaque_hover.png") !important;
}

/* =======================================================
   ELEMENTOS INTERNOS (POSICIONADOS COM %)
   ======================================================= */

/* 1. Título (H1) - Fixado com % para não sambar */
h1.sv {
    position: absolute;
    width: 100%;
    text-align: center;
    margin: 0;
    top: 33%; 
    font-size: clamp(1.5rem, 8vw, 2.2rem); 
    font-family: 'norwester';
    color: #ffbd0c;
    z-index: 5;
    text-shadow: 2px 2px 0px #000; 
}

/* 2. Banner Destaque (Starting Soon) */
.sv-destaque {
    position: absolute;
    /* Ajustado para ficar logo acima do topo do card */
    top: -11%; 
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%; 
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top center;
    pointer-events: none;
    z-index: 6; 
    animation: svPulse 4s ease-in-out infinite;
}

@keyframes svPulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
    50% { transform: translateX(-50%) scale(1.02); opacity: 0.9; }
}

/* 3. Informações (Players, Status) */
.server-info {
    position: absolute;
    top: 58%; 
    left: 60%;
    transform: translate(-50%, -50%);
    width: 78%;
    text-align: left;
    font-size: clamp(14px, 4.5vw, 22px);
    line-height: 1.3;
}

.server-info p {
    margin: 2px 0;
    font-family: 'norwester', sans-serif;
    white-space: nowrap;
}

.aurera-01 .server-info p, 
.aurera-02 .server-info p {
    color: #f46c01;
    text-shadow: -1px -1px 0 #011901, 1px -1px 0 #011901, -1px 1px 0 #011901, 1px 1px 0 #011901;
}

.aurera-01 .server-info span,
.aurera-02 .server-info span {
    color: #ffffff;
}

/* 4. Botão de Play */
.button-play {
    position: absolute;
    left: 50%;
    bottom: 16%;
    transform: translateX(-50%);
    width: 59%;
    z-index: 10;
    display: flex;
    justify-content: center;
    pointer-events: auto;
}

.btn-swap {
    position: relative;
    display: inline-block;
    width: 100%;
    transition: transform .2s ease;
}
.btn-swap:hover { transform: scale(1.02); }

.btn-img { width: 100%; display: block; }
.btn-img.hover {
    position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .18s ease;
}
.btn-swap:hover .btn-img.hover { opacity: 1; }

.btn-label {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 65%; pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.8));
}

/* 5. Contador (Timer) */
.contador-bg {
    position: absolute;
    top: -17%; 
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contador-img { width: 100%; display: block;}

.contador {
    position: absolute;
    top: 55%; 
    left: 48%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12%; 
    
    font-family: "norwester", sans-serif;
    font-size: clamp(1rem, 5vw, 1.8rem); 
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.contador span {
    display: inline-block;
    min-width: 20px;
    text-align: center;
}

/* =======================================================
   VÍDEO
   ======================================================= */
.server-video {
    position: relative;
    width: 100%;
    max-width: 500px; /* Limite visual */
    flex: 1 1 340px;
    margin: 0 auto;
    transition: transform .35s ease-out, box-shadow .35s ease-out;
    transform-origin: center center;
    will-change: transform;
    display: flex;
    align-items: center;
}

.server-video video {
    width: 100%;
    height: 67%;
    margin-top: 89px;
    object-fit: cover;
    border-radius: 4px;
    border: 3px solid #b4411a;
    box-shadow: 0 0 12px rgba(255, 80, 0, 0.45), 0 0 22px rgba(255, 0, 0, 0.35);
}

@media (hover: hover) and (pointer: fine) {
    .server-video:hover {
        transform: scale(1.35);
        z-index: 15;
    }
    .server-video:hover video {
        filter: brightness(1.07) contrast(1.05);
        box-shadow: 0 0 28px rgba(255, 120, 40, 0.7), 0 0 60px rgba(0, 0, 0, 0.85);
    }
}

/* =======================================================
   RODAPÉ E PARTICULAS
   ======================================================= */
footer {
    font-family: 'Montserrat-SemiBold';
    font-size: 14px;
    background: #00000038;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
}

footer img { width: 40px; margin: 0 20px; transition: transform 0.3s; }
footer img:hover { transform: scale(1.1); }
.social-icon { width: 30px; margin: 0 20px; }
.margin-footer { margin-top: 10px; display: inline-block; }

.total_on {
    font-family: 'norwester';
    color: #ffffff;
    margin-top: 25px;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    display: inline-block;
}

.embers-container {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 2; overflow: hidden;
}
.ember-wrapper { position: absolute; bottom: 0; animation: floatUp 10s ease-out forwards; }
.ember {
    width: 8px; height: 8px;
    background: radial-gradient(circle, rgba(255, 200, 80, 0.9) 0%, rgba(255, 50, 0, 0.3) 50%, transparent 100%);
    border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%;
    box-shadow: 0 0 4px rgba(255, 140, 20, 0.8), 0 0 12px rgba(255, 80, 0, 0.4);
    filter: blur(0.3px); opacity: 0.85;
    animation: flicker 2.5s ease-in-out infinite alternate;
}

@keyframes floatUp {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100vh); opacity: 0; }
}
@keyframes flicker {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
    100% { opacity: 0.9; transform: scale(1); }
}

/* =======================================================
   MEDIA QUERIES - RESPONSIVIDADE (Simplificado)
   ======================================================= */

/* Desktop Grande */
@media (min-width: 1280px) {
    .container.text-center { flex-wrap: nowrap; }
}

/* Tablets e Desktops Menores */
@media (max-width: 1280px) {
    .container.text-center { gap: 20px; margin-top: 34px; }
    .server-video { order: 2; margin-top: 20px;}
    .total_on {display: none;}
}

/* =======================================================
   CORREÇÃO MOBILE (FINAL - SEM BURACOS)
   ======================================================= */
@media (max-width: 980px) {
    
    .container.text-center {
        flex-direction: column;
        align-items: center;
        margin-top: -60px; 
        gap: 25px; 
        padding-bottom: 20px;
    }

    .server-video {
        width: 100%;
        order: -1; 
        margin-bottom: 0; /* Garante que o vídeo não empurre nada pra baixo */
    }

    .server-video video {
        width: 100%;
        height: 90%;
    }

    .server-container {
        width: 100%;
        max-width: 420px;
        position: relative;
        top: 0; 
        margin: 0 auto;
        margin-bottom: 10px;
    }
    
    /* --- AJUSTE 1: TIRA O BURACO DO VÍDEO --- */
    /* Puxa o primeiro card (Eternia) para cima, colando no vídeo */
    .aurera-01 {
        margin-top: -30px; /* Se ainda tiver buraco, aumente para -40px ou -50px */
    }

    /* --- AJUSTE 2: EMPURRA O SEGUNDO CARD --- */
    /* Mantém o segundo card (Telaria) afastado, como você pediu antes */
    .aurera-02 {
        margin-top: 100px; 
    }

    .button-play {
        bottom: 16%;
    }
}

/* Telas muito pequenas */
@media (max-width: 400px) {
    .server-container {
        max-width: 320px;
    }
    .container.text-center {
        margin-top: -80px;
    }
}



