:root {
  color-scheme: light;
  --ink: #17203e;
  --ink-soft: #56617d;
  --navy: #101a3a;
  --navy-light: #1d2c59;
  --paper: #f7f7fb;
  --white: #ffffff;
  --line: #dfe3ef;
  --coral: #ff6f61;
  --coral-dark: #d94f48;
  --coral-pale: #fff0ed;
  --gold: #f5bd42;
  --gold-pale: #fff8dc;
  --blue: #5578e7;
  --blue-pale: #edf1ff;
  --violet: #8567d9;
  --violet-pale: #f1edff;
  --mint: #4ebda2;
  --mint-pale: #e8fbf6;
  --green: #248568;
  --danger: #bd3f4a;
  --shadow: 0 18px 50px rgba(25, 34, 69, 0.11);
  --shadow-soft: 0 8px 24px rgba(25, 34, 69, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --focus: 0 0 0 4px rgba(85, 120, 231, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 111, 97, 0.08), transparent 22rem),
    radial-gradient(circle at 91% 18%, rgba(85, 120, 231, 0.08), transparent 24rem),
    var(--paper);
  color: var(--ink);
  font-family: "Trebuchet MS", "Avenir Next", Avenir, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: var(--blue);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 86px;
  padding: 12px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(223, 227, 239, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--navy);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
}

.brand-planet {
  position: relative;
  z-index: 2;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--coral), #ff9b79);
  color: var(--navy);
  font-size: 21px;
  font-weight: 900;
  box-shadow: inset -5px -5px 0 rgba(191, 63, 74, 0.14);
}

.brand-orbit {
  position: absolute;
  z-index: 3;
  width: 47px;
  height: 18px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  transform: rotate(-17deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 23px;
  letter-spacing: -0.04em;
}

.brand-text span {
  margin-top: 4px;
  color: var(--coral-dark);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 16px;
  background: #f0f2f8;
}

.nav-button {
  min-height: 46px;
  padding: 9px 17px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
}

.nav-button:hover {
  color: var(--navy);
}

.nav-button.is-active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 3px 10px rgba(16, 26, 58, 0.09);
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.starbit-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 8px 14px;
  border: 1px solid #efd687;
  border-radius: 999px;
  background: var(--gold-pale);
  color: #72520c;
}

.starbit-pill span {
  color: #e0a111;
  font-size: 21px;
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 5px 11px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  cursor: pointer;
  text-align: left;
}

.profile-button:hover {
  border-color: #b9c1d8;
}

.profile-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-pale);
  font-size: 22px;
}

.profile-button small,
.profile-button strong {
  display: block;
}

.profile-button small {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-button strong {
  font-size: 16px;
}

main {
  min-height: calc(100vh - 190px);
}

.app-view {
  width: min(1420px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(30px, 5vw, 70px) 0 90px;
}

.app-view[hidden] {
  display: none;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(290px, 0.8fr);
  gap: 24px;
}

.next-mission-card,
.coach-card,
.daily-plan,
.current-unit,
.progress-card,
.view-hero,
.journey-unit,
.reward-card {
  border: 1px solid rgba(218, 222, 235, 0.9);
  box-shadow: var(--shadow-soft);
}

.next-mission-card {
  position: relative;
  display: grid;
  min-height: 410px;
  grid-template-columns: minmax(0, 1.22fr) minmax(270px, 0.78fr);
  overflow: hidden;
  border-color: transparent;
  border-radius: var(--radius-xl);
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 24px 60px rgba(16, 26, 58, 0.22);
}

.next-mission-card::before {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.75) 0 1px, transparent 2px),
    radial-gradient(circle at 27% 76%, rgba(255, 255, 255, 0.6) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 15%, rgba(255, 255, 255, 0.7) 0 1.5px, transparent 2px),
    radial-gradient(circle at 92% 71%, rgba(255, 255, 255, 0.65) 0 1px, transparent 2px);
  content: "";
}

.mission-copy {
  position: relative;
  z-index: 2;
  padding: clamp(32px, 5vw, 62px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--coral-dark);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.next-mission-card .eyebrow {
  color: #ffc5b9;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(36px, 4.4vw, 62px);
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(27px, 3vw, 38px);
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.next-mission-card h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--white);
  font-size: clamp(36px, 4vw, 58px);
}

