/* MOTH's page: the shared skin and stage are ../module.css (site/public/module.css); this is only what's its own. The page is gold
   like every module's; only the panel's own lights keep their colour: the contacts' white. */

/* 20 HP at the line's scale */
.stage { --panel-ratio: 101.3 / 128.5; --panel-max: 560px; --panel-max-narrow: 520px; overflow-x: clip; }
.stage:focus { outline: none; }

/* the contacts: the windows' light, drawn from the mockup's polygons over the face's bare FR4, and a soft copy of it behind */
.panel2d { isolation: isolate; }
.p2-wins, .p2-glow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; fill: #fff7e6; }
.p2-wins { z-index: 1; }
.p2-glow { z-index: 1; filter: blur(0.25em); opacity: 0.55; }
.p2 { z-index: 2; }

/* the moth, riding the wire, and the place a hand takes hold; the page mustn't scroll under a thumb that's on it */
.p2-moth { position: absolute; z-index: 3; pointer-events: none; user-select: none; -webkit-user-drag: none; will-change: transform; max-width: none; }
.p2-wire { position: absolute; z-index: 4; touch-action: none; cursor: grab; }
.p2-wire.held { cursor: grabbing; }
.p2-wire:focus-visible { outline: 2px solid rgba(212, 175, 55, 0.7); outline-offset: -2px; }

/* beside the panel: the relays as a logic trace */
#scope { display: block; width: 100%; height: 190px; }
.status { min-height: 2.8em; }
.readout { min-height: 2.8em; font: 400 0.74rem/1.4 "Space Mono", ui-monospace, monospace; color: var(--ink); }
#patch-note { min-height: 7.2em; }
