/* =========================================================
   互动娱乐游戏 - 公共样式
   所有游戏页面共用，提供基础重置、字体、颜色变量等
   ========================================================= */

/* CSS 变量 - 统一主题色 */
:root {
  --game-primary: #FFD700;        /* 金色主色 */
  --game-secondary: #FFA500;      /* 橙色辅色 */
  --game-bg-dark: #1a0a2e;        /* 深紫背景 */
  --game-bg-darker: #0d0015;      /* 极深背景 */
  --game-text: #FFD700;           /* 金色文字 */
  --game-text-muted: rgba(255,215,0,0.7);  /* 弱化文字 */
  --game-border: rgba(212,175,55,0.4);     /* 金色边框 */
  --game-card-bg: rgba(139,90,43,0.3);     /* 卡片背景 */
  --game-success: #4CAF50;
  --game-danger: #f44336;
  --game-warning: #ff9800;
}

/* 基础重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

body {
  background: radial-gradient(ellipse at center, #1a0a2e 0%, #0d0015 100%);
  color: var(--game-text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* 隐藏滚动条但保留滚动功能 */
::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* 通用返回按钮（覆盖各游戏自定义样式不一致的情况） */
.game-back-btn {
  position: fixed;
  top: 48px;
  left: 12px;
  width: 36px;
  height: 36px;
  background: rgba(139,90,43,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 1000;
  border: 1.5px solid rgba(212,175,55,0.3);
  color: #FFD700;
}
.game-back-btn:active { transform: scale(0.92); }

/* 通用加载遮罩 */
.game-loading-mask {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.game-loading-mask .spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(255,215,0,0.2);
  border-top-color: #FFD700;
  border-radius: 50%;
  animation: game-spin 0.8s linear infinite;
}
@keyframes game-spin { to { transform: rotate(360deg); } }

/* 通用提示弹窗 */
.game-toast {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.9);
  color: #FFD700;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid rgba(212,175,55,0.5);
  font-size: 14px;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.game-toast.show { opacity: 1; }

/* 未登录提示遮罩 */
.game-auth-mask {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #FFD700;
  text-align: center;
  padding: 30px;
}
.game-auth-mask h3 {
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.game-auth-mask p {
  font-size: 13px;
  color: rgba(255,215,0,0.7);
  margin-bottom: 24px;
  line-height: 1.6;
}
.game-auth-mask .login-btn {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1a0a2e;
  border: none;
  padding: 10px 32px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}
