body {
    background-color: #0d0d0d;
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    transition: background-color 0.3s ease;
    user-select: none;
    overflow: hidden;
    font-family: sans-serif;
}

/* Ambient room light when on */
body.light-on {
    background-color: #26241b;
}

.fixture {
    position: relative;
    top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- SVG Bulb Styling --- */
.bulb-svg {
    width: 140px;
    height: 200px;
    z-index: 10;
    overflow: visible;
    /* Allows glowing shadow to expand outside the SVG bounds */
}

/* Base State (Off) */
.glass {
    fill: rgba(255, 255, 255, 0.03);
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 2;
    transition: all 0.2s ease;
}

.filament-wire {
    fill: none;
    stroke: #444;
    stroke-width: 1.5;
    transition: all 0.2s ease;
}

.filament-glow {
    fill: none;
    stroke: transparent;
    stroke-width: 6;
    transition: all 0.2s ease;
}

/* Active State (On) */
body.light-on .glass {
    fill: rgba(255, 235, 150, 0.4);
    stroke: rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 0 25px #ffdb58) drop-shadow(0 0 60px #ffaa00);
}

body.light-on .filament-wire {
    stroke: #fff;
}

body.light-on .filament-glow {
    stroke: #ffea99;
    filter: blur(2px);
}

/* --- Rope Canvas --- */
canvas {
    position: absolute;
    top: 185px;
    /* Aligns exactly with the bottom contact of the SVG base */
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    cursor: grab;
}

canvas:active {
    cursor: grabbing;
}