:root {
  --path-ink: #182238;
  --path-muted: #68738a;
  --path-line: #dfe4ee;
  --path-surface: #ffffff;
  --path-green: #48be77;
  --path-green-dark: #249957;
  --path-locked: #cbd1dd;
}

* {
  box-sizing: border-box;
}

.learning-path-shell [hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body.learning-path-body {
  margin: 0;
  min-width: 320px;
  color: var(--path-ink);
  background: #f8f9fc;
  font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
}

body.learning-path-body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: radial-gradient(circle, rgba(85, 97, 123, .1) 1px, transparent 1.2px);
  background-size: 27px 27px;
  mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
}

.learning-path-shell {
  min-height: 100vh;
  padding: 30px clamp(22px, 4vw, 70px) 160px;
}

.learning-path-back {
  position: fixed;
  top: 24px;
  left: clamp(22px, 4vw, 70px);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 15px 0 8px;
  color: #4b5870;
  text-decoration: none;
  background: rgba(255, 255, 255, .9);
  border: 1px solid #e0e5ed;
  border-radius: 999px;
  box-shadow: 0 9px 25px rgba(28, 38, 62, .07);
  backdrop-filter: blur(12px);
}

.learning-path-back span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--path-accent);
  background: #f0efff;
  border-radius: 50%;
}

.learning-path-back b {
  font-size: 13px;
}

.learning-path-token {
  position: fixed;
  top: 24px;
  left: clamp(130px, calc(4vw + 108px), 178px);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 12px 0 8px;
  color: #4b5870;
  border: 1px solid #e0e5ed;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 9px 25px rgba(28, 38, 62, .07);
  font: inherit;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.learning-path-token > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #f4a83e, #f46d4e);
  font-size: 13px;
}

.learning-path-token b,
.learning-path-token strong {
  font-size: 12px;
}

.learning-path-token strong {
  display: grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  color: #b34f2e;
  border-radius: 50%;
  background: #fff0e8;
}

body.token-modal-open {
  overflow: hidden;
}

.token-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  padding: 20px;
  place-items: center;
}

.token-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(19, 26, 43, .57);
  cursor: pointer;
  backdrop-filter: blur(7px);
}

.token-modal-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 32px 80px rgba(16, 24, 45, .27);
}

.token-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #626d82;
  border: 1px solid #e2e6ee;
  border-radius: 50%;
  background: #f8f9fc;
  font-size: 23px;
  cursor: pointer;
}

.token-modal-visual {
  position: relative;
  display: grid;
  width: 112px;
  height: 112px;
  margin: 3px auto 19px;
  place-items: center;
  color: #fff;
  border-radius: 36px;
  background: linear-gradient(145deg, #ffbe55, #f26750);
  box-shadow: 0 20px 40px rgba(237, 102, 68, .28);
  transform: rotate(-4deg);
}

.token-modal-visual span {
  font-size: 42px;
}

.token-modal-visual b {
  position: absolute;
  right: -10px;
  bottom: -8px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #c65431;
  border: 5px solid #fff;
  border-radius: 50%;
  background: #fff1dc;
  font-size: 17px;
}

.token-modal-kicker {
  margin: 0 0 7px;
  color: #e96749;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.token-modal-card h2 {
  margin: 0;
  color: #172238;
  font-size: 31px;
}

.token-modal-card > p:not(.token-modal-kicker) {
  margin: 10px 0 16px;
  color: #69758b;
  line-height: 1.6;
}

.token-modal-reset {
  padding: 11px 13px;
  color: #7b664a;
  border-radius: 13px;
  background: #fff7e9;
  font-size: 11px;
  line-height: 1.5;
}

.token-upgrade-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 18px;
  padding: 0 18px;
  color: #fff;
  text-decoration: none;
  border-radius: 15px;
  background: linear-gradient(135deg, #5c55ed, #7134dd);
  box-shadow: 0 14px 28px rgba(91, 72, 224, .25);
  font-size: 13px;
  font-weight: 900;
}

.learning-path-layout {
  display: block;
  width: min(1040px, 100%);
  margin: 64px auto 0;
}

.learning-course-card {
  position: relative;
  top: auto;
  width: min(440px, 100%);
  margin: 0 auto 92px;
  padding: 24px 25px 27px;
  background: var(--path-surface);
  border: 1px solid #dde3ec;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(36, 48, 78, .09);
}

.learning-course-card::after {
  position: absolute;
  inset: 7px;
  z-index: -1;
  content: "";
  border: 1px solid color-mix(in srgb, var(--path-accent) 15%, transparent);
  border-radius: 22px;
}

.learning-course-illustration {
  position: relative;
  height: 198px;
  overflow: hidden;
  margin: -5px -5px 23px;
  background: #f6f7fb;
  border-radius: 22px;
}

.learning-course-illustration::before,
.learning-course-illustration::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  filter: blur(1px);
}

