/* DIYINSPIRENOW LAND – ลอยกระทงออนไลน์. Colours: --loy-g green, --loy-n night, --loy-y gold, --loy-b button, --loy-s soft, --loy-t text */
.din-loy {
	--loy-g: #4ba44e; --loy-n: #0f2440; --loy-y: #ffd166; --loy-b: #f2b84b; --loy-s: #f6faf4; --loy-t: #2b481e;
	--loy-line: #cfe5c9; --loy-s1: #a3c76d; --loy-r: #324b6a; --loy-head: var(--din-font, "Sarabun"), sans-serif;
	position: relative; max-width: 1200px; margin: 0 auto 56px; color: #24331f; font-family: var(--din-font, "Sarabun", sans-serif); line-height: 1.6;
}
.din-loy *, .din-loy *::before, .din-loy *::after { box-sizing: border-box; }
.din-loy p { margin: 0; }
.din-loy img { max-width: 100%; }
.din-loy button { font: inherit; cursor: pointer; }
.din-loy :focus-visible { outline: 3px solid var(--loy-g); outline-offset: 3px; }
.din-loy [hidden] { display: none !important; }
/* the post-content styles (.entry-content img / figcaption) must not resize the game pictures */
.entry-content .din-loy img { margin: 0 !important; max-width: none !important; display: block; }
.din-loy .din-loy__kt img { width: 64px; height: 60px !important; }
.din-loy .din-loy__scene img { width: 100%; height: auto !important; }
.din-loy .din-loy__pvscene, .din-loy .din-loy__stagebg, .din-loy .din-loy__cardart img { width: 100%; height: 100% !important; border-radius: 0; }
.din-loy .din-loy__pvkt { height: 90px !important; }
.din-loy .din-loy__cardart img.din-loy__cardkt { inset: auto; left: 50%; bottom: 8px; width: 150px; height: 120px !important; margin-left: -75px !important; object-fit: contain; }
.din-loy .din-loy__boat img { height: auto !important; max-width: none !important; }

