/* Body & Background */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1f1f1f, #4b4b4b);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: #333;
}

h1 {
    color: #f1c40f;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    margin-bottom: 30px;
    font-size: 2.5rem;
}

/* Game Board */
.board {
    display: grid;
    grid-template-columns: repeat(3, 120px);
    grid-template-rows: repeat(3, 120px);
    gap: 15px;
    background: #2c2c2c;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.cell {
    width: 120px;
    height: 120px;
    background: #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.cell:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 15px rgba(0,0,0,0.5);
}

.cell.X {
    color: #f1c40f; /* Batman Yellow */
    font-weight: bold;
}

.cell.O {
    color: #e74c3c; /* Joker Red */
    font-weight: bold;
}

/* Result */
#result {
    margin-top: 25px;
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
}

/* Restart Button */
#restart {
    margin-top: 20px;
    padding: 12px 25px;
    background: #f1c40f;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
}

#restart:hover {
    background: #d4ac0d;
}

/* Responsive */
@media (max-width: 450px) {
    .board {
        grid-template-columns: repeat(3, 80px);
        grid-template-rows: repeat(3, 80px);
        gap: 10px;
        padding: 15px;
    }
    .cell {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    h1 {
        font-size: 2rem;
    }
}