.learning-course-illustration::before {
  width: 104px;
  height: 104px;
  top: -42px;
  left: -25px;
  background: color-mix(in srgb, var(--path-accent) 17%, white);
}

.learning-course-illustration::after {
  width: 72px;
  height: 72px;
  right: -14px;
  bottom: -14px;
  background: #ffe9ba;
}

.illustration-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid color-mix(in srgb, var(--path-accent) 26%, white);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
}

.illustration-orbit--one {
  width: 225px;
  height: 96px;
}

.illustration-orbit--two {
  width: 165px;
  height: 150px;
  transform: translate(-50%, -50%) rotate(43deg);
}

.illustration-book {
  position: absolute;
  top: 42px;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 126px;
  height: 105px;
  place-items: center;
  color: #fff;
  background: var(--path-accent);
  border: 7px solid color-mix(in srgb, var(--path-accent) 82%, #fff);
  border-radius: 18px 25px 25px 18px;
  box-shadow: 0 18px 25px color-mix(in srgb, var(--path-accent) 25%, transparent), inset -8px 0 rgba(0, 0, 0, .08);
  transform: translateX(-50%) rotate(-5deg);
}

.illustration-book::before {
  position: absolute;
  left: 12px;
  width: 4px;
  height: 74%;
  content: "";
  background: rgba(255, 255, 255, .35);
  border-radius: 4px;
}

.illustration-book b {
  font-size: 28px;
  letter-spacing: -.04em;
}

.illustration-star {
  position: absolute;
  z-index: 3;
  color: #f1b94d;
  text-shadow: 0 6px 12px rgba(224, 158, 37, .18);
}

.illustration-star--one {
  top: 31px;
  right: 38px;
  font-size: 24px;
}

.illustration-star--two {
  bottom: 35px;
  left: 43px;
  color: #ee7b96;
  font-size: 17px;
}

.illustration-shadow {
  position: absolute;
  bottom: 25px;
  left: 50%;
  width: 135px;
  height: 17px;
  background: rgba(35, 43, 66, .12);
  border-radius: 50%;
  filter: blur(7px);
  transform: translateX(-50%);
}

.learning-course-kicker,
.learning-journey-heading p {
  margin: 0 0 7px;
  color: var(--path-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.learning-course-card h1 {
  margin: 0;
  color: #192239;
  font-size: clamp(26px, 3vw, 35px);
  line-height: 1.17;
  letter-spacing: -.035em;
}

.learning-course-description {
  margin: 13px 0 22px;
  color: #627087;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.75;
}

.learning-course-stats {
  display: grid;
  gap: 11px;
  margin: 0;
}

.learning-course-stats div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  background: #f7f8fb;
  border: 1px solid #e9ecf2;
  border-radius: 13px;
}

.learning-course-stats dt {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #647086;
  font-size: 13px;
  font-weight: 600;
}

.learning-course-stats dt span {
  color: var(--path-accent);
}

.learning-course-stats dd {
  margin: 0;
  color: #202b42;
  font-size: 16px;
  font-weight: 800;
}

.learning-course-progress {
  margin-top: 22px;
}

.learning-course-progress > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 9px;
}

.learning-course-progress b {
  color: var(--path-accent);
  font-size: 18px;
}

.learning-course-progress small {
  color: #7b8495;
  font-size: 11px;
  font-weight: 700;
}

.learning-course-progress > div {
  height: 8px;
  overflow: hidden;
  background: #e9ecf2;
  border-radius: 999px;
}

.learning-course-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--path-accent);
  border-radius: inherit;
  transition: width .6s cubic-bezier(.2, .8, .2, 1);
}

