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

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.game-container {
    text-align: center;
    padding: 20px;
}

.grid-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: #bbada0;
    padding: 10px;
    border-radius: 6px;
    width: 400px;
    height: 400px;
}

.tile {
    background: #eee4da;
    border-radius: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    height: 90px;
    width: 90px;
    margin: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.tile-2 {
    background-color: #eee4da;
    color: #776e65;
}

.tile-4 {
    background-color: #ede0c8;
    color: #776e65;
}

.tile-8 {
    background-color: #f2b179;
}

.tile-16 {
    background-color: #f59563;
}

.tile-32 {
    background-color: #f67c5f;
}

.tile-64 {
    background-color: #f67c5f;
}

.tile-128 {
    background-color: #edcf72;
}

.tile-256 {
    background-color: #edcc61;
}

.tile-512 {
    background-color: #edc850;
}

.tile-1024 {
    background-color: #edc53f;
}

.tile-2048 {
    background-color: #edc22e;
}

.tile:hover {
    transform: scale(1.05);
}

#score {
    font-size: 1.5em;
    margin-top: 20px;
    text-align: center;
}

.score-container {
    font-size: 20px;
    margin: 20px 0;
}

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