html.linuka-mode,
html.linuka-mode body { overflow: hidden !important; }
html.linuka-mode body { pointer-events: none; }

.linuka-stage {
  position: fixed;
  inset: 0;
  z-index: 14000;
  overflow: hidden;
  pointer-events: none;
}
.linuka-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 25%, rgb(255 210 91 / .08), transparent 38%), rgb(8 10 8 / .08);
  opacity: 0;
  transition: opacity 450ms ease;
}
.linuka-stage::after {
  content: "This easter egg was requested by Linuka (No idea of this was done by Baxter)";
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 1;
  max-width: min(360px, calc(100vw - 32px));
  color: rgb(30 28 24 / .62);
  font: 500 11px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .01em;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 300ms ease 500ms, transform 300ms ease 500ms;
}
.linuka-stage:has(.linuka-scene.is-visible)::after {
  opacity: 1;
  transform: translateY(0);
}
.linuka-stage:has(.linuka-scene.is-visible)::before { opacity: 1; }
.linuka-stage.is-departed::before { opacity: 0; }
.linuka-scene {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(280px, 58vw);
  height: min(455px, 54vh);
  transform: translateX(-50%) translateY(-100%);
  transform-origin: 50% 0;
}
.linuka-scene.is-visible {
  animation: linuka-swing-down 1s cubic-bezier(.2, .72, .25, 1) both;
}
.linuka-rope {
  position: absolute;
  top: -20px;
  left: 50%;
  width: 7px;
  height: calc(100% - 78px);
  border-radius: 999px;
  background: repeating-linear-gradient(112deg, #d3a95d 0 7px, #8b602d 8px 12px);
  box-shadow: 1px 0 0 rgb(255 255 255 / .2), 3px 0 8px rgb(0 0 0 / .18);
  transform: translateX(-50%);
}
.linuka-rig {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 245px;
  height: 225px;
  transform: translateX(-50%);
  transform-origin: 50% 0;
}
.linuka-scene.is-looting .linuka-rig { animation: linuka-swing 1.25s ease-in-out infinite alternate; }
.linuka-monkey {
  position: absolute;
  left: 4px;
  bottom: 0;
  width: 190px;
  filter: drop-shadow(0 14px 12px rgb(0 0 0 / .25));
}
.linuka-body,
.linuka-head,
.linuka-ear,
.linuka-hand { fill: #6f4327; stroke: #342014; stroke-width: 5; }
.linuka-face { fill: #d8a56f; }
.linuka-eye,
.linuka-nose { fill: #1c130e; }
.linuka-durag,
.linuka-durag-knot {
  fill: #2457d6;
  stroke: #102866;
  stroke-width: 5;
  stroke-linejoin: round;
}
.linuka-durag-band,
.linuka-durag-tail {
  fill: none;
  stroke: #102866;
  stroke-width: 7;
  stroke-linecap: round;
}
.linuka-smile,
.linuka-arm,
.linuka-tail { fill: none; stroke: #342014; stroke-width: 9; stroke-linecap: round; }
.linuka-smile { stroke-width: 4; }
.linuka-sack {
  position: absolute;
  right: -4px;
  bottom: 2px;
  width: 92px;
  height: 108px;
  border: 4px solid #50351f;
  border-radius: 18px 18px 46px 46px;
  background: linear-gradient(135deg, #ca9c58, #98703c);
  box-shadow: inset 8px 0 16px rgb(255 255 255 / .13), 0 16px 18px rgb(0 0 0 / .22);
  transform: rotate(7deg);
  transition: transform 360ms ease, scale 360ms ease;
}
.linuka-sack::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -5px;
  width: 94px;
  height: 18px;
  border: 4px solid #50351f;
  border-radius: 50%;
  background: #342218;
}
.linuka-sack span {
  position: absolute;
  top: 27px;
  left: 50%;
  color: #69451f;
  font: 800 43px/1 Georgia, serif;
  text-shadow: 0 1px rgb(255 235 178 / .35);
  transform: translateX(-50%);
}
.linuka-scene.is-loaded .linuka-sack { scale: 1.14 1.2; transform: rotate(3deg); }
.linuka-scene.is-loaded .linuka-rig { animation: linuka-loaded 700ms ease-in-out infinite alternate; }
.linuka-scene.is-leaving,
.linuka-scene.is-loaded.is-leaving,
.linuka-scene.is-departing,
.linuka-scene.is-loaded.is-departing {
  animation: none;
  transform: translateX(-50%) translateY(-110%);
  transition: transform 500ms cubic-bezier(.55, .08, .8, .42);
  transition-duration: 500ms;
}
.linuka-stolen {
  position: relative;
  z-index: 13000 !important;
  transform-origin: center !important;
  animation: linuka-snatch 760ms cubic-bezier(.55, -.12, .83, .38) var(--linuka-delay, 0ms) both !important;
  pointer-events: none !important;
}
.linuka-stolen-letter {
  display: inline-block;
  position: relative;
  z-index: 13000;
}
.linuka-mode-hint {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 14001;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  padding: 9px 14px 10px;
  border: 1px solid rgb(255 255 255 / .18);
  border-radius: 999px;
  color: rgb(255 255 255 / .82);
  background: rgb(26 20 13 / .8);
  box-shadow: 0 10px 32px rgb(0 0 0 / .28);
  backdrop-filter: blur(14px);
  font: 600 12px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .025em;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 240ms ease, transform 240ms ease, color 180ms ease;
  white-space: nowrap;
  pointer-events: none;
}
.linuka-mode-hint::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: #f0c36a;
  transform: scaleX(0);
  transform-origin: left;
}
.linuka-mode-hint.is-visible { opacity: 1; transform: translate(-50%, 0); }
.linuka-mode-hint.is-exiting { color: white; }
.linuka-mode-hint.is-exiting::after { transform: scaleX(1); transition: transform 900ms linear; }
@keyframes linuka-snatch {
  0% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0) scale(1); filter: blur(0); }
  62% { opacity: .9; }
  100% { opacity: 0; transform: translate3d(var(--linuka-x), var(--linuka-y), 0) rotate(16deg) scale(.03); filter: blur(2px); visibility: hidden; }
}
@keyframes linuka-swing-down {
  0% { transform: translateX(-50%) translateY(-100%) rotate(-9deg); }
  48% { transform: translateX(-50%) translateY(-8%) rotate(7deg); }
  68% { transform: translateX(-50%) translateY(0) rotate(-4deg); }
  84% { transform: translateX(-50%) translateY(0) rotate(2deg); }
  100% { transform: translateX(-50%) translateY(0) rotate(0); }
}
@keyframes linuka-swing {
  from { transform: translateX(-50%) rotate(-2.5deg); }
  to { transform: translateX(-50%) rotate(2.5deg); }
}
@keyframes linuka-loaded {
  from { transform: translateX(-50%) translateY(0) rotate(-1.5deg); }
  to { transform: translateX(-50%) translateY(-8px) rotate(1.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .linuka-scene.is-visible { animation-duration: 140ms; }
  .linuka-stolen { animation-duration: 180ms !important; }
  .linuka-scene.is-looting .linuka-rig,
  .linuka-scene.is-loaded .linuka-rig { animation: none; }
  .linuka-mode-hint { transition: none; }
  .linuka-stage::after { transition: none; }
}

@media (max-width: 620px) {
  .linuka-stage::after {
    right: 16px;
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + 46px);
    text-align: center;
  }
}
