/* IGM Mascot - IGM's own character, built on Originkit's Clay Robot; see igm-mascot.js.
   Defaults are IGM's palette on a light studio. Override the custom properties per page. */
.mascot{
  --mascot-width:720px;
  --mascot-top:#F3F7FA; --mascot-bottom:#D8E2E9; --mascot-shadow:#0D2B45;
  --mascot-clay:#007EBB; --mascot-shell:#D9EDF8; --mascot-visor:#0B1621; --mascot-eyes:#5CB8E6;
  --mascot-accent:#E8623B; --mascot-signal:#007EBB;
  position:relative; display:block; overflow:hidden; container-type:inline-size;
  /* the original's 4:3 frame; it shrinks to its container and the scene fits it */
  width:min(100%, var(--mascot-width)); min-width:0; aspect-ratio:4 / 3;
  /* the cyclorama; the script sets --mascot-cyc with the original's gradient curve */
  background:var(--mascot-cyc, linear-gradient(180deg, var(--mascot-top), var(--mascot-bottom)));
  touch-action:pan-y; cursor:pointer; user-select:none; -webkit-user-select:none; -webkit-tap-highlight-color:transparent;
}
.mascot[data-hop="0"]{cursor:default}
.mascot-canvas{position:absolute; inset:0; width:100%; height:100%; display:block; visibility:hidden}
.mascot-drawn .mascot-canvas{visibility:visible}

/* The stand-in: a plain mascot drawn in CSS. Without JavaScript, GSAP or WebGL2 it is all there is. */
.mascot::before,.mascot::after{content:""; position:absolute; left:50%; transform:translateX(-50%); box-sizing:border-box}
/* body */
.mascot::before{
  bottom:13%; width:16.5%; height:23%; border-radius:34% 34% 22% 22%;
  background:var(--mascot-clay);
}
/* screen head, screen and eyes */
.mascot::after{
  bottom:34%; width:36%; height:37%; border-radius:30% / 38%;
  border:3.2cqw solid var(--mascot-shell);
  background:
    radial-gradient(ellipse 8% 13% at 37% 62%, var(--mascot-eyes) 96%, transparent 100%),
    radial-gradient(ellipse 8% 13% at 63% 62%, var(--mascot-eyes) 96%, transparent 100%),
    var(--mascot-visor);
}
.mascot-live::before,.mascot-live::after{display:none}
