.route-intro { max-width: 37ch; }
.lesson-route {
  --coin-width: clamp(2.9rem, 11vw, 4.05rem);
  --step-height: clamp(3.55rem, 9.1svh, 5.2rem);
  width: min(100%, 30rem);
  margin: clamp(1.05rem, 3.2svh, 2rem) auto 0;
}
.route-map { position: relative; }
.route-trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.route-lessons { list-style: none; padding: 0; margin: 0; }
.route-step { position: relative; height: var(--step-height); }
.route-step:nth-child(1) { --position: 43%; }
.route-step:nth-child(2) { --position: 31%; }
.route-step:nth-child(3) { --position: 56%; }
.route-step:nth-child(4) { --position: 67%; }
.route-coin {
  position: absolute;
  top: 50%;
  left: var(--position);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: var(--coin-width);
  height: calc(var(--coin-width) * .78);
  border-radius: 50%;
  color: #78838e;
  background: #e9edf0;
  box-shadow: 0 .30rem 0 #bac3cc;
}
.route-coin::before {
  content: "";
  position: absolute;
  inset: .28rem;
  border: 1.5px solid #d5dce2;
  border-radius: inherit;
}
.route-coin svg { width: 43%; height: auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.is-done .route-coin { color: #fff; background: #337bf0; box-shadow: 0 .3rem 0 #1958bb; }
.is-done .route-coin::before { border-color: #69a1f9; }
.is-done .route-coin svg { stroke-width: 3.3; }
.route-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: calc(var(--position) + var(--coin-width) / 2 + .75rem);
  right: 0;
  display: grid;
  gap: .22rem;
  line-height: 1.2;
}
.route-step:nth-child(n+3) .route-label {
  left: 0;
  right: calc(100% - var(--position) + var(--coin-width) / 2 + .75rem);
  text-align: right;
}
.route-label strong { font-weight: 570; font-size: clamp(.95rem, 2.7vw, 1.12rem); }
.route-label > span[lang] { font-size: .88rem; color: #53647b; }
.route-friend { width: 25%; position: absolute; top: 1.5%; left: 2%; }
.route-friend .route-cat { width: 100%; height: auto; }
.lesson-route figcaption { margin-top: .9rem; color: #566579; font-size: .86rem; line-height: 1.4; text-align: center; }
.route-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 360px) {
  .lesson-route { --coin-width: 2.75rem; }
  .route-label { left: calc(var(--position) + var(--coin-width) / 2 + .55rem); }
  .route-step:nth-child(n+3) .route-label { right: calc(100% - var(--position) + var(--coin-width) / 2 + .55rem); }
  .lesson-route figcaption { font-size: .81rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .route-arrived .route-coin svg { animation: token-settle .36s cubic-bezier(.2,.83,.3,1) both; }
  .route-arrived .is-done path { stroke-dasharray: 26; animation: draw-tick .29s ease-out both; }
  .route-arrived .route-step:nth-child(2) svg, .route-arrived .route-step:nth-child(2) path { animation-delay: .08s; }
  .route-arrived .route-step:nth-child(3) svg { animation-delay: .13s; }
  .route-arrived .route-step:nth-child(4) svg { animation-delay: .18s; }
  @keyframes token-settle {
    from { transform: translateY(3px) scale(.91); }
    65% { transform: translateY(-1px) scale(1.04); }
    to { transform: none; }
  }
  @keyframes draw-tick { from { stroke-dashoffset: 26; } to { stroke-dashoffset: 0; } }
}
