/* === In-galaxy planet hub overlay === */

/* Hide galaxy chrome when a planet is focused */
.planet-hub-active .discover-toolbar {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  border: none;
  opacity: 0;
  pointer-events: none;
}

.planet-hub-active .map-controls,
.planet-hub-active .galaxy-hud {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.35s var(--ease-smooth), transform 0.35s var(--ease-smooth);
}

/* Collapse worlds rail — class lives on .discover-shell (rail is a direct child) */
.discover-shell.planet-hub-active {
  position: relative;
}

.planet-hub-active:not(.planet-hub-rail-open) .discover-games-rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 40;
  width: 0 !important;
  min-width: 0;
  padding: 0;
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  border: none;
  overflow: hidden;
}

.planet-hub-active.planet-hub-rail-open .discover-games-rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 40;
  width: 80px !important;
  min-width: 80px;
  padding: var(--space-3) 0;
  padding-bottom: max(var(--space-3), env(safe-area-inset-bottom));
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.55);
  transition:
    transform 0.45s var(--ease-spring),
    opacity 0.35s var(--ease-smooth),
    visibility 0.35s,
    box-shadow 0.35s;
}

.planet-hub-active.planet-hub-rail-open .discover-main::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 35;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

body.view-phone .planet-hub-active.planet-hub-rail-open .discover-games-rail {
  width: 56px !important;
  min-width: 56px;
}

.planet-hub-active .galaxy-nebula {
  opacity: 0.35;
  transition: opacity 0.5s;
}

.planet-hub-active .galaxy-core {
  opacity: 0.2;
  transition: opacity 0.5s;
}

.planet-hub-active .galaxy-vignette {
  background:
    radial-gradient(ellipse 55% 45% at 50% 28%, transparent 15%, rgba(3, 3, 8, 0.45) 100%),
    linear-gradient(180deg, transparent 20%, rgba(3, 3, 8, 0.35) 70%, rgba(3, 3, 8, 0.6) 100%);
}

.planet-hub-active .discover-main {
  position: relative;
  flex: 1;
  width: 100%;
  min-width: 0;
}

/* Dim & hide sibling planets */
.planet-hub-active .galaxy-planet-host:not(.is-focused) {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate(-50%, -50%) scale(0.55) !important;
  transition: opacity 0.4s, transform 0.5s var(--ease-spring);
}

.planet-hub-active .galaxy-planet-host.is-focused {
  z-index: 12;
  pointer-events: none;
  filter: drop-shadow(0 0 56px color-mix(in srgb, var(--hub-accent, #c44d2a) 50%, transparent));
  transition: filter 0.5s;
}

.galaxy-viewport--hub-open {
  cursor: default;
}

.galaxy-viewport--hub-open .galaxy-surface {
  transition: transform 0.75s var(--ease-smooth);
}

.map-viewport--locked {
  cursor: default;
}

/* Overlay layer */
.galaxy-hub-overlay {
  position: absolute;
  inset: 0;
  z-index: 24;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  opacity: 0;
  overflow: visible;
  transition: opacity 0.35s var(--ease-smooth);
}

.galaxy-hub-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.galaxy-hub-overlay.is-closing {
  opacity: 0;
  pointer-events: none;
}

/* Top navigation bar — taller, breathing room, soft scrim */
.galaxy-hub-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: clamp(72px, 11vh, 88px);
  padding: max(12px, env(safe-area-inset-top)) 16px 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.22) 55%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-12px);
}

.galaxy-hub-topbar__left,
.galaxy-hub-topbar__menu,
.galaxy-hub-topbar__back {
  pointer-events: auto;
}

.galaxy-hub-overlay.is-open .galaxy-hub-topbar {
  animation: galaxyHubTopbarIn 0.45s var(--ease-spring) 0.1s forwards;
}

.galaxy-hub-topbar__left {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: center;
}

.galaxy-hub-topbar__meta {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: auto;
}

.galaxy-hub-topbar__meta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 2px 8px;
}

.galaxy-hub-topbar__kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0;
}

.galaxy-hub-topbar__title {
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(72vw, 520px);
}

.galaxy-hub-topbar__stats-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.galaxy-hub-topbar__stat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(0, 212, 238, 0.07);
  border: 1px solid rgba(0, 212, 238, 0.22);
  color: rgba(228, 252, 255, 0.92);
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.galaxy-hub-topbar__pin {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 14, 0.72);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.galaxy-hub-topbar__pin:hover,
.galaxy-hub-topbar__pin--active {
  color: #ffd866;
  border-color: rgba(255, 216, 102, 0.45);
  background: rgba(255, 216, 102, 0.1);
}

