.board {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  max-width: 560px; margin: 0 auto;
}
.tile {
  appearance: none; border: 0; border-radius: var(--radius);
  background: var(--line); color: var(--fg);
  aspect-ratio: 1.45; padding: 6px;
  font-size: clamp(11px, 3.1vw, 15px); font-weight: 600; letter-spacing: .01em; text-transform: uppercase;
  cursor: pointer; user-select: none; word-break: break-word;
  transition: background .15s, color .15s, transform .12s;
}
.tile:hover { background: var(--line-strong); }
.tile.sel { background: var(--fg); color: var(--bg); }
.tile:active { transform: scale(.96); }
.tile.shake { animation: shake .35s; }
.tile.jump { animation: jump .3s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@keyframes jump { 50% { transform: translateY(-6px); } }

.group {
  grid-column: 1 / -1; border-radius: var(--radius); padding: 14px 12px;
  text-align: center; color: #111;
  min-height: calc((min(560px, 100vw - 40px) - 24px) / 4 / 1.45);
  display: flex; flex-direction: column; justify-content: center;
}
.group h3 { margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.group p { margin: 2px 0 0; font-size: 14px; text-transform: uppercase; }
.group.new { animation: pop .35s ease; }
.group.l0 { background: var(--c-yellow); }
.group.l1 { background: var(--c-green); }
.group.l2 { background: var(--c-blue); }
.group.l3 { background: var(--c-purple); }
@keyframes pop { from { transform: scale(.96); opacity: .4; } }

.mistakes { text-align: center; color: var(--muted); font-size: 14px; margin: 24px 0 18px; }
#dots { display: inline-flex; gap: 6px; margin-left: 8px; vertical-align: middle; }
#dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--fg); transition: transform .3s, opacity .3s; }
#dots i.gone { transform: scale(0); opacity: 0; }
.controls { margin-bottom: 24px; }
