.section {
    width: min(1040px, 100%);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.4rem;
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid var(--color-border);
    border-radius: 26px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
        rgba(255, 255, 255, 0.055);
    box-shadow: var(--shadow-elevated), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
}

.section h2 {
    font-size: clamp(1.35rem, 3vw, 2.2rem);
}

canvas {
    width: min(500px, 100%);
    height: auto;
    align-self: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
        rgba(0, 0, 0, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 42px rgba(0, 0, 0, 0.36);
}

.vertical-line-container {
    display: grid;
    grid-template-columns: minmax(190px, 240px) 1fr;
    align-items: center;
    gap: 1rem;
}

.vertical-line-container button,
#smoothing-berzier-container button {
    width: 100%;
}

.circle {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    position: relative;
    left: 0;
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.62), 0 8px 18px rgba(0, 0, 0, 0.42);
    z-index: 1;
}

.animated-circle {
    left: calc(100% - 20px);
}

.smoothing-line {
    min-width: 180px;
    height: 8px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
}

.rotated-90deg {
    transform: rotate(90deg);
}

#smoothing-berzier-container {
    display: grid;
    grid-template-columns: minmax(190px, 240px) 1fr;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 720px) {
    .vertical-line-container,
    #smoothing-berzier-container {
        grid-template-columns: 1fr;
    }

    .rotated-90deg {
        transform: none;
    }
}
