.mines-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  width: min(100%, 26rem);
}

.mine-tile {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.06));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.2),
    0 3px 0 rgb(0 0 0 / 0.3);
  font-size: clamp(1.4rem, 7vw, 2.2rem);
  line-height: 1;
  transition:
    transform 0.12s,
    background-color 0.2s;
}

.mine-tile:not(:disabled) {
  cursor: pointer;
}

.mine-tile:hover:not(:disabled) {
  background-color: rgb(255 255 255 / 0.12);
  transform: translateY(-2px);
}

.mine-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mine-tile[data-state="gem"] {
  background: rgb(0 0 0 / 0.3);
  box-shadow: inset 0 0 0 2px var(--win);
  animation: tile-pop 0.25s ease-out;
}

.mine-tile[data-state="mine"] {
  background: var(--chip-red);
  box-shadow: none;
  animation: tile-pop 0.25s ease-out;
}

.mine-tile[data-state^="rest"] {
  background: rgb(0 0 0 / 0.25);
  box-shadow: none;
}

.mine-tile[data-state="rest-gem"] {
  opacity: 0.35;
}

.mine-tile[data-state="rest-mine"] {
  opacity: 0.7;
}

@keyframes tile-pop {
  from {
    transform: scale(0.7);
  }
}

.mines-next {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.btn-cash {
  background: linear-gradient(#e2485f, #b3243a);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.35),
    0 2px 0 #7d1626;
  color: #fff;
}
