/* ============================================
   LightsOut - Game Styles
   ============================================ */

/* Background */
.lo-bg {
    background: #0a0a1a;
    background: linear-gradient(135deg, #0a0a1a 0%, #0d0d24 50%, #0a0a1a 100%);
}

/* Content wrapper */
.lo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
}

/* Grid */
.lo-grid {
    display: grid;
    gap: 6px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 221, 0, 0.08);
}

/* Cells */
.lo-cell {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* OFF cell */
.lo-cell-off {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.lo-cell-off:hover {
    background: #222240;
    border-color: rgba(255, 221, 0, 0.15);
}

/* ON cell */
.lo-cell-on {
    background: #ffdd00;
    border: 1px solid rgba(255, 240, 100, 0.6);
    box-shadow:
        0 0 15px rgba(255, 221, 0, 0.5),
        0 0 30px rgba(255, 221, 0, 0.25),
        0 0 50px rgba(255, 221, 0, 0.1),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
    animation: lo-glow 2s ease-in-out infinite alternate;
}

.lo-cell-on:hover {
    background: #ffe433;
    box-shadow:
        0 0 20px rgba(255, 221, 0, 0.7),
        0 0 40px rgba(255, 221, 0, 0.35),
        0 0 60px rgba(255, 221, 0, 0.15),
        inset 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Glow dot inside ON cells */
.lo-glow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Glow animation */
@keyframes lo-glow {
    from {
        box-shadow:
            0 0 12px rgba(255, 221, 0, 0.4),
            0 0 25px rgba(255, 221, 0, 0.2),
            0 0 40px rgba(255, 221, 0, 0.08);
    }
    to {
        box-shadow:
            0 0 18px rgba(255, 221, 0, 0.6),
            0 0 35px rgba(255, 221, 0, 0.3),
            0 0 55px rgba(255, 221, 0, 0.12);
    }
}

/* Responsive cell sizes */
@media (max-width: 600px) {
    .lo-cell {
        width: 48px;
        height: 48px;
    }
}
