.gm-top { display: flex; justify-content: center; align-items: flex-end; gap: 18px; margin: 16px 0 12px; }
.gm-slot { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
.gm-slot .box { width: 70px; height: 70px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; }
.gm-slot.now .box { border-color: rgba(167, 139, 250, 0.6); box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.12); }
.gm-slot.small .box { width: 48px; height: 48px; border-radius: 14px; }
.gm-slot .gm-tile { width: 72%; height: 72%; }

.gm-board {
  --cell: 64px;
  display: grid;
  grid-template-columns: repeat(5, var(--cell));
  gap: 6px;
  width: max-content;
  margin: 0 auto 14px;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}
.gm-cell {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: var(--cell);
  height: var(--cell);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s;
}
.gm-cell:hover { background: rgba(255, 255, 255, 0.1); }
.gm-cell:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.gm-cell.will-merge { box-shadow: inset 0 0 0 2px #fde047; }
.gm-tile { width: 84%; height: 84%; display: grid; place-items: center; }
.gm-tile svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35)); }
.gm-cell .gm-tile.ghost { position: absolute; opacity: 0.38; pointer-events: none; }
.gm-tile.pop { animation: gm-pop 0.32s ease-out; }
@keyframes gm-pop { 0% { transform: scale(0.4); } 60% { transform: scale(1.14); } }
.gm-float {
  position: absolute;
  top: 10%;
  left: 50%;
  translate: -50% 0;
  white-space: nowrap;
  font-weight: 800;
  font-size: 14px;
  color: #fde047;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 3;
  animation: gm-float 0.9s ease-out forwards;
}
@keyframes gm-float { to { transform: translateY(-38px); opacity: 0; } }

.gm-ladder { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 520px; margin: 4px auto 6px; }
.gm-step { width: 52px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: var(--muted); }
.gm-step .gm-tile { width: 30px; height: 30px; }
.gm-step.locked .q { width: 26px; height: 26px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 8px; font-weight: 800; }
.ladder-title { text-align: center; color: var(--muted); font-size: 12px; margin: 10px 0 4px; }
@media (prefers-reduced-motion: reduce) { .gm-tile.pop, .gm-float { animation: none; } }
