.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    width: 330px;
    margin-bottom: 20px;
    align-items: center;
}

.scores-container {
    display: flex;
    gap: 10px;
}

.score-container,
.best-container {
    background: #bbada0;
    padding: 5px 15px;
    border-radius: 3px;
    color: white;
    text-align: center;
    font-weight: bold;
}

.score-container span,
.best-container span {
    font-size: 1.2rem;
}

.game-board-container {
    position: relative;
}

#game-board {
    display: grid;
    grid-template-columns: repeat(4, 70px);
    grid-template-rows: repeat(4, 70px);
    gap: 10px;
    background-color: #bbada0;
    padding: 10px;
    border-radius: 6px;
}

.cell {
    width: 70px;
    height: 70px;
    background-color: #cdc1b4;
    border-radius: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 2rem;
    color: #776e65;
    transition: transform 0.1s;
}

/* Colors for tiles */
.cell[data-value=""] {
    background-color: #cdc1b4;
}

/* Empty */
.cell[data-value="2"] {
    background-color: #eee4da;
}

.cell[data-value="4"] {
    background-color: #ede0c8;
}

.cell[data-value="8"] {
    background-color: #f2b179;
    color: #f9f6f2;
}

.cell[data-value="16"] {
    background-color: #f59563;
    color: #f9f6f2;
}

.cell[data-value="32"] {
    background-color: #f67c5f;
    color: #f9f6f2;
}

.cell[data-value="64"] {
    background-color: #f65e3b;
    color: #f9f6f2;
}

.cell[data-value="128"] {
    background-color: #edcf72;
    color: #f9f6f2;
    font-size: 1.6rem;
    box-shadow: 0 0 30px 10px rgba(243, 215, 116, 0.2381) inset;
}

.cell[data-value="256"] {
    background-color: #edcc61;
    color: #f9f6f2;
    font-size: 1.6rem;
    box-shadow: 0 0 30px 10px rgba(243, 215, 116, 0.31746) inset;
}

.cell[data-value="512"] {
    background-color: #edc850;
    color: #f9f6f2;
    font-size: 1.6rem;
    box-shadow: 0 0 30px 10px rgba(243, 215, 116, 0.39683) inset;
}

.cell[data-value="1024"] {
    background-color: #edc53f;
    color: #f9f6f2;
    font-size: 1.2rem;
    box-shadow: 0 0 30px 10px rgba(243, 215, 116, 0.47619) inset;
}

.cell[data-value="2048"] {
    background-color: #edc22e;
    color: #f9f6f2;
    font-size: 1.2rem;
    box-shadow: 0 0 30px 10px rgba(243, 215, 116, 0.55556) inset;
}

.cell[data-value="4096"] {
    background-color: #3e3e3b;
    color: #f9f6f2;
    font-size: 1.2rem;
}

.cell[data-value="8192"] {
    background-color: #1a1a1a;
    color: #f9f6f2;
    font-size: 1.2rem;
}

#game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(238, 228, 218, 0.73);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    z-index: 10;
}

#game-over.hidden {
    display: none;
}

#game-over p {
    font-size: 3rem;
    font-weight: bold;
    color: #776e65;
    margin-bottom: 20px;
}

.controls-hint {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.back-link {
    display: inline-block;
    color: #666;
    margin-top: 20px;
}

button {
    padding: 10px 20px;
    font-size: 1.1rem;
    background-color: #8f7a66;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #9f8b77;
}