@font-face {
  font-family: Bricolage;
  src: url('/fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url('/fonts/dm-sans.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0c1019;
  --panel: #131923;
  --panel2: #171e2a;
  --line: #29313f;
  --white: #f3f4fa;
  --muted: #a7b0c2;
  --quiet: #8994a9;
  --mint: #7ce8c0;
  --purple: #b79aee;
  --heading: Bricolage, DM, sans-serif;
  --mono: Consolas, 'Courier New', monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font:
    16px/1.5 DM,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #c1adff;
  outline-offset: 4px;
}
main:focus {
  outline: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.brand {
  font-family: var(--heading);
}
h1,
h2,
h3 {
  line-height: 1.12;
}
h1 {
  font-size: clamp(32px, 3vw, 45px);
  letter-spacing: -1.8px;
  font-weight: 760;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.85px;
  font-weight: 720;
}
h3 {
  font-size: 19px;
  letter-spacing: -0.4px;
  font-weight: 680;
}
.icon {
  flex: none;
  vertical-align: middle;
}
.skip {
  left: 20px;
  position: fixed;
  top: -65px;
  z-index: 10;
  background: var(--mint);
  color: #10231f;
  padding: 10px;
}
.skip:focus {
  top: 5px;
}
#mast {
  height: 77px;
  border-bottom: 1px solid #232b38;
  background: #0e131d;
}
.mast-inner,
main {
  width: min(1220px, calc(100% - 112px));
  margin: 0 auto;
}
.mast-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: -1.4px;
  font-size: 27px;
}
.brandmark {
  width: 40px;
  height: 40px;
  flex: none;
}
.brand-accent {
  color: var(--mint);
}
nav {
  display: flex;
  height: 100%;
  gap: 7px;
  align-items: center;
}
nav a {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 9px 16px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
}
nav a[aria-current] {
  background: #1a302e;
  color: var(--mint);
}
nav a:hover {
  color: var(--white);
  background: #1d2530;
}
.pilot {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: none;
  font-weight: 650;
  font-size: 14px;
  white-space: nowrap;
  padding: 3px 0 3px 8px;
}
.pilot > .icon {
  color: var(--quiet);
}
.pilot-avatar {
  width: 36px;
  height: 36px;
  background: #332b44;
  border: 1px solid #63556f;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.portrait {
  width: 53px;
  height: 53px;
  object-fit: contain;
  image-rendering: pixelated;
}
.pilot-avatar img {
  width: 34px;
  height: 34px;
}
main {
  padding: 34px 0 48px;
}
.pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.pagehead p {
  color: var(--muted);
  margin-top: 5px;
  font-size: 16px;
}
.date,
.meta,
.duration {
  color: var(--muted);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.date {
  margin-top: 4px;
}
.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #261e40 url('/art/sector.png') center/100% 100% no-repeat;
  border: 1px solid #51416c;
  border-radius: 15px;
  min-height: 300px;
  image-rendering: pixelated;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 28px 38px 29px;
  width: 55%;
}
.mission-label,
.nox-label,
.route-copy small,
.radio small,
.course-card > small,
.coach-line small,
.quiz-bar small,
.result > small {
  font: 700 11px/1.3 var(--mono);
  letter-spacing: 1.3px;
}
.mission-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cfb7f5;
  font-size: 11px;
}
.mission-label b {
  font-weight: 400;
  color: #827197;
}
.mission-label i,
.available i,
.radio small i,
.nox-label i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 1px;
}
.mission-label i {
  width: 7px;
  height: 7px;
  background: #ba97ed;
  box-shadow: 0 0 0 3px #39304d;
  margin: 0 3px;
}
.hero h2 {
  font: 780 clamp(46px, 4.2vw, 64px)/0.98 var(--heading);
  letter-spacing: -2.7px;
  margin: 13px 0 11px;
  max-width: 540px;
}
.hero-copy p {
  max-width: 435px;
  color: #d3cede;
  font-size: 15px;
  line-height: 1.55;
}
.hero-actions,
.result-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 19px;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 750;
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 18px;
}
.primary {
  background: var(--mint);
  color: #10231d;
  border-bottom: 3px solid #5eb995;
}
.primary:hover {
  background: #a3f6d6;
}
.primary:active {
  transform: translateY(1px);
}
.primary:disabled {
  background: #35433f;
  color: #b0bbb6;
  box-shadow: none;
}
.secondary {
  background: #212a37;
  border-color: #394355;
}
.secondary:hover {
  background: #303b4b;
}
.duration {
  color: #d3c9e0;
  font-size: 13px;
}
.nox-scene {
  position: absolute;
  right: 3%;
  width: 41%;
  height: 100%;
  bottom: 0;
  display: grid;
  place-items: center;
}
.nox-scene > img {
  position: absolute;
  height: 91%;
  max-width: 90%;
  object-fit: contain;
  bottom: 0;
  filter: drop-shadow(7px 8px 0 #17112466);
  image-rendering: pixelated;
}
.nox-label {
  position: absolute;
  right: 8%;
  bottom: 18%;
  border: 1px solid #7e6992;
  border-radius: 4px;
  background: #2a233b;
  color: #ddd0eb;
  padding: 4px 8px;
  font-size: 11px;
  letter-spacing: 1px;
  transform: rotate(-5deg);
}
.nox-label i {
  width: 4px;
  height: 4px;
  color: var(--mint);
  vertical-align: middle;
}
.dashboard-grid {
  margin-top: 27px;
  display: grid;
  grid-template-columns: 1.38fr 1fr;
  gap: 25px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.meta {
  font: 12px var(--mono);
  white-space: nowrap;
}
.section-head h2 {
  font-size: 22px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 650;
  color: var(--mint);
}
.text-link:hover {
  text-decoration: underline;
}
.route-list {
  position: relative;
  display: grid;
  gap: 9px;
}
.route-row {
  min-height: 77px;
  padding: 11px 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.route-row:not(.closed) {
  background: #142221;
  border-color: #33554b;
}
.route-row:not(.closed):hover {
  background: #1a302a;
  border-color: var(--mint);
}
.route-row > .icon {
  color: var(--mint);
}
.planet-tile {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: none;
  overflow: hidden;
  border-radius: 9px;
  background: #1b3634;
}
.planet-tile img {
  width: 57px;
  height: 47px;
  max-width: 110%;
  object-fit: contain;
  image-rendering: pixelated;
}
.planet-tile.fracciones {
  background: #2a243b;
}
.planet-tile.potencias {
  background: #332b28;
}
.route-copy {
  flex: 1;
}
.route-copy small {
  display: block;
  color: #a6b3bd;
  font-size: 11px;
  letter-spacing: 1.65px;
  margin-bottom: 5px;
}
.route-row:not(.closed) .route-copy small {
  color: #9fc6b9;
}
.route-row.closed h3 {
  color: #c6cdda;
}
.status {
  white-space: nowrap;
  font-weight: 600;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 5px;
}
.status.available,
.status.won {
  color: var(--mint);
  background: #213c32;
}
.available i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.status.locked {
  color: #a4aebe;
  background: #232a37;
}
.row-spacer {
  width: 15px;
}
.statbox,
.panel,
.lesson,
.practice-panel,
.course-card,
.level-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 11px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 17px 9px 15px;
}
.stats > div {
  display: grid;
  align-content: start;
  justify-items: center;
  position: relative;
}
.stats > div + div:before {
  content: '';
  width: 1px;
  height: 39px;
  position: absolute;
  top: 13px;
  left: 0;
  background: var(--line);
}
.stat-icon {
  height: 25px;
  display: inline-flex;
  align-items: center;
}
.stat-icon svg {
  stroke-width: 1.8;
}
.flame {
  color: #f9a573;
}
.flame svg {
  fill: #55382e;
}
.gold {
  color: #f4cc72;
}
.gold svg {
  fill: #4e4431;
}
.violet {
  color: #bd9cf5;
}
.violet svg {
  fill: #39304a;
}
.stats strong {
  font: 730 29px/1.15 var(--heading);
  margin: 4px 0 2px;
}
.stats small {
  font-size: 12px;
  color: var(--muted);
}
.daily {
  margin: 0 19px;
  padding: 12px 0 15px;
  border-top: 1px solid var(--line);
}
.daily > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.daily > div > span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.daily .icon {
  color: var(--mint);
}
.daily b {
  font: 600 12px var(--mono);
  color: var(--mint);
}
.daily em {
  color: #a3abbc;
  font-style: normal;
}
progress {
  display: block;
  appearance: none;
  height: 7px;
  width: 100%;
  margin-top: 9px;
  overflow: hidden;
  border: none;
  border-radius: 20px;
  background: #2a323f;
}
progress::-webkit-progress-bar {
  background: #2a323f;
}
progress::-webkit-progress-value {
  background: var(--mint);
  border-radius: 20px;
}
progress::-moz-progress-bar {
  background: var(--mint);
}
.radio {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid #3d354e;
  background: #201d2e;
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 11px;
}
.radio .portrait {
  width: 48px;
  height: 48px;
  flex: none;
}
.radio small {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #c5a7ed;
  font-size: 11px;
}
.radio small i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.radio p {
  font-size: 13px;
  line-height: 1.45;
  color: #dad4e4;
  margin-top: 4px;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.course-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: start;
}
.course-card .planet-tile {
  width: 100%;
  height: 120px;
  margin-bottom: 23px;
}
.course-card .planet-tile img {
  width: 118px;
  height: 96px;
}
.course-card > small,
.coach-line small,
.quiz-bar small,
.result > small {
  color: var(--mint);
}
.course-card h2 {
  margin: 10px 0;
}
.course-card p,
.lesson p,
.practice-panel > p {
  color: #c6cede;
}
.course-end {
  margin-top: auto;
  padding-top: 24px;
}
.lock-note,
.back,
.lesson-bottom > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}
.back {
  margin-bottom: 19px;
}
.back:hover {
  color: var(--mint);
}
.lesson,
.practice-panel {
  padding: clamp(20px, 3vw, 36px);
  max-width: 800px;
}
.coach-line {
  display: flex;
  align-items: center;
  gap: 14px;
}
.coach-line h2,
.coach-line h1 {
  margin-top: 4px;
}
.coach-line .portrait {
  width: 64px;
  height: 64px;
  background: #292538;
  border-radius: 12px;
}
.lesson p,
.practice-panel > p {
  margin: 18px 0;
  font-size: 17px;
  line-height: 1.65;
}
.story {
  font-size: 19px !important;
}
.example {
  padding: 7px 19px;
  border: 1px solid #37423f;
  background: #192722;
  border-radius: 8px;
}
.example > div {
  padding: 9px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.example > div + div {
  border-top: 1px solid #37423f;
}
.example strong {
  font-family: var(--mono);
  font-size: 17px;
  color: var(--mint);
}
.lesson-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-top: 25px;
}
.beacon-clock {
  border: 1px solid #45405b;
  border-radius: 8px;
  background: #211e31;
  padding: 14px 18px;
  margin-bottom: 14px;
}
.beacon-clock label {
  font-weight: 700;
}
.beacons {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 13px 0 7px;
}
.beacons span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}
.beacons b {
  margin-left: auto;
  font-family: var(--mono);
}
.beacons i {
  width: 12px;
  height: 12px;
  background: #32303d;
  border: 1px solid #817b91;
  border-radius: 3px;
}
.beacons .green.on i {
  background: var(--mint);
  border-color: var(--mint);
}
.beacons .violet.on i {
  background: #c49eff;
  border-color: #c49eff;
}
#signals > span,
.ticks {
  font-size: 13px;
  color: #c9c3d6;
}
#mission-clock {
  display: block;
  width: 100%;
  height: 27px;
  margin: 5px 0 0;
  accent-color: var(--mint);
  cursor: pointer;
}
.ticks {
  display: flex;
  justify-content: space-between;
}
.quiz-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.quiz-bar span {
  color: var(--muted);
  font-size: 14px;
}
.challenge > progress {
  margin-bottom: 28px;
}
.challenge h1 {
  font-size: 30px;
  letter-spacing: -1px;
}
.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 15px 0 24px;
}
.answer {
  border: 1px solid #3b4656;
  border-radius: 9px;
  background: #1d2530;
  min-height: 58px;
  text-align: left;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 15px;
  font-size: 18px;
  font-weight: 600;
}
.answer > span {
  color: var(--quiet);
  font: 12px var(--mono);
  border: 1px solid #465060;
  padding: 3px 6px;
  border-radius: 4px;
}
.answer.chosen,
.answer.correct {
  border-color: var(--mint);
  background: #1b362f;
}
.answer.wrong {
  border-color: #e9a58c;
  background: #382926;
}
.answer > .icon {
  margin-left: auto;
}
.feedback {
  padding: 14px 18px;
  border-radius: 9px;
  margin: 0 0 16px;
  background: #20312c;
  color: #a9efce;
}
.feedback.no {
  background: #342b27;
  color: #f1c7a2;
}
.lesson .feedback p {
  font-size: 15px;
  margin: 5px 0 0;
}
.result {
  text-align: center;
  margin: 10px auto;
}
.result > img {
  height: 135px;
  display: block;
  margin: 0 auto 15px;
}
.result h1 {
  margin: 10px auto;
}
.result-actions {
  justify-content: center;
}
.progress-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1.6fr 1fr;
}
.panel,
.level-card {
  padding: 21px;
}
.graph svg {
  display: block;
  width: 100%;
  height: auto;
  margin: 20px auto;
}
.graph line {
  stroke: #374052;
  stroke-dasharray: 3 5;
}
.graph text {
  fill: #b7bfd0;
  font:
    12px DM,
    sans-serif;
}
.graph path {
  fill: none;
  stroke: var(--mint);
  stroke-width: 2.5;
}
.graph circle {
  fill: var(--mint);
}
.footnote,
.level-card span,
details {
  color: var(--muted);
  font-size: 14px;
}
.level-card {
  margin-top: 15px;
  display: grid;
  gap: 4px;
}
.weak-list {
  padding: 0;
  list-style: none;
  margin: 15px 0;
}
.weak-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.weak-list small {
  color: var(--muted);
}
details {
  margin-top: 14px;
}
summary {
  cursor: pointer;
  color: var(--mint);
}
.practice-panel .primary {
  margin-top: 7px;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #443232;
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  z-index: 8;
  width: max-content;
  max-width: 90vw;
}
dialog {
  width: min(400px, 90vw);
  border: 1px solid #4b5466;
  border-radius: 14px;
  padding: 24px;
  color: var(--white);
  background: var(--panel);
}
dialog::backdrop {
  background: #050910bb;
}
dialog label {
  display: block;
  margin: 20px 0 6px;
}
dialog input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid #465367;
  color: var(--white);
  border-radius: 7px;
}
dialog .footnote {
  margin: 10px 0 20px;
}
.icon-btn {
  background: none;
  border: none;
  padding: 6px;
  color: var(--muted);
}
.loading {
  color: var(--muted);
}
@media (min-width: 1550px) {
  main {
    padding-top: 42px;
  }
  .hero {
    min-height: 330px;
  }
}
@media (max-width: 1050px) {
  .mast-inner,
  main {
    width: calc(100% - 56px);
  }
  .mast-inner {
    gap: 32px;
  }
  nav {
    gap: 1px;
  }
  nav a {
    padding: 9px 12px;
  }
  .dashboard-grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 18px;
  }
  .route-row {
    gap: 10px;
    padding: 11px;
  }
  .row-spacer {
    display: none;
  }
  .nox-label {
    right: 2%;
  }
  .hero-copy {
    width: 58%;
  }
  .progress-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}
