/* Pixel stars (js/stars.js). Runtime sprite sheets: 8 frames across, 15 px cells,
   row 0 five-point star, row 1 small star, row 2 loose blocks. The frames only move the loose blocks about;
   the tumbling is a stepped rotate on the element, so the blocks turn with the star as in the video.
   --px-star-mask is the shape, filled flat with the live accent; --px-star-sheet is the few dark and grey blocks on top. */
.px-stars{position:fixed;inset:0;z-index:1600;pointer-events:none;overflow:hidden;contain:strict}
/* Sky drifters pass behind the page content (z-index 2) and above the backdrop. */
.px-stars--sky{z-index:1}
/* Over the arrival clip, inside the transition overlay. */
.px-stars--over{position:absolute;z-index:1}
.px-star{position:absolute;left:0;top:0;display:block;width:calc(15px*var(--k,2));height:calc(15px*var(--k,2));margin:calc(-7.5px*var(--k,2)) 0 0 calc(-7.5px*var(--k,2));will-change:transform,translate,rotate,scale,opacity}
.px-star::before{content:"";position:absolute;inset:0;image-rendering:pixelated;
  background:var(--px-star-sheet) 0 calc(-15px*var(--k,2)*var(--row,0))/calc(120px*var(--k,2)) auto no-repeat rgb(var(--accent-rgb,236,72,153));
  -webkit-mask:var(--px-star-mask) 0 calc(-15px*var(--k,2)*var(--row,0))/calc(120px*var(--k,2)) auto no-repeat;
  mask:var(--px-star-mask) 0 calc(-15px*var(--k,2)*var(--row,0))/calc(120px*var(--k,2)) auto no-repeat;
  animation:px-star-frames var(--spin,960ms) steps(8,end) var(--phase,0ms) infinite}
@keyframes px-star-frames{to{background-position-x:calc(-120px*var(--k,2));-webkit-mask-position-x:calc(-120px*var(--k,2));mask-position-x:calc(-120px*var(--k,2))}}
body.motion-paused .px-stars,body.page-hidden .px-stars{display:none}
@media(prefers-reduced-motion:reduce){.px-stars{display:none}}

/* Page transition: the star canvas shares the stinger's overlay. js/stars.js sizes, centres and turns it. */
.page-stinger canvas{position:absolute;image-rendering:pixelated;pointer-events:none;will-change:transform}
.page-stinger canvas[hidden]{display:none}
.page-stinger.is-stars,.page-stinger.is-stars.is-contained{background:transparent;transition:none}
.page-stinger.is-stars video{display:none}
