/* R20.M4 Festival Mascots - theme-specific popup polish */
.campaign-welcome .welcome-host{position:relative}
.campaign-welcome .intro-mascot-button{position:relative;display:inline-flex;align-items:center;justify-content:center;isolation:isolate}
.campaign-welcome .intro-mascot{max-width:min(27vw,240px);height:auto;filter:drop-shadow(0 16px 26px rgba(93,26,56,.25));transition:transform .35s ease,filter .35s ease}
.campaign-welcome .intro-mascot-button::before,.campaign-welcome .intro-mascot-button::after{content:'';position:absolute;inset:12% 10%;border-radius:50%;pointer-events:none;opacity:.8}
.campaign-welcome .intro-mascot-button::before{border:2px dashed rgba(255,255,255,.55);box-shadow:0 0 0 6px rgba(255,255,255,.08) inset;animation:tl-m4-orbit 14s linear infinite}
.campaign-welcome .intro-mascot-button::after{inset:18% 16%;background:radial-gradient(circle, rgba(255,255,255,.16), rgba(255,255,255,0) 65%);filter:blur(2px);animation:tl-m4-pulse 4s ease-in-out infinite}
html.tl-motion-popup .campaign-welcome .intro-mascot{animation:tl-m4-wave 5.8s ease-in-out infinite}
html[data-tl-season="songkran"].tl-motion-popup .campaign-welcome .intro-mascot{animation-name:tl-m4-bounce-splash}
html[data-tl-season="loy-krathong"].tl-motion-popup .campaign-welcome .intro-mascot{animation-name:tl-m4-float-lantern}
html[data-tl-season="halloween"].tl-motion-popup .campaign-welcome .intro-mascot{animation-name:tl-m4-spooky-bob}
html[data-tl-season="christmas"].tl-motion-popup .campaign-welcome .intro-mascot{animation-name:tl-m4-jolly-bob}
html[data-tl-season="black-friday"].tl-motion-popup .campaign-welcome .intro-mascot{animation-name:tl-m4-shop-bounce}
.campaign-welcome .tl-m4-theme-pill{display:inline-flex;align-items:center;gap:.45rem;margin-top:.35rem;padding:.38rem .78rem;border-radius:999px;background:rgba(255,255,255,.18);backdrop-filter:blur(10px);font-size:.78rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#fff;box-shadow:0 8px 20px rgba(57,11,33,.14)}
.campaign-welcome .tl-m4-theme-pill .icon{font-style:normal;font-size:1rem;line-height:1}
@keyframes tl-m4-wave{0%,100%{transform:translateY(0) rotate(-2deg)}22%{transform:translateY(-3px) rotate(2deg)}50%{transform:translateY(-8px) rotate(-1deg)}78%{transform:translateY(-2px) rotate(2.5deg)}}
@keyframes tl-m4-orbit{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
@keyframes tl-m4-pulse{0%,100%{transform:scale(.96);opacity:.58}50%{transform:scale(1.04);opacity:1}}
@keyframes tl-m4-bounce-splash{0%,100%{transform:translateY(0) rotate(-2deg)}35%{transform:translateY(-10px) rotate(2deg)}50%{transform:translateY(-4px) rotate(6deg)}75%{transform:translateY(-8px) rotate(-3deg)}}
@keyframes tl-m4-float-lantern{0%,100%{transform:translateY(0) rotate(-1.5deg)}25%{transform:translateY(-5px) rotate(1deg)}50%{transform:translateY(-9px) rotate(2.5deg)}75%{transform:translateY(-4px) rotate(-.5deg)}}
@keyframes tl-m4-spooky-bob{0%,100%{transform:translateY(0) rotate(-3deg)}35%{transform:translateY(-7px) rotate(3deg)}70%{transform:translateY(-3px) rotate(-4deg)}}
@keyframes tl-m4-jolly-bob{0%,100%{transform:translateY(0) rotate(-1deg)}30%{transform:translateY(-5px) rotate(2deg)}60%{transform:translateY(-9px) rotate(-1deg)}}
@keyframes tl-m4-shop-bounce{0%,100%{transform:translateY(0) scale(1)}40%{transform:translateY(-8px) scale(1.015)}65%{transform:translateY(-2px) scale(.985)}}
@media (max-width: 840px){.campaign-welcome .intro-mascot{max-width:min(35vw,215px)}}
@media (prefers-reduced-motion: reduce){.campaign-welcome .intro-mascot,.campaign-welcome .intro-mascot-button::before,.campaign-welcome .intro-mascot-button::after{animation:none!important}}

/* R20.M5 – precise mascot art fitting for 60/40 portrait touchscreen, without changing columns */
.campaign-welcome .intro-mascot-button{max-width:100%;height:auto;min-width:0;touch-action:manipulation}
.campaign-welcome .intro-mascot-button picture{display:flex;align-items:center;justify-content:center;max-width:100%;max-height:100%;}
.campaign-welcome .intro-mascot{width:clamp(150px, min(19vw, 23vh), 320px);max-width:100%;max-height:min(31vh,330px);height:auto;object-fit:contain;object-position:center;aspect-ratio:1/1;filter:drop-shadow(0 12px 18px rgba(55,17,40,.22));transform-origin:50% 70%}
html[data-tl-season="default"] .campaign-welcome .tl-m4-theme-pill{display:none!important}
html:not(.tl-motion-popup) .campaign-welcome .intro-mascot{animation:none!important}
@media (orientation:portrait){.campaign-welcome .intro-mascot{width:clamp(136px,26vw,285px);max-height:27vh}}
@media (max-height:700px){.campaign-welcome .intro-mascot{width:clamp(105px,16vh,165px);max-height:20vh}}
@media (prefers-reduced-motion:reduce){.campaign-welcome .intro-mascot{animation:none!important}}
