:is(.ts-trail-hero, .journey-page .journey-path-hero) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #e8f0df;
  color: #253f30;
  border: 0;
  border-radius: 1.5rem;
  min-height: 5.5rem;
}

:is(.ts-trail-hero, .journey-page .journey-path-hero) :is(h1, .path-stage-number) {
  color: inherit;
}

:is(.ts-trail-surface, .journey-page .dino-path) {
  margin-block-start: 0.9rem;
  border: 1px solid #d6ddc6;
  border-radius: 1.5rem;
  overflow: clip;
  background: linear-gradient(90deg, #f3f6e8, #fffdf5 23%, #fffdf5 77%, #f3f6e8);
}

:is(.ts-trail-grove, .journey-page .dino-path .egg-trail) {
  position: relative;
  isolation: isolate;
}

:is(.ts-trail-hero, .journey-page .journey-path-hero)::after,
:is(.ts-trail-grove, .journey-page .dino-path .egg-trail)::before,
:is(.ts-trail-grove, .journey-page .dino-path .egg-trail)::after {
  --ts-leaf-sage: #bdd7b5;
  --ts-leaf-lime: #d5e3ba;
  --ts-leaf-peach: #f1d9b5;
  --ts-leaf-lilac: #ded4e9;
  content: "";
  position: absolute;
  z-index: -1;
  width: 2.6em;
  height: 1.2em;
  border-radius: 90% 9% 88% 12%;
  background: var(--ts-leaf-sage);
  pointer-events: none;
  transform: skewY(-27deg);
}

:is(.ts-trail-hero, .journey-page .journey-path-hero)::after {
  top: 7%;
  right: 8%;
  font-size: clamp(.62rem, 2vw, 1.5rem);
  box-shadow: 1em 1.4em 0 -.08em var(--ts-leaf-lime),
    -.7em 2.25em 0 -.14em var(--ts-leaf-peach),
    2.15em .85em 0 -.17em var(--ts-leaf-lilac),
    -1.55em 3em 0 -.25em var(--ts-leaf-lime);
}

:is(.ts-trail-grove, .journey-page .dino-path .egg-trail)::before,
:is(.ts-trail-grove, .journey-page .dino-path .egg-trail)::after {
  font-size: clamp(.62rem, 2.35vw, 1.05rem);
  opacity: .75;
}

:is(.ts-trail-grove, .journey-page .dino-path .egg-trail)::before {
  left: 1.4%;
  top: 12%;
  box-shadow: 1.05em 1.22em 0 -.14em var(--ts-leaf-lime),
    .25em 2.33em 0 -.10em var(--ts-leaf-sage),
    .62em 9em 0 -.20em var(--ts-leaf-peach),
    -.42em 10.25em 0 -.26em var(--ts-leaf-lime),
    .25em 20.5em 0 -.14em var(--ts-leaf-lilac),
    1.1em 21.75em 0 -.27em var(--ts-leaf-sage);
}

:is(.ts-trail-grove, .journey-page .dino-path .egg-trail)::after {
  right: 1.8%;
  top: 25%;
  background: var(--ts-leaf-lime);
  transform: scaleX(-1) skewY(-22deg);
  box-shadow: 1.15em 1.17em 0 -.16em var(--ts-leaf-sage),
    .1em 2.38em 0 -.24em var(--ts-leaf-peach),
    -.3em 8.15em 0 -.14em var(--ts-leaf-lilac),
    .65em 9.38em 0 -.25em var(--ts-leaf-lime),
    .28em 18.05em 0 -.18em var(--ts-leaf-sage),
    1.22em 19.1em 0 -.28em var(--ts-leaf-peach);
}

:is(.ts-trail-grove, .journey-page .dino-path .egg-trail):nth-of-type(even)::before {
  top: 19%;
}

:is(.ts-trail-grove, .journey-page .dino-path .egg-trail):nth-of-type(even)::after {
  top: 9%;
}

.ts-trail-step {
  position: relative;
  isolation: isolate;
}

:is(.ts-trail-step, .journey-page .dino-path .path-stone)[aria-current="step"] {
  --ts-trail-ring-size: var(--ts-trail-active-diameter, clamp(5.1rem, 13vw, 6.35rem));
  --ts-trail-ring-line: #c99b40;
  --ts-trail-ring-accent: #865412;
  overflow: visible;
}

:is(.ts-trail-step, .journey-page .dino-path .path-stone)[aria-current="step"]::before,
:is(.ts-trail-step, .journey-page .dino-path .path-stone)[aria-current="step"]::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: auto;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: block;
  box-sizing: border-box;
  width: var(--ts-trail-ring-size);
  aspect-ratio: 1;
  height: auto;
  border: 3px solid var(--ts-trail-ring-line);
  border-radius: 50%;
  pointer-events: none;
}

:is(.ts-trail-step, .journey-page .dino-path .path-stone)[aria-current="step"]::before {
  background-color: #fff0b543;
  box-shadow: 0 0 0 4px #fff8db, 0 2px 12px #996d3152;
  z-index: -1;
}

:is(.ts-trail-step, .journey-page .dino-path .path-stone)[aria-current="step"]::after {
  border-color: var(--ts-trail-ring-accent) transparent transparent var(--ts-trail-ring-accent);
}

