
/* Connection Playground — five scenes in one persistent environment. */
.dds-worlds{--dw-color:#ffc56d;background:#07111f;color:#eaf5ff;padding:55px clamp(20px,4vw,64px);position:relative;isolation:isolate}
.dw-invitation{max-width:750px}.dw-invitation h2{color:white;font-size:clamp(30px,4vw,56px);line-height:1.06;letter-spacing:-.04em}.dw-invitation>p:last-child{color:#a9bfd4;font-size:17px;line-height:1.8}
.dw-screen{display:none}
.dds-world[data-world="worlds"]{background:radial-gradient(ellipse at 70% 30%,#142e46,#040b15 75%)}
.dds-world[data-world="worlds"] .dds-world-body{padding:0}
.dds-world[data-world="worlds"] .dds-worlds{padding:0;min-height:100%;background:transparent}
.dds-world[data-world="worlds"] .dw-invitation{display:none}
.dds-world[data-world="worlds"] .dw-screen{display:flex;flex-direction:column;min-height:calc(100dvh - 160px)}
.dw-screen:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 75% 40%,color-mix(in srgb,var(--dw-color) 11%,transparent),transparent 65%);transition:background 1s}
.dw-main{display:grid;grid-template-columns:minmax(290px,.85fr) minmax(0,1.3fr);align-items:center;gap:4vw;padding:30px clamp(24px,4vw,64px) 24px;flex:1}
.dw-copy{position:relative;z-index:2;min-width:0}
.dw-code{font:500 11px/1.7 monospace;letter-spacing:.14em;color:var(--dw-color);margin:0 0 14px}
.dw-heading h2{font-size:clamp(34px,3.7vw,62px);line-height:1.02;color:#fff;letter-spacing:-.045em;margin:0 0 18px}
.dw-description{font-size:clamp(14px,1.2vw,18px);line-height:1.7;color:#a9bfd4;max-width:510px;margin:0 0 20px}
.dw-choices{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 20px}
dialog.dds-world .dw-choices button{padding:9px 12px;min-height:42px;font:12px/1.4 Arial,sans-serif;border-color:#36516a;background:#0c1c2e}
dialog.dds-world .dw-choices button[aria-pressed="true"]{border-color:var(--dw-color);background:color-mix(in srgb,var(--dw-color) 13%,#0a1627);color:#fff;box-shadow:0 0 20px color-mix(in srgb,var(--dw-color) 10%,transparent)}
.dw-note{border-left:2px solid var(--dw-color);padding-left:16px;margin:20px 0;color:#acc3d7;font-size:13px;line-height:1.7;max-width:480px}
.dw-note p{margin:8px 0}.dw-note h3{font-size:18px;color:#eaf5ff;margin:10px 0;line-height:1.3}
.dw-note .dw-context{font:10px/1.7 monospace;letter-spacing:.08em;color:var(--dw-color)}
.dw-status{color:#c2d5e4;font:11px/1.6 monospace;min-height:18px;margin:0 0 12px}
dialog.dds-world .dw-primary{background:linear-gradient(120deg,color-mix(in srgb,var(--dw-color) 25%,#14528c),#0e385d);border-color:var(--dw-color);font-size:13px;min-height:46px;padding:12px 18px;box-shadow:0 0 26px color-mix(in srgb,var(--dw-color) 10%,transparent)}
dialog.dds-world .dw-secondary{display:block;background:transparent;border:0;padding:12px 0;font-size:11px;color:#a6bbcf;text-align:left;min-height:44px}
.dw-stage{position:relative;height:clamp(320px,46vh,570px);min-width:0;perspective:1000px;border:1px solid color-mix(in srgb,var(--dw-color) 25%,#132639);border-radius:24px;background:linear-gradient(135deg,#0c1d2d99,#040c17aa);box-shadow:inset 0 0 90px #0005,0 35px 100px #0003;overflow:hidden}
.dw-stage:before{content:'';position:absolute;inset:-50%;pointer-events:none;background-image:linear-gradient(#83dfff09 1px,transparent 1px),linear-gradient(90deg,#83dfff09 1px,transparent 1px);background-size:40px 40px;transform:perspective(500px) rotateX(50deg);mask-image:radial-gradient(ellipse,#000,transparent 65%)}
.dw-stage:after{content:'';position:absolute;width:70%;height:70%;left:15%;top:15%;border:1px solid color-mix(in srgb,var(--dw-color) 12%,transparent);border-radius:50%;pointer-events:none;box-shadow:0 0 80px color-mix(in srgb,var(--dw-color) 5%,transparent)}
.dw-scene{position:absolute;inset:0 0 34px;transform-style:preserve-3d}
.dw-hud{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:space-between;border-top:1px solid #254058;padding:11px 15px;font:9px/1.5 monospace;color:var(--dw-color);letter-spacing:.13em;background:#081422bb}
.dw-links{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.dw-links path{fill:none;stroke:var(--dw-color);vector-effect:non-scaling-stroke}
.dw-track{stroke-width:1;opacity:.3}.dw-flow{stroke-width:2;stroke-dasharray:3 97;filter:drop-shadow(0 0 5px var(--dw-color));animation:dw-stream 5s linear infinite}
dialog.dds-world .dw-node{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);width:clamp(70px,8vw,115px);min-height:78px;display:flex;flex-direction:column;align-items:center;gap:8px;justify-content:center;white-space:normal;padding:10px 7px;background:linear-gradient(145deg,#142d43,#071422);border:1px solid #42607a;border-radius:12px;color:#d4e5f2;z-index:2;transition:left 1s,top 1s,box-shadow .3s,border-color .3s}
.dw-node-icon{font:26px/1 monospace;color:var(--dw-color)}.dw-node strong{font:600 11px/1.4 Arial,sans-serif}
dialog.dds-world .dw-node.is-selected{border-color:var(--dw-color);box-shadow:0 0 35px color-mix(in srgb,var(--dw-color) 20%,transparent);background:linear-gradient(130deg,color-mix(in srgb,var(--dw-color) 17%,#10243a),#071422)}
.dw-core{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-9deg);width:90px;height:90px;border-radius:20px;border:1px solid var(--dw-color);background:linear-gradient(135deg,color-mix(in srgb,var(--dw-color) 25%,#103046),#071322);display:grid;place-items:center;color:#fff;font:54px/1 monospace;box-shadow:0 0 70px color-mix(in srgb,var(--dw-color) 20%,transparent);animation:dw-breathe 6s ease-in-out infinite;pointer-events:none}
.dds-worlds[data-chapter="0"][data-connected="false"] .dw-node{rotate:-7deg}
.dds-worlds[data-chapter="0"][data-connected="true"] .dw-core{opacity:.4;scale:.6}
.dds-worlds[data-chapter="1"] .dw-stage:after{border-radius:22px;transform:rotate(-15deg)}
.dw-signal{position:absolute;width:18px;height:18px;border-radius:50%;background:white;box-shadow:0 0 16px #fff,0 0 50px var(--dw-color),0 0 100px var(--dw-color);translate:-50% -50%;z-index:3;pointer-events:none;animation:dw-beacon 2s ease-in-out infinite}
.dds-worlds[data-chapter="2"] .dw-core{border-radius:5px;transform:translate(-50%,-50%) rotate(45deg)}
.dds-worlds[data-chapter="2"] .dw-stage:after{transform:rotateX(50deg);border:2px dashed #b39aff44}
.dds-worlds[data-chapter="4"] .dw-stage:after{animation:dw-radar 8s linear infinite;border-radius:50%;border-top:2px solid #f18bbd88}
.dw-range-label{display:block;color:var(--dw-color);font:12px/1.5 monospace;margin:20px 0 10px}.dw-range{width:100%;max-width:420px;accent-color:var(--dw-color);min-height:44px;cursor:ew-resize}
.dw-shift{position:absolute;inset:20px 20px 25px;overflow:hidden;border-radius:14px}
.dw-reality{position:absolute;inset:0;padding:24px;box-sizing:border-box;background:#171521}
.dw-reality-label{font:10px/1.5 monospace;color:#f18bbd;letter-spacing:.15em}
.dw-reality>strong{display:block;font-size:clamp(18px,2vw,28px);line-height:1.1;color:white;max-width:270px}
.dw-after{background:linear-gradient(140deg,#123d3c,#081e29);clip-path:inset(0 calc(100% - var(--shift)) 0 0);border-right:2px solid #74e5b1}
.dw-after .dw-reality-label{color:#74e5b1}
.dw-loose{position:absolute;top:calc(38% + var(--i)*13%);left:calc(8% + mod(var(--i),2)*35%);transform:rotate(calc(var(--i)*9deg - 10deg));font:12px/1.4 monospace;border:1px dashed #f18bbd66;padding:12px;background:#251c2c}
.dw-clear{display:block;width:75%;padding:10px 14px;margin-top:12px;background:#102f37;border:1px solid #74e5b166;border-radius:5px;color:#c3f9e2;font:12px/1.4 monospace}
.dw-strip{display:flex;gap:12px;align-items:center;padding:12px clamp(18px,4vw,64px) 20px;background:linear-gradient(transparent,#040c16);position:relative;z-index:3}
.dw-cards{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;min-width:0;flex:1;padding:5px 2px 10px}
.dw-cards::-webkit-scrollbar{display:none}
dialog.dds-world .dw-card{position:relative;flex:0 0 clamp(200px,24vw,310px);min-height:95px;display:grid;align-content:center;gap:7px;text-align:left;padding:16px 55px 16px 16px;scroll-snap-align:center;background:linear-gradient(120deg,#12283b,#071321);border:1px solid color-mix(in srgb,var(--card) 35%,#203146);border-radius:10px;white-space:normal}
.dw-card-label{font:10px/1.5 monospace;letter-spacing:.04em;color:var(--card)}.dw-card small{font:11px/1.5 Arial,sans-serif;color:#adc4d7}
.dw-card-icon{position:absolute;right:16px;top:30px;font:30px/1 monospace;color:var(--card);text-shadow:0 0 20px var(--card)}
dialog.dds-world .dw-card.is-current{border-color:var(--card);box-shadow:inset 3px 0 var(--card),0 0 24px color-mix(in srgb,var(--card) 12%,transparent)}
dialog.dds-world .dw-arrow{flex-shrink:0;width:38px;padding:6px;min-height:44px}
.dw-changing .dw-heading{animation:dw-copy-in .65s ease both}.dw-changing .dw-stage{animation:dw-scene-in .9s cubic-bezier(.2,.7,.2,1) both}
.dds-worlds[data-chapter="1"] .dw-changing .dw-stage{animation-name:dw-signal-in}
.dds-worlds[data-chapter="2"] .dw-changing .dw-stage{animation-name:dw-build-in}
.dds-worlds[data-chapter="3"] .dw-changing .dw-stage{animation-name:dw-shift-in}
.dds-worlds[data-chapter="4"] .dw-changing .dw-stage{animation-name:dw-friction-in}
.dds-worlds:not(.dw-active) *,.dds-worlds.dw-hidden *{animation-play-state:paused!important}
@keyframes dw-stream{to{stroke-dashoffset:-100}}
@keyframes dw-breathe{50%{translate:0 -10px;box-shadow:0 0 100px color-mix(in srgb,var(--dw-color) 30%,transparent)}}
@keyframes dw-beacon{50%{scale:1.4;opacity:.65}}
@keyframes dw-radar{to{transform:rotate(360deg)}}
@keyframes dw-copy-in{from{opacity:0;translate:0 15px}to{opacity:1;translate:0 0}}
@keyframes dw-scene-in{from{opacity:0;transform:scale(.86) rotate(-5deg);filter:blur(8px)}to{opacity:1;transform:none;filter:none}}
@keyframes dw-signal-in{from{opacity:0;transform:translateX(70px);filter:blur(12px)}to{opacity:1;transform:none;filter:none}}
@keyframes dw-build-in{from{opacity:0;transform:perspective(1000px) rotateX(25deg) translateY(50px)}to{opacity:1;transform:none}}
@keyframes dw-shift-in{from{opacity:0;clip-path:inset(0 100% 0 0)}to{opacity:1;clip-path:inset(0)}}
@keyframes dw-friction-in{from{opacity:0;transform:scale(1.15);filter:blur(15px)}to{opacity:1;transform:none;filter:none}}
@media(max-width:900px){
 .dw-main{grid-template-columns:1fr;padding:24px 20px 16px;gap:18px}
 .dw-heading h2{font-size:clamp(34px,6vw,52px);max-width:600px}
 .dw-stage{height:360px;max-width:800px;width:100%;box-sizing:border-box}
 .dw-copy{display:contents}.dw-heading,.dw-controls{grid-column:1}.dw-stage{grid-row:3}
 .dw-note{max-width:none;margin:0}.dw-status{margin:0}.dw-description{max-width:none;margin-bottom:4px}
 .dw-choices{margin:0}.dw-strip{padding:10px 12px 18px;gap:7px}
 dialog.dds-world .dw-node{width:85px}
 .dds-world[data-world="worlds"] .dw-screen{min-height:calc(100dvh - 142px)}
}
@media(max-width:480px){
 .dw-main{padding:24px 16px 12px;gap:16px}
 .dw-stage{height:320px;border-radius:18px}
 .dw-heading h2{font-size:38px}.dw-code{font-size:10px;letter-spacing:.07em}
 .dw-description{font-size:14px}
 dialog.dds-world .dw-node{width:68px;min-height:68px;padding:8px 5px;gap:5px}
 .dw-node strong{font-size:10px}.dw-node-icon{font-size:22px}.dw-core{width:65px;height:65px;font-size:40px;border-radius:15px}
 .dw-hud{font-size:8px;padding:10px}
 dialog.dds-world .dw-card{flex-basis:230px;min-height:88px}
 .dw-clear{font-size:10px;padding:8px;width:80%;margin-top:10px}.dw-reality{padding:16px}.dw-loose{font-size:10px;padding:8px}
}
@media(prefers-reduced-motion:reduce){.dds-worlds *,.dds-worlds *:before,.dds-worlds *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

@media(min-width:901px){
 .dds-world[data-world="worlds"] .dw-screen{height:calc(100dvh - 160px);min-height:0}
 .dw-main{min-height:0;overflow-y:auto;padding-top:16px;padding-bottom:12px}
 .dw-stage{height:clamp(280px,43vh,520px)}
 .dw-strip{flex:0 0 auto;padding-top:5px;padding-bottom:10px}
 dialog.dds-world .dw-card{min-height:86px;padding-top:12px;padding-bottom:12px}
 .dw-description{margin-bottom:14px}.dw-note{margin:14px 0}.dw-choices{margin-bottom:12px}
 .dw-status:empty{min-height:0;margin-bottom:8px}
}
.dw-node{--node-delay:0s}
.dds-worlds[data-connected="true"][data-chapter="0"] .dw-node{animation:dw-thread-arrive .85s cubic-bezier(.2,.8,.2,1) both}
.dds-worlds[data-chapter="2"] .dw-node.is-selected{animation:dw-module-arrive .7s cubic-bezier(.2,.8,.2,1) both}
@keyframes dw-thread-arrive{from{opacity:.2;translate:0 35px;filter:blur(6px)}to{opacity:1;translate:0 0;filter:none}}
@keyframes dw-module-arrive{from{opacity:.3;scale:.6;rotate:20deg}to{opacity:1;scale:1;rotate:0deg}}
@media(max-width:767px){
 .dds-world[data-world="worlds"] .dds-world-rail{justify-content:flex-start;overflow-x:auto;scrollbar-width:none}
 .dds-world[data-world="worlds"] .dds-world-rail button{flex-shrink:0}
}

/* Keep chapter switching within reach while the mobile scene scrolls. */
@media(max-width:900px){
 .dds-world[data-world="worlds"] .dw-screen{height:calc(100dvh - 142px);min-height:0}
 .dw-main{min-height:0;overflow-y:auto;overscroll-behavior:contain;align-content:start}
 .dw-strip{flex:0 0 auto;border-top:1px solid #243e53;background:#06101df5;padding-top:8px;padding-bottom:8px}
 dialog.dds-world .dw-card{min-height:78px;padding-top:10px;padding-bottom:10px}
}
@media(min-width:901px){dialog.dds-world .dw-secondary{display:inline-block;margin-right:16px}}

/* Give every playground action a distinct boundary and touch target. */
.dw-action-group{display:flex;align-items:stretch;flex-wrap:wrap;gap:12px;margin-top:14px;padding:4px 0 8px}
dialog.dds-world .dw-action-group>button{margin:0;min-height:46px;padding:12px 16px;border:1px solid #46647e;border-radius:6px;white-space:normal;text-align:center;line-height:1.5}
dialog.dds-world .dw-action-group>.dw-secondary{display:inline-flex;align-items:center;justify-content:center;background:#0b2032;color:#c3d9e9;font-size:11px;box-shadow:none}
dialog.dds-world .dw-action-group>.dw-secondary:hover{border-color:var(--dw-color);background:#173b53;color:#fff}
dialog.dds-world .dw-action-group>.dw-primary{border-color:var(--dw-color)}
@media(max-width:900px){.dw-action-group{grid-column:1;gap:10px}.dw-action-group>button{flex:1 1 180px}}

/* Match the homepage's centered boxed sections. */
.elementor-13:not(.dds-world-body) #darby-worlds{
 box-sizing:border-box;width:calc(100% - 64px);max-width:1216px;
 margin:32px auto;padding:48px clamp(24px,4vw,56px);border:1px solid #284156;border-radius:16px;
}
@media(max-width:767px){
 .elementor-13:not(.dds-world-body) #darby-worlds{width:calc(100% - 32px);margin:24px auto;padding:30px 20px;border-radius:12px}
}

/* Continue the Connected System's lavender canvas around the boxed invitation. */
.dw-home-band{display:flow-root;background:#f5f0ff;width:100%;}

/* Playground iteration two: depth, motion, and a shared thread through every world. */
.dw-stage{background:radial-gradient(ellipse at 50% 45%,color-mix(in srgb,var(--dw-color) 8%,#091c2b),#040c17 75%);box-shadow:inset 0 0 100px #0005,0 35px 100px #0003,0 0 60px color-mix(in srgb,var(--dw-color) 6%,transparent)}
.dw-atmosphere{position:absolute;inset:0;pointer-events:none;overflow:hidden;transform:translate(var(--look-x,0px),var(--look-y,0px));transition:transform .4s ease;opacity:.5}
.dw-atmosphere i{position:absolute;left:50%;top:48%;width:calc(150px + var(--orbit)*100px);height:calc(150px + var(--orbit)*100px);border:1px solid color-mix(in srgb,var(--dw-color) 18%,transparent);border-radius:50%;transform:translate(-50%,-50%) rotateX(55deg) rotateZ(calc(var(--orbit)*30deg));animation:dw-orbit-drift 18s ease-in-out infinite alternate;animation-delay:calc(var(--orbit)*-4s)}
.dw-atmosphere i:before{content:'';position:absolute;left:50%;top:-3px;width:5px;height:5px;border-radius:1px;background:var(--dw-color);box-shadow:0 0 15px var(--dw-color)}
.dw-thread-readout{position:absolute;top:14px;left:16px;right:16px;margin:0;pointer-events:none;font:9px/1.5 monospace;letter-spacing:.12em;color:var(--dw-color);opacity:.7}
.dw-scene{inset:25px 0 34px}
.dw-node-icon{transition:filter .3s;filter:drop-shadow(0 0 7px color-mix(in srgb,var(--dw-color) 40%,transparent))}
dialog.dds-world .dw-node:hover{border-color:var(--dw-color);box-shadow:0 0 30px color-mix(in srgb,var(--dw-color) 20%,transparent);background:#18364b}
.dw-node:after{content:'';position:absolute;width:5px;height:5px;left:calc(50% - 3px);bottom:-3px;border:1px solid var(--dw-color);background:#081725;border-radius:50%;box-shadow:0 0 8px var(--dw-color)}
.dds-worlds[data-chapter="0"][data-connected="false"] .dw-links{opacity:.4;filter:blur(.5px)}
.dds-worlds[data-chapter="0"][data-connected="true"] .dw-flow{stroke-width:3;animation-duration:3s}
.dds-worlds[data-chapter="1"] .dw-atmosphere i{border-radius:24px;transform:translate(-50%,-50%) rotate(-25deg);animation:dw-signal-field 9s ease-in-out infinite alternate}
.dds-worlds[data-chapter="2"] .dw-atmosphere i{border-style:dashed;border-color:#b39aff44}
.dw-system-count{position:absolute;top:calc(50% + 72px);left:0;right:0;text-align:center;color:#d5c7ff;font:11px/1.5 monospace;letter-spacing:.15em;pointer-events:none}
.dds-worlds[data-chapter="2"] .dw-node:not(.is-selected){opacity:.45}
.dds-worlds[data-chapter="2"] .dw-core{box-shadow:0 0 80px #b39aff44}
.dw-shift:after{content:'';position:absolute;left:clamp(0px,var(--shift),100%);top:0;bottom:0;width:2px;translate:-1px 0;background:#b7ffe0;box-shadow:0 0 18px #74e5b1;pointer-events:none}
.dw-before{background:repeating-linear-gradient(135deg,#f18bbd04 0 1px,transparent 1px 12px),#171521}
.dw-after{background:radial-gradient(ellipse at 65% 30%,#1d655666,transparent),linear-gradient(140deg,#123d3c,#081e29)}
.dw-clear{position:relative}.dw-clear:after{content:'↓';position:absolute;left:50%;top:100%;font:9px/10px monospace;color:#74e5b1}
.dw-clear:last-child:after{display:none}
.dds-worlds[data-chapter="4"] .dw-node.is-selected:before{content:'';position:absolute;inset:-8px;border:1px solid #f18bbd77;border-radius:17px;animation:dw-friction-ping 3s ease-out infinite}
.dds-worlds[data-chapter="4"] .dw-node:not(.is-selected){opacity:.55}
@keyframes dw-orbit-drift{to{rotate:18deg;translate:0 -12px}}
@keyframes dw-signal-field{to{translate:20px -12px;opacity:.3}}
@keyframes dw-friction-ping{0%{scale:1;opacity:.8}100%{scale:1.25;opacity:0}}
@media(max-width:480px){.dw-thread-readout{font-size:8px;letter-spacing:.05em}.dw-system-count{font-size:9px;top:calc(50% + 56px)}}
@media(prefers-reduced-motion:reduce){.dw-atmosphere,.dw-atmosphere i,.dw-node:before{animation:none!important;transition:none!important}}

/* Iteration three: visible journey memory and a reviewable thread brief. */
.dw-brief{border:1px solid color-mix(in srgb,var(--dw-color) 30%,#20354a);border-radius:8px;background:#081a2bc9;margin:12px 0;color:#acc5d9;max-width:490px;overflow:hidden}
.dw-brief>summary{cursor:pointer;min-height:44px;box-sizing:border-box;padding:12px 14px;list-style:none;font:11px/1.5 monospace;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#cfe4f3}
.dw-brief>summary:after{content:'+';font-size:18px;color:var(--dw-color)}
.dw-brief[open]>summary:after{content:'−'}
.dw-brief>summary::-webkit-details-marker{display:none}
.dw-brief>summary:focus-visible{outline:2px solid var(--dw-color);outline-offset:-3px}
.dw-brief-body{padding:0 14px 14px;max-height:170px;overflow-y:auto;font:12px/1.65 Arial,sans-serif}
.dw-brief-body>strong{color:var(--dw-color);font-size:13px}
.dw-brief-body p{margin:8px 0;color:#b1ccdf}
.dw-brief-body small{font-size:10px;color:#8ba6bc}
.dw-card[data-visited="true"]:before{content:'';position:absolute;top:8px;left:16px;width:4px;height:4px;background:var(--card);box-shadow:0 0 8px var(--card);border-radius:50%}
.dw-node.is-explored .dw-node-icon{color:#c5f5ff}
.dds-worlds[data-chapter="1"] .dw-node.is-explored:before{content:'✓';position:absolute;right:5px;top:4px;font:9px/1 monospace;color:#74e5b1}
.dw-hud>span:first-child{letter-spacing:.04em}
@media(max-width:900px){.dw-brief{grid-column:1;max-width:none;width:100%;margin:0}.dw-brief-body{max-height:150px}}
@media(max-width:480px){.dw-hud{font-size:7px;letter-spacing:.03em}.dw-brief>summary{font-size:10px}.dw-brief-body{font-size:11px}}

.dw-blueprint{position:absolute;inset:0;pointer-events:none;perspective:700px}
.dw-blueprint i{position:absolute;left:50%;top:50%;width:150px;height:110px;border:1px solid var(--plane-color);border-radius:12px;background:color-mix(in srgb,var(--plane-color) 9%,transparent);transform:translate(-50%,calc(-50% + (var(--plane) - 1.5)*23px)) rotateX(55deg) rotateZ(-25deg);box-shadow:0 0 20px color-mix(in srgb,var(--plane-color) 12%,transparent);animation:dw-blueprint-in .8s ease both}
@keyframes dw-blueprint-in{from{opacity:0;translate:0 35px}to{opacity:1;translate:0 0}}
@media(max-width:480px){.dw-blueprint i{width:105px;height:80px}}
@media(prefers-reduced-motion:reduce){.dw-blueprint i{animation:none!important}}

/* A fictional signal uses the existing builder; no additional panel. */
dialog.dds-world .dw-node.dw-run-active{border-color:#b8f6ff;box-shadow:0 0 18px #50dcff66,0 0 55px #50dcff33;background:linear-gradient(135deg,#244e63,#0b1e32)}
.dw-core.dw-run-active{border-color:#ffc56d;box-shadow:0 0 55px #ffc56d66;background:linear-gradient(135deg,#684f2b,#142638)}
.dw-stage.dw-reviewing .dw-core{animation:none}
.dw-stage.dw-running .dw-node:not(.dw-run-active){opacity:.5}
.dw-stage.dw-reviewing .dw-hud{color:#ffc56d}
.dw-stage.dw-running .dw-system-count{color:#c4f5ff}
dialog.dds-world .dw-primary:disabled{opacity:.6;box-shadow:none;cursor:default}

/* A stalled handoff reuses the same canvas, status line, and main action. */
.dw-stage.dw-stalled{border-color:#eead74;background:radial-gradient(ellipse at center,#64342c44,#071321 75%)}
.dw-stage.dw-stalled .dw-flow{animation-play-state:paused!important;stroke:#f19c82;opacity:.4}
.dw-stage.dw-stalled .dw-core{border-color:#f6ab7d;color:#ffe4ca;background:linear-gradient(135deg,#633e2b,#1c1b28);box-shadow:0 0 50px #f19c8244;animation:none}
.dw-stage.dw-stalled .dw-signal{background:#ffd0a6;box-shadow:0 0 16px #ffc56d,0 0 45px #f19c8277;animation:none}
.dw-stage.dw-stalled .dw-hud{color:#ffcba9}
.dw-stage.dw-stalled .dw-node{opacity:.45}

/* Repeated entry: duplicate paper records collapse into one shared record. */
.dds-worlds[data-chapter="0"][data-problem="1"] .dw-core{display:none}
.dw-duplicate-records{position:absolute;inset:0;pointer-events:none;z-index:1}
.dw-record-copy{position:absolute;left:var(--copy-x);top:var(--copy-y);width:88px;padding:10px;box-sizing:border-box;transform:translate(-50%,-50%) rotate(var(--copy-angle));border:1px solid #ffc56d77;border-radius:7px;background:linear-gradient(130deg,#493a26ed,#192334f5);box-shadow:5px 8px 0 #ffc56d08,0 0 18px #ffc56d11;display:grid;gap:7px;animation:dw-copy-arrive .6s var(--copy-delay) both}
.dw-record-copy small{font:8px/1.3 monospace;letter-spacing:.1em;color:#ffc56d}
.dw-record-copy strong{font:10px/1.3 Arial,sans-serif;color:#ead9bf}
.dw-record-rule{display:block;height:2px;background:#d0b38266;border-radius:2px}.dw-record-rule:last-child{width:60%}
.dw-duplicate-records.is-merging .dw-record-copy{animation:dw-copy-merge 1.3s var(--copy-delay) cubic-bezier(.4,0,.2,1) both}
dialog.dds-world .dw-node.dw-shared-record{width:115px;min-height:100px;border-color:#a9f1db;background:linear-gradient(135deg,#204c4e,#102937);box-shadow:0 0 35px #74e5b12a}
.dw-shared-record .dw-node-icon{color:#a3f3d5}
.dw-shared-record.just-merged{animation:dw-shared-arrive 1.8s both!important}
.dw-merge-caption{position:absolute;bottom:8px;left:0;right:0;text-align:center;pointer-events:none;font:8px/1.5 monospace;letter-spacing:.14em;color:#d7b77e}
@keyframes dw-copy-arrive{from{opacity:0;scale:.7}to{opacity:.85;scale:1}}
@keyframes dw-copy-merge{0%,15%{left:var(--copy-x);top:var(--copy-y);opacity:.9;scale:1}80%{left:50%;top:50%;opacity:.8;scale:.55}100%{left:50%;top:50%;opacity:0;scale:.35;rotate:0deg}}
@keyframes dw-shared-arrive{0%,45%{opacity:0;scale:.55}75%{opacity:1;scale:1.12}100%{opacity:1;scale:1}}
@media(max-width:480px){.dw-record-copy{width:62px;padding:7px;gap:5px}.dw-record-copy small{font-size:6px}.dw-record-copy strong{font-size:8px}dialog.dds-world .dw-node.dw-shared-record{width:84px;min-height:78px}.dw-merge-caption{font-size:6px;letter-spacing:.07em}}
@media(prefers-reduced-motion:reduce){.dw-duplicate-records.is-merging{display:none}.dw-record-copy,.dw-shared-record.just-merged{animation:none!important}}

/* Scattered knowledge becomes a connected constellation of source context. */
.dds-worlds[data-chapter="0"][data-problem="2"] .dw-core{display:none}
.dw-knowledge-fragments{position:absolute;inset:0;z-index:2;pointer-events:none}
.dw-knowledge-fragment{position:absolute;left:var(--fragment-x);top:var(--fragment-y);transform:translate(-50%,-50%);display:flex;align-items:center;gap:7px;width:96px;box-sizing:border-box;padding:9px;border:1px dashed #b39aff66;border-radius:7px;background:#1d1a30ee;box-shadow:0 0 20px #b39aff0c}
.dw-knowledge-fragment>span{font:18px/1 monospace;color:#c4acff}
.dw-knowledge-fragment>small{font:9px/1.4 Arial,sans-serif;color:#b9abd6}
.dds-worlds[data-connected="false"] .dw-knowledge-fragment{opacity:.65}
.dds-worlds[data-connected="true"] .dw-knowledge-fragment{border-style:solid;border-color:#b39aff99;background:#24223bed;box-shadow:0 0 20px #b39aff20}
.dw-knowledge-fragments.is-gathering .dw-knowledge-fragment{animation:dw-knowledge-gather 1.4s var(--fragment-delay) cubic-bezier(.2,.7,.2,1) both}
dialog.dds-world .dw-node.dw-knowledge-hub{width:112px;min-height:96px;border-color:#cdbaff;background:linear-gradient(135deg,#44355d,#17273c);box-shadow:0 0 45px #b39aff33}
.dw-knowledge-hub.just-gathered{animation:dw-knowledge-illuminate 1.8s both!important}
.dw-knowledge-caption{position:absolute;left:0;right:0;bottom:6px;text-align:center;font:8px/1.5 monospace;letter-spacing:.12em;color:#b6a4d5;pointer-events:none}
@keyframes dw-knowledge-gather{from{left:var(--fragment-from-x);top:var(--fragment-from-y);opacity:.4;scale:.8}to{left:var(--fragment-x);top:var(--fragment-y);opacity:1;scale:1}}
@keyframes dw-knowledge-illuminate{0%,35%{opacity:.4;filter:brightness(.6)}75%{opacity:1;filter:brightness(1.4)}100%{opacity:1;filter:brightness(1)}}
@media(max-width:480px){.dw-knowledge-fragment{width:67px;padding:6px;gap:4px}.dw-knowledge-fragment>span{font-size:14px}.dw-knowledge-fragment>small{font-size:7px}dialog.dds-world .dw-node.dw-knowledge-hub{width:79px;min-height:74px}.dw-knowledge-caption{font-size:6px;letter-spacing:.04em}}
@media(prefers-reduced-motion:reduce){.dw-knowledge-fragments.is-gathering .dw-knowledge-fragment,.dw-knowledge-hub.just-gathered{animation:none!important}}

/* Missed follow-ups: fading requests become a continuous, owned handoff. */
.dds-worlds[data-chapter="0"][data-problem="0"] .dw-core{display:none}
.dw-followup-signals{position:absolute;inset:0;pointer-events:none;z-index:3}
.dw-followup-signals>i{position:absolute;width:8px;height:8px;border-radius:50%;background:#50dcff;box-shadow:0 0 12px #50dcff,0 0 25px #2975ff88;animation:dw-followup-lost 6.4s linear var(--signal-delay) infinite}
.dds-worlds[data-connected="true"] .dw-followup-signals>i{animation-name:dw-followup-connected}
.dw-followup-checkpoint{position:absolute;left:50%;top:54%;translate:-50% -50%;display:grid;justify-items:center;gap:7px;max-width:190px;text-align:center;padding:15px;border:1px dashed #ffc56d66;border-radius:12px;background:#142133eb;pointer-events:none}
.dw-followup-checkpoint>span{font:24px/1 monospace;color:#ffc56d}
.dw-followup-checkpoint>strong{font:600 12px/1.4 Arial,sans-serif;color:#d4dbe4}
.dw-followup-checkpoint>small{font:10px/1.5 Arial,sans-serif;color:#91aabe}
.dds-worlds[data-connected="true"] .dw-followup-checkpoint{top:83%;padding:9px 14px;gap:4px;border-style:solid;border-color:#74e5b166;background:#0d302feb}
.dds-worlds[data-connected="true"] .dw-followup-checkpoint>span{display:none}
.dds-worlds[data-connected="true"] .dw-followup-checkpoint>strong{color:#a6f1d4}
.dw-followup-checkpoint.just-restored{animation:dw-owner-restored 1s ease both}
dialog.dds-world .dw-node.dw-followup-owner{border-color:#74e5b1;box-shadow:0 0 28px #74e5b12b}
.dw-followup-owner .dw-node-icon{color:#a6f1d4}
.dw-followup-caption{position:absolute;left:0;right:0;bottom:3px;text-align:center;pointer-events:none;font:8px/1.5 monospace;letter-spacing:.1em;color:#8ec3d6}
@keyframes dw-followup-lost{0%{left:18%;top:25%;opacity:0;scale:.6}10%{opacity:1;scale:1}40%{left:48%;top:43%;opacity:.8}65%,100%{left:59%;top:52%;opacity:0;scale:.3}}
@keyframes dw-followup-connected{0%{left:15%;top:30%;opacity:0}5%{opacity:1}30%{left:38%;top:52%;opacity:1}60%{left:62%;top:30%;opacity:1}92%{left:85%;top:52%;opacity:1}100%{left:85%;top:52%;opacity:0}}
@keyframes dw-owner-restored{from{opacity:0;translate:-50% calc(-50% + 15px)}to{opacity:1;translate:-50% -50%}}
@media(max-width:480px){.dw-followup-checkpoint{max-width:130px;padding:10px;gap:5px}.dw-followup-checkpoint>strong{font-size:10px}.dw-followup-checkpoint>small{font-size:8px}.dds-worlds[data-connected="true"] .dw-followup-checkpoint{padding:7px 10px}.dw-followup-caption{font-size:6px;letter-spacing:.03em}.dw-followup-signals>i{width:6px;height:6px}}
@media(prefers-reduced-motion:reduce){.dw-followup-signals{display:none}.dw-followup-checkpoint.just-restored{animation:none!important}}

/* Quiet system heartbeat; stronger feedback belongs to deliberate handoffs. */
.dds-worlds[data-chapter="2"] .dw-stage:not(.dw-running):not(.dw-stalled) .dw-node.is-selected{
 animation:dw-module-arrive .7s cubic-bezier(.2,.8,.2,1) both,dw-module-heartbeat 4.8s .7s ease-in-out infinite;
}
.dds-worlds[data-chapter="2"] .dw-stage:not(.dw-stalled) .dw-flow{
 animation:dw-stream 5s linear infinite,dw-link-heartbeat 4.8s var(--path-beat,0s) ease-in-out infinite;
}
.dw-restoration-wave{position:absolute;inset:0;overflow:hidden;border-radius:inherit;z-index:4;pointer-events:none;animation:dw-wave-lifetime 1.65s linear both}
.dw-restoration-wave:before{content:'';position:absolute;left:50%;top:48%;width:200px;height:200px;translate:-50% -50%;border-radius:50%;background:radial-gradient(circle,transparent 22%,#74e5b13d 42%,#50dcff24 55%,transparent 72%);animation:dw-restoration-spread 1.65s cubic-bezier(.15,.7,.2,1) both}
.dw-restoration-wave[data-wave="handoff"]:before{background:radial-gradient(circle,transparent 22%,#50dcff30 42%,#b39aff18 55%,transparent 72%)}
.dw-restoration-wave[data-wave="restored"]:before{background:radial-gradient(circle,transparent 22%,#ffc56d30 42%,#74e5b128 55%,transparent 72%)}
.dw-stage:has(>.dw-restoration-wave) .dw-node.is-selected{animation:dw-restoration-node 1.65s ease both}
.dw-stage:has(>.dw-restoration-wave) .dw-track{animation:dw-restoration-link 1.65s ease both}
@keyframes dw-module-heartbeat{0%,45%,100%{box-shadow:0 0 20px #b39aff19}58%{box-shadow:0 0 33px #b39aff45}70%{box-shadow:0 0 20px #b39aff19}78%{box-shadow:0 0 27px #50dcff2a}}
@keyframes dw-link-heartbeat{0%,45%,100%{opacity:.45}58%,78%{opacity:1}70%{opacity:.55}}
@keyframes dw-restoration-spread{0%{scale:.1;opacity:0}15%{opacity:.95}75%{opacity:.4}100%{scale:5.5;opacity:0}}
@keyframes dw-restoration-node{0%,100%{filter:brightness(1)}35%{filter:brightness(1.5)}}
@keyframes dw-restoration-link{0%,100%{opacity:.3;stroke-width:1}35%{opacity:1;stroke-width:2}}
@keyframes dw-wave-lifetime{from{opacity:1}to{opacity:1}}
@media(prefers-reduced-motion:reduce){
 .dds-worlds[data-chapter="2"] .dw-stage .dw-node.is-selected,.dds-worlds[data-chapter="2"] .dw-stage .dw-flow,.dw-stage .dw-track{animation:none!important}
 .dw-restoration-wave{display:none!important}
}

/* Distinct entrances happen inside the scene, keeping navigation steady. */
.dw-changing .dw-stage[data-entry]{animation:none!important}
.dw-chapter-entry{position:absolute;inset:0;z-index:4;pointer-events:none;overflow:hidden;border-radius:inherit;animation:dw-entry-lifetime 1.65s linear both}
.dw-entry-build>i{position:absolute;left:calc(20% + mod(var(--piece),2)*60%);top:calc(25% + mod(round(down,var(--piece)/2),2)*50%);width:22px;height:16px;border:1px solid #b39affaa;background:#b39aff25;box-shadow:0 0 14px #b39aff22;animation:dw-piece-dock 1.2s calc(var(--piece)*.035s) cubic-bezier(.2,.7,.2,1) both}
dialog.dds-world .dw-stage[data-entry="build"] .dw-node{animation:dw-build-node-resolve 1.1s var(--entry-delay) cubic-bezier(.2,.8,.2,1) both!important}
.dw-stage[data-entry="build"] .dw-core{animation:dw-build-core-resolve 1.25s .15s ease both!important}
.dw-entry-knowledge>i{position:absolute;left:calc(15% + var(--piece)*13%);top:calc(25% + mod(var(--piece),3)*22%);width:28px;height:18px;border:1px solid #cbb5ff99;border-radius:3px;background:repeating-linear-gradient(0deg,#b39aff22 0 1px,transparent 1px 5px);animation:dw-knowledge-resolve 1.25s calc(var(--piece)*.04s) ease both}
.dw-stage[data-entry="knowledge"] .dw-knowledge-fragment{animation:dw-source-resolve 1.15s var(--fragment-delay) ease both!important}
.dw-stage[data-entry="knowledge"] .dw-links{animation:dw-knowledge-lines 1.35s ease both}
.dw-friction-sweep{position:absolute;left:0;right:0;top:0;height:2px;background:linear-gradient(90deg,transparent,#f18bbd 25%,#ffe7f3 50%,#f18bbd 75%,transparent);box-shadow:0 0 20px #f18bbd88,0 -18px 45px #f18bbd33;animation:dw-friction-scan 1.35s ease-in-out both}
.dw-friction-sweep:before{content:'';position:absolute;bottom:0;left:0;right:0;height:85px;background:linear-gradient(transparent,#f18bbd15)}
dialog.dds-world .dw-stage[data-entry="friction"] .dw-node{animation:dw-friction-node-resolve .7s var(--entry-delay) ease both!important}
@keyframes dw-entry-lifetime{from{opacity:1}to{opacity:1}}
@keyframes dw-piece-dock{0%{translate:var(--start-x) var(--start-y);rotate:45deg;opacity:0;scale:.5}25%{opacity:.85}75%{translate:0 0;rotate:0deg;opacity:.8;scale:1}100%{translate:0 0;opacity:0;scale:.4}}
@keyframes dw-build-node-resolve{from{translate:var(--entry-x) var(--entry-y);scale:.4;opacity:0;filter:blur(5px)}to{translate:0 0;scale:1;opacity:1;filter:none}}
@keyframes dw-build-core-resolve{from{scale:.2;opacity:0;filter:blur(8px)}to{scale:1;opacity:1;filter:none}}
@keyframes dw-knowledge-resolve{0%{translate:0 24px;scale:.7;opacity:0;filter:blur(5px)}35%{opacity:.6}100%{translate:0 -12px;scale:1.2;opacity:0;filter:none}}
@keyframes dw-source-resolve{from{opacity:0;filter:blur(9px);scale:.8}to{opacity:.85;filter:none;scale:1}}
@keyframes dw-knowledge-lines{from{opacity:0;filter:blur(4px)}to{opacity:1;filter:none}}
@keyframes dw-friction-scan{0%{top:0;opacity:0}10%,85%{opacity:1}100%{top:100%;opacity:0}}
@keyframes dw-friction-node-resolve{from{opacity:0;filter:blur(6px);scale:.9}to{opacity:1;filter:none;scale:1}}
@media(max-width:480px){.dw-entry-build>i{width:15px;height:12px}.dw-entry-knowledge>i{width:20px;height:14px}}
@media(prefers-reduced-motion:reduce){.dw-chapter-entry{display:none!important}.dw-stage[data-entry] *{animation:none!important}}

/* Reality slider: the same records and connections physically change position. */
.dw-reality-morph{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse,#f18bbd0c,transparent 70%)}
.dw-morph-field{position:absolute;inset:0;background:radial-gradient(ellipse,#74e5b124,transparent 75%);opacity:.5}
.dw-morph-state{position:absolute;top:12px;left:16px;right:16px;text-align:center;margin:0;color:#bce7d5;font:9px/1.5 monospace;letter-spacing:.1em;pointer-events:none}
.dds-worlds[data-chapter="3"] .dw-stage:after{opacity:.2}
dialog.dds-world .dw-node.dw-morph-record{width:clamp(76px,8.3vw,120px);min-height:105px;gap:7px;transition:border-color .2s,background .2s;transform:translate(-50%,-50%);background:linear-gradient(140deg,#18332f,#101f31)}
.dw-morph-detail{display:block;font:9px/1.4 Arial,sans-serif;color:#a4c1bd}
.dds-worlds[data-chapter="3"] .dw-links{z-index:1}
.dds-worlds[data-chapter="3"] .dw-flow{animation-duration:4s}
@media(max-width:480px){
 dialog.dds-world .dw-node.dw-morph-record{width:62px;min-height:92px;padding:8px 4px;gap:6px}
 .dw-morph-record strong{font-size:9px}.dw-morph-detail{font-size:7px}
 .dw-morph-state{font-size:7px;letter-spacing:.04em}
}
@media(prefers-reduced-motion:reduce){.dw-morph-record{transition:none!important}}

/* Travel along one connection; chapter cards and destination navigation stay still. */
.dw-stage.dw-camera-travel{animation:none!important}
.dw-camera-transition{position:absolute;inset:0;z-index:5;pointer-events:none;overflow:hidden;border-radius:inherit;animation:dw-camera-lifetime 1.35s linear both}
.dw-camera-departure{position:absolute;inset:25px 0 34px;transform-origin:center;pointer-events:none;animation:dw-camera-leave .8s cubic-bezier(.4,0,.2,1) both;background:linear-gradient(130deg,#0a1b2ce8,#06111dd9)}
.dw-camera-departure *{pointer-events:none!important;animation-play-state:paused!important}
.dw-camera-route{position:absolute;inset:0;width:100%;height:100%;transform:scaleX(var(--travel-direction));overflow:visible}
.dw-camera-route path{fill:none;stroke:var(--travel-color,#50dcff);vector-effect:non-scaling-stroke}
.dw-camera-route-base{stroke-width:1;opacity:.35;animation:dw-camera-route-fade 1.35s both}
.dw-camera-route-flow{stroke-width:3;stroke-dasharray:13 87;stroke-dashoffset:16;filter:drop-shadow(0 0 7px var(--travel-color));animation:dw-camera-flow 1.2s ease-in-out both}
.dw-camera-signal{position:absolute;width:12px;height:12px;translate:-50% -50%;border-radius:50%;background:#edfcff;box-shadow:0 0 16px #fff,0 0 45px var(--travel-color);animation:dw-camera-signal-travel 1.2s cubic-bezier(.3,0,.2,1) both}
.dw-camera-thread{position:absolute;left:16px;right:16px;bottom:48px;text-align:center;font:9px/1.5 monospace;letter-spacing:.12em;text-transform:uppercase;color:#cef3ff;animation:dw-camera-thread-fade 1.35s both}
.dw-stage.dw-camera-travel>.dw-scene{animation:dw-camera-arrive 1.25s cubic-bezier(.2,.7,.2,1) both}
.dw-stage.dw-camera-travel>.dw-atmosphere{animation:dw-camera-depth 1.3s ease both}
@keyframes dw-camera-lifetime{from{opacity:1}to{opacity:1}}
@keyframes dw-camera-leave{0%{opacity:1;transform:none;filter:none}100%{opacity:0;transform:translateX(calc(var(--travel-direction)*-65%)) scale(1.35);filter:blur(5px)}}
@keyframes dw-camera-arrive{0%,15%{opacity:0;transform:translateX(calc(var(--camera-direction)*45%)) scale(.8)}60%{opacity:.8}100%{opacity:1;transform:none}}
@keyframes dw-camera-depth{0%{scale:1.3;opacity:.12}100%{scale:1;opacity:.5}}
@keyframes dw-camera-flow{0%{stroke-dashoffset:16;opacity:0}15%{opacity:1}85%{opacity:1}100%{stroke-dashoffset:-100;opacity:0}}
@keyframes dw-camera-route-fade{0%,100%{opacity:0}25%,75%{opacity:.4}}
@keyframes dw-camera-signal-travel{
 0%{left:calc(50% - var(--travel-direction)*55%);top:75%;opacity:0;scale:.6}
 12%{opacity:1}35%{left:calc(50% - var(--travel-direction)*20%);top:48%}
 60%{left:calc(50% + var(--travel-direction)*10%);top:49%;scale:1.25}
 85%{opacity:1}100%{left:calc(50% + var(--travel-direction)*55%);top:48%;opacity:0;scale:.6}
}
@keyframes dw-camera-thread-fade{0%,100%{opacity:0}25%,65%{opacity:.7}}
@media(max-width:480px){.dw-camera-signal{width:8px;height:8px}.dw-camera-thread{font-size:7px}}
@media(prefers-reduced-motion:reduce){.dw-camera-transition{display:none!important}.dw-stage.dw-camera-travel>.dw-scene,.dw-stage.dw-camera-travel>.dw-atmosphere{animation:none!important}}

/* Local exploration belongs beside the existing chapter controls. */
.dw-local-progress{position:relative;z-index:5;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px clamp(18px,4vw,64px);background:#06101d;color:#89a8be}
.dw-local-meta{font:8px/1.5 monospace;letter-spacing:.1em}
.dw-local-details{position:relative}
.dw-local-details>summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;padding:6px 10px;border:1px solid #476d8055;border-radius:5px;background:#102438;color:#bde9f2}
.dw-local-details>summary::-webkit-details-marker{display:none}
.dw-local-details>summary:after{content:'+';font:14px/1 monospace;color:#85dced}
.dw-local-details[open]>summary:after{content:'−'}
.dw-local-details>summary strong{font:700 16px/1 Arial,sans-serif;color:#9ee9f6;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.dw-local-details>summary span{font:8px/1.5 monospace;letter-spacing:.05em}
.dw-local-details>summary:focus-visible{outline:2px solid #50dcff;outline-offset:3px}
.dw-local-menu{position:absolute;right:0;bottom:calc(100% + 8px);width:300px;max-width:calc(100vw - 32px);padding:18px;box-sizing:border-box;border:1px solid #46758d;border-radius:8px;background:#0b1c2ef5;backdrop-filter:blur(16px);box-shadow:0 12px 40px #0008;color:#c9deed}
.dw-local-menu>p:first-child{font:10px/1.5 monospace;letter-spacing:.1em;color:#9fe2ef;margin:0 0 8px}
.dw-local-help{font:11px/1.6 Arial,sans-serif;color:#92b0c6;margin:0 0 12px}
.dw-local-list{display:grid;gap:6px}
dialog.dds-world .dw-local-list button{display:block;text-align:left;width:100%;min-height:38px;padding:9px 12px;background:#132b40;border:1px solid color-mix(in srgb,var(--local-color) 40%,#20364a);border-radius:4px;color:var(--local-color);font:10px/1.5 monospace;box-shadow:none}
dialog.dds-world .dw-local-list button:hover{background:#1b3b53;border-color:var(--local-color)}
.dw-local-progress.is-complete .dw-local-details>summary strong{color:#9af1c4}
.dw-strip.dw-local-complete .dw-card:after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(100deg,transparent,#7fe5d233,transparent);opacity:0;animation:dw-exploration-complete 1.4s ease both}
.dw-strip.dw-local-complete .dw-card:nth-child(2):after{animation-delay:.12s}
.dw-strip.dw-local-complete .dw-card:nth-child(3):after{animation-delay:.24s}
.dw-strip.dw-local-complete .dw-card:nth-child(4):after{animation-delay:.36s}
.dw-strip.dw-local-complete .dw-card:nth-child(5):after{animation-delay:.48s}
@keyframes dw-exploration-complete{0%{opacity:0;translate:-25% 0}45%{opacity:1}100%{opacity:0;translate:25% 0}}
@media(max-width:767px){
 .dw-local-progress{padding:5px 12px;gap:8px}
 .dw-local-meta{font-size:7px;letter-spacing:.04em}
 .dw-local-details>summary{min-height:36px;padding:3px 8px;box-sizing:border-box}
 .dw-local-details>summary span{font-size:7px}
 dialog.dds-world .dw-local-list button{min-height:44px}
}
@media(prefers-reduced-motion:reduce){.dw-strip.dw-local-complete .dw-card:after{animation:none!important}}
