/* ====== RESET BÁSICO ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ====== FUNDO E FONTE ====== */
body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #bbb7af, #ccc5c3);
    color: black;
    text-align: center;
    padding: 40px;
}

/* ====== TEXTO PRINCIPAL ====== */
#ChicoBento {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #542d00;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.4);
}

/* ====== PARÁGRAFOS ====== */
p {
    font-size: 1.2rem;
    margin: 10px 0;
}

#recursosprod {
    flex-direction: column;
}

/* ====== BOTÃO ====== */
#Aperta {
    border: none;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    width: 100px;
    height: 100px;
    -webkit-tap-highlight-color: transparent;
}

#Aperta:hover {
    transform: scale(1.30);
}

#Aperta:active {
    transform: scale(0.75);
}

/* ====== ANIMAÇÃO SUAVE ====== */
body {
    animation: fadeIn 0.7s ease forwards;
}

.img-esquerda {
    position: fixed;
    left: 20px;
    /* distância da lateral esquerda */
    top: 30px;
    /* distância do topo */
}

.img-direita {
    position: fixed;
    right: 20px;
    /* distância da lateral direita */
    top: 30px;
}


.config-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    padding: 20px;

    background-color: #ffffff;
    border: 2px solid #000000;
    border-radius: 10px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1000;
}

.config-window h3 {
    text-align: center;
    margin-bottom: 15px;
}

.config-window .row,
.config-window .row-full {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 12px;
}

.config-window label {
    margin-bottom: 4px;
}

.config-window input[type="range"] {
    width: 100%;
}

/* Deixar botões alinhados */
.config-window button,
.config-window input[type="button"] {
    padding: 10px 15px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid #222;
    background-color: #f0f0f0;
}

.config-window input[type="file"] {
    margin-bottom: 6px;
}

#upgradeContainer {
    margin: 20px auto;
    padding: 20px;
    width: 80%;
    max-width: 900px;

    background: #f5f1e8;
    border: 3px solid #8b6f4f;
    border-radius: 15px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);

    display: flex;
    justify-content: center;
}

#listaupgrades {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.conteudo {
    display: flex;
    flex-direction: column;
    /* elementos principais empilhados verticalmente */
    align-items: center;
    text-align: center;
}

/* topo com as duas divs */
.topo {
    display: flex;
    flex-direction: row;
    gap: 30px;
    /* distância entre as duas */
    justify-content: center;
    align-items: center;
}

#rosasdiv {
    display: none;
}

/* ===================== */
/* Container geral (grid) */
/* ===================== */
#listaitens {
    display: grid;
    grid-template-columns: repeat(2, auto);
    /* 2 colunas no desktop */
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
    /* Centraliza o grid */
    padding: 0 10px;
    /* evita que encoste na borda da tela */
}

/* Parágrafos dentro do container */
#listaitens p {
    font-size: 14px;
    margin: 0;
}

/* Cada item */
#listaitens .item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    /* evita que itens quebrem fora do container */
}

/* ===================== */
/* Botões */
/* ===================== */
#listaitens button {
    padding: 10px 15px;
    background-color: #ffe8b3;
    border: 2px solid #8b6f4f;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 12px;
    width: 200px;
    text-align: center;
}

#listaitens button:hover {
    background-color: #fff3cc;
    transform: scale(1.04);
}

#listaitens button:active {
    transform: scale(0.95);
}

/* Esconde item inicial */
#listaitens #CBMABLOCK {
    display: none;
}

#listaitens #MONICABLOCK {
    display: none;
}
#listaitens #CEBOLINHABLOCK {
    display: none;
}
#listaitens #SANSAOBLOCK {
    display: none;
}


/* ===================== */
/* Descrições pequenas */
/* ===================== */
.descricaop {
    font-size: 10px;
    color: #794a14;
}

/* ===================== */
/* Media Queries (Celular) */
/* ===================== */
@media (max-width: 600px) {
    #listaitens {
        grid-template-columns: 1fr;
        /* 1 coluna no celular */
        gap: 15px;
    }

    #listaitens button {
        width: 100%;
        /* botão ocupa toda largura */
        font-size: 14px;
        /* mais legível no celular */
        padding: 12px 15px;
    }

    .descricaop {
        font-size: 12px;
    }

    #listaitens .item {
        flex-direction: column;
        /* itens empilham no celular */
        align-items: stretch;
    }
    #roleta {
    width: 270px;
    height: 270px;
    }
}

@media (max-width: 1000px) {
    #roleta {
    width: 350px;
    height: 350px;
    }
}

