/* Estilos Específicos para Letras Desordenadas (Anagramas) */

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

/* CAJA DE FOTO / EMOJI CENTRADA CON TAMAÑO 250% */
.photo-display-box {
    width: 220px;
    height: 220px;
    background-color: var(--bg-surface);
    border: 3px solid var(--accent-amber);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(241, 196, 15, 0.3);
    box-sizing: border-box;
}

.target-emoji {
    font-size: 8rem;
    line-height: 1;
    user-select: none;
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.4));
}

/* CASILLEROS DE LA PALABRA EN CONSTRUCCIÓN */
.answer-slots-box {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    min-height: 80px;
    background-color: var(--bg-surface);
    padding: 1.25rem 2rem;
    border-radius: var(--radius-md);
    border: 3px dashed var(--accent-blue);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.2);
    box-sizing: border-box;
}

.slot-box {
    width: 65px;
    height: 75px;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.slot-box.occupied {
    border-color: var(--accent-blue);
    background-color: hsla(210, 100%, 56%, 0.2);
    color: var(--accent-blue);
    transform: scale(1.05);
}

/* BANCO DE FICHAS DE LETRAS DESORDENADAS */
.letters-pool-box {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    padding: 0.5rem;
}

.letter-tile {
    width: 65px;
    height: 75px;
    background: linear-gradient(135deg, hsl(210, 85%, 55%), hsl(210, 75%, 40%));
    border: 2px solid #ffffff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease, opacity 0.2s ease, filter 0.2s ease;
    box-sizing: border-box;
}

.letter-tile:hover {
    transform: translateY(-4px) scale(1.08);
    filter: brightness(1.1);
}

.letter-tile.selected {
    opacity: 0.3;
    transform: scale(0.92);
    pointer-events: none;
}

.letter-tile.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); }
}
