.xmas-gift-launcher { position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: max(30px, env(safe-area-inset-bottom)); z-index: 12; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 82px; min-height: 98px; padding: 0 6px 8px; box-sizing: border-box; border: 1px solid transparent; border-radius: 18px; color: #251a10; text-decoration: none; }
.xmas-gift-launcher::before { content: ""; position: absolute; inset: -1px; z-index: 0; border: 1px solid #ffdf71; border-radius: inherit; background: linear-gradient(#ffef9f,#efb94d); box-shadow: 0 4px 16px #0004; pointer-events: none; transform-origin: 50% 100%; animation: xmas-gift-squash 4.2s ease-in-out infinite; }
.xmas-gift-launcher::after { content: ""; position: absolute; inset: 1px; z-index: 0; border-radius: inherit; background: linear-gradient(110deg,transparent 25%,#fff9 45%,transparent 65%); pointer-events: none; opacity: 0; animation: xmas-gift-glint 4.2s ease-in-out infinite; }
.xmas-gift-launcher img { position: relative; z-index: 1; width: 60px; height: 76px; max-width: none; margin-top: -28px; object-fit: contain; transform: perspective(320px) rotateX(0deg) rotateY(0deg) rotateZ(-7deg) scale(1); transform-origin: 50% 60%; animation: xmas-gift-jump 4.2s linear infinite, xmas-gift-turn 4.2s linear infinite, xmas-gift-elastic 4.2s ease-in-out infinite; }
.xmas-gift-launcher span { position: relative; z-index: 1; font-size: 11px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.xmas-gift-launcher:is(:hover, :focus-visible) { color: #251a10; }
.xmas-gift-launcher:is(:hover, :focus-visible) img,
.xmas-gift-launcher:is(:hover, :focus-visible)::before,
.xmas-gift-launcher:is(:hover, :focus-visible)::after { animation-play-state: paused; }
.xmas-gift-launcher:focus-visible { outline: 3px solid #20e7c5; outline-offset: 4px; }
@keyframes xmas-gift-jump {
    0%,6% { translate: 0 0; animation-timing-function: ease-in; }
    10% { translate: -3px 5px; animation-timing-function: cubic-bezier(.22,.7,.3,1); }
    25% { translate: -12px -56px; animation-timing-function: cubic-bezier(.5,0,.8,.35); }
    41% { translate: 2px 0; animation-timing-function: cubic-bezier(.2,.7,.3,1); }
    47% { translate: -1px -9px; animation-timing-function: cubic-bezier(.5,0,.8,.35); }
    54%,100% { translate: 0 0; }
}
@keyframes xmas-gift-turn {
    0%,6% { rotate: 0deg; animation-timing-function: ease-in; }
    10% { rotate: 12deg; animation-timing-function: cubic-bezier(.35,0,.2,1); }
    41% { rotate: -360deg; animation-timing-function: ease-out; }
    45% { rotate: -368deg; }
    50% { rotate: -356deg; }
    57%,100% { rotate: -360deg; }
}
@keyframes xmas-gift-elastic {
    0%,6%,57%,100% { transform: perspective(320px) rotateX(0deg) rotateY(0deg) rotateZ(-7deg) scale(1); }
    10% { transform: perspective(320px) rotateX(12deg) rotateY(-10deg) rotateZ(-7deg) scale(1.1,.85); }
    16% { transform: perspective(320px) rotateX(-14deg) rotateY(12deg) rotateZ(-7deg) scale(.94,1.08); }
    25% { transform: perspective(320px) rotateX(15deg) rotateY(-18deg) rotateZ(-7deg) scale(1.04); }
    34% { transform: perspective(320px) rotateX(-10deg) rotateY(14deg) rotateZ(-7deg) scale(1); }
    41% { transform: perspective(320px) rotateX(0deg) rotateY(0deg) rotateZ(-7deg) scale(1.12,.86); }
    47% { transform: perspective(320px) rotateX(0deg) rotateY(0deg) rotateZ(-7deg) scale(.97,1.04); }
}
@keyframes xmas-gift-squash { 0%,10%,39%,57%,100% { transform: none; } 43% { transform: scaleY(.94); } 49% { transform: scaleY(1.025); } }
@keyframes xmas-gift-glint { 0%,40%,64%,100% { opacity: 0; transform: translateX(-8px); } 48% { opacity: .75; } 60% { opacity: 0; transform: translateX(8px); } }
@media (max-width: 768px) {
    .xmas-gift-launcher { width: 73px; min-height: 68px; right: max(14px, env(safe-area-inset-right)); bottom: calc(80px + env(safe-area-inset-bottom)); border-radius: 16px; }
    .xmas-gift-launcher img { width: 55px; height: 66px; margin-top: -30px; }
    .xmas-gift-launcher span { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .xmas-gift-launcher img, .xmas-gift-launcher::before, .xmas-gift-launcher::after { animation: none; } }
