* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #0a0a12;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  overflow: hidden;
  font-family: 'Courier New', monospace;
}

#wrap {
  position: relative;
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

canvas {
  display: block;
  width: 100%;
  max-width: 800px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Mobile buttons */
#mobile-btns {
  display: none;
  width: 100%;
  max-width: 800px;
  padding: 8px 16px;
  justify-content: space-between;
  background: rgba(0,0,0,0.6);
}

.mb {
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  color: #fff;
  font-size: 1.4rem;
  padding: 12px 18px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  active-scale: 0.9;
  transition: background 0.1s;
}
.mb:active { background: rgba(255,255,255,0.28); }

#mb-left, #mb-right {
  display: flex;
  gap: 8px;
}

@media (max-width: 600px) {
  #mobile-btns { display: flex; }
}
@media (hover: none) and (pointer: coarse) {
  #mobile-btns { display: flex; }
}
