.sound,
.head-actions button {
  min-height: 44px;
}

/* Keep the board geometry stable while status and result UI changes around it. */
html {
  scrollbar-gutter: stable;
}

.game-stage {
  width: 560px;
  max-width: 100%;
  flex: 0 0 auto;
  contain: layout;
}

.board-wrap,
.board {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
}

.board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

@media (max-width: 600px) {
  .game-stage {
    width: calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right));
  }
}