.learning-journey {
  --path-zigzag-stop-shift: clamp(34px, 5vw, 60px);
  --path-zigzag-heading-shift: clamp(18px, 3vw, 42px);
  position: relative;
  width: min(780px, 100%);
  min-width: 0;
  margin: 0 auto;
  padding-bottom: 120px;
}

.learning-journey-heading {
  max-width: 520px;
  margin: 0 auto 35px;
  text-align: center;
}

.learning-journey-heading h2 {
  margin: 0;
  color: #192239;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.16;
  letter-spacing: -.045em;
}

.learning-journey-heading > span {
  display: block;
  margin-top: 10px;
  color: #758095;
  font-size: 14px;
  line-height: 1.6;
}

.learning-level {
  position: relative;
  min-height: 610px;
  padding-top: 84px;
}

.learning-module-stage {
  --path-accent: var(--module-stage-accent);
  scroll-margin-top: 24px;
  padding-bottom: 90px;
}

.learning-level-heading {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(490px, 85%);
  min-height: 84px;
  align-content: center;
  margin: 0 auto 62px;
  padding: 16px 30px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #dde3ec;
  border-radius: 23px;
  box-shadow: 0 14px 34px rgba(35, 46, 73, .07);
  text-align: center;
  transition: border-color .3s, box-shadow .3s, opacity .3s, transform .3s;
}

.learning-module-stage--left .learning-level-heading {
  transform: translateX(calc(-1 * var(--path-zigzag-heading-shift)));
}

.learning-module-stage--right .learning-level-heading {
  transform: translateX(var(--path-zigzag-heading-shift));
}

.learning-level-heading small {
  color: #929aaa;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.learning-level-heading strong {
  margin-top: 5px;
  color: #38445b;
  font-size: 17px;
  line-height: 1.35;
}

.learning-level-heading > span {
  display: block;
  max-width: 410px;
  margin: 6px auto 0;
  color: #7a8497;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.learning-level.is-active .learning-level-heading {
  border-color: color-mix(in srgb, var(--path-accent) 62%, white);
  box-shadow: 0 14px 40px color-mix(in srgb, var(--path-accent) 14%, transparent);
}

.learning-level.is-in-view .learning-level-heading {
  border-color: color-mix(in srgb, var(--path-accent) 44%, white);
  box-shadow: 0 14px 38px color-mix(in srgb, var(--path-accent) 11%, transparent);
}

.learning-level.is-active .learning-level-heading small,
.learning-level.is-active .learning-level-heading strong {
  color: var(--path-accent);
}

.learning-level.is-future .learning-level-heading {
  opacity: .68;
}

.learning-level.is-unavailable .learning-level-heading {
  opacity: .58;
  border-style: dashed;
}

.learning-stop {
  --learning-stop-x: 0px;
  position: relative;
  z-index: 2;
  display: flex;
  width: 370px;
  min-height: 150px;
  align-items: center;
  gap: 24px;
  margin-right: auto;
  margin-left: auto;
  transform: translateX(var(--learning-stop-x));
}

.learning-stop--left {
  --learning-stop-x: calc(-1 * var(--path-zigzag-stop-shift));
}

.learning-stop--right {
  --learning-stop-x: var(--path-zigzag-stop-shift);
  flex-direction: row-reverse;
  text-align: right;
}

.learning-stop--center {
  margin: 0 auto;
}

.learning-stop--review {
  width: 335px;
  margin-top: 70px;
  transform: translateX(var(--learning-stop-x)) scale(.88);
  transform-origin: center;
}

.lesson-node {
  position: relative;
  flex: 0 0 116px;
  width: 116px;
  height: 116px;
  padding: 0;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 50%;
  appearance: none;
  transition: transform .25s cubic-bezier(.2, .85, .3, 1.25), filter .25s;
}

.lesson-node:hover,
.lesson-node:focus-visible {
  transform: translateY(-6px);
}

.lesson-node:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--path-accent) 36%, white);
  outline-offset: 5px;
}

.lesson-node-platform {
  position: absolute;
  inset: 13px;
  display: grid;
  place-items: center;
  color: #8c95a5;
  background: #dde1e9;
  border: 8px solid #eef0f4;
  border-radius: 50%;
  box-shadow: 0 10px 0 #bcc2ce, 0 18px 25px rgba(44, 54, 76, .13), inset 0 5px 8px rgba(255, 255, 255, .65);
  transition: color .35s, background .35s, border-color .35s, box-shadow .35s;
}

