.vt-friend-garden {
  position: absolute;
  inset: 27% 6% 7%;
  display: grid;
  grid-template-columns: 43% minmax(0, 1fr);
  align-items: center;
  gap: 4%;
  padding: 2% 5% 2% 3%;
  overflow: hidden;
  isolation: isolate;
  border: var(--stroke) solid #304f49;
  border-radius: var(--radius);
  background: radial-gradient(ellipse at 10% 4%, #ffe9aa, transparent 55%), #fff8e9;
  box-shadow: 0 0.45cqw 0 #244e3a73;
}
.vt-friend-garden::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 55% 46% -40% -15%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, #e9f2c4 12%, transparent 17%) 0 0 / 2cqw 1.7cqw,
    #b5cd8b;
  transform: rotate(8deg);
}
.vt-friend-garden-art {
  height: 100%;
  min-height: 0;
  display: grid;
  align-items: end;
}
.vt-friend-garden-art .vt-friend-art {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0.4cqh 0.18cqh #5c502452);
}
.vt-friend-garden-copy strong {
  color: #843b44;
  font-size: clamp(17px, min(3.75cqw, 8cqh), 69px);
  line-height: 1.2;
}
.vt-friend-garden-copy p {
  margin: 0.5em 0;
  color: #314941;
  font-size: clamp(13px, min(2.3cqw, 5.5cqh), 48px);
  line-height: 1.45;
}
.vt-friend-garden-copy small {
  display: block;
  color: #755048;
  font-size: clamp(11px, min(1.6cqw, 4cqh), 32px);
  line-height: 1.35;
}

/* A paper pop-up appears at the edge of the playfield. The controllers,
   game effects and QR remain available while the two chicks deliver the daisy. */
