/* ===== 60-round9.css : Round 9 面板（深渊/符文/职业） + 主题色 ===== */

/* ========== 深渊面板 ========== */
.abyss-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 15, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
}
.abyss-overlay.open { display: flex; }
.abyss-box {
  background: rgba(12, 6, 35, 0.92);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 2px;
  width: 540px;
  max-width: 95vw;
  max-height: 85vh;
  padding: 28px 24px 24px;
  color: #e0e0e0;
  position: relative;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3), 0 0 40px rgba(124, 58, 237, 0.15), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
}
.abyss-title {
  font-size: 18px;
  font-weight: 700;
  color: #c4b5fd;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: 0.5px;
}
.abyss-body { font-size: 13px; }
.abyss-status {
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 2px;
  padding: 14px;
  margin-bottom: 14px;
}
.abyss-active-info, .abyss-idle { text-align: center; }
.abyss-floor { font-size: 22px; color: #c4b5fd; margin-bottom: 8px; }
.abyss-floor strong { color: #fbbf24; font-size: 28px; }
.abyss-remaining, .abyss-dust, .abyss-best {
  color: #d1d5db;
  margin: 4px 0;
  font-size: 13px;
}
.abyss-boss-warn {
  margin-top: 8px;
  color: #fbbf24;
  font-weight: 600;
  animation: abyss-boss-pulse 1.5s ease-in-out infinite;
}
@keyframes abyss-boss-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.abyss-btn {
  margin: 8px 4px;
  padding: 10px 20px;
  border: none;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.abyss-btn.primary {
  background: linear-gradient(180deg, #7c3aed, #5b21b6);
  color: white;
  margin-top: 10px;
}
.abyss-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4); }
.abyss-btn.danger {
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  color: white;
}
.abyss-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #c4b5fd;
  margin: 14px 0 8px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.3);
  padding-bottom: 4px;
}
.abyss-leaderboard, .abyss-shop { margin-bottom: 14px; }
.abyss-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.abyss-table th, .abyss-table td {
  padding: 6px 8px;
  text-align: center;
  border-bottom: 1px solid rgba(124, 58, 237, 0.15);
}
.abyss-table th { color: #c4b5fd; font-weight: 600; }
.abyss-table tr.top1 { background: rgba(255, 215, 0, 0.1); color: #ffd700; }
.abyss-table tr.top2 { background: rgba(192, 192, 192, 0.08); color: #e5e5e5; }
.abyss-table tr.top3 { background: rgba(205, 127, 50, 0.08); color: #cd7f32; }
.abyss-empty { color: #888; text-align: center; padding: 16px; font-size: 12px; }
.abyss-shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.abyss-shop-item {
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 2px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s;
  color: #e0e0e0;
  font-size: 12px;
  text-align: center;
}
.abyss-shop-item:hover { background: rgba(124, 58, 237, 0.2); transform: translateY(-1px); }
.abyss-shop-item .shop-icon { font-size: 22px; margin-bottom: 4px; }
.abyss-shop-item .shop-cost { color: #fbbf24; margin-top: 2px; font-weight: 600; }
.abyss-actions { text-align: center; margin-top: 8px; }

/* ========== 符文面板 ========== */
.rune-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 15, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
}
.rune-overlay.open { display: flex; }
.rune-box {
  background: rgba(12, 6, 35, 0.92);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 2px;
  width: 600px;
  max-width: 95vw;
  max-height: 85vh;
  padding: 28px 24px 24px;
  color: #e0e0e0;
  position: relative;
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.3), 0 0 40px rgba(6, 182, 212, 0.15), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
}
.rune-title {
  font-size: 18px;
  font-weight: 700;
  color: #67e8f9;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: 0.5px;
}
.rune-body { font-size: 13px; }
.rune-summary {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 2px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 12px;
}
.rune-count { color: #67e8f9; font-weight: 600; }
.rune-count strong { color: #fbbf24; }
.rune-tip { color: #888; font-size: 11px; margin-top: 4px; }
.rune-empty { color: #888; text-align: center; padding: 16px; font-size: 12px; }
.rune-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: 12px;
  max-height: 200px;
  overflow-y: auto;
}
.rune-card {
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 2px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.rune-card:hover { background: rgba(6, 182, 212, 0.12); }
.rune-card.selected {
  background: rgba(6, 182, 212, 0.25);
  border-color: #67e8f9;
  box-shadow: 0 0 0 2px rgba(103, 232, 249, 0.3);
}
.rune-icon { font-size: 24px; flex-shrink: 0; }
.rune-info { flex: 1; min-width: 0; }
.rune-name { font-size: 13px; font-weight: 600; color: #67e8f9; }
.rune-affix-value { font-size: 12px; color: #fbbf24; font-weight: 600; }
.rune-from { font-size: 11px; }
.rune-destroy {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 4px 8px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}
.rune-destroy:hover { background: rgba(239, 68, 68, 0.2); }
.rune-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #67e8f9;
  margin: 14px 0 8px;
  border-bottom: 1px solid rgba(6, 182, 212, 0.3);
  padding-bottom: 4px;
}
.rune-inject-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}
.rune-target {
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 2px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 11px;
  display: flex;
  gap: 6px;
  align-items: center;
  transition: all 0.2s;
}
.rune-target:hover { background: rgba(6, 182, 212, 0.15); }
.rune-target.full { opacity: 0.4; cursor: not-allowed; }
.rune-target-quality { font-weight: 600; }
.rune-target-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rune-target-count { color: #888; font-size: 10px; }

/* ========== 职业面板 ========== */
.class-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 15, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
}
.class-overlay.open { display: flex; }
.class-box {
  background: rgba(12, 6, 35, 0.92);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 2px;
  width: 720px;
  max-width: 95vw;
  max-height: 85vh;
  padding: 28px 24px 24px;
  color: #e0e0e0;
  position: relative;
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.3), 0 0 40px rgba(245, 158, 11, 0.15), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
}
.class-title {
  font-size: 18px;
  font-weight: 700;
  color: #fcd34d;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: 0.5px;
}
.class-body { font-size: 13px; }
.class-header {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 2px;
  padding: 12px 16px;
  margin-bottom: 14px;
  text-align: center;
}
.class-points { font-size: 13px; color: #d1d5db; }
.class-points strong { color: #fbbf24; font-size: 16px; }
.class-tip { color: #888; font-size: 11px; margin-top: 6px; }
.class-current { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; }
.class-icon { font-size: 22px; }
.class-name { font-size: 16px; font-weight: 700; }
/* iter34：职业天赋重置按钮 */
.class-reset-btn {
  margin-top: 8px; padding: 5px 14px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 3px;
  color: #fca5a5; font-size: 11px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
}
.class-reset-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}
.class-select {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.class-card {
  background: rgba(245, 158, 11, 0.05);
  border: 2px solid;
  border-radius: 2px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.class-card:hover { transform: translateY(-2px); background: rgba(245, 158, 11, 0.12); }
.class-card-icon { font-size: 36px; margin-bottom: 8px; }
.class-card-name { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.class-card-desc { font-size: 11px; color: #9ca3af; line-height: 1.4; }
.class-tree { margin-top: 8px; }
.class-branch { margin-bottom: 12px; }
.branch-title {
  font-size: 13px;
  font-weight: 700;
  color: #fcd34d;
  margin-bottom: 6px;
  padding: 4px 8px;
  background: rgba(245, 158, 11, 0.08);
  border-radius: 2px;
}
.branch-nodes {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.class-node {
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 2px;
  padding: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  transition: all 0.2s;
}
.class-node.unlocked {
  background: rgba(245, 158, 11, 0.15);
  border-color: #fcd34d;
}
.class-node.available { border-color: rgba(245, 158, 11, 0.4); }
.class-node.locked { opacity: 0.7; }
.node-icon { font-size: 20px; flex-shrink: 0; }
.node-info { flex: 1; min-width: 0; }
.node-name { font-size: 12px; font-weight: 600; color: #fcd34d; }
.node-desc { font-size: 10px; color: #9ca3af; margin: 2px 0; }
.node-rank { font-size: 10px; color: #fbbf24; }
.node-unlock-btn {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  color: #fbbf24;
  padding: 4px 8px;
  border-radius: 2px;
  font-size: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.node-unlock-btn:hover:not(:disabled) { background: rgba(245, 158, 11, 0.35); }
.node-unlock-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ========== 星域远征面板（iter45）========== */
.expedition-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 15, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
}
.expedition-overlay.open { display: flex; }
.expedition-box {
  background: rgba(12, 6, 35, 0.92);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(96, 165, 250, 0.4);
  border-radius: 2px;
  width: 640px;
  max-width: 95vw;
  max-height: 88vh;
  padding: 28px 24px 24px;
  color: #e0e0e0;
  position: relative;
  box-shadow: 0 8px 32px rgba(96, 165, 250, 0.3), 0 0 40px rgba(96, 165, 250, 0.15), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.5;
}
.expedition-title {
  font-size: 18px;
  font-weight: 700;
  color: #93c5fd;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: 0.5px;
}
.expedition-body { font-size: 13px; }
.expedition-status {
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 2px;
  padding: 14px;
  margin-bottom: 14px;
  text-align: center;
}
.expedition-active-info, .expedition-idle { text-align: center; }
.expedition-stage-name { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.expedition-modifier { color: #fbbf24; font-size: 12px; margin-bottom: 6px; }
.expedition-progress { color: #d1d5db; margin: 4px 0; }
.expedition-attempts, .expedition-best, .expedition-badges {
  color: #d1d5db;
  margin: 4px 0;
  font-size: 13px;
}
.expedition-attempts strong, .expedition-best strong, .expedition-badges strong {
  color: #93c5fd;
  font-size: 16px;
}
.expedition-btn {
  margin: 8px 4px;
  padding: 10px 20px;
  border: none;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.expedition-btn.primary {
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  color: white;
  margin-top: 10px;
}
.expedition-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4); }
.expedition-btn.danger {
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  color: white;
}
.expedition-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #93c5fd;
  margin: 14px 0 8px;
  border-bottom: 1px solid rgba(96, 165, 250, 0.3);
  padding-bottom: 4px;
}
.expedition-stages, .expedition-shop, .expedition-perm-bonuses { margin-bottom: 14px; }
.expedition-stage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.expedition-stage-card {
  display: flex;
  align-items: center;
  background: rgba(31, 41, 55, 0.6);
  border: 1px solid rgba(75, 85, 99, 0.4);
  border-radius: 2px;
  padding: 10px;
  gap: 12px;
  transition: all 0.2s;
}
.expedition-stage-card.cleared {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.05);
}
.expedition-stage-card.playable {
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(96, 165, 250, 0.08);
}
.expedition-stage-card.locked { opacity: 0.55; }
.expedition-stage-icon { font-size: 24px; width: 32px; text-align: center; }
.expedition-stage-info { flex: 1; }
.expedition-stage-title { font-weight: 600; color: #e5e7eb; font-size: 13px; }
.expedition-stage-mod { color: #9ca3af; font-size: 11px; margin-top: 2px; }
.expedition-stage-reward { color: #fbbf24; font-size: 11px; margin-top: 4px; }
.expedition-stage-btn {
  padding: 6px 14px;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  color: white;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
}
.expedition-stage-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4); }
.expedition-shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.expedition-shop-item {
  background: rgba(31, 41, 55, 0.6);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 2px;
  padding: 10px;
  cursor: pointer;
  color: #e5e7eb;
  font-size: 12px;
  transition: all 0.2s;
}
.expedition-shop-item:hover:not(.disabled) {
  border-color: rgba(96, 165, 250, 0.7);
  background: rgba(96, 165, 250, 0.1);
  transform: translateY(-1px);
}
.expedition-shop-item.disabled { opacity: 0.4; cursor: not-allowed; }
.expedition-shop-item .shop-name { font-weight: 600; margin-bottom: 4px; }
.expedition-shop-item .shop-cost { color: #fbbf24; font-size: 11px; }
.expedition-perm-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.perm-tag {
  display: inline-block;
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.4);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  color: #93c5fd;
}
.perm-empty { color: #6b7280; font-size: 12px; }
.expedition-locked {
  text-align: center;
  padding: 30px 20px;
}
.expedition-locked-icon { font-size: 48px; margin-bottom: 10px; }
.expedition-locked-text { font-size: 14px; color: #fbbf24; }
.expedition-locked-current { font-size: 12px; color: #9ca3af; margin-top: 6px; }

/* iter45：远征激活时菜单按钮脉冲提示 */
#expeditionBtn.expedition-active {
  animation: expedition-btn-pulse 1.2s ease-in-out infinite;
  border-color: #60a5fa !important;
  color: #93c5fd !important;
}
@keyframes expedition-btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.7); }
  50% { box-shadow: 0 0 12px 4px rgba(96, 165, 250, 0.3); }
}
/* 远征激活时左侧边栏红光（暗示玩家正在挑战） */
.expedition-active-indicator {
  position: fixed;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 200px;
  background: linear-gradient(180deg, transparent, #60a5fa, transparent);
  pointer-events: none;
  z-index: 50;
  opacity: 0.7;
  animation: expedition-side-pulse 1.5s ease-in-out infinite;
}
@keyframes expedition-side-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* 滚动条 */
.abyss-box::-webkit-scrollbar,
.rune-box::-webkit-scrollbar,
.class-box::-webkit-scrollbar,
.expedition-box::-webkit-scrollbar,
.cosmic-box::-webkit-scrollbar,
.quantum-box::-webkit-scrollbar { width: 6px; }
.abyss-box::-webkit-scrollbar-thumb,
.rune-box::-webkit-scrollbar-thumb,
.class-box::-webkit-scrollbar-thumb,
.expedition-box::-webkit-scrollbar-thumb,
.cosmic-box::-webkit-scrollbar-thumb,
.quantum-box::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.5);
  border-radius: 2px;
}
.rune-box::-webkit-scrollbar-thumb { background: rgba(6, 182, 212, 0.5); }
.class-box::-webkit-scrollbar-thumb { background: rgba(245, 158, 11, 0.5); }
.expedition-box::-webkit-scrollbar-thumb { background: rgba(96, 165, 250, 0.5); }
.cosmic-box::-webkit-scrollbar-thumb { background: rgba(168, 85, 247, 0.5); }
.quantum-box::-webkit-scrollbar-thumb { background: rgba(34, 211, 238, 0.5); }

/* ========== 量子科技面板（iter47）========== */
.quantum-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 20, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
}
.quantum-overlay.open { display: flex; }
.quantum-box {
  background: rgba(4, 12, 28, 0.94);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 2px;
  width: 700px;
  max-width: 95vw;
  max-height: 90vh;
  padding: 28px 24px 24px;
  color: #e0e0e0;
  position: relative;
  box-shadow: 0 8px 32px rgba(34, 211, 238, 0.3), 0 0 40px rgba(34, 211, 238, 0.15), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.5;
}
.quantum-title {
  font-size: 18px;
  font-weight: 700;
  color: #22d3ee;
  margin-bottom: 14px;
  text-align: center;
  letter-spacing: 0.5px;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.4);
}
.quantum-body { font-size: 13px; }
.quantum-status {
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 2px;
  padding: 12px 14px;
  margin-bottom: 12px;
  text-align: center;
}
.quantum-energy { font-size: 16px; color: #22d3ee; margin-bottom: 4px; }
.quantum-energy strong { color: #fbbf24; font-size: 22px; }
.quantum-info { color: #9ca3af; font-size: 12px; }
.quantum-info strong { color: #67e8f9; }
.quantum-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.quantum-tab {
  padding: 8px 4px;
  background: rgba(34, 211, 238, 0.05);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 2px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.quantum-tab:hover { background: rgba(34, 211, 238, 0.12); }
.quantum-tab.active {
  background: rgba(34, 211, 238, 0.2);
  color: #22d3ee;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.3);
}
.quantum-nodes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.quantum-node {
  background: rgba(34, 211, 238, 0.04);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 2px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}
.quantum-node.unlocked {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 6px rgba(34, 211, 238, 0.15);
}
.quantum-node.maxed {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.5);
}
.quantum-node-info { flex: 1; min-width: 0; }
.quantum-node-name { font-size: 13px; font-weight: 700; color: #67e8f9; }
.quantum-node.unlocked .quantum-node-name { color: #22d3ee; }
.quantum-node-desc { font-size: 11px; color: #d1d5db; margin-top: 2px; }
.quantum-node-rank { font-size: 11px; color: #fbbf24; margin-top: 4px; letter-spacing: 2px; }
.quantum-upgrade-btn {
  padding: 8px 14px;
  background: linear-gradient(180deg, #06b6d4, #0891b2);
  color: white;
  border: none;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  min-width: 70px;
}
.quantum-upgrade-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 211, 238, 0.4);
}
.quantum-upgrade-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #374151;
  transform: none;
}
.quantum-reset-area { text-align: center; margin: 10px 0; }
.quantum-reset-btn {
  padding: 6px 14px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  border-radius: 2px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}
.quantum-reset-btn:hover { background: rgba(239, 68, 68, 0.3); }
.quantum-section { margin-top: 16px; }
.quantum-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #67e8f9;
  margin: 14px 0 8px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.3);
  padding-bottom: 4px;
}
.quantum-locked { color: #6b7280; text-align: center; padding: 14px; font-size: 12px; }
.quantum-echo-status { text-align: center; margin-bottom: 10px; }
.quantum-echo-active {
  color: #fbbf24;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  animation: quantum-echo-pulse 1s ease-in-out infinite;
}
@keyframes quantum-echo-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.quantum-echo-exit {
  padding: 4px 12px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  border-radius: 2px;
  font-size: 11px;
  cursor: pointer;
}
.quantum-echo-attempts { color: #d1d5db; font-size: 13px; }
.quantum-echo-attempts strong { color: #22d3ee; font-size: 16px; }
.quantum-echo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.quantum-echo-card {
  background: rgba(34, 211, 238, 0.05);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 2px;
  padding: 12px;
  text-align: center;
  transition: all 0.2s;
}
.quantum-echo-card.cleared {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.08);
}
.quantum-echo-card.playable {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.2);
}
.quantum-echo-card.locked { opacity: 0.5; }
.quantum-echo-icon { font-size: 28px; margin-bottom: 4px; }
.quantum-echo-name { font-size: 13px; font-weight: 700; color: #67e8f9; margin-bottom: 2px; }
.quantum-echo-desc { font-size: 10px; color: #9ca3af; margin-bottom: 4px; }
.quantum-echo-reward { font-size: 11px; color: #fbbf24; margin-bottom: 6px; }
.quantum-echo-tag { font-size: 11px; font-weight: 600; }
.quantum-echo-tag.cleared { color: #4ade80; }
.quantum-echo-tag.locked { color: #6b7280; }
.quantum-echo-btn {
  padding: 4px 12px;
  background: linear-gradient(180deg, #06b6d4, #0891b2);
  color: white;
  border: none;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.quantum-echo-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(34, 211, 238, 0.4); }

/* iter47：回响激活时菜单按钮脉冲提示 */
#quantumBtn.echo-active {
  animation: quantum-btn-pulse 1.2s ease-in-out infinite;
  border-color: #22d3ee !important;
  color: #67e8f9 !important;
}
@keyframes quantum-btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7); }
  50% { box-shadow: 0 0 12px 4px rgba(34, 211, 238, 0.3); }
}

/* ========== 宇宙异象面板（iter46）========== */
.cosmic-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 15, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
}
.cosmic-overlay.open { display: flex; }
.cosmic-box {
  background: rgba(15, 6, 40, 0.92);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 2px;
  width: 660px;
  max-width: 95vw;
  max-height: 88vh;
  padding: 28px 24px 24px;
  color: #e0e0e0;
  position: relative;
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.3), 0 0 40px rgba(168, 85, 247, 0.15), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.5;
}
.cosmic-title {
  font-size: 18px;
  font-weight: 700;
  color: #c4b5fd;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: 0.5px;
}
.cosmic-body { font-size: 13px; }
.cosmic-status {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 2px;
  padding: 14px;
  margin-bottom: 14px;
  text-align: center;
}
.cosmic-active-info, .cosmic-idle { text-align: center; }
.cosmic-event-name { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.cosmic-event-desc { color: #fbbf24; font-size: 12px; margin-bottom: 6px; }
.cosmic-event-timer { color: #d1d5db; font-size: 14px; }
.cosmic-event-timer strong { color: #c4b5fd; font-size: 18px; }
.cosmic-cooldown { color: #d1d5db; margin-bottom: 6px; }
.cosmic-cooldown strong { color: #c4b5fd; font-size: 16px; }
.cosmic-stats { color: #d1d5db; margin: 4px 0; font-size: 13px; }
.cosmic-stats strong { color: #c4b5fd; font-size: 16px; }
.cosmic-section { margin-bottom: 14px; }
.cosmic-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #c4b5fd;
  margin: 14px 0 8px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.3);
  padding-bottom: 4px;
}
.cosmic-event-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.cosmic-event-card {
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid;
  border-radius: 2px;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.cosmic-event-icon { font-size: 26px; flex-shrink: 0; }
.cosmic-event-info { flex: 1; min-width: 0; }
.cosmic-event-title { font-size: 13px; font-weight: 600; color: #c4b5fd; }
.cosmic-event-dur { color: #888; font-size: 11px; font-weight: 400; }
.cosmic-event-effect { font-size: 11px; color: #d1d5db; margin-top: 2px; }
.cosmic-awaken-info {
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 2px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.cosmic-awaken-cost { color: #fbbf24; font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.cosmic-awaken-tip { color: #888; font-size: 11px; }
.cosmic-equip-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cosmic-equip-card {
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 2px;
  padding: 10px;
}
.cosmic-equip-card.awakened {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.15);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.2);
}
.cosmic-equip-card.can-awaken {
  border-color: rgba(168, 85, 247, 0.5);
}
.cosmic-equip-name { font-size: 13px; font-weight: 600; color: #e0e0e0; }
.cosmic-equip-quality { font-size: 11px; color: #888; margin: 2px 0; text-transform: uppercase; }
.cosmic-equip-quality.quality-legendary { color: #fbbf24; }
.cosmic-equip-quality.quality-ancient { color: #ff8c42; }
.cosmic-equip-quality.quality-primal { color: #ff3366; }
.cosmic-equip-awaken-affix { font-size: 11px; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(168, 85, 247, 0.2); }
.cosmic-equip-locked { color: #666; font-size: 11px; margin-top: 4px; }
.cosmic-awaken-btn {
  margin-top: 6px;
  padding: 6px 10px;
  background: linear-gradient(180deg, #a855f7, #7c3aed);
  color: white;
  border: none;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.cosmic-awaken-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}
.cosmic-awaken-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ========== 远征舰队 + 装备融合面板（iter48）========== */
.fleet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 15, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
}
.fleet-overlay.open { display: flex; }
.fleet-box {
  background: rgba(20, 6, 40, 0.92);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(244, 114, 182, 0.4);
  border-radius: 2px;
  width: 620px;
  max-width: 95vw;
  max-height: 88vh;
  padding: 28px 24px 24px;
  color: #e0e0e0;
  position: relative;
  box-shadow: 0 8px 32px rgba(244, 114, 182, 0.3), 0 0 40px rgba(244, 114, 182, 0.15), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.5;
}
.fleet-box::-webkit-scrollbar { width: 6px; }
.fleet-box::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.fleet-box::-webkit-scrollbar-thumb { background: rgba(244, 114, 182, 0.5); }
.fleet-close-btn { color: #f472b6 !important; }
.fleet-title {
  font-size: 18px;
  font-weight: 700;
  color: #f9a8d4;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: 0.5px;
}
.fleet-body { font-size: 13px; }
.fleet-locked-banner {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 2px;
  padding: 10px;
  text-align: center;
  color: #fca5a5;
  font-size: 12px;
  margin-bottom: 12px;
}
.fleet-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.fleet-tab {
  flex: 1;
  padding: 8px 12px;
  background: rgba(244, 114, 182, 0.08);
  border: 1px solid rgba(244, 114, 182, 0.25);
  color: #d1d5db;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.fleet-tab:hover { background: rgba(244, 114, 182, 0.18); }
.fleet-tab.active {
  background: rgba(244, 114, 182, 0.25);
  border-color: #f472b6;
  color: #f9a8d4;
  box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.4);
}
.fleet-status {
  background: rgba(244, 114, 182, 0.08);
  border: 1px solid rgba(244, 114, 182, 0.3);
  border-radius: 2px;
  padding: 12px 14px;
  margin-bottom: 14px;
  text-align: center;
}
.fleet-pending { font-size: 16px; color: #f9a8d4; margin-bottom: 6px; }
.fleet-pending strong { color: #fbbf24; font-size: 20px; }
.fleet-info { font-size: 11px; color: #d1d5db; margin-bottom: 10px; }
.fleet-info strong { color: #67e8f9; }
.fleet-collect-btn {
  padding: 8px 24px;
  background: linear-gradient(180deg, #ec4899, #be185d);
  color: white;
  border: none;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.fleet-collect-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.5);
}
.fleet-collect-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.fleet-ships { display: flex; flex-direction: column; gap: 8px; }
.fleet-ship {
  background: rgba(244, 114, 182, 0.06);
  border: 1px solid rgba(244, 114, 182, 0.2);
  border-radius: 2px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}
.fleet-ship:hover { background: rgba(244, 114, 182, 0.12); }
.fleet-ship.locked { opacity: 0.5; }
.fleet-ship.maxed { background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.3); }
.fleet-ship-icon { font-size: 28px; flex-shrink: 0; }
.fleet-ship-info { flex: 1; min-width: 0; }
.fleet-ship-name { font-size: 14px; font-weight: 700; color: #f9a8d4; margin-bottom: 2px; }
.fleet-ship-desc { font-size: 11px; color: #9ca3af; margin-bottom: 4px; }
.fleet-ship-stats { font-size: 11px; color: #d1d5db; display: flex; gap: 14px; }
.fleet-ship-stats strong { color: #fbbf24; }
.fleet-ship-lock { font-size: 11px; color: #fca5a5; }
.fleet-ship-action { flex-shrink: 0; }
.fleet-buy-btn {
  padding: 8px 14px;
  background: linear-gradient(180deg, #f472b6, #db2777);
  color: white;
  border: none;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.fleet-buy-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(244, 114, 182, 0.4);
}
.fleet-buy-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.fleet-maxed-tag { color: #fbbf24; font-size: 12px; font-weight: 600; }
.fleet-locked-tag { color: #6b7280; font-size: 18px; }

/* 装备融合区域 */
.fuse-info { font-size: 12px; color: #d1d5db; margin-bottom: 6px; }
.fuse-info strong { color: #f472b6; }
.fuse-cost { font-size: 12px; color: #fbbf24; margin-bottom: 4px; }
.fuse-selected { font-size: 12px; color: #67e8f9; }
.fuse-selected strong { color: #f472b6; }
.fuse-preview {
  border-radius: 2px;
  padding: 12px;
  margin: 12px 0;
  text-align: center;
}
.fuse-preview.ok {
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.3);
}
.fuse-preview.fail {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.fuse-preview-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.fuse-preview.ok .fuse-preview-title { color: #4ade80; }
.fuse-preview.fail .fuse-preview-title { color: #f87171; }
.fuse-preview-result { font-size: 14px; margin-bottom: 4px; }
.fuse-preview-note { font-size: 11px; color: #9ca3af; margin-bottom: 8px; }
.fuse-preview-reason { font-size: 12px; color: #fca5a5; }
.fuse-exec-btn {
  padding: 8px 24px;
  background: linear-gradient(180deg, #f472b6, #db2777);
  color: white;
  border: none;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.fuse-exec-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 114, 182, 0.5);
}
.fuse-clear-area { text-align: center; margin: 8px 0; }
.fuse-clear-btn {
  padding: 4px 14px;
  background: transparent;
  border: 1px solid rgba(156, 163, 175, 0.4);
  color: #9ca3af;
  border-radius: 2px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}
.fuse-clear-btn:hover { background: rgba(156, 163, 175, 0.15); color: #e5e7eb; }
.fuse-empty { color: #888; text-align: center; padding: 20px; font-size: 12px; }
.fuse-groups { display: flex; flex-direction: column; gap: 12px; }
.fuse-group {
  background: rgba(244, 114, 182, 0.04);
  border: 1px solid rgba(244, 114, 182, 0.2);
  border-radius: 2px;
  padding: 10px;
}
.fuse-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(244, 114, 182, 0.15);
}
.fuse-arrow { color: #6b7280; }
.fuse-group-count { margin-left: auto; color: #9ca3af; font-size: 11px; font-weight: 400; }
.fuse-group-items { display: grid; grid-template-columns: 1fr; gap: 4px; }
.fuse-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.fuse-item:hover { background: rgba(244, 114, 182, 0.1); border-color: rgba(244, 114, 182, 0.3); }
.fuse-item.selected {
  background: rgba(244, 114, 182, 0.2);
  border-color: #f472b6;
  box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.4);
}
.fuse-item-name { flex: 1; font-size: 12px; color: #e5e7eb; }
.fuse-enh { color: #fbbf24; font-size: 11px; }
.fuse-item-affixes { display: flex; flex-wrap: wrap; gap: 4px; }
.fuse-affix {
  font-size: 10px;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.1);
  padding: 1px 5px;
  border-radius: 2px;
}
.fuse-item-check {
  font-size: 14px;
  color: #f472b6;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.fuse-item:not(.selected) .fuse-item-check { color: #6b7280; }

/* iter48：舰队有可领取收益时菜单按钮脉冲提示 */
#fleetBtn.fleet-active {
  animation: fleet-btn-pulse 1.2s ease-in-out infinite;
  border-color: #f472b6 !important;
  color: #f9a8d4 !important;
}
@keyframes fleet-btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 114, 182, 0.7); }
  50% { box-shadow: 0 0 12px 4px rgba(244, 114, 182, 0.3); }
}