.lesson-node-platform::before,
.lesson-node-platform::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.lesson-node-platform::before {
  inset: -14px;
  border: 3px solid transparent;
}

.lesson-node-platform::after {
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, .55);
}

.lesson-node-platform b {
  position: relative;
  z-index: 2;
  font-size: 20px;
  font-weight: 900;
}

.lesson-node-marker {
  position: absolute;
  top: -34px;
  left: 50%;
  z-index: 7;
  display: none;
  width: 53px;
  height: 61px;
  place-items: center;
  color: #fff;
  background: var(--path-green);
  border: 5px solid #fff;
  border-radius: 52% 52% 52% 8%;
  box-shadow: 0 12px 25px rgba(36, 153, 87, .28);
  transform: translateX(-50%) rotate(-45deg);
}

.lesson-node-marker i {
  font-size: 18px;
  font-style: normal;
  transform: rotate(45deg);
}

.lesson-node-pulse {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: none;
  border: 2px solid color-mix(in srgb, var(--path-accent) 55%, white);
  border-radius: 50%;
}

.lesson-node.is-current .lesson-node-platform {
  color: #fff;
  background: var(--path-accent);
  border-color: color-mix(in srgb, var(--path-accent) 42%, white);
  box-shadow: 0 10px 0 color-mix(in srgb, var(--path-accent) 76%, #17213c), 0 20px 34px color-mix(in srgb, var(--path-accent) 25%, transparent), inset 0 5px 8px rgba(255, 255, 255, .25);
}

.lesson-node.is-current .lesson-node-platform::before {
  border-color: color-mix(in srgb, var(--path-accent) 28%, transparent);
}

.lesson-node.is-current .lesson-node-marker,
.lesson-node.is-current .lesson-node-pulse {
  display: grid;
}

.lesson-node.is-current .lesson-node-pulse {
  animation: pathPulse 2.6s ease-out infinite;
}

.lesson-node.is-current .lesson-node-marker {
  animation: markerFloat 2.2s ease-in-out infinite;
}

.lesson-node.is-complete .lesson-node-platform {
  color: #fff;
  background: var(--path-accent);
  border-color: color-mix(in srgb, var(--path-accent) 45%, white);
  box-shadow: 0 9px 0 color-mix(in srgb, var(--path-accent) 74%, #17213c), 0 17px 28px color-mix(in srgb, var(--path-accent) 18%, transparent), inset 0 4px 7px rgba(255, 255, 255, .2);
}

.lesson-node.is-complete .lesson-node-platform b {
  font-size: 0;
}

.lesson-node.is-complete .lesson-node-platform b::after {
  content: "✓";
  font-size: 28px;
}

.lesson-node.is-locked {
  cursor: not-allowed;
  filter: saturate(.35);
}

.lesson-node.is-locked:hover {
  transform: translateY(-2px);
}

.lesson-node.is-selected .lesson-node-platform::before {
  border-color: color-mix(in srgb, var(--path-accent) 55%, white);
}

.lesson-node--review .lesson-node-platform {
  inset: 17px;
  border-radius: 28% 35% 30% 38%;
  transform: rotate(12deg);
}

.lesson-node--review .lesson-node-platform b {
  transform: rotate(-12deg);
}

.lesson-node-copy {
  display: grid;
  min-width: 0;
}

.lesson-node-copy small {
  margin-bottom: 4px;
  color: var(--path-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lesson-node-copy strong {
  color: #2c374d;
  font-size: 17px;
  line-height: 1.35;
}

.lesson-node-copy span {
  margin-top: 5px;
  color: #929aaa;
  font-size: 12px;
  font-weight: 600;
}

.learning-stop:has(.lesson-node.is-locked) .lesson-node-copy {
  opacity: .62;
}

/* Học phần 03 trở đi chỉ lên màu sau khi hoàn thành toàn bộ Level. */
.lesson-node.is-monochrome-progress .lesson-node-platform {
  color: #8c95a5;
  background: #dde1e9;
  border-color: #eef0f4;
  box-shadow: 0 10px 0 #bcc2ce, 0 18px 25px rgba(44, 54, 76, .13), inset 0 5px 8px rgba(255, 255, 255, .65);
}

.lesson-node.is-monochrome-progress .lesson-node-platform::before {
  border-color: transparent;
}

.lesson-node.is-monochrome-progress .lesson-node-marker,
.lesson-node.is-monochrome-progress .lesson-node-pulse {
  display: none;
  animation: none;
}

.learning-module-stage.is-monochrome-progress > .learning-level-heading {
  border-color: #dfe3eb;
  box-shadow: 0 12px 30px rgba(44, 54, 76, .07);
}

.learning-module-stage.is-monochrome-progress > .learning-level-heading small,
.learning-module-stage.is-monochrome-progress > .learning-level-heading strong,
.learning-module-stage.is-monochrome-progress > .learning-stop:not(.learning-stop--review) .lesson-node-copy small {
  color: #7f8999;
}

.learning-module-stage.is-monochrome-progress > .learning-stop:not(.learning-stop--review) .lesson-node-copy {
  opacity: .68;
}

.level-milestone {
  position: absolute;
  right: 4%;
  bottom: -13px;
  z-index: 3;
  width: 90px;
  height: 100px;
  animation: milestoneFloat 3.4s ease-in-out infinite;
}

.learning-module-stage--left .level-milestone {
  right: auto;
  left: 4%;
}

.level-milestone span {
  position: absolute;
  bottom: 10px;
  left: 18px;
  width: 56px;
  height: 18px;
  background: rgba(51, 61, 84, .12);
  border-radius: 50%;
  filter: blur(5px);
}

.level-milestone i {
  position: absolute;
  bottom: 25px;
  left: 39px;
  width: 9px;
  height: 50px;
  background: #536179;
  border-radius: 8px;
  transform: rotate(7deg);
}

.level-milestone b {
  position: absolute;
  top: 6px;
  left: 21px;
  display: grid;
  width: 51px;
  height: 50px;
  place-items: center;
  color: #fff;
  background: #f1aa43;
  border: 5px solid #fff;
  border-radius: 18px 18px 18px 5px;
  box-shadow: 0 9px 18px rgba(205, 132, 27, .22);
  transform: rotate(8deg);
}

.learning-action-panel {
  position: fixed;
  right: 50%;
  bottom: 24px;
  z-index: 80;
  width: min(470px, calc(100vw - 34px));
  padding: 24px 25px 22px;
  background: rgba(255, 255, 255, .97);
  border: 1px solid #dce2eb;
  border-radius: 25px;
  box-shadow: 0 24px 70px rgba(29, 39, 64, .2), 0 0 55px color-mix(in srgb, var(--path-accent) 11%, transparent);
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 28px) scale(.97);
  transition: opacity .25s, transform .35s cubic-bezier(.2, .8, .2, 1.1);
}

.learning-action-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(50%, 0) scale(1);
}

.learning-action-close {
  position: absolute;
  top: 12px;
  right: 13px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #7c8698;
  cursor: pointer;
  background: #f4f5f8;
  border: 0;
  border-radius: 50%;
  font-size: 20px;
}

.learning-action-panel > p {
  margin: 0 0 5px;
  color: var(--path-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.learning-action-panel h2 {
  margin: 0;
  padding-right: 32px;
  color: #202b42;
  font-size: 22px;
  line-height: 1.3;
}

.learning-action-panel > span {
  display: block;
  margin: 8px 0 17px;
  color: #737e91;
  font-size: 13px;
  line-height: 1.5;
}

.learning-action-buttons {
  display: flex;
  gap: 10px;
}

.learning-primary-action {
  position: relative;
  display: flex;
  min-height: 52px;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: var(--path-accent);
  border-radius: 15px;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--path-accent) 27%, transparent);
  font-size: 14px;
  font-weight: 800;
  transition: transform .2s, filter .2s;
}

.learning-primary-action::before {
  position: absolute;
  top: -50%;
  left: -30%;
  width: 25%;
  height: 200%;
  content: "";
  background: rgba(255, 255, 255, .28);
  transform: rotate(22deg);
  transition: left .55s ease;
}

.learning-primary-action:hover::before {
  left: 110%;
}

.learning-primary-action:active,
.learning-restart-action:active {
  transform: translateY(2px) scale(.98);
}

.learning-primary-action.is-disabled {
  color: #8790a0;
  cursor: not-allowed;
  background: #e2e5eb;
  box-shadow: none;
}

.learning-restart-action {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--path-accent);
  cursor: pointer;
  background: #f4f2ff;
  border: 1px solid color-mix(in srgb, var(--path-accent) 23%, white);
  border-radius: 15px;
  font-size: 23px;
  font-weight: 800;
}

.learning-action-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(36, 44, 63, .08);
}

