.games {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1rem;
}

@media only screen and (min-width: 600px) {
  .games {
    padding-bottom: 0;
  }
}

@media only screen and (min-width: 1000px) {
  .games {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .game:has(.sudoku) {
    height: fit-content;
  }
}

@media only screen and (min-width: 1500px) {
  .games {
    grid-template-columns: repeat(3, 1fr);
  }
}

.game {
  background-color: var(--color-body);
  border-bottom: var(--border-main);
  flex: 1;
  padding: 2rem 1rem;
  position: relative;
  transition: border-color .2s ease-in;
}

@media only screen and (min-width: 600px) {
  .game {
    border-left: var(--border-main);
    padding: 2rem;
  }
}

.game:hover {
  border-color: var(--color-ludoly);
}

.game-group .game:not(:last-child) {
  margin-bottom: 1rem;
}

.home-header {
  align-items: center;
  border-bottom: var(--border-page-title);
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}

.home-header h2 {
  margin: 0;
}

.play {
  align-items: center;
  background-color: var(--color-play);
  display: none;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.play .button {
  font-size: var(--font-size-large);
}

.game:hover .play {
  display: flex;
}

.game-group .grid {
  border-bottom: 2px dashed silver;
  grid-template-columns: repeat(10, 1fr);
}
.game-group .grid .cell:not(.show) {
  background-color: var(--color-cell-not-show);
  color: white;
}
.game-group .grid .cell:nth-of-type(3n) {
  border-right: var(--border-grid-cell);
}
.game-group .grid .cell:nth-of-type(10n) {
  border-right: none;
}
.game-group .grid .cell:nth-child(n + 19):nth-child(-n + 20) {
  border-bottom: var(--border-grid-cell);
}
.game-group .grid .cell:nth-child(n + 21):nth-child(-n + 30) {
  border-bottom: none;
}
.n一, .n𝆑 {
  color: var(--color-n1);
}
.n二, .n𝄢 {
  color: var(--color-n2);
}
.n三, .n𝄋 {
  color: var(--color-n3);
}
.n四, .n𝆲 {
  color: var(--color-n4);
}
.minesweeper {
  font-family: var(--font-family-sudoku);
}
.mojisweeper {
  font-family: var(--font-family-mojidoku);
}
.mussweeper {
  font-family: var(--font-family-musdoku);
}
.flag {
  font-family: var(--font-family);
}