/* ================================================================
   JOGO SEQUÊNCIA DE OBJETOS — Estilos específicos
   ================================================================ */

/* ===== CONTAINER PRINCIPAL ===== */
.sequencia-objetos-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--branco);
    border-radius: var(--raio-borda);
    padding: 32px 36px;
    box-shadow: var(--sombra);
}

/* ===== GRID DE OBJETOS ===== */
.objetos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.objeto-btn {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 4px solid #E8EAED;
    border-radius: 16px;
    background: var(--branco);
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    min-height: 100px;
    user-select: none;
}

.objeto-btn:hover:not(.desativado):not(.selecionado) {
    transform: translateY(-4px);
    border-color: var(--verde-oliva);
    box-shadow: var(--sombra-hover);
}

.objeto-btn:active:not(.desativado):not(.selecionado) {
    transform: scale(0.95);
}

.objeto-btn .objeto-icone {
    font-size: 48px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.objeto-btn .objeto-nome {
    font-size: 14px;
    font-weight: 500;
    color: var(--cinza-claro);
    text-align: center;
}

/* Estados do objeto */
.objeto-btn.destaque {
    border-color: var(--dourado);
    background: #FFF8E1;
    transform: scale(1.05);
    box-shadow: 0 0 0 4px rgba(196, 155, 43, 0.2);
    animation: pulse 0.6s ease;
}

.objeto-btn.destaque .objeto-icone {
    transform: scale(1.15);
}

.objeto-btn.selecionado {
    border-color: #4CAF50;
    background: #E8F5E9;
    transform: scale(0.95);
}

.objeto-btn.errado {
    border-color: #C62828;
    background: #FFEBEE;
    animation: shake 0.5s ease;
}

.objeto-btn.acertou {
    border-color: #4CAF50;
    background: #E8F5E9;
}

.objeto-btn.desativado {
    opacity: 0.5;
    cursor: not-allowed;
}

.objeto-btn.desativado:hover {
    transform: none;
    border-color: #E8EAED;
    box-shadow: none;
}

/* ===== SEQUÊNCIA FEEDBACK ===== */
.sequencia-feedback {
    text-align: center;
    padding: 12px 16px;
    background: var(--terroso);
    border-radius: 10px;
    margin-bottom: 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-texto {
    font-size: 18px;
    font-weight: 500;
    color: var(--cinza-escuro);
}

.feedback-texto .destaque-numero {
    color: var(--verde-oliva);
    font-weight: 700;
}

.feedback-texto .total-numero {
    color: var(--dourado);
    font-weight: 700;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* ============================================================ */
/* RESPONSIVIDADE                                                */
/* ============================================================ */

@media (max-width: 768px) {
    .sequencia-objetos-container {
        padding: 24px 20px;
    }

    .objetos-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .objeto-btn {
        min-height: 80px;
        padding: 10px;
        border-radius: 12px;
        border-width: 3px;
    }

    .objeto-btn .objeto-icone {
        font-size: 36px;
    }

    .objeto-btn .objeto-nome {
        font-size: 12px;
    }

    .feedback-texto {
        font-size: 16px;
    }

    .game-instructions {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .sequencia-objetos-container {
        padding: 16px 12px;
    }

    .objetos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .objeto-btn {
        min-height: 70px;
        padding: 8px;
        border-radius: 10px;
        border-width: 3px;
    }

    .objeto-btn .objeto-icone {
        font-size: 30px;
    }

    .objeto-btn .objeto-nome {
        font-size: 11px;
    }

    .feedback-texto {
        font-size: 14px;
    }

    .sequencia-feedback {
        padding: 10px 12px;
        min-height: 40px;
    }

    .game-instructions {
        font-size: 15px;
    }

    .game-controls .btn {
        padding: 8px 12px;
        font-size: 12px;
        min-height: 32px;
    }

    .feedback-area {
        font-size: 14px;
        min-height: 32px;
        padding: 4px 10px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .objetos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}