.hero-description {
  max-width: 670px;
  margin: 0;
  color: #dbe3ff;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.secondary-button,
.quiet-button,
.text-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}

.primary-button {
  border: 2px solid var(--coral);
  background: var(--coral);
  color: var(--navy);
  box-shadow: 0 8px 18px rgba(255, 111, 97, 0.28);
}

.primary-button:hover {
  border-color: #ff8f84;
  background: #ff8f84;
  transform: translateY(-1px);
}

.secondary-button {
  border: 2px solid var(--blue);
  background: var(--blue);
  color: var(--white);
}

.secondary-button:hover {
  background: #3f61cb;
}

.quiet-button {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.quiet-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.text-button {
  min-height: 44px;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: var(--blue);
}

.text-button:hover {
  color: var(--navy);
}

.mission-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
  color: #c7d1f1;
  font-size: 14px;
  font-weight: 800;
}

.hero-space {
  position: relative;
  z-index: 1;
  min-height: 360px;
  background:
    radial-gradient(circle at 58% 46%, rgba(85, 120, 231, 0.24), transparent 8rem),
    radial-gradient(circle at 30% 82%, rgba(255, 111, 97, 0.16), transparent 7rem);
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
}

.orbit-one {
  width: 300px;
  height: 150px;
}

.orbit-two {
  width: 380px;
  height: 235px;
  transform: translate(-50%, -50%) rotate(22deg);
}

.hero-planet {
  position: absolute;
  top: 50%;
  left: 49%;
  display: grid;
  width: 154px;
  height: 154px;
  place-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #ffc6b5, transparent 14%),
    linear-gradient(145deg, var(--coral), #f0445d);
  color: var(--navy);
  text-align: center;
  transform: translate(-50%, -50%);
  box-shadow:
    inset -18px -16px 0 rgba(163, 42, 71, 0.15),
    0 0 55px rgba(255, 111, 97, 0.28);
}

.hero-planet::after {
  position: absolute;
  top: 43%;
  left: -31px;
  width: 214px;
  height: 53px;
  border: 10px solid var(--gold);
  border-radius: 50%;
  clip-path: polygon(0 40%, 42% 40%, 42% 100%, 58% 100%, 58% 40%, 100% 40%, 100% 100%, 0 100%);
  content: "";
  transform: rotate(-13deg);
}

.hero-planet span,
.hero-planet small {
  position: relative;
  z-index: 2;
}

.hero-planet span {
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}

.hero-planet small {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tiny-planet {
  position: absolute;
  display: grid;
  width: 49px;
  height: 49px;
  place-items: center;
  border-radius: 50%;
  font-size: 23px;
  font-weight: 900;
}

.tiny-one {
  top: 18%;
  left: 18%;
  background: var(--blue);
}

.tiny-two {
  right: 12%;
  bottom: 15%;
  background: var(--mint);
  color: var(--navy);
}

.rocket {
  position: absolute;
  top: 30%;
  right: 8%;
  font-size: 42px;
  transform: rotate(-28deg);
  filter: drop-shadow(0 7px 6px rgba(0, 0, 0, 0.3));
}

.coach-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 410px;
  padding: 30px;
  border-radius: var(--radius-xl);
  background: var(--white);
}

.coach-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.coach-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid #d8cff7;
  border-radius: 18px;
  background: var(--violet-pale);
  font-size: 28px;
}

.coach-header h2 {
  margin: 0;
  font-size: 25px;
}

.coach-header .eyebrow {
  margin-bottom: 4px;
  color: var(--violet);
}

.coach-card blockquote {
  position: relative;
  margin: 30px 0;
  padding-left: 20px;
  border-left: 4px solid var(--violet);
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.55;
}

.coach-rule {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: var(--gold-pale);
  color: #654c12;
  font-size: 15px;
}

.coach-rule p {
  margin: 0;
}