@media (max-width: 800px) {
  .mast-inner,
  main {
    width: calc(100% - 36px);
  }
  .brand {
    font-size: 23px;
  }
  .brandmark {
    width: 33px;
  }
  .mast-inner {
    gap: 18px;
  }
  nav a {
    padding: 9px;
    gap: 5px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr 0.85fr;
    gap: 16px;
  }
  .route-row .status {
    font-size: 11px;
    min-width: 19px;
  }
  .status.locked {
    background: none;
  }
  .route-row {
    gap: 10px;
  }
  .route-row h3 {
    font-size: 17px;
  }
  .hero-copy {
    padding-left: 26px;
  }
  .hero h2 {
    font-size: 49px;
  }
  .section-head h2 {
    font-size: 20px;
  }
  .course-grid {
    gap: 12px;
  }
  .course-card {
    padding: 15px;
  }
  .course-card h2 {
    font-size: 21px;
  }
}
@media (max-width: 680px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }
  #mast {
    height: 62px;
  }
  .mast-inner,
  main {
    width: calc(100% - 32px);
  }
  .mast-inner {
    justify-content: space-between;
  }
  .brandmark {
    width: 34px;
  }
  .brand {
    gap: 7px;
    font-size: 25px;
  }
  nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 5;
    height: calc(61px + env(safe-area-inset-bottom));
    padding: 4px 7px calc(4px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    background: #101620;
    border-top: 1px solid var(--line);
  }
  nav a {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    font-size: 11px;
    min-height: 45px;
    padding: 4px;
  }
  .pilot {
    font-size: 13px;
  }
  .pilot-avatar {
    width: 32px;
    height: 32px;
  }
  .pilot-avatar img {
    width: 30px;
    height: 30px;
  }
  main {
    padding: 21px 0 17px;
  }
  .pagehead {
    margin-bottom: 16px;
  }
  .pagehead h1 {
    font-size: 31px;
    letter-spacing: -1.3px;
  }
  .pagehead p {
    font-size: 14px;
    margin-top: 4px;
  }
  .date {
    display: none;
  }
  .hero {
    min-height: 295px;
    align-items: flex-start;
    border-radius: 12px;
    background-size: auto 100%;
    background-position: 56% center;
  }
  .hero-copy {
    width: 100%;
    padding: 20px 17px;
    pointer-events: none;
  }
  .hero-copy a {
    pointer-events: auto;
  }
  .hero h2 {
    font-size: clamp(36px, 8vw, 48px);
    letter-spacing: -1.65px;
    max-width: 64%;
    margin: 15px 0 11px;
  }
  .mission-label {
    font-size: 11px;
    letter-spacing: 1px;
  }
  .hero-copy p {
    max-width: 55%;
    font-size: 13px;
    line-height: 1.5;
  }
  .hero-actions {
    gap: 12px;
    margin-top: 18px;
  }
  .hero .primary {
    padding: 9px 13px;
    font-size: 14px;
  }
  .duration {
    font-size: 12px;
    gap: 4px;
  }
  .nox-scene {
    right: 0;
    width: 44%;
    height: 78%;
    bottom: 17px;
  }
  .nox-scene > img {
    height: auto;
    max-height: 100%;
    width: 100%;
    max-width: 100%;
    bottom: 0;
  }
  .nox-label {
    right: 6%;
    bottom: -7%;
    font-size: 11px;
    padding: 3px 6px;
  }
  .dashboard-grid,
  .progress-grid,
  .course-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-grid {
    margin-top: 22px;
    gap: 24px;
  }
  .route-row .status {
    font-size: 11px;
  }
  .route-row {
    padding: 10px 12px;
    gap: 12px;
    min-height: 71px;
  }
  .route-row .locked {
    background: #232a37;
  }
  .route-copy small {
    font-size: 11px;
  }
  .planet-tile {
    width: 45px;
    height: 45px;
  }
  .planet-tile img {
    width: 49px;
    height: 41px;
  }
  .route-row > .icon {
    width: 12px;
  }
  .section-head {
    margin-bottom: 11px;
  }
  .section-head h2 {
    font-size: 21px;
  }
  .meta {
    font-size: 11px;
  }
  .stats {
    padding-top: 15px;
  }
  .course-card {
    padding: 19px;
  }
  .course-card .planet-tile {
    height: 90px;
  }
  .course-card .planet-tile img {
    height: 75px;
  }
  .lesson,
  .practice-panel {
    padding: 19px 16px;
  }
  .lesson-bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .lesson p,
  .practice-panel > p {
    font-size: 16px;
  }
  .story {
    font-size: 17px !important;
  }
  .coach-line .portrait {
    width: 50px;
    height: 50px;
  }
  .coach-line h1 {
    font-size: 24px;
  }
  .answers {
    gap: 8px;
  }
  .answer {
    min-height: 52px;
    font-size: 16px;
    padding: 10px;
  }
  .example {
    padding: 5px 10px;
  }
  .example > div {
    font-size: 13px;
  }
  .example strong {
    font-size: 14px;
  }
  .result-actions {
    flex-wrap: wrap;
  }
  .panel {
    padding: 15px;
  }
  .graph {
    margin: 8px -8px;
  }
  .progress-grid {
    gap: 19px;
  }
  #notice:not(:empty) {
    bottom: 80px;
  }
}
@media (max-width: 365px) {
  .mast-inner,
  main {
    width: calc(100% - 24px);
  }
  .hero-copy {
    padding: 17px 13px;
  }
  .hero-copy p {
    max-width: 57%;
  }
  .hero h2 {
    font-size: 33px;
  }
  .hero-actions {
    gap: 8px;
  }
  .duration {
    font-size: 11px;
  }
  .hero {
    min-height: 287px;
  }
  .route-row {
    gap: 8px;
    padding: 9px;
  }
  .route-row h3 {
    font-size: 15px;
  }
  .route-row .status {
    font-size: 11px;
  }
  .route-row > .icon {
    display: none;
  }
  .planet-tile {
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 680px) {
  .hero {
    background-position: 20% center;
  }
  .hero h2 {
    max-width: 87%;
  }
  .nox-scene {
    height: 69%;
    width: 42%;
    bottom: 27px;
  }
  .nox-label {
    bottom: -9%;
  }
  .hero-actions .duration {
    background: #231d35;
    border-radius: 5px;
    padding: 3px 5px;
  }
}
.login-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  max-width: 970px;
  margin: clamp(16px, 6vh, 65px) auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
}
.login-art {
  position: relative;
  min-height: 440px;
  isolation: isolate;
  background: #26213c url('/art/sector.png') center/cover;
  overflow: hidden;
}
.login-art .nox-scene {
  height: 79%;
  width: 78%;
  right: 0;
  bottom: 0;
}
.login-art .nox-scene img,
.nox-scene img,
.portrait {
  image-rendering: auto;
}
.login-caption {
  position: relative;
  z-index: 1;
  margin: 28px;
}
.login-caption small {
  color: #c8b8e0;
  font: 12px var(--mono);
  letter-spacing: 1.4px;
}
.login-caption h2 {
  margin-top: 6px;
  font-size: 30px;
}
.login-panel {
  align-self: center;
  padding: clamp(24px, 4vw, 50px);
  border: 0;
}
.login-panel h1 {
  font-size: 34px;
}
.login-panel > p {
  color: var(--muted);
  margin: 9px 0 18px;
}
.login-panel form {
  display: grid;
}
.login-panel label,
.guided-entry label {
  font-size: 14px;
  font-weight: 650;
  margin: 12px 0 5px;
}
.login-panel input:not([type='checkbox']),
.guided-entry input,
.student-picker {
  background: var(--bg);
  color: var(--white);
  padding: 11px 12px;
  border: 1px solid #475364;
  border-radius: 7px;
  font: inherit;
  width: 100%;
}
.login-panel .primary {
  width: 100%;
  margin-top: 14px;
}
.import-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.import-check input {
  margin: 4px 0;
  accent-color: var(--mint);
}
.form-error:not(:empty) {
  margin-top: 10px;
  color: #ffb59a;
  font-size: 14px;
}
.student-picker {
  display: block;
  width: min(100%, 420px);
  margin: 6px 0 24px;
}
.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 17px 0;
  border-block: 1px solid var(--line);
  margin: 16px 0 24px;
  gap: 14px;
}
.admin-summary span,
.admin-summary strong,
.mcm-guide .coach-line strong {
  display: block;
}
.admin-summary span {
  color: var(--muted);
  font-size: 14px;
}
.admin-summary strong {
  font: 700 26px var(--heading);
}
.admin-topics {
  margin: 18px 0;
}
.guide-tabs,
.guided-entry {
  display: flex;
  gap: 8px;
}
.guide-tabs {
  flex-wrap: wrap;
  margin: 19px 0 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.guide-tabs a {
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
}
.guide-tabs a[aria-current] {
  color: var(--mint);
  background: #23362e;
}
.calculation {
  padding-left: 24px;
}
.calculation li {
  padding-left: 5px;
  margin: 16px 0;
  color: #d4dce5;
}
.calculation li::marker {
  color: var(--mint);
  font-weight: bold;
}
.math-line {
  margin: 9px 0;
  padding: 12px 15px;
  background: #1b282b;
  border-radius: 7px;
  font-variant-numeric: tabular-nums;
  line-height: 1.8;
}
.math-line mark {
  background: #365a47;
  color: #aff5d4;
  padding: 1px 4px;
  border-radius: 3px;
}
.guided-entry {
  margin-top: 7px;
  flex-wrap: wrap;
}
.guided-entry input {
  width: 100px;
}
.mcm-guide .lesson-bottom .back {
  margin-bottom: 0;
}
#guided-result:not(:empty) {
  padding: 12px 15px;
  background: #21322e;
  border-radius: 7px;
}
@media (max-width: 680px) {
  .login-layout {
    grid-template-columns: 1fr;
    margin: 0 auto;
  }
  .login-art {
    min-height: 170px;
  }
  .login-art .nox-scene {
    height: 99%;
    width: 42%;
    right: 2%;
  }
  .login-caption {
    margin: 18px;
    max-width: 55%;
  }
  .login-panel {
    padding: 22px;
  }
  .admin-summary {
    grid-template-columns: 1fr 1fr;
  }
  .guide-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .mcm-guide .lesson-bottom {
    align-items: stretch;
  }
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.feedback-title,
.earned-level,
.milestone {
  display: flex;
  align-items: center;
  gap: 8px;
}
.feedback-symbol,
.guided-symbol {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #254b3d;
  color: #a9f5d1;
  position: relative;
}
.no .feedback-symbol,
[data-outcome='retry'] .guided-symbol {
  background: #513c32;
  color: #f7c59f;
}
.xp-award {
  margin-left: auto;
  white-space: nowrap;
  color: #f8d48d;
  font: 700 14px var(--mono);
}
.earned-level {
  justify-content: space-between;
  color: #c6cfcd;
  font-size: 12px;
  margin-top: 14px;
}
.earned-track {
  height: 5px;
  background: #3a4442;
  border-radius: 9px;
  overflow: hidden;
  margin: 4px 0;
}
.earned-track i {
  display: block;
  width: var(--to);
  height: 100%;
  background: var(--mint);
}
.milestone {
  position: relative;
  color: #ffe2a0;
  font-size: 14px;
  margin: 12px 0 0;
}
.result h1,
.beacons i {
  position: relative;
}
.star-burst {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 2;
}
.star-burst i {
  display: block;
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--mint);
  opacity: 0;
}
.star-burst i:nth-child(3n) {
  background: #f3d696;
}
.star-burst i:nth-child(3n + 1) {
  background: #c7a1fc;
}
.beacons .on i::after {
  content: '';
  position: absolute;
  inset: -2px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.beacons .green.on {
  color: var(--mint);
}
#signals .matched {
  color: var(--mint);
  font-weight: 700;
}
#guided-result[data-outcome='retry'] {
  background: #342b27;
}
.guided-symbol {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}
.feedback:focus {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: no-preference) {
  .beacons .on i::after {
    animation: signal-wave 0.72s ease-out;
  }
  #signals .matched {
    display: inline-block;
    animation: arrive 0.28s ease-out;
  }
  .hero .nox-scene > img,
  .login-art .nox-scene > img {
    animation: orbital-drift 3.8s ease-in-out 1;
  }
  .mcm-guide > h2,
  .mcm-guide .calculation li,
  .question-arrives .coach-line,
  .question-arrives .answers {
    animation: arrive 0.3s both ease-out;
  }
  .calculation li:nth-child(2) {
    animation-delay: 80ms;
  }
  .calculation li:nth-child(3) {
    animation-delay: 160ms;
  }
  .math-line mark {
    animation: highlight 0.7s ease-out both;
  }
  .route-row:not(.closed),
  .primary,
  .answer {
    transition:
      background-color 0.16s,
      border-color 0.16s,
      transform 0.16s;
  }
  .route-row:not(.closed):hover .planet-tile img {
    transform: rotate(-8deg);
    transition: transform 0.2s;
  }
  .answer.chosen:not(:disabled) > span {
    animation: stamp 0.22s ease-out;
  }
  .answer.correct {
    animation: confirm 0.55s ease-out;
  }
  .answer.wrong {
    animation: nudge 0.32s ease-out;
  }
  .feedback,
  .result > img {
    animation: arrive 0.32s ease-out;
  }
  .xp-award,
  .feedback-symbol,
  .guided-symbol,
  .milestone {
    animation: stamp 0.35s ease-out;
  }
  .earned-track i {
    animation: earn 0.65s ease-out both;
  }
  .star-burst i {
    animation: scatter 0.85s ease-out var(--delay) both;
  }
}
@keyframes orbital-drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
@keyframes signal-wave {
  from {
    opacity: 0.85;
    transform: scale(0.8);
  }
  to {
    opacity: 0;
    transform: scale(2.5);
  }
}
@keyframes arrive {
  from {
    opacity: 0.35;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes highlight {
  from {
    background: #1b282b;
  }
  to {
    background: #365a47;
  }
}
@keyframes stamp {
  0% {
    transform: scale(0.88);
  }
  65% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes confirm {
  from {
    box-shadow: inset 0 0 0 3px #89dfb8;
  }
  to {
    box-shadow: inset 0 0 0 0 transparent;
  }
}
@keyframes nudge {
  25% {
    transform: translateX(-3px);
  }
  65% {
    transform: translateX(3px);
  }
}
@keyframes earn {
  from {
    width: var(--from);
  }
  to {
    width: var(--to);
  }
}
@keyframes scatter {
  0% {
    opacity: 0;
    transform: rotate(var(--angle)) translateX(5px) scale(0.4);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(var(--angle)) translateX(var(--distance)) scale(0.3);
  }
}
.signal-lanes {
  position: relative;
  margin: 17px 8px 3px;
  padding: 3px 0;
}
.signal-lane {
  height: 2px;
  background: #484153;
  margin: 10px 0;
  position: relative;
}
.signal-lane i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -3px);
  background: #332f40;
  border: 1px solid #817891;
}
.period-4 .lit {
  background: var(--mint);
  border-color: var(--mint);
}
.period-6 .lit {
  background: #c49eff;
  border-color: #c49eff;
}
.clock-cursor {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #fff;
}
.clock-play {
  margin-top: 8px;
  font-size: 14px;
  min-height: 40px;
}
@media (prefers-reduced-motion: no-preference) {
  .clock-cursor {
    transition: left 0.2s linear;
  }
  .signal-lane .lit {
    animation: signal-dot 0.35s ease-out;
  }
}
@keyframes signal-dot {
  50% {
    transform: translate(-50%, -3px) scale(1.45);
  }
}
.pilot-identity {
  max-width: 95px;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 880px) {
  .pilot-identity {
    display: none;
  }
}
.factor-lab { padding:16px; background:#191e2b; border:1px solid #42445b; border-radius:9px; }
.lesson .factor-lab p { font-size:15px; margin:8px 0 12px; }
.factor-lab fieldset { display:inline-block; border:0; margin:0 18px 10px 0; padding:0; }
.factor-lab legend { color:var(--muted); font-size:14px; padding:0; margin:0 0 7px; }
.factor-lab label { position:relative; display:inline-flex; }
.factor-lab label input { position:absolute; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; }
.factor-lab label span { display:grid; place-items:center; min-width:34px; height:36px; border:1px solid var(--line); border-radius:5px; margin-right:3px; }
.factor-lab input:checked+span { color:var(--mint); border-color:var(--mint); background:#243c35; }
.factor-lab input:focus-visible+span { outline:2px solid var(--purple); outline-offset:1px; }
.factor-product { display:flex; align-items:center; flex-wrap:wrap; gap:5px; margin:9px 0; font-size:16px; }
.prime { display:inline-grid; place-items:center; width:26px; height:29px; border-radius:5px; }
.prime-2 { color:var(--mint); background:#254038; }
.prime-3 { color:#e0c9ff; background:#393046; }
.factor-checks { display:flex; gap:8px; flex-wrap:wrap; }
.factor-checks span { font-size:13px; color:var(--muted); }
.factor-checks .fits { color:var(--mint); }
@media(prefers-reduced-motion:no-preference){.factor-product .prime,.factor-checks .fits { animation:stamp .28s ease-out; }}
