/* ENTIRE HISTORY'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 history's cool white,
   the kept stretches' warm, REC's red, the meters' amber and red (on the panel and in the readout). */

/* 16 HP at the line's scale */
.stage { --panel-ratio: 80.98 / 128.5; --panel-max: 447.5px; --panel-max-narrow: 415.5px; overflow-x: clip; }
.stage:focus { outline: none; }

/* the windows: each window's sprite (assets/win-<shape>.png, light as alpha) masks the colour the engine gives it,
   over the face's bare FR4, at the engine's level by opacity; the ring's bars turned to their angles */
.panel2d { isolation: isolate; }
.p2-win { position: absolute; pointer-events: none; opacity: 0; z-index: 1; transform-origin: 50% 50%; }
.p2-win { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.p2 { z-index: 2; }

/* KEEP, SHOW and ERASE: the cap sinks while it's down (ERASE's too while the rack's hand holds it) */
.p2-button .eh-cap, .p2-erase .eh-cap { transform-box: fill-box; transform-origin: 50% 50%; transition: transform 50ms; }
.p2-button.held .eh-cap, .p2-erase.held .eh-cap, .p2-erase.hand .eh-cap { transform: scale(0.9); }
.p2-erase.held svg, .p2-erase.hand svg { filter: drop-shadow(0 0 0.35em rgba(212, 175, 55, 0.75)); }

/* beside the panel: the strip of the history and the meters, the last thing that happened, the quiet line, the WAVs */
#scope { display: block; width: 100%; height: 172px; }
.status { min-height: 2.8em; }
.readout { min-height: 2.8em; font: 400 0.74rem/1.4 "Space Mono", ui-monospace, monospace; color: var(--ink); }
.kept { margin-top: 8px; display: grid; gap: 4px; text-align: center; }
.kept-wav { font: 400 0.74rem/1.4 "Space Mono", ui-monospace, monospace; color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.kept-wav:first-child { font-weight: 700; }
.kept-wav:hover { text-decoration: underline; }
#patch-note { min-height: 7.4em; }