.daily-plan,
.current-unit {
  margin-top: 26px;
  padding: clamp(24px, 3vw, 38px);
  border-radius: var(--radius-xl);
  background: var(--white);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.time-badge,
.unit-progress-label {
  flex: none;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--blue-pale);
  color: #364e9d;
  font-size: 14px;
  font-weight: 900;
}

.plan-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  align-items: center;
  min-height: 112px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fbfbfd;
}

.plan-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--navy);
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
}

.plan-steps strong,
.plan-steps span {
  display: block;
}

.plan-steps strong {
  font-size: 17px;
}

.plan-steps div span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 14px;
}

.plan-steps small {
  grid-column: 2;
  color: var(--coral-dark);
  font-size: 13px;
  font-weight: 900;
}

.progress-section {
  margin-top: 52px;
}

.progress-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 14px;
}

.progress-card {
  display: flex;
  min-height: 154px;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--white);
}

.progress-card strong {
  margin-top: 12px;
  color: var(--navy);
  font-size: 35px;
  line-height: 1;
}

.progress-card > span:last-child {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 15px;
}

.level-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
}

.level-orb {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 8px solid #f7d77e;
  border-radius: 50%;
  background: var(--gold-pale);
  color: #72520c;
  box-shadow: inset 0 0 0 5px var(--white);
}

.level-orb span {
  font-size: 29px;
  font-weight: 900;
}

.level-card h3 {
  margin: 3px 0 9px;
}

.level-card small {
  color: var(--ink-soft);
  font-size: 13px;
}

.card-label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-track,
.unit-progress-line,
.mission-progress-track {
  overflow: hidden;
  border-radius: 999px;
  background: #e8eaf2;
}

.progress-track {
  width: 100%;
  height: 9px;
  margin-bottom: 5px;
}

.progress-track span,
.unit-progress-line span,
.mission-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--gold));
  transition: width 300ms ease;
}

.progress-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  font-size: 22px;
  font-weight: 900;
}

.progress-icon.coral {
  background: var(--coral-pale);
  color: var(--coral-dark);
}

.progress-icon.gold {
  background: var(--gold-pale);
  color: #ad7806;
}

.progress-icon.blue {
  background: var(--blue-pale);
  color: var(--blue);
}

.unit-progress-line {
  height: 12px;
  margin-bottom: 30px;
}

.mission-trail {
  display: grid;
  grid-template-columns: repeat(6, minmax(118px, 1fr));
  gap: 14px;
}

.trail-node {
  position: relative;
  min-width: 0;
}

.trail-node::after {
  position: absolute;
  z-index: 0;
  top: 34px;
  left: calc(50% + 32px);
  width: calc(100% - 50px);
  border-top: 3px dotted #ccd2e2;
  content: "";
}

.trail-node:nth-child(6)::after,
.trail-node:last-child::after {
  display: none;
}

.mission-node {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 140px;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;
}

.mission-node:disabled {
  cursor: not-allowed;
}

.node-orb {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: #e8eaf2;
  color: #7b849e;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 0 0 2px #d8dce8, 0 6px 12px rgba(24, 32, 62, 0.1);
}

.mission-node.is-current .node-orb {
  background: var(--coral);
  color: var(--navy);
  box-shadow: 0 0 0 4px #ffd5cf, 0 8px 18px rgba(255, 111, 97, 0.28);
}

.mission-node.is-complete .node-orb {
  background: var(--mint);
  color: var(--navy);
  box-shadow: 0 0 0 3px #c7f0e7, 0 6px 12px rgba(78, 189, 162, 0.18);
}

.mission-node strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.mission-node small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.mission-node:disabled strong,
.mission-node:disabled small {
  color: #99a1b4;
}

.view-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(30px, 5vw, 58px);
  border-radius: var(--radius-xl);
  background: var(--white);
}

.view-hero > div:first-child {
  max-width: 820px;
}

.view-hero h1 {
  margin-bottom: 14px;
}

.view-hero p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 19px;
}

