/* Hero constellation — hall stars on the orb ring */

.hero-section {
  container-type: size;
  container-name: hero;
}

.hero-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-stars.is-off,
.hero-stars[hidden],
.hero-hall-links.is-off,
.hero-hall-links[hidden] {
  display: none !important;
}

.hero-stars__orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  /* Fallback ≈ Orb: ring diameter 0.8 × min(viewport) */
  width: min(80vw, 80vh);
  height: min(80vw, 80vh);
  transform: translate(-50%, -50%);
}

@supports (width: 1cqw) {
  .hero-stars__orbit {
    /* Match Orb shader against the hero box itself */
    width: min(80cqw, 80cqh);
    height: min(80cqw, 80cqh);
  }
}

.hero-star {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  --a: 180deg;
  transform: rotate(var(--a));
  pointer-events: none;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.hero-star__anchor {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%) rotate(calc(-1 * var(--a)));
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: auto;
  cursor: pointer;
}

.hero-star[data-label="start"] .hero-star__anchor {
  flex-direction: row-reverse;
}

.hero-star[data-label="bottom"] .hero-star__anchor {
  flex-direction: column;
  gap: 14px;
}

.hero-star[data-label="top"] .hero-star__anchor {
  flex-direction: column-reverse;
  gap: 14px;
}

.hero-star__hit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  /* Collapse 44px hit to the 8px mark so the 14px label gap is from the arc */
  margin: -18px;
}

.hero-star__mark {
  position: relative;
  width: 8px;
  height: 8px;
  display: block;
  transition: transform 0.25s ease;
}

.hero-star__rays {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 13px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-star__rays::before,
.hero-star__rays::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #fff;
  border-radius: 1px;
  box-shadow: 0 0 6px rgba(255, 200, 255, 0.85);
}

.hero-star__rays::before {
  width: 1.5px;
  height: 13px;
  transform: translate(-50%, -50%);
}

.hero-star__rays::after {
  width: 13px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.hero-star__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.95),
    0 0 8px 2px rgba(255, 255, 255, 0.9),
    0 0 16px 5px rgba(200, 90, 255, 0.75),
    0 0 28px 10px rgba(140, 50, 255, 0.4);
  transition: box-shadow 0.25s ease, opacity 0.25s ease;
  animation: hero-star-pulse 2.8s ease-in-out infinite;
  animation-delay: var(--pulse-delay, 0s);
}

.hero-star__name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  color: #fff;
  opacity: 0.85;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
  transition: color 0.25s ease, opacity 0.25s ease;
}

.hero-star__tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(10, 10, 14, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 4;
}

.hero-star[data-label="top"] .hero-star__tip {
  bottom: auto;
  top: calc(100% + 8px);
  transform: translateX(-50%) translateY(-4px);
}

.hero-star[data-label="bottom"] .hero-star__tip {
  bottom: auto;
  top: calc(100% + 8px);
  transform: translateX(-50%) translateY(-4px);
}

.hero-star:hover .hero-star__mark,
.hero-star:focus-visible .hero-star__mark {
  transform: scale(1.4);
}

.hero-star:hover .hero-star__dot,
.hero-star:focus-visible .hero-star__dot {
  animation: none;
  transform: translate(-50%, -50%) scale(1);
  box-shadow:
    0 0 0 1px #fff,
    0 0 10px 3px rgba(255, 255, 255, 0.95),
    0 0 22px 7px rgba(200, 90, 255, 0.9),
    0 0 40px 14px rgba(140, 50, 255, 0.5);
}

.hero-star:hover .hero-star__name,
.hero-star:focus-visible .hero-star__name {
  color: #fff;
  opacity: 1;
}

.hero-star:hover .hero-star__tip,
.hero-star:focus-visible .hero-star__tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.hero-star:focus-visible {
  outline: none;
}

.hero-star:focus-visible .hero-star__dot {
  outline: 2px solid rgba(var(--sh-accent-rgb, 201, 169, 98), 0.9);
  outline-offset: 4px;
}

@keyframes hero-star-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-star__dot {
    animation: none;
  }

  .hero-star__mark,
  .hero-star__dot,
  .hero-star__name,
  .hero-star__tip {
    transition: none;
  }
}

/* Mobile: stars off, compact text links under CTAs */
.hero-hall-links {
  display: none;
  margin: 4px 0 0;
  max-width: min(420px, 100%);
  padding: 0 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

.hero-hall-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero-hall-links a:hover,
.hero-hall-links a:focus-visible {
  color: #fff;
}

.hero-hall-links a:focus-visible {
  outline: 2px solid rgba(var(--sh-accent-rgb, 201, 169, 98), 0.85);
  outline-offset: 3px;
  border-radius: 2px;
}

.hero-hall-links__sep {
  margin: 0 0.35em;
  opacity: 0.55;
  user-select: none;
}

@media (max-width: 767.98px) {
  .hero-stars {
    display: none !important;
  }

  .hero-hall-links:not(.is-off):not([hidden]) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(64px + env(safe-area-inset-top, 0px));
    bottom: auto;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.35;
    z-index: 2;
  }
}

@media (min-width: 768px) {
  .hero-hall-links {
    display: none !important;
  }
}
