.demo-frame {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #0a0f15;
  overflow: hidden;
}
.demo-topline {
  min-height: 57px;
  padding: 17px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.demo-topline .eyebrow {
  margin: 0;
  font-size: 0.57rem;
}
.demo-label {
  font-size: 0.6rem;
  color: var(--faint);
}
.demo-bottomline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 25px;
  gap: 20px;
  border-top: 1px solid var(--line);
  min-height: 50px;
}
.demo-bottomline p {
  font-size: 0.63rem;
  margin: 0;
}
.demo-bottomline p:last-child {
  color: var(--accent);
  text-align: right;
}
.demo-disclaimer {
  padding: 17px 25px;
  margin: 0;
  font-size: 0.67rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  line-height: 1.75;
}
.graph-fallback {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  align-items: center;
  font: 0.8rem var(--mono);
}
.graph-fallback > span + span::before {
  content: '↓';
  display: block;
  text-align: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.demo-frame > .annotation {
  padding: 25px;
}
.application-graph {
  position: relative;
  width: 100%;
}
.graph-plane {
  position: relative;
  aspect-ratio: 1.67;
  margin: 28px 22px;
  background-image: radial-gradient(circle, #60748523 0.7px, transparent 0.7px);
  background-size: 22px 22px;
}
.graph-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.graph-edge {
  fill: none;
  stroke: #7098aa;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transition:
    opacity 0.7s ease,
    stroke 0.4s;
}
.graph-edge.is-discovered {
  opacity: 0.5;
}
.graph-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.graph-node.is-discovered {
  opacity: 1;
}
.node-dot {
  display: block;
  border: 1px solid #90c4d6;
  background: #0a0f15;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.node-label {
  position: absolute;
  top: 13px;
  background: #0a0f15e8;
  padding: 2px 5px;
  font: 0.59rem var(--mono);
  white-space: nowrap;
  color: #b5c4cf;
}
.node-domain .node-dot {
  background: var(--accent);
  width: 9px;
  height: 9px;
  box-shadow:
    0 0 0 8px #8dcee20a,
    0 0 0 22px #8dcee205;
}
.node-domain .node-label {
  color: var(--ink);
  font-size: 0.75rem;
  top: 17px;
}
.node-sublabel {
  position: absolute;
  top: 41px;
  font-size: 0.4rem;
  white-space: nowrap;
  color: var(--faint);
  letter-spacing: 0.12em;
}
.node-parameter .node-dot {
  border-color: #839fcf;
  border-radius: 1px;
}
.node-parameter .node-label {
  color: #a4b8d9;
}
.node-auth .node-dot {
  border-radius: 0;
  transform: rotate(45deg);
}
.graph-mobile {
  display: none;
}
.graph-hero .graph-plane {
  margin: 18px 0 20px;
  aspect-ratio: 1.1;
  background-size: 24px 24px;
  background-image: radial-gradient(circle, #60748527 0.7px, transparent 0.7px);
}
.graph-hero .node-label {
  background: var(--bg);
}
.graph-hero .node-domain .node-label {
  font-size: 1rem;
  top: 20px;
}
.graph-hero .node-domain .node-dot {
  width: 11px;
  height: 11px;
  box-shadow:
    0 0 0 12px #8dcee208,
    0 0 0 35px #8dcee203;
}
.graph-hero .node-sublabel {
  top: 46px;
  font-size: 0.45rem;
}
.graph-hero .node-label {
  font-size: 0.57rem;
}
.orbit {
  fill: none;
  stroke: #799dbd1b;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.orbit-outer {
  stroke-dasharray: 2 7;
  stroke: #799dbd24;
}
.graph-axis {
  fill: none;
  stroke: #607b9312;
  stroke-dasharray: 2 5;
  vector-effect: non-scaling-stroke;
}
.discovery-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: center;
  min-height: 355px;
}
.discovery-narration {
  padding: 32px 0 32px 32px;
}
.demo-step-count {
  display: block;
  font: 0.57rem var(--mono);
  color: var(--faint);
  margin-bottom: 27px;
}
.discovery-narration h3 {
  font-size: 1.65rem;
  max-width: 230px;
  min-height: 3.3em;
}
.discovery-description {
  font-size: 0.82rem;
  margin-top: 18px;
  max-width: 280px;
  min-height: 6.6em;
}
.discovery-definition {
  font-size: 0.68rem;
  color: var(--accent);
  max-width: 280px;
  margin-top: 22px;
  min-height: 3.4em;
}
.discovery-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.discovery-controls button {
  background: transparent;
  border: 0;
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 0.75rem;
  color: var(--faint);
  position: relative;
  min-height: 65px;
}
.discovery-controls button + button {
  border-left: 1px solid var(--line);
}
.discovery-controls button > span:first-child {
  font: 0.6rem var(--mono);
}
.discovery-controls button[aria-pressed='true'] {
  color: var(--accent);
  background: #8dcee207;
}
.stage-indicator {
  position: absolute;
  inset: -1px 0 auto;
  height: 1px;
  background: transparent;
}
[aria-pressed='true'] > .stage-indicator {
  background: var(--accent);
}
.discovery-controls button:hover {
  color: var(--ink);
  background: #8dcee20a;
}
.explorer-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.explorer-map {
  padding: 52px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image: radial-gradient(circle, #60748525 0.7px, transparent 0.7px);
  background-size: 22px 22px;
}
.explorer-domain {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 50px;
  position: relative;
}
.explorer-domain::after {
  content: '';
  width: 1px;
  height: 28px;
  background: #527181;
  position: absolute;
  top: 35px;
  left: 50%;
}
.endpoint-buttons {
  padding-left: 30px;
  border-left: 1px solid #3f5968;
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-left: 25px;
}
.endpoint-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #33414e;
  background: #0e151c;
  padding: 17px 14px;
  color: var(--muted);
  text-align: left;
  border-radius: 3px;
  min-height: 62px;
}
.endpoint-node::before {
  content: '';
  position: absolute;
  left: -31px;
  width: 30px;
  height: 1px;
  top: 50%;
  background: #3f5968;
}
.endpoint-node .node-dot {
  width: 5px;
  height: 5px;
}
.endpoint-node code {
  font-size: 0.75rem;
}
.endpoint-method {
  font: 0.55rem var(--mono);
  color: var(--faint);
}
.endpoint-open {
  margin-left: auto;
  opacity: 0;
  color: var(--accent);
}
.endpoint-node[aria-pressed='true'] {
  color: var(--ink);
  border-color: #739ead;
  background: #15242e;
}
.endpoint-node[aria-pressed='true'] .endpoint-open {
  opacity: 1;
}
.endpoint-node[aria-pressed='true'] .node-dot {
  background: var(--accent);
}
.endpoint-node:hover {
  border-color: var(--accent);
}
.explorer-context {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 50px;
  font-size: 0.59rem;
  color: var(--faint);
}
.endpoint-inspector {
  padding: 36px;
  border-left: 1px solid var(--line);
  background: #11192088;
  min-height: 560px;
}
.endpoint-inspector .eyebrow {
  font-size: 0.58rem;
  margin-bottom: 22px;
}
.endpoint-inspector h3 {
  font-size: 1.1rem;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.endpoint-inspector dl {
  margin-block: 25px;
}
.endpoint-inspector dl > div {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding-block: 10px;
  border-bottom: 1px solid var(--soft-line);
  font-size: 0.72rem;
}
.endpoint-inspector dt {
  color: var(--muted);
}
.endpoint-inspector dd {
  margin: 0;
  text-align: right;
}
.relationship > p {
  font-size: 0.61rem;
}
.relationship > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.68rem;
  margin-top: 12px;
  color: var(--accent);
}
.relationship > div > span:nth-child(even) {
  color: var(--faint);
}
.endpoint-description {
  font-size: 0.76rem;
  margin-top: 24px;
}
.endpoint-question {
  border-left: 1px solid var(--accent);
  padding-left: 13px;
  color: var(--ink);
  font-size: 0.79rem;
  margin-top: 24px;
}
.access-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.access-request {
  padding: 42px;
}
.access-request .eyebrow {
  color: var(--muted);
  margin-bottom: 25px;
}
.request-instruction {
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1.35;
  max-width: 270px;
  letter-spacing: -0.03em;
}
.request-url {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px 18px;
  border: 1px solid #394953;
  background: #121b21;
  margin-block: 30px 20px;
}
.request-url > span {
  color: var(--accent);
  font: 0.65rem var(--mono);
}
.request-url code {
  font-size: 0.82rem;
}
.order-id {
  color: var(--accent);
  background: #8dcee215;
  padding: 4px 0;
  border-bottom: 1px solid #8dcee277;
}
.order-controls {
  display: flex;
  gap: 10px;
}
.order-controls button {
  background: transparent;
  border: 1px solid var(--line);
  padding: 12px;
  font-size: 0.68rem;
  flex: 1;
  min-height: 58px;
  text-align: left;
  color: var(--muted);
}
.order-controls code {
  display: block;
  font-size: 0.65rem;
  margin-top: 5px;
}
.order-controls button > span {
  float: right;
  margin-top: -27px;
}
.order-controls button[aria-pressed='true'] {
  color: var(--ink);
  border-color: #718a96;
}
.order-controls button:hover {
  border-color: var(--accent);
}
.access-request > .annotation {
  margin-top: 20px;
  font-size: 0.68rem;
}
.access-response {
  padding: 35px 42px;
  border-left: 1px solid var(--line);
  background: #11192066;
}
.response-header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 0.57rem;
  margin-bottom: 24px;
  color: var(--muted);
}
.response-state {
  color: var(--accent);
}
.order-artifact {
  padding: 22px;
  border: 1px solid #37434c;
  border-radius: 3px;
}
.order-artifact > span {
  font: 0.57rem var(--mono);
  color: var(--muted);
}
.order-artifact > p {
  color: var(--ink);
  font-size: 1.5rem;
  margin-block: 10px 25px;
  letter-spacing: -0.03em;
}
.order-artifact > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-top: 10px;
  font-size: 0.68rem;
  color: var(--muted);
}
.access-response h3 {
  font-size: 1.1rem;
  margin-top: 24px;
}
.access-response > p {
  font-size: 0.76rem;
  margin-top: 12px;
}
.is-vulnerable .access-response {
  background: #39202344;
}
.is-vulnerable .order-artifact {
  border-color: #764849;
}
.is-vulnerable .response-state,
.is-vulnerable .order-artifact > p,
.is-vulnerable .access-response h3 {
  color: var(--risk);
}
.is-vulnerable .order-id {
  color: var(--risk);
  background: #ef948f15;
  border-color: #ef948f88;
}
.attack-chain {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 54px 26px 38px;
  margin: 0;
}
.attack-chain li {
  position: relative;
}
.attack-chain li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(50% + 20px);
  width: calc(100% - 40px);
  height: 1px;
  background: var(--line);
  transition: background 0.35s;
}
.attack-chain li.is-reached:not(:last-child)::after {
  background: #6c8b9c;
}
.attack-chain li.risk-step.is-reached:not(:last-child)::after {
  background: #a25d5a;
}
.attack-chain button {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 0 5px;
  text-align: center;
}
.path-node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #3c4955;
  border-radius: 50%;
  font: 0.58rem var(--mono);
  color: var(--faint);
  background: var(--bg);
  transition:
    border-color 0.35s,
    background 0.35s,
    color 0.35s;
}
.path-title {
  font-size: 0.66rem;
  color: var(--muted);
}
.attack-chain code {
  font-size: 0.55rem;
  color: var(--faint);
  line-height: 1.65;
  overflow-wrap: anywhere;
  max-width: 135px;
  min-height: 36px;
}
.is-reached .path-node {
  color: var(--accent);
  border-color: #7699aa;
}
.is-current .path-node {
  background: #233943;
  box-shadow: 0 0 0 5px #8dcee208;
}
.is-reached .path-title {
  color: var(--ink);
}
.risk-step.is-reached .path-node {
  color: var(--risk);
  border-color: #ad6b68;
}
.risk-step.is-current .path-node {
  background: #3d2526;
}
.risk-step.is-reached .path-title {
  color: var(--risk);
}
.attack-chain button:hover .path-node {
  border-color: var(--accent);
}
.path-narration {
  display: flex;
  gap: 24px;
  min-height: 140px;
  max-width: 670px;
  margin: 0 auto;
  padding: 20px 24px;
}
.path-counter {
  font: 0.65rem var(--mono);
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 5px;
}
.path-narration h3 {
  font-size: 1.3rem;
}
.path-narration p {
  font-size: 0.82rem;
  margin-top: 15px;
}
.path-narration.risk-active .path-counter,
.path-narration.risk-active h3 {
  color: var(--risk);
}
.path-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
}
.path-reset {
  border: 0;
  background: none;
  font-size: 0.7rem;
  min-height: 44px;
  color: var(--muted);
}
.path-reset > span {
  margin-left: 12px;
}
.path-reset:disabled {
  opacity: 0.4;
  cursor: default;
}
.path-next {
  font-size: 0.7rem;
  min-height: 44px;
}
.fallback-path {
  padding: 30px 50px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .discovery-layout {
    grid-template-columns: 0.8fr 1.2fr;
  }
  .discovery-narration {
    padding-left: 25px;
  }
  .graph-tree .node-label {
    font-size: 0.52rem;
  }
  .graph-tree .node-domain .node-label {
    font-size: 0.63rem;
  }
  .explorer-map {
    padding-inline: 24px;
  }
  .endpoint-buttons {
    margin-left: 0;
    padding-left: 24px;
  }
  .endpoint-node::before {
    left: -25px;
    width: 24px;
  }
  .endpoint-node {
    gap: 8px;
    padding: 14px 10px;
  }
  .endpoint-node code {
    font-size: 0.65rem;
  }
  .endpoint-inspector {
    padding: 30px;
  }
  .access-request,
  .access-response {
    padding: 32px;
  }
  .request-url {
    gap: 10px;
    padding-inline: 12px;
  }
  .request-url code {
    font-size: 0.7rem;
  }
  .attack-chain {
    padding-inline: 16px;
  }
  .path-title {
    font-size: 0.6rem;
  }
  .attack-chain code {
    font-size: 0.49rem;
  }
}
@media (max-width: 900px) {
  .discovery-layout {
    grid-template-columns: 1fr;
  }
  .discovery-narration {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 35px;
    padding: 28px;
  }
  .demo-step-count {
    margin: 0;
    grid-column: 1 / -1;
  }
  .discovery-narration h3 {
    min-height: auto;
    font-size: 1.5rem;
    max-width: none;
  }
  .discovery-description {
    min-height: auto;
    margin: 0;
    max-width: none;
  }
  .discovery-definition {
    grid-column: 1 / -1;
    min-height: auto;
    max-width: none;
    margin: 0;
  }
  .graph-tree .graph-plane {
    max-width: 670px;
    height: 280px;
    aspect-ratio: auto;
    margin-inline: auto;
    width: calc(100% - 70px);
    margin-top: 0;
  }
  .graph-tree .node-label {
    font-size: 0.65rem;
  }
  .graph-tree .node-domain .node-label {
    font-size: 0.78rem;
  }
  .endpoint-node code {
    font-size: 0.6rem;
  }
  .endpoint-method {
    display: none;
  }
  .endpoint-inspector {
    padding: 25px;
  }
  .endpoint-inspector h3 {
    font-size: 0.9rem;
  }
  .endpoint-inspector dl > div {
    font-size: 0.65rem;
  }
  .access-request,
  .access-response {
    padding: 26px;
  }
  .request-url code {
    font-size: 0.64rem;
  }
  .request-url > span {
    font-size: 0.55rem;
  }
  .order-controls {
    flex-direction: column;
  }
  .order-controls button {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .order-controls code,
  .order-controls button > span {
    margin: 0;
  }
  .response-header {
    flex-direction: column;
    gap: 5px;
  }
  .attack-chain {
    grid-template-columns: repeat(3, 1fr);
    gap: 35px 0;
  }
  .attack-chain li:nth-child(3)::after {
    display: none;
  }
  .path-title {
    font-size: 0.7rem;
  }
  .attack-chain code {
    font-size: 0.6rem;
  }
}
@media (max-width: 700px) {
  .demo-topline {
    padding: 17px 20px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .demo-topline .eyebrow {
    font-size: 0.55rem;
  }
  .demo-label {
    font-size: 0.56rem;
  }
  .demo-bottomline {
    padding: 15px 20px;
    flex-direction: column;
    align-items: start;
    gap: 8px;
  }
  .demo-bottomline p:last-child {
    text-align: left;
  }
  .demo-bottomline p:empty {
    display: none;
  }
  .demo-disclaimer {
    padding: 17px 20px;
    font-size: 0.64rem;
  }
  .graph-plane {
    display: none;
  }
  .graph-mobile {
    display: flex;
    flex-direction: column;
    padding: 15px 28px 32px;
  }
  .graph-mobile > span {
    border-left: 1px solid #455f71;
    padding: 6px 0 18px 24px;
    position: relative;
    opacity: 0.13;
    transition: opacity 0.5s;
  }
  .graph-mobile > span::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 10px;
    width: 7px;
    height: 7px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: var(--bg);
  }
  .graph-mobile > span:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
  }
  .graph-mobile > span.is-discovered {
    opacity: 1;
  }
  .graph-mobile small {
    display: block;
    font-size: 0.56rem;
    letter-spacing: 0.06em;
    color: var(--faint);
  }
  .graph-mobile code {
    font-size: 0.77rem;
    color: var(--accent);
  }
  .graph-hero .graph-mobile {
    padding: 28px 16px 26px 24px;
    margin-top: 20px;
    border-top: 1px solid var(--soft-line);
    background-image: radial-gradient(
      circle,
      #60748527 0.7px,
      transparent 0.7px
    );
    background-size: 20px 20px;
  }
  .graph-hero .graph-mobile > span {
    padding-block: 5px 17px;
  }
  .graph-hero .graph-mobile > span:last-child {
    padding-bottom: 0;
  }
  .graph-hero .graph-mobile code {
    font-size: 0.83rem;
  }
  .discovery-narration {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 25px 20px;
  }
  .discovery-narration h3 {
    font-size: 1.65rem;
    min-height: 2.2em;
    max-width: 300px;
  }
  .discovery-description {
    font-size: 0.8rem;
    min-height: 5.2em;
  }
  .discovery-definition {
    font-size: 0.66rem;
    min-height: 3.4em;
  }
  .discovery-controls button {
    flex-direction: column;
    align-items: start;
    gap: 5px;
    padding: 13px;
    font-size: 0.7rem;
  }
  .discovery-controls button > span:first-child {
    font-size: 0.55rem;
  }
  .explorer-layout {
    grid-template-columns: 1fr;
  }
  .explorer-map {
    padding: 32px 24px;
  }
  .explorer-domain {
    margin-bottom: 38px;
  }
  .explorer-domain::after {
    top: 27px;
    height: 24px;
  }
  .endpoint-buttons {
    gap: 17px;
    margin-left: 6px;
  }
  .endpoint-node {
    padding: 14px;
  }
  .endpoint-node code {
    font-size: 0.76rem;
  }
  .endpoint-method {
    display: inline;
    font-size: 0.55rem;
  }
  .explorer-context {
    margin-top: 24px;
    font-size: 0.55rem;
  }
  .endpoint-inspector {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 27px 24px;
    min-height: 495px;
  }
  .endpoint-inspector h3 {
    font-size: 1.1rem;
  }
  .endpoint-inspector dl > div {
    font-size: 0.72rem;
  }
  .endpoint-description {
    font-size: 0.8rem;
  }
  .access-layout {
    grid-template-columns: 1fr;
  }
  .access-request {
    padding: 27px 20px;
  }
  .request-instruction {
    font-size: 1.3rem;
  }
  .request-url {
    margin-block: 25px 18px;
    padding: 18px 15px;
  }
  .request-url code {
    font-size: 0.83rem;
  }
  .request-url > span {
    font-size: 0.65rem;
  }
  .order-controls {
    flex-direction: row;
  }
  .order-controls button {
    display: block;
    min-height: 68px;
    padding: 12px;
  }
  .order-controls code {
    margin-top: 6px;
  }
  .order-controls button > span {
    margin-top: -25px;
  }
  .access-response {
    padding: 27px 20px;
    border-left: 0;
    border-top: 1px solid var(--line);
    min-height: 390px;
  }
  .response-header {
    flex-direction: row;
    font-size: 0.54rem;
  }
  .order-artifact {
    padding: 20px;
  }
  .attack-chain {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 28px 24px 5px;
  }
  .attack-chain li {
    padding-bottom: 20px;
  }
  .attack-chain button {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    gap: 5px 20px;
    text-align: left;
    padding: 0;
  }
  .path-node {
    grid-row: 1 / 3;
    align-self: start;
  }
  .path-title {
    font-size: 0.8rem;
    text-align: left;
  }
  .attack-chain code {
    min-height: 0;
    max-width: none;
    font-size: 0.65rem;
  }
  .attack-chain li:not(:last-child)::after,
  .attack-chain li:nth-child(3)::after {
    display: block;
    left: 20px;
    top: 40px;
    width: 1px;
    height: calc(100% - 40px);
  }
  .path-narration {
    padding: 20px 24px;
    gap: 15px;
    min-height: 184px;
  }
  .path-narration h3 {
    font-size: 1.18rem;
  }
  .path-narration p {
    font-size: 0.78rem;
  }
  .path-counter {
    font-size: 0.55rem;
  }
  .path-controls {
    padding: 15px 20px 22px;
    gap: 20px;
  }
  .path-reset {
    font-size: 0.65rem;
  }
  .path-reset > span {
    margin-left: 6px;
  }
  .path-next {
    font-size: 0.65rem;
    padding-inline: 14px;
    gap: 13px;
  }
  .graph-fallback {
    padding: 25px 20px;
    align-items: start;
    font-size: 0.7rem;
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  .graph-node,
  .graph-edge,
  .graph-mobile > span,
  .path-node,
  .attack-chain li::after {
    transition: none;
  }
}
