/* Projected source hotspots: compact at rest, detailed on hover or activation. */
.world-hotspot {
  --hotspot-rgb: 118,204,224;
  --card-x: 57px;
  --card-y: -52px;
  --tip-y: 72px;
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  pointer-events: auto;
  z-index: 1;
  will-change: transform;
}
.world-hotspot.is-open { z-index: 12; }
.hotspot-trigger {
  display: grid;
  place-items: center;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: rgb(var(--hotspot-rgb));
  background: transparent;
  cursor: pointer;
}
.hotspot-trigger:focus-visible { outline: 2px solid rgb(var(--hotspot-rgb)); outline-offset: 4px; }
.hotspot-title {
  position: absolute;
  left: var(--title-x,42px);
  top: var(--title-y,7px);
  display: block;
  padding: 6px 9px;
  border: 1px solid rgba(var(--hotspot-rgb),.24);
  border-radius: 6px;
  background: rgba(9,27,41,.94);
  box-shadow: 0 3px 12px rgba(0,10,19,.18);
  color: rgb(var(--hotspot-rgb));
  font-size: 12px;
  font-weight: 650;
  line-height: 16px;
  letter-spacing: .005em;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.hotspot-trigger:hover .hotspot-title,
.hotspot-trigger:focus-visible .hotspot-title,
.world-hotspot.is-open .hotspot-title {
  border-color: rgba(var(--hotspot-rgb),.65);
  background: #173242;
  box-shadow: 0 0 18px rgba(var(--hotspot-rgb),.12);
}
.hotspot-title.nouren-title { color: var(--blue); font-weight: 800; letter-spacing: -.04em; }
.nouren-title span { color: var(--yellow); }
.hotspot-orbit {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(var(--hotspot-rgb),.7);
  border-radius: 50%;
  pointer-events: none;
  animation: hotspot-pulse 3.2s cubic-bezier(.2,.6,.3,1) infinite;
  animation-delay: var(--pulse-delay,0s);
}
.hotspot-dot {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(var(--hotspot-rgb),.75);
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 40% 35%,rgba(var(--hotspot-rgb),.2),rgba(9,30,43,.93) 76%);
  box-shadow: 0 0 0 4px rgba(var(--hotspot-rgb),.06), 0 0 22px rgba(var(--hotspot-rgb),.34), inset 0 0 8px rgba(var(--hotspot-rgb),.10);
  animation: hotspot-glow 3.2s ease-in-out infinite;
  animation-delay: var(--pulse-delay,0s);
  transition: transform .24s ease, background .24s ease, box-shadow .24s ease;
}
.hotspot-dot::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(var(--hotspot-rgb));
  box-shadow: 0 0 9px rgba(var(--hotspot-rgb),.9);
  transition: opacity .18s ease, transform .18s ease;
}
.hotspot-dot .icon { width: 14px; height: 14px; stroke-width: 1.5; opacity: 0; transform: scale(.65); transition: opacity .18s ease, transform .24s ease; }
.world-hotspot.is-open .hotspot-dot {
  animation: none;
  transform: scale(1.12);
  border-color: rgb(var(--hotspot-rgb));
  background: #163949;
  box-shadow: 0 0 0 5px rgba(var(--hotspot-rgb),.09), 0 0 28px rgba(var(--hotspot-rgb),.42);
}
.world-hotspot.is-open .hotspot-dot::before { opacity: 0; transform: scale(.3); }
.world-hotspot.is-open .hotspot-dot .icon { opacity: 1; transform: scale(1); }
.world-hotspot.is-open .hotspot-orbit { animation: none; opacity: 0; }
.hotspot-card {
  position: absolute;
  left: var(--card-x);
  top: var(--card-y);
  width: 248px;
  padding: 17px 18px 15px;
  border: 1px solid rgba(var(--hotspot-rgb),.34);
  border-radius: 12px;
  background: linear-gradient(145deg,rgba(28,62,78,.98),rgba(10,31,46,.98) 78%);
  box-shadow: 0 15px 40px rgba(1,12,21,.38), inset 0 1px 0 rgba(213,242,250,.08), 0 0 28px rgba(var(--hotspot-rgb),.035);
  backdrop-filter: blur(18px);
  color: #eaf5f8;
  text-align: left;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-7px) scale(.97);
  transform-origin: left center;
  transition: opacity .2s ease, transform .24s cubic-bezier(.2,.8,.2,1), visibility 0s .24s;
}
.world-hotspot[data-side="left"] .hotspot-card { transform: translateX(7px) scale(.97); transform-origin: right center; }
.world-hotspot.is-open .hotspot-card { opacity: 1; visibility: visible; transform: translateX(0) scale(1); pointer-events: auto; transition-delay: 0s; }
/* An invisible bridge lets the pointer travel from the light into the card. */
.hotspot-card::before { content: ''; position: absolute; left: -20px; top: 0; width: 20px; height: 100%; }
.world-hotspot[data-side="left"] .hotspot-card::before { left: auto; right: -20px; }
.hotspot-card::after {
  content: '';
  position: absolute;
  top: calc(var(--tip-y) - 5px);
  left: -5px;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  border-left: 1px solid rgba(var(--hotspot-rgb),.34);
  border-bottom: 1px solid rgba(var(--hotspot-rgb),.34);
  background: #183849;
}
.world-hotspot[data-side="left"] .hotspot-card::after { left: auto; right: -5px; border-left: 0; border-bottom: 0; border-top: 1px solid rgba(var(--hotspot-rgb),.34); border-right: 1px solid rgba(var(--hotspot-rgb),.34); background: #0e2738; }
.world-hotspot[data-side="above"] .hotspot-card { transform: translateY(7px) scale(.97); transform-origin: center bottom; }
.world-hotspot[data-side="below"] .hotspot-card { transform: translateY(-7px) scale(.97); transform-origin: center top; }
.world-hotspot[data-side="above"].is-open .hotspot-card,.world-hotspot[data-side="below"].is-open .hotspot-card { transform: translateY(0) scale(1); }
.world-hotspot[data-side="above"] .hotspot-card::before { left: 0; top: auto; bottom: -20px; width: 100%; height: 20px; }
.world-hotspot[data-side="below"] .hotspot-card::before { left: 0; top: -20px; width: 100%; height: 20px; }
.world-hotspot[data-side="above"] .hotspot-card::after { left: calc(var(--tip-x) - 4px); top: auto; bottom: -5px; border-left: 0; border-right: 1px solid rgba(var(--hotspot-rgb),.34); background: #0e2738; }
.world-hotspot[data-side="below"] .hotspot-card::after { left: calc(var(--tip-x) - 4px); top: -5px; border-bottom: 0; border-top: 1px solid rgba(var(--hotspot-rgb),.34); }
.hotspot-close { position: absolute; top: 9px; right: 8px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: #8eaebb; padding: 0; }
.hotspot-close .icon { width: 12px; height: 12px; }
.hotspot-close:hover,.hotspot-close:focus-visible { color: rgb(var(--hotspot-rgb)); background: rgba(var(--hotspot-rgb),.10); }
.hotspot-card-top { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.hotspot-card-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: rgb(var(--hotspot-rgb)); background: rgba(var(--hotspot-rgb),.08); border: 1px solid rgba(var(--hotspot-rgb),.16); flex-shrink: 0; }
.hotspot-card-icon .icon { width: 16px; height: 16px; }
.hotspot-kicker { color: rgb(var(--hotspot-rgb)); font-size: 8.5px; font-weight: 650; letter-spacing: .055em; line-height: 1.6; text-transform: uppercase; }
.hotspot-index { margin-left: auto; margin-right: 20px; font-size: 9px; font-variant-numeric: tabular-nums; letter-spacing: .07em; color: #6e8f9f; }
.hotspot-card h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.035em; font-weight: 650; }
.hotspot-card p { font-size: 12px; line-height: 1.65; margin-top: 8px; color: #b6cdd8; }
.hotspot-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin-top: 13px; padding-top: 10px; border-top: 1px solid rgba(var(--hotspot-rgb),.14); font-size: 9px; color: #b2cbd7; }
.hotspot-meta span + span::before { content: '·'; margin-right: 10px; color: rgb(var(--hotspot-rgb)); }
@keyframes hotspot-pulse {
  0% { opacity: .8; transform: scale(.86); }
  75%,100% { opacity: 0; transform: scale(2); }
}
@keyframes hotspot-glow {
  0%,100% { box-shadow: 0 0 0 3px rgba(var(--hotspot-rgb),.05), 0 0 15px rgba(var(--hotspot-rgb),.26), inset 0 0 6px rgba(var(--hotspot-rgb),.08); }
  50% { box-shadow: 0 0 0 5px rgba(var(--hotspot-rgb),.13), 0 0 29px rgba(var(--hotspot-rgb),.58), inset 0 0 10px rgba(var(--hotspot-rgb),.22); }
}
body.motion-paused .hotspot-orbit,body.motion-paused .hotspot-dot { animation-play-state: paused; }
@media(max-width:680px) {
  .hotspot-title { font-size: 11px; padding: 5px 8px; }
  .hotspot-card { width: 224px; padding: 14px 15px 13px; border-radius: 10px; }
  .hotspot-card-top { gap: 8px; margin-bottom: 10px; }
  .hotspot-card-icon { width: 26px; height: 26px; border-radius: 7px; }
  .hotspot-kicker { font-size: 8px; letter-spacing: .035em; }
  .hotspot-card h3 { font-size: 19px; }
  .hotspot-card p { font-size: 12px; line-height: 1.6; }
  .hotspot-meta { gap: 0 8px; font-size: 9px; margin-top: 11px; padding-top: 9px; }
  .hotspot-meta span + span::before { margin-right: 8px; }
}
@media(prefers-reduced-motion:reduce) {
  .hotspot-orbit { animation: none; opacity: .3; }
  .hotspot-dot { animation: none; }
  .hotspot-dot,.hotspot-dot::before,.hotspot-dot .icon,.hotspot-card,.hotspot-title { transition: none; }
}
