* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background: radial-gradient(1200px 700px at 50% -10%, #1d2733 0%, #0c0f14 60%);
  color: #e8e8e8;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  width: 100%;
  max-width: 800px;
}
h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 3px;
  color: #e52521;
  text-align: center;
}
h1 .en {
  display: block;
  font-size: 11px;
  letter-spacing: 4px;
  color: #8b95a5;
  margin-top: 4px;
}
#stage {
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
  width: 100%;
  max-width: 768px;
}
canvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.hint {
  font-size: 13px;
  color: #9aa4b2;
  text-align: center;
  line-height: 1.9;
  margin: 2px 0 0;
}
#touch {
  display: none;
  gap: 20px;
  margin-top: 4px;
}
#touch button {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 28px;
  user-select: none;
  touch-action: none;
}
#touch button:active { background: rgba(255, 255, 255, 0.25); }
#btnJ { background: rgba(229, 37, 33, 0.35); border-color: rgba(229, 37, 33, 0.7); }
@media (pointer: coarse) {
  #touch { display: flex; }
}
