/* 2048 (wwwroot/js/game2048.js): a square board of tiles whose colour grows with the number. */
.g2048-wrap { max-width: 460px; margin: 0 auto; }
.g2048-board { display: grid; gap: 8px; padding: 8px; background: #bbada0; border-radius: 10px; aspect-ratio: 1; touch-action: none; user-select: none; -webkit-user-select: none; }
.g2048-board:focus-visible { outline: 3px solid var(--bs-primary); outline-offset: 2px; }
.g2048-tile { display: flex; align-items: center; justify-content: center; border-radius: 6px; background: rgba(238, 228, 218, .35); font-weight: 800; font-size: clamp(1rem, 6vw, 2rem); color: #776e65; }
.g2048-v2 { background: #eee4da; } .g2048-v4 { background: #ede0c8; } .g2048-v8 { background: #f2b179; color: #fff; }
.g2048-v16 { background: #f59563; color: #fff; } .g2048-v32 { background: #f67c5f; color: #fff; } .g2048-v64 { background: #f65e3b; color: #fff; }
.g2048-v128 { background: #edcf72; color: #fff; } .g2048-v256 { background: #edcc61; color: #fff; } .g2048-v512 { background: #edc850; color: #fff; }
.g2048-v1024 { background: #edc53f; color: #fff; } .g2048-v2048 { background: #edc22e; color: #fff; } .g2048-v4096 { background: #3c3a32; color: #fff; }
.g2048-board[data-n="5"] { gap: 6px; } .g2048-board[data-n="6"] { gap: 5px; }
.g2048-board[data-n="5"] .g2048-tile, .g2048-board[data-n="6"] .g2048-tile { font-size: clamp(.8rem, 4.5vw, 1.5rem); }
