.detail-header {
  align-items: center;
  border-bottom: var(--border-page-title);
  border-top: var(--border-page-title);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 0;
}

@media only screen and (min-width: 1000px) {
  .detail-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    position: relative;
    text-align: center;
  }
}

.detail-header .button {
  grid-column: 1 / 2;
  grid-row: 1;
  position: relative;
  z-index: 10;
}

.game-title {
  grid-column: 1 / 4;
  grid-row: 1;
  margin: 0;
}

.detail-header .tag {
  grid-column: 3 / 4;
  grid-row: 1;
}

.tag {
  background-color: var(--color-difficulty);
  color: var(--color-text-inverse);
  margin: 0;
  padding: .25rem .5rem;
}

.game {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  width: 100vw;
}

@media only screen and (min-width: 750px) {
  .page__game .grid {
    max-width: 1000px;
    min-width: 600px;
    width: 85vh;
  }
}
@media only screen and (max-width: 1000px) {
  .page__game main {
    padding: 0;
  }
  .page__game .content {
    border-left: none !important;
    border-bottom: 1px solid silver !important;
    padding: 2rem 1rem !important;
  }
}

.cell {
  align-items: center;
  aspect-ratio: 1;
  border-bottom: var(--border-grid-cell);
  border-right: var(--border-grid-cell);
  display: flex;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
}

.minesweeper {
  font-family: var(--font-family-sudoku);
}

.mojisweeper {
  font-family: var(--font-family-mojidoku);
}

.mussweeper {
  font-family: var(--font-family-musdoku);
}

.cell:not(.show) {
  background-color: var(--color-cell-not-show);
}

.cell:not(.show):hover {
  background-color: silver;
  cursor: pointer;
}

.cell:nth-of-type(10n) {
  border-right: none;
}

.n1, .n一, .n𝆑 {
  color: var(--color-n1);
}

.n2, .n二, .n𝄢 {
  color: var(--color-n2);
}

.n3, .n三, .n𝄋 {
  color: var(--color-n3);
}

.n4, .n四, .n𝆲 {
  color: var(--color-n4);
}

.n5, .n五, .n𝄡 {
  color: var(--color-n5);
}

.n6, .n六, .n𝄵 {
  color: var(--color-n6);
}

.n7, .n七, .n𝅘𝅥𝅮 {
  color: var(--color-n7);
}

.n8, .n八, .n𝆱 {
  color: var(--color-n8);
}

.mine {
  color: var(--color-text);
  font-family: var(--font-family);
}

.flag {
  color: white;
  font-family: var(--font-family);
}

#instructions {
  border-top: 1px solid silver;
  padding-top: 3rem;
}

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

.win,
.lose {
  display: none;
}

.win.show,
.lose.show {
  display: block;
}

.overlay__result.show {
  display: flex;
}

.overlay__result > div {
  align-items: center;
  background-color: var(--color-ludoly);
  color: white;
  display: flex;
  flex-direction: column;
  padding: 2rem 2.5rem;
  text-align: center;
}

.overlay__result p {
  margin-bottom: 1.5rem;
}