.universe-page {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  max-width: 1260px;
  margin-inline: auto;
}

.universe-page > .course-back { justify-self: start; margin: 0; }

.universe-hero {
  display: grid;
  align-items: center;
  min-height: clamp(330px, 36vw, 460px);
  padding: clamp(24px, 5vw, 64px);
  border: 1px solid #45536c;
  border-radius: 20px;
  background:
    linear-gradient(90deg, #111e32 0%, #111e32e8 23%, #111e32b8 42%, #111e3215 78%),
    #111e32 url('/media/universe-hero.webp') right 47% / cover no-repeat;
  color: #f5f8ff;
}

.universe-hero-copy { max-width: 525px; }
.universe-hero-copy .section-kicker { margin: 0 0 8px; color: #ffba88; }
.universe-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.5rem, 6.2vw, 4.65rem);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: -.055em;
  color: inherit;
}

.universe-hero-copy > p:not(.section-kicker) {
  margin: 0 0 18px;
  max-width: 43ch;
  color: #e0e9f8;
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  line-height: 1.65;
}

.universe-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.universe-hero-facts li {
  padding: 5px 10px;
  border: 1px solid #6b809c;
  border-radius: 8px;
  background: #16263bd9;
  color: #eaf2ff;
  font-size: .8rem;
  font-weight: 700;
}

