/* Estilos Específicos para Post-it Ordenados */

.postit-game-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* GRIP DE POST-IT CON TAMAÑO Y PROPORCIÓN CENTRADA Y CONTROLADA (MÁXIMO 500PX) */
.postit-grid {
    display: grid;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--bg-surface);
    border: 3px solid var(--accent-amber);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 0 30px rgba(241, 196, 15, 0.25);
    box-sizing: border-box;
}

.postit-card {
    aspect-ratio: 1;
    width: 100%;
    max-height: 110px;
    background: linear-gradient(135deg, hsl(45, 95%, 65%), hsl(40, 90%, 50%)); /* Apariencia de nota adhesiva post-it */
    border: 2px solid hsl(40, 100%, 75%);
    border-radius: var(--radius-sm);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 900;
    color: hsl(25, 60%, 15%);
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.postit-card:hover {
    transform: translateY(-4px) rotate(-1deg);
    filter: brightness(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.postit-card.projecting {
    background: linear-gradient(135deg, hsl(145, 85%, 55%), hsl(145, 75%, 40%)) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    transform: scale(1.08) !important;
    box-shadow: 0 0 30px var(--accent-green) !important;
}

.postit-card.clicked-correct {
    background: linear-gradient(135deg, hsl(145, 85%, 45%), hsl(145, 75%, 35%)) !important;
    color: #ffffff !important;
    border-color: var(--accent-green) !important;
}

.postit-card.clicked-error {
    background: linear-gradient(135deg, hsl(355, 85%, 55%), hsl(355, 75%, 40%)) !important;
    color: #ffffff !important;
    border-color: var(--accent-red) !important;
    animation: shakeError 0.4s ease;
}

/* EFECTO DE PISTA VERDE VIBRANTE DE ALTO RESPLANDOR Y PARPADEO */
.postit-card.hint-highlight {
    background: linear-gradient(135deg, hsl(145, 85%, 55%), hsl(145, 75%, 40%)) !important;
    border: 3px solid #ffffff !important;
    color: #ffffff !important;
    box-shadow: 0 0 35px var(--accent-green) !important;
    animation: hintGreenPulse 0.5s ease-in-out infinite alternate !important;
}

@keyframes hintGreenPulse {
    0% { transform: scale(1); box-shadow: 0 0 15px var(--accent-green); }
    100% { transform: scale(1.12); box-shadow: 0 0 40px var(--accent-green); }
}