.learning-return-button {
  position: sticky;
  bottom: 32px;
  z-index: 20;
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  margin: 50px 8px 0 auto;
  color: var(--path-accent);
  cursor: pointer;
  background: #fff;
  border: 1px solid #dce2eb;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(35, 46, 72, .13);
}

.learning-path-notice {
  position: fixed;
  top: 28px;
  left: 50%;
  z-index: 100;
  max-width: calc(100vw - 40px);
  margin: 0;
  padding: 12px 18px;
  color: #fff;
  background: #29344a;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(25, 34, 55, .2);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -15px);
  transition: opacity .2s, transform .25s;
}

.learning-path-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.learning-path-empty {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
  text-align: center;
}

.learning-path-empty div {
  max-width: 480px;
  padding: 40px;
  background: #fff;
  border: 1px solid #e0e5ed;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(35, 46, 73, .1);
}

.learning-path-empty div > span {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin: 0 auto;
  color: #fff;
  background: #6657df;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 900;
}

.learning-path-empty a {
  display: inline-flex;
  margin-top: 10px;
  padding: 12px 18px;
  color: #fff;
  text-decoration: none;
  background: #6657df;
  border-radius: 12px;
  font-weight: 800;
}

@keyframes pathPulse {
  0% { opacity: .8; transform: scale(.86); }
  80%, 100% { opacity: 0; transform: scale(1.45); }
}

