html, body {
  margin: 0;
  height: 100%;
  background: #14161c;
  color: #eee;
  font-family: system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

#wrap {
  text-align: center;
}

h1 {
  margin: 0.4em 0;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
}

canvas {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  background: #202536;
  border: 3px solid #444a5e;
  border-radius: 8px;
  image-rendering: pixelated;
}

#hint {
  opacity: 0.7;
  font-size: 0.85rem;
}

#touch-controls {
  display: none;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 16px;
  padding: 0 8px;
  user-select: none;
  -webkit-user-select: none;
}

.tc-group {
  display: flex;
  gap: 14px;
}

.tc-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.tc-btn:active {
  background: rgba(255, 255, 255, 0.3);
}

.tc-jump {
  width: 76px;
  height: 76px;
}

@media (pointer: coarse) {
  #touch-controls {
    display: flex;
  }
}
