/* Importação das fontes do jogo */
@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&family=Poppins:wght@500;600;700&display=swap');

:root {
    --wood-border: #2a1a0c;
    --ad-height: 60px;
    --nav-height: 130px;
    --glow-color: rgba(255, 0, 0, 1.0);
    --title-glow: #FFD700;
    --title-shadow: #8B4513;
    --btn-gold-glow: rgba(255, 255, 255, 0.7);
    --btn-gold-shadow: rgba(255, 255, 255, 0.5);

    /* Cores Premium (Ouro e Bronze) */
    --gold-light: #fef08a;
    --gold-dark: #a16207;
    --wood-depth: #2a1a0c;
}

/* ...rest of file matches existing until status-group... */



/* ============================================
   CONTAINER & LAYOUT
============================================ */

/* Force clean state for the Home Screen container */
#main-menu.ui-screen {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#screen-home {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;

    /* Background & Border (Matches Model #game-container) */
    background-image: url('../../../assets/images/home/fundo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border: 10px solid var(--wood-border);
    border-radius: 20px;
    box-sizing: border-box;

    /* Ensure z-index stack is correct */
    z-index: 10;
}

/* --- TOPO (HEADER) --- */
.top-nav {
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 100;
}

.btn-top {
    background: none;
    border: none;
    cursor: pointer;
    width: 65px;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Reset any global button styles */
    margin: 0;
    padding: 0;
}

.btn-top img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 5px var(--btn-gold-glow)) drop-shadow(0 0 10px var(--btn-gold-shadow));
}

.btn-top:hover img {
    transform: scale(1.2);
    filter: drop-shadow(0 0 12px var(--glow-color)) drop-shadow(0 0 25px var(--glow-color));
}

.btn-top:active img {
    transform: scale(0.95);
    filter: drop-shadow(0 0 15px var(--glow-color)) drop-shadow(0 0 30px var(--glow-color));
}

/* --- LOGO CENTRAL --- */
.home-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 250px;
    /* Model uses this to push logo up */
    pointer-events: none;
    /* Let clicks pass if needed */
}

.game-logo-img {
    width: 90%;
    max-width: 320px;
    filter:
        drop-shadow(2px 2px 0px var(--title-shadow)) drop-shadow(-2px -2px 0px var(--title-shadow)) drop-shadow(0 0 15px var(--title-glow));
}

/* --- BOTÃO JOGAR --- */
.btn-play-big {
    position: absolute;
    bottom: 220px;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: none;
    cursor: pointer;
    width: 60%;
    max-width: 200px;
    padding: 0;
    margin: 0;
    line-height: 0;
    z-index: 60;
}

.btn-play-big img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 10px var(--btn-gold-glow)) drop-shadow(0 0 20px var(--btn-gold-shadow));
}

.btn-play-big:hover img {
    transform: scale(1.08);
    filter: drop-shadow(0 0 15px var(--glow-color)) drop-shadow(0 0 35px var(--glow-color));
}

.btn-play-big:active img {
    transform: scale(0.95);
    filter: drop-shadow(0 0 18px var(--glow-color)) drop-shadow(0 0 40px var(--glow-color));
}

/* --- RODAPÉ (FOOTER) --- */
.footer-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    z-index: 50;
    padding-bottom: 0;
    /* Remove padding to stick to bottom like model */
}


.custom-nav-bar {
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-evenly;
    gap: 8px;
    align-items: flex-start;
    padding-top: 42px;

    /* Fundo transparente - sem imagem */
    background: transparent;

    padding-left: 10px;
    padding-right: 10px;
}

.nav-item {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: transform 0.2s;
    /* Reset */
    margin: 0;
    padding: 0;
    gap: 3px;
    flex: 1;
    max-width: 80px;
}

.nav-label {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.65rem, 2.5vw, 0.85rem);
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow:
        1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000,
        1px 1px 0 #000, -1px -1px 0 #000,
        0 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.3px;
    line-height: 1;
    margin-top: 4px;
    white-space: nowrap;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Botão Ranking (Maior) */
.nav-item.ranking-btn {
    margin-top: 8px;
    /* Desce o botão para alinhar com os outros */
}

.nav-item.ranking-btn img {
    /* Ranking (Normal) */
    width: clamp(55px, 14vw, 70px);
    height: auto;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 8px var(--btn-gold-glow)) drop-shadow(0 0 15px var(--btn-gold-shadow));
}

/* Botões Menores (Loja, Book, Missão) */
.nav-item.small-btn img {
    /* Loja, Book, Missão (Reduzidos) */
    width: clamp(48px, 12vw, 60px);
    height: auto;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 8px var(--btn-gold-glow)) drop-shadow(0 0 15px var(--btn-gold-shadow));
}

/* Botão Book - ajuste fino de alinhamento */
.nav-item.book-btn {
    margin-top: -4px;
    /* Sobe um pouco para alinhar */
}

.nav-item:hover img {
    transform: scale(1.2);
    filter: drop-shadow(0 0 12px var(--glow-color)) drop-shadow(0 0 30px var(--glow-color));
}

.nav-item:active img {
    transform: scale(0.95);
    filter: drop-shadow(0 0 15px var(--glow-color)) drop-shadow(0 0 35px var(--glow-color));
}

.ad-placeholder {
    width: 100%;
    height: var(--ad-height);
    background: #000;
    /* Reverted to black as per model */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #444;
    font-size: 10px;
    border-top: 1px solid #222;
}

/* --- STATUS GROUP (XP & COINS) --- */
.status-group {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.status-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    width: 110px;
}

.status-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

/* O Designer Tecnológico do Texto */
.status-value {
    position: relative;
    z-index: 2;
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.2rem;
    padding-left: 20px;
    /* Ajuste para centralizar no espaço vazio da imagem */

    /* Tecnologia 1: Gradiente de Ouro */
    background: linear-gradient(to bottom,
            var(--gold-light) 0%,
            var(--gold-dark) 50%,
            var(--gold-light) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Tecnologia 2: Efeito de Entalhe e Sombra */
    filter: drop-shadow(1px 1px 0px var(--wood-depth)) drop-shadow(-1px -1px 0px rgba(255, 255, 255, 0.2));

    /* Tecnologia 3: Animação de Brilho Dinâmico (Shimmer) */
    animation: textShimmer 3s infinite linear;
}

/* Animação que faz o brilho "correr" pela letra */
@keyframes textShimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Remove old currency overlay styles */
.currency-overlay,
.currency-badge {
    display: none;
}