body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f6f8;
    color: #2c3e50;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.config-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    justify-content: center;
}

.config-panel label {
    font-weight: 500;
    margin-right: 5px;
}

#timer {
    font-size: 1.2rem;
    background-color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    color: #34495e;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 110px);
    grid-template-rows: repeat(3, 110px);
    gap: 8px;
    padding: 10px;
    background-color: #dfe6e9;
    border-radius: 12px;
}

.cell {
    background-color: #ffffff;
    border: 2px solid transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    overflow: hidden;
}

.cell.alt {
    background-color: var(--cell-alt-color, #ecf0f1);
}

.cell:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cell img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    user-select: none;
    pointer-events: none;
}

button, select, input[type="color"] {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #ffffff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover, select:hover, input[type="color"]:hover {
    border-color: #7f8c8d;
    background-color: #f8f9fa;
}

@media (max-width: 500px) {
    .board {
        grid-template-columns: repeat(3, 90px);
        grid-template-rows: repeat(3, 90px);
    }

    .cell img {
        width: 75px;
        height: 75px;
    }
}