:is(.ts-trail-step, .journey-page .dino-path .trail-rock) .ts-trail-stone-art {
  --ts-stone-light: #f2f8e9;
  --ts-stone-base: #d7e6ca;
  --ts-stone-edge: #9bb39a;
  --ts-stone-angle: -7deg;
  --ts-stone-radius: 54% 49% 41% 54% / 56% 43% 55% 47%;
  --ts-stone-outline: shape(from 3% 62%, curve to 16% 20% with 1% 48% / 8% 25%, curve to 60% 8% with 28% 11% / 45% 9%, curve to 95% 41% with 75% 2% / 94% 15%, curve to 78% 85% with 99% 59% / 93% 76%, curve to 30% 94% with 64% 93% / 44% 97%, curve to 3% 62% with 16% 92% / 4% 81%, close);
  position: absolute;
  inset: 11% 0 9%;
  width: auto;
  height: auto;
  transform: rotate(var(--ts-stone-angle));
  filter: drop-shadow(0 3px 2px #38483f32);
  pointer-events: none;
}

:is(.ts-trail-step, .journey-page .dino-path .trail-rock) .ts-trail-stone-art--practice {
  --ts-stone-light: #fcf5e5;
  --ts-stone-base: #e8dcc2;
  --ts-stone-edge: #c3ae91;
  --ts-stone-angle: 7deg;
  --ts-stone-radius: 40% 53% 44% 49% / 58% 40% 51% 39%;
  --ts-stone-outline: shape(from 6% 66%, curve to 26% 18% with 5% 50% / 18% 27%, curve to 58% 6% with 36% 7% / 47% 3%, curve to 90% 33% with 73% 6% / 83% 19%, curve to 89% 77% with 101% 50% / 97% 66%, curve to 51% 94% with 79% 90% / 67% 96%, curve to 6% 66% with 31% 95% / 7% 93%, close);
  inset: 4% 10% 6%;
}

:is(.ts-trail-step, .journey-page .dino-path .trail-rock) .ts-trail-stone-art--quiz {
  --ts-stone-light: #f6eefb;
  --ts-stone-base: #e3d7ed;
  --ts-stone-edge: #b6a1ca;
  --ts-stone-angle: -4deg;
  --ts-stone-radius: 50% 39% 53% 42% / 47% 59% 39% 50%;
  --ts-stone-outline: shape(from 5% 60%, curve to 25% 16% with 2% 45% / 13% 22%, curve to 68% 8% with 39% 8% / 56% 5%, curve to 89% 28% with 81% 11% / 87% 16%, curve to 96% 67% with 93% 39% / 99% 49%, curve to 63% 91% with 91% 84% / 78% 91%, curve to 5% 60% with 43% 98% / 10% 90%, close);
  inset: 6% 3% 8%;
}

.ts-trail-stone-art::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--ts-stone-radius);
  clip-path: var(--ts-stone-outline);
  background:
    radial-gradient(ellipse 13% 7% at 34% 25%, #ffffff65, transparent 96%),
    radial-gradient(ellipse 5% 2% at 25% 58%, #65786731, transparent 99%),
    radial-gradient(ellipse 7% 4% at 68% 30%, #65786728, transparent 99%),
    radial-gradient(ellipse 3% 2% at 68% 68%, #ffffff85, transparent 99%),
    radial-gradient(ellipse at 31% 25%, var(--ts-stone-light), transparent 54%),
    linear-gradient(160deg, var(--ts-stone-base) 57%, var(--ts-stone-edge) 88%);
  box-shadow: inset 0 -3px 4px #38483f25;
}

:is(.ts-trail-step[aria-current="step"], .journey-page .dino-path .path-stone[aria-current="step"]) .ts-trail-stone-art {
  --ts-stone-light: #fffbdf;
  --ts-stone-base: #ffedb2;
  --ts-stone-edge: #cda762;
  filter: drop-shadow(0 3px 2px #8b642340);
}

:is(.ts-trail-step[aria-disabled="true"], .journey-page .dino-path .stone-locked) .ts-trail-stone-art {
  --ts-stone-light: #f6f8f2;
  --ts-stone-base: #e2e8de;
  --ts-stone-edge: #b6c1b7;
}

@media (prefers-reduced-motion: no-preference) {
  :is(.ts-trail-step, .journey-page .dino-path .path-stone)[aria-current="step"]::after {
    animation: ts-trail-ring-spin 2.5s linear infinite;
  }
}

@keyframes ts-trail-ring-spin {
  to { rotate: 360deg; }
}

.reward-strip .reward-total:first-child .reward-symbol::before,
.reward-strip .reward-total:first-child .reward-symbol::after {
  clip-path: none;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M17.9 2.2Q19.8 0 19.4 2.9L18.3 10.3Q18.1 11.8 19.7 11.8H26.3Q28.9 11.8 27.2 13.8L11.7 30.6Q10.3 32 10.7 29.8L12.9 19.6Q13.2 18 11.7 18H5.7Q3.2 18 4.7 16.2Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.reward-strip .reward-total:nth-child(2) .reward-symbol::after {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M14.9 2.8Q16 0 17.1 2.8Q19.7 12 29.2 14.9Q32 16 29.2 17.1Q19.7 20 17.1 29.2Q16 32 14.9 29.2Q12.3 20 2.8 17.1Q0 16 2.8 14.9Q12.3 12 14.9 2.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
