html, body, ul, li {
  margin: 0;
  border: 0;
  padding: 0;
}

canvas {
  display: block;
  width: 762;
  margin: 0 auto;
  background-color: blue;
}

p {
  text-align: center;
}

body {
  overflow: hidden;
  height: 100%;
}

html {
  overflow: hidden;
  height: 100%;
}

.info {
  position: absolute;
  top: 0;
  left: 0;
}

.touch-controls {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 5;
  opacity: 0.9;
}

.touch-joystick {
  display: flex;
  gap: 12px;
  pointer-events: auto;
}

.touch-jump {
  pointer-events: auto;
}

.touch-button {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 24px;
  opacity: 0.7;
  touch-action: none;
}

.touch-button:active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.touch-button.left::after,
.touch-button.right::after,
.touch-button.jump::after {
  content: '';
}

.hud {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  font-family: 'Press Start 2P', 'Courier New', monospace;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
  z-index: 6;
  pointer-events: none;
}

.hud .label {
  font-size: 12px;
  opacity: 0.8;
}

.hud .value {
  font-size: 18px;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .touch-controls {
    opacity: 1;
    visibility: visible;
  }

  .touch-button {
    width: 72px;
    height: 72px;
    font-size: 26px;
  }
}
