/* QUAVER'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 hand's hot amber, the kept phrase's cool blue, KEYS's violet. */

/* 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 keys' lights: each a glow (a piece of assets/lights.png, light as alpha) in its own colour over the face's bare FR4, at the
   engine's level. Since 21 Nov 2026 (the user: "LEDs up, over tan", then no gain; mockups/fr4-tan/BRIEF.md) in two: in a key's glass
   (.p2-win) its LEDs covering the tan, laid plainly over (its brightest channel the opacity), no screen; its bloom on the face round it
   (.p2-glow) screened, as before, so neighbours' blooms add as light does. The engine's levels never strobe, and a short ease here
   takes the last edge off a frame's step */
.panel2d { isolation: isolate; }
.p2-win, .p2-glow { position: absolute; pointer-events: none; opacity: 0; z-index: 2; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; transition: opacity 30ms linear; }
.p2-glow { mix-blend-mode: screen; }
@media (prefers-reduced-motion: reduce) { .p2-win, .p2-glow { transition: opacity 400ms linear; } }
.p2 { z-index: 4; }
.p2-button:focus-visible { outline: 2px solid rgba(212, 175, 55, 0.7); outline-offset: 2px; border-radius: 50%; }

/* TURN's playing area: the knob and the arc of keys round it; the knob itself lets the drag through to it */
.p2-arc { position: absolute; z-index: 3; border-radius: 50%; clip-path: circle(50%); cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; }
.p2-arc.held { cursor: grabbing; }
.p2-arc:focus-visible { outline: 2px solid rgba(212, 175, 55, 0.55); outline-offset: -6px; }
.p2-turn { pointer-events: none; }
.p2-turn.held svg { filter: drop-shadow(0 0 0.35em rgba(255, 160, 60, 0.45)) drop-shadow(0.06em 0.12em 0.12em rgba(0, 0, 0, 0.7)); }

/* beside the panel: what it's doing in plain words, the last eight seconds of the voice's pitch, the voice itself */
#scope { display: block; width: 100%; height: 160px; }
.status { min-height: 2.8em; }
.readout { min-height: 3em; font: 400 0.74rem/1.4 "Space Mono", ui-monospace, monospace; color: var(--ink); }
#patch-note { min-height: 9.5em; }
@media (max-width: 720px) { #patch-note { min-height: 12.5em; } }
