/* FLINCH'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 eyes' 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 eyes: a canvas each (js/panel2d.js adds up the cells' light and exposes it through the window), and the glow round them */
.panel2d { isolation: isolate; }
.p2-eye { position: absolute; pointer-events: none; z-index: 1; display: block; }
.p2-halo { position: absolute; pointer-events: none; z-index: 1; opacity: 0; background: rgb(255, 247, 230);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.p2 { z-index: 3; }

/* the ground it can see: your hand. Under the knobs; a slider for the keyboard; a finger drawn on it doesn't scroll the page */
.p2-air { position: absolute; z-index: 2; touch-action: none; border-radius: 40px; cursor: none; }
.p2-air:focus { outline: none; }
.p2-air:focus-visible { outline: 1.5px solid rgba(212, 175, 55, 0.7); outline-offset: 2px; }
.p2-handbox { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 7; }
.p2-hand, .p2-shadow { position: absolute; display: block; height: auto; max-width: none; opacity: 0; pointer-events: none; }
.p2-shadow { z-index: 0; } .p2-hand { z-index: 1; }

/* beside the panel: what it's doing */
#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; }
