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

body {
  background: #0f0f1a;
  color: #eee;
  font-family: 'Courier New', Courier, monospace;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.game-container a {
  color: #00e5ff;
  font-size: 12px;
  text-decoration: none;
}

.game-container a:hover {
  text-decoration: underline;
}

.game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

h1 {
  letter-spacing: 6px;
  color: #00e5ff;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
  font-size: 22px;
}

.main-area {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.board-wrapper {
  position: relative;
  border: 4px solid #333;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
  cursor: crosshair;
}

#board {
  display: block;
  background: #1a1a2e;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
}

.overlay.hidden {
  display: none;
}

.overlay p {
  font-size: 16px;
  color: #fff;
}

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 150px;
}

.panel-box {
  background: #1a1a2e;
  border: 2px solid #333;
  border-radius: 6px;
  padding: 8px 10px;
  text-align: center;
}

.panel-box h2 {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.panel-box p {
  font-size: 20px;
  color: #00e5ff;
  font-weight: bold;
}

#next {
  display: block;
  margin: 0 auto;
  background: #0f0f1a;
}

.controls-box ul {
  list-style: none;
  text-align: left;
  font-size: 11px;
  color: #aaa;
  line-height: 1.6;
}

button {
  width: 100%;
  padding: 8px;
  margin-top: 6px;
  background: #00e5ff;
  color: #0f0f1a;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

button:hover {
  background: #4df0ff;
}

button:active {
  transform: scale(0.97);
}

#restart-btn {
  background: #ff4d6d;
}

#restart-btn:hover {
  background: #ff7a91;
}
