/* HOARD's page: the shared skin and stage are ../module.css (site/public/module.css); this is only what's HOARD's own.
   The page is gold like every module's; only the panel's own lights keep their colour: the jars in MAGIC's amber, red or
   ice blue and their white-hot, and the CAST button's lit cap. */

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

/* the panel's layers over the face: the jars' light, the parts (parts.js, and MAGIC's switch, its words and the CAST
   button), the button's glow, and the bloom round the lit jars screened over everything (the mockup's: a 1.5 mm blur
   at 0.6; js/panel2d.js sets the blur) */
.panel2d { isolation: isolate; }
.p2-jars, .p2-bloom { position: absolute; pointer-events: none; }
.p2-jars { z-index: 1; }
.p2 { z-index: 2; }
.p2-bloom { z-index: 4; mix-blend-mode: screen; opacity: 0.6; }

/* MAGIC's switch and its words, the CAST button: HOARD's own parts, with the knobs' hover; the cap sinks while held */
.p2.p2-toggle[role="slider"] { cursor: pointer; touch-action: manipulation; }
.p2-word { position: absolute; z-index: 2; cursor: pointer; }
.p2-word:hover { box-shadow: inset 0 -2px 0 rgba(212, 175, 55, 0.75); }
.p2-button .hd-cap { transform: scale(1); transition: transform 60ms; }
.p2-button.held .hd-cap { transform: scale(0.93); }
.p2-glow {
  position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; z-index: 3; opacity: 0;
  mix-blend-mode: screen; border-radius: 50%;
}

/* beside the panel: the hoard over the last eight bars, the last thing that happened, the pots and the magic */
#scope { display: block; width: 100%; height: 150px; }
.status { min-height: 1.4em; }
.readout { min-height: 1.4em; font: 400 0.74rem/1.4 "Space Mono", ui-monospace, monospace; color: var(--ink); }
#patch-note { min-height: 7.4em; }
