.world-stage {
  position: relative;
  margin: 0;
  isolation: isolate;
  min-width: 0;
  height: 650px;
  overflow: visible;
}
.world-canvas,
.world-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.6s;
}
.world-canvas {
  display: block;
  opacity: 0;
  cursor: grab;
  touch-action: pan-y;
}
.world-canvas:active {
  cursor: grabbing;
}
.world-stage[data-render-state="ready"] .world-canvas {
  opacity: 1;
}
.world-stage[data-render-state="ready"] .world-poster {
  opacity: 0;
  pointer-events: none;
}
.world-poster {
  display: grid;
  place-items: center;
}
.world-fallback-earth {
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 35% 30%,
      transparent 20%,
      #0713199a 75%,
      #03090d 100%
    ),
    url("/assets/earth-blue-marble.png") 43% 50%/200% 100%;
  box-shadow:
    inset -20px -5px 40px #000a,
    0 0 35px #8ac2ca25;
}
.world-poster > i {
  position: absolute;
  width: 88%;
  height: 37%;
  border: 1px solid #e8b88d70;
  border-radius: 50%;
  transform: rotate(-28deg);
}
.world-aura {
  position: absolute;
  inset: 7% 0 12%;
  background: radial-gradient(ellipse at center, #4c839421, transparent 65%);
  pointer-events: none;
}
.world-edition {
  position: absolute;
  top: 8%;
  right: 10%;
  font-size: 7px;
  letter-spacing: 2px;
  color: #a8b5af;
  pointer-events: none;
}
.world-role-tags {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.world-role-tags > span {
  position: absolute;
  border: 1px solid #a6c7c02b;
  background: #101b1bd4;
  backdrop-filter: blur(8px);
  font-size: 10px;
  color: #e4ece5;
  padding: 12px 17px;
  min-width: 125px;
  box-shadow: 0 15px 40px #0002;
}
.world-role-tags > span:nth-child(1) {
  top: 19%;
  left: 17%;
  border-top-color: #e8b88d88;
}
.world-role-tags > span:nth-child(2) {
  top: 30%;
  right: 1%;
  border-top-color: #a8d6c588;
}
.world-role-tags > span:nth-child(3) {
  bottom: 24%;
  right: 2%;
  border-top-color: #b6c9e988;
}
.world-role-tags > span:nth-child(4) {
  bottom: 18%;
  left: 17%;
  border-top-color: #d9c6ee88;
}
.world-role-tags small {
  display: block;
  font-size: 6px;
  letter-spacing: 1px;
  color: #a9b9b5;
  margin-top: 7px;
}
.world-role-tags i {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e8b88d;
  margin-right: 7px;
}
.world-role-tags > span:nth-child(2) i {
  background: #a8d6c5;
}
.world-role-tags > span:nth-child(3) i {
  background: #b6c9e9;
}
.world-role-tags > span:nth-child(4) i {
  background: #d9c6ee;
}
.world-role-tags > span[data-active="true"] {
  border-color: #e8b88daa;
  box-shadow: 0 0 25px #e8b88d16;
}
.world-stage figcaption {
  position: absolute;
  bottom: 30px;
  left: 18%;
  right: 2%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #acb9b0;
  font-size: 7px;
  letter-spacing: 0.6px;
  z-index: 2;
}
.world-controls {
  display: flex;
  gap: 16px;
}
.world-controls button {
  border: 0;
  border-bottom: 1px solid #657a70;
  background: transparent;
  font: inherit;
  letter-spacing: 0.5px;
  font-size: 8px;
  color: #c5d3c9;
  padding: 10px 0;
  min-height: 40px;
  white-space: nowrap;
  cursor: pointer;
}
.world-controls button:disabled {
  color: #869487;
  cursor: default;
}
.world-credit {
  position: absolute;
  bottom: 9px;
  right: 2%;
  font-size: 6px;
  color: #899c96;
  letter-spacing: 0.3px;
}
.world-hero-object {
  position: absolute;
  right: -5%;
  top: 25px;
  width: 67%;
  height: 710px;
  z-index: 1;
}
.world-evolve-object {
  position: absolute;
  right: -8%;
  top: -20px;
  width: 69%;
  height: 700px;
}
.evolve-opening.has-world .evolve-composition {
  min-height: 700px;
}
.evolve-opening.has-world .evolve-intro h1 {
  font-size: clamp(59px, 5.8vw, 88px);
  line-height: 1.08;
}
.agent-network {
  padding-top: 70px;
  padding-bottom: 85px;
  border-top: 1px solid var(--line);
}
.agent-network-header {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: end;
  gap: 65px;
  margin-bottom: 45px;
}
.agent-network h2 {
  font-size: clamp(37px, 4vw, 59px);
  line-height: 1.15;
  margin: 18px 0 0;
}
.agent-network-header > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 430px;
}
.agent-network-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.agent-network-grid article {
  border-top: 1px solid #819383;
  padding-top: 22px;
}
.agent-network-grid article > span {
  font-size: 8px;
  letter-spacing: 1.3px;
  color: var(--copper);
}
.agent-network-grid h3 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.6px;
  margin: 17px 0 13px;
}
.agent-network-grid p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}
.agent-network-note {
  font-size: 10px;
  color: #9eac98;
  line-height: 1.8;
  margin-top: 30px;
  max-width: 850px;
}
@media (max-width: 1100px) {
  .world-hero-object {
    width: 70%;
    right: -10%;
    top: 50px;
    height: 625px;
  }
  .world-evolve-object {
    width: 73%;
    right: -13%;
    top: 0;
    height: 650px;
  }
  .world-role-tags > span {
    padding: 10px 12px;
    min-width: 108px;
    font-size: 9px;
  }
  .world-role-tags small {
    font-size: 5px;
  }
  .world-role-tags > span:nth-child(1),
  .world-role-tags > span:nth-child(4) {
    left: 15%;
  }
  .world-stage figcaption {
    left: 16%;
    right: 7%;
    font-size: 6px;
  }
  .world-controls {
    gap: 10px;
  }
  .world-controls button {
    font-size: 7px;
  }
  .world-credit {
    right: 7%;
  }
  .evolve-opening.has-world .evolve-intro h1 {
    font-size: 66px;
  }
}
@media (max-width: 700px) {
  .world-hero-object,
  .world-evolve-object {
    position: relative;
    right: auto;
    top: auto;
    width: 116%;
    margin-left: -8%;
    height: 410px;
    margin-top: 12px;
  }
  .world-evolve-object {
    margin-top: 0;
  }
  .world-edition {
    top: 3%;
    right: 12%;
    font-size: 6px;
  }
  .world-role-tags > span {
    padding: 8px 10px;
    min-width: 90px;
    font-size: 8px;
  }
  .world-role-tags small {
    font-size: 5px;
    letter-spacing: 0.5px;
    margin-top: 5px;
  }
  .world-role-tags > span:nth-child(1) {
    top: 17%;
    left: 8%;
  }
  .world-role-tags > span:nth-child(2) {
    top: 25%;
    right: 7%;
  }
  .world-role-tags > span:nth-child(3) {
    bottom: 25%;
    right: 7%;
  }
  .world-role-tags > span:nth-child(4) {
    bottom: 22%;
    left: 8%;
  }
  .world-stage figcaption {
    bottom: 24px;
    left: 10%;
    right: 10%;
    font-size: 6px;
    letter-spacing: 0;
  }
  .world-controls button {
    font-size: 7px;
    min-height: 44px;
  }
  .world-controls {
    gap: 12px;
  }
  .world-credit {
    bottom: 5px;
    left: 10%;
    right: 10%;
    font-size: 5px;
    text-align: center;
  }
  .evolve-opening.has-world .evolve-composition {
    min-height: 0;
  }
  .evolve-opening.has-world .evolve-intro h1 {
    font-size: clamp(44px, 9.8vw, 68px);
    line-height: 1.07;
    white-space: normal;
  }
  .agent-network {
    padding-top: 45px;
    padding-bottom: 50px;
  }
  .agent-network-header {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }
  .agent-network h2 {
    font-size: 37px;
  }
  .agent-network-header > p {
    font-size: 13px;
  }
  .agent-network-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .agent-network-grid h3 {
    font-size: 20px;
  }
  .agent-network-grid p {
    font-size: 11px;
  }
  .agent-network-note {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .world-canvas,
  .world-poster {
    transition: none;
  }
}

/* Nova honest-degradation band — the fallback is a designed state, not a dead wall.
   Card t_31052f5a, branch team/nova, PROPOSAL (wiring + QA owned by Codex).
   Posture: the stage substance stays in typographic hierarchy; the viewer's loss is
   named plainly, once, in the design system's own voice. Fewer moving parts than the
   living layer: the fallback should be the calmest surface on the page. */
.world-stage[data-render-state="fallback"] [data-fallback-stages]{display:block}
.world-stage[data-render-state="fallback"] .world-poster{opacity:1}
.stage-fallback-list{display:none;padding:26px 30px;border:1px solid var(--line);background:none}
.stage-fallback-list .stage-fallback-kicker{display:block;font-size:8px;letter-spacing:.16em;color:var(--copper);margin-bottom:18px}
.stage-fallback-list ol{list-style:none;margin:0;padding:0}
.stage-fallback-list li{display:flex;align-items:baseline;gap:14px;padding:14px 0;border-top:1px solid var(--line);font-size:16px;color:inherit}
.stage-fallback-list li small{font-size:9px;color:var(--copper);flex-shrink:0}
.stage-fallback-status{display:block;margin-top:18px;font-size:10px;line-height:1.7;color:var(--muted)}
.world-stage[data-render-state="fallback"] .stage-fallback-status{display:block}
@media (prefers-reduced-motion: reduce){
  .stage-fallback-list,.stage-fallback-status{animation:none!important;transition:none!important}
}
.stage-fallback-status{color:var(--muted)}

/* Full-size inspection keeps the same graph and selection, rather than a second demo. */
.network-dialog {
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100dvh;
  padding: 0;
  margin: 0;
  border: 0;
  background: #101710;
  color: #ece7d6;
  overflow: hidden;
}
.network-dialog::backdrop { background: #101710ed; }
body.network-view-open { overflow: hidden; }
.living-stage .network-text { bottom: 132px; }
.living-stage .world-controls { flex-wrap: wrap; }
.living-stage.network-expanded {
  width: 100vw !important;
  height: 100dvh !important;
  margin: 0 !important;
  inset: auto !important;
  position: relative !important;
  background: #101710;
}
.living-stage.network-expanded .world-canvas {
  inset: 62px 0 128px !important;
  height: calc(100% - 190px) !important;
}
.living-stage.network-expanded .network-roles {
  top: 20px !important;
  justify-content: center;
}
.living-stage.network-expanded figcaption {
  left: 5% !important;
  right: 5% !important;
  bottom: 24px !important;
}
.living-stage.network-expanded .world-credit {
  bottom: 8px !important;
  left: 5% !important;
}
.living-stage.network-expanded .network-text {
  bottom: 134px;
  max-width: 340px;
}
.living-stage.network-expanded .world-edition { display: none; }
.living-stage [data-world-expand][hidden] { display: none; }
.living-stage.network-expanded .world-controls button,
.living-stage.network-expanded .network-roles button { font-size: 11px; }
@media(max-width:700px) {
  .living-stage.network-expanded .network-roles { top: 12px !important; }
  .living-stage.network-expanded .world-canvas { inset: 82px 0 144px !important; height: calc(100% - 226px) !important; }
}
