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

/* 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 windows: each window's sprite (assets/win-<id>.png, light as alpha) masks the colour the engine gives it, over
   the face's bare FR4, at the engine's level by opacity */
.panel2d { isolation: isolate; }
.p2-win { position: absolute; pointer-events: none; opacity: 0; z-index: 1; }
.p2-win { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.p2 { z-index: 2; }

/* the keys under the panel: the event played by hand into TRUTH and DEED, as wide as the panel */
.keys {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; margin: 0.8rem auto 0;
  width: min(100%, calc(80vh * var(--panel-ratio)), var(--panel-max), calc(100cqw * 128.5 / 101.3 * var(--panel-ratio)));
}
@media (max-width: 900px) {
  .keys { width: min(100%, calc(80vh * var(--panel-ratio)), var(--panel-max-narrow)); }
}
.keys button {
  font: 600 0.82rem/1 "Poppins", system-ui, sans-serif; color: var(--ink); touch-action: none;
  background: rgba(12, 11, 9, 0.82); border: 1px solid var(--s-line); border-radius: 0;
  padding: 0.7rem 0 0.5rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.keys button span { font: 400 0.62rem/1 "Space Mono", ui-monospace, monospace; color: var(--dim); }
.keys button:hover { border-color: var(--accent); color: var(--accent-hi); }
.keys button.down { border-color: var(--accent); background: var(--accent); color: var(--screen); }
.keys button.down span { color: var(--screen); }

/* beside the panel: the five staves, the status and the quiet line */
#scope { display: block; width: 100%; height: 230px; }
.status { min-height: 2.8em; }
.readout { min-height: 5.6em; font: 400 0.74rem/1.4 "Space Mono", ui-monospace, monospace; color: var(--ink); }
#patch-note { min-height: 7.5em; }
