body {
    margin: 0;
    padding: 0;
    background: #faf8ef;
    font-family: "Clear Sans", "Helvetica Neue", Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.container {
    width: 256px;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: #776e65;
    margin-bottom: 10px;
}

.scoreBar {
    font-size: 14px;
    margin-bottom: 10px;
}

#stage {
    width: 256px;
    height: 256px;
    background: #bbada0;
    border-radius: 6px;
    padding: 8px;
    box-sizing: border-box;
    position: relative;
}

/* Grid cell background placeholders */
.grid-cell {
    width: 56px;
    height: 56px;
    margin: 4px;
    float: left;
    background: #cdc1b4;
    border-radius: 3px;
}

/* Base tile */
.tile {
    width: 56px;
    height: 56px;
    line-height: 56px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    position: absolute;
    border-radius: 3px;
    z-index: 10;
    transition: all 0.1s ease-in-out;
    color: #776e65;
}

/* Tile Colors */
.tile-2 { background: #eee4da; }
.tile-4 { background: #ede0c8; }
.tile-8 { background: #f2b179; color: #f9f6f2; }
.tile-16 { background: #f59563; color: #f9f6f2; }
.tile-32 { background: #f67c5f; color: #f9f6f2; }
.tile-64 { background: #f65e3b; color: #f9f6f2; }
.tile-128 { background: #edcf72; color: #f9f6f2; font-size: 18px; }
.tile-256 { background: #edcc61; color: #f9f6f2; font-size: 18px; }
.tile-512 { background: #edc850; color: #f9f6f2; font-size: 18px; }
.tile-1024 { background: #edc53f; color: #f9f6f2; font-size: 16px; }
.tile-2048 { background: #edc22e; color: #f9f6f2; font-size: 16px; }

.tile.super {
    background: #3c3a32;
    color: #f9f6f2;
    font-size: 16px;
}
/* Tile positioning */
.row0 { top: 8px; }
.row1 { top: 72px; }
.row2 { top: 136px; }
.row3 { top: 200px; }

.cell0 { left: 8px; }
.cell1 { left: 72px; }
.cell2 { left: 136px; }
.cell3 { left: 200px; }
.controls {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.controls .row {
    display: flex;
    gap: 8px;
}

.controls button {
    width: 56px;
    height: 56px;
    font-size: 24px;
    font-weight: bold;
    background: #8f7a66;
    color: #f9f6f2;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px #776e65;
    cursor: pointer;
}

.controls button:active {
    transform: scale(0.95);
    box-shadow: none;
}

