/* World identity for legacy game adventures (landmark trail, rank, palette).
 * Layout of the mission panel itself lives in cabinet-adventure.css. */
.legacy-nav {
  border-color: color-mix(in srgb, var(--legacy-accent) 45%, #375166);
  background: linear-gradient(
    100deg,
    color-mix(in srgb, var(--legacy-accent) 16%, #101f30),
    #101f30 60%
  );
}
.legacy-nav .mission-world-name {
  flex: 1 1 150px;
  min-width: 0;
  margin-right: 0;
  color: #f2f9ff;
}
.legacy-nav .mission-world-name small {
  color: #c4d6df;
}
.legacy-trail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin: 0 6px;
}
.legacy-trail-path {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.legacy-trail-path li {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  box-sizing: border-box;
  border: 2px solid #4b6577;
  border-radius: 50%;
  background: #0d2131;
  font-size: 14px;
  line-height: 1;
}
.legacy-trail-path li + li {
  margin-left: 12px;
}
.legacy-trail-path li + li::before {
  content: "";
  position: absolute;
  right: calc(100% + 2px);
  top: 50%;
  width: 12px;
  height: 2px;
  background: #4b6577;
}
.legacy-trail-path li.is-restored,
.legacy-trail-path li.is-current {
  border-color: var(--legacy-accent);
}
.legacy-trail-path li.is-restored {
  background: color-mix(in srgb, var(--legacy-accent) 34%, #0d2131);
}
.legacy-trail-path li.is-restored::before,
.legacy-trail-path li.is-current::before {
  background: var(--legacy-accent);
}
.legacy-trail-path li.is-current {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--legacy-accent) 30%, transparent);
}
.legacy-trail-path li.is-ahead > span:first-child {
  opacity: 0.5;
  filter: grayscale(1);
}
.legacy-trail-rank {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--legacy-accent);
  white-space: nowrap;
}
.legacy-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.legacy-reward-burst {
  position: absolute;
  right: -26px;
  top: 4px;
  font:
    800 16px/1 system-ui,
    sans-serif;
  color: var(--legacy-accent);
  text-shadow: 0 1px 3px #000a;
  pointer-events: none;
  animation: legacy-float 1.1s ease-out forwards;
}
@keyframes legacy-float {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.8);
  }
  25% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateY(-18px) scale(1.15);
  }
}
.legacy-step .is-restored:last-of-type,
.legacy-step .is-current {
  animation: legacy-pulse 0.9s ease-out;
}
.legacy-celebrate .legacy-trail-path li {
  animation: legacy-pulse 0.9s ease-out 3;
}
@keyframes legacy-pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--legacy-accent) 70%, transparent);
  }
  100% {
    box-shadow: 0 0 0 12px transparent;
  }
}
.legacy-adventure-host {
  border-color: color-mix(in srgb, var(--legacy-accent) 40%, #385368);
}
.legacy-adventure-host .mission-stock small,
.legacy-adventure-host .mission-kicker {
  white-space: nowrap;
}
.legacy-adventure-host .mission-kicker {
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 600px) {
  .legacy-trail {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    margin: 2px 0 4px;
  }
  .legacy-trail-path li {
    width: 30px;
    height: 30px;
  }
  .legacy-trail-path li + li {
    margin-left: 14px;
  }
  .legacy-trail-path li + li::before {
    width: 14px;
  }
  .legacy-trail-rank {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .legacy-reward-burst,
  .legacy-trail-path li {
    animation: none !important;
  }
}
.studio-reduced-motion .legacy-reward-burst,
.studio-reduced-motion .legacy-trail-path li {
  animation: none !important;
}
/* game-fx.js tools, docked under the arcade header by legacy-adventure.js. */
.legacy-tools-menu {
  width: min(100% - 24px, 1100px);
  box-sizing: border-box;
}
