/* SETHKORLUS · Loy Krathong page (2026-11-22, owner's sketch) */
[hidden]{display:none!important}
body.ly-f .sk-fab{display:none}
html{--ms:min(20vmin,136px);--mc:calc(5.6vh + var(--ms) / 2)}
html,body{margin:0;height:100%;background:#060b1e;color:#fff4e0;font-family:"IBM Plex Sans Thai","Noto Sans Thai",sans-serif;overflow:hidden;overscroll-behavior:none}
.ly{position:fixed;inset:0;overflow:hidden}
.ly-sky{position:absolute;left:0;right:0;top:0;height:62%;background:radial-gradient(70% 40% at 50% 100%,rgba(255,170,110,.28),transparent 70%),radial-gradient(60% 45% at 50% 18%,rgba(140,150,255,.18),transparent 70%),linear-gradient(180deg,#070a24 0%,#121a4a 45%,#2a2a68 82%,#4a3568 100%)}
.ly-stars2{position:absolute;inset:0;background-image:radial-gradient(2.6px 2.6px at 18% 22%,#fffbe6 45%,transparent 55%),radial-gradient(2.2px 2.2px at 67% 14%,#e6f0ff 45%,transparent 55%),radial-gradient(2.4px 2.4px at 84% 40%,#fffbe6 45%,transparent 55%),radial-gradient(2px 2px at 38% 46%,#fff 45%,transparent 55%);background-size:520px 380px;animation:lyTw 4.2s ease-in-out infinite reverse;filter:drop-shadow(0 0 3px #fff)}
.ly-cloud{position:absolute;height:34px;border-radius:50%;background:radial-gradient(closest-side,rgba(190,180,255,.22),rgba(190,180,255,0));filter:blur(4px);animation:lyCloud 270s linear infinite}
.ly-cloud.c1{top:20%;width:46%;left:0;animation-delay:-60s}.ly-cloud.c2{top:31%;width:36%;left:0;animation-duration:300s;animation-delay:-140s;opacity:.7}
@keyframes lyCloud{from{transform:translateX(-70vw)}to{transform:translateX(110vw)}} /* 21:40: wind to the right at about the krathong speed */
.ly-hz{position:absolute;left:0;right:0;bottom:40%;width:100%;height:min(18vh,160px);display:block;filter:blur(2.4px) saturate(1.1)}
/* 19:22 (owner: "ฉากหลังให้เป็นวัดเบลอๆ มี bokeh แสงวัดสวยๆ") */
.ly-bokeh{position:absolute;inset:0;pointer-events:none;mix-blend-mode:screen}
.ly-bokeh i{position:absolute;width:var(--z);height:var(--z);translate:-50% -50%;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--c) 35%,transparent) 0 55%,color-mix(in srgb,var(--c) 70%,transparent) 70%,transparent 74%);box-shadow:0 0 calc(var(--z)/2) color-mix(in srgb,var(--c) 40%,transparent);filter:blur(1.2px);opacity:.5;animation:lyBok 9s ease-in-out infinite}
@keyframes lyBok{0%,100%{opacity:.28;transform:translateY(0)}50%{opacity:.7;transform:translateY(-6px)}}
.ly-streaks i{position:absolute;top:0;width:var(--w);height:42%;translate:-50% 0;background:linear-gradient(180deg,color-mix(in srgb,var(--c) 55%,transparent),transparent);filter:blur(5px);opacity:.5;animation:lyGlint 5s ease-in-out infinite}
.ly-bulbs circle{fill:#ffd27a;filter:drop-shadow(0 0 4px #ffb347);animation:lyBulb 3.2s ease-in-out infinite}.ly-bulbs circle:nth-child(odd){fill:#ff9fc8;animation-delay:-1.6s}
@keyframes lyBulb{50%{opacity:.55}}
.ly-sky:before{content:"";position:absolute;inset:0;background-image:radial-gradient(1.6px 1.6px at 12% 18%,#fff 50%,transparent 51%),radial-gradient(1.2px 1.2px at 32% 42%,#fff 50%,transparent 51%),radial-gradient(2px 2px at 58% 12%,#fff 50%,transparent 51%),radial-gradient(1.4px 1.4px at 76% 36%,#fff 50%,transparent 51%),radial-gradient(1.8px 1.8px at 90% 8%,#fff 50%,transparent 51%),radial-gradient(1.2px 1.2px at 46% 64%,#fff 50%,transparent 51%),radial-gradient(1.4px 1.4px at 22% 70%,#fff 50%,transparent 51%);background-size:260px 220px;opacity:.75;animation:lyTw 6s ease-in-out infinite}
@keyframes lyTw{50%{opacity:.45}}
.ly-moon{position:absolute;left:50%;top:5.6vh;width:var(--ms);aspect-ratio:1;translate:-50% 0;border-radius:50%;background:radial-gradient(circle at 32% 40%,rgba(170,150,110,.4) 0 7%,transparent 8%),radial-gradient(circle at 62% 30%,rgba(170,150,110,.34) 0 5%,transparent 6%),radial-gradient(circle at 56% 64%,rgba(170,150,110,.3) 0 9%,transparent 10%),radial-gradient(circle at 40% 38%,#f6ecd2 0%,#e6d3a2 60%,#c9b07a 100%);opacity:.8;filter:blur(2.6px);box-shadow:0 0 34px 8px rgba(240,225,180,.2),0 0 120px 46px rgba(200,190,255,.08)}
.ly-mbk{position:absolute;inset:0;pointer-events:none;mix-blend-mode:screen}
.ly-mbk i{position:absolute;width:var(--z);height:var(--z);translate:-50% -50%;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--c) 30%,transparent) 0 55%,color-mix(in srgb,var(--c) 65%,transparent) 70%,transparent 74%);filter:blur(1.4px);opacity:.45;animation:lyBok 10s ease-in-out infinite}
.ly-moon:after{content:"";position:absolute;inset:-30%;border-radius:50%;background:radial-gradient(closest-side,rgba(220,210,255,.08),transparent)}
.ly-river{position:absolute;left:0;right:0;bottom:0;height:40%;overflow:hidden;background:radial-gradient(40% 30% at 50% 0%,rgba(255,220,150,.07),transparent 70%),linear-gradient(180deg,#1b2f6e 0%,#10235a 30%,#0a1840 65%,#050c24 100%);border-top:1px solid rgba(255,220,170,.25)}
.ly-refl{position:absolute;left:0;right:0;top:0;height:30%;background:linear-gradient(180deg,rgba(74,53,104,.55),rgba(74,53,104,0));filter:blur(3px)}
.ly-glints u{position:absolute;height:2px;border-radius:2px;background:#f3e6c4;box-shadow:0 0 6px rgba(255,226,160,.5);opacity:.12;translate:-50% 0;animation:lyGlint 3.6s ease-in-out infinite}
@keyframes lyGlint{50%{opacity:.45}}
.ly-flies{position:absolute;inset:0;pointer-events:none}
.ly-flies i{position:absolute;width:4px;height:4px;border-radius:50%;background:#fff6b0;box-shadow:0 0 8px 3px rgba(255,236,120,.6);animation:lyFly 12s ease-in-out infinite}
@keyframes lyFly{0%,100%{transform:translate(0,0);opacity:.2}25%{transform:translate(14px,-10px);opacity:1}50%{transform:translate(-6px,-22px);opacity:.4}75%{transform:translate(-16px,-6px);opacity:.9}}
.ly-river i{position:absolute;left:0;width:100%;height:2px;background:repeating-linear-gradient(90deg,rgba(190,215,255,.0) 0 40px,rgba(190,215,255,.35) 40px 90px,rgba(190,215,255,0) 90px 160px);animation:lyWave var(--wv,60s) linear infinite}
.ly-river .w1{top:18%}.ly-river .w2{top:46%;animation-duration:calc(var(--wv,60s)*1.12);opacity:.7}.ly-river .w3{top:76%;animation-duration:calc(var(--wv,60s)*.9);opacity:.5}
.ly-river .ly-moonr{left:50%;top:0;width:min(26vmin,180px);height:100%;translate:-50% 0;background:linear-gradient(180deg,rgba(255,236,190,.14),rgba(255,236,190,.03) 70%,rgba(255,236,190,0));filter:blur(12px);animation:none}
@keyframes lyWave{to{background-position-x:160px}} /* 21:40 owner: water drifts right with the krathong; --wv set from the screen width in loy.js */
.ly-lan,.ly-kr{position:absolute;inset:0;pointer-events:none}
.ly-it{position:absolute;left:0;top:0;will-change:transform;pointer-events:auto;cursor:pointer;opacity:0;transition:opacity 2.4s}
.ly-it.on{opacity:1}
.ly-it svg{display:block;width:100%;height:auto;overflow:visible}
.ly-it .nm{position:absolute;left:50%;bottom:100%;translate:-50% 0;width:max-content;max-width:170px;white-space:normal;font:500 12px/1.2 Mitr,"IBM Plex Sans Thai",sans-serif;color:#fff;text-shadow:0 1px 4px #000,0 0 8px rgba(0,0,0,.6);text-align:center;margin-bottom:2px}
.ly-it .nm em{display:block;font:400 10.5px/1.3 "IBM Plex Sans Thai",sans-serif;font-style:normal;color:#ffeec2;max-width:180px;white-space:normal;opacity:.92}
.ly-it.me .nm{color:#ffd27a}
@media (max-width:600px){.ly-it .nm em{display:none}.ly-it.open .nm em,.ly-it.me .nm em{display:block}.ly-it .nm .wi{display:inline}}
.ly-it .nm .wi{display:none;font-size:10px}
.ly-it .tw,.ly-stage .tw,.ly-pc .tw{animation:lyTwk 2.6s ease-in-out infinite;transform-origin:center;transform-box:fill-box}
.ly-it .sh,.ly-stage .sh,.ly-card .sh{animation:lySh 3.4s ease-in-out infinite}
@keyframes lySh{50%{opacity:.08}}
@keyframes lyTwk{50%{transform:scale(.8) rotate(20deg);opacity:.8}}
.ly-it .fl{animation:lyFl 1.4s ease-in-out infinite;transform-origin:50% 100%}
@keyframes lyFl{50%{transform:scaleY(.86);opacity:.85}}
.ly-top{position:fixed;left:0;right:0;top:0;z-index:20;display:flex;align-items:center;gap:10px;padding:calc(10px + env(safe-area-inset-top,0px)) 14px 8px;background:linear-gradient(180deg,rgba(6,11,30,.8),rgba(6,11,30,0))}
.ly-back{color:#ffd27a;text-decoration:none;font:600 14px Mitr,sans-serif;white-space:nowrap}
.ly-title{position:fixed;left:50%;top:var(--mc);translate:-50% -50%;z-index:15;margin:0;font:600 clamp(26px,7vmin,46px)/1 Mitr,"IBM Plex Sans Thai",sans-serif;letter-spacing:.04em;color:#fff6dc;white-space:nowrap;text-shadow:0 2px 10px rgba(20,10,60,.85),0 0 24px rgba(255,214,140,.55),0 0 2px rgba(0,0,0,.6);pointer-events:none}
.ly-fill{flex:1}
.ly-langs button{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);color:#fff;border-radius:999px;padding:3px 9px;font:inherit;font-size:12px;cursor:pointer}
.ly-langs button.on{background:#ffd27a;color:#2a1030}
.ly-count{position:fixed;left:50%;top:calc(var(--mc) + clamp(22px,5vmin,34px));translate:-50% 0;z-index:15;margin:0;font:500 12.5px Mitr,sans-serif;color:#fff0c2;text-shadow:0 1px 4px #000;white-space:nowrap;text-align:center;line-height:1.5}
.ly-pick{position:fixed;left:14px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:20;display:flex;gap:12px}
.ly-rb{width:68px;height:68px;border-radius:50%;border:2px solid rgba(255,210,122,.7);background:radial-gradient(circle at 50% 35%,rgba(255,236,180,.35),rgba(30,20,60,.85));color:#fff;cursor:pointer;display:grid;place-items:center;align-content:center;gap:0;box-shadow:0 0 22px rgba(255,200,110,.35);font:inherit}
.ly-rb span{font-size:28px;line-height:1}.ly-rb small{font:500 11px Mitr,sans-serif}
.ly-rb:focus-visible,.ly-btn:focus-visible,.ly-chip:focus-visible{outline:2px solid #ffd27a;outline-offset:3px}
.ly-pop{position:fixed;inset:0;z-index:40;display:grid;place-items:end center;background:rgba(3,5,15,.55);animation:lyIn .2s}
.ly-pop>div{box-sizing:border-box;width:min(560px,100%);max-height:86vh;overflow:auto;background:linear-gradient(180deg,#22184a,#120c2a);border:1px solid rgba(255,210,122,.4);border-radius:22px 22px 0 0;padding:16px 16px calc(18px + env(safe-area-inset-bottom,0px));box-shadow:0 -12px 40px rgba(0,0,0,.6)}
@keyframes lyIn{from{opacity:0}}
.ly-pop h3{margin:0 0 4px;font:500 18px Mitr,sans-serif}.ly-pop .sub{margin:0 0 12px;font-size:13px;opacity:.8}
.ly-x{float:right;width:34px;height:34px;border-radius:50%;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.06);color:#fff;font-size:16px;cursor:pointer}
.ly-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}@media (min-width:520px){.ly-grid{grid-template-columns:repeat(5,1fr)}}
.ly-card{display:grid;justify-items:center;gap:4px;padding:10px 8px;border-radius:16px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);color:#fff;cursor:pointer;font:inherit}
.ly-card svg{width:72px;height:auto}
.ly-card b{font:500 14px Mitr,sans-serif}.ly-card em{font-style:normal;font-size:13px;color:#ffd27a}
.ly-card.used{opacity:.55}
.ly-front{position:fixed;left:0;right:0;bottom:0;z-index:30;max-height:100vh;overflow:auto;background:linear-gradient(180deg,rgba(34,24,74,.0),rgba(18,12,42,.96) 30%);padding:calc(70px + env(safe-area-inset-top,0px)) 16px calc(16px + env(safe-area-inset-bottom,0px))}
.ly-stage{position:relative;width:min(300px,72vw,40vh);margin:0 auto;touch-action:none;filter:drop-shadow(0 0 24px rgba(255,200,110,.45))}
.ly-stage svg{width:100%;height:auto;display:block}
.ly-stage .sel{stroke:#ff6fb1;stroke-width:1;stroke-dasharray:3 2;fill:none}
.ly-wrap{width:min(560px,100%);margin:0 auto}
.ly-row{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:8px 0}
.ly-chip{border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.07);color:#fff;border-radius:999px;padding:7px 12px;font:inherit;font-size:13px;cursor:pointer}
.ly-chip.on{background:#ffd27a;color:#2a1030;border-color:#ffd27a}
.ly-pal{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:6px 0}
.ly-pal button{width:28px;height:28px;border-radius:50%;border:2px solid rgba(255,255,255,.25);cursor:pointer;padding:0}
.ly-pal button[aria-pressed=true]{border-color:#fff;box-shadow:0 0 0 2px #ffd27a}
.ly-cols{display:flex;flex-wrap:wrap;gap:9px;justify-content:center;margin:8px 0}.ly-cols button{width:30px;height:30px;border-radius:50%;border:2px solid rgba(255,255,255,.3);cursor:pointer;padding:0}.ly-cols button[aria-pressed=true]{border-color:#ffd27a;box-shadow:0 0 0 2px rgba(255,210,122,.6)}
.ly-lab{margin:10px 0 0;font:500 12px/1.2 Mitr,sans-serif;color:#ffd27a;text-align:left}.ly-shp{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:8px 0}.ly-shp svg{width:46px;height:46px}.ly-shp .ly-pc.on{border-color:#ffd27a;background:rgba(255,210,122,.18)}
.ly-pcs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:10px 0}
@media (min-width:520px){.ly-pcs{grid-template-columns:repeat(8,1fr)}}
.ly-pc{display:grid;justify-items:center;gap:2px;padding:8px 4px;border-radius:14px;border:1px solid rgba(255,210,122,.3);background:rgba(255,255,255,.05);color:#fff;cursor:pointer;font:inherit}
.ly-pc svg{width:40px;height:40px;filter:drop-shadow(0 0 6px rgba(255,200,110,.4))}
.ly-pc b{font:500 12px/1.2 Mitr,sans-serif;text-align:center}.ly-pc em{font-style:normal;font-size:12px;color:#ffd27a}
.ly-pc.own{border-color:rgba(110,230,160,.45)}.ly-pc.own em{color:#9ff0c0}
.ly-pc.on{outline:2px solid #ffd27a;outline-offset:1px}
.ly-pc:focus-visible{outline:2px solid #ffd27a;outline-offset:2px}
.ly-wish{display:block;margin:10px 0 4px;font-size:13px}
.ly-wish textarea{display:block;width:100%;box-sizing:border-box;margin-top:4px;min-height:58px;resize:vertical;border-radius:14px;border:1px solid rgba(255,255,255,.2);background:rgba(0,0,0,.3);color:#fff;font:inherit;font-size:14px;padding:9px 12px}
.ly-show{display:flex;gap:8px;align-items:center;font-size:13px;margin:6px 0}
.ly-hint{text-align:center;margin:12px 0 6px;font:500 15px Mitr,sans-serif;color:#ffeec2;letter-spacing:.02em}
.ly-btn{display:block;width:100%;padding:14px;border-radius:999px;border:0;cursor:pointer;font:600 16px Mitr,sans-serif;color:#2a1030;background:linear-gradient(90deg,#fff0c2,#ffd27a)}
.ly-btn[disabled]{opacity:.5;cursor:default}
.ly-ghost{display:block;width:100%;margin-top:8px;padding:10px;border-radius:999px;border:1px solid rgba(255,255,255,.2);background:transparent;color:#fff;font:inherit;cursor:pointer}
.ly-tot{text-align:center;font-size:13px;opacity:.9;margin:4px 0}
.ly-tot b{color:#ffd27a}
.ly-toast{position:fixed;left:50%;top:calc(84px + env(safe-area-inset-top,0px));translate:-50% 0;z-index:50;margin:0;max-width:86vw;padding:10px 16px;border-radius:16px;background:rgba(20,14,44,.94);border:1px solid rgba(255,210,122,.5);font-size:14px;text-align:center;box-shadow:0 8px 24px rgba(0,0,0,.5)}
.ly-gift{display:grid;justify-items:center;gap:6px;text-align:center}
.ly-gift .figs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px;justify-items:center}.ly-gift .figs svg{width:min(110px,36vw);height:auto}
@media (prefers-reduced-motion:reduce){.ly-mbk i,.ly-it .sh,.ly-stage .sh,.ly-card .sh,.ly-bokeh i,.ly-streaks i,.ly-sky:before,.ly-stars2,.ly-cloud,.ly-bulbs circle,.ly-glints u,.ly-flies i,.ly-river i,.ly-it .fl,.ly-it .tw{animation:none}.ly-it{transition:none}}

/* 20:49 (owner: "ให้เหมือนมีเงาโคมลอยเบลอๆอยู่ฉากหลังและมีโบเก้ตรงนั้นด้วย"): far-off lanterns, blurred, rising slowly; warm bokeh among them */
.ly-far{position:absolute;inset:0;pointer-events:none}
.ly-far i{position:absolute;width:var(--w);height:calc(var(--w)*1.25);translate:-50% -50%;border-radius:32% 32% 24% 24%;background:radial-gradient(circle at 50% 82%,#fff0c0 0,#ffb257 45%,#e8742a 75%,rgba(200,90,30,.6));box-shadow:0 0 calc(var(--w)*1.4) calc(var(--w)*.3) rgba(255,160,80,.45);filter:blur(var(--b));opacity:0;animation:lyFar 70s linear infinite}
.ly-far b{position:absolute;width:var(--z);height:var(--z);translate:-50% -50%;border-radius:50%;background:radial-gradient(circle,rgba(255,190,120,.22) 0 55%,rgba(255,180,110,.45) 70%,transparent 74%);filter:blur(1.4px);mix-blend-mode:screen;opacity:.45;animation:lyBok 10s ease-in-out infinite}
@keyframes lyFar{0%{opacity:0;transform:translate(0,0)}12%{opacity:var(--o)}50%{transform:translate(5vw,-5vh)}88%{opacity:var(--o)}100%{opacity:0;transform:translate(10vw,-10vh)}}
@media (prefers-reduced-motion:reduce){.ly-far i{animation:none;opacity:var(--o)}.ly-far b{animation:none}}

/* 20:52 album: the scrapbook look of the site's album (social.js .fd-pgx / .fd-ph) */
.lya-b{position:fixed;right:18px;bottom:88px;z-index:30;width:58px;height:66px;padding:5px 5px 14px;border:0;background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.5);transform:rotate(4deg);cursor:pointer;border-radius:2px}
.lya-b:before,.lya-ph:before{content:"";position:absolute;top:-7px;left:30%;width:40%;height:13px;background:rgba(244,214,128,.8);transform:rotate(-3deg);box-shadow:0 1px 2px rgba(0,0,0,.15)}
.lya-b img,.lya-b .lya-im{display:block;width:100%;height:100%;object-fit:cover;background:#2a2050}
.lya-b em{position:absolute;right:-8px;top:-8px;min-width:20px;height:20px;border-radius:10px;background:#ff5a7a;color:#fff;font:500 11px/20px Mitr,sans-serif;font-style:normal}
.lya-b:focus-visible{outline:2px solid #ffd27a;outline-offset:3px}
.lya-cam{position:relative;width:min(100%,400px);aspect-ratio:3/4;margin:8px auto 0}
.lya-pg{position:absolute;inset:0;box-sizing:border-box;border-left:10px solid #4a2f5e;border-radius:4px 12px 12px 4px;background:repeating-linear-gradient(0deg,transparent 0 23px,rgba(120,100,150,.13) 23px 24px),linear-gradient(90deg,#e4d8bf,#fbf6ea 8%);box-shadow:0 12px 30px rgba(0,0,0,.5),inset 10px 0 14px -10px rgba(0,0,0,.45)}
.lya-pg small{position:absolute;bottom:6px;right:12px;color:#8a7f9c;font-size:.7rem}
.lya-e{position:absolute;inset:40% 10% auto;text-align:center;color:#6a5f80;font:300 14px Mitr,sans-serif}
.lya-ph{position:absolute;margin:0;box-sizing:border-box;padding:5% 5% 0;background:#fff;box-shadow:0 3px 9px rgba(0,0,0,.3);cursor:pointer;transition:transform .2s}
.lya-ph:hover{z-index:2}
.lya-ph img,.lya-ph .lya-im{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;background:#e8dfcc}
.lya-ph figcaption{font:300 .62rem/1.3 Mitr,sans-serif;color:#3a3150;padding:4px 2px 6px;text-align:center;overflow-wrap:anywhere}
.lya-nav span{align-self:center;font-size:13px;opacity:.8}
.lya-big{display:grid;place-items:center;min-height:200px}.lya-big img{width:min(100%,380px);border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.5)}
.lya-btns{gap:10px}.lya-btns .ly-btn,.lya-btns .ly-ghost{width:auto;padding-left:18px;padding-right:18px}
.lya-leaf{transform-origin:0 50%;z-index:3;box-shadow:12px 0 30px rgba(0,0,0,.45),inset -30px 0 40px -20px rgba(60,40,20,.35)}

.ly-gnote{position:fixed;left:0;right:0;margin:0 auto;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:90;box-sizing:border-box;width:min(94vw,440px);display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:center;padding:12px 40px 12px 14px;border-radius:18px;background:rgba(20,14,44,.96);border:1px solid rgba(255,210,122,.6);box-shadow:0 8px 28px rgba(0,0,0,.6);color:#fff;animation:lyUp .4s ease-out}
.ly-gnote[hidden]{display:none}.ly-gnote b{grid-column:1}.ly-gnote span{grid-column:1;font-size:.82rem;opacity:.85}
.ly-gnote .ly-btn{grid-column:2;grid-row:1/3;padding:8px 14px;white-space:nowrap}
.ly-gx{position:absolute;right:8px;top:6px;border:0;background:none;color:#fff;opacity:.7;font-size:16px;cursor:pointer}
@keyframes lyUp{from{opacity:0;transform:translateY(24px)}}
@media (prefers-reduced-motion:reduce){.ly-gnote{animation:none}}

.ly-room{margin-top:4px;padding:3px 12px;border-radius:999px;border:1px solid rgba(255,210,122,.6);background:rgba(20,14,44,.7);color:#ffd27a;font:500 12px Mitr,sans-serif;cursor:pointer;pointer-events:auto}
.ly-room:focus-visible{outline:2px solid #ffd27a;outline-offset:2px}
.ly-rrow{display:flex;gap:8px;width:100%;max-width:320px}.ly-rrow input{flex:1;min-width:0;padding:10px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.08);color:#fff;font:500 16px Mitr,sans-serif}
.ly-rrow .ly-btn{flex:0 0 auto;width:auto;padding-left:20px;padding-right:20px}
.ly-pop>.ly-gift{padding-bottom:76px}
.ly-coin{position:absolute;left:50%;top:10%;translate:-50% 0;font:600 15px Mitr,sans-serif;color:#ffd27a;text-shadow:0 0 8px rgba(255,200,90,.9),0 1px 3px #000;white-space:nowrap;pointer-events:none;animation:lyCoin 1.8s ease-out forwards}
.ly-coin.no{font-size:11px;color:#fff;opacity:.85;text-shadow:0 1px 3px #000}
@keyframes lyCoin{to{transform:translateY(-46px);opacity:0}}
@media (prefers-reduced-motion:reduce){.ly-coin{animation:none}}
.ly{touch-action:none} /* 22:16: sideways swipes pan the long river */
.ly-hint{position:fixed;top:58%;z-index:16;padding:7px 12px;border-radius:999px;border:1px solid rgba(255,210,122,.55);background:rgba(20,14,44,.72);color:#ffd27a;font:500 12.5px Mitr,sans-serif;cursor:pointer;animation:lyHint 2.4s ease-in-out infinite}
.ly-hint[hidden]{display:none}.ly-hint.l{left:8px}.ly-hint.r{right:8px;animation-direction:reverse}
@keyframes lyHint{50%{transform:translateX(4px)}}
@media (prefers-reduced-motion:reduce){.ly-hint{animation:none}}
/* 22:16: a long river holds up to 60 floats; their tiny inner animations (twinkle, shimmer, flame) cost ~20 ms a frame on a slow
   phone, so they run only on your own floats and on one you tap; the others still drift, bob and sway */
.ly-it:not(.me):not(.open) .tw,.ly-it:not(.me):not(.open) .sh,.ly-it:not(.me):not(.open) .fl{animation:none}
/* 2026-11-23 (owner): smooth page in/out, pop-ups in and out, scenery that follows the swipe */
::view-transition-old(root),::view-transition-new(root){animation-duration:.38s;animation-timing-function:ease}
.ly{animation:lyPageIn .5s ease both}
body.ly-leave .ly,body.ly-leave .ly-top,body.ly-leave .ly-pick{transition:opacity .25s ease,transform .25s ease;opacity:0;transform:scale(.985)}
@keyframes lyPageIn{from{opacity:0;transform:scale(1.02)}}
.ly-pop{animation:lyFadeIn .26s ease both}
.ly-pop>div{animation:lyUp .38s cubic-bezier(.2,.9,.25,1) both}
.ly-pop.out{animation:lyFadeOut .23s ease forwards;pointer-events:none}
.ly-pop.out>div{animation:lyDown .23s ease forwards}
.ly-front{animation:lyUp .38s cubic-bezier(.2,.9,.25,1) both}
.ly-front.out{animation:lyDown .23s ease forwards;pointer-events:none}
.ly-toast{animation:lyDrop .3s cubic-bezier(.2,.9,.25,1) both}
.ly-toast.out{animation:lyFadeOut .23s ease forwards}
.ly-gnote{animation:lyUp .34s cubic-bezier(.2,.9,.25,1) both}
.ly-gnote.out{animation:lyDown .23s ease forwards;pointer-events:none}
@keyframes lyFadeIn{from{opacity:0}}
@keyframes lyFadeOut{to{opacity:0}}
@keyframes lyUp{from{opacity:0;transform:translateY(36px) scale(.98)}}
@keyframes lyDown{to{opacity:0;transform:translateY(36px) scale(.98)}}
@keyframes lyDrop{from{opacity:0;transform:translateY(-14px)}}
.ly-pxw{position:absolute;inset:0;pointer-events:none;will-change:transform}
.ly-river>.ly-pxw{overflow:visible}
.ly-pxc{translate:100% 0}
.ly-river>i{width:calc(100% + 170px)}
@media (prefers-reduced-motion:reduce){.ly,.ly-pop,.ly-pop>div,.ly-front,.ly-toast,.ly-gnote{animation:none}}
.ly-streaks{position:absolute;inset:0;display:block}

/* 23 Nov: room browsing */.ly-rw{display:inline-flex;align-items:center;gap:6px;margin-top:4px}.ly-rw .ly-room{margin-top:0}.ly-rn{width:30px;height:26px;border-radius:999px;border:1px solid rgba(255,210,122,.6);background:rgba(20,14,44,.7);color:#ffd27a;font:500 12px Mitr,sans-serif;cursor:pointer;pointer-events:auto;padding:0}.ly-rn:active{background:rgba(255,210,122,.25)}.ly-rg{display:flex;flex-wrap:wrap;gap:6px;max-height:32vh;overflow:auto;margin:10px 0;-webkit-overflow-scrolling:touch}.ly-rg .ly-chip{padding:5px 10px;font-size:12px}.ly-rg .ly-chip.on{background:#ffd27a;color:#2a1030;border-color:#ffd27a}
/* 23 Nov 2026 (owner): builder = krathong fixed in the middle, the float button on a bar, one category at a time below */
.ly-front[hidden]{display:none}
.ly-front{top:0;max-height:none;overflow:hidden;display:flex;flex-direction:column;padding:calc(64px + env(safe-area-inset-top,0px)) 0 0;background:linear-gradient(180deg,rgba(18,12,42,.78),rgba(18,12,42,.97) 45%)}
.ly-front .ly-wrap{flex:1;min-height:0;display:flex;flex-direction:column}
.ly-front .ly-stage{width:min(280px,70vw,34dvh);margin:auto}
.ly-bar{display:flex;align-items:center;gap:8px;padding:6px 14px}
.ly-bar .ly-tot{flex:1;margin:0;text-align:left}
.ly-ib{flex:none;width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.06);color:#fff;font-size:16px;cursor:pointer}
.ly-go{flex:none;padding:12px 22px;border-radius:999px;border:0;cursor:pointer;font:600 16px Mitr,sans-serif;color:#2a1030;background:linear-gradient(90deg,#fff0c2,#ffd27a);box-shadow:0 0 18px rgba(255,210,122,.5)}
.ly-tabs{display:flex;gap:4px;overflow-x:auto;padding:4px 10px;border-top:1px solid rgba(255,210,122,.25);border-bottom:1px solid rgba(255,210,122,.25);scrollbar-width:none}
.ly-tabs::-webkit-scrollbar{display:none}
.ly-tabs button{flex:1 0 auto;display:grid;justify-items:center;gap:1px;min-width:56px;padding:6px 8px;border:0;border-radius:12px;background:none;color:#cdbdf2;font:500 12px Mitr,sans-serif;cursor:pointer}
.ly-tabs i{font-style:normal;font-size:20px;line-height:1.1}
.ly-tabs [aria-selected=true]{background:rgba(255,210,122,.16);color:#ffd27a}
.ly-tabc{flex:none;height:min(34dvh,300px);overflow-y:auto;overscroll-behavior:contain;padding:8px 14px calc(14px + env(safe-area-inset-bottom,0px))}
.ly-wtip{text-align:center;margin:12px 0 4px;font:500 15px Mitr,sans-serif;color:#ffeec2}
.ly-go:focus-visible,.ly-ib:focus-visible,.ly-tabs button:focus-visible{outline:2px solid #ffd27a;outline-offset:2px}
/* 23 Nov 2026 (owner: "กระตุก", the page froze even with an empty river). Measured at 4x CPU throttle: ~235 running animations on
   blurred, blend-mode layers held the river at ~30 fps; with them paused it is 60. So: no blend-mode or blur on the moving glows,
   a third of the bokeh and half the far lanterns move, the bunting bulbs stay still, and the scene pauses while you decorate */
.ly-bokeh,.ly-mbk,.ly-far b{mix-blend-mode:normal}
.ly-bokeh i,.ly-mbk i,.ly-far b{filter:none;box-shadow:none}
.ly-bokeh i:not(:nth-child(3n)),.ly-mbk i:not(:nth-child(3n)),.ly-far b:not(:nth-child(3n)){animation:none}
.ly-far i{filter:none}
.ly-far i:nth-child(odd){animation:none;opacity:var(--o)}
.ly-bulbs circle{animation:none;filter:none}
body.ly-f #ly *,body.ly-f #ly{animation-play-state:paused}
/* water lines drift with `translate` (composited) instead of background-position (a repaint every frame); wider so no gap shows */
.ly-river>i:not(.ly-moonr),.ly-river>.ly-pxw>i:not(.ly-moonr){left:-160px;width:calc(100% + 340px);animation-name:lyWave2}
@keyframes lyWave2{from{translate:0 0}to{translate:160px 0}}
.ly-flies i,.ly-bokeh i:nth-child(3n),.ly-mbk i:nth-child(3n),.ly-far i:nth-child(even),.ly-glints u,.ly-cloud{will-change:transform,opacity}
/* the moon streaks matched `.ly-river i` and ran the water drift: a repaint each frame that showed nothing on a thin strip */
.ly-streaks i{animation:none}
/* soft glows drawn by the gradient itself, now that the blur filter is gone */
.ly-bokeh i,.ly-mbk i,.ly-far b{background:radial-gradient(circle,color-mix(in srgb,var(--c,#ffbe78) 34%,transparent) 0,color-mix(in srgb,var(--c,#ffbe78) 16%,transparent) 50%,transparent 71%)}
/* 23 Nov 2026: pop-ups and the builder fit the visible height on iOS (dvh), so ✕ stays on screen */
html,body{height:100dvh}
.ly-pop>div{max-height:86dvh}
.ly-rg{max-height:32dvh}
.ly-front{bottom:0;height:100dvh}

/* 23 Nov 2026: SEO / screen-reader text about Loy Krathong online; the page itself is a full-screen scene */
.ly-seo{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:normal;border:0}
/* 23 Nov: the name and consent sheet before a float goes */
.ly-ask{position:fixed;inset:0;z-index:45;display:grid;place-items:end center;background:rgba(3,5,15,.55);animation:lyFadeIn .2s ease both}
.ly-askc{box-sizing:border-box;width:min(520px,100%);background:linear-gradient(180deg,#22184a,#120c2a);border:1px solid rgba(255,210,122,.4);border-radius:22px 22px 0 0;padding:16px 16px calc(18px + env(safe-area-inset-bottom,0px));color:#fff;animation:lyUp .32s cubic-bezier(.2,.9,.25,1) both}
.ly-askc h3{margin:0 0 4px;font:600 17px Mitr,sans-serif;color:#ffe9b0}
.ly-askc input[type=text],.ly-askc #lyName{display:block;width:100%;box-sizing:border-box;margin-top:4px;border-radius:14px;border:1px solid rgba(255,255,255,.2);background:rgba(0,0,0,.3);color:#fff;font:inherit;font-size:16px;padding:10px 12px}
.ly-askc .ly-show{align-items:flex-start;line-height:1.45}.ly-askc .ly-show input{margin-top:3px;flex:none;width:18px;height:18px}
.ly-askb{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:12px}
.ly-go:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.ly-lnk{border:0;background:none;padding:0;color:#ffd27a;text-decoration:underline;font:inherit;cursor:pointer}
@media (prefers-reduced-motion:reduce){.ly-ask,.ly-askc{animation:none}}
.ly-askc{max-height:88dvh;overflow:auto}
/* 23 Nov: remove-piece button beside the release button; the undo button greys out with nothing to undo */
.ly-del{flex:none;padding:11px 14px;border-radius:999px;border:1px solid rgba(255,140,140,.6);background:rgba(120,20,40,.55);color:#ffd9d9;font:600 14px Mitr,sans-serif;cursor:pointer;animation:lyFadeIn .18s ease both}
.ly-del[hidden]{display:none}
.ly-ib:disabled{opacity:.35;cursor:default}
@media (max-width:380px){.ly-del{padding:10px 11px;font-size:13px}}
/* 23 Nov: a tap shakes the krathong or lantern (the element itself moves by script, so the picture inside shakes) */
.ly-it.shk>svg{animation:lyShk .55s ease-in-out;transform-origin:50% 80%}
@keyframes lyShk{20%{transform:rotate(-6deg)}40%{transform:rotate(5deg)}60%{transform:rotate(-3deg)}80%{transform:rotate(2deg)}}
@media (prefers-reduced-motion:reduce){.ly-it.shk>svg{animation:none}}
/* 23 Nov 11:48 (owner: "ต้องกดที่กระทงหรือโคม คำอธิษฐานของโคมหรือกระทงนั้นถึงโผล่มา"): on every screen, yours too, a wish shows only on the one you tapped */
.ly-it .nm em,.ly-it.me .nm em{display:none}
.ly-it.open .nm em{display:block}
.ly-it .nm .wi{display:inline}
/* 23 Nov 11:58 (owner: "บนหน้าจอคอม หลังคาวัดหาย"): on wide screens the horizon scales by width (slice) and grew taller than its box,
   so the box cut the roof and the spire tops. 12:20 (owner: a dark block over the temple on the phone): overflow:visible let the
   wrap copy one screen to the right spill its sides over the temple. Instead the box is never shorter than the picture at full width */
.ly-hz{--hh:max(min(18vh,160px),calc(100vw / 6));height:var(--hh);width:calc(var(--hh) * 6);right:auto} /* 12:22 (owner: the temples go on, smooth, when you swipe): the strip keeps its 6:1 shape and repeats end to end */
/* 23 Nov 12:10: the ‹ › hints sat on the waterline over the floats; they go low, above the round buttons */
.ly-hint.l,.ly-hint.r{top:auto;bottom:calc(128px + env(safe-area-inset-bottom,0px));opacity:.88}
/* 12:22: the blur goes on the pair of horizon strips together, so their join has no soft edge */
.ly-pxw.hzw{filter:blur(2.4px) saturate(1.1)}
.ly-pxw.hzw .ly-hz{filter:none}
.ly-pxw.hzw{right:auto;width:calc(max(min(18vh,160px),calc(100vw / 6)) * 12)} /* wide enough for both strips, so the blur covers the join */

/* 12:41: the sky colour on a still layer (the drifting sky and its copy are transparent), so no line where the copies meet */
.ly-skybg{position:absolute;left:0;right:0;top:0;height:62%;pointer-events:none;background:radial-gradient(70% 40% at 50% 100%,rgba(255,170,110,.28),transparent 70%),radial-gradient(60% 45% at 50% 18%,rgba(140,150,255,.18),transparent 70%),linear-gradient(180deg,#070a24 0%,#121a4a 45%,#2a2a68 82%,#4a3568 100%)}
.ly-pxw>.ly-sky{background:none}

/* 2026-11-23 (owner: "อัลบั้มบังตอนแต่งกระทง/โคม น้องมะเขือไม่ต้องมีในหน้านี้ อัลบั้มต้องอยู่ด้านบนเติมดาว"): the album sits above the top-up button, hides while decorating; no Makhuea dock here */
body.ly-f .lya-b{display:none}.sk-dock{display:none!important}
/* 2026-11-23: the top-up button covered the pop-up buttons (album, picture): hidden while a pop-up is open */
body:has(#lyPop:not([hidden])) .sk-fab,body:has(#lyPop:not([hidden])) .lya-b{display:none}
/* 2026-11-23 18:37: the site album's book (copied from jung/assets/social.js .fd-*) */
.fd-cam{position:relative;width:min(100%,400px);aspect-ratio:3/4;max-height:min(60vh,470px);margin:0 auto;overflow:hidden;border-radius:12px;background:radial-gradient(circle at 50% 40%,#3b2a50,#1d1429)}
.fd-sht{position:absolute;left:0;top:0;width:100%;aspect-ratio:3/4;transform-origin:0 0;transition:transform 1.05s cubic-bezier(.65,.05,.25,1)}
.fd-pgx{position:absolute;left:0;width:100%;height:100%;box-sizing:border-box;border-left:10px solid #4a2f5e;border-radius:4px 12px 12px 4px;background:repeating-linear-gradient(0deg,transparent 0 23px,rgba(120,100,150,.13) 23px 24px),linear-gradient(90deg,#e4d8bf,#fbf6ea 8%);box-shadow:0 12px 30px rgba(0,0,0,.5),inset 10px 0 14px -10px rgba(0,0,0,.45)}
.fd-pgx small{position:absolute;bottom:6px;right:12px;color:#8a7f9c;font-size:.7rem}
.fd-ph{position:absolute;margin:0;box-sizing:border-box;padding:5% 5% 0;background:#fff;box-shadow:0 3px 9px rgba(0,0,0,.3);transform-origin:50% 50%}
.fd-ph:before{content:'';position:absolute;top:-7px;left:32%;width:36%;height:14px;background:rgba(244,214,128,.75);transform:rotate(-3deg);box-shadow:0 1px 2px rgba(0,0,0,.15)}
.fd-ph img{display:block;width:100%;height:auto;object-fit:cover;background:#e8dfcc}
.fd-ph figcaption{font:300 .6rem/1.3 Mitr,sans-serif;color:#3a3150;padding:4px 2px 6px;min-height:1.3em;text-align:center;overflow-wrap:anywhere}
.fd-bk{position:absolute;top:50%;margin-top:-19px;z-index:3;width:38px;height:38px;border-radius:50%;border:0;background:rgba(0,0,0,.5);color:#fff;font-size:1.4rem;cursor:pointer}
.fd-bk.p{left:6px}
.fd-bk.n{right:6px}
.fd-bar{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:10px}
.fd-ct{min-width:4.5em;text-align:center;color:var(--muted)}
.fd-edw{position:relative;width:min(100%,380px);margin:0 auto}
.fd-ed{transition:none}
.fd-ed .fd-ph{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.fd-ed .fd-ph img{pointer-events:none}
.fd-ed .fd-ph.on{outline:2px dashed #b48cff;outline-offset:3px;z-index:2}
.fd-rs{display:none;position:absolute;right:-11px;bottom:-11px;width:22px;height:22px;border-radius:50%;background:#b48cff;border:2px solid #fff;cursor:nwse-resize;touch-action:none}
.fd-ph.on .fd-rs{display:block}
.fd-eth{margin:0 0 8px;text-align:center}
.fd-etb{display:flex;align-items:center;justify-content:center;gap:12px;margin:12px 0 8px}
.fd-ic{width:46px;height:46px;border-radius:50%;border:0;display:inline-flex;align-items:center;justify-content:center;font-size:20px;line-height:1;color:#fff;cursor:pointer;background:linear-gradient(135deg,#ff5fae,#b23bd1);box-shadow:0 6px 16px -6px rgba(240,56,154,.7),inset 0 0 0 1px rgba(255,255,255,.25);flex:0 0 auto;padding:0}
.fd-ic:active{transform:scale(.92)}
.fd-ic:focus-visible{outline:2px solid #ffd27a;outline-offset:2px}
.fd-ic.add{font-size:26px;font-weight:700;background:linear-gradient(135deg,#ffd27a,#ff9f5a);color:#2a1030}
.fd-ic.lk{background:rgba(255,255,255,.14);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.45)}
.fd-ic.lk.on{background:linear-gradient(135deg,#7ee0ff,#6b7dff)}
.fd-ic.bk{background:linear-gradient(135deg,#9b8cff,#5b4bd6)}
.fd-ic.off{font-size:26px;font-weight:700;background:rgba(255,255,255,.14);color:rgba(255,255,255,.5);box-shadow:none;cursor:default}
.fd-ic.sm{width:40px;height:40px;font-size:18px;background:rgba(255,255,255,.16);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.4)}
.fd-ic.del{background:linear-gradient(135deg,#ff6b6b,#d63a5a)}
.fd-cnt{font:600 13px/1 Mitr,sans-serif;color:#ffd27a;margin-left:-6px}
.fd-sel{min-height:52px}
.fd-sel>p{margin:6px 0 0;text-align:center}
.fd-selr{display:flex;gap:8px;align-items:center}
.fd-selr .sxp-in{flex:1;min-width:0;box-sizing:border-box}
.fd-sel,.fd-etb,.fd-eth,.fd-edw{flex-shrink:0}
.fd-ph .lya-im{display:block;width:100%;aspect-ratio:3/4;background:#e8dfcc}.fd-ph img{aspect-ratio:3/4}.fd-ct{color:rgba(255,255,255,.7);font-size:13px}.lya-hint{text-align:center;font-size:13px;opacity:.8}.lya-sh:empty{display:none}
@media (prefers-reduced-motion:reduce){.fd-sht{transition:none}}
