/* Portal home interactive celestial experience v1. Loaded after portal.css. */

.portal-home-page {
  --celestial-void: #020617;
  --celestial-night: #07142f;
  --celestial-blue: #54d8ff;
  --celestial-cyan: #77f4ff;
  --celestial-violet: #8a64ff;
  --celestial-magenta: #f067ff;
  --celestial-gold: #ffc963;
  --celestial-cream: #fff7df;
  --celestial-ink: #f8fbff;
  --celestial-muted: #b9cce5;
  --celestial-container: 1180px;
  min-width: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 12% 9%, rgba(84, 216, 255, 0.14), transparent 26rem),
    radial-gradient(circle at 88% 22%, rgba(138, 100, 255, 0.13), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #06122c 45%, #081934 72%, #020711 100%);
}

.portal-home-page main {
  width: 100%;
  max-width: none;
  margin: 0;
  overflow-x: clip;
}

.portal-home-page .site-header {
  border-bottom-color: rgba(141, 213, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.96), rgba(2, 8, 28, 0.82));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.portal-home-page .portal-home-nav {
  width: min(calc(100% - 2rem), var(--celestial-container));
  min-height: 70px;
  padding-block: 0.45rem;
}

.portal-home-page .portal-home-nav .brand {
  gap: 0.7rem;
}

.portal-home-page .portal-home-nav .brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  color: #061126;
  border: 1px solid rgba(255, 245, 205, 0.76);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, #ffffff 0 8%, transparent 9%),
    radial-gradient(circle at 40% 36%, #fff8c8, #ffc963 48%, #56d8ff 100%);
  box-shadow:
    0 0 0 0.34rem rgba(84, 216, 255, 0.08),
    0 0 26px rgba(255, 201, 99, 0.32);
}

.portal-home-page .portal-home-nav .brand-mark::after {
  inset: -0.42rem;
  border-color: rgba(84, 216, 255, 0.4);
  border-radius: 50%;
  transform: rotate(-18deg) scaleY(0.42);
}

.portal-home-page .portal-home-nav .brand-name {
  font-size: 1.04rem;
}

.portal-home-page .portal-home-nav .brand-subtitle {
  color: #b9cce5;
}

.portal-home-page .portal-home-nav .nav-links a {
  min-height: 40px;
  color: #d8e8f8;
  border-radius: 999px;
}

.portal-home-page .portal-home-nav .nav-links a:hover,
.portal-home-page .portal-home-nav .nav-links a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 -2px 0 var(--celestial-gold);
}

.portal-home-page svg {
  display: block;
}

.portal-home-page svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.celestial-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  min-height: clamp(720px, calc(100svh - 70px), 920px);
  place-items: center;
  padding: clamp(2rem, 4vw, 3.5rem) 1rem clamp(3.7rem, 6vw, 5rem);
  overflow: hidden;
  color: var(--celestial-ink);
  background:
    radial-gradient(circle at 64% 42%, rgba(240, 103, 255, 0.22), transparent 18rem),
    radial-gradient(circle at 58% 42%, rgba(84, 216, 255, 0.24), transparent 30rem),
    radial-gradient(circle at 15% 18%, rgba(255, 201, 99, 0.12), transparent 15rem),
    linear-gradient(145deg, #020514 0%, #061230 42%, #0b1650 69%, #030618 100%);
}

.celestial-hero::before,
.celestial-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.celestial-hero::before {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(119, 244, 255, 0.8) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(255, 201, 99, 0.8) 0 1px, transparent 1.8px);
  background-position: 12px 28px, 47px 76px, 94px 22px;
  background-size: 122px 122px, 181px 181px, 249px 249px;
  opacity: 0.36;
}

.celestial-hero::after {
  top: auto;
  height: 26%;
  background:
    linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.66) 76%, #06122c),
    radial-gradient(ellipse at 50% 100%, rgba(84, 216, 255, 0.2), transparent 64%);
}

.celestial-sky-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.92;
}

.celestial-nebula {
  position: absolute;
  z-index: 0;
  width: clamp(22rem, 58vw, 62rem);
  aspect-ratio: 1.45;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.42;
  will-change: transform;
}

.celestial-nebula-one {
  top: 7%;
  right: -8%;
  background:
    radial-gradient(ellipse at 46% 52%, rgba(255, 255, 255, 0.46) 0 1%, rgba(84, 216, 255, 0.3) 8%, rgba(138, 100, 255, 0.28) 28%, rgba(240, 103, 255, 0.08) 48%, transparent 72%);
  transform: rotate(-12deg);
}

.celestial-nebula-two {
  right: 18%;
  bottom: -26%;
  background:
    radial-gradient(ellipse at 54% 48%, rgba(255, 201, 99, 0.26) 0 3%, rgba(240, 103, 255, 0.16) 23%, rgba(84, 216, 255, 0.1) 45%, transparent 70%);
  transform: rotate(18deg);
}

.celestial-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(20rem, 0.84fr) minmax(32rem, 1.16fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
  width: min(100%, var(--celestial-container));
  min-width: 0;
  margin: 0 auto;
}

.celestial-hero-copy {
  position: relative;
  z-index: 4;
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.35rem);
  min-width: 0;
  padding: clamp(0.4rem, 1vw, 0.8rem) 0;
  text-shadow:
    0 3px 20px rgba(0, 0, 0, 0.82),
    0 0 40px rgba(0, 0, 0, 0.52);
}

.celestial-hero-copy h1 {
  display: grid;
  max-width: 7.5em;
  color: #ffffff;
  font-size: clamp(3rem, 6vw, 5.7rem);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: -0.045em;
  overflow-wrap: normal;
  word-break: keep-all;
}

.celestial-hero-copy h1 span {
  display: block;
}

.celestial-hero-copy h1 em {
  color: var(--celestial-gold);
  font-style: normal;
  text-shadow:
    0 0 18px rgba(255, 201, 99, 0.42),
    0 3px 18px rgba(0, 0, 0, 0.7);
}

.celestial-hero-lead {
  max-width: 31rem;
  color: #edf7ff;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 750;
  line-height: 1.75;
}

.celestial-hero-actions {
  display: grid;
  gap: 0.85rem;
  justify-items: start;
  width: min(100%, 25rem);
}

