body {
    margin: 0;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    position: relative;
    font-family: "Courier New", monospace;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 150px);
    grid-template-rows: repeat(auto-fill, 150px);
    gap: 2px;
    position: fixed; /* Lock the grid to a fixed position */
    top: -60px;
    left: -60px;
    width: 100vw;
    height: 100vh;
    z-index: 2;
}


.box {
    width: 150px;
    height: 150px;
    border: 0.5px solid white;
    box-sizing: border-box;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease-in-out, background-color 0.2s ease-in-out; /* Smooth movement + hover */
    background: transparent;
    z-index: 3;
}

.box svg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.box line {
    stroke: white;
    stroke-width: 1;
}

.blob {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blob-bg {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 20%, rgba(0, 0, 0, 0) 70%);
    opacity: 0.8;
    mix-blend-mode: screen;
    filter: blur(120px) contrast(110%) saturate(130%);
    border-radius: 50% 65% 80% 55% / 60% 45% 70% 50%;
    position: absolute;
    z-index: 1;
}

.blob-text {
    font-family: "Courier New", monospace;
    font-size: 14px;
    font-weight: bold;
    color: white;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.box.flicker {
    animation: flash 0.5s ease-in-out;
}
