.shape-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 .5rem;
    text-align: center;
}

.shape-board {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1.5rem 0 .75rem;
    min-height: 4.6rem;
    padding: .75rem;
    background: #f8f9fc;
    border: 2px dashed #d5dae5;
    border-radius: 16px;
    width: 100%;
}

.shape-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.4rem;
    height: 3.6rem;
    margin: 0;
    padding: 0 .6rem;
    font-size: 2rem;
    background: white;
    border: 2px solid #cfd8ec;
    border-radius: 12px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .06);
}

.shape-chip:active {
    cursor: grabbing;
}

.shape-chip.shape-hidden {
    visibility: hidden;
    box-shadow: none;
}

.shape-chip.shape-clone {
    position: fixed;
    z-index: 1000;
    margin: 0;
    cursor: grabbing;
    border-color: var(--primary);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
    transform: scale(1.06);
}

.shape-zones {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.shape-zone {
    flex: 1;
    min-width: 8rem;
    max-width: 14rem;
    min-height: 7rem;
    border-radius: 16px;
    border: 3px dashed #d5dae5;
    background: #f8f9fc;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
    gap: .4rem;
    padding: .75rem;
    transition: transform .15s, border-color .15s, background .15s;
}

.shape-zone.shape-circle {
    border-color: #ef9a9a;
    background: #fff5f5;
}

.shape-zone.shape-rectangle {
    border-color: #90caf9;
    background: #f3f9ff;
}

.shape-zone.shape-triangle {
    border-color: #ffcc80;
    background: #fff8f0;
}

.shape-zone.shape-square {
    border-color: #b39ddb;
    background: #f7f3ff;
}

.shape-zone.shape-drag-over {
    transform: scale(1.02);
    border-style: solid;
}

.shape-zone.shape-circle.shape-drag-over {
    background: #ffebee;
    border-color: #e53935;
}

.shape-zone.shape-rectangle.shape-drag-over {
    background: #e3f2fd;
    border-color: #1e88e5;
}

.shape-zone.shape-triangle.shape-drag-over {
    background: #fff3e0;
    border-color: #f57c00;
}

.shape-zone.shape-square.shape-drag-over {
    background: #ede7f6;
    border-color: #7e57c2;
}

.shape-zone-label {
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
}

.shape-circle .shape-zone-label {
    color: #c62828;
}

.shape-rectangle .shape-zone-label {
    color: #1565c0;
}

.shape-triangle .shape-zone-label {
    color: #e65100;
}

.shape-square .shape-zone-label {
    color: #6a1b9a;
}

@media (max-width: 380px) {
    .shape-chip {
        min-width: 2.8rem;
        height: 3rem;
        font-size: 1.6rem;
        padding: 0 .4rem;
    }

    .shape-zone {
        min-width: 6rem;
    }
}
