body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a2e;
    background-image: url('./media/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #fff;
    overflow: hidden;
}

.game-container {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    margin: 0 0 25px;
    font-size: 2.2rem;
    font-weight: 600;
}

.scoreboard {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.score {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 24px;
    border-radius: 12px;
    min-width: 100px;
}

.score.p1 {
    background: rgba(220, 20, 60, 0.2);
    border: 1px solid crimson;
}

.score.p2 {
    background: rgba(65, 105, 225, 0.2);
    border: 1px solid royalblue;
}

.score-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.score-value {
    font-size: 2rem;
    font-weight: bold;
}

.turn-indicator {
    font-size: 1.1rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.turn-indicator span {
    font-weight: bold;
    color: #e67e22;
}

#result {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #f1c40f;
    min-height: 1.6rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(7, 70px);
    grid-template-rows: repeat(6, 70px);
    gap: 6px;
    background-color: #004080;
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 0 30px rgba(0, 64, 128, 0.4);
    margin: 0 auto;
}

.grid div {
    width: 70px;
    height: 70px;
    background-color: #0f0f23;
    border-radius: 50%;
    transition: background-color 0.15s ease;
}

.grid div:not(.taken) {
    cursor: pointer;
}

.grid div:not(.taken):hover {
    background-color: #1a1a3e;
}

.player-one {
    background-color: crimson !important;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4);
}

.player-two {
    background-color: royalblue !important;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4);
}

#reset-button {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    background: #e67e22;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#reset-button:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
}

@media (max-width: 600px) {
    .game-container {
        padding: 20px 15px;
    }

    h1 {
        font-size: 1.6rem;
    }

    .scoreboard {
        gap: 15px;
    }

    .score {
        min-width: 80px;
        padding: 10px 16px;
    }

    .score-value {
        font-size: 1.5rem;
    }

    .grid {
        grid-template-columns: repeat(7, 44px);
        grid-template-rows: repeat(6, 44px);
        gap: 4px;
        padding: 8px;
    }

    .grid div {
        width: 44px;
        height: 44px;
    }
}