.celestial-primary-cta {
  display: inline-flex;
  width: min(100%, 24rem);
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 0.95rem 1.3rem;
  color: #07142f;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 950;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 1px solid rgba(255, 247, 215, 0.9);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 255, 255, 0.95), transparent 2.5rem),
    linear-gradient(135deg, #fff2bc 0%, #ffc963 52%, #ff9f5b 100%);
  box-shadow:
    0 18px 46px rgba(255, 159, 91, 0.28),
    0 0 36px rgba(255, 201, 99, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.celestial-primary-cta svg {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
}

.celestial-primary-cta:hover {
  box-shadow:
    0 22px 52px rgba(255, 159, 91, 0.34),
    0 0 48px rgba(255, 201, 99, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transform: translateY(-2px);
}

.celestial-primary-cta:focus-visible,
.celestial-secondary-link:focus-visible,
.celestial-scroll-cue:focus-visible,
.celestial-portal:focus-visible,
.celestial-destination:focus-visible,
.celestial-all-games-link:focus-visible,
.celestial-guidance-links a:focus-visible,
.celestial-rail-controls button:focus-visible,
.hero-celestial:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 5px;
}

.celestial-secondary-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.2rem;
  color: #dbeeff;
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
  text-underline-offset: 0.22em;
}

.celestial-secondary-link span {
  border-bottom: 1px solid rgba(219, 238, 255, 0.52);
}

.celestial-secondary-link svg {
  width: 1.1rem;
  height: 1.1rem;
}

.celestial-stage {
  --scene-shift-x: 0px;
  --scene-shift-y: 0px;
  --scene-rotation: 0deg;
  --mascot-shift-x: 0px;
  --mascot-shift-y: 0px;
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: clamp(31rem, 54vw, 39rem);
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.celestial-stage.is-dragging {
  cursor: grabbing;
}

.celestial-stage::before,
.celestial-stage::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.celestial-stage::before {
  top: 13%;
  left: 5%;
  width: 87%;
  height: 62%;
  border: 1px solid rgba(119, 244, 255, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 2.3rem rgba(138, 100, 255, 0.025),
    0 0 0 5.2rem rgba(84, 216, 255, 0.018),
    inset 0 0 48px rgba(84, 216, 255, 0.06);
  transform: rotate(-14deg) scaleY(0.56);
}

.celestial-stage::after {
  inset: 6% 3% 8% 6%;
  background:
    radial-gradient(circle at 17% 28%, #ffffff 0 1px, transparent 1.8px),
    radial-gradient(circle at 82% 18%, var(--celestial-gold) 0 1.5px, transparent 2px),
    radial-gradient(circle at 72% 75%, var(--celestial-cyan) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 34% 82%, #ffffff 0 1px, transparent 1.7px);
  opacity: 0.8;
}

.celestial-vortex {
  position: absolute;
  top: 46%;
  left: 48%;
  z-index: 0;
  width: min(78%, 35rem);
  aspect-ratio: 1;
  pointer-events: none;
  transform:
    translate(-50%, -50%)
    translate3d(var(--scene-shift-x), var(--scene-shift-y), 0)
    rotate(var(--scene-rotation));
  transition: transform 180ms ease-out;
  will-change: transform;
}

.vortex-ring,
.vortex-core {
  position: absolute;
  border-radius: 50%;
}

.vortex-ring {
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 18px rgba(84, 216, 255, 0.34),
    inset 0 0 26px rgba(138, 100, 255, 0.24);
}

.vortex-ring-one {
  background:
    conic-gradient(from 20deg, transparent 0 8%, rgba(84, 216, 255, 0.86) 13%, transparent 21% 31%, rgba(240, 103, 255, 0.78) 38%, transparent 48% 63%, rgba(255, 201, 99, 0.74) 70%, transparent 79% 100%);
  mask: radial-gradient(circle, transparent 0 59%, #000 60% 67%, transparent 68%);
  animation: celestial-vortex-spin 28s linear infinite;
}

.vortex-ring-two {
  inset: 11%;
  border-color: rgba(240, 103, 255, 0.32);
  background:
    conic-gradient(from 180deg, transparent 0 12%, rgba(240, 103, 255, 0.72) 18%, transparent 27% 42%, rgba(119, 244, 255, 0.78) 49%, transparent 60% 74%, rgba(255, 255, 255, 0.58) 80%, transparent 90%);
  mask: radial-gradient(circle, transparent 0 54%, #000 56% 67%, transparent 69%);
  animation: celestial-vortex-spin-reverse 20s linear infinite;
}

.vortex-ring-three {
  inset: 23%;
  border-color: rgba(119, 244, 255, 0.34);
  background:
    conic-gradient(from 60deg, rgba(84, 216, 255, 0.72), transparent 22%, rgba(240, 103, 255, 0.66), transparent 54%, rgba(255, 201, 99, 0.58), transparent 82%);
  mask: radial-gradient(circle, transparent 0 48%, #000 51% 66%, transparent 69%);
  animation: celestial-vortex-spin 14s linear infinite;
}

.vortex-core {
  inset: 35%;
  background:
    radial-gradient(circle at 45% 42%, #ffffff 0 1%, #d8fbff 2%, #54d8ff 7%, #8a64ff 18%, rgba(240, 103, 255, 0.34) 34%, rgba(2, 6, 23, 0.92) 66%);
  box-shadow:
    0 0 28px rgba(84, 216, 255, 0.72),
    0 0 72px rgba(240, 103, 255, 0.46);
  animation: celestial-core-pulse 4.8s ease-in-out infinite;
}

.hero-celestial {
  position: absolute;
  z-index: 3;
  display: grid;
  min-width: 58px;
  min-height: 58px;
  place-items: center;
  padding: 0;
  color: #ffffff;
  font: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.hero-celestial:hover {
  transform: scale(1.08);
}

.hero-celestial-orb {
  position: relative;
  display: block;
  width: 3.6rem;
  height: 3.6rem;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 50%;
  box-shadow:
    inset -0.75rem -0.55rem 0 rgba(2, 6, 23, 0.24),
    0 0 24px rgba(84, 216, 255, 0.28);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.hero-celestial-name {
  position: absolute;
  top: calc(100% + 0.15rem);
  left: 50%;
  min-height: 1.7rem;
  padding: 0.16rem 0.5rem;
  color: #f8fbff;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
  border: 1px solid rgba(216, 234, 255, 0.18);
  border-radius: 999px;
  background: rgba(2, 8, 28, 0.74);
  transform: translateX(-50%);
}

.hero-celestial.is-selected .hero-celestial-orb {
  border-color: #ffffff;
  box-shadow:
    inset -0.75rem -0.55rem 0 rgba(2, 6, 23, 0.22),
    0 0 0 0.35rem rgba(255, 255, 255, 0.12),
    0 0 34px rgba(119, 244, 255, 0.72);
  transform: scale(1.14);
}

.hero-celestial.is-selected .hero-celestial-name {
  color: #07142f;
  border-color: rgba(255, 255, 255, 0.72);
  background: #ffffff;
}

.hero-celestial-moon {
  top: 10%;
  left: 7%;
}

.hero-celestial-moon .hero-celestial-orb {
  width: 3rem;
  height: 3rem;
  background:
    radial-gradient(circle at 36% 32%, rgba(255, 255, 255, 0.76) 0 0.28rem, transparent 0.31rem),
    radial-gradient(circle at 67% 61%, rgba(83, 103, 143, 0.36) 0 0.45rem, transparent 0.48rem),
    linear-gradient(145deg, #f6fbff, #9eb4d0 66%, #536789);
}

.hero-celestial-earth {
  bottom: 17%;
  left: 9%;
}

.hero-celestial-earth .hero-celestial-orb {
  width: 4.35rem;
  height: 4.35rem;
  background:
    radial-gradient(ellipse at 36% 34%, #79d59c 0 10%, transparent 11%),
    radial-gradient(ellipse at 66% 62%, #5dc28d 0 13%, transparent 14%),
    radial-gradient(ellipse at 42% 76%, #d6f7ff 0 6%, transparent 7%),
    linear-gradient(145deg, #8ee8ff, #2377ca 62%, #173d82);
}

.hero-celestial-saturn {
  top: 9%;
  right: 5%;
}

.hero-celestial-saturn .hero-celestial-orb {
  width: 5rem;
  height: 5rem;
  background:
    repeating-linear-gradient(178deg, #fff0bc 0 0.42rem, #e0ae72 0.44rem 0.72rem, #b47a63 0.74rem 0.98rem);
}

.hero-celestial-saturn .hero-celestial-orb::after {
  position: absolute;
  top: 36%;
  left: -31%;
  width: 162%;
  height: 32%;
  content: "";
  border: 0.42rem solid rgba(255, 232, 173, 0.9);
  border-top-color: rgba(255, 246, 209, 0.42);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.celestial-mascot {
  position: absolute;
  right: 0;
  bottom: 4%;
  z-index: 5;
  display: grid;
  justify-items: center;
  width: min(36%, 15.5rem);
  margin: 0;
  pointer-events: none;
  transform: translate3d(var(--mascot-shift-x), var(--mascot-shift-y), 0);
  transition: transform 220ms ease-out;
  filter: drop-shadow(0 1.3rem 1.6rem rgba(0, 0, 0, 0.42));
}

.celestial-mascot img {
  display: block;
  width: 100%;
  height: auto;
  animation: celestial-mascot-float 5.6s ease-in-out infinite;
}

.celestial-mascot figcaption {
  position: absolute;
  top: 8%;
  right: 82%;
  width: min(12rem, 38vw);
  padding: 0.58rem 0.76rem;
  color: #07142f;
  font-size: clamp(0.72rem, 1.2vw, 0.84rem);
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 1rem 1rem 0.3rem 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.celestial-mascot.is-reacting img {
  animation: celestial-mascot-react 440ms ease-out;
}

.celestial-touch-hint {
  position: absolute;
  bottom: 4%;
  left: 46%;
  z-index: 4;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.65rem;
  color: #cfe7ff;
  font-size: 0.78rem;
  font-weight: 850;
  border: 1px solid rgba(216, 234, 255, 0.16);
  border-radius: 999px;
  background: rgba(2, 8, 28, 0.62);
  transform: translateX(-50%);
}

.celestial-touch-hint svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
}

.celestial-scroll-cue {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  z-index: 4;
  display: grid;
  min-width: 7.5rem;
  min-height: 44px;
  place-items: center;
  gap: 0.05rem;
  color: #d9eeff;
  font-size: 0.72rem;
  font-weight: 850;
  text-decoration: none;
  transform: translateX(-50%);
}

.celestial-scroll-cue svg {
  width: 1.25rem;
  height: 1.25rem;
  animation: celestial-scroll-bob 2.2s ease-in-out infinite;
}

.celestial-portals-section {
  position: relative;
  isolation: isolate;
  width: 100%;
  padding: clamp(4.8rem, 9vw, 8rem) 1rem clamp(5.5rem, 10vw, 9rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 24%, rgba(84, 216, 255, 0.13), transparent 24rem),
    radial-gradient(circle at 88% 38%, rgba(240, 103, 255, 0.11), transparent 27rem),
    linear-gradient(180deg, #06122c 0%, #07163b 48%, #07122c 100%);
}

.celestial-portals-section::before,
.celestial-portals-section::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.celestial-portals-section::before {
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(84, 216, 255, 0.5) 0 1px, transparent 1.5px);
  background-position: 18px 32px, 84px 61px;
  background-size: 168px 168px, 246px 246px;
  opacity: 0.22;
}

.celestial-portals-section::after {
  right: -12rem;
  bottom: -18rem;
  width: 38rem;
  aspect-ratio: 1;
  border: 1px solid rgba(119, 244, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 4rem rgba(138, 100, 255, 0.02),
    0 0 0 9rem rgba(84, 216, 255, 0.015);
}

.celestial-section-heading,
.celestial-destinations-heading,
.celestial-guidance-heading {
  width: min(100%, var(--celestial-container));
  margin-inline: auto;
}

.celestial-section-heading {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
  margin-bottom: clamp(2.8rem, 6vw, 4.8rem);
  text-align: center;
}

.celestial-section-heading h2,
.celestial-destinations-heading h2,
.celestial-guidance-heading h2 {
  color: #ffffff;
  font-size: clamp(2rem, 4.7vw, 3.9rem);
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.celestial-section-heading p,
.celestial-destinations-heading p,
.celestial-guidance-heading p {
  color: var(--celestial-muted);
  font-size: clamp(0.98rem, 1.8vw, 1.08rem);
  line-height: 1.75;
}

.celestial-portals {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.8rem);
  width: min(100%, var(--celestial-container));
  margin: 0 auto;
}

.celestial-portals::before {
  position: absolute;
  top: 24%;
  left: 4%;
  width: 92%;
  height: 46%;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(119, 244, 255, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 2.8rem rgba(138, 100, 255, 0.02),
    inset 0 0 40px rgba(84, 216, 255, 0.04);
  transform: rotate(-5deg) scaleY(0.52);
}

.celestial-portal {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  align-content: start;
  justify-items: center;
  gap: 1.2rem;
  color: var(--celestial-ink);
  text-align: center;
  text-decoration: none;
}

.celestial-portal:nth-child(even) {
  transform: translateY(2.4rem);
}

.celestial-portal-visual {
  position: relative;
  display: block;
  width: min(100%, 15.5rem);
  aspect-ratio: 1;
  padding: 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(2, 8, 28, 0.7) 72%);
  box-shadow:
    0 0 0 0.7rem rgba(84, 216, 255, 0.04),
    0 0 44px rgba(84, 216, 255, 0.18),
    inset 0 0 28px rgba(255, 255, 255, 0.1);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.celestial-portal-visual::before,
.celestial-portal-visual::after {
  position: absolute;
  pointer-events: none;
  content: "";
  border-radius: 50%;
}

.celestial-portal-visual::before {
  inset: -10%;
  border: 1px solid rgba(119, 244, 255, 0.24);
  transform: rotate(-12deg) scaleY(0.68);
}

.celestial-portal-visual::after {
  inset: 0.42rem;
  box-shadow:
    inset -2rem -1.5rem 2.8rem rgba(2, 8, 28, 0.5),
    inset 1.5rem 1rem 2rem rgba(255, 255, 255, 0.08);
}

.celestial-portal-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: saturate(1.08) contrast(1.04) brightness(0.92);
}

.celestial-portal-glow {
  position: absolute;
  inset: -15%;
  z-index: -1;
  border-radius: 50%;
  opacity: 0.48;
  background: radial-gradient(circle, rgba(84, 216, 255, 0.32), transparent 68%);
}

.celestial-portal-play .celestial-portal-glow {
  background: radial-gradient(circle, rgba(255, 201, 99, 0.36), transparent 68%);
}

.celestial-portal-observe .celestial-portal-glow {
  background: radial-gradient(circle, rgba(240, 103, 255, 0.32), transparent 68%);
}

.celestial-portal-work .celestial-portal-glow {
  background: radial-gradient(circle, rgba(138, 100, 255, 0.38), transparent 68%);
}

.celestial-portal:hover .celestial-portal-visual,
.celestial-portal:focus-visible .celestial-portal-visual {
  box-shadow:
    0 0 0 0.8rem rgba(84, 216, 255, 0.08),
    0 0 62px rgba(84, 216, 255, 0.36),
    inset 0 0 28px rgba(255, 255, 255, 0.12);
  transform: translateY(-4px) scale(1.03);
}

.celestial-portal-copy {
  display: grid;
  gap: 0.3rem;
  justify-items: center;
  min-width: 0;
}

.celestial-portal-role {
  color: var(--celestial-cyan);
  font-size: 0.75rem;
  font-weight: 900;
}

.celestial-portal-play .celestial-portal-role {
  color: var(--celestial-gold);
}

.celestial-portal-observe .celestial-portal-role {
  color: #f4a0ff;
}

.celestial-portal-work .celestial-portal-role {
  color: #bba8ff;
}

.celestial-portal-copy strong {
  color: #ffffff;
  font-size: clamp(1.25rem, 2.3vw, 1.65rem);
  font-weight: 950;
  line-height: 1.25;
}

.celestial-portal-product {
  color: #dcecff;
  font-size: 0.82rem;
  font-weight: 850;
}

.celestial-portal-description {
  max-width: 16rem;
  color: #b9cce5;
  font-size: 0.9rem;
  line-height: 1.65;
}

.celestial-portal-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 900;
}

.celestial-portal-action svg {
  width: 1.1rem;
  height: 1.1rem;
}

.celestial-portal-status {
  min-height: 1.4rem;
  color: #9fb9d4;
  font-size: 0.7rem;
  font-weight: 800;
}

.celestial-portal-status::before {
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.38rem;
  content: "";
  border: 1px solid currentColor;
  border-radius: 50%;
  vertical-align: 0.05em;
}

.celestial-constellation-divider {
  display: flex;
  width: min(calc(100% - 2rem), 54rem);
  height: 5rem;
  align-items: center;
  justify-content: center;
  margin: -2.5rem auto;
  color: rgba(119, 244, 255, 0.44);
  pointer-events: none;
}

.celestial-constellation-divider span {
  width: min(18vw, 9rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
  transform: rotate(8deg);
}

.celestial-constellation-divider span:nth-of-type(2) {
  background: currentColor;
  transform: rotate(-7deg);
}

.celestial-constellation-divider span:nth-of-type(3) {
  background: linear-gradient(90deg, currentColor, transparent);
  transform: rotate(5deg);
}

.celestial-constellation-divider i {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 18px var(--celestial-cyan);
}

.celestial-destinations-section {
  position: relative;
  isolation: isolate;
  width: 100%;
  padding: clamp(6.5rem, 11vw, 10rem) 0 clamp(5.5rem, 9vw, 8rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(84, 216, 255, 0.09), transparent 42rem),
    radial-gradient(circle at 86% 14%, rgba(138, 100, 255, 0.12), transparent 25rem),
    linear-gradient(180deg, #07122c 0%, #071839 48%, #06142f 100%);
}

.celestial-destinations-section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(90deg, transparent 49.8%, rgba(119, 244, 255, 0.035) 50%, transparent 50.2%),
    radial-gradient(circle, rgba(255, 255, 255, 0.62) 0 1px, transparent 1.5px);
  background-size: 7rem 100%, 184px 184px;
  opacity: 0.28;
}

.celestial-destinations-heading {
  display: flex;
  gap: 2rem;
  align-items: end;
  justify-content: space-between;
  padding-inline: 1rem;
}

.celestial-destinations-heading > div:first-child {
  display: grid;
  gap: 0.65rem;
  max-width: 48rem;
}

.celestial-rail-controls {
  display: grid;
  grid-template-columns: 44px minmax(7rem, auto) 44px;
  gap: 0.55rem;
  align-items: center;
}

.celestial-rail-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  color: #ffffff;
  border: 1px solid rgba(216, 234, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.celestial-rail-controls button:hover {
  color: #06142f;
  border-color: #ffffff;
  background: #ffffff;
}

.celestial-rail-controls svg {
  width: 1.2rem;
  height: 1.2rem;
}

.celestial-rail-controls p {
  color: #afc5df;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.celestial-rail-shell {
  position: relative;
  width: 100%;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.celestial-rail-shell::before,
.celestial-rail-shell::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: max(1rem, calc((100vw - var(--celestial-container)) / 2));
  pointer-events: none;
  content: "";
}

.celestial-rail-shell::before {
  left: 0;
  background: linear-gradient(90deg, #071839, transparent);
}

.celestial-rail-shell::after {
  right: 0;
  background: linear-gradient(270deg, #071839, transparent);
}

.celestial-destination-rail {
  display: flex;
  gap: clamp(0.85rem, 2vw, 1.45rem);
  align-items: stretch;
  width: 100%;
  padding: 1.4rem max(1rem, calc((100vw - var(--celestial-container)) / 2)) 2.2rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: max(1rem, calc((100vw - var(--celestial-container)) / 2));
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(119, 244, 255, 0.44) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
  touch-action: pan-x pan-y;
  cursor: grab;
}

.celestial-destination-rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.celestial-destination {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  flex: 0 0 clamp(12rem, 21vw, 15.5rem);
  gap: 0.5rem;
  align-content: start;
  min-width: 0;
  min-height: 21rem;
  padding: 0.55rem 0.7rem 1rem;
  color: var(--celestial-ink);
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 8rem 8rem 1.8rem 1.8rem;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease;
}

.celestial-destination::before {
  position: absolute;
  inset: 20% 0.3rem 0.3rem;
  z-index: -1;
  content: "";
  border-radius: 50% 50% 1.5rem 1.5rem;
  background:
    radial-gradient(circle at 50% 12%, rgba(84, 216, 255, 0.12), transparent 9rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  opacity: 0;
  transition: opacity 200ms ease;
}

.celestial-destination:hover,
.celestial-destination:focus-visible,
.celestial-destination.is-selected {
  border-color: rgba(216, 234, 255, 0.18);
  background: rgba(255, 255, 255, 0.025);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-0.4rem) scale(1.025);
}

.celestial-destination:hover::before,
.celestial-destination:focus-visible::before,
.celestial-destination.is-selected::before {
  opacity: 1;
}

.destination-index {
  justify-self: center;
  min-width: 2.2rem;
  color: #8fa8c5;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.destination-world {
  position: relative;
  display: grid;
  width: min(100%, 10.5rem);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 67%);
  filter: drop-shadow(0 1rem 1.1rem rgba(0, 0, 0, 0.3));
}

.destination-world::before,
.destination-world::after {
  position: absolute;
  pointer-events: none;
  content: "";
  border-radius: 50%;
}

.destination-world::before {
  inset: 4%;
  border: 1px solid rgba(119, 244, 255, 0.18);
  box-shadow:
    0 0 0 0.7rem rgba(84, 216, 255, 0.025),
    0 0 2.2rem rgba(84, 216, 255, 0.18);
}

.destination-world::after {
  top: 48%;
  left: -5%;
  width: 110%;
  height: 16%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transform: rotate(-13deg);
}

.destination-planet {
  position: relative;
  display: block;
  width: 68%;
  aspect-ratio: 1;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  box-shadow:
    inset -1.5rem -1rem 1.6rem rgba(2, 6, 23, 0.32),
    0 0 1.6rem rgba(84, 216, 255, 0.2);
  transition: transform 240ms ease;
}

.celestial-destination:hover .destination-planet,
.celestial-destination:focus-visible .destination-planet,
.celestial-destination.is-selected .destination-planet {
  transform: scale(1.1) rotate(2deg);
}

.destination-sun .destination-planet {
  border-color: rgba(255, 244, 192, 0.9);
  background:
    radial-gradient(circle at 33% 28%, rgba(255, 255, 255, 0.82) 0 5%, transparent 6%),
    repeating-radial-gradient(circle at 45% 52%, #fff0a1 0 0.42rem, #ffc239 0.44rem 0.82rem, #ff8f3e 0.84rem 1.08rem);
  box-shadow:
    inset -1rem -0.7rem 1.2rem rgba(157, 53, 14, 0.22),
    0 0 1.8rem rgba(255, 201, 99, 0.8),
    0 0 3.6rem rgba(255, 143, 62, 0.44);
}

.destination-mercury .destination-planet,
.destination-moon .destination-planet {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.64) 0 0.32rem, transparent 0.35rem),
    radial-gradient(circle at 68% 58%, rgba(73, 83, 106, 0.42) 0 0.58rem, transparent 0.62rem),
    radial-gradient(circle at 44% 74%, rgba(69, 79, 102, 0.28) 0 0.42rem, transparent 0.46rem),
    linear-gradient(145deg, #dce3ed, #7c8799 62%, #394559);
}

.destination-moon .destination-planet {
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.74) 0 0.34rem, transparent 0.37rem),
    radial-gradient(circle at 66% 61%, rgba(88, 100, 125, 0.36) 0 0.66rem, transparent 0.7rem),
    radial-gradient(circle at 37% 73%, rgba(88, 100, 125, 0.28) 0 0.42rem, transparent 0.46rem),
    linear-gradient(145deg, #f4f7fb, #aeb7c6 62%, #616c80);
}

.destination-venus .destination-planet {
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.42) 0 8%, transparent 9%),
    repeating-linear-gradient(170deg, #ffe09a 0 0.65rem, #e7a650 0.68rem 1.02rem, #c66f68 1.05rem 1.35rem);
}

.destination-earth .destination-planet {
  background:
    radial-gradient(ellipse at 34% 32%, #75d39c 0 10%, transparent 11%),
    radial-gradient(ellipse at 66% 62%, #5ac184 0 14%, transparent 15%),
    radial-gradient(ellipse at 42% 76%, #e0fbff 0 6%, transparent 7%),
    linear-gradient(145deg, #86e6ff, #257ccc 62%, #174080);
}

.destination-mars .destination-planet {
  background:
    radial-gradient(circle at 27% 33%, rgba(255, 218, 155, 0.38) 0 9%, transparent 10%),
    radial-gradient(circle at 67% 65%, rgba(105, 38, 43, 0.36) 0 13%, transparent 14%),
    linear-gradient(145deg, #ffb067, #dd5b3f 58%, #8d3340);
}

.destination-jupiter .destination-planet {
  background:
    radial-gradient(ellipse at 69% 64%, #b94545 0 8%, #ed9b6b 9% 12%, transparent 13%),
    repeating-linear-gradient(180deg, #f8dca6 0 0.72rem, #c98258 0.74rem 1.08rem, #fff0c8 1.1rem 1.42rem, #8c698f 1.44rem 1.76rem);
}

.destination-saturn .destination-planet {
  overflow: visible;
  background:
    repeating-linear-gradient(178deg, #ffefbd 0 0.55rem, #d9a66c 0.58rem 0.92rem, #a8736d 0.95rem 1.18rem);
}

.destination-saturn .destination-planet::after {
  position: absolute;
  top: 34%;
  left: -39%;
  width: 178%;
  height: 34%;
  content: "";
  border: 0.45rem solid rgba(255, 231, 173, 0.9);
  border-top-color: rgba(255, 246, 215, 0.46);
  border-bottom-color: rgba(132, 90, 112, 0.48);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.destination-uranus .destination-planet {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.44), transparent 28%),
    repeating-linear-gradient(175deg, #c6fbff 0 0.7rem, #63d8e3 0.72rem 1.2rem, #3a9fc7 1.22rem 1.48rem);
}

.destination-neptune .destination-planet {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.38), transparent 28%),
    repeating-linear-gradient(170deg, #7ad7ff 0 0.62rem, #356cd0 0.64rem 1.05rem, #253a9d 1.08rem 1.36rem);
  box-shadow:
    inset -1.5rem -1rem 1.6rem rgba(2, 6, 23, 0.34),
    0 0 1.9rem rgba(84, 140, 255, 0.52);
}

.destination-copy {
  display: grid;
  gap: 0.18rem;
  align-content: start;
  min-width: 0;
}

.destination-copy strong {
  color: #ffffff;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  font-weight: 950;
}

.destination-game {
  color: #dcecff;
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.42;
}

.destination-detail {
  min-height: 2.8rem;
  margin-top: 0.25rem;
  color: #a9bed9;
  font-size: 0.75rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(0.35rem);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.celestial-destination:hover .destination-detail,
.celestial-destination:focus-visible .destination-detail,
.celestial-destination.is-selected .destination-detail {
  opacity: 1;
  transform: translateY(0);
}

.celestial-all-games-link {
  display: inline-flex;
  width: fit-content;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 2.2rem auto 0;
  padding: 0.7rem 1.05rem;
  color: #07142f;
  font-size: 0.9rem;
  font-weight: 950;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #c7f5ff);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

.celestial-all-games-link svg {
  width: 1.1rem;
  height: 1.1rem;
}

.celestial-guidance-section {
  position: relative;
  width: 100%;
  padding: clamp(5.5rem, 10vw, 8rem) 1rem clamp(4.8rem, 8vw, 7rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 18%, rgba(84, 216, 255, 0.08), transparent 24rem),
    linear-gradient(180deg, #06142f 0%, #0a1d3b 52%, #07142b 100%);
}

.celestial-guidance-section::before {
  position: absolute;
  right: -8rem;
  bottom: -11rem;
  width: 31rem;
  aspect-ratio: 1;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(119, 244, 255, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 3.4rem rgba(84, 216, 255, 0.018),
    0 0 0 7.8rem rgba(138, 100, 255, 0.012);
}

.celestial-guidance-heading {
  display: grid;
  gap: 0.65rem;
  max-width: var(--celestial-container);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.celestial-guidance-heading p {
  max-width: 48rem;
}

.celestial-guidance-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(19rem, 0.75fr);
  gap: clamp(1rem, 2.8vw, 2rem);
  width: min(100%, var(--celestial-container));
  margin: 0 auto;
}

.celestial-trust-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 1.35rem;
  min-width: 0;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2.1rem);
  border: 1px solid rgba(216, 234, 255, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(84, 216, 255, 0.08), transparent 48%),
    rgba(4, 17, 39, 0.76);
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.celestial-trust-panel h3 {
  max-width: 18em;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
}

.celestial-trust-panel ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(216, 234, 255, 0.12);
  border-left: 1px solid rgba(216, 234, 255, 0.12);
}

.celestial-trust-panel li {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  padding: 1rem;
  border-right: 1px solid rgba(216, 234, 255, 0.12);
  border-bottom: 1px solid rgba(216, 234, 255, 0.12);
}

.celestial-trust-panel li strong {
  color: #ffffff;
  font-size: 0.92rem;
}

.celestial-trust-panel li span {
  color: #b9cce5;
  font-size: 0.82rem;
  line-height: 1.65;
}

.celestial-trust-note {
  max-width: 58rem;
  color: #d7e8f8;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.75;
}

.celestial-trust-orbit {
  position: absolute;
  top: -6rem;
  right: -5rem;
  z-index: -1;
  width: 17rem;
  aspect-ratio: 1;
  border: 1px solid rgba(119, 244, 255, 0.14);
  border-radius: 50%;
  transform: rotate(-17deg) scaleY(0.56);
}

.celestial-trust-orbit span {
  position: absolute;
  top: 43%;
  left: -0.42rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--celestial-gold);
  box-shadow: 0 0 18px rgba(255, 201, 99, 0.62);
}

.celestial-guidance-links {
  display: grid;
  align-content: start;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 234, 255, 0.14);
  border-radius: 24px;
  background: rgba(4, 17, 39, 0.6);
}

.celestial-guidance-links a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 68px;
  gap: 0.12rem 0.8rem;
  align-content: center;
  padding: 0.82rem 1rem;
  color: var(--celestial-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 234, 255, 0.11);
  transition:
    background 160ms ease,
    padding 160ms ease;
}

.celestial-guidance-links a:last-child {
  border-bottom: 0;
}

.celestial-guidance-links a:hover {
  padding-left: 1.15rem;
  background: rgba(84, 216, 255, 0.07);
}

.celestial-guidance-links a span {
  grid-column: 1;
  color: #9bb4d1;
  font-size: 0.7rem;
  font-weight: 850;
}

.celestial-guidance-links a strong {
  grid-column: 1;
  color: #ffffff;
  font-size: 0.96rem;
}

.celestial-guidance-links a svg {
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 1.2rem;
  height: 1.2rem;
  align-self: center;
  color: var(--celestial-cyan);
}

.portal-home-page .site-footer {
  margin-top: 0;
  border-top-color: rgba(216, 234, 255, 0.14);
  background:
    radial-gradient(circle at 18% 0%, rgba(84, 216, 255, 0.08), transparent 18rem),
    #030916;
}

@keyframes celestial-vortex-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes celestial-vortex-spin-reverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes celestial-core-pulse {
  0%,
  100% {
    opacity: 0.76;
    transform: scale(0.94);
  }

  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes celestial-mascot-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1.5deg);
  }

  50% {
    transform: translateY(-0.65rem) rotate(1.5deg);
  }
}

@keyframes celestial-mascot-react {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  40% {
    transform: translateY(-0.8rem) rotate(4deg) scale(1.03);
  }
}

@keyframes celestial-scroll-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(0.28rem);
  }
}

@media (max-width: 1020px) {
  .celestial-hero-grid {
    grid-template-columns: minmax(18rem, 0.9fr) minmax(27rem, 1.1fr);
    gap: 0.6rem;
  }

  .celestial-hero-copy h1 {
    font-size: clamp(2.7rem, 6.3vw, 4.8rem);
  }

  .celestial-portals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 46rem;
    gap: 3.2rem 2rem;
  }

  .celestial-portals::before {
    top: 10%;
    left: 8%;
    width: 84%;
    height: 82%;
    transform: rotate(-5deg) scaleY(0.82);
  }

  .celestial-portal:nth-child(even) {
    transform: translateY(1.5rem);
  }

  .celestial-guidance-layout {
    grid-template-columns: 1fr;
  }

  .celestial-guidance-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .celestial-guidance-links a:nth-child(odd) {
    border-right: 1px solid rgba(216, 234, 255, 0.11);
  }

  .celestial-guidance-links a:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .portal-home-page .portal-home-nav {
    width: min(calc(100% - 1rem), var(--celestial-container));
    min-height: 0;
    gap: 0.2rem;
    padding-block: 0.35rem 0.42rem;
  }

  .portal-home-page .portal-home-nav .nav-primary-row {
    align-items: stretch;
    flex-direction: column;
    gap: 0.22rem;
  }

  .portal-home-page .portal-home-nav .brand {
    min-height: 34px;
  }

  .portal-home-page .portal-home-nav .brand-mark {
    width: 1.9rem;
    height: 1.9rem;
    font-size: 0.82rem;
  }

  .portal-home-page .portal-home-nav .brand-name {
    font-size: 0.96rem;
  }

  .portal-home-page .portal-home-nav .brand-subtitle {
    font-size: 0.65rem;
  }

  .portal-home-page .portal-home-nav .nav-links {
    width: 100%;
    gap: 0.08rem;
    padding-bottom: 0.04rem;
  }

  .portal-home-page .portal-home-nav .nav-links a {
    min-height: 32px;
    padding: 0.3rem 0.52rem;
    font-size: 0.76rem;
  }

  .celestial-hero {
    min-height: max(560px, calc(100svh - 94px));
    padding: 0.85rem 0.75rem 2.75rem;
    align-items: stretch;
  }

  .celestial-hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(15.5rem, 1fr);
    gap: 0.2rem;
    align-items: stretch;
  }

  .celestial-hero-copy {
    gap: 0.65rem;
    width: min(100%, 24rem);
    padding: 0.3rem 0;
  }

  .celestial-hero-copy::before {
    position: absolute;
    inset: -0.45rem -1.4rem -0.55rem -1rem;
    z-index: -1;
    pointer-events: none;
    content: "";
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.28) 72%, transparent);
  }

  .celestial-hero-copy h1 {
    max-width: 8em;
    font-size: clamp(2.1rem, 10vw, 3.15rem);
    line-height: 1.02;
  }

  .celestial-hero-lead {
    max-width: 22rem;
    font-size: clamp(0.82rem, 3.3vw, 0.94rem);
    line-height: 1.58;
  }

  .celestial-hero-actions {
    gap: 0.38rem;
    width: min(100%, 20.5rem);
  }

  .celestial-primary-cta {
    min-height: 52px;
    padding: 0.72rem 1rem;
    font-size: 0.98rem;
  }

  .celestial-secondary-link {
    min-height: 38px;
    font-size: 0.78rem;
  }

  .celestial-stage {
    min-height: 15.5rem;
  }

  .celestial-vortex {
    top: 45%;
    left: 50%;
    width: min(74%, 18.5rem);
  }

  .hero-celestial {
    min-width: 48px;
    min-height: 48px;
  }

  .hero-celestial-moon {
    top: 7%;
    left: 7%;
  }

  .hero-celestial-moon .hero-celestial-orb {
    width: 2.3rem;
    height: 2.3rem;
  }

  .hero-celestial-earth {
    bottom: 14%;
    left: 5%;
  }

  .hero-celestial-earth .hero-celestial-orb {
    width: 3.2rem;
    height: 3.2rem;
  }

  .hero-celestial-saturn {
    top: 8%;
    right: 4%;
  }

  .hero-celestial-saturn .hero-celestial-orb {
    width: 3.8rem;
    height: 3.8rem;
  }

  .hero-celestial-name {
    font-size: 0.66rem;
  }

  .celestial-mascot {
    right: 0;
    bottom: 1%;
    width: min(34%, 8.8rem);
  }

  .celestial-mascot figcaption {
    top: -4%;
    right: 78%;
    width: min(8.8rem, 36vw);
    padding: 0.42rem 0.52rem;
    font-size: 0.65rem;
  }

  .celestial-touch-hint {
    bottom: 2%;
    left: 48%;
    min-height: 38px;
    padding: 0.3rem 0.48rem;
    font-size: 0.66rem;
  }

  .celestial-touch-hint svg {
    width: 1rem;
    height: 1rem;
  }

  .celestial-scroll-cue {
    bottom: 0.25rem;
    min-height: 38px;
    font-size: 0.64rem;
  }

  .celestial-portals-section {
    padding: 4.7rem 0.85rem 5.4rem;
  }

  .celestial-section-heading {
    margin-bottom: 2.8rem;
    text-align: left;
  }

  .celestial-portals {
    grid-template-columns: 1fr;
    max-width: 35rem;
    gap: 2.2rem;
  }

  .celestial-portals::before {
    top: 2%;
    left: 18%;
    width: 64%;
    height: 96%;
    transform: rotate(-8deg) scaleX(0.6);
  }

  .celestial-portal,
  .celestial-portal:nth-child(even) {
    grid-template-columns: minmax(7.8rem, 38%) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    justify-items: stretch;
    text-align: left;
    transform: none;
  }

  .celestial-portal:nth-child(even) .celestial-portal-visual {
    grid-column: 2;
    grid-row: 1;
  }

  .celestial-portal:nth-child(even) .celestial-portal-copy {
    grid-column: 1;
    grid-row: 1;
    justify-items: end;
    text-align: right;
  }

  .celestial-portal-copy {
    justify-items: start;
  }

  .celestial-portal-description {
    max-width: 19rem;
  }

  .celestial-destinations-heading {
    display: grid;
    gap: 1.25rem;
    align-items: start;
  }

  .celestial-rail-controls {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    width: 100%;
  }

  .celestial-destination {
    flex-basis: min(72vw, 14rem);
  }

  .celestial-guidance-section {
    padding-inline: 0.85rem;
  }

  .celestial-trust-panel ul {
    grid-template-columns: 1fr;
  }

  .celestial-guidance-links {
    grid-template-columns: 1fr;
  }

  .celestial-guidance-links a,
  .celestial-guidance-links a:nth-child(odd),
  .celestial-guidance-links a:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid rgba(216, 234, 255, 0.11);
  }

  .celestial-guidance-links a:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 370px) {
  .portal-home-page .portal-home-nav .brand-subtitle {
    display: none;
  }

  .celestial-hero {
    min-height: max(540px, calc(100svh - 82px));
    padding-top: 0.55rem;
  }

  .celestial-hero-copy {
    gap: 0.5rem;
  }

  .celestial-hero-copy h1 {
    font-size: clamp(1.95rem, 10.4vw, 2.55rem);
  }

  .celestial-hero-lead {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .celestial-primary-cta {
    min-height: 48px;
  }

  .celestial-secondary-link {
    min-height: 34px;
  }

  .celestial-stage {
    min-height: 14rem;
  }

  .celestial-mascot figcaption {
    right: 72%;
  }

  .celestial-touch-hint {
    left: 44%;
  }

  .celestial-portal {
    grid-template-columns: minmax(7rem, 36%) minmax(0, 1fr);
    gap: 0.75rem;
  }

  .celestial-portal-copy strong {
    font-size: 1.15rem;
  }

  .celestial-portal-description {
    font-size: 0.82rem;
  }

  .celestial-destination {
    flex-basis: min(78vw, 13.5rem);
  }
}

@media (orientation: landscape) and (max-height: 520px) and (min-width: 701px) {
  .portal-home-page .portal-home-nav {
    min-height: 54px;
    padding-block: 0.2rem;
  }

  .portal-home-page .portal-home-nav .brand-subtitle {
    display: none;
  }

  .portal-home-page .portal-home-nav .nav-links a {
    min-height: 34px;
    padding-block: 0.3rem;
    font-size: 0.8rem;
  }

  .celestial-hero {
    min-height: calc(100svh - 54px);
    padding: 0.45rem 1rem 1.8rem;
  }

  .celestial-hero-grid {
    grid-template-columns: minmax(18rem, 0.9fr) minmax(25rem, 1.1fr);
    gap: 0.6rem;
  }

  .celestial-hero-copy {
    gap: 0.42rem;
  }

  .celestial-hero-copy h1 {
    font-size: clamp(2rem, 5.2vw, 2.85rem);
  }

  .celestial-hero-lead {
    max-width: 29rem;
    font-size: 0.78rem;
    line-height: 1.48;
  }

  .celestial-hero-actions {
    grid-template-columns: minmax(13rem, 22rem);
    gap: 0.55rem;
    align-items: center;
    width: 100%;
  }

  .celestial-primary-cta {
    min-height: 46px;
    padding-block: 0.6rem;
    font-size: 0.9rem;
  }

  .celestial-secondary-link {
    display: none;
  }

  .celestial-stage {
    min-height: 15.2rem;
  }

  .celestial-vortex {
    width: min(68%, 17rem);
  }

  .celestial-mascot {
    width: min(27%, 6.8rem);
  }

  .celestial-mascot figcaption {
    right: 76%;
    width: 7.5rem;
    font-size: 0.58rem;
  }

  .celestial-touch-hint {
    display: none;
  }

  .celestial-scroll-cue {
    right: 0.6rem;
    bottom: 0.2rem;
    left: auto;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .celestial-nebula,
  .vortex-ring,
  .vortex-core,
  .celestial-mascot img,
  .celestial-scroll-cue svg {
    animation: none !important;
  }

  .celestial-stage,
  .celestial-destination-rail {
    cursor: default;
  }

  .celestial-vortex,
  .celestial-mascot,
  .celestial-destination,
  .destination-planet,
  .celestial-portal-visual {
    transition: none !important;
  }
}
