/* Big gifts in a live room (gift-showcase.js), November 20, 2026. The owner's sizes: a big gift covers 51% of the
   screen in a live and 45% during a battle, the full width of the screen. It plays over the streams and the battle gift
   zone but never takes a tap (pointer-events:none). Since November 21, 2026 it sits under the chat layer (z-index 5,
   live.css), so the slide-in banner with the sender's name and photo, and the chat, stay on top of a big gift.
   Since November 22, 2026 (the owner: "the top edge of the playback would be just where the avatar's chin is"), it
   starts at the streamer's chin and fills the screen below it, so it never covers a face. A stream fills its tile like
   the avatar's head and shoulders (cover), whose chin is 56.25% down a square picture: half the tile's height plus
   6.25% of its longer side. On a phone that's 56.25% down; on a wide screen, where the tile is wider than tall, a little
   lower (about 61% at 1280×735). Two to four streamers' tiles are half the width, so their side counts half.
   Only for lives that aren't in a battle (the owner); battles keep their places below. */
.live-gift-showcase{position:absolute;z-index:4;left:0;right:0;top:calc(50% + max(6.25%,6.25vw));bottom:0;overflow:hidden;pointer-events:none;container-type:size}
.live-stage:is([data-count="2"],[data-count="3"],[data-count="4"]) .live-gift-showcase{top:calc(50% + max(6.25%,3.125vw))}
/* Two streamers battling on one stage: the middle 45%, as before the chin line. */
.live-stage .live-gift-showcase.is-battle{top:27.5%;bottom:auto;height:45%}
/* A linked battle's arena (live-battle.css): 45%, from just above the gift zone down to the chat row, so it covers the
   gift zone and the bottom of the two streams; it already starts below their chins (30% down), so it stays. */
.live-stage[data-battle="linked"] .live-gift-showcase{top:calc(var(--arena-top) + var(--arena-h)*.45);bottom:auto;height:calc(var(--arena-h)*.45)}
/* While the gift drawer covers the bottom 47% of the screen, the gift plays just above it so the person sending sees all
   of it; in a linked battle, over the two streams (where the battle gift zone moves too). */
:root.is-live-gift-drawer .live-gift-showcase{top:auto;bottom:max(47vh,240px);height:51%}
@supports(height:100dvh){:root.is-live-gift-drawer .live-gift-showcase{bottom:max(47dvh,240px)}}
:root.is-live-gift-drawer .live-stage:not([data-battle="linked"]) .live-gift-showcase.is-battle{height:45%}
:root.is-live-gift-drawer .live-stage[data-battle="linked"] .live-gift-showcase{top:calc(var(--arena-top) + var(--arena-h)*.05);bottom:auto;height:calc(var(--arena-h)*.45)}

.gift-showcase{position:absolute;inset:0;animation:gift-showcase-open .7s cubic-bezier(.2,.9,.25,1) both}
.gift-showcase.is-out{animation:gift-showcase-out .45s ease-in both}
/* The picture covers the whole box, its edges at the top and bottom fading into the stream. Its box keeps the picture's
   shape (2:1) and covers the layer, bottom-aligned so the hands always show; hearts and stars are placed in it. */
