.fpl-game-container {
    max-width: 500px;
    margin: 20px auto;
    font-family: sans-serif;
    text-align: center;
}

.fpl-mistakes {
    margin-bottom: 15px;
    font-size: 0.9em;
    font-weight: bold;
}

.fpl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.fpl-tile.shake {
    animation: shake 0.2s ease-in-out 0s 2;
    background-color: #f88 !important;
}

.fpl-tile {
    background: #efefe0;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-weight: bold;
    font-size: 0.8em;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s, transform 0.1s;
}

.fpl-tile:hover {
    background: #e2e2d0;
}

.fpl-tile.selected {
    background: #5a594e;
    color: white;
}

.correct-1 { background-color: #fbd000 !important; color: black; } /* Yellow */
.correct-2 { background-color: #b1cc33 !important; color: black; } /* Green */
.correct-3 { background-color: #7290f2 !important; color: white; } /* Blue */
.correct-4 { background-color: #a469a4 !important; color: white; } /* Purple */

.fpl-group-solved {
    grid-column: span 4;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.fpl-controls {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.fpl-button-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.fpl-btn {
    padding: 12px 24px;
    border-radius: 25px;
    border: 1px solid #000;
    background: transparent;
    cursor: pointer;
    font-weight: bold;
}

.fpl-btn#fpl-submit {
    background: #000;
    color: #fff;
}

.fpl-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
