:root {
    --primary-orange: #FF6600;
    --dark-bg: #0d1424;
    --card-bg: rgba(13, 20, 36, 0.95);
    --correct: #10b981;
    --incorrect: #ef4444;
    --partial: #f59e0b;
}

body {
    font-family: 'Inter', sans-serif;
    /* Removemos a imagem daqui para aplicá-la na camada de baixo */
    background-color: var(--dark-bg);
    color: #fff;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    padding-bottom: 0 !important;

    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Garante que o fundo fique atrás de tudo */

    /* Configurações da Imagem do Naruto */
    background-image: url('./imagens/fundo-naruto.jpg');
    background-size: cover;
    background-position: top center;
    /* Evita cortar o topo da imagem no desktop */
    background-repeat: no-repeat;

    /* Ajuste de Opacidade (0.4 = 40% de visibilidade) */
    opacity: 0.4;
}

/* --- INPUT STYLING --- */
/* --- INPUT STYLING --- */
.input-wrapper {
    border: 1px solid #4B5563 !important;
    /* Borda sutil igual ao GotQuiz */
    border-radius: 0.5rem !important;
    background: rgba(20, 25, 45, 0.9) !important;
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.2) !important;
    overflow: visible !important;
    /* Para as sugestões não serem cortadas */
}

#characterInput {
    border: none !important;
    background: transparent !important;
    color: white !important;
    box-shadow: none !important;
    outline: none !important;
}

#characterInput:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

#guessButton {
    border: none !important;
    background: linear-gradient(135deg, #FF6600, #CC5500) !important;
    outline: none !important;
}

#guessButton:hover {
    background: linear-gradient(135deg, #FF7722, #DD6600) !important;
}

/* Ajuste para as sugestões */
#suggestions {
    border: 1px solid #4B5563;
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    background: rgba(20, 25, 45, 0.95);
}

/* --- MODE BUTTONS --- */
.mode-button {
    transition: all 0.3s ease !important;
}

.active-mode {
    background-color: var(--primary-orange) !important;
    border: 3px solid #fff !important;
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.7) !important;
    transform: scale(1.05);
}

/* --- CLUE TABLE --- */
.clue-container {
    overflow-x: auto;
    width: 100%;
    margin-top: 1rem;
    padding-bottom: 10px;
}

#clue-header,
.clue-row {
    min-width: 750px;
}

.clue-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 700;
    height: 85px;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    color: #fff;
    transition: all 0.5s ease-in-out;
    word-break: break-word;
    padding: 6px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.clue-image-cell {
    padding: 0 !important;
}

.clue-cell>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.375rem;
}

.header-cell {
    background-color: rgba(35, 48, 103, 0.9);
    border-bottom: 4px solid var(--primary-orange);
    height: 50px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
}

/* --- COLORS AND STATES --- */
.hidden-clue {
    opacity: 0 !important;
    transform: scale(0.8);
    transition: all 0.5s ease-in-out;
}

.correct {
    background-color: var(--correct) !important;
}

.incorrect {
    background-color: var(--incorrect) !important;
}

.partial {
    background-color: var(--partial) !important;
}

/* --- SUGGESTIONS --- */
#suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: #1a1a2e;
    border: 1px solid #444;
    border-radius: 0 0 0.5rem 0.5rem;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.suggestion-item {
    padding: 0.75rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid #333;
    transition: background-color 0.2s;
}

.suggestion-item:hover {
    background-color: rgba(255, 102, 0, 0.2);
}

.suggestion-img {
    width: 50px;
    height: 50px;
    border-radius: 0.375rem;
    margin-right: 12px;
    border: 2px solid var(--primary-orange);
    object-fit: cover;
}

.suggestion-name {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1rem;
}

/* --- STATS PANEL --- */
#gameStats {
    z-index: 100;
    animation: fadeInUp 0.6s ease-out;
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-orange) !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(13, 20, 36, 0.8);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF7722;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .clue-cell {
        height: 75px;
        font-size: 0.75rem;
        padding: 4px;
    }

    #clue-header,
    .clue-row {
        min-width: 800px;
    }

    .suggestion-img {
        width: 40px;
        height: 40px;
    }
}

/* --- DIRECT MODE ROWS --- */
.quote-result-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 0.75rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.quote-correct {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
    border: 2px solid #10b981;
}

.quote-incorrect {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    border: 2px solid #ef4444;
}

/* --- ARROW INDICATORS --- */
.arrow {
    font-size: 1.2rem;
    margin-left: 0.25rem;
    font-weight: 900;
    color: #fff;
    display: inline-block;
}

/* --- CHECK ICONS ON MODE BUTTONS --- */
.check-icon {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.9rem;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.7));
}

/* --- MODAL --- */
#colorIndicatorModal {
    z-index: 9999 !important;
    background-color: rgba(31, 41, 55, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-orange) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

/* --- MISSION BOX --- */
#missionBox {
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 102, 0, 0.7) !important;
}

/* CORREÇÃO PARA O MODAL DE CORES */
#colorIndicatorModal {
    z-index: 99999 !important;
    background-color: rgba(31, 41, 55, 0.98) !important;
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-orange) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Garantir que o botão do modal fique acima de tudo */
#colorIndicatorButton {
    z-index: 100000 !important;
}

/* Corrigir sobreposição dos elementos */
#missionBox {
    position: relative;
    z-index: 1;
}

/* Ajuste para dispositivos móveis */
@media (max-width: 640px) {
    #colorIndicatorModal {
        width: 280px;
        right: 0;
        left: auto;
    }
}

/* Adicione estas regras ao seu arquivo style.css existente */

/* NOVO: Container para a pista do destinatário */
#abilityCluePlaceholder {
    transition: all 0.3s ease-in-out;
}

/* Estilo para a exibição da fala */
#abilityDisplay {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ajuste para o modal de cores simplificado */
#colorIndicatorModal .grid {
    grid-template-columns: 30px 1fr;
}

#colorIndicatorModal .grid div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-weight: bold;
}

/* Ajuste para a seção de outros quizzes */
#otherQuizzes .grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 640px) {
    #otherQuizzes .grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}




/* ------------------------------------------------ */
/* AJUSTES DE ROLAGEM E MENSAGENS FIXAS */
/* ------------------------------------------------ */

/* NOVO: Estilos para a mensagem de scroll horizontal */
#classicModeScrollHint {
    transition: all 0.3s ease;
}

/* Mostrar a dica de rolagem apenas em telas pequenas (até 767px) */
@media (max-width: 767px) {
    #classicModeScrollHint:not(.hidden) {
        display: block !important;
        padding: 0.5rem 1rem;
        position: sticky;
        bottom: 10px;
        z-index: 5;
    }

    /* Garante que o texto de Palpites NÃO role com as pistas */
    #gameMessageWrapper {
        margin-top: 1rem;
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
    }
}

/* Ajuste para o container de pistas no mobile */
@media (max-width: 639px) {
    body {
        padding-bottom: 0 !important;
    }
}




/* Correção para esconder a caixa de sugestões quando não houver palpites */
#suggestions:empty {
    display: none !important;
    border: none !important;
    padding: 0 !important;
}



@media (max-width: 640px) {
    .clue-cell {
        font-size: 0.7rem;
        /* Diminui a fonte um pouco mais no celular */
    }
}



.deven-gradient {
    background: linear-gradient(to right, #A855F7, #F59E0B);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}