h1 { color: #ff9800; }

.info {
  display: flex;
  gap: 16px;
  margin: 10px 0 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.sbox {
  background: #111127;
  border-radius: 10px;
  padding: 10px 20px;
  text-align: center;
  min-width: 80px;
}
.sbox label {
  font-size: 0.7rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sbox b { display: block; font-size: 1.5rem; color: #ff9800; }

.board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: #111127;
  padding: 12px;
  border-radius: 14px;
  width: min(440px, 95vw);
  touch-action: none;
}

.tile {
  aspect-ratio: 1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: clamp(1.1rem, 4vw, 1.8rem);
  transition: transform 0.1s;
}

.tile-0    { background: #1e1e38; }
.tile-2    { background: #eee4da; color: #776e65; }
.tile-4    { background: #ede0c8; color: #776e65; }
.tile-8    { background: #f2b179; color: #fff; }
.tile-16   { background: #f59563; color: #fff; }
.tile-32   { background: #f67c5f; color: #fff; }
.tile-64   { background: #f65e3b; color: #fff; }
.tile-128  { background: #edcf72; color: #fff; }
.tile-256  { background: #edcc61; color: #fff; }
.tile-512  { background: #edc850; color: #fff; }
.tile-1024 { background: #edc53f; color: #fff; font-size: clamp(0.9rem, 3vw, 1.3rem); }
.tile-2048 { background: #edc22e; color: #fff; font-size: clamp(0.85rem, 2.8vw, 1.2rem); box-shadow: 0 0 30px #ffd600aa; }
.tile-high { background: #3c3c3c; color: #ff9800; font-size: clamp(0.75rem, 2.5vw, 1rem); }

.tile.new     { animation: pop  0.15s ease; }
.tile.merged  { animation: bump 0.15s ease; }
@keyframes pop  { 0% { transform: scale(0) } 100% { transform: scale(1) } }
@keyframes bump { 0% { transform: scale(1) } 50% { transform: scale(1.18) } 100% { transform: scale(1) } }

.btns { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
button { background: #ff9800; color: #000; }
button:hover { background: #ffa726; }

.full-overlay .obox { border: 1px solid #ff9800; }
.full-overlay .obox h2 { color: #ff9800; }
.full-overlay .obox button { background: #ff9800; width: auto; }

@media (max-width: 380px) {
  .board { gap: 7px; padding: 9px; }
  .tile { border-radius: 7px; }
}
