/* Stage positions are set against .vt-world. Translate the illustration layers
   only, keeping the activity cards and farm labels readable throughout an act. */
.vt-header .vt-sound {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38em;
  min-height: 2.3em;
  border-radius: 999px;
  cursor: pointer;
  padding: 0.3em 0.63em;
  border: 1.5px solid #8c6950;
  background: #fff8df;
  color: #523c3e;
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(11px, 0.9vw, 19px);
  line-height: 1.05;
  white-space: nowrap;
}
.vt-header .vt-sound[hidden] {
  display: none;
}
.vt-header .vt-sound[aria-pressed='true'] {
  color: #285b40;
  background: #e7f5cf;
  border-color: #779755;
}
.vt-sound svg {
  width: 1.28em;
  height: 1.28em;
  flex: none;
}
.vt-sound:focus-visible {
  outline: 3px solid #315caa;
  outline-offset: 2px;
}
@media (max-width: 870px) {
  .vt-header .vt-sound {
    min-width: 2.3em;
  }
  .vt-header .vt-sound-layer span {
    display: none;
  }
}
@media (max-width: 570px) {
  .vt-header .vt-sound {
    padding: 0.33em;
  }
  .vt-header .vt-sound span {
    display: none;
  }
}
.vt-stage[data-acting='hatch'] .vt-feedback {
  animation: vt-news 0.28s 1.34s backwards;
}
@keyframes vt-news {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.vt-stage:is([data-acting='harvest'], [data-acting='raidFriend']) .vt-plot-group .vt-prop-label {
  animation: vt-news 0.3s 0.69s backwards;
}
.vt-game-fx {
  --settle: cubic-bezier(0.21, 0.66, 0.32, 1);
}
.vt-game-fx > img {
  object-fit: contain;
}
.vt-comic {
  position: absolute;
  z-index: 3;
  left: 60%;
  top: 43%;
  padding: 0.13em 0.46em 0.19em;
  border: 0.085em solid #563638;
  border-radius: 55% 48% 50% 20% / 45% 57% 53% 55%;
  background: #fff9ce;
  box-shadow: 0.07em 0.1em 0 #603e347e;
  color: #77324a;
  font: inherit;
  font-size: clamp(16px, 3.15cqw, 60px);
  line-height: 1.09;
  font-weight: 800;
  letter-spacing: -0.035em;
  transform-origin: 12% 88%;
  animation: vt-comic-word 0.65s 0.95s both;
}
@keyframes vt-comic-word {
  0% {
    opacity: 0;
    transform: translateY(0.35em) rotate(11deg) scale(0.42);
  }
  19% {
    opacity: 1;
    transform: translateY(-0.05em) rotate(-8deg) scale(1.12);
  }
  32%,
  78% {
    opacity: 1;
    transform: rotate(-5deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-0.45em) rotate(-3deg) scale(0.94);
  }
}
.vt-game-fx .vt-fx-packet {
  transform-origin: 68% 82%;
  animation: vt-sow-act 1.3s var(--settle) both;
}
@keyframes vt-sow-act {
  0% {
    opacity: 0;
    transform: translate(-11cqw, -3cqh) rotate(-30deg) scale(0.8);
  }
  18% {
    opacity: 1;
    transform: translate(1cqw, -4cqh) rotate(7deg);
  }
  29%,
  53% {
    transform: rotate(42deg);
  }
  41%,
  66% {
    transform: translate(0.6cqw, -1cqh) rotate(56deg);
  }
  79% {
    opacity: 1;
    transform: rotate(-9deg);
  }
  100% {
    opacity: 0;
    transform: translate(-7cqw, -6cqh) rotate(-20deg) scale(0.9);
  }
}
[data-acting='plant'] .vt-plot-group .tv-crop {
  transform-origin: bottom;
  animation: vt-plot-settle 0.4s 0.91s both;
}
@keyframes vt-plot-settle {
  0%,
  100% {
    transform: none;
  }
  26% {
    transform: scale(1.06, 0.88);
  }
  64% {
    transform: scale(0.97, 1.045);
  }
}
.vt-game-fx .vt-stray-drop {
  left: 45%;
  top: 66%;
  width: 2.1%;
  aspect-ratio: 0.8;
  background: radial-gradient(ellipse at 33% 30%, #f2ffff 10%, transparent 19%), #5ad6f2;
  border: max(1px, 0.13cqw) solid #337da7;
  border-radius: 65% 26% 57% 46%;
  animation: vt-wild-splash 0.53s 0.76s both;
}
@keyframes vt-wild-splash {
  0% {
    opacity: 0;
    transform: scale(0.5, 0.7) rotate(-30deg);
  }
  16% {
    opacity: 1;
    transform: translate(-4cqw, -8cqh) rotate(-64deg);
  }
  46% {
    transform: translate(-13cqw, -20cqh) rotate(-94deg);
  }
  61% {
    transform: translate(-18cqw, -21cqh) rotate(-115deg);
  }
  85% {
    opacity: 1;
    transform: translate(-25cqw, -12cqh) rotate(-136deg);
  }
  100% {
    opacity: 0;
    transform: translate(-27cqw, -8cqh) rotate(-163deg) scale(1.4, 0.5);
  }
}
[data-acting='selectEgg'] .vt-egg-object {
  transform-origin: 50% 96%;
  animation: vt-egg-arrival 1.26s both;
}
@keyframes vt-egg-arrival {
  0% {
    opacity: 0;
    transform: translate(-8cqw, -28cqh) rotate(-21deg) scale(0.86);
  }
  14% {
    opacity: 1;
    transform: translate(-5cqw, -27cqh) rotate(-15deg);
  }
  25% {
    transform: translate(-2cqw, -18cqh) rotate(-8deg);
  }
  35% {
    transform: translateY(0.5cqh) rotate(3deg) scale(1.13, 0.82);
  }
  49% {
    transform: translate(0.9cqw, -7cqh) rotate(8deg) scale(0.96, 1.04);
  }
  61% {
    transform: translate(0.6cqw, 0) rotate(5deg) scale(1.06, 0.91);
  }
  73% {
    transform: translateY(-2.8cqh) rotate(-5deg);
  }
  86% {
    transform: rotate(2deg) scale(1.01, 0.98);
  }
  100% {
    transform: none;
  }
}
.vt-fx-can > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scaleX(-1);
}
.vt-game-fx .vt-fx-can {
  animation: vt-can-act 1.64s var(--settle) both;
}
@keyframes vt-can-act {
  0% {
    opacity: 0;
    transform: translate(10cqw, -2cqh) rotate(14deg);
  }
  16% {
    opacity: 1;
    transform: rotate(4deg);
  }
  30%,
  62% {
    transform: rotate(-48deg);
  }
  48% {
    transform: translateY(-0.8cqh) rotate(-56deg);
  }
  70% {
    transform: translate(1cqw, -1cqh) rotate(-8deg);
  }
  78% {
    opacity: 1;
    transform: translate(-0.6cqw, 0.6cqh) rotate(-49deg);
  }
  100% {
    opacity: 0;
    transform: translate(9cqw, -4cqh) rotate(9deg);
  }
}
[data-effect='water'] .vt-comic,
[data-effect='waterFriend'] .vt-comic {
  left: 17%;
  top: 51%;
  animation-delay: 1.06s;
}
[data-acting='water'] .vt-host,
[data-acting='waterFriend'] .vt-host {
  transform-origin: bottom;
  animation: vt-dodge 0.57s 1.03s both;
}
@keyframes vt-dodge {
  0%,
  100% {
    transform: none;
  }
  19% {
    transform: translate(-0.5cqw, 2cqh) rotate(-11deg) scale(1.1, 0.8);
  }
  56% {
    transform: translate(-1.6cqw, -2.8cqh) rotate(-8deg) scale(0.96, 1.08);
  }
  82% {
    transform: translateY(0.2cqh) rotate(2deg) scale(1.04, 0.97);
  }
}
[data-acting='harvest'] .vt-yard-can,
[data-acting='raidFriend'] .vt-yard-can,
[data-acting='water'] .vt-yard-can,
[data-acting='waterFriend'] .vt-yard-can,
[data-acting='feed'] .vt-treat {
  visibility: hidden;
}
.vt-game-fx .vt-fx-lastbed {
  animation: vt-pick-bed 0.66s both;
}
.vt-fx-lastbed .tv-crop {
  height: 100%;
}
@keyframes vt-pick-bed {
  0%,
  15% {
    opacity: 1;
    transform: none;
  }
  30% {
    opacity: 1;
    transform: scale(0.95, 1.04) rotate(-1deg);
  }
  51% {
    transform: translateY(0.8cqh) scale(1.04, 0.9) rotate(1deg);
  }
  100% {
    opacity: 0;
    transform: scale(1, 0.98);
  }
}
.vt-game-fx .vt-fx-basket {
  transform-origin: 50% 96%;
  animation: vt-catch 2.32s both;
}
@keyframes vt-catch {
  0% {
    opacity: 0;
    transform: translateX(4cqw) rotate(10deg);
  }
  18%,
  31%,
  44%,
  55%,
  71% {
    opacity: 1;
    transform: none;
  }
  33%,
  46%,
  59% {
    transform: scale(1.06, 0.92) rotate(4deg);
  }
  75% {
    transform: translateX(0.9cqw) rotate(11deg);
  }
  82% {
    transform: translateX(-1cqw) rotate(-11deg) scale(1.08, 0.88);
  }
  89% {
    transform: rotate(6deg) scale(0.97, 1.04);
  }
  95%,
  100% {
    opacity: 1;
    transform: none;
  }
}
.vt-game-fx .vt-flying-fruit {
  left: 41%;
  top: 66%;
  transform-origin: 50% 75%;
  animation: vt-picked-fruit 0.85s calc(0.14s + var(--i) * 0.075s) both;
}
@keyframes vt-picked-fruit {
  0% {
    opacity: 0;
    transform: scale(0.62);
  }
  12% {
    opacity: 1;
    transform: translate(1cqw, -7cqh) rotate(-30deg);
  }
  47% {
    transform: translate(17cqw, -36cqh) rotate(65deg);
  }
  69% {
    transform: translate(27cqw, -30cqh) rotate(115deg);
  }
  92% {
    opacity: 1;
    transform: translate(37cqw, -4cqh) rotate(200deg);
  }
  100% {
    opacity: 0;
    transform: translate(39cqw, 2cqh) rotate(215deg) scale(0.7);
  }
}
.vt-game-fx .vt-flying-fruit.vt-stray {
  animation: vt-stray-fruit 1.89s 0.14s both;
}
@keyframes vt-stray-fruit {
  0%,
  6% {
    opacity: 0;
    transform: scale(0.65);
  }
  14% {
    opacity: 1;
    transform: translate(1.5cqw, -7cqh) rotate(-21deg);
  }
  31% {
    transform: translate(16cqw, -37cqh) rotate(52deg);
  }
  40% {
    transform: translate(24cqw, -40cqh) rotate(105deg);
  }
  55% {
    transform: translate(35cqw, -15cqh) rotate(176deg);
  }
  59% {
    transform: translate(38cqw, -5.5cqh) rotate(208deg) scale(1.15, 0.77);
  }
  67% {
    transform: translate(44cqw, -21cqh) rotate(260deg) scale(0.93, 1.04);
  }
  74% {
    transform: translate(46cqw, -22cqh) rotate(287deg);
  }
  85% {
    transform: translate(42cqw, -11cqh) rotate(338deg);
  }
  92% {
    opacity: 1;
    transform: translate(38.5cqw, -4cqh) rotate(371deg);
  }
  100% {
    opacity: 0;
    transform: translate(38cqw, 1cqh) rotate(383deg) scale(0.72);
  }
}
[data-effect='harvest'] .vt-comic,
[data-effect='raidFriend'] .vt-comic {
  left: 79%;
  top: 43%;
  animation-delay: 1.27s;
}
.vt-fx-biscuit {
  animation: vt-cookie-toss 0.65s calc(0.04s + var(--i) * 0.064s) both;
}
@keyframes vt-cookie-toss {
  0% {
    opacity: 0;
    transform: translate(-3cqw, 9cqh) rotate(-45deg) scale(0.65);
  }
  13% {
    opacity: 1;
    transform: translate(1cqw, -1cqh) rotate(-13deg);
  }
  42% {
    transform: translate(11cqw, -24cqh) rotate(66deg);
  }
  63% {
    transform: translate(18cqw, -22cqh) rotate(117deg);
  }
  90% {
    opacity: 1;
    transform: translate(24cqw, -9cqh) rotate(176deg) scale(0.82);
  }
  100% {
    opacity: 0;
    transform: translate(26cqw, -4cqh) rotate(190deg) scale(0.4);
  }
}
.vt-treat-time .vt-egg-group .vt-egg-object {
  transform-origin: 52% 94%;
  animation: vt-egg-hiccup 1.54s both;
}
@keyframes vt-egg-hiccup {
  0%,
  25%,
  54%,
  87%,
  100% {
    transform: none;
  }
  35% {
    transform: rotate(-8deg) scale(0.95, 1.055);
  }
  43% {
    transform: rotate(6deg) scale(1.09, 0.88);
  }
  59% {
    transform: scale(1.13, 0.86);
  }
  67% {
    transform: translateY(-6cqh) rotate(-7deg) scale(0.91, 1.1);
  }
  77% {
    transform: rotate(4deg) scale(1.07, 0.92);
  }
}
[data-effect='feed'] .vt-particle {
  animation-delay: calc(0.9s + var(--i) * 0.055s);
}
.vt-game-fx .vt-acting-pip {
  width: 26%;
  height: 43%;
  left: 5%;
  bottom: 8%;
  object-position: bottom;
  transform-origin: 54% 93%;
}
[data-effect='hatch'] .vt-acting-pip {
  animation: vt-pip-peek 3.4s both;
}
@keyframes vt-pip-peek {
  0% {
    opacity: 0;
    transform: translate(-5cqw, 3cqh) rotate(-12deg);
  }
  12% {
    opacity: 1;
    transform: none;
  }
  24%,
  33% {
    transform: translateX(1cqw) rotate(5deg);
  }
  42% {
    transform: translate(-1.4cqw, 1.8cqh) rotate(-10deg) scale(1.02, 0.89);
  }
  57%,
  70% {
    transform: translate(-0.6cqw, 0) rotate(-4deg);
  }
  80% {
    transform: translate(1cqw, -2cqh) rotate(4deg);
  }
  92%,
  100% {
    opacity: 1;
    transform: none;
  }
}
.vt-hatch-shadow {
  position: absolute;
  left: 40%;
  bottom: 11%;
  width: 23%;
  height: 5%;
  background: radial-gradient(ellipse, #44234880, transparent 70%);
  animation: vt-shadow 3.4s both;
}
@keyframes vt-shadow {
  0%,
  35%,
  59%,
  100% {
    transform: none;
  }
  48% {
    transform: scale(0.69, 0.78);
    opacity: 0.55;
  }
  65% {
    transform: scale(1.03, 1);
  }
}
.vt-game-fx .vt-fx-shell {
  transform-origin: 50% 91%;
  animation: vt-hatch-rattle 1.39s both;
}
@keyframes vt-hatch-rattle {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  9%,
  29%,
  47%,
  64% {
    opacity: 1;
    transform: none;
  }
  17% {
    transform: rotate(-8deg);
  }
  22% {
    transform: rotate(6deg);
  }
  36% {
    transform: rotate(12deg);
  }
  54% {
    transform: translateY(-0.7cqh) rotate(-4deg);
  }
  70% {
    transform: rotate(-13deg);
  }
  76% {
    transform: rotate(12deg);
  }
  80% {
    transform: rotate(-10deg);
  }
  86% {
    transform: rotate(6deg);
  }
  92% {
    opacity: 1;
    transform: scale(1.12, 0.86);
  }
  100% {
    opacity: 0;
    transform: translateY(-5cqh) rotate(-6deg) scale(0.96, 1.09);
  }
}
.vt-game-fx .vt-fx-baby {
  left: 36%;
  width: 31%;
  transform-origin: 50% 95%;
  animation: vt-hatch-leap 3.4s both;
}
@keyframes vt-hatch-leap {
  0%,
  37% {
    opacity: 0;
    transform: translateY(2cqh) scale(0.62, 0.47);
  }
  40% {
    opacity: 1;
    transform: translateY(-3cqh) rotate(-3deg) scale(0.86, 1.07);
  }
  48% {
    transform: translateY(-17cqh) rotate(-9deg) scale(0.95, 1.04);
  }
  52% {
    transform: translateY(-17.5cqh) rotate(-4deg);
  }
  60% {
    transform: translateY(0.7cqh) scale(1.15, 0.81) rotate(4deg);
  }
  65% {
    transform: translateY(-3.6cqh) scale(0.97, 1.04) rotate(-3deg);
  }
  70%,
  76% {
    transform: none;
  }
  80% {
    transform: translateY(-2cqh) rotate(6deg);
  }
  85% {
    transform: rotate(-4deg) scale(1.04, 0.95);
  }
  91%,
  100% {
    opacity: 1;
    transform: none;
  }
}
.vt-game-fx .vt-fx-shell-left {
  left: 38%;
  bottom: 10%;
  width: 20%;
  height: 21%;
  animation: vt-shell-skid 3.4s both;
}
@keyframes vt-shell-skid {
  0%,
  38% {
    opacity: 0;
    transform: none;
  }
  43% {
    opacity: 1;
    transform: translate(3cqw, -10cqh) rotate(48deg);
  }
  50% {
    transform: translate(10cqw, -14cqh) rotate(85deg);
  }
  57% {
    transform: translate(16cqw, -6cqh) rotate(128deg);
  }
  63% {
    transform: translate(19cqw, 0) rotate(165deg);
  }
  71% {
    transform: translate(21cqw, -2cqh) rotate(183deg);
  }
  80%,
  100% {
    opacity: 1;
    transform: translate(22cqw, 0) rotate(195deg);
  }
}
.vt-game-fx .vt-reveal-glow {
  animation: vt-hatch-light 3.4s both;
}
@keyframes vt-hatch-light {
  0%,
  36% {
    opacity: 0;
    transform: scale(0.62) rotate(-12deg);
  }
  48% {
    opacity: 0.76;
    transform: scale(1.07) rotate(-4deg);
  }
  65% {
    opacity: 0.45;
  }
  100% {
    opacity: 0.1;
    transform: scale(1.1) rotate(7deg);
  }
}
[data-effect='hatch'] .vt-comic {
  left: 56%;
  top: 37%;
  animation: vt-comic-word 0.93s 2.42s both;
}
[data-effect='hatch'] .vt-particle {
  animation-delay: calc(1.29s + var(--i) * 0.042s);
}
@media (prefers-reduced-motion: reduce) {
  .vt-game-fx .vt-comic,
  .vt-game-fx .vt-acting-pip,
  .vt-game-fx .vt-hatch-shadow,
  .vt-game-fx .vt-fx-can,
  .vt-game-fx .vt-fx-packet,
  .vt-game-fx .vt-fx-biscuit,
  .vt-game-fx .vt-stray-drop {
    display: none;
  }
  [data-acting='water'] .vt-yard-can,
  [data-acting='feed'] .vt-treat {
    visibility: visible;
  }
}
