:root {
    --nothing-red: #ff0000;
    --nothing-grey: #f2f2f2;
    --nothing-border: #e0e0e0;
    --bg-dots: radial-gradient(#d1d1d1 1px, transparent 1px);
}

body {
    background-color: #ffffff;
    background-image: var(--bg-dots);
    background-size: 24px 24px;
    color: #000;
    font-family: 'Inter', sans-serif;
    height: 100vh;
    overflow: hidden;
}

.nothing-font { font-family: 'DotGothic16', sans-serif; }

.widget {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--nothing-border);
    border-radius: 28px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.03);
}

canvas { touch-action: none; cursor: none; }

/* Custom Cursor Follower */
#customCursor {
    width: 24px;
    height: 24px;
    border: 1.5px solid #000;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1000;
    mix-blend-mode: difference;
    background: white;
    display: none;
    transition: transform 0.1s ease-out, width 0.2s, height 0.2s;
}

#customCursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--nothing-red);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Custom Range Slider - Nothing Style */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #000;
    border-radius: 2px;
}

input[type=range]::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #000;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -8px;
    transition: transform 0.1s;
}

input[type=range]:active::-webkit-slider-thumb {
    background: var(--nothing-red);
    transform: scale(1.1);
}

/* Preset Chips */
.preset-chip {
    background: white;
    border: 1.5px solid #000;
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.preset-chip:hover {
    background: #000;
    color: #fff;
}

.active-red {
    color: var(--nothing-red);
}

.drag-handle { cursor: grab; }
.drag-handle:active { cursor: grabbing; }

.resize-handle {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 16px;
    height: 16px;
    cursor: nwse-resize;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    opacity: 0.2;
}
.resize-handle:hover { opacity: 1; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: #000; border-radius: 10px; }
