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

body {
  background-color: #000000;
  color: #ffffff;
  font-family: 'Courier New', Courier, monospace;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.game {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 160px;
}

.title {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2px;
  border-bottom: 2px solid #ffffff;
  padding-bottom: 8px;
  text-align: center;
}

.box {
  border: 2px solid #ffffff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.label {
  font-size: 11px;
  letter-spacing: 2px;
  color: #ededed;
  width: 100%;
  text-align: left;
  margin-top: 4px;
}

.next {
  background-color: #000000;
  display: block;
}

.stat-grp {
  width: 100%;
}

.value {
  font-size: 20px;
  font-weight: bold;
  width: 100%;
  text-align: left;
  margin-bottom: 4px;
}

.sound-btn {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  padding: 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 1px;
  width: 100%;
  transition: background 0.1s, color 0.1s;
}

.sound-btn:hover {
  background: #ffffff;
  color: #000000;
}

.board-container {
  position: relative;
  border: 2px solid #ffffff;
}

#board {
  background-color: #000000;
  display: block;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.pause {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.pause-resume {
  font-size: 11px;
  letter-spacing: 1px;
  color: #ededed;
  line-height: 1.6;
}

.ctrl-sidebar {
  width: 200px;
}

.ctrl-box {
  border: 2px solid #ffffff;
  padding: 12px;
}

.ctrl-title {
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 12px;
  color: #ededed;
  text-transform: uppercase;
}

.ctrl-instruct p {
  font-size: 11px;
  line-height: 1.8;
  color: #ededed;
}