body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 0.5rem;
}

h2 {
    color: #555;
}

.scoreboard {
    margin: 1rem 0;
}

.score {
    font-size: 1.2rem;
    margin: 0 1rem;
}

#reset-btn {
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
}

#new-game-btn {
    padding: 0.5rem 1rem;
    margin-top: 1rem;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1rem auto;
    max-width: 300px;
}

.cell {
    background-color: #fff;
    border: 1px solid #ccc;
    cursor: pointer;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
}

.cell:hover {
    background-color: #f9f9f9;
}

.cell.x {
    color: #e74c3c;
}

.cell.o {
    color: #3498db;
}

#status {
    font-size: 1.2rem;
    margin: 1rem 0;
}

.hidden {
    display: none !important;
}

#countdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8rem;
    font-weight: bold;
    color: #ff69b4;
    z-index: 1000;
    pointer-events: none;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

#start-game-btn {
    padding: 1rem 3rem;
    font-size: 2rem;
    background-color: #ff69b4;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1rem auto;
    display: block;
    box-shadow: 0 10px 20px rgba(255, 105, 180, 0.3);
}

#start-game-btn:hover {
    background-color: #ff1493;
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(255, 105, 180, 0.4);
}

#start-game-btn:active {
    transform: translateY(0);
}
