.route-junction {
  --branch-axis: horizontal;
  position: relative;
  isolation: isolate;
}
.junction-origin {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c8d1bd;
  font-size: .77rem;
  line-height: 1.3;
}
.junction-origin i {
  z-index: 1;
  width: 9px;
  height: 9px;
  margin-left: 8px;
  border: 1px solid #e8d4a4;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #baaf7830;
  background: #29362b;
}
.junction-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: -1;
  fill: none;
}
.junction-wires path { vector-effect: non-scaling-stroke; stroke-linecap: round; }
.junction-base { stroke: var(--wire); stroke-width: 1; opacity: .46; }
.junction-current { opacity: 0; stroke: var(--wire); stroke-width: 2; stroke-dasharray: 4 96; }
.junction-wires circle { fill: var(--wire); }
.junction-wires .wire-selected .junction-base { stroke-width: 1.8; opacity: .95; }
.route-junction > .passage-grid { margin-top: 29px; }
.desk-doors h2 { margin-bottom: 12px; }
.world-transfer { position: fixed; pointer-events: none; z-index: 15; object-fit: cover; border: 1px solid #ddbf916b; }
.atlas-choices { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.atlas-choices [aria-pressed="true"] { border-color: #deb787; color: #fae3c2; background: #40372a; }
.atlas-trail { list-style: none; counter-reset: stop; display: flex; flex-wrap: wrap; gap: 4px 9px; margin: 12px 0; padding: 0; }
.atlas-trail li { counter-increment: stop; }
.atlas-trail button { min-height: 35px; display: inline-flex; align-items: center; gap: 5px; color: #e6ca9f; font-size: .8rem; }
.atlas-trail button::before { content: counter(stop, decimal-leading-zero); color: #b6bca9; font-size: .68rem; font-variant-numeric: tabular-nums; }
.atlas-graph.tracing .atlas-lines > path:not(.visitor-route,.visitor-current) { opacity: .28; }
.atlas-graph.tracing .atlas-node:not(.on-trail):not([aria-pressed="true"]) img { opacity: .63; }
.atlas-graph .atlas-lines .visitor-route { fill: none; stroke: #efbc81; stroke-width: 2.7; opacity: .88; }
.atlas-graph .atlas-lines .visitor-current { fill: none; stroke: #ffefd4; stroke-width: 3.6; stroke-linecap: round; stroke-dasharray: 4 96; }
.atlas-node.on-trail img { border-color: #eec49b; }
@keyframes branch-current { from { stroke-dashoffset: 4; } to { stroke-dashoffset: -96; } }
@media (prefers-reduced-motion: no-preference) {
  .junction-current { opacity: .95; animation: branch-current 4.8s linear var(--lag,0s) infinite; animation-play-state: paused; }
  body:not(.motion-paused):not(.page-hidden):not(.film-suspended):not(.film-inspecting) .junction-visible .junction-current { animation-play-state: running; }
  .atlas-graph .visitor-current { animation: branch-current 6.5s linear infinite; }
  body.motion-paused .visitor-current, body.page-hidden .visitor-current { animation-play-state: paused; }
}
@media (max-width: 800px) {
  .route-junction { --branch-axis: vertical; }
  .route-junction > .passage-grid { grid-template-columns: 1fr; padding-left: 34px; margin-top: 10px; }
}
@media (max-width: 420px) {
  .route-junction > .passage-grid { padding-left: 27px; }
}
