/* Base Styles */
body {
    background-color: #0a0a12;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(188, 19, 254, 0.1), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 255, 255, 0.1), transparent 25%);
    font-family: 'Orbitron', sans-serif;
}

/* Neon Glows */
.neon-text-title {
    color: #fff;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px #bc13fe,
        0 0 30px #bc13fe,
        0 0 40px #bc13fe;
}

.neon-text-x {
    color: #00ffff;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #00ffff,
        0 0 20px #00ffff;
}

.neon-text-o {
    color: #ff00ff;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #ff00ff,
        0 0 20px #ff00ff;
}

/* Grid Cells */
.cell {
    width: 6rem;
    height: 6rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(188, 19, 254, 0.2);
}

.cell:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.4);
    transform: scale(1.05);
}

.cell.x {
    color: #00ffff;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #00ffff,
        0 0 20px #00ffff;
}

.cell.o {
    color: #ff00ff;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #ff00ff,
        0 0 20px #ff00ff;
}

/* Winning Line Animation */
@keyframes winning-pulse {
    0% { opacity: 0.5; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.5; transform: scale(0.95); }
}

.winning-cell {
    background: rgba(255, 255, 255, 0.2);
    animation: winning-pulse 1.5s infinite ease-in-out;
}

/* Checkbox Toggle Styling */
input:checked ~ .dot {
    transform: translateX(100%);
    background-color: #48bb78;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .cell {
        width: 5rem;
        height: 5rem;
        font-size: 2.5rem;
    }
}
