/* Data Engineer Hero page styles. */
#game-container {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 960 / 624;
  margin: 0 auto;
}
#game-container canvas {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ── Mobile controls ── */
#mobile-controls {
  display: none;          /* shown by JS only when touch detected */
  max-width: 960px;
  width: 100%;
  margin: 8px auto 0;
  padding: 0 8px 4px;
  box-sizing: border-box;
  justify-content: space-between;
  align-items: flex-end;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
#dpad {
  display: grid;
  grid-template-areas: '. up .' 'left down right';
  grid-template-columns: repeat(3, 54px);
  grid-template-rows: repeat(2, 54px);
  gap: 4px;
}
#btn-dpad-up    { grid-area: up; }
#btn-dpad-left  { grid-area: left; }
#btn-dpad-down  { grid-area: down; }
#btn-dpad-right { grid-area: right; }
.dpad-btn {
  width: 54px; height: 54px;
  background: rgba(79,195,247,.10);
  border: 1px solid rgba(79,195,247,.35);
  border-radius: 10px;
  color: #4fc3f7;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.dpad-btn:active { background: rgba(79,195,247,.28); }
#action-btns { display: flex; gap: 10px; align-items: flex-end; }
.action-btn {
  width: 62px; height: 62px;
  background: rgba(79,195,247,.10);
  border: 1px solid rgba(79,195,247,.45);
  border-radius: 50%;
  color: #4fc3f7;
  font-family: monospace; font-size: 17px; font-weight: bold;
  display: flex; align-items: center; justify-content: center;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.action-btn:active { background: rgba(79,195,247,.28); }
#btn-cancel { border-color: rgba(255,171,64,.45); color: #ffab40; }
#btn-cancel:active { background: rgba(255,171,64,.25); }
#btn-mute { width: 46px; height: 46px; font-size: 16px; border-radius: 8px; }
