/* pa200 Glass mist gate and moving stars (INV-21 Acrylic Glass · Luxe; the gate from INV-03 W2 A1994, the stars W1.1 A2773).
   The gate has no picture of its own: section.js shows each pane's fixed mist (the skin's .k-ag-mist) only while the pane is
   within half a screen of view; the rule it switches lives in the skin (html.ag-gated .k-ag-mist:not(.is-near)::before).
   The stars: one fixed field, 100lvh from the top (AG-T348), right after the wall and under every pane; each star is the
   kit's one picture (--ag-star, the wall's old pin-point at 1.2x), on two eased drifts and a twinkle (AG-T350). Opacity,
   translate, transform and scale only, so nothing repaints. */
.pa200 { display: none; }
.pa200-stars { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1; overflow: hidden; pointer-events: none;
  opacity: 0; transition: opacity .6s ease-out; } /* W2: 0.6 s (was 1.4): the opener's stars have just gone */
.pa200-stars.is-on { opacity: 1; }
.pa200-stars i { position: absolute; left: var(--pa200-x); top: var(--pa200-y); width: var(--pa200-z); height: var(--pa200-z);
  margin: calc(var(--pa200-z) / -2) 0 0 calc(var(--pa200-z) / -2); background: var(--ag-star) center / 100% 100% no-repeat; opacity: var(--pa200-a);
  animation: pa200-a var(--pa200-at) ease-in-out var(--pa200-ad) infinite alternate, pa200-b var(--pa200-bt) ease-in-out var(--pa200-bd) infinite alternate,
    pa200-tw var(--pa200-tt) ease-in-out var(--pa200-td) infinite alternate; }
.pa200-stars.is-still i, .pa200-stars.is-still b { animation-play-state: paused; }
@keyframes pa200-a { from { translate: calc(var(--pa200-ax) * -1) calc(var(--pa200-ay) * -1); } to { translate: var(--pa200-ax) var(--pa200-ay); } }
@keyframes pa200-b { from { transform: translate(calc(var(--pa200-bx) * -1), calc(var(--pa200-by) * -1)); } to { transform: translate(var(--pa200-bx), var(--pa200-by)); } }
@keyframes pa200-tw { 0% { opacity: calc(var(--pa200-a) * .55); scale: .8; } 100% { opacity: var(--pa200-a); scale: 1.1; } }
html.kjy-lite .pa200-stars, html.motion-reduce .pa200-stars { display: none; }
@media (prefers-reduced-motion: reduce) { .pa200-stars { display: none; } }

/* W2.2 (A2802), the owner's micro effects. Warm haze: a few soft wisps of warm air in the stars' field (under every pane), each
   drifting and breathing on its own slow clock; --pa200-haze is the strength (1 = as built). */
.pa200-stars { --pa200-haze: 1; }
.pa200-stars b { position: absolute; left: var(--pa200-hx); top: var(--pa200-hy); width: var(--pa200-hs); height: calc(var(--pa200-hs) * .62);
  margin: calc(var(--pa200-hs) * -.31) 0 0 calc(var(--pa200-hs) * -.5); border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 224 176 / calc(.26 * var(--pa200-ha) * var(--pa200-haze))), rgb(255 224 176 / calc(.1 * var(--pa200-ha) * var(--pa200-haze))) 58%, rgb(255 224 176 / 0));
  animation: pa200-hd var(--pa200-ht) ease-in-out var(--pa200-hd) infinite alternate, pa200-hb var(--pa200-hbt) ease-in-out var(--pa200-hbd) infinite alternate; }
@keyframes pa200-hd { from { translate: calc(var(--pa200-hdx) * -1) calc(var(--pa200-hdy) * -1); } to { translate: var(--pa200-hdx) var(--pa200-hdy); } }
@keyframes pa200-hb { from { opacity: .35; } to { opacity: 1; } }

/* the stars gather round the reply's gold "Thank you" after a fresh Send: in from a little further out, a twinkle, up and away */
.pa200-gather { position: absolute; inset: 0; z-index: 3; overflow: visible; pointer-events: none; }
.pa200-gather i { position: absolute; left: var(--pa200-x); top: var(--pa200-y); width: var(--pa200-z); height: var(--pa200-z);
  margin: calc(var(--pa200-z) / -2) 0 0 calc(var(--pa200-z) / -2); background: var(--ag-star) center / 100% 100% no-repeat; opacity: 0;
  animation: pa200-gather 2.6s cubic-bezier(.3, 0, .25, 1) var(--pa200-gd) both; }
@keyframes pa200-gather {
  0% { opacity: 0; scale: .4; translate: var(--pa200-fx) var(--pa200-fy); }
  32% { opacity: 1; scale: 1.05; translate: 0 0; }
  48% { opacity: .75; scale: .8; }
  62% { opacity: 1; scale: 1.1; translate: calc(var(--pa200-ox) * .2) calc(var(--pa200-oy) * .2); }
  100% { opacity: 0; scale: .5; translate: var(--pa200-ox) var(--pa200-oy); } }

/* a glint on a gold bud (the hero's and the closing's sprigs): the stars' own picture, one at a time */
.pa200-glint { position: absolute; left: var(--pa200-gx); top: var(--pa200-gy); width: var(--pa200-gz); height: var(--pa200-gz);
  margin: calc(var(--pa200-gz) / -2) 0 0 calc(var(--pa200-gz) / -2); pointer-events: none; opacity: 0; animation: pa200-glint 1.15s ease-in-out both;
  /* a pale star alone vanished on the light frost (W2.2 look): a warm white core and a soft bloom under its spikes */
  background: var(--ag-star) center / 100% 100% no-repeat,
    radial-gradient(closest-side, rgb(255 254 248) 0%, rgb(255 248 228 / .95) 14%, rgb(255 236 190 / .5) 34%, rgb(255 230 170 / 0) 72%); }
@keyframes pa200-glint { 0% { opacity: 0; scale: .3; rotate: 0deg; } 45% { opacity: .95; scale: 1; } 100% { opacity: 0; scale: .45; rotate: 28deg; } }
html.kjy-lite .pa200-gather, html.kjy-lite .pa200-glint, html.motion-reduce .pa200-gather, html.motion-reduce .pa200-glint { display: none; }