.course-stats {
  display: grid;
  min-width: 220px;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.course-stats span {
  display: flex;
  min-height: 100px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 16px;
  background: var(--blue-pale);
  color: #435582;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.course-stats strong {
  color: var(--navy);
  font-size: 28px;
}

.journey-list {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.journey-unit {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
}

.journey-unit summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 112px;
  padding: 22px 28px;
  cursor: pointer;
  list-style: none;
}

.journey-unit summary::-webkit-details-marker {
  display: none;
}

.unit-number {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: var(--coral-pale);
  color: var(--coral-dark);
  font-size: 20px;
  font-weight: 900;
}

.journey-unit[data-color="blue"] .unit-number {
  background: var(--blue-pale);
  color: var(--blue);
}

.journey-unit[data-color="violet"] .unit-number {
  background: var(--violet-pale);
  color: var(--violet);
}

.journey-unit[data-color="mint"] .unit-number {
  background: var(--mint-pale);
  color: var(--green);
}

.journey-unit[data-color="gold"] .unit-number {
  background: var(--gold-pale);
  color: #9c6a00;
}

.unit-summary-copy strong,
.unit-summary-copy span {
  display: block;
}

.unit-summary-copy strong {
  color: var(--navy);
  font-size: 23px;
}

.unit-summary-copy span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 15px;
}

.unit-status {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f0f2f7;
  color: #6f7890;
  font-size: 13px;
  font-weight: 900;
}

.journey-unit[open] .unit-status {
  background: var(--mint-pale);
  color: var(--green);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 28px 28px;
}

.module-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fafbfe;
}

.module-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.module-card h3 {
  margin: 4px 0 6px;
}