#listaupgrades button {
    padding: 10px 15px;
    background-color: #ffe8b3;
    border: 2px solid #8b6f4f;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
    width: 250px;
    position: relative;
    /* necessário para o tooltip */
}

#listaupgrades button:hover {
    background-color: #fff3cc;
    transform: scale(1.04);
}

#listaupgrades button:active {
    transform: scale(0.95);
}

/* Tooltip */
#listaupgrades button::after {
    content: attr(data-tooltip);
    /* pega o texto do data-tooltip */
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    font-size: 12px;
    z-index: 1000;
}

/* Triângulo do tooltip */
#listaupgrades button::before {
    content: "";
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Mostrar tooltip ao passar o mouse */
#listaupgrades button:hover::after,
#listaupgrades button:hover::before {
    opacity: 1;
}

/* Botão MAX fixo no topo direito do container */
.max-button {
    position: absolute;
    top: 5px;
    right: 10px;
    background-color: #ffe8b3;
    border: 2px solid #aa8800;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s, background-color 0.2s;
}

.max-button:hover {
    background-color: #fff3cc;
    transform: scale(1.05);
}

#Upgrade1 {
    display: none;
}

#Upgrade2 {
    display: none;
}

#Upgrade3 {
    display: none;
}

#Upgrade4 {
    display: none;
}

#Upgrade5 {
    display: none;
}

#Upgrade6 {
    display: none;
}

#Upgrade7 {
    display: none;
}

#Upgrade8 {
    display: none;
}

#Upgrade9 {
    display: none;
}

#Upgrade10 {
    display: none;
}

#Upgrade11 {
    display: none;
}

#Upgrade12 {
    display: none;
}
#Upgrade13 {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    /* escondida inicialmente */
    width: 250px;
    height: 100%;
    background: linear-gradient(135deg, #c4b8a0, #97908e);
    color: rgb(245, 242, 242);
    padding: 20px;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.4);
    transition: left 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Botões dentro da sidebar */
.sidebar button {
    padding: 10px;
    border: none;
    background: #444;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.sidebar button:hover {
    background: #666;
}

/* Botão de abrir/fechar */
.sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    padding: 10px 14px;
    font-size: 20px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.sidebar-toggle:hover {
    background: #444;
}

#multcompra {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    padding: 10px 14px;
    font-size: 20px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

#multcompra:hover {
    transform: scale(1.25);
}

/* Sidebar aberta */
.sidebar.open {
    left: 0;
}

.pagina {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #bbb7af, #ccc5c3);
    color: black;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    z-index: 2000;
}

.pagina.show {
    display: flex;
}

/* Título principal */
#paginaconquistas h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #222;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Subtítulo mostrando progresso */
#paginaconquistas h2 {
    font-size: 1.2em;
    margin-bottom: 25px;
    color: #333;
}

/* Container dos botões de conquistas */
#conquistas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
    max-width: 700px;
    margin-bottom: 30px;
}

/* Botões de conquistas */
#conquistas button {
    flex: 1 1 140px;
    /* adaptável ao tamanho do container */
    padding: 12px 15px;
    background-color: #fff4cc;
    /* dourado claro */
    border: 2px solid #d1a84a;
    /* dourado médio */
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Hover nos botões */
#conquistas button:hover {
    background-color: #ffeb99;
    /* dourado suave */
    transform: scale(1.05);
}

/* Botão de voltar */
#fecharconquistas {
    padding: 12px 25px;
    background-color: #b8860b;
    /* dourado forte / marrom dourado */
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

#fecharconquistas:hover {
    background-color: #c09338;
    /* dourado mais vivo */
    transform: scale(1.05);
}

#cqt1 {
    display: none;
}

#cqt2 {
    display: none;
}

#cqt3 {
    display: none;
}

#cqt4 {
    display: none;
}

#cqt5 {
    display: none;
}

#cqt6 {
    display: none;
}

#cqt7 {
    display: none;
}

#cqt8 {
    display: none;
}

#cqt9 {
    display: none;
}

#cqt10 {
    display: none;
}

#cqt11 {
    display: none;
}

#cqt12 {
    display: none;
}

#cqt13 {
    display: none;
}

#cqt14 {
    display: none;
}

#cqt15 {
    display: none;
}

.conquista-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    font-size: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, bottom 0.4s ease;
    z-index: 2000;
}

.conquista-popup.show {
    opacity: 1;
    bottom: 40px;
    /* sobe um pouco */
}


/* Fundo escuro semi-transparente */
#customAlertOverlay {
    display: none;
    /* começa escondido */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Caixa do alerta */
