*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Mona Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  background: linear-gradient(
    90deg,
    rgba(173, 58, 150, 0.98) 0%,
    rgba(158, 87, 199, 1) 50%,
    rgb(118, 89, 192) 100%
  );
}

.app {
  display: flex;
  flex-direction: column;
  align-self: center;
  margin: auto;
  margin-top: 60px;
}

.app__header {
  margin: auto;
  margin-bottom: 60px;
  font-weight: 500;
  color: white;
  font-size: clamp(1.125rem, 1rem + 0.556vw, 1.5rem);
  letter-spacing: 1px;
  word-spacing: 3px;
}

.game__grid {
  display: grid;
  grid-gap: 12px;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  margin: auto;
  margin-bottom: 40px;
}

.cell {
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 28px;
  border-radius: 8px;
  border: 2px solid white;

  color: rgb(62, 61, 61);
  background-color: rgb(216, 216, 164);
}

.cell:hover {
  box-shadow: 0.2px 0.2px 12px 0.5px rgb(62, 61, 61);
  cursor: pointer;
}
.cell-disabled {
  pointer-events: none;
}

/* Controls */
.controls {
  margin: auto;
  height: fit-content;
  width: fit-content;
  padding: 16px;
  margin-bottom: 20px;
}

.btn--reset {
  font-size: clamp(0.875rem, 0.792rem + 0.37vw, 1.125rem);
  background-color: rgb(50, 47, 47);
  color: white;

  letter-spacing: 2px;
  padding: 8px 10px;

  border-radius: 6px;
  border: none;

  cursor: pointer;
}

.resetBtn:hover {
  box-shadow: 0.2px 0.2px 12px 0.5px rgb(50, 47, 47);
}

.status {
  margin-top: 120px;
  margin: auto;

  text-align: center;
  font-size: 32px;
  color: white;

  letter-spacing: 2px;
  word-spacing: 2px;
}

/* Responsive */
@media (max-width: 440px) {
  .game__grid {
    display: grid;
    grid-gap: 14px;
    grid-template-columns: minmax(100px, 1fr) minmax(100px, 1fr) minmax(
        100px,
        1fr
      );
  }

  .cell {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 400px) {
  .game__grid {
    display: grid;
    grid-gap: 14px;
    grid-template-columns: minmax(90px, 1fr) minmax(90px, 1fr) minmax(90px, 1fr);
  }

  .cell {
    width: 90px;
    height: 90px;
  }
}