@keyframes markerFloat {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-45deg); }
  50% { transform: translateX(-50%) translateY(-7px) rotate(-45deg); }
}

@keyframes milestoneFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}

@media (max-width: 1020px) {
  .learning-course-card {
    padding: 19px;
  }

  .learning-course-illustration {
    height: 160px;
  }

  .illustration-book {
    top: 30px;
    transform: translateX(-50%) rotate(-5deg) scale(.86);
  }

  .learning-stop {
    width: 330px;
  }
}

@media (max-width: 780px) {
  .learning-journey {
    --path-zigzag-stop-shift: 14px;
    --path-zigzag-heading-shift: 12px;
  }

  .learning-path-shell {
    padding: 78px 14px 140px;
  }

  .learning-path-back {
    top: 16px;
    left: 14px;
  }

  .learning-path-token {
    top: 16px;
    left: 112px;
  }

  .learning-path-layout {
    margin-top: 0;
  }

  .learning-course-card {
    width: min(440px, 100%);
    margin-bottom: 70px;
  }

  .learning-course-illustration {
    height: 178px;
  }

  .learning-journey-heading h2 {
    font-size: 34px;
  }

  .learning-level {
    min-height: 590px;
  }

  .learning-level-heading {
    width: min(460px, 92%);
  }

  .learning-stop,
  .learning-stop--review {
    width: min(330px, 88vw);
  }

  .level-milestone {
    right: 0;
  }

  .learning-module-stage--left .level-milestone {
    right: auto;
    left: 0;
  }

  .learning-action-backdrop[hidden] {
    display: none;
  }
}

@media (max-width: 480px) {
  .learning-journey {
    --path-zigzag-stop-shift: 8px;
    --path-zigzag-heading-shift: 8px;
  }

  .learning-path-back b {
    display: none;
  }

  .learning-path-back {
    padding-right: 8px;
  }

  .learning-path-token {
    left: 66px;
  }

  .learning-path-token b {
    display: none;
  }

  .learning-level {
    min-height: 570px;
    padding-top: 58px;
  }

  .learning-level-heading {
    min-height: 76px;
    margin-bottom: 48px;
    padding: 13px 18px;
  }

  .learning-stop {
    gap: 15px;
  }

  .lesson-node {
    flex-basis: 100px;
    width: 100px;
    height: 100px;
  }

  .lesson-node-copy strong {
    font-size: 15px;
  }

  .learning-action-panel {
    bottom: 9px;
    padding: 21px 20px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
