.game-canvas-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

#game-canvas {
  display: block;
  max-width: 100%;
  border: 1px solid rgba(68, 211, 255, 0.35);
  border-radius: 8px;
  box-shadow:
    0 0 24px rgba(68, 211, 255, 0.12),
    inset 0 0 40px rgba(0, 0, 0, 0.45);
  image-rendering: pixelated;
}

.dpad {
  display: grid;
  grid-template-columns: repeat(3, 52px);
  grid-template-rows: repeat(3, 52px);
  gap: 6px;
  user-select: none;
}

.dpad .spacer {
  pointer-events: none;
}

.dpad-btn {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid rgba(124, 176, 255, 0.35);
  background: rgba(68, 211, 255, 0.1);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.dpad-btn:active {
  background: rgba(68, 211, 255, 0.28);
  border-color: var(--primary);
}

.game-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

@media (min-width: 640px) {
  .dpad {
    display: none;
  }
}