.universe-catalog-card {
  display: grid;
  align-items: center;
  min-height: 245px;
  padding: clamp(22px, 3.7vw, 48px);
  border: 1px solid #45536c;
  border-radius: 20px;
  background:
    linear-gradient(90deg, #142338 0%, #142338f5 19%, #142338a6 44%, #14233812 83%),
    #142338 url('/media/universe-hero.webp') right 55% / cover no-repeat;
  color: #f5f8ff;
  text-decoration: none;
}

.universe-catalog-card:hover { color: #fff; border-color: #ffac70; }
.universe-catalog-copy { max-width: 410px; }
.universe-catalog-card .section-kicker { color: #ffba88; }
.universe-catalog-card h2 {
  margin: 5px 0 9px;
  color: inherit;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: -.045em;
}
.universe-catalog-card p { margin: 0; color: #d7e3f6; line-height: 1.55; }
.universe-catalog-cta { margin-top: 17px; }

.universe-roadmap h2, .universe-workplan h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.7vw, 1.75rem);
  font-weight: 820;
  color: var(--title);
}

.universe-flight {
  --position: 16.667%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 42px 6px 14px;
  margin-bottom: 12px;
  border: 1px solid #45536c;
  border-radius: 16px;
  background: linear-gradient(100deg, #101d31ee, #172643a8), #142338 url('/media/universe-hero.webp') center 51% / cover;
}
.universe-flight[data-flight-galaxy="1"] { --position: 50%; }
.universe-flight[data-flight-galaxy="2"] { --position: 83.333%; }
.universe-flight::before {
  content: "";
  position: absolute;
  inset: 69px 16.667% auto;
  border-top: 1px dashed #8aa1c2;
  pointer-events: none;
}
.universe-flight-ship {
  position: absolute;
  top: 14px;
  left: var(--position);
  translate: -50% 0;
  color: #ffb785;
  transition: left .65s cubic-bezier(.22,.7,.3,1);
  pointer-events: none;
}
.universe-flight-ship .ui-icon { rotate: -25deg; width: 21px; height: 21px; }
.universe-galaxy {
  position: relative;
  display: grid;
  grid-template-rows: 44px auto auto;
  justify-items: center;
  gap: 5px;
  align-content: start;
  min-width: 0;
  padding: 5px 2px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #f0f4ff;
  font-size: clamp(.78rem, 1.7vw, 1rem);
  text-align: center;
  overflow-wrap: anywhere;
}
.universe-galaxy > span:last-child { color: #bccbe0; font-size: .76rem; }
.universe-galaxy-orbit {
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid #9bacd0;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #d4d5ff 0 9%, #8b99d0 14%, #35486c 42%, #253858 63%);
  box-shadow: 0 0 13px #9db6ff61;
}
.universe-galaxy[aria-pressed="true"] .universe-galaxy-orbit {
  border-color: #ffbe91;
  background: radial-gradient(circle at 37% 36%, #fff1d8 0 8%, #ffb67f 20%, #895b62 45%, #3e334b 66%);
  box-shadow: 0 0 16px #ffb78580;
}
.universe-galaxy[aria-pressed="true"] strong, .universe-galaxy:hover strong { color: #ffbd90; }
@media (prefers-reduced-motion: reduce) {
  .universe-flight-ship { transition: none; }
}

.universe-route-card { margin: 0; }
.universe-route-card h3 { margin: 0 0 8px; color: var(--title); font-size: 1.08rem; font-weight: 790; }
.universe-route-card p { margin: 0 0 12px; color: var(--soft); font-size: .9rem; line-height: 1.55; }
.universe-route-card ol { margin: 0; padding-inline-start: 27px; color: var(--soft); }
.universe-route-card li + li { margin-top: 2px; }
.universe-stage-link {
  min-height: 34px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--blue);
  text-align: start;
  font-size: .9rem;
  font-weight: 680;
}
.universe-stage-link:hover { text-decoration: underline; }
.universe-stage-link .ui-icon { color: var(--green); }
.universe-practice-note { max-width: 78ch; color: var(--soft); }

.universe-phase {
  margin: 0 0 10px;
  scroll-margin-top: 20px;
}
.universe-phase summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px clamp(12px, 2.5vw, 22px);
  border-radius: inherit;
  list-style: none;
  cursor: pointer;
}
.universe-phase summary::-webkit-details-marker { display: none; }
.universe-phase summary:hover { background: var(--surface-2); }
.universe-phase summary:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.universe-phase-number {
  display: grid;
  place-items: center;
  width: 36px;
  aspect-ratio: 1;
  border-radius: 9px;
  background: var(--surface-3);
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
.universe-phase-label { display: grid; gap: 3px; }
.universe-phase-title { color: var(--title); font-size: 1.02rem; font-weight: 800; }
.universe-phase-topics { color: var(--soft); font-size: .83rem; }
.universe-phase-chevron { color: var(--blue); }
.universe-phase[open] .universe-phase-chevron { rotate: 90deg; }

.universe-phase-content {
  padding: clamp(15px, 2.5vw, 24px);
  border-top: 1px solid var(--line);
}
.universe-phase-outcome { margin: 0 0 18px; color: var(--title); font-weight: 680; }
.universe-task-list { margin: 0; padding-inline-start: 25px; }
.universe-task-list > li::marker { color: var(--blue); font-weight: 800; }
.universe-task-list > li + li { margin-top: 18px; }
.universe-task-list h3 { margin: 0 0 6px; color: var(--title); font-size: 1rem; font-weight: 780; }
.universe-task-list p { margin: 0; color: var(--soft); line-height: 1.65; }
.universe-task-list .universe-task-check {
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 6px;
  background: var(--surface-2);
}
.universe-task-check strong { color: var(--title); }
.universe-lesson-links { margin-top: 22px; }
.universe-lesson-links strong { color: var(--title); }
.universe-lesson-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.universe-lesson-links a {
  display: block;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--blue);
  font-size: .82rem;
  text-decoration: none;
}
.universe-lesson-links a:hover { text-decoration: underline; }

@media (max-width: 620px) {
  .universe-hero {
    min-height: 0;
    background:
      linear-gradient(90deg, #111e32f7 0%, #111e32d9 56%, #111e3299 100%),
      #111e32 url('/media/universe-hero.webp') 65% center / cover no-repeat;
  }
  .universe-catalog-card {
    min-height: 0;
    background:
      linear-gradient(90deg, #142338f7 0%, #142338d9 55%, #14233880 100%),
      #142338 url('/media/universe-hero.webp') 63% center / cover no-repeat;
  }
  .universe-catalog-card p { font-size: .92rem; }
}
