/* Sliding Numbers (4x4 fifteen puzzle) - CSS styled similar to 2048 */

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    touch-action: none;
}

.game-info {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.info-item { text-align: center; }
.info-label { font-size: 0.9rem; color: #666; }
.info-value { font-size: 1.4rem; font-weight: bold; }

#game {
    display: grid;
    grid-template-columns: repeat(4, 80px);
    grid-template-rows: repeat(4, 80px);
    gap: 10px;
    user-select: none;
}

.tile {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
    color: #2f4f4f;
    background-color: #b0c4de;
    border: 2px solid #9fb8d9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.tile:hover {
    background-color: #9fb8d9;
    transform: scale(1.02);
}

.tile.empty {
    background-color: #ffffff;
    border: 2px solid #9fb8d9;
    cursor: default;
}

.tile.empty:hover {
    background-color: #ffffff;
    transform: none;
}

.new-game-button { margin-top: 16px; }
#instructions { margin-top: 12px; text-align: center; }

/* Mobile responsiveness */
@media (max-width: 768px) {
    #game {
        grid-template-columns: repeat(4, 70px);
        grid-template-rows: repeat(4, 70px);
        gap: 8px;
    }
    .tile { width: 70px; height: 70px; font-size: 24px; }
}

@media (max-width: 480px) {
    #game {
        grid-template-columns: repeat(4, 64px);
        grid-template-rows: repeat(4, 64px);
        gap: 6px;
    }
    .tile { width: 64px; height: 64px; font-size: 22px; }
}
