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

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #0f0f23;
  font-family: Arial, sans-serif;
  color: #fff;
}

.container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
}

#board {
  background: #1a1a3e;
  border: 3px solid #333;
  box-shadow: 0 0 20px rgba(0, 150, 255, 0.3);
}

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 160px;
}

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

.panel h2 {
  font-size: 14px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

#score, #level, #lines {
  font-size: 24px;
  font-weight: bold;
  color: #4fc3f7;
}

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

button {
  background: #4fc3f7;
  color: #0f0f23;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  margin: 4px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  width: calc(100% - 8px);
}

button:hover {
  background: #81d4fa;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10;
}

.overlay h1 {
  font-size: 48px;
  color: #ff5252;
}

.hidden {
  display: none;
}
