/* ===== 110-level.css : 关卡模式面板 (iter56) ===== */

/* ========== 关卡面板 ========== */
.level-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);
}
.level-overlay.open { display: flex; }
.level-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(34, 197, 94, 0.4);
  border-radius: 2px;
  width: 480px;
  max-width: 95vw;
  max-height: 85vh;
  padding: 28px 24px 24px;
  color: #e0e0e0;
  position: relative;
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3), 0 0 40px rgba(34, 197, 94, 0.15), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
}
.level-title {
  font-size: 18px;
  font-weight: 700;
  color: #22c55e;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: 0.5px;
}
.level-body { font-size: 13px; }
.level-status {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 2px;
  padding: 14px;
  margin-bottom: 14px;
}
.level-active-info, .level-idle { text-align: center; }
.level-name {
  font-size: 22px;
  margin-bottom: 8px;
}
.level-progress, .level-timer, .level-best {
  color: #d1d5db;
  margin: 4px 0;
  font-size: 13px;
}
.level-btn {
  margin: 8px 4px;
  padding: 10px 20px;
  border: none;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.level-btn.primary {
  background: linear-gradient(180deg, #22c55e, #16a34a);
  color: white;
}
.level-btn.primary:hover {
  background: linear-gradient(180deg, #16a34a, #15803d);
  transform: translateY(-1px);
}
.level-btn.danger {
  background: linear-gradient(180deg, #ef4444, #dc2626);
  color: white;
}
.level-btn.danger:hover {
  background: linear-gradient(180deg, #dc2626, #b91c1c);
}

/* 关卡说明 */
.level-desc {
  background: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 2px;
  padding: 12px;
  margin-top: 14px;
}
.level-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #22c55e;
  margin-bottom: 8px;
}
.level-desc-content {
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.6;
}
.level-desc-content p {
  margin: 4px 0;
}

/* 未解锁状态 */
.level-locked {
  text-align: center;
  padding: 40px 20px;
}
.level-locked-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}
.level-locked-text {
  color: #9ca3af;
  margin-bottom: 8px;
}
.level-locked-current {
  color: #6b7280;
  font-size: 12px;
}

/* 关卡按钮激活态 */
#levelBtn.level-active {
  animation: level-pulse 1.5s ease-in-out infinite;
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
}
@keyframes level-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

/* ========== 关卡 HUD ========== */
#levelHUD {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(12, 6, 35, 0.9);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 2px;
  padding: 8px 16px;
  color: #e0e0e0;
  font-size: 13px;
  font-weight: 600;
  z-index: 100;
  display: flex;
  gap: 16px;
  backdrop-filter: blur(8px);
}
#levelHUD span {
  display: inline-block;
}
#levelLevelDisplay {
  color: #22c55e;
}
#levelKillsDisplay {
  color: #fbbf24;
}
#levelTimerDisplay {
  color: #ef4444;
}