* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, #1b1b2e, #07070f 70%);
  color: #e8e8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.game {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
}

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

.panel {
  background: #12121f;
  border: 1px solid #2a2a40;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.panel h2 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #8a8aa8;
  text-align: center;
}

canvas {
  display: block;
  border-radius: 4px;
}

.playfield {
  background: #0b0b14;
  border: 2px solid #2a2a40;
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.stats div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid #22223a;
}
.stats div:last-child { border-bottom: none; }
.stats span { font-size: 12px; color: #8a8aa8; text-transform: uppercase; }
.stats strong { font-size: 20px; font-variant-numeric: tabular-nums; }

.controls ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 1.9;
  color: #b8b8cc;
}
.controls li::before { content: "· "; color: #5a5a78; }

@media (max-width: 760px) {
  .game { flex-wrap: wrap; justify-content: center; }
  .side { width: 140px; }
}
