/* Derived without visual changes from ELUVK interaction.css (MIT). */
/* 人类交互对战模式专用样式 */

/* 顶部/局势交互引导栏 (固定高度约束，杜绝动态按钮出没导致的版面上下抖动) */
.turn-guide-banner {
  background: linear-gradient(90deg, #191e36, #141f32);
  border: 1px solid #3d4580;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  padding: 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  box-sizing: border-box;
  overflow: hidden;
}

.guide-text {
  font-size: 0.84rem;
  font-weight: 700;
  color: #e0e7ff;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}

.guide-badge {
  background: #4f46e5;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(79, 70, 229, 0.4);
}

.action-bar-buttons {
  display: flex;
  gap: 6px;
  align-items: center;
  height: 28px;
  flex-shrink: 0;
}

.action-bar-buttons button {
  height: 28px;
  padding: 0 11px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 4px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1;
  transition: all 0.15s ease;
}

/* 棋盘交互高亮与选取 */
.board-cell.cell-clickable {
  cursor: pointer;
}

.board-cell.cell-clickable:hover {
  background-color: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  transform: scale(1.03);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

.board-cell.cell-selected {
  background-color: rgba(251, 191, 36, 0.18) !important;
  border: 2px solid #fbbf24 !important;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.55);
  transform: scale(1.04);
  z-index: 10;
}

.board-cell.cell-selected .token {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8), 0 0 8px #fff;
  border-color: #fbbf24;
}

/* 选中顺序紧贴角标 (1, 2, 3) - 绝对贴合格子右上角 */
.selected-order-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fbbf24;
  color: #000;
  font-size: 0.68rem;
  font-weight: 800;
  font-family: monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.85);
  border: 1.5px solid #fff;
  z-index: 25;
  pointer-events: none;
  animation: badgePop 0.15s ease-out;
}

@keyframes badgePop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.board-cell.cell-candidate {
  border-color: #34d399 !important;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.45);
}

.board-cell.cell-highlight {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
  animation: pulse-border 2.4s infinite;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 4px rgba(251, 191, 36, 0.25); }
  50% { box-shadow: 0 0 12px rgba(251, 191, 36, 0.65); }
}

/* 卡牌交互高亮与操作按钮 */
.card-item.affordable {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.55), inset 0 0 6px rgba(251, 191, 36, 0.25) !important;
  animation: pulse-affordable 2.5s infinite ease-in-out;
}

@keyframes pulse-affordable {
  0%, 100% {
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.35), inset 0 0 4px rgba(251, 191, 36, 0.18);
  }
  50% {
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.75), inset 0 0 8px rgba(251, 191, 36, 0.35);
  }
}

.card-action-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(3px);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 20;
}

.card-item:hover .card-action-overlay {
  opacity: 1;
  pointer-events: auto;
}

.card-action-btn {
  padding: 5px 9px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  width: 82%;
  text-align: center;
}

.deck-reserve-btn {
  font-size: 0.72rem;
  padding: 2px 7px;
  background: #273145;
  border: 1px solid #3d4a66;
  border-radius: 4px;
  color: #f1f5f9;
  cursor: pointer;
  transition: all 0.15s;
}

.deck-reserve-btn:hover:not(:disabled) {
  background: #364461;
  border-color: var(--accent-gold);
}

/* 模态弹窗 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* 游戏决策类模态框（变色卡定色、购卡支付方案等）：使用轻量透视背景，无模糊滤镜，绝不阻挡查看版图 */
.modal-overlay.modal-in-game {
  background: rgba(4, 7, 13, 0.28);
  backdrop-filter: none;
  pointer-events: none;
}

