/* Real-time 3D mascot (mascot3d.js). Decoration only. Replaces the SVG guide when .has-mascot is set. */
.mascot3d {
  position: absolute; z-index: 3; inset-block-start: 0; inset-inline-start: 0;
  pointer-events: none; opacity: 0;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform var(--mwalk, 0ms) cubic-bezier(.45, 0, .3, 1), opacity .3s linear;
  will-change: transform;
}
.mascot3d.is-on { opacity: 1; }
.mascot3d[hidden] { display: none; }
.mascot3d canvas { display: block; inline-size: 100%; block-size: 100%; transition: opacity .2s linear; }
.mascot3d.is-swap canvas { opacity: 0; }
/* soft blob shadow under the feet */
.mascot3d::after {
  content: ""; position: absolute; inset-inline: 22%; inset-block-end: 3%; block-size: 7%;
  border-radius: 50%; background: var(--ink, #0c0c24); opacity: .16; filter: blur(3px); z-index: -1;
}
/* the lane for the 3D mascot (wins over the SVG guide's lane by specificity) */
@media (min-width: 900px) {
  .stage.has-guide.has-mascot .scene:not(.scene--cover):not(.scene--closing) {
    padding-inline-start: calc(var(--mascot-h, 220px) * 0.92 + 12px);
  }
}
html[data-motion="reduce"] .mascot3d { transition: opacity .2s linear; }
