.stage { background: linear-gradient(#fff4e2, #ffe3b8); color: #5b4630; gap: 14px; padding: 14px; }
.top2048 { width: var(--size); display: flex; align-items: center; gap: 8px; }
.top2048 .hud { flex: 1; justify-content: flex-start; }
.top2048 .hud div { background: #b8a48c; }
.top2048 .hud span { color: #f3e6d4; }
.top2048 .hud b { color: #fff; }
.newgame { font-family: var(--title); font-size: 17px; border: 0; border-radius: 12px; padding: 10px 14px; background: #8f7a66; color: #fff; }
.board2048 { --gap: calc(var(--size) * 0.03); position: relative; width: var(--size); height: var(--size); background: #b8a48c; border-radius: 16px; padding: var(--gap); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); touch-action: none; }
.board2048 .cell { background: #cdc0b0; border-radius: 10px; }
.tile { position: absolute; width: calc((var(--size) - var(--gap) * 5) / 4); height: calc((var(--size) - var(--gap) * 5) / 4); border-radius: 10px; display: grid; place-items: center; font-family: var(--title); font-size: calc(var(--size) * 0.11); color: #776e65; background: #eee4da; transition: left 0.1s ease-out, top 0.1s ease-out; }
.tile.new { animation: appear 0.18s ease-out; }
.tile.merged { animation: bump 0.2s ease-out; z-index: 2; }
@keyframes appear { from { transform: scale(0); } }
@keyframes bump { 50% { transform: scale(1.18); } }
.t4 { background: #ede0c8; }
.t8 { background: #f2b179; color: #fff; }
.t16 { background: #f59563; color: #fff; }
.t32 { background: #f67c5f; color: #fff; }
.t64 { background: #f65e3b; color: #fff; }
.t128 { background: #edcf72; color: #fff; font-size: calc(var(--size) * 0.09); }
.t256 { background: #edcc61; color: #fff; font-size: calc(var(--size) * 0.09); box-shadow: 0 0 14px rgba(243, 215, 116, 0.5); }
.t512 { background: #edc850; color: #fff; font-size: calc(var(--size) * 0.09); box-shadow: 0 0 18px rgba(243, 215, 116, 0.6); }
.t1024 { background: #edc53f; color: #fff; font-size: calc(var(--size) * 0.075); box-shadow: 0 0 22px rgba(243, 215, 116, 0.7); }
.t2048 { background: #edc22e; color: #fff; font-size: calc(var(--size) * 0.075); box-shadow: 0 0 28px rgba(243, 215, 116, 0.85); }
.tbig { background: #3c3a32; color: #fff; font-size: calc(var(--size) * 0.065); }
.hint { font-size: 13px; color: #9a8268; margin: 0; }