.modal-overlay.modal-in-game .modal-box {
  pointer-events: auto;
  backdrop-filter: blur(12px);
  background: rgba(18, 26, 44, 0.94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 24px rgba(251, 191, 36, 0.22);
}

.modal-box {
  background: #141c2e;
  border: 1.5px solid rgba(251, 191, 36, 0.35);
  border-radius: 12px;
  padding: 16px 20px;
  max-width: 520px;
  width: 92%;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 20px rgba(251, 191, 36, 0.15);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: modalFadeIn 0.18s ease-out;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* 变色卡专属紧凑弹窗 */
.modal-box.modal-box-joker {
  max-width: 540px;
  width: 94%;
}

/* 悬停或切换透视版图状态 */
.modal-box.modal-peeking {
  opacity: 0.08 !important;
  pointer-events: none !important;
  transition: opacity 0.12s ease;
}

.modal-box.modal-translucent-toggled {
  opacity: 0.42;
  transition: opacity 0.15s ease;
}
.modal-box.modal-translucent-toggled:hover {
  opacity: 0.96;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--accent-gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  user-select: none;
}

.modal-title-left {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: grab;
}

.modal-title-left:active {
  cursor: grabbing;
}

.drag-handle-icon {
  color: var(--accent-gold);
  font-size: 0.95rem;
  opacity: 0.75;
  display: inline-flex;
  align-items: center;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-modal-peek {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.74rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
  user-select: none;
}

.btn-modal-peek:hover {
  background: rgba(251, 191, 36, 0.22);
  border-color: #fbbf24;
  color: #fff;
}

.btn-modal-peek.active {
  background: #f59e0b;
  border-color: #d97706;
  color: #000;
  font-weight: 700;
}

.modal-body {
  font-size: 0.84rem;
  color: #e2e8f0;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 弹窗中目标卡牌简要预览横幅 */
.modal-card-summary {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(10, 16, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
}

.modal-card-thumb {
  width: 44px;
  height: 66px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  background-color: #1a1614;
}

.modal-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.modal-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-card-name {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--accent-gold);
}

.modal-card-badges {
  display: flex;
  gap: 4px;
}

.modal-card-cost-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
}

.modal-card-cost-line .cost-label {
  color: var(--text-muted);
}

.modal-card-cost-line .cost-chips {
  display: flex;
  gap: 4px;
  align-items: center;
}

.modal-guide-text {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.45;
}

.modal-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 4px 0;
}

.modal-options:has(.gem-picker-btn) {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* 支付方案卡片 (Visual Plan Card) */
.visual-plan-card {
  width: 100%;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  user-select: none;
  box-sizing: border-box;
}

.visual-plan-card.plan-default {
  background: rgba(14, 26, 44, 0.85);
  border: 1.5px solid rgba(56, 189, 248, 0.38);
}

.visual-plan-card.plan-default:hover {
  background: rgba(18, 34, 58, 0.98);
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), 0 0 12px rgba(56, 189, 248, 0.28);
}

.visual-plan-card.plan-gold {
  background: rgba(26, 22, 14, 0.85);
  border: 1.5px solid rgba(251, 191, 36, 0.35);
}

.visual-plan-card.plan-gold:hover {
  background: rgba(36, 30, 18, 0.98);
  border-color: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), 0 0 14px rgba(251, 191, 36, 0.28);
}

.visual-plan-card:active {
  transform: translateY(0) scale(0.99);
}

.visual-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}

.visual-plan-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.visual-plan-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #f8fafc;
}

.visual-plan-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.tag-default {
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.tag-gold {
  background: rgba(251, 191, 36, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.visual-plan-id-badge {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: monospace;
}

.visual-plan-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.visual-plan-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.visual-plan-desc {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.visual-plan-chips-line {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 0.76rem;
}

.plan-select-btn-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 12px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.visual-plan-card.plan-default:hover .plan-select-btn-indicator {
  color: #ffffff;
  background: #0284c7;
  border-color: #38bdf8;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.45);
}

.visual-plan-card.plan-gold:hover .plan-select-btn-indicator {
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #b45309);
  border-color: #f59e0b;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.45);
}

.modal-options.joker-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: 100%;
  padding: 4px 0;
}

@media (max-width: 620px) {
  .modal-options.joker-options {
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  }
}

.gem-picker-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: rgba(14, 20, 32, 0.92);
  border: 1.5px solid #2e3b52;
  border-radius: 10px;
  padding: 8px 6px 7px;
  cursor: pointer;
  transition: all 0.16s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  box-sizing: border-box;
}

.gem-picker-btn:hover {
  background: rgba(28, 40, 64, 0.98);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), 0 0 10px rgba(251, 191, 36, 0.25);
}

.gem-picker-btn:active {
  transform: translateY(0) scale(0.97);
}

.gem-picker-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.gem-picker-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}

