/* ARK Ticket #3（02）：星图全景视图样式
 * 红线：无循环动画，仅一次性 CSS transition（迷雾消散）
 */

.t02-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 70vh;
}

.t02-h1 { margin: 0; }

.t02-head .ark-dim { margin: 2px 0 0; }

/* 图例 */
.t02-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ark-text-dim);
}
.t02-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.t02-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.t02-dot.gold {
  background: #ffd166;
  box-shadow: 0 0 7px rgba(255, 209, 102, 0.85);
}
.t02-dot.normal {
  background: #cfe8ff;
  box-shadow: 0 0 7px rgba(140, 200, 255, 0.7);
}
.t02-dot.mist {
  background: #333e66;
  border: 1px dashed #8fa4d8;
}
.t02-dot.glow {
  background: radial-gradient(circle, rgba(143, 212, 255, 0.9), rgba(143, 212, 255, 0) 72%);
}

/* 星图容器 */
.t02-map {
  position: relative;
  border: 1px solid var(--ark-border);
  border-radius: 12px;
  background: #070b18;
  overflow: hidden;
  height: calc(100vh - 250px);
  min-height: 520px;
}

/* 深空背景：3 团 3-5% 透明度径向渐变星云斑块 + 静态星点（非粒子系统，无动画） */
.t02-map::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 38% 30% at 18% 26%, rgba(96, 130, 255, 0.05), transparent 70%),
    radial-gradient(ellipse 32% 26% at 79% 72%, rgba(255, 96, 168, 0.04), transparent 70%),
    radial-gradient(ellipse 28% 24% at 62% 12%, rgba(0, 222, 204, 0.035), transparent 70%),
    radial-gradient(1.6px 1.6px at 8% 22%, rgba(255, 255, 255, 0.7), transparent 100%),
    radial-gradient(1.2px 1.2px at 24% 64%, rgba(200, 220, 255, 0.5), transparent 100%),
    radial-gradient(1.8px 1.8px at 41% 12%, rgba(255, 255, 255, 0.4), transparent 100%),
    radial-gradient(1.3px 1.3px at 57% 78%, rgba(210, 230, 255, 0.55), transparent 100%),
    radial-gradient(1.5px 1.5px at 73% 30%, rgba(255, 255, 255, 0.6), transparent 100%),
    radial-gradient(1.1px 1.1px at 88% 56%, rgba(200, 215, 255, 0.45), transparent 100%),
    radial-gradient(1.4px 1.4px at 92% 16%, rgba(255, 255, 255, 0.5), transparent 100%),
    radial-gradient(1.2px 1.2px at 15% 86%, rgba(220, 235, 255, 0.4), transparent 100%);
}

/* Cytoscape 画布层 */
.t02-cy {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: grab;
}
.t02-cy:active { cursor: grabbing; }

/* 未勘探迷雾覆盖层（DOM 叠加在画布之上） */
.t02-mist {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.t02-mist-core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 42% 38%, rgba(130, 150, 205, 0.28), rgba(24, 32, 64, 0.94) 70%);
  border: 1px dashed rgba(150, 175, 230, 0.55);
  box-shadow:
    0 0 0 5px rgba(150, 175, 230, 0.10),
    0 0 0 11px rgba(150, 175, 230, 0.06),
    0 0 26px rgba(90, 120, 205, 0.30),
    inset 0 0 26px rgba(10, 14, 32, 0.9);
  backdrop-filter: blur(3px);
  transition: opacity 0.9s ease, transform 0.9s ease, filter 0.9s ease;
}
.t02-mist:hover .t02-mist-core {
  border-color: rgba(190, 210, 255, 0.9);
  box-shadow:
    0 0 0 5px rgba(170, 195, 250, 0.16),
    0 0 0 11px rgba(170, 195, 250, 0.10),
    0 0 34px rgba(120, 155, 240, 0.45),
    inset 0 0 26px rgba(10, 14, 32, 0.9);
}
.t02-mist-q {
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  color: #a9b9e9;
  text-shadow: 0 0 12px rgba(140, 170, 255, 0.8);
}
/* 解锁：一次性 transition —— 迷雾消散（淡出 + 放大 + 模糊），露出完整星球 */
.t02-mist.t02-mist-unlock .t02-mist-core {
  opacity: 0;
  transform: scale(1.45);
  filter: blur(10px);
}
.t02-mist.t02-mist-unlock { pointer-events: none; }
