/* The scene layer. It scrolls with the page (scene coordinates are page coordinates),
   never intercepts input and is hidden from assistive technology. */
#visual-stage {
  position: absolute; top: 0; left: 0; z-index: -1; width: 100%; height: 100dvh;
  overflow: hidden; pointer-events: none; contain: layout paint style;
}
#visual-stage svg { display: block; overflow: visible; }
/* Outer pieces are flat tiles separated by gutters; only the stage card carries an ink outline. */
.pp-face { stroke-width: 2.5; stroke-linejoin: round; } /* seams in the backdrop's own colour */
.pp-outline { stroke-width: 3; stroke-linejoin: round; }
.pp-token { stroke-width: 3; }
.pp-token-ring { fill: none; stroke-width: 2.5; }
.pp-token-text { font: 800 16px "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -.02em; }
.pp-frames path { stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pp-echo path, .pp-rings path { stroke-linecap: round; }
@media (max-width: 700px) { .pp-outline { stroke-width: 2.5; } .pp-token { stroke-width: 2.4; } }

/* Interlocking control pieces drawn inside primary buttons (Create: tab, Join: socket). */
.visual-piece { position: absolute; inset: -3px; z-index: -1; width: calc(100% + 6px); height: calc(100% + 6px); overflow: visible; pointer-events: none; }
.visual-piece-shadow { fill: var(--ink); transform: translate(var(--offset, 5px), var(--offset, 5px)); }
.visual-piece-body { fill: var(--piece-fill); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }

@media (forced-colors: active) { #visual-stage, .visual-piece { display: none; } }
