.mit-pipe {
  position: absolute;
  width: calc(var(--mit-side-size, 139px) * .06);
  border: 1px solid #4a5660;
  border-radius: 4px;
  background:
    repeating-linear-gradient(0deg, transparent 0 66px, #4d5965 66px 68px, #d4d9db 68px 71px, #64727a 71px 73px),
    linear-gradient(90deg, #66737d, #e0e5e6 35%, #99a8b1 66%, #5e6972);
  box-shadow: 1px 1px 2px #15232e44;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%);
}
#mascot-game[data-side] {
  --mit-figure: var(--mit-side-size);
  --mit-measure-time: 2.6s;
}
#mascot-game[data-side] .mit-actor {
  width: var(--mit-figure);
  height: var(--mit-figure);
}
#mascot-game[data-side] :is(.mit-caption, .mit-ground) { display: none; }
#mascot-game[data-side]:is([data-pose="peek"],[data-pose="slide"]) .mit-pipe { opacity: 1; }
#mascot-game[data-side="left"]:not([data-pose="peek"]) .mit-figure { scale: -1 1; }
#mascot-game[data-pose="slide"] .mit-sprite {
  background: url("/assets/mitya-window-slide.webp") center / contain no-repeat;
}
#mascot-game:is([data-pose="window-fix"],[data-pose="window-enter"],[data-pose="window-exit"]) .mit-sprite {
  background: url("/assets/mitya-window.webp") 0 0 / 300% 200% no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  .mit-pipe { transition: opacity .2s ease; }
  #mascot-game[data-pose="slide"] .mit-object { transition-timing-function: cubic-bezier(.45,.03,.71,.99); }
  #mascot-game[data-pose="window-fix"] .mit-sprite { animation: mit-turn-screw .52s steps(1, end) infinite; }
  #mascot-game[data-pose="window-enter"] .mit-sprite { animation: mit-enter-sash 1.25s steps(1, end) both; }
  #mascot-game[data-pose="window-exit"] .mit-sprite { animation: mit-exit-sash 1.3s steps(1, end) both; }
}
@keyframes mit-turn-screw {
  0%,100% { background-position: 0 0; }
  48% { background-position: 50% 0; }
}
@keyframes mit-enter-sash {
  0% { background-position: 100% 0; }
  24% { background-position: 0 100%; }
  55% { background-position: 50% 100%; }
  84%,100% { background-position: 100% 100%; }
}
@keyframes mit-exit-sash {
  0% { background-position: 100% 100%; }
  15% { background-position: 50% 100%; }
  40% { background-position: 0 100%; }
  73%,100% { background-position: 100% 0; }
}
