.live-only { display: none !important; }
.controls.live .live-only { display: flex !important; }
.ghost-btn { display: flex; align-items: center; justify-content: center; gap: 8px; }

.mines-center { flex: 1; display: grid; place-items: center; padding: 10px 0; }
.mgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; width: min(520px, 100%); }
.tile {
  aspect-ratio: 1; border-radius: 12px; position: relative; display: grid; place-items: center;
  background: linear-gradient(180deg, #2b4470, #213656); box-shadow: inset 0 -6px 0 #142440, 0 4px 10px #0006;
  transition: transform .12s, background .15s, box-shadow .15s;
}
.tile:not(:disabled):not(.open):hover { transform: translateY(-4px); background: linear-gradient(180deg, #355384, #284066); }
.tile:not(.open):active { transform: translateY(1px); box-shadow: inset 0 -2px 0 #142440; }
.tile.flip { animation: tflip .16s ease-in; }
@keyframes tflip { to { transform: scale(.85) rotateY(70deg); } }
.tile.open { background: #0d1828; box-shadow: inset 0 0 0 2px #ffffff0c; animation: tpop .3s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes tpop { from { transform: scale(.6); } }
.tile img { position: absolute; inset: 16%; width: 68%; height: 68%; object-fit: contain; filter: drop-shadow(0 6px 8px #0008); }
.tile.gem:not(.dim) { box-shadow: inset 0 0 0 2px #19d3ff55, 0 0 24px #19d3ff33; }
.tile.mine:not(.dim) { background: radial-gradient(circle, #ff2e3f66, #2a0a12 70%); box-shadow: inset 0 0 0 2px #ff2e3f88; }
.tile.dim img { opacity: .35; inset: 24%; width: 52%; height: 52%; filter: grayscale(.2); }
.tile.boom::after {
  content: ""; position: absolute; inset: -20%; border-radius: 50%;
  background: radial-gradient(circle, #ffd27aaa, #ff6a3d55 40%, transparent 70%); animation: boom .5s forwards; pointer-events: none;
}
@keyframes boom { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.shake-stage .mgrid { animation: shake .4s; }

@media (max-width: 640px) { .mgrid { gap: 7px; } .tile { border-radius: 9px; } }
