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

html,
body {
  width: 100%;
  height: 100%;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #0f1118;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  color: #e8eaef;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

#game-shell {
  width: 100%;
  height: 100%;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#game-root {
  position: relative;
  cursor: pointer;
  touch-action: none;
}

canvas {
  display: block;
  position: relative;
  z-index: 1;
}

#game-title {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 3;
  margin: 0;
  transform: translateX(-50%);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: #f8fafc;
  pointer-events: none;
  user-select: none;
}

#hud {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 2;
  font-size: 13px;
  letter-spacing: 0.08em;
  opacity: 0.65;
  pointer-events: none;
  user-select: none;
}

#hint {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  color: rgba(232, 234, 239, 0.75);
  pointer-events: none;
  user-select: none;
}

#message {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.35s ease;
}

#message.show {
  opacity: 0.9;
}
