body {
  margin: 0;
  overflow: hidden;
  font-family: Arial, sans-serif;
  background: #87ceeb;
}

canvas {
  display: block;
}

/* 加载提示 */
.loading-panel {
  position: fixed;
  left: 20px;
  top: 20px;
  z-index: 30;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  color: white;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
}

.loading-panel.error {
  background: rgba(160, 0, 0, 0.82);
}

/* 音乐自动播放提示 */
.music-notice {
  position: fixed;
  left: 20px;
  bottom: 24px;
  z-index: 35;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.music-notice.hidden {
  display: none;
}

/* 视觉移动：屏幕中心聚焦点 + 悬浮尖头 */
.gaze-move-hud {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 26;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.gaze-move-hud.hidden {
  display: none;
}

.gaze-focus-point {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(0, 0, 0, 0.75);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.85);
}

.gaze-move-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, 64px);
  background: #fff200;
  clip-path: polygon(50% 0%, 100% 100%, 50% 74%, 0% 100%);
  filter: drop-shadow(0 0 8px rgba(255, 242, 0, 0.95));
  opacity: 0.95;
}

.gaze-move-hud.is-moving .gaze-focus-point {
  background: #39ff88;
  box-shadow: 0 0 14px rgba(57, 255, 136, 0.95);
}

.gaze-move-hud.is-moving .gaze-move-arrow {
  background: #39ff88;
  filter: drop-shadow(0 0 10px rgba(57, 255, 136, 0.95));
}

/* 左上角简洁提示：已隐藏 */
.tips-panel {
  display: none;
}

.tips-panel p {
  display: none;
}

/* 对话框 */
.dialog-box {
  position: fixed;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  z-index: 40;
  width: min(760px, calc(100vw - 40px));
  pointer-events: none;
}

.dialog-box.hidden {
  display: none;
}

.dialog-content {
  pointer-events: auto;
  background: rgba(20, 18, 18, 0.88);
  color: #fff;
  border: 2px solid rgba(180, 30, 30, 0.9);
  border-radius: 18px;
  padding: 20px 22px 18px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

.dialog-title {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: bold;
  color: #ffb3b3;
}

.dialog-content p {
  margin: 0;
  line-height: 1.8;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.dialog-line {
  margin-bottom: 14px;
}

.dialog-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.dialog-option-btn {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 179, 179, 0.5);
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(80, 20, 20, 0.8);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.5;
}

.dialog-option-btn:hover {
  background: rgba(130, 30, 30, 0.9);
}

/* 蓝牙手柄选择选项时的高亮 */
.dialog-option-btn.gamepad-selected {
  background: rgba(255, 242, 0, 0.9);
  color: #000;
  border-color: #000;
}

.dialog-reply {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 3px solid rgba(255, 179, 179, 0.8);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #ffd6d6;
}

.dialog-reply.hidden {
  display: none;
}

.dialog-close-btn {
  margin-top: 14px;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  background: #8b1e1e;
  color: white;
  cursor: pointer;
  font-size: 14px;
}

.dialog-close-btn:hover {
  background: #b52b2b;
}

/* MVP 结算画面 */
.mvp-result-screen {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
  width: 100vw;
  height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mvp-result-screen.hidden {
  display: none;
}

.mvp-result-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 右下角 VR 切换按钮 */
.vr-control {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
}

.vr-button {
  border: none;
  padding: 14px 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.vr-button:hover {
  background: rgba(40, 40, 40, 0.92);
}