.gem-picker-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.gem-picker-sub {
  font-size: 0.64rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

.gem-picker-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  margin-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 4px;
  font-size: 0.66rem;
}

.gem-stat-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94a3b8;
  white-space: nowrap;
}

.gem-stat-line .stat-num {
  font-weight: 700;
  color: #e2e8f0;
}

.gem-stat-line .stat-num.bonus-highlight {
  color: #38bdf8;
  font-size: 0.72rem;
}

.modal-drag-hint {
  font-size: 0.72rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.35;
  width: 100%;
}

.action-bar-color-btn {
  padding: 3px 8px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 4px;
}

.action-bar-color-btn:hover {
  border-color: var(--accent-gold);
  color: #fff;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #2a354a;
  padding-top: 10px;
}

/* =========================================================
   即时卡牌悬停浮层 (Card Hovercard) 
   ========================================================= */
.card-hovercard {
  position: fixed;
  z-index: 1000;
  background: rgba(18, 24, 38, 0.96);
  border: 1.5px solid var(--accent-gold);
  border-radius: 10px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.85), 0 0 16px rgba(251, 191, 36, 0.25);
  display: flex;
  padding: 12px;
  gap: 14px;
  max-width: 450px;
  pointer-events: none;
  animation: hovercardFadeIn 0.15s ease-out;
  backdrop-filter: blur(10px);
}

@keyframes hovercardFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.hovercard-left {
  flex-shrink: 0;
}

.hovercard-preview-card {
  width: 126px;
  height: 190px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 16px rgba(0,0,0,0.8);
  background-color: #171412;
  image-rendering: -webkit-optimize-contrast;
  filter: contrast(1.05) brightness(1.02) saturate(1.05);
}

.hovercard-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 220px;
}

.hovercard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 5px;
}

.hovercard-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.hovercard-badges {
  display: flex;
  gap: 5px;
}

.badge-points {
  background: rgba(234, 179, 8, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(234, 179, 8, 0.5);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.badge-crowns {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.5);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.hovercard-bonus {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.hovercard-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.75rem;
}

.hovercard-label {
  color: var(--text-muted);
}

.hovercard-chips-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.hovercard-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 2px 7px 2px 3px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  line-height: 1;
}

.hovercard-chip .chip-token-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.hovercard-chip .chip-qty {
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1;
  letter-spacing: 0.5px;
}

/* 针对不同颜色的微弱主题修饰 */
.hovercard-chip.chip-blue  { border-color: rgba(56, 189, 248, 0.35); }
.hovercard-chip.chip-white { border-color: rgba(248, 250, 252, 0.35); }
.hovercard-chip.chip-green { border-color: rgba(52, 211, 153, 0.35); }
.hovercard-chip.chip-black { border-color: rgba(148, 163, 184, 0.35); }
.hovercard-chip.chip-red   { border-color: rgba(248, 113, 113, 0.35); }
.hovercard-chip.chip-pearl { border-color: rgba(244, 114, 182, 0.35); }
.hovercard-chip.chip-gold  { border-color: rgba(251, 191, 36, 0.35); }

/* 缺少宝石时的 chip 样式 */
.hovercard-chip.deficit-chip {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 5px rgba(239, 68, 68, 0.25);
}

.hovercard-chip.deficit-chip .chip-qty {
  color: #fca5a5;
}

.inline-token {
  width: 15px !important;
  height: 15px !important;
  display: inline-block;
  vertical-align: -2.5px;
  margin: 0 1px;
}

.hovercard-status {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 6px;
  margin-top: 2px;
}

.hovercard-status.can-afford {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
  line-height: 1.35;
}

.hovercard-status.cannot-afford {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cannot-afford-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.cannot-afford-title {
  font-weight: 800;
  color: #f87171;
}

.deficit-summary {
  font-size: 0.71rem;
  font-weight: normal;
  color: #fca5a5;
  opacity: 0.95;
}

.deficit-chips-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 1px;
}

.deficit-label {
  color: #fca5a5;
  font-size: 0.7rem;
  font-weight: 600;
}

.hovercard-ability {
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 5px;
  padding: 5px 8px;
  margin-top: 3px;
}

.ability-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #a5b4fc;
}

