/* V7: kindergarten-only glow and discovery activation; loaded after V6. */
:root{--kg-gold:#f3c56b;--kg-lavender:#c5a1d8}
/* Remove the inherited cyan mouse-follow spotlight, including on desktop. */
.journey .mission::before{background:radial-gradient(380px circle at var(--glow-x,50%) var(--glow-y,50%),rgba(243,197,107,.24),rgba(229,166,184,.10) 37%,transparent 73%)!important}
@media(hover:hover) and (pointer:fine){
 .journey .mission:hover{border-color:rgba(243,197,107,.75)!important;box-shadow:0 28px 75px rgba(10,8,30,.4),0 0 30px rgba(243,197,107,.19),inset 0 1px rgba(255,235,190,.25)!important}
 .journey .mission:focus-within{border-color:rgba(243,197,107,.8)!important;box-shadow:0 0 0 1px rgba(243,197,107,.3),0 18px 45px rgba(10,8,30,.3)!important}
}
/* Pulse is triggered by the existing JS justDone class; keep the gold outline afterwards. */
.journey .mission.done{border-color:var(--kg-gold)!important;box-shadow:0 16px 55px rgba(12,8,34,.23),0 0 0 1px rgba(243,197,107,.16)!important}
.journey .mission.justDone{animation:kgCardGoldPulse 1.15s cubic-bezier(.2,.65,.25,1) both!important}
@keyframes kgCardGoldPulse{
 0%{box-shadow:0 0 0 0 rgba(243,197,107,0),0 18px 55px rgba(12,8,34,.2)}
  30%{box-shadow:0 0 0 2px rgba(243,197,107,.88),0 0 42px rgba(243,197,107,.52),inset 0 0 20px rgba(243,197,107,.15)}
  62%{box-shadow:0 0 0 5px rgba(243,197,107,.17),0 0 30px rgba(243,197,107,.30)}
  100%{box-shadow:0 16px 55px rgba(12,8,34,.23),0 0 0 1px rgba(243,197,107,.16)}
}
/* Star activation pulse must also follow the kindergarten palette. */
.journey .starNode.justLit .core{animation:kgStarGoldPulse 1s ease-out!important}
@keyframes kgStarGoldPulse{0%{filter:drop-shadow(0 0 0 transparent)}45%{filter:drop-shadow(0 0 18px rgba(243,197,107,.95))}100%{filter:drop-shadow(0 0 7px rgba(243,197,107,.75))}}
@media(prefers-reduced-motion:reduce){.journey .mission.justDone,.journey .starNode.justLit .core{animation:none!important}}

/* V8: a completed discovery keeps breathing gently after the initial pulse.
   Separate inset ring avoids fighting the V7 one-shot box-shadow animation. */
.journey .mission.done::after{
  content:"";
  position:absolute;
  inset:1px;
  border:2px solid rgba(243,197,107,.42);
  border-radius:inherit;
  pointer-events:none;
  z-index:3;
  opacity:.55;
  box-shadow:inset 0 0 9px rgba(243,197,107,.10),0 0 8px rgba(243,197,107,.08);
  animation:kgGoldBreathe 3.4s ease-in-out infinite;
}
@keyframes kgGoldBreathe{
  0%,100%{opacity:.35;border-color:rgba(243,197,107,.38);box-shadow:inset 0 0 5px rgba(243,197,107,.07),0 0 4px rgba(243,197,107,.06)}
  50%{opacity:1;border-color:rgba(255,215,133,.88);box-shadow:inset 0 0 18px rgba(243,197,107,.20),0 0 19px rgba(243,197,107,.22)}
}
@media(prefers-reduced-motion:reduce){.journey .mission.done::after{animation:none;opacity:.7}}

/* V9: slower, restrained activation light and gentle breathing stars. */
.journey .mission.justDone{animation:kgCardGoldPulseSlow 2.35s cubic-bezier(.22,.55,.3,1) both!important}
@keyframes kgCardGoldPulseSlow{
  0%{box-shadow:0 16px 55px rgba(12,8,34,.23),0 0 0 0 rgba(243,197,107,0)}
  28%{box-shadow:0 16px 55px rgba(12,8,34,.23),0 0 0 2px rgba(243,197,107,.55),0 0 21px rgba(243,197,107,.24)}
  64%{box-shadow:0 16px 55px rgba(12,8,34,.23),0 0 0 3px rgba(243,197,107,.17),0 0 16px rgba(243,197,107,.16)}
  100%{box-shadow:0 16px 55px rgba(12,8,34,.23),0 0 0 1px rgba(243,197,107,.16)}
}
/* Only illuminated constellation planets/stars breathe; keep the inactive ones still. */
.journey .starMap .starNode.lit:not(.justLit) .core{animation:kgStarBreathe 4.8s ease-in-out infinite!important}
.nav .progressNav .miniStar.lit,.mobileDock .dockStar.lit{animation:kgStarBreathe 4.8s ease-in-out infinite!important;transform-box:fill-box;transform-origin:center}
@keyframes kgStarBreathe{
  0%,100%{opacity:.84;filter:drop-shadow(0 0 3px rgba(243,197,107,.40))}
  50%{opacity:1;filter:drop-shadow(0 0 9px rgba(243,197,107,.82))}
}
/* Existing miniature connection lines are drawn by JS with a cyan inline stroke. */
.nav .progressNav .miniSegment{stroke:var(--kg-lavender)!important;filter:drop-shadow(0 0 3px rgba(197,161,216,.55))}
@media(prefers-reduced-motion:reduce){
  .journey .mission.justDone,.journey .starMap .starNode.lit:not(.justLit) .core,
  .nav .progressNav .miniStar.lit,.mobileDock .dockStar.lit{animation:none!important}
}