.galaxy-hub-topbar__spacer {
  width: 84px;
}

.galaxy-hub-topbar__menu,
.galaxy-hub-topbar__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 14, 0.72);
  backdrop-filter: blur(12px);
  color: var(--accent-bright);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.galaxy-hub-topbar__menu {
  width: 38px;
  padding: 0;
}

.galaxy-hub-topbar__menu-icon,
.galaxy-hub-topbar__menu-icon::before,
.galaxy-hub-topbar__menu-icon::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease-spring), opacity 0.25s;
}

.galaxy-hub-topbar__menu-icon {
  position: relative;
}

.galaxy-hub-topbar__menu-icon::before,
.galaxy-hub-topbar__menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.galaxy-hub-topbar__menu-icon::before { top: -5px; }
.galaxy-hub-topbar__menu-icon::after { top: 5px; }

.planet-hub-active.planet-hub-rail-open .galaxy-hub-topbar__menu-icon {
  background: transparent;
}

.planet-hub-active.planet-hub-rail-open .galaxy-hub-topbar__menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.planet-hub-active.planet-hub-rail-open .galaxy-hub-topbar__menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.galaxy-hub-topbar__menu:hover,
.galaxy-hub-topbar__back:hover {
  border-color: var(--accent);
  background: rgba(0, 212, 238, 0.1);
}

/* === Unified command console — bottom navigation structure === */
.galaxy-hub-console {
  position: relative;
  margin-top: auto;
  width: min(92vw, 1280px);
  margin-left: auto;
  margin-right: auto;
  padding: 0 clamp(8px, 2vw, 16px);
  z-index: 2;
  perspective: 1600px;
  perspective-origin: 50% 100%;
}

/* Ambient glow beneath console */
.galaxy-hub-console__glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(60px, 14vh, 120px);
  background: radial-gradient(ellipse 80% 100% at 50% 100%, rgba(0, 212, 238, 0.14) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Main console frame — transparent shell; planet bowl clip on columns */
.galaxy-hub-console__frame {
  position: relative;
  z-index: 1;
  border-radius: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px) 0 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  opacity: 0;
  transform: translateY(100%) rotateX(8deg);
  transform-origin: 50% 100%;
}

/* Concave bowl silhouette + unified planet-wrap fade (smooth, not hard cut) */
.galaxy-hub-console__columns {
  display: flex;
  align-items: stretch;
  gap: 3px;
  min-height: clamp(220px, 34vh, 360px);
  transform-style: preserve-3d;
  overflow: hidden;
  padding: 0 2px;
  clip-path: polygon(
    0% 2.5%,
    6% 2.2%,
    12% 2%,
    18% 2.5%,
    24% 3.5%,
    30% 5%,
    36% 6.5%,
    42% 8%,
    46% 9%,
    50% 9.8%,
    54% 9%,
    58% 8%,
    64% 6.5%,
    70% 5%,
    76% 3.5%,
    82% 2.5%,
    88% 2%,
    94% 2.2%,
    100% 2.5%,
    100% 100%,
    0% 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 112% 70% at 50% -24%,
    transparent 0%,
    transparent 16%,
    rgba(0, 0, 0, 0.06) 24%,
    rgba(0, 0, 0, 0.18) 32%,
    rgba(0, 0, 0, 0.38) 40%,
    rgba(0, 0, 0, 0.62) 48%,
    rgba(0, 0, 0, 0.84) 54%,
    #000 60%,
    #000 100%
  );
  mask-image: radial-gradient(
    ellipse 112% 70% at 50% -24%,
    transparent 0%,
    transparent 16%,
    rgba(0, 0, 0, 0.06) 24%,
    rgba(0, 0, 0, 0.18) 32%,
    rgba(0, 0, 0, 0.38) 40%,
    rgba(0, 0, 0, 0.62) 48%,
    rgba(0, 0, 0, 0.84) 54%,
    #000 60%,
    #000 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.galaxy-hub-overlay.is-open .galaxy-hub-console__frame {
  animation: galaxyHubConsoleRise 0.65s var(--ease-spring) 0.15s forwards;
}

.galaxy-hub-console__frame.is-replay {
  animation: galaxyHubConsoleRise 0.55s var(--ease-spring) forwards !important;
}

/* Shared base platform */
.galaxy-hub-console__platform {
  position: relative;
  z-index: 1;
  height: clamp(4px, 0.8vh, 8px);
  margin-top: -1px;
  background: linear-gradient(180deg, rgba(0, 212, 238, 0.28) 0%, rgba(0, 140, 180, 0.1) 100%);
  box-shadow: 0 0 20px rgba(0, 212, 238, 0.22);
  opacity: 0;
}

.galaxy-hub-overlay.is-open .galaxy-hub-console__platform {
  animation: galaxyHubPlatformIn 0.5s var(--ease-smooth) 0.35s forwards;
}

/* === Individual column === */
.galaxy-hub-pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: center;
  color: #fff;
  transform: rotateY(var(--hub-tilt, 0deg));
  transform-origin: center bottom;
  transform-style: preserve-3d;
  transition:
    flex 0.45s var(--ease-spring),
    transform 0.45s var(--ease-spring),
    box-shadow 0.35s,
    z-index 0s;
  z-index: 1;
}

