.nuton-demo {
    max-width: 1000px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.nuton-demo-stage {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #111;
}

.nuton-demo-bg {
    width: 100%;
    display: block;
    user-select: none;
    pointer-events: none;
}

.nuton-demo-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.nuton-demo-controls {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.nuton-mode-btn {
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid #ccc;
    background: #f3f3f3;
    color: #111;
    cursor: pointer;
}

.nuton-mode-btn.active {
    background: #111;
    color: white;
}

.nuton-demo-toggle {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 20;

    width: 48px;
    height: 48px;
    padding: 0;

    border: none;
    border-radius: 50%;
    background: white;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.nuton-demo-toggle svg {
    width: 24px;
    height: 24px;
    display: block;
    flex: none;
}

@keyframes pulsePlay {

    0%{
        transform:scale(1);
        box-shadow:
            0 0 0 0 rgba(0,255,102,.7);
    }

    70%{
        transform:scale(1.03);
        box-shadow:
            0 0 0 18px rgba(0,255,102,0);
    }

    100%{
        transform:scale(1);
        box-shadow:
            0 0 0 0 rgba(0,255,102,0);
    }

}

.nuton-demo-toggle.attention{
    animation:pulsePlay 1.4s infinite;
}

.nuton-demo-toggle {
    line-height: 0;
}

.nuton-volume {
    position: absolute;

    right: 24px;
    bottom: 24px;

    z-index: 20;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 0;

    background: transparent;
    border: none;
    box-shadow: none;
}

.nuton-volume span {
    font-size: 20px;
    color: white;

    text-shadow:
        0 1px 3px rgba(0,0,0,0.8),
        0 0 6px rgba(0,0,0,0.6);
}

.nuton-volume input {
    width: 120px;
    height: 20px;

    appearance: none;
    -webkit-appearance: none;

    background: transparent;
    cursor: pointer;
}

/* Chrome / Edge / Safari — линия */
.nuton-volume input::-webkit-slider-runnable-track {
    height: 4px;
    background: white;
    border-radius: 999px;

    box-shadow:
        0 1px 3px rgba(0,0,0,0.7);
}

/* Chrome / Edge / Safari — круг */
.nuton-volume input::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;

    width: 16px;
    height: 16px;

    margin-top: -6px;

    border-radius: 50%;

    background: white;
    border: 2px solid white;

    box-shadow:
        0 1px 4px rgba(0,0,0,0.8);
}

/* Firefox — линия */
.nuton-volume input::-moz-range-track {
    height: 4px;
    background: white;
    border-radius: 999px;

    box-shadow:
        0 1px 3px rgba(0,0,0,0.7);
}

/* Firefox — круг */
.nuton-volume input::-moz-range-thumb {
    width: 16px;
    height: 16px;

    border-radius: 50%;

    background: white;
    border: 2px solid white;

    box-shadow:
        0 1px 4px rgba(0,0,0,0.8);
}

/* Планшеты */
@media (max-width: 768px) {

    .nuton-demo-toggle {

        left: 10px;
        bottom: 10px;

        width: 44px;
        height: 44px;

        padding: 0;
        margin: 0;

        border-radius: 50%;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nuton-demo-toggle svg {

        width: 20px;
        height: 20px;

        display: block;
    }

    .nuton-volume {

        right: 10px;
        bottom: 14px;
    }

    .nuton-volume span {

        font-size: 16px;
    }

    .nuton-volume input {

        width: 110px;
    }

    .nuton-mode-btn {

        padding: 8px 14px;
        font-size: 13px;
    }
}


/* Телефоны */
@media (max-width: 480px) {

    .nuton-demo-toggle {

        left: 8px;
        bottom: 8px;

        width: 40px;
        height: 40px;

        padding: 0;
        margin: 0;

        border-radius: 50%;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nuton-demo-toggle svg {

        width: 18px;
        height: 18px;

        display: block;
    }

    .nuton-volume {

        right: 8px;
        bottom: 10px;
    }

    .nuton-volume span {

        font-size: 14px;
    }

    .nuton-volume input {

        width: 80px;
        height: 16px;
    }

    .nuton-volume input::-webkit-slider-thumb {

        width: 12px;
        height: 12px;

        margin-top: -4px;
    }

    .nuton-volume input::-moz-range-thumb {

        width: 12px;
        height: 12px;
    }

    .nuton-demo-controls {

        margin-top: 10px;
        gap: 8px;
    }

    .nuton-mode-btn {

        padding: 6px 10px;
        font-size: 11px;
    }
}