/* Home::index Loy Krathong Popup. All selectors are scoped to this popup. */
/* ===== ตั้งค่าการแสดง Popup (event_popup.js อ่านค่าจากตรงนี้) =====
   --le-popup-always-show  : 1 = แสดงทุกครั้งที่เข้าหน้า index | 0 = กดปิด/กดลอยแล้วซ่อนตามจำนวนนาทีด้านล่าง
   --le-popup-hide-minutes : จำนวนนาทีที่ซ่อนหลังกดปิด/กดลอย ก่อนแสดงใหม่ (ใช้เมื่อ always-show = 0) */
.le-home-popup{--le-popup-always-show:0;--le-popup-hide-minutes:60}
.le-home-popup{position:fixed;inset:0;z-index:90010;display:flex;align-items:center;justify-content:center;padding:16px;visibility:hidden;pointer-events:none}
.le-home-popup.is-open{visibility:visible;pointer-events:auto}
.le-home-popup__backdrop{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 48%,rgba(66,29,95,.67),rgba(13,8,35,.74) 65%,rgba(10,7,25,.8));backdrop-filter:blur(5px);opacity:0;transition:opacity .5s ease}
.le-home-popup.is-open .le-home-popup__backdrop{opacity:1}
.le-home-popup__card{position:relative;width:min(100%,680px);overflow:visible;border:0;border-radius:0;background:transparent;text-align:center;color:#fff;box-shadow:none;opacity:0;transform:translateY(35px) scale(.94);transition:opacity .45s ease,transform .55s cubic-bezier(.2,1,.3,1)}
.le-home-popup.is-open .le-home-popup__card{opacity:1;transform:translateY(0) scale(1)}
.le-home-popup.is-closing .le-home-popup__card{opacity:0;transform:translateY(20px) scale(.96)}
.le-home-popup.is-closing .le-home-popup__backdrop{opacity:0}
.le-home-popup__close{position:absolute;right:12px;top:12px;z-index:20;width:38px;height:38px;border:1px solid #fff8;border-radius:50%;background:#2d155cb8;color:#fff;font-size:28px;line-height:32px;cursor:pointer;transition:background .2s,transform .2s; font-family: 'Font Awesome 5 Pro';}
.le-home-popup__close:hover{background:#7845a9;}
.le-home-popup__close:focus-visible,.le-loykrathong__action:focus-visible{outline:3px solid #ffe49f;outline-offset:3px}
.le-loykrathong__scene{position:relative;isolation:isolate;height:390px;overflow:hidden;background:radial-gradient(ellipse at 50% 77%,rgba(142,65,152,.43),rgba(93,43,119,.20) 44%,transparent 74%);-webkit-mask-image:radial-gradient(ellipse 70% 70% at 50% 56%,#000 57%,rgba(0,0,0,.82) 77%,transparent 100%);mask-image:radial-gradient(ellipse 70% 70% at 50% 56%,#000 57%,rgba(0,0,0,.82) 77%,transparent 100%)}
.le-loykrathong__scene img{position:absolute;display:block;object-fit:contain;pointer-events:none;user-select:none}
.le-loykrathong__water{z-index:3;width:100%;height:auto;bottom:-30px;animation:leLoyWater 5s ease-in-out infinite alternate}
.le-loykrathong__lotus{z-index:5;bottom:8px;width:24%;animation:leLoyLotus 4s ease-in-out infinite}
.le-loykrathong__lotus.lotus1{left:6%}
.le-loykrathong__lotus.lotus2{right:4%;width:19%;animation-delay:-2s}
.le-loykrathong__lantern{z-index:2;width:17%;height:auto;bottom:-100px;animation:leLoyRise 14s linear infinite,leLoyLanternGlow 2s ease-in-out infinite alternate;filter:drop-shadow(0 0 10px #ffb84a66)}
.le-loykrathong__lantern.l1{left:7%;animation-delay:-6s,-.5s}
.le-loykrathong__lantern.l2{right:7%;width:13%;animation-duration:18s,2.5s;animation-delay:-13s,-1s}
.le-loykrathong__lantern.l3{left:62%;width:10%;animation-duration:21s,1.6s;animation-delay:-2s,-.3s}
.le-loykrathong__star{position:absolute;z-index:1;width:4px;height:4px;border-radius:50%;background:#fff5cf;box-shadow:0 0 8px 3px #ffc8fb5e;animation:leLoyTwinkle 2.4s ease-in-out infinite alternate}
.le-loykrathong__star.s1{top:13%;left:11%}.le-loykrathong__star.s2{top:22%;left:31%;animation-delay:-1s}.le-loykrathong__star.s3{top:9%;left:61%;animation-delay:-.5s}
.le-loykrathong__star.s4{top:26%;left:85%;animation-delay:-1.8s}.le-loykrathong__star.s5{top:44%;left:21%;animation-delay:-.8s}.le-loykrathong__star.s6{top:37%;left:76%;animation-delay:-2.2s}
.le-loykrathong__krathong{position:absolute;z-index:7;left:29%;bottom:2px;width:43%;height:83%;opacity:0;transform:translateY(60px) scale(.8);transform-origin:50% 90%;transition:opacity 1.1s ease,transform 3.6s cubic-bezier(.18,.6,.3,1);pointer-events:none}
.le-loykrathong__krathong img{position:absolute;inset:0;width:100%;height:140%;object-fit:contain;animation:leLoyKrathongBob 4s ease-in-out infinite}
.le-home-popup.is-floating .le-loykrathong__krathong{opacity:1;transform:translateY(-28px) scale(.88)}
.le-loykrathong__firework{z-index:8;top:var(--y);left:var(--x);width:var(--size);opacity:0;transform:translate(-50%,-50%) scale(.12);pointer-events:none}
.le-loykrathong__firework.f1{--x:24%;--y:27%;--size:31%}.le-loykrathong__firework.f2{--x:77%;--y:23%;--size:34%}.le-loykrathong__firework.f3{--x:52%;--y:13%;--size:23%}
.le-loykrathong__firework.is-bursting{animation:leLoyFirework 1.65s ease-out forwards}
.le-loykrathong__content{position:relative;z-index:10;padding:0 22px 18px;background:transparent;text-shadow:0 2px 16px rgba(16,6,39,.95)}
.le-loykrathong__title{margin:0 0 6px;color:#ffe2ae;font-weight:700;font-size:clamp(20px,4vw,27px)}
.le-loykrathong__description{margin:0 auto 13px;color:#f6e8ff;font-size:14px;line-height:1.55}
.le-loykrathong__wish{display:none;margin:0 auto 12px;color:#ffe1b4;font-size:14px;line-height:1.6}
.le-home-popup.is-floating .le-loykrathong__wish{display:block;animation:leLoyWishIn .7s ease both}
.le-loykrathong__action{min-width:190px;border:1px solid #ffebc2;border-radius:999px;padding:11px 28px;background:linear-gradient(125deg,#f0aa53,#d7799e);box-shadow:0 6px 18px #1d092b88;color:#241139;font-weight:700;cursor:pointer;transition:transform .2s,box-shadow .2s}
.le-loykrathong__action:hover{transform:translateY(-2px);box-shadow:0 9px 22px #10081a99}
body.le-home-popup-lock{overflow:hidden}
@keyframes leLoyWater{from{transform:translateX(-1.5%) scaleX(1);filter:brightness(.9)}to{transform:translateX(1.5%) scaleX(1.03);filter:brightness(1.13)}}
@keyframes leLoyLotus{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-7px) rotate(3deg)}}
@keyframes leLoyRise{from{translate:0 0;scale:.85}to{translate:25px -580px;scale:.42}}
@keyframes leLoyLanternGlow{to{filter:drop-shadow(0 0 16px #ffbb67c7) brightness(1.13)}}
@keyframes leLoyTwinkle{from{opacity:.15;scale:.7}to{opacity:1;scale:1.4}}
@keyframes leLoyKrathongBob{0%,100%{transform:translateY(0) rotate(-1.8deg)}50%{transform:translateY(-8px) rotate(1.8deg)}}
@keyframes leLoyFirework{0%{opacity:0;transform:translate(-50%,-50%) scale(.12)}20%{opacity:1}60%{opacity:1;transform:translate(-50%,-50%) scale(1.05)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.3)}}
@keyframes leLoyWishIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:575.98px){.le-home-popup{padding:10px}.le-home-popup__card{border-radius:0}.le-loykrathong__scene{height:300px;-webkit-mask-image:radial-gradient(ellipse 73% 69% at 50% 54%,#000 57%,transparent 100%);mask-image:radial-gradient(ellipse 73% 69% at 50% 54%,#000 57%,transparent 100%)}.le-loykrathong__water{bottom:-15px}.le-loykrathong__content{padding:0 15px 20px}.le-loykrathong__krathong{width:52%;left:24%;height:75%}.le-loykrathong__description{font-size:13px}}
@media(prefers-reduced-motion:reduce){.le-home-popup *,.le-home-popup *::before,.le-home-popup *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.le-loykrathong__lantern{bottom:50%}}
