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-point {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1000;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 242, 0, 0.95);
  border-radius: 50%;
  box-shadow:
    0 0 10px rgba(255, 242, 0, 0.95),
    0 0 22px rgba(255, 242, 0, 0.55);
  pointer-events: none;
}

.gaze-point::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%);
  background: #fff200;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 242, 0, 1);
}

.gaze-progress {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%) scale(0.7);
  border: 3px solid rgba(255, 242, 0, 0.95);
  border-radius: 50%;
  opacity: 0;
}

.gaze-point.gazing .gaze-progress {
  animation: gazeProgressAnim 1.5s linear forwards;
}

@keyframes gazeProgressAnim {
  0% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(0.7);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

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

.tips-panel p {
  display: none;
}

/* 对话框 */
.dialog-box {
  position: fixed;
  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -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-option-btn.gaze-hover,
.dialog-close-btn.gaze-hover,
.dialog-next-btn.gaze-hover,
.baozang-retry-btn.gaze-hover {
  background: rgba(255, 242, 0, 0.95) !important;
  color: #000 !important;
  border-color: #000 !important;
}

.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);
}