.vt-friend-notice {
  position: absolute;
  z-index: 9;
  inset: auto 2% 4% auto;
  width: min(50%, 100cqh);
  pointer-events: none;
}
.vt-friend-bloom {
  position: relative;
  display: grid;
  grid-template-columns: 36% minmax(0, 1fr);
  gap: 3%;
  align-items: center;
  isolation: isolate;
  color: #75384a;
  border: max(2px, 0.23cqw) solid #584939;
  border-radius: 2.3cqw 0.9cqw 2.3cqw 0.9cqw;
  padding: 0.7% 5% 0.7% 1.8%;
  background: linear-gradient(108deg, #ffefce, #fff9ef 50%, #ffeddd);
  box-shadow:
    0 0.5cqw 0 #453e385e,
    0 0.8cqw 1.4cqw #382f342e;
  animation: vt-friend-unfold 4.2s both;
}
.vt-friend-bloom::before {
  content: '';
  position: absolute;
  inset: 0.4cqw;
  z-index: -1;
  border: max(1px, 0.12cqw) dashed #d48e91;
  border-radius: 1.75cqw 0.6cqw 1.75cqw 0.6cqw;
}
.vt-friend-picture {
  position: relative;
  aspect-ratio: 1440 / 1037;
  perspective: 32cqw;
}
.vt-friend-picture .vt-friend-art {
  width: 100%;
  height: 100%;
  transform-origin: center 92%;
  animation: vt-friend-pop 0.95s 0.15s both;
}
.vt-friend-picture::after {
  content: '';
  position: absolute;
  left: 57%;
  top: 36%;
  width: 16%;
  aspect-ratio: 1;
  border: 0.22cqw solid #f78099;
  border-radius: 50%;
  opacity: 0;
  animation: vt-friend-glow 0.9s 1s both;
}
.vt-friend-message strong,
.vt-friend-message span {
  display: block;
}
.vt-friend-message strong {
  font-size: clamp(13px, min(3.2cqw, 6cqh), 62px);
  line-height: 1.18;
}
.vt-friend-message span {
  margin-top: 0.28em;
  color: #51433c;
  font-size: clamp(9px, min(1.6cqw, 3cqh), 32px);
  line-height: 1.3;
}
.vt-friend-confetti i {
  --drift: -1.1cqw;
  position: absolute;
  left: 22%;
  top: 35%;
  width: 0.85cqw;
  aspect-ratio: 1.4;
  background: #e37695;
  border-radius: 85% 20% 75% 30%;
  opacity: 0;
  animation: vt-friend-petal 1.55s 0.95s both;
}
.vt-friend-confetti i:nth-child(2) {
  --drift: 1.5cqw;
  left: 27%;
  animation-delay: 1.12s;
  background: #df9e29;
}
.vt-friend-confetti i:nth-child(3) {
  --drift: -3.1cqw;
  left: 24%;
  animation-delay: 1.19s;
  background: #fd9fbb;
}
.vt-friend-confetti i:nth-child(4) {
  --drift: 3.5cqw;
  left: 28%;
  width: 0.64cqw;
  animation-delay: 1.29s;
}
/* In the friend garden the chicks are already on stage. Let that illustration
   pop up in place and give its caption to the live announcement. */
.vt-world:has(.vt-friend-garden) .vt-friend-notice {
  inset: 27% 6% 7%;
  width: auto;
  display: grid;
  grid-template-columns: 43% minmax(0, 1fr);
  align-items: center;
  gap: 4%;
  padding: 2% 5% 2% 3%;
  border: var(--stroke) solid transparent;
}
.vt-world:has(.vt-friend-bloom) .vt-friend-garden-copy {
  visibility: hidden;
}
.vt-world:has(.vt-friend-garden) .vt-friend-bloom {
  grid-column: 2;
  display: block;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}
.vt-world:has(.vt-friend-garden) .vt-friend-picture,
.vt-world:has(.vt-friend-garden) .vt-friend-bloom::before {
  display: none;
}
.vt-world:has(.vt-friend-garden) .vt-friend-message strong {
  font-size: clamp(17px, min(4.1cqw, 8.5cqh), 76px);
}
.vt-world:has(.vt-friend-garden) .vt-friend-message span {
  font-size: clamp(13px, min(2.3cqw, 5.5cqh), 48px);
}
.vt-world:has(.vt-friend-garden) .vt-friend-confetti {
  position: absolute;
  inset: 0;
  transform: translateX(-64%);
}
@media (prefers-reduced-motion: no-preference) {
  .vt-world:has(.vt-friend-bloom) .vt-friend-garden-art {
    perspective: 44cqw;
  }
  .vt-world:has(.vt-friend-bloom) .vt-friend-garden-art img {
    transform-origin: 45% 88%;
    animation: vt-friend-pop 0.95s 0.15s both;
  }
}
@keyframes vt-friend-unfold {
  0% {
    transform: translateY(90%) rotate(5deg);
    opacity: 0;
  }
  9% {
    transform: translateY(-5%) rotate(-1deg);
    opacity: 1;
  }
  16%,
  91% {
    transform: none;
    opacity: 1;
  }
  100% {
    transform: translateY(32%);
    opacity: 0;
  }
}
@keyframes vt-friend-pop {
  0% {
    transform: rotateX(76deg) translateY(4%);
  }
  57% {
    transform: rotateX(-13deg) translateY(-4%);
  }
  82% {
    transform: rotateX(5deg);
  }
  100% {
    transform: none;
  }
}
@keyframes vt-friend-glow {
  0% {
    transform: scale(0.35);
    opacity: 0;
  }
  28% {
    opacity: 1;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}
@keyframes vt-friend-petal {
  0% {
    transform: translate(0, 0) scale(0.35) rotate(-20deg);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  62% {
    transform: translate(var(--drift), -5cqw) rotate(65deg);
    opacity: 1;
  }
  100% {
    transform: translate(calc(var(--drift) * 1.4), -3.8cqw) rotate(100deg);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .vt-friend-bloom,
  .vt-friend-picture .vt-friend-art {
    animation: none;
  }
  .vt-friend-picture::after,
  .vt-friend-confetti {
    display: none;
  }
}
