
/* A tactile invitation, with long rests between each small movement. */
#viewerStage.app-message .surprise-gift:not(.unwrapping):not(.unwrapped).gift-in-view .surprise-trigger{animation:gift-invitation 5.2s ease-in-out infinite;transform-origin:50% 82%;cursor:pointer;touch-action:manipulation;will-change:transform}
#viewerStage.app-message .surprise-gift:not(.unwrapping):not(.unwrapped).gift-in-view .gift-lid{animation:gift-lid-peek 5.2s ease-in-out infinite;transform-origin:50% 72%;will-change:transform}
#viewerStage.app-message .surprise-trigger:focus-visible{outline:2px solid #f4d49b;outline-offset:8px;border-radius:18px}
#viewerStage.app-message .surprise-gift:not(.unwrapping):not(.unwrapped) .surprise-trigger:is(:hover,:focus-visible){filter:drop-shadow(0 18px 14px #0007) drop-shadow(0 0 16px #e7b76b35)}
#viewerStage.app-message .surprise-hint:before{content:'↗';display:inline-block;font-size:19px;color:#f8d79f}
#viewerStage.app-message .surprise-gift.gift-in-view:not(.unwrapping):not(.unwrapped) .surprise-hint:before{animation:gift-hint 2.6s ease-in-out infinite}
#viewerStage.app-message .surprise-trigger .gift-toy.realistic-gift{display:block;width:100%;height:100%;background:none;font-size:0;line-height:0;transform:none}
#viewerStage.app-message .surprise-trigger .realistic-gift img{display:block;width:100%;height:100%;max-width:none;object-fit:contain;border:0;border-radius:0;background:transparent;filter:drop-shadow(0 8px 6px #0004)}
#toyChoices button{min-width:0;padding:10px 7px 12px;border-radius:16px;background:linear-gradient(145deg,#ffffff0d,#ffffff03);transition:background .2s,border-color .2s,transform .2s}
#toyChoices button .toy-choice-image{display:block;width:100%;height:76px;margin:0 auto 8px;font-size:0;line-height:0}
#toyChoices .toy-choice-image img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 5px 4px #0004);transition:transform .25s}
#toyChoices button b{font-size:14px;line-height:1.3}
#toyChoices button[aria-pressed=true]{border-color:#e4bd7c;background:linear-gradient(145deg,#d9af6429,#d9af6409);box-shadow:inset 0 0 0 1px #e4bd7c55}
@media(hover:hover){#toyChoices button:hover img{transform:translateY(-3px) scale(1.04)}}
@keyframes gift-invitation{0%,10%,31%,100%{transform:translateY(0) rotate(0)}14%{transform:translateY(-3px) rotate(-2deg)}18%{transform:translateY(-3px) rotate(2deg)}22%{transform:translateY(-2px) rotate(-1.4deg)}26%{transform:translateY(-1px) rotate(.8deg)}}
@keyframes gift-lid-peek{0%,12%,29%,100%{transform:translateY(-40%) rotate(0)}16%{transform:translate(-.5%,-43%) rotate(-1.4deg)}20%{transform:translate(.5%,-42%) rotate(1deg)}24%{transform:translateY(-41%) rotate(-.5deg)}}
@keyframes gift-hint{0%,100%{transform:translate(0,0);opacity:.65}50%{transform:translate(2px,-2px);opacity:1}}
@media(max-width:480px){#toyChoices button .toy-choice-image{height:64px}#toyChoices button b{font-size:13px}}
@media(prefers-reduced-motion:reduce){#viewerStage.app-message .surprise-trigger,#viewerStage.app-message .gift-lid,#viewerStage.app-message .surprise-hint:before{animation:none!important;will-change:auto!important}}
/* The full toy clears the front rim instead of remaining half inside the box. */
#viewerStage.app-message .unwrapped .surprise-trigger .gift-prize{transform:translateY(-102%) scale(1)}

