/* ==========================================================================
   🎮 你比我猜游戏模块 专属 CSS (css/charades.css)
   ========================================================================== */

.charades-stage-vault {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  min-height: 70vh;
}

.charades-card {
  width: 100%;
  background: #ffffff;
  border-radius: 32px;
  padding: 40px;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.charades-card.setup {
  max-width: 520px;
}

.charades-card-header .game-icon {
  font-size: 48px;
}
.charades-card-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 8px;
}
.charades-card-header .game-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.charades-setup-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.charades-setup-form .form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}
.charades-setup-form label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}
.charades-setup-form input, .charades-setup-form select {
  width: 100%;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid #cbd5e1;
  font-size: 15px;
  outline: none;
  background: #f8fafc;
  font-family: inherit;
  box-sizing: border-box;
}

.word-pool-status-pill {
  background: #fee2e2;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 14px;
  color: var(--accent-primary);
}

.btn-trigger-game {
  width: 100%;
  padding: 18px;
  border-radius: 24px;
  border: none;
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}
.btn-trigger-game:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-2px);
}

/* 游戏进行中核心 UI */
.playing-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 28px;
  padding: 0 12px;
}

.status-group-name, .status-score-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.status-score-box { align-items: flex-end; }

.status-group-name .label, .status-score-box .label {
  font-size: 12px;
  color: var(--text-muted);
}
.status-group-name strong {
  font-size: 22px;
  color: var(--text-primary);
  font-weight: 800;
}
.status-score-box strong {
  font-size: 32px;
  color: #10b981;
  font-weight: 900;
}

.status-timer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #fee2e2;
  border: 4px solid var(--accent-primary);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
  transition: all 0.3s ease;
}
.status-timer-box.tension {
  background: #ef4444;
  border-color: #f87171;
  animation: pulseScale 0.5s infinite alternate;
}
.status-timer-box.tension .timer-number, .status-timer-box.tension .timer-unit {
  color: #ffffff;
}

@keyframes pulseScale {
  0% { transform: scale(1); }
  100% { transform: scale(1.12); }
}

.timer-number {
  font-size: 36px;
  font-weight: 900;
  color: var(--accent-primary);
  line-height: 1;
}
.timer-unit {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-primary);
}

.charades-word-display-box {
  width: 100%;
  min-height: 240px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid #e2e8f0;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  margin-bottom: 32px;
  box-sizing: border-box;
}

.charades-word-text {
  font-size: 72px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.charades-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  margin-bottom: 20px;
}

.btn-charades-action {
  flex: 1;
  max-width: 280px;
  padding: 20px 32px;
  border-radius: 24px;
  border: none;
  font-size: 20px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.btn-charades-action.skip {
  background: #f1f5f9;
  color: var(--text-secondary);
  border: 1px solid #cbd5e1;
}
.btn-charades-action.skip:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

.btn-charades-action.correct {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}
.btn-charades-action.correct:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 32px rgba(16, 185, 129, 0.5);
}

.btn-text-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
}
.btn-text-link:hover { color: var(--accent-primary); }

/* 3-2-1 巨幕全屏倒计时遮罩 */
.charades-countdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}
.charades-countdown-overlay.hidden { display: none; }

.countdown-big-number {
  font-size: 200px;
  font-weight: 900;
  color: #fbbf24;
  text-shadow: 0 0 80px rgba(251, 191, 36, 0.7);
  will-change: transform, opacity;
  transform: scale(1);
  opacity: 1;
}

.countdown-big-number.pop {
  animation: numPopOneShot 0.62s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes numPopOneShot {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.18); opacity: 1; }
  80% { transform: scale(0.98); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* 结算 Modal */
.reveal-modal-window.mini {
  max-width: 500px;
  padding: 32px;
}
.charades-result-box {
  margin: 24px 0;
  text-align: center;
}
.result-group-title { font-size: 20px; color: #cbd5e1; margin-bottom: 12px; }
.result-score-banner { font-size: 80px; font-weight: 900; color: #fbbf24; line-height: 1; }
.result-score-banner .score-unit { font-size: 24px; color: #fef08a; margin-left: 6px; }
.reveal-footer-group.flex-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  margin-top: 24px;
}

.btn-result-action {
  flex: 1;
  padding: 16px 24px;
  border-radius: 32px;
  border: none;
  font-size: 16px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.btn-result-action.primary {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  color: #0f172a;
}
.btn-result-action.primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.3);
}

.btn-result-action.gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #78350f;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}
.btn-result-action.gold:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.55);
}
