body {
    font-family: sans-serif;
    text-align: center;
    background: #faf8ef;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

#container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#game-board {
    width: 400px;
    height: 400px;
    margin: 20px auto;
    background: #bbada0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 10px;
}

.tile {
    width: 90px;
    height: 90px;
    background: #cdc1b4;
    font-size: 24px;
    line-height: 90px;
    font-weight: bold;
    color: #776e65;
}

h1 {
    font-size: 45px;
    font-weight: bold;
    color: #776e65;
}

#game-info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

#game-info p {
    font-size: 20px;
    font-weight: bold;
    color: #776e65;
}

#restart-button {
    margin-top: 30px;
    padding: 8px 20px;
    background-color: #8f7a66;
    justify-content: center;
    color: white;
    border: none;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

#game-over {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#game-over p {
    font-size: 30px;
    font-weight: bold;
    color: red;
}

#game-over.active {
    display: flex;
}

#game-over .popup {
    background: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    color: #333;
    font-size: 24px;
}

#popup-restart {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #8f7a66;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}