.hf-path-map {
  --hf-path-accent: var(--hf-ember-soft);
  --hf-path-done: var(--hf-patina);
  --hf-path-locked: #5b6475;
  position: relative;
  background: transparent;
  border: 0;
  overflow: visible;
}

.hf-path-map__board {
  position: relative;
  width: 100%;
  overflow: visible;
}

.hf-path-map__trails {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hf-path-map__stage {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hf-path-map__node {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 7.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transform: translate(-50%, 0);
}

.hf-path-map__node:hover:not(:disabled) .hf-path-map__icon,
.hf-path-map__node:focus-visible:not(:disabled) .hf-path-map__icon {
  outline: none;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px var(--hf-ice),
    0 10px 22px rgba(0, 0, 0, 0.45);
}

.hf-path-map__node:disabled {
  cursor: default;
  pointer-events: none;
}

.hf-path-map__me {
  height: 1.85rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.hf-path-map__me:empty {
  visibility: hidden;
}

.hf-path-map__me .hf-ui-avatar__photo {
  border-radius: 9999px;
  box-shadow:
    0 0 0 2px var(--hf-ember),
    0 0 0 4px rgba(232, 87, 44, 0.16);
}

.hf-path-map__icon {
  position: relative;
  z-index: 2;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 0.95rem;
  border: 1px solid transparent;
  overflow: hidden;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}

.hf-path-map__node.is-current .hf-path-map__icon,
.hf-path-map__node.is-done .hf-path-map__icon {
  border-color: rgba(255, 255, 255, 0.14);
  background: #0b0d13;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.hf-path-map__icon-inner svg rect[rx="24"] {
  display: none;
}

.hf-path-map__icon-inner,
.hf-path-map__icon > div {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
  overflow: hidden;
  background: transparent;
}

.hf-path-map__icon svg,
.hf-path-map__icon-inner svg,
.hf-path-map__icon > div svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hf-path-map__node.is-done .hf-path-map__icon {
  border-color: rgba(88, 184, 160, 0.5);
  color: var(--hf-patina);
}

.hf-path-map__node.is-current .hf-path-map__icon {
  border-color: var(--hf-ember);
  color: var(--hf-ember-soft);
  animation: hf-path-pulse 2.4s ease-out infinite;
}

@keyframes hf-path-pulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(232, 87, 44, 0.45),
      0 0 18px rgba(232, 87, 44, 0.3),
      0 8px 18px rgba(0, 0, 0, 0.4);
  }
  70%,
  100% {
    box-shadow:
      0 0 0 10px rgba(232, 87, 44, 0),
      0 0 18px rgba(232, 87, 44, 0.3),
      0 8px 18px rgba(0, 0, 0, 0.4);
  }
}

.hf-path-map__node.is-locked .hf-path-map__icon {
  filter: grayscale(calc(0.3 + var(--hf-path-fade, 0) * 0.7)) brightness(calc(0.88 - var(--hf-path-fade, 0) * 0.5)) blur(calc(var(--hf-path-fade, 0) * 2.5px));
  opacity: calc(1 - var(--hf-path-fade, 0) * 0.3);
}

.hf-path-map__node.is-locked .hf-path-map__label {
  opacity: calc(1 - var(--hf-path-fade, 0) * 0.55);
}

.hf-path-map__node.is-locked .hf-path-map__label-title {
  filter: blur(calc(var(--hf-path-fade, 0) * 1.5px));
}

.hf-path-map__medal {
  position: relative;
  display: block;
}

.hf-path-map__badge {
  position: absolute;
  z-index: 3;
  right: -0.35rem;
  top: -0.35rem;
  display: none;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  border: 2px solid #0b0d13;
  background: var(--hf-patina);
}

.hf-path-map__badge::after {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.14rem;
  width: 0.24rem;
  height: 0.44rem;
  border: solid #0b0d13;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.hf-path-map__node.is-done .hf-path-map__badge {
  display: block;
}

.hf-path-map__node.is-final .hf-path-map__medal::before {
  content: "";
  position: absolute;
  inset: -0.3rem;
  border: 1px solid var(--hf-straw);
  border-radius: 1.15rem;
  opacity: 0.55;
}

.hf-path-map__node.is-final.is-locked .hf-path-map__medal::before {
  opacity: calc(0.55 - var(--hf-path-fade, 0) * 0.3);
}

.hf-path-map__label-title {
  text-shadow: 0 1px 6px #0b0d13, 0 0 2px #0b0d13;
}

.hf-path-map__node.is-on:not(.is-locked):not(.is-current) .hf-path-map__icon {
  border-color: var(--hf-ice);
}

.hf-path-map__groove,
.hf-path-map__wire,
.hf-path-map__glow,
.hf-path-map__lit,
.hf-path-map__sparks {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hf-path-map__groove {
  stroke: rgba(8, 9, 13, 0.85);
  stroke-width: 12;
}

.hf-path-map__wire {
  stroke: var(--hf-hairline-strong);
  stroke-width: 2;
  stroke-dasharray: 2 8;
}

.hf-path-map__glow {
  stroke-width: 9;
  opacity: 0.55;
}

.hf-path-map__lit {
  stroke-width: 3.5;
}

.hf-path-map__stop-a {
  stop-color: var(--hf-ember);
}

.hf-path-map__stop-b {
  stop-color: var(--hf-straw);
}

.hf-path-map__sparks {
  stroke: #fff4dc;
  stroke-width: 2.5;
  stroke-dasharray: 0.5 24;
  opacity: 0.9;
  animation: hf-path-flow 1.6s linear infinite;
}

@keyframes hf-path-flow {
  to {
    stroke-dashoffset: -49;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hf-path-map__sparks,
  .hf-path-map__node.is-current .hf-path-map__icon {
    animation: none;
  }
}

.hf-path-map__step-no {
  margin-right: 0.35rem;
  padding: 0 0.3rem;
  border: 1px solid var(--hf-hairline-strong);
  border-radius: 0.3rem;
  color: var(--hf-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.hf-path-map__node.is-current .hf-path-map__step-no {
  border-color: var(--hf-ember);
  color: var(--hf-ember-soft);
}

.hf-path-map__node.is-done .hf-path-map__step-no {
  border-color: rgba(88, 184, 160, 0.5);
  color: var(--hf-patina);
}

.hf-path-map__label {
  width: 100%;
  text-align: center;
  min-height: 2.4rem;
}

.hf-path-map__label-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #ece7dc;
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1.25;
}

.hf-path-map__label-meta {
  display: block;
  margin-top: 0.15rem;
  color: #8b95a8;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hf-path-map__node.is-done .hf-path-map__label-meta {
  color: var(--hf-patina);
}

.hf-path-map__partner {
  display: block;
  margin-top: 0.15rem;
  color: var(--hf-straw);
  font-size: 0.625rem;
}

.hf-path-map__node.is-current .hf-path-map__label-meta {
  color: var(--hf-ember-soft);
}

.hf-path-map__node.is-locked .hf-path-map__label-title,
.hf-path-map__node.is-locked .hf-path-map__label-meta {
  color: var(--hf-path-locked);
}

.hf-path-map__panel {
  position: absolute;
  z-index: 5;
  width: 15.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  background: #0d0d14;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.hf-path-map__kicker {
  margin: 0;
  color: var(--hf-path-accent);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hf-path-map__panel h3 {
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}

.hf-path-map__panel p {
  margin: 0;
  color: #8b95a8;
  font-size: 0.74rem;
  line-height: 1.4;
}

.hf-path-map__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.hf-path-map__progress {
  height: 0.28rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.hf-path-map__progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--hf-path-accent);
  transition: width 0.35s ease;
}

.hf-path-map__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.hf-path-mini {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 100%;
  overflow: hidden;
}

.hf-path-mini__node {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(155, 157, 168, 0.35);
  background: rgba(15, 15, 28, 0.9);
}

.hf-path-mini__node.is-done {
  border-color: rgba(88, 184, 160, 0.65);
  background: #58b8a0;
}

.hf-path-mini__node.is-current {
  border-color: var(--hf-ember);
  background: var(--hf-ember-soft);
  box-shadow: 0 0 8px rgba(232, 87, 44, 0.45);
}

.hf-path-mini__node.is-locked {
  opacity: 0.55;
}

.hf-path-mini__link {
  flex: 1 1 0.75rem;
  min-width: 0.55rem;
  max-width: 1.4rem;
  height: 2px;
  border-radius: 999px;
  background: rgba(155, 157, 168, 0.22);
}

.hf-path-mini__link.is-lit {
  background: var(--hf-ember-soft);
}

@media (max-width: 900px) {
  .hf-path-map__panel {
    position: static;
    width: 100%;
    margin-top: 1rem;
  }
}
