.nb-game-panel {
  background: #111118;
  border: 1px solid #1e1e2e;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0 2rem;
  font-family: 'Inter', sans-serif;
}

.nb-game-ui {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
.nb-game-ui .nb-label { color: #555; letter-spacing: 1px; }
.nb-game-ui .nb-value { color: #00ff88; font-weight: 600; }
.nb-game-ui .nb-lives-value { color: #ff3355; font-weight: 600; }

#nb-canvas-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

#nb-canvas {
  background: radial-gradient(ellipse at center, #14142b 0%, #08080f 100%);
  border: 1px solid #1e1e2e;
  border-radius: 8px;
  box-shadow: 0 0 24px rgba(0,255,136,0.12);
  touch-action: none;
  width: 100%;
  max-width: 480px;
  height: auto;
  aspect-ratio: 480 / 600;
  display: block;
}

.nb-game-msg {
  text-align: center;
  margin-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #555;
  letter-spacing: 0.5px;
}

.nb-touch-controls {
  display: none;
  gap: 10px;
  margin-top: 14px;
}

.nb-touch-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0d14;
  border: 1px solid #1e1e2e;
  border-radius: 8px;
  padding: 14px 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.nb-touch-btn svg {
  width: 26px;
  height: 26px;
  stroke: #00ff88;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(0,255,136,0.5));
  pointer-events: none;
}
.nb-touch-btn:active {
  background: rgba(0,255,136,0.12);
  border-color: #00ff88;
  transform: scale(0.96);
}

@media (hover: none) and (pointer: coarse) {
  .nb-touch-controls { display: flex; }
  .nb-game-msg { display: none; }
}

@media (max-width: 500px) {
  .nb-game-panel { padding: 1rem; }
  .nb-game-ui { gap: 14px; font-size: 11px; }
}

@media (min-width: 640px) {
  #nb-canvas { max-width: 520px; }
}
