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

body {
  background: #1a1a2e;
  color: #eee;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  text-align: center;
  position: relative;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #e94560;
  letter-spacing: 4px;
  text-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
}

.game-area {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}

#board {
  border: 2px solid #e94560;
  background: #0f3460;
  box-shadow: 0 0 30px rgba(233, 69, 96, 0.3);
  display: block;
}

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 140px;
}

.panel-section {
  background: #16213e;
  border: 1px solid #0f3460;
  border-radius: 8px;
  padding: 12px;
}

.panel-section h3 {
  font-size: 0.75rem;
  color: #e94560;
  margin-bottom: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#next {
  display: block;
  margin: 0 auto;
  background: #0f3460;
  border-radius: 4px;
}

#score, #level, #lines {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  text-align: center;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

button {
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 1px;
}

#startBtn {
  background: #e94560;
  color: #fff;
}

#startBtn:hover {
  background: #c73652;
  box-shadow: 0 0 12px rgba(233, 69, 96, 0.5);
}

#pauseBtn {
  background: #0f3460;
  color: #eee;
  border: 1px solid #e94560;
}

#pauseBtn:hover:not(:disabled) {
  background: #16213e;
}

#pauseBtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.key-guide {
  background: #16213e;
  border: 1px solid #0f3460;
  border-radius: 8px;
  padding: 12px;
}

.key-guide h3 {
  font-size: 0.75rem;
  color: #e94560;
  margin-bottom: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.key-guide p {
  font-size: 0.75rem;
  color: #aaa;
  margin: 4px 0;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 30, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
}

.overlay-content {
  text-align: center;
  padding: 40px;
  background: #16213e;
  border: 2px solid #e94560;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(233, 69, 96, 0.4);
}

.overlay-content h2 {
  font-size: 2rem;
  color: #e94560;
  margin-bottom: 12px;
}

.overlay-content p {
  color: #aaa;
  margin-bottom: 24px;
}

#overlayBtn {
  background: #e94560;
  color: #fff;
  padding: 12px 32px;
  font-size: 1rem;
}

#overlayBtn:hover {
  background: #c73652;
  box-shadow: 0 0 16px rgba(233, 69, 96, 0.6);
}

.hidden {
  display: none !important;
}
