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

body {
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;

  font-family: "Orbitron", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.game-wrapper {
  width: 550px;
  height: 600px;

  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.game-wrapper.active {
  display: flex;
}

.board-wrapper {
  position: relative;
  width: fit-content;
  height: fit-content;
}

.board {
  width: 500px;
  height: 500px;
  box-sizing: content-box;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-content: space-around;

  border: 4px solid #555;
  border-collapse: collapse;
}

.cell {
  width: calc(500px / 3);
  height: calc(500px / 3);
  background: #ccc;
  border: 2px solid #aaa;
  border-collapse: collapse;

  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  font-size: calc(500px / 3);
  font-family: inherit;

  transition: all 200ms;
}

.cell:hover {
  background: #bbb;
}

.overlay {
  z-index: 9;
  width: 100%;
  height: 100%;
  display: none;
  top: 0;
  left: 0;
  background: rgb(100, 100, 100, 0.4);
  position: absolute;
}

.start-game {
  display: none;
}

.start-game.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title {
  font-size: 3rem;
  font-weight: 1000;
}

.player-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0 12px;
}

.start-game input[type="text"] {
  all: unset;

  font-size: 1.1rem;
  padding-bottom: 1px;
  width: 18ch;
}

.start-game input[type="text"]:hover,
.start-game input[type="text"]:focus {
  border-bottom: 1px solid #888;
  padding-bottom: 0;
}

.start-game input[type="text"]:first-child {
  text-align: right;
}

.start-game span {
  font-size: 1.1rem;
}

.start-game-btn,
.play-again-btn {
  all: unset;
  font-size: 1.3rem;
  font-weight: 100;
  text-align: center;

  border: 1px solid #444;
  background: #ccc;

  padding: 2px 24px;

  transition: all 200ms;
}

.play-again-btn {
  width: 250px;
  font-size: 1.5rem;
  padding: 8px 24px;
}

.start-game-btn:hover,
.start-game-btn:focus,
.play-again-btn:hover,
.play-again-btn:focus {
  background: #e4e4e4;
}

.msg {
  font-size: 1.6rem;
  font-weight: 200;
  width: 100%;
  padding-left: 20px;
}
