html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #1a2a1a;
  overflow: hidden;
  position: fixed;              /* 防止移动端地址栏滑动 */
  touch-action: none;           /* 禁用双击缩放/下拉刷新 */
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

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

#game {
  display: block;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  cursor: default;
}

/* 竖屏提示：手机竖屏时全屏遮罩 */
#rotate-hint {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: #1a2a1a;
  color: #cde8b0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Microsoft YaHei", sans-serif;
}
#rotate-hint .phone-icon {
  font-size: 64px;
  animation: rotate-phone 1.6s ease-in-out infinite;
}
#rotate-hint p { font-size: 22px; margin: 18px 0 0; }
#rotate-hint p.sub { font-size: 14px; opacity: 0.6; margin-top: 6px; }
@keyframes rotate-phone {
  0%, 25%  { transform: rotate(0deg); }
  60%, 100% { transform: rotate(90deg); }
}

/* 仅在"触屏 + 竖屏"时显示提示、隐藏游戏 */
@media (pointer: coarse) and (orientation: portrait) {
  #rotate-hint { display: flex; }
  #game-wrap { display: none; }
}
