/* ---------- 全屏按钮 ---------- */
.fs-btn {
  display: none;
  position: fixed;
  right: calc(8px + env(safe-area-inset-right));
  bottom: calc(8px + env(safe-area-inset-bottom));
  z-index: 90;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 11px 0 9px;
  border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(8, 16, 10, 0.55);
  color: #eaf7e4;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.72;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  touch-action: manipulation;
  transition: opacity 0.15s, transform 0.08s;
}
.fs-btn:active { transform: scale(0.95); }
.fs-btn.is-hidden { display: none !important; }
html.is-mobile .fs-btn { display: inline-flex; }
.fs-icon { width: 15px; height: 15px; flex: none; }
.fs-label { font-family: inherit; }

/* ---------- 横屏提示 ---------- */
.rotate-tip {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 120;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  background: radial-gradient(circle at 50% 38%, #21351f, #0b120c 72%);
  color: #eaffd6;
}
.rotate-card { max-width: 340px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rotate-card h2 { margin: 0; font-size: 24px; color: #eaffd6; }
.rotate-card p { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(232, 248, 226, 0.8); }
.rotate-icon {
  position: relative;
  width: 54px;
  height: 88px;
  margin-bottom: 6px;
  border: 3px solid #c9ff9e;
  border-radius: 12px;
  box-shadow: 0 0 0 6px rgba(201, 255, 158, 0.08);
  animation: rotatePhone 2.2s ease-in-out infinite;
}
.rotate-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: #c9ff9e;
  transform: translateX(-50%);
}
@keyframes rotatePhone {
  0%, 18% { transform: rotate(0deg); }
  60%, 100% { transform: rotate(90deg); }
}

/* ---------- 提示气泡 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 130;
  max-width: 82vw;
  padding: 9px 15px;
  border-radius: 10px;
  background: rgba(8, 16, 10, 0.9);
  border: 1px solid rgba(180, 255, 160, 0.32);
  color: #eaffd6;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 命中震屏 ---------- */
#app.screen-shake { animation: screenShake 0.18s ease-in-out; }
@keyframes screenShake {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3px, 2px); }
  50% { transform: translate(3px, -2px); }
  75% { transform: translate(-2px, -2px); }
  100% { transform: translate(0, 0); }
}
