/* =========================================
   1. FONTES E CONFIGURAÇÕES GERAIS
   ========================================= */
/* Importando NUNITO (Pesos: Regular, Bold, Black) */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;900&display=swap');

* {
    /* Nunito é a fonte escolhida */
    font-family: 'Nunito', sans-serif !important;
    box-sizing: border-box;
}

/* Trava a rolagem da página */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; 
    background-color: #000000 !important;
    background: radial-gradient(circle at center, #1a0505 0%, #000000 100%) !important;
    color: white;
}

#react-entry-point, #_dash-app-content, .container-fluid {
    height: 100%;
}

.full-screen-center {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
    align-items: center;
    padding: 20px;
}

/* =========================================
   2. TELA 1: CARD DE ENTRADA (LOGIN)
   ========================================= */
.input-card-red {
    background-color: white !important;
    border: 4px solid #D32F2F !important;
    border-radius: 30px; /* Mais arredondado */
    padding: 30px 25px;
    box-shadow: 0 0 40px rgba(211, 47, 47, 0.4);
    text-align: center;
    width: 100%;
    max-width: 380px;
}

/* Título "Quem vai jogar?" - SEM CAIXA ALTA */
.input-card-red h2 {
    color: #D32F2F !important;
    font-weight: 900 !important; /* Extra Bold */
    font-size: 2rem;
    margin-bottom: 20px;
    text-transform: none !important; /* Respeita maiúsculas/minúsculas */
    letter-spacing: -0.5px;
}

/* Inputs */
.custom-input {
    background-color: #F5F5F5 !important;
    border: 2px solid #E0E0E0 !important;
    color: #333 !important;
    border-radius: 15px !important;
    padding: 12px 15px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-align: center;
    margin-bottom: 12px;
}

.custom-input:focus {
    background-color: white !important;
    border-color: #D32F2F !important;
    color: black !important;
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1) !important;
}

/* Botão "Começar" - SEM CAIXA ALTA */
#btn-girar {
    background-color: #D32F2F !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 14px 30px !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    text-transform: none !important; /* Normal */
    width: 100%;
    margin-top: 15px;
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.3);
}

#btn-girar:active { transform: scale(0.95); }

/* Banner */
.banner-img {
    max-height: 20vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
}

/* =========================================
   3. PIMENTÔMETRO
   ========================================= */
.pimenta-label {
    color: #D32F2F !important;
    font-weight: 800 !important;
    font-size: 1.2rem !important;
    text-transform: none !important; /* Normal */
    margin-top: 10px;
    display: block;
}

#nivel-pimenta {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

#nivel-pimenta .form-check {
    background-color: #F9F9F9;
    border: 2px solid #DDD;
    border-radius: 15px;
    padding: 10px;
    padding-left: 35px;
    cursor: pointer;
    min-width: 115px;
}

.form-check-input:checked {
    background-color: #D32F2F !important;
    border-color: #D32F2F !important;
}

.form-check:has(.form-check-input:checked) {
    border: 2px solid #D32F2F !important;
    background-color: #FFF5F5;
}

.form-check:has(.form-check-input:checked) .form-check-label {
    color: #D32F2F !important;
}

.form-check-label {
    color: #555;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    line-height: 1.2;
}

/* =========================================
   4. TELA 2: CARTA DO JOGO (LARGURA TRAVADA)
   ========================================= */
.playing-card {
    color: white !important;
    
    /* --- LARGURA TRAVADA --- */
    width: 320px;       /* Tamanho fixo ideal */
    max-width: 90vw;    /* Segurança para celulares muito pequenos */
    
    /* Altura */
    min-height: 65vh;
    height: auto;
    
    /* Bordas e Espaçamento */
    border-radius: 30px;
    border: 4px solid white;
    padding: 40px 20px; /* Padding lateral um pouco menor para dar espaço ao texto */
    margin: 0 auto;
    
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.15) !important;
    
    /* Alinhamento */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;

    /* --- OBRIGA O TEXTO A FICAR DENTRO --- */
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* TÍTULO DO DESAFIO (CENTRO DA CARTA) */
.playing-card h2 {
    color: #FFFFFF !important; 
    font-weight: 900 !important;
    font-size: 2.0rem !important;
    text-transform: none !important;
    line-height: 0.95 !important;
    text-shadow: 0 3px 15px rgba(0,0,0,0.3);
    letter-spacing: -2px;
    
    /* --- CENTRALIZAÇÃO --- */
    text-align: center !important; /* Alinha o texto no centro */
    width: 100%;                   /* Garante que o elemento ocupe a largura total */
    margin: 5px auto !important;   /* 'auto' nas laterais centraliza o bloco se ele for menor */
}

/* Textos gerais da carta */
.playing-card p, .playing-card div {
    color: white !important;
}

.card-point-top { position: absolute; top: 20px; right: 25px; font-size: 1.3rem; font-weight: 800; }
.card-point-bottom { position: absolute; bottom: 20px; left: 25px; font-size: 1.3rem; font-weight: 800; }

/* Botão "Outra Carta" - SEM CAIXA ALTA */
#btn-nova-carta {
    background-color: white !important;
    color: #D32F2F !important;
    border: 4px solid rgba(255,255,255,0.3) !important;
    font-weight: 800 !important;
    font-size: 1.2rem !important;
    text-transform: none !important; /* Normal */
    padding: 12px 35px !important;
    border-radius: 50px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    transition: transform 0.1s;
}

#btn-nova-carta:active { transform: scale(0.95); }

/* =========================================
   5. MODAL DO CRONÔMETRO
   ========================================= */
.modal-content {
    background-color: #000 !important;
    border: 3px solid #D32F2F !important;
    border-radius: 20px;
}

.timer-number {
    font-weight: 900;
    font-size: 8rem;
    color: white;
    line-height: 1;
}

.timer-text {
    color: #AAA;
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: none !important;
}

.pulsar-vermelho {
    color: #FF0000 !important;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* --- ESTILO DO CONTADOR DE RODADA --- */
#display-rodada {
    font-size: 1.3rem !important;  /* Tamanho bem maior */
    font-weight: 500 !important;   /* Negrito Extra (Black) */
    color: #ececec !important;     /* Branco total */
    opacity: 1 !important;         /* Remove a transparência (era 50%) */
    text-transform: uppercase;     /* Caixa alta */
    letter-spacing: 3px;           /* Espaçamento entre letras (estilo moderno) */
    margin-bottom: 20px !important;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2); /* Brilho leve */
}

/* --- AUMENTAR TEXTOS DE CIMA E DE BAIXO DA CARTA --- */

/* O parágrafo de descrição (ex: "bem devagarinho") */
.playing-card p {
    font-size: 1.3rem !important; /* Aumentei bastante (era 1.3) */
    font-weight: 700 !important;   /* Mais gordinho para ler fácil */
    opacity: 1 !important;         /* Remove a transparência */
    margin-top: 15px !important;   /* Espaço para não grudar no título */
}

/* O Markdown do topo (ex: "Vez do João") */
.playing-card .dash-markdown p {
    font-size: 1.5rem !important; /* Um pouco menor que a descrição, mas grande */
    font-weight: 600 !important;
    margin-bottom: 5px !important;
}
