:root {
    --color-crust: rgb(17, 17, 27);
    --color-base: rgb(30, 30, 46);
    --color-surface-0: rgb(49, 50, 68);
    --color-surface-1: rgb(69, 71, 90);
    --color-peach: rgb(245, 169, 127);
    --color-link: #89dceb;
    --color-link-hover: #f5e0dc;
    --color-text: #cdd6f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--color-base);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    overflow: hidden;
}

body.on {
    background: radial-gradient(var(--color-surface-0), var(--color-base));
}

.wire {
    position: absolute;
    left: calc(50% - 2px);
    bottom: 50%;
    width: 4px;
    height: 60vh;
    background: var(--color-crust);
    z-index: 1;
}

.bulb {
    position: relative;
    width: 80px;
    aspect-ratio: 1;
    background: var(--color-surface-1);
    border-radius: 45%;
    z-index: 2;
}

.bulb::before {
    content: "";
    position: absolute;
    left: 25px;
    top: -50px;
    width: 30px;
    height: 80px;
    background: var(--color-surface-1);
    border-top: 30px solid var(--color-crust);
    border-radius: 10px;
}

body.on .bulb::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    aspect-ratio: 1;
    background: var(--color-peach);
    border-radius: 60px;
    filter: blur(40px);
    transform: translate(-50%, -50%);
}

@keyframes switch-on {
    0% {
        opacity: 0;
     }
     100% {
        opacity: 1;
     }
}

body.on .bulb {
    background: var(--color-peach);
    box-shadow: 
        0 0 50px var(--color-peach),
        0 0 100px var(--color-peach),
        0 0 150px var(--color-peach),
        0 0 200px var(--color-peach),
        0 0 250px var(--color-peach),
        0 0 300px var(--color-peach),
        0 0 350px var(--color-peach);
}

body.on .bulb::before {
    background-color: var(--color-peach);
}

footer {
    color: var(--color-text);
    font-size: 1rem;
    inset: auto 0px 0px;
    padding: 1rem 1.5rem;
    position: fixed;
    text-align: center;
    width: 100%;
    font-family: sans-serif;
    opacity: 0.2;
}

a {
    color: var(--color-link);
}

a:hover {
    color: var(--color-link-hover);
}