.constellation { position: relative; overflow: clip; }
.constellation::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(55% 60% at 40% 55%, rgba(50, 100, 220, 0.14), transparent 70%);
}

.const {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  margin-top: var(--space-6);
}

.const__stage {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 70% at 50% 50%, rgba(25, 48, 105, 0.35), rgba(8, 12, 26, 0.6)),
    linear-gradient(rgba(79, 140, 255, 0.04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(79, 140, 255, 0.04) 1px, transparent 1px) 0 0 / 40px 40px;
  overflow: hidden;
}
.const__svg { display: block; width: 100%; height: auto; touch-action: manipulation; }

.const__edge { stroke: rgba(110, 163, 255, 0.24); stroke-width: 1.2; transition: stroke 0.35s var(--ease), stroke-width 0.35s var(--ease), opacity 0.35s var(--ease); }
.const.is-active .const__edge { opacity: 0.35; }
.const__edge.is-lit {
  stroke: #9fc4ff;
  stroke-width: 2;
  opacity: 1 !important;
  stroke-dasharray: 6 8;
  filter: drop-shadow(0 0 6px rgba(110, 163, 255, 0.9));
  animation: constFlow 0.9s linear infinite;
}
@keyframes constFlow { to { stroke-dashoffset: -14; } }

.const__node { cursor: pointer; outline: none; transition: opacity 0.35s var(--ease); }
.const__node .const__halo { opacity: 0.55; transform-box: fill-box; transform-origin: center; animation: constBreathe 4.2s ease-in-out var(--d, 0s) infinite; transition: opacity 0.35s var(--ease); }
.const__ring { fill: none; stroke: rgba(130, 175, 255, 0.45); stroke-width: 1; transition: stroke 0.35s var(--ease), stroke-width 0.35s var(--ease); }
.const__dot { fill: #cfe0ff; filter: drop-shadow(0 0 6px rgba(110, 163, 255, 0.9)); transition: fill 0.35s var(--ease), r 0.35s var(--ease); }
.const__label { font-family: var(--font-body); font-size: 19px; font-weight: 500; fill: #a9b9de; letter-spacing: 0.02em; transition: fill 0.35s var(--ease); pointer-events: none; }
.const__hit { fill: transparent; }
.const__node:focus-visible .const__ring { stroke: #fff; stroke-width: 2; }

.const.is-active .const__node { opacity: 0.38; }
.const.is-active .const__node.is-linked { opacity: 0.85; }
.const.is-active .const__node.is-active { opacity: 1; }
.const__node.is-active .const__halo { opacity: 1; }
.const__node.is-active .const__ring { stroke: #cfe0ff; stroke-width: 2; animation: constPing 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.const__node.is-active .const__dot { fill: #fff; }
.const__node.is-active .const__label,
.const__node.is-linked .const__label { fill: #eaf1ff; }

@keyframes constBreathe { 0%, 100% { transform: scale(0.92); } 50% { transform: scale(1.08); } }
@keyframes constPing { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }

.const__panel {
  position: relative;
  min-height: 230px;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(22, 36, 72, 0.55), rgba(9, 14, 28, 0.75));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(200, 220, 255, 0.08), 0 24px 50px -30px rgba(0, 0, 0, 0.85);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.const__panel.has-content { border-color: rgba(130, 175, 255, 0.55); box-shadow: inset 0 1px 0 rgba(200, 220, 255, 0.1), 0 0 40px -14px rgba(79, 140, 255, 0.7); }
.const__idle { display: grid; gap: 0.5rem; color: var(--color-text-faint); font-size: var(--fs-sm); transition: opacity 0.3s var(--ease); }
.const__idle strong { font-family: var(--font-display); font-size: var(--fs-md); color: var(--color-text-muted); font-weight: 600; }
.const__panel.has-content .const__idle { display: none; }
.const__body { display: none; }
.const__panel.has-content .const__body { display: block; }
.const__kicker { display: block; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: #8fb4ff; margin-bottom: 0.4rem; }
.const__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.7rem; }
.const__text { font-size: var(--fs-sm); line-height: 1.65; color: var(--color-text-muted); margin-bottom: 1rem; }
.const__label-s { display: block; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-faint); margin-bottom: 0.4rem; }
.const__used { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.9rem; padding: 0; }
.const__used li { font-size: 0.74rem; color: #cfdcf7; padding: 0.2rem 0.65rem; border: 1px solid rgba(130, 175, 255, 0.4); border-radius: 999px; background: rgba(79, 140, 255, 0.1); }
.const__links { font-size: 0.8rem; color: #9fb4e0; }

@media (max-width: 900px) {
  .const { grid-template-columns: 1fr; }
  .const__panel { min-height: 0; }
}
@media (max-width: 640px) {
  .const__label { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .const__node .const__halo, .const__node.is-active .const__ring, .const__edge.is-lit { animation: none; }
}
