/* Animated hero for the Privacy page, loaded only by the page that shows it
   (moved out of styles.css so other pages don't download it). */

/* ----------------------------------------------------------- Privacy hero */
/* Animated hero on /privacy: a 24-hour timer runs down beside a room's PDF
   and room code, then the room and its music are deleted. Art is drawn at
   1200x600; public/hero.js scales it via --pv-scale. Rules below are as
   designed. */
.pv-hero{--pv-accent:#4f8cff;--pv-dur:8s;--pv-bg:#f3f5fa;--pv-line:rgba(22,33,58,0.22);--pv-scale:1;position:relative;width:100%;max-width:1200px;aspect-ratio:2/1;margin:0 auto;overflow:hidden;border-radius:16px;background:var(--pv-bg)}
.pv-hero.pv-dark{--pv-bg:#0e1626;--pv-line:rgba(255,255,255,0.22)}
.pv-hero > .pv-prv{position:absolute;left:0;top:0;transform-origin:0 0;transform:scale(var(--pv-scale))}
.pv-prv .pv-fact{animation:pv-fact var(--pv-dur) cubic-bezier(.3,1.3,.5,1) infinite}
.pv-prv .pv-f1{animation-delay:calc(var(--pv-dur) * 0.04)}
.pv-prv .pv-f2{animation-delay:calc(var(--pv-dur) * 0.08)}
@keyframes pv-fact{0%,3%{transform:translateY(14px);opacity:0}8%,92%{transform:translateY(0);opacity:1}97%,100%{transform:translateY(0);opacity:0}}
.pv-prv .pv-arc{animation:pv-arc var(--pv-dur) linear infinite}
@keyframes pv-arc{0%,10%{stroke-dashoffset:0}58%,94%{stroke-dashoffset:var(--c)}100%{stroke-dashoffset:0}}
.pv-prv .pv-clk{animation:pv-clk var(--pv-dur) ease-out infinite}
@keyframes pv-clk{0%,58%{opacity:1;transform:scale(1)}62%,92%{opacity:0;transform:scale(.85)}97%,100%{opacity:1;transform:scale(1)}}
.pv-prv .pv-del{animation:pv-del var(--pv-dur) cubic-bezier(.3,1.5,.5,1) infinite}
@keyframes pv-del{0%,60%{opacity:0;transform:scale(.6)}65%,90%{opacity:1;transform:scale(1)}94%,100%{opacity:0;transform:scale(.9)}}
.pv-prv .pv-music{animation:pv-music var(--pv-dur) ease-in infinite}
@keyframes pv-music{0%,60%{opacity:1;filter:blur(0)}68%,92%{opacity:0;filter:blur(6px)}98%,100%{opacity:1;filter:blur(0)}}
.pv-prv .pv-gone{animation:pv-gone var(--pv-dur) ease-in infinite}
.pv-prv .pv-g1{animation-delay:calc(var(--pv-dur) * 0.015)}
@keyframes pv-gone{0%,59%{opacity:1;transform:scale(1)}65%,93%{opacity:0;transform:scale(.9)}98%,100%{opacity:1;transform:scale(1)}}
.pv-prv .pv-dust{opacity:0;animation:pv-dust var(--pv-dur) ease-out infinite}
@keyframes pv-dust{0%,60%{opacity:0;transform:translate(0,0)}62%{opacity:.9}72%,100%{opacity:0;transform:translate(var(--dx),var(--dy))}}
.pv-prv .pv-link{animation:pv-link var(--pv-dur) ease-in infinite}
@keyframes pv-link{0%,59%{opacity:1}64%,93%{opacity:0}98%,100%{opacity:1}}
.pv-chip-lead{background:#16213a;color:#ffffff}
/* Site integration, matching the other heroes: no background, soft edge
   fades, cropped to the 1040x560 area around the artwork (hero.js reads
   --pv-view-w), larger labels, and hidden until scaled. Light
   theme uses the art's own light-mode connector color. */
.legal .pv-hero {
  margin: 0 auto 24px;
  aspect-ratio: 1040 / 560;
  --pv-bg: transparent;
  --pv-view-w: 1040;
  --pv-crop-x: -65px;
  --pv-crop-y: -25px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent),
                      linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent),
              linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  mask-composite: intersect;
}
.legal .pv-hero > .pv-prv { transform: scale(var(--pv-scale)) translate(var(--pv-crop-x), var(--pv-crop-y)); }
/* !important because the art sets the chip's transform inline. */
.legal .pv-hero .pv-chip { transform: translateX(-50%) scale(1.5) !important; transform-origin: 50% 100%; }
/* The three privacy facts along the bottom, scaled up so they stay readable on phones. */
.legal .pv-hero .pv-facts { transform: scale(1.4); transform-origin: 50% 100%; }
.js .pv-hero:not(.pt-ready) > .pv-prv { visibility: hidden; }
:root[data-theme="light"] .pv-hero { --pv-line: rgba(22, 33, 58, 0.22); }
