/* THE LIGHT, THE KIT'S ONE (kit-light.js; Maayan, 2026-11-11: "generators need to have a light source"): the lit
   picture's canvas over its picture, twice its size so its shadows have room, the picture itself hidden while lit
   (no light: the picture as made); the lights' handles over the picture's box, each the kit's icon button (gold:
   chosen), dragged anywhere on it; each light's tile (its name, its on/off) where the page puts it. Every value a token. */
.g-light__canvas { position: absolute; left: -50%; top: -50%; width: 200%; height: 200%; z-index: 1; pointer-events: none; }
[data-lit] > .g-light-src { visibility: hidden; }
.g-light__pad { position: relative; z-index: 2; pointer-events: none; }
.g-light__pad > .g-iconbtn { position: absolute; translate: -50% -50%; pointer-events: auto; touch-action: none; cursor: grab; box-shadow: var(--g-shadow); }
.g-light__pad > .g-iconbtn:not([aria-pressed="true"]) { background: var(--g-surface); color: var(--g-text); }   /* chosen: the kit's gold */
.g-light__pad > .g-iconbtn:active { cursor: grabbing; }
/* drawn as near as it is (--light-d, kit-light.js: far small, near large); its tap a finger's size still, however small */
.g-light__pad > .g-iconbtn { scale: var(--light-d, 1); }
.g-light__pad > .g-iconbtn::after { content: ""; position: absolute; inset: min(0px, calc((1 - 1 / var(--light-d, 1)) * var(--g-touch) / 2)); }
/* its depth: a thin line from it down to its spot on the floor, a dot there (the chosen one's gold); as thin at every zoom */
.g-light__stem { position: absolute; width: var(--g-stroke); translate: -50% 0; scale: calc(1 / var(--mp-z, 1)) 1; background: var(--g-text-3); pointer-events: none; }
.g-light__stem::after { content: ""; position: absolute; left: 50%; bottom: calc(var(--g-2) / -2); width: var(--g-2); aspect-ratio: 1; translate: -50% 0; border-radius: var(--g-r-round); background: inherit; }
.g-light__stem.is-up::after { bottom: auto; top: calc(var(--g-2) / -2); }
.g-light__stem.is-chosen { background: var(--g-btn-gold); }
/* found in the picture (a flame, a wand's tip): marked by a dashed gold ring, moved or deleted like the others */
.g-light__pad > [data-light-found] { outline: var(--g-stroke) dashed var(--g-btn-gold); outline-offset: var(--g-hair); }
.g-light__pad > [data-light-found]:not([aria-pressed="true"]) { background: transparent; box-shadow: none; }   /* the flame seen through it */
/* a light's tile (ui/LightTile.astro): its icon and name to choose it, its own on/off; the chosen one gold */
.g-lighttile { position: relative; display: flex; align-items: center; gap: var(--g-1); min-width: 0; border-radius: var(--g-r-sm); background: var(--g-fill); color: var(--g-text); }
.g-lighttile:has(.g-lighttile__pick[aria-pressed="true"]) { background: var(--g-btn-gold); color: var(--g-on-btn-gold); }
.g-lighttile__pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--g-1); min-height: var(--g-touch); padding: 0 var(--g-2); border: 0; background: none; color: inherit; font: inherit; font-size: var(--g-t-title3); font-weight: var(--g-w-bold); cursor: pointer; }
.g-lighttile__i svg { display: block; width: var(--g-icon); height: var(--g-icon); stroke-width: var(--g-icon-stroke); fill: none; stroke: currentColor; }
.g-lighttile .g-switch { min-height: 0; }
.g-lighttile__cog { flex: none; display: grid; place-items: center; width: var(--g-touch); height: var(--g-touch); padding: 0; border: 0; border-inline-start: var(--g-hair) solid var(--g-separator); background: none; color: inherit; cursor: pointer; }
.g-lighttile__cog svg { display: block; width: var(--g-icon); height: var(--g-icon); }
.g-light__pad--over { position: absolute; inset: 0; }   /* over a picture's own box (a maker's Image box) */