.galaxy-hub-pillar:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 10%;
  right: -2px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 212, 238, 0.1) 30%,
    rgba(0, 212, 238, 0.06) 70%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 6;
  transition: opacity 0.3s;
}

.galaxy-hub-pillar.is-focused,
.galaxy-hub-pillar:hover,
.galaxy-hub-pillar:focus-visible {
  flex: 1.65 1 0;
  transform: rotateY(calc(var(--hub-tilt, 0deg) * 0.35)) translateZ(16px);
  z-index: 5;
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(0, 212, 238, 0.45),
    -1px 0 0 rgba(0, 212, 238, 0.2),
    1px 0 0 rgba(0, 212, 238, 0.2);
}

.galaxy-hub-pillar.is-focused::after,
.galaxy-hub-pillar:hover::after,
.galaxy-hub-pillar:focus-visible::after {
  opacity: 0;
}

/* Image viewport — fade handled by unified bowl mask on columns */
.galaxy-hub-pillar__viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  margin-bottom: -20px;
  z-index: 1;
  filter: brightness(0.78) saturate(0.85);
  transition: filter 0.35s;
  border-radius: clamp(10px, 1.8vw, 16px) clamp(10px, 1.8vw, 16px) 0 0;
}

.galaxy-hub-console:has(.is-focused) .galaxy-hub-pillar:not(.is-focused) .galaxy-hub-pillar__viewport,
.galaxy-hub-console:hover .galaxy-hub-pillar:not(:hover):not(:focus-visible):not(.is-focused) .galaxy-hub-pillar__viewport {
  filter: brightness(0.58) saturate(0.7);
}

.galaxy-hub-pillar.is-focused .galaxy-hub-pillar__viewport,
.galaxy-hub-pillar:hover .galaxy-hub-pillar__viewport,
.galaxy-hub-pillar:focus-visible .galaxy-hub-pillar__viewport {
  filter: brightness(1.05) saturate(1.05);
}

.galaxy-hub-pillar--featured.is-focused .galaxy-hub-pillar__viewport,
.galaxy-hub-pillar--featured:hover .galaxy-hub-pillar__viewport {
  filter: brightness(1.1) saturate(1.08);
}

/* Holographic scanlines — lower portion only */
.galaxy-hub-pillar__holo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0px,
      transparent 3px,
      rgba(0, 212, 238, 0.02) 3px,
      rgba(0, 212, 238, 0.02) 4px
    );
  pointer-events: none;
  opacity: 0.85;
}

/* Glass overlay — subtle, masked away at top with viewport */
.galaxy-hub-pillar__glass {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0%, transparent 40%);
}

/* Image with strong top fade */
.galaxy-hub-pillar__image-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.galaxy-hub-pillar__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  transition: transform 0.45s var(--ease-smooth);
}

.galaxy-hub-pillar.is-focused .galaxy-hub-pillar__img,
.galaxy-hub-pillar:hover .galaxy-hub-pillar__img,
.galaxy-hub-pillar:focus-visible .galaxy-hub-pillar__img {
  transform: scale(1.04);
}

/* Bottom fade — blends image into footer only */
.galaxy-hub-pillar__fade-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(72px, 18%, 110px);
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.6) 45%,
    rgba(0, 0, 0, 0) 100%
  );
}

.galaxy-hub-pillar__badge,
.galaxy-hub-pillar__soon {
  position: absolute;
  top: clamp(36px, 7vh, 56px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-size: clamp(8px, 1.5vw, 9px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.galaxy-hub-pillar__badge {
  background: rgba(0, 212, 238, 0.14);
  border: 1px solid rgba(0, 212, 238, 0.35);
  color: var(--accent-bright);
}

.galaxy-hub-pillar__soon {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--muted);
}

/* Footer — icon + text together */
.galaxy-hub-pillar__footer {
  position: relative;
  z-index: 5;
  flex: 0 0 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 72px;
  margin-top: -4px;
  padding: 10px 6px 8px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.82) 55%,
    rgba(0, 0, 0, 0.45) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0, 212, 238, 0.12);
  text-align: center;
}