.module-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.module-kicker {
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.skill-count {
  flex: none;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
}

.topic-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.topic-list li {
  position: relative;
  padding-left: 23px;
  color: #3e4864;
  font-size: 14px;
}

.topic-list li::before {
  position: absolute;
  top: 1px;
  left: 0;
  color: var(--mint);
  content: "✦";
  font-size: 13px;
}

.reward-hero {
  background:
    radial-gradient(circle at 85% 18%, rgba(245, 189, 66, 0.24), transparent 12rem),
    var(--navy);
  color: var(--white);
}

.reward-hero h1 {
  color: var(--white);
}

.reward-hero .eyebrow {
  color: #f8d77e;
}

.reward-hero p:last-child {
  color: #d7def4;
}

.big-balance {
  display: grid;
  min-width: 210px;
  min-height: 175px;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
}

.big-balance span {
  color: var(--gold);
  font-size: 31px;
}

.big-balance strong {
  font-size: 46px;
  line-height: 1;
}

.big-balance small {
  margin-top: 8px;
  color: #d7def4;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.reward-card {
  display: flex;
  min-height: 315px;
  flex-direction: column;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  text-align: center;
}

.reward-icon {
  display: grid;
  width: 105px;
  height: 105px;
  place-items: center;
  border-radius: 30px;
  background: linear-gradient(145deg, var(--violet-pale), var(--blue-pale));
  font-size: 52px;
}

.reward-card h2 {
  margin: 20px 0 8px;
  font-size: 23px;
}

.reward-card p {
  flex: 1;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.reward-card button {
  width: 100%;
  margin-top: 20px;
}

.reward-cost {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.reward-cost span {
  color: var(--gold);
}

.reward-card.is-equipped {
  border: 2px solid var(--mint);
}

.reward-card button:disabled {
  border-color: #d8dce7;
  background: #eceef4;
  color: #828aa0;
  cursor: not-allowed;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 14px;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--navy);
  font-size: 17px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  color: var(--ink-soft);
  font-weight: 800;
}

dialog {
  padding: 0;
  border: 0;
}

dialog::backdrop {
  background: rgba(11, 17, 39, 0.72);
  backdrop-filter: blur(7px);
}

.mission-dialog {
  width: min(960px, calc(100% - 24px));
  max-width: none;
  height: min(900px, calc(100dvh - 24px));
  max-height: none;
  overflow: hidden;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}

.dialog-shell {
  display: grid;
  height: 100%;
  grid-template-rows: auto 1fr;
}

.mission-header {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.icon-button:hover {
  background: #f0f2f7;
}

.mission-header-progress {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 13px;
}

.mission-header-progress > span {
  min-width: 94px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 900;
}

.mission-progress-track {
  height: 11px;
}

.mission-reward {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--gold-pale);
  color: #805e11;
  font-size: 14px;
  font-weight: 900;
}

.mission-content {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(26px, 5vw, 58px);
}

.lesson-page,
.challenge-page,
.teachback-page,
.complete-page {
  width: min(760px, 100%);
  margin: 0 auto;
}

.lesson-number {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--coral-pale);
  color: var(--coral-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lesson-page h1,
.challenge-page h1,
.teachback-page h1,
.complete-page h1 {
  margin: 14px 0 14px;
  font-size: clamp(34px, 6vw, 50px);
}

.lesson-lead,
.challenge-prompt,
.teachback-prompt {
  color: #35405f;
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.6;
}

.mission-codename {
  margin: -5px 0 22px;
  color: var(--coral-dark);
  font-size: 18px;
  font-weight: 900;
}

.lesson-objective,
.mistake-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid #b8e5d7;
  border-radius: var(--radius-md);
  background: var(--mint-pale);
}

.lesson-objective > span,
.mistake-card > span {
  font-size: 25px;
}

.lesson-objective strong,
.mistake-card strong {
  color: #1c6c59;
  font-size: 17px;
}

.lesson-objective p,
.mistake-card p {
  margin: 4px 0 0;
  color: #315b52;
  font-size: 17px;
  line-height: 1.55;
}

.warmup-card {
  margin: 22px 0 28px;
  overflow: hidden;
  border: 1px solid #f1d47f;
  border-radius: var(--radius-md);
  background: var(--gold-pale);
}

.warmup-card summary {
  display: grid;
  gap: 7px;
  padding: 18px 20px;
  cursor: pointer;
  color: #594514;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
}

.warmup-card summary span {
  color: #805e11;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.warmup-card p {
  margin: 0;
  padding: 0 20px 20px;
  color: #594514;
  font-size: 17px;
  font-weight: 800;
}

.mistake-card {
  border-color: #efc4bd;
  background: var(--coral-pale);
}

.mistake-card strong {
  color: var(--coral-dark);
}

.mistake-card p {
  color: #70413b;
}

.word-decoder {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid #d6cdf5;
  border-radius: var(--radius-md);
  background: var(--violet-pale);
}

.word-decoder > span {
  font-size: 25px;
}

.word-decoder strong,
.word-decoder small {
  display: block;
}

.word-decoder strong {
  color: #4c378f;
}

.word-decoder small {
  margin-top: 3px;
  color: #5c527d;
  font-size: 15px;
}

.lesson-visual {
  min-height: 220px;
  margin: 26px 0;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(85, 120, 231, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 120, 231, 0.04) 1px, transparent 1px),
    var(--white);
  background-size: 24px 24px;
}

.ratio-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  min-height: 160px;
}

.ratio-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.ratio-dot {
  width: 34px;
  height: 34px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px #bbcaf9;
}

.ratio-group.gold .ratio-dot {
  background: var(--gold);
  box-shadow: 0 0 0 2px #f3dc99;
}