#customAlertBox {
    background-color: #fff8dc;
    padding: 20px 30px;
    border: 2px solid #8b6f4f;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    font-family: sans-serif;
}

#customAlertBox button {
    margin-top: 15px;
    padding: 8px 15px;
    background-color: #ffe8b3;
    border: 2px solid #8b6f4f;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

#customAlertBox button:hover {
    background-color: #ffd966;
}

#ascend {
    display: none;
}

/* Título principal */
#paginaascension h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #222;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Subtítulo mostrando progresso */
#paginaascension h2 {
    font-size: 1.2em;
    margin-bottom: 25px;
    color: #333;
}

/* Container dos bônus da ascensão */
#ascendbonus {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
    max-width: 700px;
    margin-bottom: 30px;
}

/* Botões de bônus */
#ascendbonus button {
    flex: 1 1 140px;
    padding: 12px 15px;
    background-color: #d9ecff;
    /* azul muito claro */
    border: 2px solid #5b8bbd;
    /* azul médio */
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Hover nos botões */
#ascendbonus button:hover {
    background-color: #b3dbff;
    /* azul claro */
    transform: scale(1.05);
}

/* Botão de voltar */
#fecharascension {
    padding: 12px 25px;
    background-color: #5b8bbd;
    /* azul médio */
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

#fecharascension:hover {
    background-color: #4a78a5;
    /* azul mais escuro */
    transform: scale(1.05);
}

#stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 700px;
    margin-bottom: 30px;
    align-items: center;
}

#stats button {
    width: 100%;
    padding: 12px 15px;
    background-color: #e6fff3;
    /* menta bem clara */
    border: 2px solid #5cbf99;
    /* verde médio */
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Hover nos botões */
#stats button:hover {
    background-color: #ccffe7;
    /* menta suave */
    transform: scale(1.05);
}

/* Botão de voltar */
#fecharstats {
    padding: 12px 25px;
    background-color: #3a8c6c;
    /* verde profundo */
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

#fecharstats:hover {
    background-color: #49a983;
    /* verde escuro suave */
    transform: scale(1.05);
}

#transcend {
    display: none;
}

/* Título principal */
#paginatranscend h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #222;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Subtítulo mostrando progresso */
#paginatranscend h2 {
    font-size: 1.2em;
    margin-bottom: 25px;
    color: #333;
}

/* Container dos bônus da transcensão */
#transcendbonus {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
    max-width: 700px;
    margin-bottom: 30px;
}

/* Botões de bônus */
#transcendbonus button {
    flex: 1 1 140px;
    padding: 12px 15px;
    background-color: #f3e8ff;
    /* roxo bem claro */
    border: 2px solid #9b6dd6;
    /* roxo médio */
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Hover nos botões */
#transcendbonus button:hover {
    background-color: #e5d0ff;
    /* roxo suave */
    transform: scale(1.05);
}

/* Botão de voltar */
#fechartranscend {
    padding: 12px 25px;
    background-color: #9b6dd6;
    /* roxo médio */
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

#fechartranscend:hover {
    background-color: #8658c2;
    /* roxo mais escuro */
    transform: scale(1.05);
}
/* Contêiner da barra */
.progress-container {
    width: 90%;
    max-width: 400px;         /* limite para telas grandes */
    height: 8px;
    background: #2a2a2a;
    border-radius: 4px;
    margin: 10px auto;
    overflow: hidden;
}

/* Barra preenchida */
.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #51aeff, #91c4f7);
    transition: width 0.25s ease;
}

/* Texto da porcentagem */
.progress-label {
    text-align: center;
    font-size: 14px;
    color: black;
    margin-top: 5px;
}

#roleta {
    transition: transform 6s cubic-bezier(0.1, 0.9, 0.25, 1)
}

#giraroleta {
    margin-top: 10px;
    margin-bottom: 10px;
}

#fecharapostas {
    margin-top: 10px;
}



.ponteiro {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid rgb(231, 217, 28);
    margin: auto;
    position: relative;
    top: 10px;
    z-index: 10;
}

#jogos button {
    flex: 1 1 140px;
    /* adaptável ao tamanho do container */
    padding: 12px 15px;
    background-color: #7fc0a6;
    /* dourado médio */
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Hover nos botões */
#jogos button:hover {
    background-color: #49a983;
    /* dourado suave */
    transform: scale(1.05);
}

/* Botão de voltar */
#fecharapostas{
    padding: 12px 25px;
    background-color: #3a8c6c;
    /* verde profundo */
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

#fecharapostas:hover {
    background-color: #49a983;
    /* verde escuro suave */
    transform: scale(1.05);
}