* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
}

.container {
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center; 
    flex-direction: column;
    gap: 20px;

    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.game-header div:nth-child(2) {
    text-align: center;
}

.game-header div:nth-child(3) {
    text-align: end;
}

.status {
    font-size: 28px;
    letter-spacing: 1px;
}

.player-one-name { color: #3B82F6; }  
.player-one-score { color: #93C5FD; }  

.player-two-name { color: #EF4444; }   
.player-two-score { color: #FCA5A5; }  

.board {
    height: 420px;
    width: 420px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
    border-radius: 16px;

    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.cell {
    cursor: pointer;
    font-size: 60px;
    font-weight: 700;
    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.9);
    color: #333;

    transition: all 0.2s ease;
}

.cell:hover {
    transform: scale(1.05);
    background: white;
}

#reset {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;

    background: white;
    color: #333;
    transition: all 0.2s ease;
}

#reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

dialog {
    border: none;
    border-radius: 16px;
    padding: 30px;
    width: 360px;
    text-align: center;

    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);

    background: white;
    color: #333;

    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

form input[type=text] {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

#submit {
    margin-top: 10px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;

    background: #667eea;
    color: white;
}