.ratio-group-label {
  width: 100%;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.ratio-colon {
  color: var(--navy);
  font-size: 46px;
  font-weight: 900;
}

.math-table {
  width: min(420px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 2px solid var(--navy);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  background: var(--white);
  text-align: center;
}

.math-table th,
.math-table td {
  padding: 10px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.math-table th:last-child,
.math-table td:last-child {
  border-right: 0;
}

.math-table tr:last-child td {
  border-bottom: 0;
}

.math-table th {
  background: var(--blue-pale);
  color: var(--navy);
}

.fraction-visual,
.equation-visual,
.scale-visual,
.percent-visual {
  display: flex;
  min-height: 155px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.fraction-stack {
  display: grid;
  min-width: 130px;
  gap: 6px;
  font-size: 25px;
  font-weight: 900;
}

.fraction-stack span:first-child {
  padding-bottom: 6px;
  border-bottom: 3px solid var(--navy);
}

.visual-arrow {
  color: var(--coral);
  font-size: 34px;
  font-weight: 900;
}

.visual-result,
.equation-chip {
  padding: 18px 22px;
  border-radius: 17px;
  background: var(--mint-pale);
  color: #1c6c59;
  font-size: 23px;
  font-weight: 900;
}

.equation-chip {
  background: var(--blue-pale);
  color: var(--navy);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(21px, 4vw, 32px);
}

.graph-visual {
  display: grid;
  min-height: 230px;
  place-items: center;
}

.graph-svg {
  width: min(430px, 100%);
  height: auto;
}

.scale-card,
.percent-card {
  min-width: 150px;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.scale-card strong,
.scale-card small,
.percent-card strong,
.percent-card small {
  display: block;
}

.scale-card strong,
.percent-card strong {
  color: var(--navy);
  font-size: 26px;
}

.scale-card small,
.percent-card small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.worked-example {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid #f1d47f;
  border-radius: var(--radius-lg);
  background: var(--gold-pale);
}

.worked-example h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.worked-question {
  margin: 0 0 14px;
  color: #594514;
  font-size: 18px;
  font-weight: 800;
}

.worked-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 23px;
  color: #5f501f;
  font-size: 16px;
}

.worked-answer {
  margin: 16px 0 0;
  color: #3d3416;
  font-weight: 900;
}

.lesson-actions,
.challenge-actions,
.teachback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}

.challenge-count {
  color: var(--coral-dark);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.challenge-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.challenge-phase {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--mint-pale);
  color: #1c6c59;
  font-size: 14px;
  font-weight: 900;
}

.puzzle-visual {
  min-height: 170px;
  margin: 22px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(85, 120, 231, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 120, 231, 0.04) 1px, transparent 1px),
    var(--white);
  background-size: 24px 24px;
}

.puzzle-visual .graph-visual {
  min-height: 210px;
}

.puzzle-visual .fraction-visual,
.puzzle-visual .equation-visual,
.puzzle-visual .scale-visual,
.puzzle-visual .percent-visual {
  min-height: 130px;
}

.choice-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.choice-button {
  display: grid;
  min-height: 64px;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  cursor: pointer;
  color: var(--ink);
  text-align: left;
}

.choice-button:hover {
  border-color: #aeb9db;
  background: #fafbff;
}

.choice-button.is-selected {
  border-color: var(--blue);
  background: var(--blue-pale);
}

.choice-letter {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #eceef4;
  font-size: 14px;
  font-weight: 900;
}

.choice-button.is-selected .choice-letter {
  background: var(--blue);
  color: var(--white);
}

.feedback-box {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding: 17px;
  border-radius: var(--radius-md);
  font-size: 16px;
}

.feedback-box p {
  margin: 0;
}

.feedback-box.is-hint {
  background: var(--gold-pale);
  color: #5f4a15;
}

.feedback-box.is-correct {
  background: var(--mint-pale);
  color: #1c654f;
}

.feedback-box.is-wrong {
  background: var(--coral-pale);
  color: #823b3f;
}

.hint-button {
  min-height: 50px;
  padding: 10px 18px;
  border: 1px solid #e5c65f;
  border-radius: 14px;
  background: var(--gold-pale);
  color: #6e5210;
  cursor: pointer;
  font-weight: 900;
}

.hint-button:hover {
  background: #fff1b4;
}

.explain-box {
  width: 100%;
  min-height: 150px;
  margin-top: 22px;
  padding: 18px;
  resize: vertical;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  line-height: 1.55;
}

.explain-box:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: var(--focus);
}

.explain-note {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14px;
}

.coach-response {
  margin-top: 20px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--violet-pale);
  color: #504477;
}

.coach-response strong {
  display: block;
  margin-bottom: 4px;
  color: #4c378f;
}

.coach-response p {
  margin: 0;
}

.complete-page {
  padding-top: clamp(20px, 6vh, 70px);
  text-align: center;
}

.celebration-orb {
  position: relative;
  display: grid;
  width: 150px;
  height: 150px;
  margin: 0 auto 24px;
  place-items: center;
  border: 10px solid #f8dc8d;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--coral), #ff9b79);
  font-size: 62px;
  box-shadow: 0 18px 35px rgba(255, 111, 97, 0.24);
}

