* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #faf8ef;
    font-family: Arial, sans-serif;
}

.container {
    position: relative;
    width: 460px;
    margin: 40px auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

h1 {
    color: #776e65;
    font-size: 48px;
}

.score-container {
    background: #bbada0;
    padding: 15px 25px;
    border-radius: 6px;
    color: white;
    font-size: 18px;
}

#new-game {
    background: #8f7a66;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#new-game:hover {
    background: #7f6a56;
}

.grid-container {
    background: #bbada0;
    padding: 15px;
    border-radius: 6px;
}

.grid-row {
    display: flex;
    margin-bottom: 15px;
}

.grid-row:last-child {
    margin-bottom: 0;
}

.grid-cell {
    width: 100px;
    height: 100px;
    margin-right: 15px;
    background: rgba(238, 228, 218, 0.35);
    border-radius: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    font-weight: bold;
    color: #776e65;
    transition: all 0.15s ease;
}

.grid-cell:last-child {
    margin-right: 0;
}

.grid-cell[data-value="2"] {
    background: #eee4da;
}

.grid-cell[data-value="4"] {
    background: #ede0c8;
}

.grid-cell[data-value="8"] {
    background: #f2b179;
    color: white;
}

.grid-cell[data-value="16"] {
    background: #f59563;
    color: white;
}

.grid-cell[data-value="32"] {
    background: #f67c5f;
    color: white;
}

.grid-cell[data-value="64"] {
    background: #f65e3b;
    color: white;
}

.grid-cell[data-value="128"] {
    background: #edcf72;
    color: white;
    font-size: 32px;
}

.grid-cell[data-value="256"] {
    background: #edcc61;
    color: white;
    font-size: 32px;
}

.grid-cell[data-value="512"] {
    background: #edc850;
    color: white;
    font-size: 32px;
}

.grid-cell[data-value="1024"] {
    background: #edc53f;
    color: white;
    font-size: 28px;
}

.grid-cell[data-value="2048"] {
    background: #edc22e;
    color: white;
    font-size: 28px;
}