.ability-desc {
  font-size: 0.72rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin-top: 2px;
}

/* 黄金选中高亮 (Gold Vortex) */
.board-cell.cell-gold-selected {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.8), inset 0 0 8px rgba(251, 191, 36, 0.4) !important;
  animation: goldVortex 2.5s infinite ease-in-out;
  transform: scale(1.06);
  z-index: 12;
}

@keyframes goldVortex {
  0%, 100% { transform: scale(1.05); box-shadow: 0 0 12px rgba(251, 191, 36, 0.6); }
  50% { transform: scale(1.09); box-shadow: 0 0 20px rgba(251, 191, 36, 0.9); }
}

/* 黄金选定后卡牌预留引导态 (Pulse Reservable) */
.card-item.pulse-reservable {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.55) !important;
  animation: pulseReservableCard 2.4s infinite ease-in-out;
  cursor: pointer;
}

@keyframes pulseReservableCard {
  0%, 100% { box-shadow: 0 0 6px rgba(251, 191, 36, 0.35); }
  50% { box-shadow: 0 0 16px rgba(251, 191, 36, 0.75); }
}

/* 待选黄金阶段棋盘黄金高亮 (Gold Candidate) */
.board-cell.cell-gold-candidate {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.75), inset 0 0 8px rgba(251, 191, 36, 0.35) !important;
  animation: goldCandidatePulse 2.4s infinite ease-in-out;
  cursor: pointer !important;
  z-index: 10;
}

@keyframes goldCandidatePulse {
  0%, 100% { transform: scale(1.02); box-shadow: 0 0 10px rgba(251, 191, 36, 0.55); }
  50% { transform: scale(1.07); box-shadow: 0 0 18px rgba(251, 191, 36, 0.85); }
}

/* 处于待选黄金状态的目标卡牌 (Pending Reserve Target) */
.card-item.card-pending-reserve {
  border: 2px solid #fbbf24 !important;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.85), inset 0 0 6px rgba(251, 191, 36, 0.25) !important;
  animation: pendingCardPulse 2.4s infinite ease-in-out;
  position: relative;
  z-index: 8;
}

@keyframes pendingCardPulse {
  0%, 100% { transform: translateY(-2px) scale(1.01); box-shadow: 0 0 12px rgba(251, 191, 36, 0.65); }
  50% { transform: translateY(-3px) scale(1.03); box-shadow: 0 0 22px rgba(251, 191, 36, 0.95); }
}

/* 卡牌右上角待选黄金提示角标 */
.pending-reserve-tag {
  position: absolute;
  top: 3px;
  right: 3px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  z-index: 15;
  letter-spacing: 0.5px;
}

/* 悬停操作覆盖层中激活的取消按钮 */
.card-action-btn.btn-pending-active {
  background: #dc2626 !important;
  border-color: #ef4444 !important;
  color: #fff !important;
  font-weight: 700 !important;
}

/* 牌堆右侧盲抽按钮激活态 */
.btn-deck-reserve.active-pending-reserve {
  background: linear-gradient(135deg, #d97706, #b45309) !important;
  border-color: #fbbf24 !important;
  color: #fff !important;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.7) !important;
  animation: pendingBtnGlow 2.2s infinite alternate ease-in-out;
}

@keyframes pendingBtnGlow {
  0% { box-shadow: 0 0 5px rgba(251, 191, 36, 0.4); }
  100% { box-shadow: 0 0 14px rgba(251, 191, 36, 0.85); }
}

/* 幽灵残留发光标记 (Ghost Highlighting) */
.cell-ghost-active {
  border-color: rgba(99, 102, 241, 0.7) !important;
  background-color: rgba(99, 102, 241, 0.18) !important;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.45) !important;
}