.gift-showcase-frame{position:absolute;inset:0;overflow:hidden;-webkit-mask:linear-gradient(transparent,#000 10%,#000 85%,transparent);mask:linear-gradient(transparent,#000 10%,#000 85%,transparent)}
.gift-showcase-scene{position:absolute;left:50%;bottom:0;width:max(100cqw,200cqh);height:max(50cqw,100cqh);translate:-50% 0;container-type:size}
.gift-showcase-art{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;transform-origin:50% 94%;animation:gift-showcase-ease 5.6s cubic-bezier(.25,.6,.3,1) both}
.gift-showcase-stars i{position:absolute;width:.8cqw;aspect-ratio:1;border-radius:50%;background:#fff;box-shadow:0 0 1cqw .25cqw #ffffffa0,0 0 2.4cqw #c4b5fd;translate:-50% -50%;opacity:.15;animation:gift-showcase-twinkle 1.7s ease-in-out var(--d,0s) infinite}
.gift-showcase-glow{position:absolute;left:50%;top:62%;width:44cqw;aspect-ratio:1;translate:-50% -50%;border-radius:50%;background:radial-gradient(closest-side,#ff6fa1c0,#ff3d7f50 45%,transparent 72%);opacity:0;animation:gift-showcase-glow 1.2s ease-out .9s both}
.gift-showcase-heart{position:absolute;left:50%;top:60%;width:15cqw;aspect-ratio:1;translate:-50% -50%;opacity:0;animation:gift-showcase-rise 1s cubic-bezier(.2,1.5,.4,1) .8s both,gift-showcase-beat 1.1s ease-in-out 2s 2}
.gift-showcase-heart.is-again{opacity:1;animation:gift-showcase-beat .7s ease-in-out both}
.gift-showcase-heart svg{display:block;width:100%;height:100%;fill:#ff4f8b;stroke:#ffd6e5;stroke-width:.5;filter:drop-shadow(0 0 1.2cqw #ff2e74) drop-shadow(0 0 3cqw #ff6fa1aa)}
.gift-showcase-hearts i{position:absolute;left:50%;top:86%;width:var(--s,4cqw);aspect-ratio:1;translate:-50% -50%;opacity:0;animation:gift-showcase-float 2.6s cubic-bezier(.3,.7,.4,1) var(--d,0s) both}
.gift-showcase-hearts svg{display:block;width:100%;height:100%;fill:#ff5b93;filter:drop-shadow(0 0 .8cqw #ff2e74)}
.gift-showcase-hearts .is-tone-1 svg{fill:#ff9ec0}
.gift-showcase-hearts .is-tone-2 svg{fill:#fff0f6}
@keyframes gift-showcase-open{from{opacity:0;clip-path:inset(50% 0 50% 0)}to{opacity:1;clip-path:inset(0 0 0 0)}}
@keyframes gift-showcase-out{to{opacity:0;transform:translateY(-4%) scale(1.03)}}
@keyframes gift-showcase-ease{from{transform:scale(1)}to{transform:scale(1.08)}}
@keyframes gift-showcase-twinkle{50%{opacity:1;scale:1.5}}
@keyframes gift-showcase-glow{from{opacity:0;scale:.3}to{opacity:.85;scale:1}}
@keyframes gift-showcase-rise{from{opacity:0;transform:translateY(22cqh) scale(.2)}60%{opacity:1}to{opacity:1;transform:none}}
@keyframes gift-showcase-beat{0%,100%{scale:1}15%{scale:1.16}30%{scale:.97}45%{scale:1.1}}
@keyframes gift-showcase-float{0%{opacity:0;transform:translate(0,0) scale(.3)}15%{opacity:1}70%{opacity:.9}100%{opacity:0;transform:translate(var(--x,0),-62cqh) scale(1.1) rotate(var(--r,0deg))}}
@keyframes gift-showcase-fade{from{opacity:0}}
/* A gift's own video (gift-showcase.js): it covers the box, centred, and fades in. Its top edge fades out into the
   stream (clear at the very top, solid from a third of the way down); the bottom softens only slightly. */
.gift-showcase.is-video[data-look]{animation:gift-showcase-fade .5s ease-out both}
.gift-showcase.is-video[data-look].is-out{animation:gift-showcase-out .45s ease-in both}
.gift-showcase-frame.is-video{-webkit-mask:linear-gradient(transparent,#0000008c 12%,#000 32%,#000 94%,transparent);mask:linear-gradient(transparent,#0000008c 12%,#000 32%,#000 94%,transparent)}
.gift-showcase-video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%;background:transparent;pointer-events:none}
/* Galaxy (1,100 coins). The picture's glowing core is at 50% across and 51% down; its box keeps the picture's shape
   (16:9) and is centred on the core, which stays still while the picture flies in toward it and turns. The scene opens
   like a portal from the core and, at the end, flies on into it. */
.gift-showcase[data-look="galaxy"]{animation:gift-showcase-portal .9s cubic-bezier(.2,.9,.25,1) both}
.gift-showcase[data-look="galaxy"].is-out{animation:gift-showcase-arrive .45s ease-in both}
.gift-showcase[data-look="galaxy"] .gift-showcase-scene{top:50%;bottom:auto;width:max(100cqw,177.78cqh);height:max(56.25cqw,100cqh);translate:-50% -50%}
.gift-showcase[data-look="galaxy"] .gift-showcase-art{transform-origin:50% 51%;animation:gift-showcase-dive 7.2s cubic-bezier(.3,0,.3,1) both}
.gift-showcase-core{position:absolute;left:50%;top:51%;width:20cqw;aspect-ratio:1;translate:-50% -50%;opacity:0;animation:gift-showcase-core 6.8s cubic-bezier(.2,.8,.3,1) .3s both,gift-showcase-pulse 1.8s ease-in-out 1.6s infinite}
.gift-showcase-core::before{content:"";position:absolute;inset:0;border-radius:50%;background:radial-gradient(closest-side,#fff 0,#fff3c4e0 22%,#ffc77a90 42%,#c084fc40 66%,transparent)}
.gift-showcase-rays{position:absolute;inset:-90%;border-radius:50%;background:repeating-conic-gradient(#fff3d040 0deg 2.5deg,transparent 2.5deg 15deg);-webkit-mask:radial-gradient(closest-side,#000 12%,transparent 75%);mask:radial-gradient(closest-side,#000 12%,transparent 75%);animation:gift-showcase-spin 14s linear infinite}
.gift-showcase-flare{position:absolute;inset:-40%;border-radius:50%;background:radial-gradient(closest-side,#fffbe8,#fde68acc 30%,#c084fc55 60%,transparent);opacity:0}
.gift-showcase-core.is-again .gift-showcase-flare{animation:gift-showcase-flare .9s ease-out both}
.gift-showcase-warp i{position:absolute;left:50%;top:51%;width:var(--l,18cqw);height:max(1.5px,.28cqw);border-radius:9px;transform-origin:0 50%;background:linear-gradient(90deg,transparent,#fffdf2 70%,#fde68a);opacity:0;animation:gift-showcase-warp 1.4s cubic-bezier(.55,0,.9,.55) var(--d,0s) both}
.gift-showcase-warp .is-tone-1{background:linear-gradient(90deg,transparent,#c4b5fd 70%,#fff)}
.gift-showcase-warp .is-tone-2{background:linear-gradient(90deg,transparent,#7dd3fc 70%,#fff)}
.gift-showcase-comets i{position:absolute;width:13cqw;height:max(2px,.3cqw);border-radius:9px;background:linear-gradient(90deg,#fff,#c4b5fd80 40%,transparent);box-shadow:0 0 .8cqw #fff;opacity:0;animation:gift-showcase-comet 1.1s ease-in var(--d,0s) both}
.gift-showcase-comets i:nth-child(1){left:66%;top:10%;--d:1.4s}
.gift-showcase-comets i:nth-child(2){left:84%;top:28%;--d:3s}
.gift-showcase-comets i:nth-child(3){left:58%;top:3%;--d:4.5s}
@keyframes gift-showcase-portal{from{opacity:0;clip-path:circle(0 at 50% 50%)}to{opacity:1;clip-path:circle(75% at 50% 50%)}}
@keyframes gift-showcase-arrive{to{opacity:0;transform:scale(1.12)}}
@keyframes gift-showcase-dive{from{transform:scale(1.05) rotate(4deg)}to{transform:scale(1.5) rotate(-5deg)}}
@keyframes gift-showcase-core{0%{opacity:0;transform:scale(.2)}12%{opacity:1;transform:scale(1)}100%{opacity:1;transform:scale(1.45)}}
@keyframes gift-showcase-pulse{50%{scale:1.12}}
@keyframes gift-showcase-spin{to{rotate:360deg}}
@keyframes gift-showcase-flare{0%{opacity:0;scale:.4}25%{opacity:1}100%{opacity:0;scale:1.6}}
@keyframes gift-showcase-warp{0%{opacity:0;transform:rotate(var(--a,0deg)) translateX(3cqw) scaleX(.1)}25%{opacity:1}100%{opacity:0;transform:rotate(var(--a,0deg)) translateX(58cqw) scaleX(1)}}
@keyframes gift-showcase-comet{0%{opacity:0;transform:translate(0,0) rotate(-24deg)}15%{opacity:1}100%{opacity:0;transform:translate(-42cqw,19cqw) rotate(-24deg)}}
/* Raining coins (5,000 coins), when its video can't play: a frame of the video (4.5 s in) eases in, gold coins fall
   across it spinning, and a warm glow on the pile pulses (and flares on a repeat). */
.gift-showcase[data-look="coins"] .gift-showcase-scene{top:50%;bottom:auto;width:max(100cqw,177.78cqh);height:max(56.25cqw,100cqh);translate:-50% -50%}
.gift-showcase[data-look="coins"] .gift-showcase-art{transform-origin:50% 80%;animation:gift-showcase-ease 6.4s cubic-bezier(.25,.6,.3,1) both}
.gift-showcase-glint{position:absolute;left:50%;top:80%;width:60cqw;height:30cqh;translate:-50% -50%;border-radius:50%;background:radial-gradient(closest-side,#fff3b0aa,#fbbf2455 45%,transparent 75%);mix-blend-mode:screen;opacity:0;animation:gift-showcase-glow 1.2s ease-out .4s both,gift-showcase-pulse 1.6s ease-in-out 1.6s infinite}
.gift-showcase-glint.is-again{opacity:.85;animation:gift-showcase-sun-flare .9s ease-out both}
.gift-showcase-coins i{position:absolute;left:var(--x,50%);top:-8%;width:var(--s,4cqw);aspect-ratio:1;translate:-50% -50%;border-radius:50%;background:radial-gradient(circle at 34% 30%,#fffbe0 0,#fde047 22%,#f5b80b 55%,#b7791f 100%);box-shadow:inset 0 0 0 .3cqw #a16207cc,0 0 1.2cqw #fde04799;opacity:0;animation:gift-showcase-coin 1.7s cubic-bezier(.5,0,.85,.65) var(--d,0s) both}
.gift-showcase-coins .is-tone-1{background:radial-gradient(circle at 34% 30%,#fff7cc 0,#facc15 25%,#d4a00d 60%,#92600e 100%)}
@keyframes gift-showcase-coin{0%{opacity:0;transform:translateY(0) rotateY(0deg)}10%{opacity:1}85%{opacity:1}100%{opacity:0;transform:translateY(105cqh) rotateY(900deg)}}
/* Private jet (10,000 coins), when its video can't play: a frame of the video (5.4 s in: the whole jet, the sun at 95%
   across and 49% down) cruises gently, streaks of wind rush past from right to left, and the sun glows (flaring on a
   repeat). */
.gift-showcase[data-look="jet"] .gift-showcase-scene{top:50%;bottom:auto;width:max(100cqw,177.78cqh);height:max(56.25cqw,100cqh);translate:-50% -50%}
.gift-showcase[data-look="jet"] .gift-showcase-art{transform-origin:50% 50%;animation:gift-showcase-cruise 6.4s ease-in-out both}
.gift-showcase-sun{position:absolute;left:95%;top:49%;width:26cqw;aspect-ratio:1;translate:-50% -50%;border-radius:50%;background:radial-gradient(closest-side,#fff8e1,#ffd28a99 35%,#ff9e6b33 65%,transparent);mix-blend-mode:screen;opacity:0;animation:gift-showcase-sun 1.4s ease-out .3s both}
.gift-showcase-sun.is-again{animation:gift-showcase-sun-flare .9s ease-out both}
.gift-showcase-wind i{position:absolute;left:100%;top:var(--y,50%);width:var(--l,22cqw);height:max(1.5px,.22cqw);border-radius:9px;background:linear-gradient(90deg,transparent,#fffaf0e6 45%,transparent);opacity:0;animation:gift-showcase-wind 1.2s linear var(--d,0s) both}
.gift-showcase-wind .is-tone-1{background:linear-gradient(90deg,transparent,#f5d0fecc 45%,transparent)}
@keyframes gift-showcase-cruise{0%{transform:scale(1.06) translate(1.5%,1%)}50%{transform:scale(1.1) translate(0,-1%)}100%{transform:scale(1.14) translate(-1.5%,.5%)}}
@keyframes gift-showcase-sun{from{opacity:0;scale:.5}to{opacity:1;scale:1}}
@keyframes gift-showcase-sun-flare{0%{opacity:1;scale:1}35%{opacity:1;scale:1.45}100%{opacity:1;scale:1}}
@keyframes gift-showcase-wind{0%{opacity:0;transform:translateX(0)}15%{opacity:1}85%{opacity:1}100%{opacity:0;transform:translateX(-140cqw)}}
/* FP burger (7,000 coins), when its video can't play: the video's last shot (5.9 s in: the burger on black, its middle at
   50% across and 47% down) eases in, neon confetti falls across its middle (what a phone shows), tumbling, and a blue lens flare like
   the one at the end of the video glows across the burger (flaring on a repeat). */
.gift-showcase[data-look="burger"] .gift-showcase-scene{top:50%;bottom:auto;width:max(100cqw,177.78cqh);height:max(56.25cqw,100cqh);translate:-50% -50%}
.gift-showcase[data-look="burger"] .gift-showcase-art{transform-origin:50% 50%;animation:gift-showcase-ease 6.4s cubic-bezier(.25,.6,.3,1) both}
.gift-showcase-lens{position:absolute;left:50%;top:47%;width:130cqw;height:7cqh;translate:-50% -50%;border-radius:50%;background:radial-gradient(closest-side,#fff 0,#dbeafe 8%,#60a5fa99 30%,#3b82f633 60%,transparent);mix-blend-mode:screen;opacity:0;animation:gift-showcase-glow 1.2s ease-out .6s both,gift-showcase-pulse 1.6s ease-in-out 1.8s infinite}
.gift-showcase-lens.is-again{opacity:.85;animation:gift-showcase-sun-flare .9s ease-out both}
.gift-showcase-confetti i{position:absolute;left:var(--x,50%);top:-6%;width:var(--s,2.7cqw);height:calc(var(--s,2.7cqw)*.45);translate:-50% -50%;border-radius:1px;background:#f472b6;box-shadow:0 0 .8cqw #f472b699;opacity:0;animation:gift-showcase-confetti 2.2s cubic-bezier(.45,0,.75,.6) var(--d,0s) both}
.gift-showcase-confetti .is-tone-1{background:#67e8f9;box-shadow:0 0 .8cqw #67e8f999}
.gift-showcase-confetti .is-tone-2{background:#fcd34d;box-shadow:0 0 .8cqw #fcd34d99}
@keyframes gift-showcase-confetti{0%{opacity:0;transform:translateY(0) rotate(var(--r,0deg)) rotateX(0deg)}10%{opacity:1}85%{opacity:1}100%{opacity:0;transform:translateY(105cqh) rotate(calc(var(--r,0deg) + 540deg)) rotateX(720deg)}}
/* Field goal (700 coins), when its video can't play: the clip's last frame (900×980: the goalposts' middle at 73% across
   and 50% down, the setting sun at 88% and 22%) eases in, a football arcs up from the field, spinning and getting
   smaller, and over the crossbar between the posts, and the sun glows (flaring on a repeat). */
.gift-showcase[data-look="goal"] .gift-showcase-scene{top:50%;bottom:auto;width:max(100cqw,91.84cqh);height:max(108.9cqw,100cqh);translate:-50% -50%}
.gift-showcase[data-look="goal"] .gift-showcase-art{transform-origin:73% 50%;animation:gift-showcase-ease 6s cubic-bezier(.25,.6,.3,1) both}
.gift-showcase[data-look="goal"] .gift-showcase-sun{left:88%;top:22%;width:40cqw}
.gift-showcase-ball i{position:absolute;left:35%;top:96%;width:var(--s,8cqw);aspect-ratio:1.65;translate:-50% -50%;border-radius:50%;background:linear-gradient(90deg,transparent 47%,#fff7ed 47% 53%,transparent 53%) 50% 50%/34% 12% no-repeat,radial-gradient(ellipse at 38% 32%,#d68a4f,#9a4a1c 58%,#5b260b);box-shadow:inset 0 0 0 .25cqw #3f1a07aa,0 .6cqw 1.6cqw #0007;opacity:0;animation:gift-showcase-kick 1.7s cubic-bezier(.25,.55,.45,1) var(--d,0s) both}
@keyframes gift-showcase-kick{0%{opacity:0;transform:translate(0,0) rotate(-20deg) scale(1)}8%{opacity:1}55%{transform:translate(24cqw,-64cqh) rotate(300deg) scale(.5)}88%{opacity:1}100%{opacity:0;transform:translate(38cqw,-48cqh) rotate(560deg) scale(.28)}}
/* Reduced motion: the picture, the heart, the core, the sun or the glow and the name fade in and out, and nothing moves. */
@media(prefers-reduced-motion:reduce){
 .gift-showcase{animation:gift-showcase-fade .3s both}
 .gift-showcase.is-out{animation:gift-showcase-fade .3s reverse both}
 .gift-showcase-art,.gift-showcase-stars i,.gift-showcase-glow,.gift-showcase-heart,.gift-showcase-heart.is-again{animation:none}
 .gift-showcase-glow,.gift-showcase-heart{opacity:1}
 .gift-showcase-glow{opacity:.85}
 .gift-showcase-stars i{opacity:.7}
 .gift-showcase-hearts{display:none}
 .gift-showcase[data-look="galaxy"]{animation:gift-showcase-fade .3s both}
 .gift-showcase[data-look="galaxy"].is-out{animation:gift-showcase-fade .3s reverse both}
 .gift-showcase[data-look="galaxy"] .gift-showcase-art,.gift-showcase-core,.gift-showcase-rays,.gift-showcase-core.is-again .gift-showcase-flare{animation:none}
 .gift-showcase-core{opacity:1}
 .gift-showcase-warp,.gift-showcase-comets{display:none}
 .gift-showcase[data-look="jet"] .gift-showcase-art,.gift-showcase-sun,.gift-showcase-sun.is-again{animation:none}
 .gift-showcase-sun{opacity:1}
 .gift-showcase-wind{display:none}
 .gift-showcase[data-look="coins"] .gift-showcase-art,.gift-showcase-glint,.gift-showcase-glint.is-again{animation:none}
 .gift-showcase-glint{opacity:.85}
 .gift-showcase-coins{display:none}
 .gift-showcase[data-look="burger"] .gift-showcase-art,.gift-showcase-lens,.gift-showcase-lens.is-again{animation:none}
 .gift-showcase-lens{opacity:.85}
 .gift-showcase-confetti{display:none}
 .gift-showcase[data-look="goal"] .gift-showcase-art{animation:none}
 .gift-showcase-ball{display:none}
}