.galaxy-hub-pillar__label-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
}

.galaxy-hub-pillar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.galaxy-hub-pillar__icon .spawn-icon {
  width: 14px;
  height: 14px;
  color: rgba(0, 212, 238, 0.9);
  filter: drop-shadow(0 0 4px rgba(0, 212, 238, 0.4));
}

.galaxy-hub-pillar__title {
  display: block;
  font-size: clamp(10px, 1.8vw, 13px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(0, 212, 238, 0.5);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.galaxy-hub-pillar__subtitle {
  display: block;
  font-size: clamp(8px, 1.4vw, 10px);
  font-weight: 600;
  color: rgba(0, 212, 238, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.galaxy-hub-pillar.is-focused .galaxy-hub-pillar__title,
.galaxy-hub-pillar:hover .galaxy-hub-pillar__title {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(0, 212, 238, 0.7);
}

.galaxy-hub-pillar.is-focused .galaxy-hub-pillar__icon .spawn-icon,
.galaxy-hub-pillar:hover .galaxy-hub-pillar__icon .spawn-icon {
  color: #00d4ee;
  filter: drop-shadow(0 0 6px rgba(0, 212, 238, 0.65));
}

.galaxy-hub-pillar--featured .galaxy-hub-pillar__title {
  color: #e8fcff;
}

.galaxy-hub-pillar:disabled {
  cursor: not-allowed;
}

.galaxy-hub-pillar:disabled .galaxy-hub-pillar__viewport {
  filter: brightness(0.42) saturate(0.45) !important;
}

.galaxy-hub-pillar--soon .galaxy-hub-pillar__img {
  filter: grayscale(0.65) brightness(0.4);
}

@keyframes galaxyHubTopbarIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}

@keyframes galaxyHubConsoleRise {
  from {
    opacity: 0;
    transform: translateY(100%) rotateX(10deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(5deg);
  }
}

@keyframes galaxyHubPlatformIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 720px) {
  .galaxy-hub-overlay.is-open {
    justify-content: flex-end;
  }

  .galaxy-hub-console {
    width: min(94vw, 100%);
    padding: 0 4px;
    margin-top: 0;
    flex-shrink: 0;
    padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 4px);
  }

  .galaxy-hub-console__columns {
    min-height: clamp(200px, 30vh, 300px);
    -webkit-mask-image: radial-gradient(
      ellipse 118% 85% at 50% 8%,
      transparent 0%,
      transparent 22%,
      rgba(0, 0, 0, 0.12) 30%,
      rgba(0, 0, 0, 0.45) 42%,
      #000 58%,
      #000 100%
    );
    mask-image: radial-gradient(
      ellipse 118% 85% at 50% 8%,
      transparent 0%,
      transparent 22%,
      rgba(0, 0, 0, 0.12) 30%,
      rgba(0, 0, 0, 0.45) 42%,
      #000 58%,
      #000 100%
    );
  }

  .galaxy-hub-pillar__footer {
    height: 64px;
    flex-basis: 64px;
  }

  .galaxy-hub-pillar:not(:last-child)::after {
    bottom: 0;
  }

  .galaxy-hub-topbar {
    grid-template-columns: auto 1fr;
    padding-left: 10px;
    padding-right: 10px;
    min-height: 68px;
    padding-bottom: 14px;
  }

  .galaxy-hub-topbar__spacer {
    display: none;
  }

  .galaxy-hub-topbar__stat {
    font-size: 9px;
    padding: 3px 8px;
  }

  .galaxy-hub-topbar__back-label {
    display: none;
  }

  .galaxy-hub-topbar__back {
    width: 38px;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .galaxy-hub-console__frame {
    border-radius: 16px 16px 0 0;
  }

  .galaxy-hub-pillar__title {
    font-size: 9px;
  }

  .galaxy-hub-pillar__subtitle {
    font-size: 7px;
    letter-spacing: 0.05em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .galaxy-hub-overlay.is-open .galaxy-hub-console__frame,
  .galaxy-hub-overlay.is-open .galaxy-hub-console__platform,
  .galaxy-hub-overlay.is-open .galaxy-hub-topbar {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .galaxy-hub-overlay.is-open .galaxy-hub-console__frame {
    transform: translateY(0) rotateX(5deg);
  }
  .planet-hub-active .galaxy-surface {
    transition: none;
  }
}