.celebration-orb::before,
.celebration-orb::after {
  position: absolute;
  color: var(--gold);
  content: "✦";
  font-size: 30px;
}

.celebration-orb::before {
  top: -25px;
  left: -30px;
}

.celebration-orb::after {
  right: -32px;
  bottom: -18px;
}

.score-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.score-row div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.score-row strong,
.score-row span {
  display: block;
}

.score-row strong {
  color: var(--navy);
  font-size: 27px;
}

.score-row span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-dialog,
.launch-dialog {
  width: min(610px, calc(100% - 24px));
  max-width: none;
  border-radius: 26px;
  background: transparent;
}

.dialog-card {
  max-height: calc(100dvh - 30px);
  overflow-y: auto;
  padding: clamp(24px, 5vw, 38px);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.dialog-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dialog-title-row h2 {
  margin-bottom: 0;
}

.profile-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.profile-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
}

.profile-row.is-active {
  border-color: var(--blue);
  background: var(--blue-pale);
}

.profile-select {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.profile-select span:first-child {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 13px;
  background: var(--white);
  font-size: 24px;
}

.profile-select strong,
.profile-select small {
  display: block;
}

.profile-select small {
  color: var(--ink-soft);
  font-size: 13px;
}

.profile-check {
  color: var(--green);
  font-weight: 900;
}

.add-profile-row {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.add-profile-row label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.add-profile-row > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
}

.add-profile-row input {
  min-width: 0;
  min-height: 50px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
}

.family-note {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.launch-card > p {
  color: var(--ink-soft);
}

.route-options {
  display: grid;
  gap: 11px;
  margin-top: 22px;
}

.route-options button {
  display: grid;
  min-height: 82px;
  grid-template-columns: 48px 1fr;
  gap: 1px 13px;
  align-items: center;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  cursor: pointer;
  text-align: left;
}

.route-options button:hover,
.route-options button.is-selected {
  border-color: var(--blue);
  background: var(--blue-pale);
}

.route-options button > span {
  grid-row: 1 / 3;
  font-size: 30px;
  text-align: center;
}

.route-options strong,
.route-options small {
  display: block;
}

.route-options small {
  color: var(--ink-soft);
  font-size: 13px;
}

.toast {
  position: fixed;
  z-index: 500;
  right: 20px;
  bottom: 20px;
  max-width: min(390px, calc(100% - 40px));
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
  font-size: 15px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.plain-page {
  min-height: 100vh;
}

.simple-header {
  grid-template-columns: 1fr auto;
}

.policy-page {
  width: min(800px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 100px;
}

.policy-page h1 {
  font-size: clamp(40px, 7vw, 62px);
}

.policy-intro {
  margin-bottom: 42px;
  color: var(--ink-soft);
  font-size: 22px;
}

.policy-page section {
  margin-top: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.policy-page section h2 {
  font-size: 25px;
}

.policy-page section p {
  margin-bottom: 0;
  color: #45506d;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 14px;
  }

  .main-nav {
    justify-self: center;
  }

  .nav-button {
    padding: 9px 12px;
  }

  .starbit-pill {
    display: none;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .coach-card {
    min-height: auto;
  }

  .coach-card blockquote {
    margin: 22px 0;
  }

  .progress-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .level-card {
    grid-column: 1 / -1;
  }

  .mission-trail {
    grid-template-columns: repeat(4, minmax(118px, 1fr));
  }

  .trail-node:nth-child(4)::after,
  .trail-node:nth-child(8)::after {
    display: none;
  }

  .trail-node:nth-child(6)::after {
    display: block;
  }

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

@media (max-width: 820px) {
  body {
    font-size: 17px;
  }

  .site-header {
    position: static;
    grid-template-columns: 1fr auto;
    padding: 12px 20px;
    background: var(--white);
    backdrop-filter: none;
  }

  .main-nav {
    position: fixed;
    z-index: 90;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--line);
    box-shadow: 0 10px 40px rgba(16, 26, 58, 0.2);
  }

  .nav-button {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
  }

  .nav-button span {
    font-size: 18px;
    line-height: 1;
  }

  .profile-button small,
  .profile-button strong,
  .profile-button > span:last-child {
    display: none;
  }

  .profile-button {
    padding: 5px;
  }

  .app-view {
    width: min(100% - 24px, 1420px);
    padding-top: 24px;
    padding-bottom: 105px;
  }

  .next-mission-card {
    min-height: 660px;
    grid-template-columns: 1fr;
  }

  .mission-copy {
    padding: 32px 25px 0;
  }

  .hero-space {
    min-height: 270px;
  }

  .hero-planet {
    width: 130px;
    height: 130px;
  }

  .hero-planet::after {
    left: -27px;
    width: 184px;
  }

  .orbit-one {
    width: 250px;
  }

  .orbit-two {
    width: 330px;
  }

  .plan-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    align-items: flex-start;
  }

  .progress-grid {
    grid-template-columns: 1fr 1fr;
  }

  .progress-card:last-child {
    grid-column: 1 / -1;
  }

  .mission-trail {
    display: flex;
    overflow-x: auto;
    padding: 4px 3px 14px;
    scroll-snap-type: x proximity;
  }

  .trail-node {
    min-width: 142px;
    scroll-snap-align: start;
  }

  .trail-node::after,
  .trail-node:nth-child(4)::after,
  .trail-node:nth-child(6)::after,
  .trail-node:nth-child(8)::after {
    display: block;
  }

  .trail-node:last-child::after {
    display: none;
  }

  .view-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .course-stats {
    min-width: 0;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .reward-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer {
    padding-bottom: 105px;
  }
}

@media (max-width: 560px) {
  .brand-text strong {
    font-size: 20px;
  }

  .brand-text span {
    font-size: 12px;
  }

  .brand-mark {
    width: 43px;
    height: 43px;
  }

  .header-tools {
    gap: 5px;
  }

  .next-mission-card h1 {
    font-size: 37px;
  }

  .hero-description {
    font-size: 18px;
  }

  .hero-actions,
  .hero-actions button {
    width: 100%;
  }

  .mission-meta {
    display: grid;
  }

  .coach-card,
  .daily-plan,
  .current-unit {
    padding: 22px;
    border-radius: 22px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > :last-child {
    margin-top: 14px;
  }

  .plan-steps,
  .progress-grid,
  .reward-grid {
    grid-template-columns: 1fr;
  }

  .level-card,
  .progress-card:last-child {
    grid-column: auto;
  }

  .level-card {
    grid-template-columns: auto 1fr;
  }

  .level-orb {
    width: 66px;
    height: 66px;
  }

  .journey-unit summary {
    grid-template-columns: auto 1fr;
    padding: 18px;
  }

  .unit-status {
    grid-column: 2;
    width: fit-content;
  }

  .module-grid {
    padding: 0 18px 18px;
  }

  .course-stats span {
    min-height: 82px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .mission-dialog {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
  }

  .mission-header {
    grid-template-columns: 44px 1fr;
    gap: 10px;
    padding: 9px 12px;
  }

  .mission-reward {
    display: none;
  }

  .mission-header-progress {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .mission-header-progress > span {
    min-width: 0;
    font-size: 12px;
  }

  .mission-content {
    padding: 26px 18px 40px;
  }

  .lesson-page h1,
  .challenge-page h1,
  .teachback-page h1,
  .complete-page h1 {
    font-size: 36px;
  }

  .ratio-visual {
    gap: 8px;
  }

  .ratio-dot {
    width: 28px;
    height: 28px;
  }

  .fraction-visual,
  .scale-visual,
  .percent-visual {
    flex-direction: column;
  }

  .visual-arrow {
    transform: rotate(90deg);
  }

  .lesson-actions,
  .challenge-actions,
  .teachback-actions {
    flex-direction: column-reverse;
  }

  .challenge-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .lesson-actions button,
  .challenge-actions button,
  .teachback-actions button {
    width: 100%;
  }

  .score-row {
    grid-template-columns: 1fr;
  }

  .add-profile-row > div {
    grid-template-columns: 1fr;
  }

  .simple-header .brand-text {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
