/* MASTIC'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 light keeps its colour: the lamp through the scratches. */

/* 28 HP at the line's scale, the wider column (as HOPPER's, RIGGED's and STECKER's 28 HP stages) */
.stage { --panel-ratio: 141.94 / 128.5; --panel-max: 784.5px; --panel-max-narrow: 728.5px; overflow-x: clip; }
.stage:focus { outline: none; }
.stage-inner { max-width: 1320px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.stage-hint { max-width: none; }
@media (max-width: 900px) {
  .stage-inner { grid-template-columns: minmax(0, 1fr); }
  .stage-hint { max-width: var(--panel-max-narrow); }
}

/* the object: the plate on a canvas, the frame and its grips on a carriage that slides, the head standing over both */
.panel2d { isolation: isolate; }
.p2-plate { position: absolute; z-index: 1; pointer-events: none; }
.p2-carriage { position: absolute; z-index: 1; pointer-events: none; will-change: transform; }
.p2-frame-img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; filter: drop-shadow(0.15em 0.2em 0.25em rgba(0, 0, 0, 0.75)); }
.p2-face { position: absolute; pointer-events: auto; cursor: crosshair; touch-action: none; }
.p2-face.thumb { cursor: grab; }
.p2-face:focus-visible { outline: 1px solid var(--gold); outline-offset: 1px; }
.p2-grip { position: absolute; pointer-events: auto; cursor: grab; touch-action: none; }
.p2-grip.held { cursor: grabbing; }
.p2-grip:focus-visible { outline: 1px solid var(--gold); outline-offset: -2px; }
.p2-head { position: absolute; z-index: 2; display: block; filter: drop-shadow(0.2em 0.28em 0.3em rgba(0, 0, 0, 0.85)); }
.p2 { z-index: 3; }

/* under the panel: what's in your hand, and the box */
.bench { display: flex; flex-wrap: wrap; gap: 0.4rem; width: min(100%, var(--panel-max)); margin: 0.8rem auto 0; }
.bench button { font: inherit; font-size: 0.78rem; color: var(--dim); background: transparent; border: 1px solid var(--line, rgba(212, 175, 55, 0.3)); border-radius: 2px; padding: 0.26rem 0.7rem; cursor: pointer; }
.bench button:hover { border-color: var(--accent); color: var(--accent-hi); }
.bench button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }

/* beside the panel: the plate, as heard */
#scope { display: block; width: 100%; height: 170px; }
.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: 10.5em; }