/* headings */
.din-loy__head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; margin: 0 0 26px; }
.din-loy__head--left { align-items: flex-start; text-align: left; margin-bottom: 4px; }
.din-loy__eyebrow { font-size: 14px; font-weight: 800; letter-spacing: .08em; color: var(--loy-g); }
.din-loy__title { margin: 0 !important; font-family: var(--loy-head); font-weight: 600; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.35; color: var(--loy-t); }
.din-loy__sub { max-width: 680px; font-size: 17px; color: #4d5e47; }
.din-loy__head--night .din-loy__eyebrow { color: #ffe7a3; }
.din-loy__head--night .din-loy__title { color: #fff; }
.din-loy__head--night .din-loy__sub { color: #d9e6f2; }

/* ================= builder ================= */
.din-loy__builder { display: flex; flex-direction: column; gap: 24px; }
.din-loy__top { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.din-loy__steps { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.din-loy__head--builder .din-loy__title { color: var(--loy-g); font-weight: 700; }
.din-loy__step--1 { background: var(--loy-s1); }
.din-loy__builder > .din-loy__step .din-loy__chips { gap: 10px; }
.din-loy__step { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 22px; background: var(--loy-s); }
.din-loy__stephead { display: flex; align-items: center; gap: 10px; margin: 0 !important; font-size: 18px; font-weight: 800; color: var(--loy-t); }
.din-loy__num { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--loy-g); color: #fff; display: inline-grid; place-items: center; font-size: 15px; font-weight: 800; }
.din-loy__label { font-size: 14px; font-weight: 700; color: #4d5e47; margin-top: 4px !important; }

.din-loy__kts, .din-loy__scenes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.din-loy__kt, .din-loy__scene { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px 8px; border-radius: 16px; border: 2px solid #e3ecdf; background: #fff; color: var(--loy-t); font-size: 13px; font-weight: 700; line-height: 1.3; text-align: center; transition: transform .15s, border-color .15s, background .15s; }
.din-loy__kt:hover, .din-loy__scene:hover { transform: translateY(-2px); border-color: var(--loy-line); }
.din-loy__kt img { width: 64px; height: 60px; object-fit: contain; }
.din-loy__scene { padding: 4px 4px 6px; border-radius: 14px; }
.din-loy__scene img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 70%; border-radius: 10px; }
.din-loy__kt[aria-checked="true"], .din-loy__scene[aria-checked="true"] { border: 3px solid var(--loy-g); background: #eef7ea; box-shadow: 0 6px 14px rgba(75, 164, 78, .18); }
.din-loy__morekt { align-self: flex-start; border: 0; background: none; padding: 2px 0; color: var(--loy-g); font-size: 14px; font-weight: 800; }

.din-loy__groups { display: flex; flex-direction: column; gap: 12px; }
.din-loy__group { display: flex; align-items: flex-start; gap: 10px; }
.din-loy__group > small { flex: none; width: 96px; padding-top: 9px; font-size: 13px; font-weight: 800; color: var(--loy-g); }
.din-loy__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.din-loy__chip { min-height: 40px; padding: 4px 15px; border-radius: 999px; border: 2px solid var(--loy-line); background: #fff; color: var(--loy-t); font-size: 14px; font-weight: 700; line-height: 1.35; transition: background .15s, border-color .15s, transform .15s; }
.din-loy__chip:hover { border-color: var(--loy-g); transform: translateY(-1px); }
.din-loy__chip[aria-pressed="true"] { border-color: var(--loy-g); background: var(--loy-g); color: #fff; box-shadow: 0 6px 12px rgba(75, 164, 78, .25); }
.din-loy__err { color: #c0392b; font-weight: 700; font-size: 14px; }
.din-loy__step.is-shake { animation: din-loy-shake .4s; }
@keyframes din-loy-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.din-loy__fl { font-size: 14px; color: #4d5e47; }
.din-loy__input { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--loy-line); background: #fff; font: inherit; font-size: 16px; color: #24331f; }
.din-loy__input:focus { outline: none; border-color: var(--loy-g); }
.din-loy__go { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.din-loy__go .din-loy__input { flex: 1 1 220px; width: auto; }
.din-loy__float { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--loy-g); color: #fff; font-size: 18px; font-weight: 800; box-shadow: 0 6px 0 rgba(0, 0, 0, .18); transition: transform .12s, box-shadow .12s, filter .15s; }
.din-loy__float:hover { filter: brightness(1.06); }
.din-loy__float:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.din-loy__float[disabled] { opacity: .6; cursor: wait; }
.din-loy__float--sm { height: 48px; padding: 0 22px; font-size: 16px; box-shadow: none; }
.din-loy__note { font-size: 13px; color: #6b7a66; }

/* live preview */
.din-loy__preview { flex: 1 1 300px; align-self: flex-end; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 26px; background: var(--loy-n); color: #fff; box-shadow: 0 18px 40px rgba(15, 36, 64, .25); }
.din-loy__pvhead { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: #ffe7a3; }
.din-loy__pvstage { position: relative; height: 170px; border-radius: 18px; overflow: hidden; background: #163a5c; }
.din-loy__pvscene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 75%; }
.din-loy__pvkt { position: absolute; left: 50%; bottom: 8px; width: 110px; height: 90px; object-fit: contain; margin-left: -55px; animation: din-loy-bob 4s ease-in-out infinite; filter: drop-shadow(0 0 14px rgba(255, 209, 102, .6)); }
.din-loy__pvmsg { font-family: var(--loy-head); font-size: 20px; font-weight: 500; line-height: 1.55; }
.din-loy__pvmsg em { font-style: normal; color: var(--loy-y); }
.din-loy__pvhint { font-family: var(--din-font, "Sarabun"); font-size: 15px; color: #b9cbe0; }
.din-loy__pvwish { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .08); font-size: 15px; color: #d9e6f2; overflow-wrap: anywhere; }
.din-loy__pvnote { font-size: 12px; color: #8fa6bf; }

@keyframes din-loy-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes din-loy-drift { from { transform: translateX(-18px); } to { transform: translateX(18px); } }
@keyframes din-loy-in { from { transform: translateY(80px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ================= river ================= */
.din-loy__river { position: relative; width: 100vw; margin: 56px 0 0 calc(50% - 50vw); padding: 56px 0; overflow: hidden; background: var(--loy-r); color: #fff; }
body:has(.din-loy__river) { overflow-x: clip; }
.din-loy__riverin { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.din-loy__moon { position: absolute; right: 24%; top: -14px; width: 80px; height: 80px; border-radius: 50%; background: #fff3cf; box-shadow: 0 0 70px 16px rgba(255, 236, 170, .3); }
.din-loy__rhead { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.din-loy__rhead .din-loy__head { flex: 1 1 420px; }
.din-loy__count { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.din-loy__count > span { font-size: 14px; color: #b9cbe0; }
.din-loy__count b { font-family: var(--loy-head); font-weight: 600; font-size: 44px; line-height: 1.05; color: var(--loy-y); font-variant-numeric: tabular-nums; }
.din-loy__count small { font-size: 18px; color: #ffe7a3; }
.din-loy__count em { font-style: normal; font-size: 13px; color: #8fa6bf; }
.din-loy__rscenes { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 14px; color: #b9cbe0; }
.din-loy__rscenes button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; font-size: 14px; font-weight: 700; }
.din-loy__rscenes button[aria-pressed="true"] { border-color: var(--loy-y); background: var(--loy-y); color: #2b2207; }
.din-loy__stage { position: relative; height: clamp(280px, 34vw, 420px); border-radius: 28px 28px 0 0; overflow: hidden; background: #1d4b74; }
.din-loy__stagebg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; transition: opacity .4s; }
.din-loy__empty { position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: rgba(15, 36, 64, .7); font-size: 14px; white-space: nowrap; }
.din-loy__boat { position: absolute; display: flex; flex-direction: column; align-items: center; padding: 0; border: 0; background: none; color: #fff; animation: din-loy-drift var(--dr, 9s) ease-in-out infinite alternate; }
.din-loy__boat > span.din-loy__bob { display: flex; flex-direction: column; align-items: center; animation: din-loy-bob var(--bb, 4.6s) ease-in-out infinite; }
.din-loy__boat img { width: var(--w, 62px); height: auto; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); }
.din-loy__boat small { margin-top: -2px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 800; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.din-loy__boat:hover img { filter: drop-shadow(0 0 12px rgba(255, 209, 102, .8)); }
.din-loy__boat--me { z-index: 3; animation-duration: 12s; }
.din-loy__boat--me .din-loy__bob { animation: din-loy-in 1.6s cubic-bezier(.2, .8, .2, 1) both, din-loy-bob 4s ease-in-out 1.6s infinite; }
.din-loy__boat--me img { --w: 104px; filter: drop-shadow(0 0 18px rgba(255, 209, 102, .7)); }
.din-loy__tag { max-width: min(280px, 70vw); margin-bottom: 4px; padding: 7px 13px; border-radius: 14px; background: var(--loy-y); color: #2b2207; font-size: 13px; font-weight: 800; line-height: 1.45; text-align: center; white-space: normal; box-shadow: 0 6px 14px rgba(0, 0, 0, .25); }
.din-loy__pop { position: absolute; z-index: 5; width: 260px; padding: 16px; border-radius: 18px; background: #fff; color: #24331f; box-shadow: 0 14px 34px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 8px; text-align: left; }
.din-loy__pop b { font-size: 16px; padding-right: 30px; line-height: 1.4; }
.din-loy__pop p { font-size: 14px; color: #4d5e47; }
.din-loy__pop a { font-size: 14px; font-weight: 800; color: var(--loy-g); }
.din-loy__pop .din-loy__x { position: absolute; right: 8px; top: 6px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f1f5f0; color: #4d5e47; font-size: 18px; line-height: 1; }
.din-loy__cheer { min-height: 42px; border-radius: 12px; border: 0; background: #ffe6f1; color: #b0306a; font-size: 14px; font-weight: 800; }
.din-loy__cheer[aria-pressed="true"] { background: #f190b9; color: #fff; }
.din-loy__rfoot { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 24px 22px; border-radius: 0 0 28px 28px; background: var(--loy-n); font-size: 15px; color: #d9e6f2; }
.din-loy__cta { display: inline-flex; align-items: center; height: 50px; padding: 0 24px; border-radius: 999px; background: var(--loy-b); color: #2b2207 !important; font-size: 17px; font-weight: 800; text-decoration: none !important; box-shadow: 0 5px 0 rgba(0, 0, 0, .22); }
.din-loy__cta:hover { filter: brightness(1.05); }

/* ================= card ================= */
.din-loy__cardwrap { margin-top: 56px; outline: none; }
.din-loy__cardwrap.is-new { animation: din-loy-pop .6s ease both; }
@keyframes din-loy-pop { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.din-loy__cardgrid { max-width: 1000px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.din-loy__card { flex: 1 1 340px; margin: 0; border-radius: 28px; overflow: hidden; background: var(--loy-n); color: #fff; box-shadow: 0 18px 40px rgba(15, 36, 64, .28); display: flex; flex-direction: column; }
.din-loy__cardart { position: relative; height: 220px; overflow: hidden; background: #163a5c; }
.din-loy__cardart img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 70%; }
.din-loy__cardart .din-loy__cardkt { inset: auto; left: 50%; bottom: 8px; width: 150px; height: 120px; margin-left: -75px; object-fit: contain; animation: din-loy-bob 4s ease-in-out infinite; filter: drop-shadow(0 0 16px rgba(255, 209, 102, .6)); }
.din-loy__cardbody { flex: 1; padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.din-loy__cardtag { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: #ffe7a3; }
.din-loy__cardmsg { font-family: var(--loy-head); font-size: 22px; font-weight: 500; line-height: 1.5; }
.din-loy__cardwish { font-size: 15px; color: #d9e6f2; overflow-wrap: anywhere; }
.din-loy__closing { margin-top: auto !important; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .15); font-family: var(--loy-head); font-size: 18px; color: var(--loy-y); }
.din-loy__cardsite { font-size: 12px; color: #8fa6bf; }
.din-loy__cardside { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px; }
.din-loy__tips { padding: 22px; border-radius: 22px; background: var(--loy-s); display: flex; flex-direction: column; gap: 10px; }
.din-loy__tipseye { font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--loy-g); }
.din-loy__tipstitle { font-family: var(--loy-head); font-weight: 500; font-size: 21px; color: var(--loy-t); line-height: 1.4; }
.din-loy__tips ol { margin: 0; padding: 0 0 0 22px; list-style: decimal; display: flex; flex-direction: column; gap: 8px; }
.din-loy__tips li { font-size: 16px; line-height: 1.6; color: #24331f; }
.din-loy__tips li::marker { font-weight: 700; }
.din-loy__more { align-self: flex-start; font-weight: 800; color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
.din-loy__rel { padding: 18px; border-radius: 22px; background: var(--loy-s); border: 2px solid #e3ecdf; display: flex; flex-direction: column; gap: 12px; }
.din-loy__rel > b { font-size: 16px; color: var(--loy-t); }
.din-loy__rel [data-c-rel] { display: flex; flex-direction: column; gap: 12px; }
.din-loy__relpost { display: flex; gap: 12px; align-items: center; color: #24331f !important; text-decoration: none !important; }
.din-loy__relpost span:first-child { flex: none; width: 92px; height: 60px; border-radius: 10px; background: #eef7ea center / cover no-repeat; }
.din-loy__relpost span:last-child { font-size: 15px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.din-loy__relpost:hover span:last-child { color: var(--loy-g); }
.din-loy__acts { display: flex; gap: 8px; }
.din-loy__act { flex: 1; min-height: 48px; padding: 0 10px; border-radius: 14px; border: 2px solid var(--loy-line); background: #fff; color: var(--loy-t); font-weight: 800; font-size: 15px; }
.din-loy__act:hover { border-color: var(--loy-g); }
.din-loy__act--share { border-color: #06c755; background: #06c755; color: #fff; }
.din-loy__act--share:hover { filter: brightness(1.05); border-color: #06c755; }
.din-loy__toast { position: fixed; left: 50%; bottom: 90px; z-index: 9999; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: #24331f; color: #fff; font-size: 14px; font-weight: 700; }

/* ================= islands ================= */
.din-loy__sea { position: relative; padding: 36px clamp(14px, 3vw, 28px); border-radius: 28px; background: #e8f3fb; overflow: hidden; }
.din-loy__path { position: absolute; left: 0; top: 50%; width: 100%; height: 120px; margin-top: -60px; stroke: #9cc9ea; }
.din-loy__isles { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.din-loy__isle { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 14px; border-radius: 22px; background: #fff; color: var(--loy-t) !important; text-align: center; text-decoration: none !important; box-shadow: 0 10px 24px rgba(15, 36, 64, .1); transition: transform .18s, box-shadow .18s; }
.din-loy__isle:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(15, 36, 64, .16); }
.din-loy__isleico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; }
.din-loy__isle b { font-family: var(--loy-head); font-weight: 500; font-size: 19px; line-height: 1.35; }
.din-loy__isletext { font-size: 14px; color: #5b6b55; }
.din-loy__islelink { font-size: 13px; font-weight: 800; color: var(--loy-g); }
.din-loy__mycards { position: relative; margin-top: 22px !important; text-align: center; font-size: 15px; color: #33506b; }
.din-loy__mycards a { font-weight: 800; color: var(--loy-g); }

/* ================= eco ================= */
.din-loy__ecogrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.din-loy__eco { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 22px; background: var(--loy-s); color: #24331f !important; text-decoration: none !important; transition: transform .18s; }
a.din-loy__eco:hover { transform: translateY(-3px); }
.din-loy__eco b { font-family: var(--loy-head); font-weight: 500; font-size: 21px; color: var(--loy-t); line-height: 1.35; }
.din-loy__eco span { font-size: 15px; color: #4d5e47; }
.din-loy__eco em { margin-top: auto; font-style: normal; font-weight: 800; color: var(--loy-g); }
.din-loy__pledge { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px; padding: 22px; border-radius: 22px; background: #eef7ea; text-align: center; }
.din-loy__pledge b { font-size: 18px; color: var(--loy-t); }
.din-loy__pledge > span { font-size: 15px; color: #4d5e47; }
.din-loy__pledge [data-pledges] { font-weight: 800; color: var(--loy-g); }
.din-loy__pledge .is-done { background: #fff; color: var(--loy-g); border: 2px solid var(--loy-g); }

/* posts + blessing side by side */
.din-loy-cols { gap: 24px; align-items: stretch !important; }
.din-loy-cols .din-act { margin-bottom: 24px; height: calc(100% - 24px); }

/* ================= responsive ================= */
@media (max-width: 900px) {
	.din-loy__preview { flex-basis: 100%; align-self: stretch; }
	.din-loy__isles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.din-loy__isle:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.din-loy__path { display: none; }
	.din-loy__ecogrid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.din-loy { margin-bottom: 40px; }
	.din-loy__builder { gap: 18px; }
	.din-loy__step { padding: 16px 14px; border-radius: 18px; }
	.din-loy__kts { display: flex; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
	.din-loy__kt { flex: 0 0 86px; scroll-snap-align: start; font-size: 12px; padding: 4px 2px 6px; border-radius: 12px; }
	.din-loy__kt img { width: 48px; height: 46px; }
	.din-loy__scenes { grid-template-columns: repeat(5, 120px); overflow-x: auto; padding-bottom: 4px; }
	.din-loy__group { flex-direction: column; gap: 6px; }
	.din-loy__group > small { width: auto; padding: 0; }
	.din-loy__chip { font-size: 14px; min-height: 38px; padding: 4px 12px; }
	.din-loy__go { flex-direction: column; align-items: stretch; }
	.din-loy__go .din-loy__input { flex: none; width: 100%; }
	.din-loy__float { width: 100%; }
	.din-loy__preview { padding: 16px; border-radius: 20px; }
	.din-loy__pvstage { height: 130px; }
	.din-loy__pvmsg { font-size: 18px; }
	.din-loy__river { margin-top: 36px; padding: 36px 0; }
	.din-loy__riverin { padding: 0 14px; }
	.din-loy__stage { border-radius: 20px 20px 0 0; }
	.din-loy__rfoot { border-radius: 0 0 20px 20px; }
	.din-loy__moon { width: 54px; height: 54px; top: 18px; right: 18px; }
	.din-loy__count { align-items: flex-start; text-align: left; }
	.din-loy__count b { font-size: 36px; }
	.din-loy__rscenes { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
	.din-loy__rscenes button, .din-loy__rscenes span { flex: none; white-space: nowrap; }
	.din-loy__boat img { width: calc(var(--w, 62px) * .78); }
	.din-loy__boat--me img { width: 84px; }
	.din-loy__tag { font-size: 12px; max-width: 220px; }
	.din-loy__pop { width: min(260px, calc(100% - 24px)); }
	.din-loy__rfoot { flex-direction: column; align-items: stretch; text-align: center; }
	.din-loy__cta { justify-content: center; }
	.din-loy__cardwrap { margin-top: 40px; }
	.din-loy__cardart { height: 180px; }
	.din-loy__cardmsg { font-size: 19px; }
	.din-loy__acts { flex-wrap: wrap; }
	.din-loy__act { flex: 1 1 30%; font-size: 14px; }
	.din-loy__isles { gap: 12px; }
	.din-loy__isle { padding: 16px 10px; }
	.din-loy__isleico { width: 54px; height: 54px; }
	.din-loy__isle b { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
	.din-loy *, .din-loy *::before { animation: none !important; transition: none !important; }
}

/* intro heading under the banner + countdown strip attached to the banner */
.din-fest-banner + .din-act--under-banner, .din-act--under-banner { margin-top: -16px; }
.din-loy-intro-h { margin-top: 36px !important; font-size: clamp(22px, 2.6vw, 28px); color: var(--din-dark, #2b481e); }
.din-loy-bless { background: #fff6dc !important; box-shadow: none !important; }

/* sizes like the design (beat .entry-content h2 sizes) */
.entry-content .din-loy .din-loy__title, .din-loy .din-loy__title { font-size: clamp(26px, 3vw, 36px); }
.entry-content .din-loy .din-loy__cardwrap .din-loy__title { font-size: clamp(24px, 2.8vw, 34px); }
/* blessing box like the design: left aligned, small title */
.din-loy-bless { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 22px !important; border-radius: 16px !important; text-align: left; }
.din-loy-bless .din-act__head { align-items: flex-start; text-align: left; margin: 0; }
.entry-content .din-loy-bless .din-act__title { font-size: 17px; color: #2b481e; }
.din-loy-bless .din-act__stage { min-height: 0; padding: 0; background: none; box-shadow: none; text-align: left; }
.din-loy-bless .din-act__out { font-size: 16px !important; font-weight: 400 !important; line-height: 1.6; color: #24331f; text-align: left; }
.din-loy-bless .din-act__out::before, .din-loy-bless .din-act__out::after { display: none; }
.din-loy-bless .din-act__actions { justify-content: flex-start; margin: 0; }
.din-loy-bless .din-act__btn--pill { min-height: 42px; padding: 0 18px; font-size: 15px; font-weight: 800; }
.din-loy--online { margin-top: 40px; }
@media (max-width: 600px) {
	.din-loy__moon { top: -24px !important; right: 14px !important; width: 44px !important; height: 44px !important; }
}

/* ================= v3.3 layout (from the canvas design) ================= */
/* step 1 full width: 10 krathong in one row, scenes 5 per row */
.din-loy__kts { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.din-loy__kt { font-size: 11.5px; padding: 6px 2px 8px; letter-spacing: -.01em; }
.din-loy .din-loy__kt img { width: 60px; height: 56px !important; }
.din-loy__scenes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.din-loy__scene span { font-size: 13px; }

/* message preview = its own wide row between step 1 and 2 */
.din-loy__preview { flex: none; align-self: stretch; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 24px; padding: 20px; border-radius: 20px; }
.din-loy__pvstage { flex: none; width: 360px; max-width: 100%; height: 160px; }
.din-loy__pvtext { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.din-loy__pvmsg { font-size: 22px; font-weight: 600; }

/* write your own */
.din-loy__own { margin-top: 6px; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .45); }
.din-loy__own label { font-size: 15px; font-weight: 700; color: var(--loy-t); }
.din-loy__ownrow { display: flex; align-items: center; gap: 10px; }
.din-loy__ownrow span { flex: none; font-size: 16px; font-weight: 700; color: var(--loy-t); }
.din-loy__ownrow .din-loy__input { flex: 1 1 auto; height: 48px; }
.din-loy__own small { font-size: 13px; color: #33502a; }
.din-loy__polite { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: 16px; background: #fff6dc; border: 1.5px solid #f2d48a; color: #4a3a12; }
.din-loy__polite > span { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--loy-b); color: #2b2207; display: grid; place-items: center; font-weight: 800; }
.din-loy__polite p { font-size: 15px; line-height: 1.65; }

/* river: the scene pans, water shimmers, lanterns rise */
.din-loy .din-loy__stagebg { width: 130% !important; max-width: none !important; animation: din-loy-pan 50s ease-in-out infinite alternate; }
@keyframes din-loy-pan { from { transform: translateX(0); } to { transform: translateX(-23%); } }
.din-loy__shimmer { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 226, 150, .16) 45%, rgba(255, 255, 255, 0) 60%); background-size: 300% 100%; animation: din-loy-shimmer 9s linear infinite; pointer-events: none; }
@keyframes din-loy-shimmer { from { background-position: 100% 0; } to { background-position: -200% 0; } }
.din-loy__lantern { position: absolute; bottom: 46%; width: 7px; height: 9px; border-radius: 40% 40% 50% 50%; background: #ffcf6e; box-shadow: 0 0 10px 3px rgba(255, 190, 90, .7); opacity: 0; animation: din-loy-rise 9s linear infinite; pointer-events: none; }
@keyframes din-loy-rise { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: .9; } 100% { opacity: 0; transform: translate(14px, -170px); } }
.din-loy__boat { animation: none; translate: 0 0; animation: din-loy-drift2 var(--dr, 10s) ease-in-out infinite alternate; }
@keyframes din-loy-drift2 { from { translate: -26px 0; } to { translate: 26px 0; } }
.din-loy__boat--me { animation-duration: 14s; }
/* message bubbles (shown one at a time by loy.js) */
.din-loy__bub { position: absolute; left: 50%; bottom: 100%; width: 230px; margin: 0 0 6px -115px; padding: 8px 12px; border-radius: 14px; background: #fff; color: #24331f; font-size: 12.5px; font-weight: 500; line-height: 1.45; text-align: left; box-shadow: 0 8px 18px rgba(0, 0, 0, .3); opacity: 0; transform: translateY(6px); transition: opacity .45s, transform .45s; pointer-events: none; z-index: 4; }
.din-loy__bub b { display: block; font-size: 12px; color: var(--loy-g); }
.din-loy__bub.is-left { left: -10px; margin-left: 0; }
.din-loy__bub.is-right { left: auto; right: -10px; margin-left: 0; }
.din-loy__bub--me { width: 260px; margin-left: -130px; background: var(--loy-y); color: #2b2207; font-weight: 800; font-size: 13px; text-align: center; }
.din-loy__bub.is-on { opacity: 1; transform: none; }
.din-loy__boat--me .din-loy__bub { bottom: calc(100% - 4px); }
.din-loy__tag { display: none; }
@media (prefers-reduced-motion: reduce) {
	.din-loy .din-loy__stagebg { width: 100% !important; }
	.din-loy__lantern, .din-loy__shimmer { display: none; }
}

/* card section: full width like the other sections */
.din-loy__cardgrid { max-width: none; }
.din-loy__card { flex: 1 1 460px; }
.din-loy__cardside { flex: 1 1 520px; }

/* ================= blessing banner ================= */
.din-loy--bless { margin-top: 10px; }
.din-loy__bless { position: relative; overflow: hidden; display: flex; align-items: center; gap: 28px; min-height: 230px; padding: 32px 36px; border-radius: 24px; background: linear-gradient(110deg, #0f2440 0%, #17345a 55%, #24507c 100%); color: #fff; box-shadow: 0 16px 34px rgba(15, 36, 64, .28); }
.din-loy__star { position: absolute; border-radius: 50%; background: #ffe7a3; box-shadow: 0 0 8px 2px rgba(255, 209, 102, .7); animation: din-loy-twinkle 3s ease-in-out infinite; }
@keyframes din-loy-twinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.15); } }
.din-loy__blessmoon { position: absolute; right: 230px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: #fff3cf; box-shadow: 0 0 70px 20px rgba(255, 236, 170, .35); }
.din-loy__blessframe { position: absolute; inset: 12px; border: 1.5px dashed rgba(255, 209, 102, .35); border-radius: 16px; pointer-events: none; }
.din-loy__blesstext { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.din-loy__blessbadge { align-self: flex-start; padding: 5px 14px; border-radius: 999px; background: rgba(255, 209, 102, .16); color: var(--loy-y); font-size: 14px; font-weight: 800; letter-spacing: .04em; }
.din-loy__blessq { font-size: clamp(21px, 2.4vw, 28px); font-weight: 700; line-height: 1.5; color: #fff; }
.din-loy__blessq > span[aria-hidden] { color: var(--loy-y); font-family: Georgia, serif; font-size: 1.45em; line-height: 0; vertical-align: -.32em; margin: 0 4px; }
.din-loy__blessq [data-bless-text].is-new { animation: din-loy-pop .5s ease both; display: inline-block; }
.din-loy__blesssub { font-size: 15px; color: #b9cbe0; }
.din-loy__blessacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.din-loy__blessbtn { height: 48px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--loy-y); color: #2b2207; font-size: 16px; font-weight: 800; box-shadow: 0 4px 0 #c98f26; }
.din-loy__blessbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 #c98f26; }
.din-loy__blessghost { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .45); background: transparent; color: #fff !important; font-size: 16px; font-weight: 700; text-decoration: none !important; }
.din-loy__blessghost:hover { border-color: var(--loy-y); }
.din-loy__blessart { position: relative; flex: none; width: 260px; height: 190px; }
.din-loy__blessart span { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(120, 180, 230, .45) 0%, rgba(120, 180, 230, 0) 70%); }
.entry-content .din-loy .din-loy__blessart img, .din-loy .din-loy__blessart img { position: absolute; left: calc(50% - 95px); bottom: 14px; width: 190px; height: auto !important; margin: 0 !important; animation: din-loy-bob 4s ease-in-out infinite; filter: drop-shadow(0 0 22px rgba(255, 209, 102, .7)); }
.din-loy__sharebox { position: fixed; inset: 0; z-index: 9998; display: grid; place-items: center; padding: 16px; background: rgba(10, 20, 35, .6); }
.din-loy__sharecard { position: relative; width: min(420px, 100%); padding: 22px; border-radius: 22px; background: #fff; display: flex; flex-direction: column; gap: 14px; }
.din-loy__sharecard > b { font-size: 18px; color: var(--loy-t); }
.din-loy .din-loy__sharecard img { width: 100%; height: auto !important; border-radius: 14px; }
.din-loy__sharebtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.din-loy__sharebtns a, .din-loy__sharebtns button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 12px; border: 2px solid var(--loy-line); background: #fff; color: var(--loy-t) !important; font-weight: 800; font-size: 15px; text-decoration: none !important; }
.din-loy__sharebtns [data-share-line] { background: #06c755; border-color: #06c755; color: #fff !important; }
.din-loy__sharebtns [data-share-fb] { background: #1877f2; border-color: #1877f2; color: #fff !important; }
.din-loy__sharecard .din-loy__x { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f1f5f0; font-size: 20px; }

@media (max-width: 900px) {
	.din-loy__kts { display: flex; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
	.din-loy__kt { flex: 0 0 92px; scroll-snap-align: start; }
	.din-loy__scenes { display: flex; overflow-x: auto; padding-bottom: 4px; }
	.din-loy__scene { flex: 0 0 150px; }
	.din-loy__bless { flex-direction: column; align-items: stretch; padding: 26px 22px 0; }
	.din-loy__blessart { width: 100%; height: 160px; }
	.din-loy__blessmoon { right: -30px; }
}
@media (max-width: 600px) {
	.din-loy__preview { gap: 14px; padding: 14px; }
	.din-loy__pvstage { width: 100%; height: 140px; }
	.din-loy__pvmsg { font-size: 19px; }
	.din-loy__ownrow { flex-wrap: wrap; }
	.din-loy__ownrow .din-loy__input { flex-basis: 100%; order: 2; }
	.din-loy__ownrow span:last-child { order: 3; }
	.din-loy__bub { width: 190px; margin-left: -95px; font-size: 12px; }
	.din-loy__bub--me { width: 210px; margin-left: -105px; }
	.din-loy__card, .din-loy__cardside { flex-basis: 100%; }
}

@media (max-width: 600px) {
	.din-loy__moon { display: none; }
	.din-loy__blessmoon { right: -50px; top: -60px; opacity: .8; }
}

.din-loy__bad { display: block; margin-top: -4px; font-size: 13px; font-weight: 700; color: #b3261e; }
.din-loy__input.is-bad { border-color: #d9534f; background: #fff5f5; }

/* preview after step 3 */
.din-loy__pvacts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; }
.din-loy__pvacts .din-loy__float { height: 56px; padding: 0 34px; font-size: 19px; }
.din-loy__pvedit { font-size: 14px; font-weight: 700; color: #b9cbe0 !important; text-decoration: none !important; }
.din-loy__pvedit:hover { color: #fff !important; }
.din-loy__pvstage { width: 320px; height: 170px; }
.din-loy__pvwish { background: none; padding: 0; color: #b9cbe0; }
@media (max-width: 600px) { .din-loy__pvacts .din-loy__float { width: 100%; } .din-loy__pvstage { width: 100%; } }

/* krathong sit in the water: ripple ring + candle glow under each one */
.din-loy__ripple { position: absolute; left: 50%; bottom: 10px; width: 130%; height: 16px; margin-left: -65%; border-radius: 50%; border: 1.5px solid rgba(190, 215, 255, .55); background: radial-gradient(ellipse at center, rgba(255, 214, 120, .35) 0%, rgba(255, 214, 120, 0) 70%); animation: din-loy-ripple 3.2s ease-out infinite; pointer-events: none; }
.din-loy__boat--me .din-loy__ripple { bottom: 14px; }
@keyframes din-loy-ripple { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.3); opacity: 0; } }
.din-loy__boat small { position: relative; z-index: 1; }
.din-loy__boat--me small { color: var(--loy-y); }
@media (prefers-reduced-motion: reduce) { .din-loy__ripple { animation: none; opacity: .6; } }

@media (max-width: 600px) {
	.din-loy__boat img { width: calc(var(--w, 62px) * .7); }
	.din-loy__boat--me img { width: 78px; }
	.din-loy__boat small { font-size: 11px; }
}

/* step 2 on phones: two even columns */
@media (max-width: 600px) {
	.din-loy__chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.din-loy__chip { width: 100%; min-height: 46px; padding: 6px 6px; font-size: 13px; letter-spacing: -.01em; text-align: center; border-radius: 16px; }
}

/* example card before floating */
.din-loy__cardnote { max-width: 1000px; margin: -10px auto 16px !important; text-align: center; font-size: 15px; color: #4d5e47; }
.din-loy__cardwrap.is-sample .din-loy__card { position: relative; }
.din-loy__cardwrap.is-sample .din-loy__card::after { content: "ตัวอย่าง"; position: absolute; left: 14px; top: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(15, 36, 64, .75); color: #ffe7a3; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.din-loy__cardwrap.is-sample [data-again] { flex: 1 1 100%; border-color: var(--loy-g); background: var(--loy-g); color: #fff; }

/* "อ่านคำแนะนำ…" easy to see on the green box */
.din-loy .din-loy__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 10px 18px; border-radius: 999px; background: #fff; color: #2b481e !important; font-weight: 800; text-decoration: none !important; box-shadow: 0 3px 0 rgba(43, 72, 30, .18); }
.din-loy .din-loy__more:hover { background: #2b481e; color: #fff !important; }

/* share window */
.din-loy.din-loy__sharebox { position: fixed; inset: 0; z-index: 99999; max-width: none; margin: 0; display: grid; place-items: center; padding: 16px; background: rgba(10, 20, 35, .62); }
.din-loy__sharecard { max-height: calc(100vh - 32px); overflow: auto; }
.din-loy__sharecard img { max-height: 46vh; width: auto !important; max-width: 100%; margin: 0 auto !important; display: block; border-radius: 14px; }
.din-loy__sharehint { font-size: 13px; color: #5b6b55; text-align: center; }
.din-loy__sharebtns { grid-template-columns: repeat(3, 1fr); }
.din-loy__sharebtns .din-loy__sharewide { grid-column: 1 / -1; }
.din-loy__sharebtns [data-xx] { background: #111; border-color: #111; color: #fff !important; }
.din-loy__sharebtns [data-copy] { grid-column: span 3; }
.din-loy__sharebtns [data-save] { background: var(--loy-g, #4ba44e); border-color: var(--loy-g, #4ba44e); color: #fff !important; }
.din-loy__sharebtns [data-line] { background: #06c755; border-color: #06c755; color: #fff !important; }
.din-loy__sharebtns [data-fb] { background: #1877f2; border-color: #1877f2; color: #fff !important; }

.din-loy.din-loy__sharebox[hidden] { display: none !important; }
.din-loy__sharecard .din-loy__x { z-index: 5; cursor: pointer; }
.din-loy__sharebtns .is-wait { opacity: .45; pointer-events: none; }

/* card a friend shared (?fromcard=…) */
.din-loy__gift { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0 auto 40px; padding: 28px 20px; max-width: 640px; border-radius: 26px; background: #fff6dc; text-align: center; scroll-margin-top: calc(var(--din-header-h, 96px) + 16px); }
.din-loy .din-loy__gift img { width: min(420px, 100%); height: auto !important; border-radius: 18px; box-shadow: 0 16px 34px rgba(15, 36, 64, .28); }
.din-loy__gift p { font-size: 16px; color: #4d5e47; }

/* 3.9.5 — privacy line + card buttons */
.din-loy__privacy { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .6); border: 1px dashed rgba(43, 72, 30, .28); font-size: 13.5px; line-height: 1.65; color: #33472c; }
.din-loy__privacy svg { flex: none; margin-top: 3px; color: var(--loy-g, #4BA44E); }
.din-loy__privacy a { color: #2f7d32 !important; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.din-loy .din-loy__more { line-height: 1.4; text-align: left; }
.din-loy__acts { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 10px; }
.din-loy__act { font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 50px; padding: 8px 12px; line-height: 1.25; text-align: center; font-size: 15px; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.din-loy__act svg { flex: none; }
.din-loy__act span { min-width: 0; }
.din-loy__act:hover { transform: translateY(-1px); }
.din-loy__act[hidden] { display: none; }
.din-loy__act.is-solo { grid-column: 1 / -1; }
@media (max-width: 600px) {
	.din-loy__acts { grid-template-columns: 1fr 1fr; gap: 8px; }
	.din-loy__act { flex: none; font-size: 14.5px; padding: 8px 10px; }
	.din-loy__act--share { grid-column: 1 / -1; min-height: 54px; font-size: 16px; }
	.din-loy .din-loy__more { width: 100%; justify-content: center; text-align: center; }
	.din-loy__privacy { font-size: 13px; }
}
