.stage { position: relative; display: flex; flex-wrap: wrap; gap: clamp(2.2rem, 7vw, 5.5rem); padding-bottom: 3.6rem; }
.stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; color: var(--ink); }
.stage .cable { fill: none; stroke-width: 5; stroke-linecap: round; }
.stage .pulse { stroke: var(--paper); stroke-width: 2.5; }
.box { flex: 1 1 11.5rem; height: 11.5rem; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--panel); position: relative; }
.box iframe { width: 100%; height: 100%; border: 0; display: block; }
.box.gone { border-style: dashed; background: transparent; }
.box.gone::after { content: "gone"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 var(--step-1) var(--display); color: var(--muted); }
.box .here { padding: 0.7rem 0.8rem; }
.box .here h4 { font: 800 1rem/1.1 var(--display); margin: 0 0 0.5rem; }
.box .here .log { font-size: 12px; max-height: none; }
.box .here .log li { padding: 0.15rem 0; }
.controls { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.4rem; }
.controls .reset { margin-left: auto; border-color: transparent; }
.pattern { display: grid; gap: 1.2rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 2px solid var(--ink); }
.pattern h2 { font-size: var(--step-2); max-width: 22ch; }
.pattern .text { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; }
.census { border-collapse: collapse; width: 100%; min-width: 38rem; font-size: var(--step--1); }
.census th, .census td { text-align: left; padding: 0.6rem 0.8rem 0.6rem 0; border-top: 1px solid var(--line); vertical-align: top; }
.census thead th { border-top: 0; font-family: var(--display); font-size: var(--step-0); }
.census tbody th { font-weight: 400; max-width: 24rem; }
.census tbody th code { display: block; font-weight: 700; font-size: 0.95rem; background: none; padding: 0; }
.census td.no { color: var(--muted); }
.stepper { position: sticky; bottom: 0.4rem; z-index: 3; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; padding: 0.55rem 0.7rem; margin-top: 0.2rem; display: grid; gap: 0.5rem; }
.stepper:has(.steps[hidden]) { border-color: transparent; padding-inline: 0; }
.caption { margin: 0; min-height: 2.9em; font-size: var(--step--1); max-width: none; }
.caption:empty { visibility: hidden; }
.steps { display: flex; gap: 0.5rem; }
.steps[hidden] { display: none; }
.steps .fwd { flex: 1; text-align: center; font-weight: 700; }
.controls .own { flex-basis: 100%; }
.caption .step { font: 700 0.75rem/1 var(--mono); background: var(--ink); color: var(--paper); padding: 0.25em 0.5em; border-radius: 999px; margin-right: 0.35em; }
.controls button.next { outline: 3px solid var(--accent); outline-offset: 3px; }
.controls .reset + .reset { margin-left: 0; }
