:root {
  --bg: #0b1020;
  --panel: #0f1724;
  --muted: #9aa4b2;
  --glass: rgba(255,255,255,0.04);
}

* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  display: flex;
  gap: 20px;
  padding: 20px;
}

.game-wrap {
  background: var(--panel);
  padding: 16px;
  border-radius: 10px;
}

#tetris {
  display: block;
  background: #03040a;
  image-rendering: pixelated;
  border-radius: 6px;
  width: 240px;
  height: 400px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  background: var(--glass);
  padding: 12px;
  border-radius: 8px;
}

.hud-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.label {
  color: var(--muted);
  font-size: 13px;
}

.value {
  font-weight: 600;
  font-size: 18px;
}

#next {
  background: transparent;
  image-rendering: pixelated;
  width: 120px;
  height: 120px;
}

.controls {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

button, select {
  cursor: pointer;
  background: var(--glass);
  color: rgb(255, 255, 255);
  border: none;
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 600;
}

button:hover, select:hover {
  background: rgba(255,255,255,0.08);
}

#score {
  color: #ffffff; 
}

#level {
  color: #ffffff; 
}

#lines {
  color: #ffffff; 
}