/* ========== 80-round11.css - iter50 星核觉醒系统 ========== */
/* 深色赛博朋克风格，金色高亮星核主题，与游戏整体一致 */

/* ========== 星核面板 ========== */
.starcore-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);
}
.starcore-overlay.open { display: flex; }
.starcore-box {
  background: rgba(20, 12, 35, 0.93);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(251, 191, 36, 0.45);
  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(251, 191, 36, 0.3), 0 0 40px rgba(251, 191, 36, 0.15), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.5;
}
.starcore-box::-webkit-scrollbar { width: 6px; }
.starcore-box::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.starcore-box::-webkit-scrollbar-thumb { background: rgba(251, 191, 36, 0.5); }
.starcore-close-btn { color: #fbbf24 !important; }
.starcore-body { font-size: 13px; }

/* ========== 顶部：星核等级 + 进度条 ========== */
.starcore-header {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 2px;
  padding: 14px 16px;
  margin-bottom: 14px;
  text-align: center;
}
.starcore-level {
  font-size: 22px;
  font-weight: 900;
  color: #fbbf24;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-shadow: 0 0 16px rgba(251, 191, 36, 0.6), 0 0 30px rgba(251, 191, 36, 0.3);
}
.starcore-progress-wrap { margin-top: 6px; }
.starcore-progress-bar {
  width: 100%;
  height: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.starcore-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #fde047);
  background-size: 200% 100%;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
  transition: width 0.3s ease;
  animation: starcore-progress-shimmer 2s linear infinite;
}
@keyframes starcore-progress-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.starcore-progress-text {
  font-size: 12px;
  color: #d1d5db;
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
}

/* ========== 区块标题通用 ========== */
.starcore-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
}

/* ========== 当前加成总览 ========== */
.starcore-bonuses {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 2px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.starcore-bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px;
}
.starcore-bonus-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 2px;
  font-size: 12px;
  color: #d1d5db;
}
.starcore-bonus-item span:last-child {
  color: #fbbf24;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

/* ========== 注入区域 ========== */
.starcore-inject {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 2px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.starcore-inject-btns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.starcore-inject-btn {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
  padding: 10px 4px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'JetBrains Mono', monospace;
}
.starcore-inject-btn:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(245, 158, 11, 0.2));
  border-color: rgba(251, 191, 36, 0.8);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
  transform: translateY(-1px);
}
.starcore-inject-btn:active { transform: translateY(0); }
.starcore-inject-max {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(217, 70, 239, 0.15));
  border-color: rgba(168, 85, 247, 0.5);
  color: #c084fc;
  grid-column: span 1;
}
.starcore-inject-max:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(217, 70, 239, 0.25));
  border-color: rgba(168, 85, 247, 0.8);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}
.starcore-stat {
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
}

/* ========== 技能列表 ========== */
.starcore-skills {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 2px;
  padding: 12px 14px;
}
.starcore-skill-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.starcore-skill-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid;
  border-left-width: 3px;
  border-radius: 2px;
  transition: all 0.2s ease;
}
.starcore-skill-card.unlocked {
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.15), inset 0 1px 0 rgba(255,255,255,0.05);
}
.starcore-skill-card.unlocked:hover {
  background: rgba(255,255,255,0.09);
  transform: translateX(2px);
}
.starcore-skill-card.locked {
  opacity: 0.45;
  filter: grayscale(0.7);
  background: rgba(0,0,0,0.2);
}
.starcore-skill-icon {
  font-size: 22px;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
  text-shadow: 0 0 8px currentColor;
}
.starcore-skill-info {
  flex: 1;
  min-width: 0;
}
.starcore-skill-name {
  font-size: 13px;
  font-weight: 700;
  color: #e5e7eb;
  margin-bottom: 2px;
}
.starcore-skill-card.unlocked .starcore-skill-name { color: #fbbf24; }
.starcore-skill-desc {
  font-size: 11px;
  color: #9ca3af;
}
.starcore-skill-status {
  font-size: 16px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

/* ========== 响应式：移动端适配 ========== */
@media (max-width: 600px) {
  .starcore-box {
    width: 100%;
    padding: 24px 14px 18px;
    font-size: 12px;
  }
  .starcore-level { font-size: 18px; }
  .starcore-bonus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .starcore-inject-btns {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .starcore-inject-btn { padding: 9px 4px; font-size: 12px; }
  .starcore-skill-card { padding: 8px 10px; gap: 8px; }
  .starcore-skill-icon { font-size: 20px; width: 28px; }
  .starcore-skill-name { font-size: 12px; }
  .starcore-skill-desc { font-size: 10px; }
}
