body {
    font-family: sans-serif;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.controls {
    margin-bottom: 1rem;
}

.swatches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 600px;
}

.swatch {
    position: relative;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    padding: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.swatch.locked::after {
    content: "🔒";
    position: absolute;
    top: 6px;
    right: 6px; }