#hero-3d {
  position: relative;
  align-self: center;
  width: 100%;
  isolation: isolate;
}
#hero-3d .box-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 8;
}
#hero-3d .box-stage canvas,
#hero-3d .box-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 899px) {
  #hero-3d { max-width: 27rem; margin-inline: auto; }
}
#hero-3d .box-stage { overflow: hidden; }
/* once the box is open he walks out of his stage, to the right edge of the window */
#hero-3d .box-stage[data-open] { overflow: visible; }
#hero-3d .box-stage[data-open] canvas { right: auto; pointer-events: none; }
#hero-3d .virtual-pointer, #hero-3d .virtual-pointer canvas { cursor: none; }
#hero-3d .box-cursor, #hero-3d .box-ripple {
  position: absolute; pointer-events: none; z-index: 2;
}
#hero-3d .box-cursor { top: 0; left: 0; }
#hero-3d .box-ripple {
  width: 2rem; height: 2rem; margin: -1rem;
  border: 1px solid #fbf3dc; border-radius: 50%;
}
#hero-3d .box-attempt, #hero-3d .box-status {
  position: absolute; width: 1px; height: 1px; clip-path: inset(50%);
  padding: 0; overflow: hidden; white-space: nowrap;
}
#hero-3d .box-attempt:focus-visible {
  width: auto; height: auto; clip-path: none; left: 3%; bottom: 2%;
  background: #fbf3dc; color: #0a1f14; padding: .55em .85em;
  border: 2px solid #0a1f14; z-index: 3; cursor: pointer;
}
#hero-3d .box-coupon {
  position: absolute; z-index: 1; left: 50%; bottom: 17%; transform: translateX(-50%) rotate(-3deg);
  padding: .7em 1.1em; color: #0a1f14; background: #fcd36f; border: 2px dashed #0a1f14;
  box-shadow: 3px 4px 0 #0a1f14; text-align: center; pointer-events: none;
}
#hero-3d .box-coupon span, #hero-3d .box-coupon strong { display: block; }
#hero-3d .box-coupon span { font-size: .76rem; }
#hero-3d .box-coupon strong { font-size: clamp(1.2rem,3vw,2.0rem); }
#hero-3d .box-coupon[hidden] { display:none; }
#hero-3d .box-stage.live .box-coupon { display: none; }     /* with 3D on, the real coupon rises out of the box instead */
@media (prefers-reduced-motion: no-preference) {
  #hero-3d .box-coupon:not([hidden]) { animation: box-prize-out .85s ease-out both; }
  @keyframes box-prize-out {
    0%,35% { opacity: 0; transform: translate(-50%,40%) rotate(-8deg); }
    100% { opacity: 1; transform: translate(-50%,0) rotate(-3deg); }
  }
}

/* on wide screens he grows into the empty space to his left, so he is not lost beside the big name */
@media (min-width: 900px) {
  .hello #hero-3d .box-stage { width: 130%; margin: -8% 0 -8% -30%; }   /* only in the homepage column */
}
