body {
  background: #0a0a1a;
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.game-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  position: relative;
}

.back-link {
  position: absolute;
  top: 0;
  left: 0;
  color: #7c3aed;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.3s;
}
.back-link:hover { color: #ec4899; }

.game-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(20px, 4vw, 32px);
  background: linear-gradient(135deg, #10b981, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.game-subtitle {
  color: #94a3b8;
  font-size: 14px;
}

.game-area {
  position: relative;
}

canvas {
  border: 2px solid rgba(16,185,129,0.3);
  border-radius: 12px;
  background: #0d1117;
  display: block;
}

.score-board {
  display: flex;
  justify-content: space-between;
  padding: 12px 4px;
  font-size: 15px;
  color: #94a3b8;
}
.score-board strong {
  color: #10b981;
}

/* Overlay */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.overlay-box {
  background: rgba(10,10,26,0.95);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 16px;
  padding: 40px 48px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.overlay-box h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 20px;
  margin-bottom: 12px;
  color: #10b981;
}

.overlay-box p {
  color: #94a3b8;
  margin-bottom: 24px;
}

.btn-play {
  padding: 14px 40px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16,185,129,0.4);
}

/* Controls hint */
.controls-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 20px;
  opacity: 0.4;
}
.controls-row {
  display: flex;
  gap: 4px;
}
