:root{--gold:#e8bb67;--ink:#3e382b;--serif:'Noto Serif Thai',serif;--sans:'Noto Sans Thai',sans-serif}*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden;background:#020819}body{font-family:var(--sans);font-size:14px;color:#fff8e7}button,input,textarea{font:inherit}button{cursor:pointer;border:0;color:inherit;-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid #be8d36;outline-offset:4px}[hidden]{display:none!important}button:disabled{cursor:default;opacity:.45}.festival{width:100%;height:100svh;min-height:420px;position:relative;overflow:hidden;isolation:isolate}.scenery{position:absolute;inset:0;z-index:-4}.scenery img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}.vignette{position:absolute;inset:0;z-index:-3;pointer-events:none;background:linear-gradient(180deg,#02071980 0,transparent 30%,transparent 85%,#01061444),radial-gradient(ellipse at center,transparent 30%,#00051933)}#fireworks{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1;opacity:.8}.fireflies{position:absolute;inset:0;pointer-events:none}.fireflies i{position:absolute;width:3px;height:3px;background:#f4d28a;border-radius:50%;box-shadow:0 0 7px 2px #f0cd7755;animation:firefly var(--t) ease-in-out var(--delay) infinite}.counter{position:absolute;top:29px;left:29px;z-index:8;text-shadow:0 2px 8px #01071d;line-height:1.3}.counter>span{display:flex;align-items:baseline;gap:8px;font-size:13px}.counter strong{font-size:37px;font-weight:500;color:#fff2cf;font-variant-numeric:tabular-nums;line-height:1}.counter small{font-size:8px;letter-spacing:.3px;color:#c6cbd2;display:block;margin-top:5px}.festival-title{position:absolute;left:50%;top:3.5%;transform:translateX(-50%);text-align:center;width:500px;z-index:5;pointer-events:none;text-shadow:0 2px 20px #010719,0 1px 5px #010719}.festival-title h1{font:400 clamp(70px,7.3vw,112px)/1.3 'Great Vibes',cursive;color:#fff8e7;white-space:nowrap;margin:0;letter-spacing:-2px;filter:drop-shadow(0 3px 0 #82602b35)}.title-flower{position:absolute;top:5%;left:8%;font-size:28px;color:#edd69b;transform:rotate(-15deg);text-shadow:0 0 12px #dfb861}.title-flower:after{content:'✧';position:absolute;left:389px;top:13px;font-size:22px}.title-thai{display:flex;align-items:center;justify-content:center;gap:12px;font:400 18px var(--serif);color:#f8df9d;letter-spacing:2px;margin-top:-6px}.title-thai span{height:1px;width:34px;background:linear-gradient(90deg,transparent,#e5c17a)}.title-thai span:last-child{transform:scaleX(-1)}.festival-title p{font-size:9px;letter-spacing:1.5px;color:#dde0e7;margin:10px 0 0}.river-boats{position:absolute;inset:0;z-index:2;pointer-events:none}.river-boat{position:absolute;top:var(--y);width:var(--width);left:0;background:none;border:0;padding:0;pointer-events:auto;animation:river-drift var(--duration) linear var(--delay) infinite;filter:drop-shadow(0 8px 6px #01071c88);cursor:pointer}.river-boat:hover,.river-boat:focus-visible{animation-play-state:paused;z-index:9}.river-boat .krathong-art{width:100%;height:auto;display:block;margin-top:-62%;overflow:visible}.boat-bob{position:relative;animation:boat-bob 5s ease-in-out var(--bob-delay) infinite}.water-ring{position:absolute;bottom:10%;left:14%;width:72%;height:12%;border:1px solid #f4d49b40;border-radius:50%;box-shadow:0 4px 15px #f4c97c10;z-index:-1}.boat-name{position:absolute;bottom:0;left:50%;transform:translate(-50%,85%);font-size:8px;max-width:105px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:3px 9px;border:1px solid #e6ca8d30;border-radius:20px;background:#030d2c77;color:#f0e1c1;opacity:0;transition:opacity .25s}.river-boat:hover .boat-name,.river-boat:focus-visible .boat-name,.newly-launched .boat-name{opacity:1}/* Join the shared river loop halfway through, keeping the launch centered. */
.river-boat.newly-launched{animation-delay:calc(var(--duration)* -.5);left:-25px;top:75%;width:230px;z-index:7}.newly-launched .boat-bob{animation:launch 2s ease-out,boat-bob 5s 2s ease-in-out infinite}.foreground{position:absolute;bottom:-72px;width:290px;height:390px;z-index:8;pointer-events:none;filter:drop-shadow(0 7px 8px #0007)}.foreground svg{display:block;height:100%;width:100%;overflow:hidden}.foreground-left{left:-28px;transform:rotate(3deg)}.foreground-right{right:-36px;transform:scaleX(-1) rotate(2deg)}.pier{position:absolute;bottom:-4px;left:50%;transform:translateX(-50%);height:174px;width:420px;z-index:5;pointer-events:none;overflow:visible;filter:drop-shadow(0 -4px 12px #04061c77)}.main-action{position:absolute;left:50%;bottom:27px;transform:translateX(-50%);text-align:center;z-index:12;white-space:nowrap}.create-button{display:flex;align-items:center;justify-content:center;gap:12px;background:linear-gradient(180deg,#ffe0a1,#e5b056 75%,#db9c40);border:1px solid #ffe8b0;border-radius:40px;box-shadow:0 3px 0 #a57532,0 0 35px #e9b04d55,inset 0 2px 0 #fff0c466;min-width:219px;min-height:53px;padding:8px 28px;font-size:21px;font-weight:600;color:#6a411d;text-shadow:0 1px #ffefba;transition:transform .2s,box-shadow .2s}.create-button svg{width:28px;height:28px;fill:none;stroke:#8a5b24;stroke-width:1.2}.create-button:hover{transform:translateY(-2px);box-shadow:0 4px 0 #a57532,0 0 45px #e9b04d88,inset 0 2px 0 #fff0c466}.main-action>span{font-size:9px;display:block;margin-top:10px;letter-spacing:.5px;color:#f3ddba;text-shadow:0 1px 5px #000}.scene-footer{position:absolute;bottom:13px;left:22px;right:20px;display:flex;align-items:end;justify-content:space-between;gap:15px;z-index:13}.footer-left{display:flex;gap:10px;align-items:center}.small-brand{font:500 16px var(--serif);color:#f3e6c0;text-shadow:0 1px 6px #000;padding-right:9px;border-right:1px solid #d1bd8c55;line-height:1.1}.small-brand i{display:block;font:6px var(--sans);letter-spacing:2px;font-style:normal;margin-top:6px}.footer-left>button{font-size:9px;background:none;padding:5px 0;color:#eee5d0;text-shadow:0 2px 5px #000}.footer-left>button:hover{text-decoration:underline}.footer-dot{font-size:9px;color:#a0a8b7}.prototype-label{position:absolute;left:50%;transform:translateX(-50%);bottom:-2px;font-size:7px;color:#aab4c4;white-space:nowrap;opacity:.8}.sound-button{width:33px;height:33px;background:#0b1c37b3;border:1px solid #e6cf9850;border-radius:50%;display:grid;place-items:center;backdrop-filter:blur(7px)}.sound-button svg{width:18px;height:18px;fill:none;stroke:#f5e3bc;stroke-linecap:round;stroke-width:1.5}.sound-button.is-on{background:#a8833da6;box-shadow:0 0 20px #d0a04c44}dialog{padding:0;border:1px solid #dacaaa;border-radius:17px;background:#fbf8f0;color:var(--ink);box-shadow:0 30px 100px #000a;max-height:calc(100svh - 40px)}dialog::backdrop{background:#02071999;backdrop-filter:blur(5px)}.close-dialog{position:absolute;right:16px;top:14px;background:#ebe6d9;color:#7e735f;width:31px;height:31px;border:1px solid #ded5c1;border-radius:50%;font-size:23px;line-height:1;display:grid;place-items:center;z-index:5}.close-dialog:hover{background:#dfd4bd}.creator-dialog{width:min(880px,calc(100vw - 40px));overflow:auto}.dialog-header{padding:26px 32px 19px;border-bottom:1px solid #e0d6bf;background:linear-gradient(120deg,#fffdf7,#f2ead8)}.dialog-kicker{font-size:9px;letter-spacing:1px;color:#a38a54;display:block}.dialog-header h2{font:500 26px var(--serif);color:#65512b;margin:8px 0 6px}.dialog-header p{font-size:11px;line-height:1.9;color:#9a8d73;margin:0;max-width:90%}.creator-columns{display:grid;grid-template-columns:1fr 1fr;gap:29px;padding:22px 32px 12px}.wish-fields{border-right:1px solid #e1d7c2;padding-right:29px}.wish-fields label{display:block;font-size:12px;font-weight:500;color:#665839;margin-bottom:8px}.wish-fields label span{color:#b9824c}.wish-fields input,.wish-fields textarea{display:block;width:100%;border:1px solid #d9ceb5;border-radius:6px;background:#fffdf8;color:#4f483a;padding:11px 12px;font-size:12px;line-height:1.7;resize:vertical}.wish-fields input::placeholder,.wish-fields textarea::placeholder{color:#b6aa95}.wish-fields>small{display:block;font-size:9px;color:#ac9c7f;margin:7px 0 23px}.wish-fields textarea{min-height:170px;max-height:250px}.field-foot{display:flex;justify-content:space-between;gap:12px;font-size:8px;color:#a89878;margin-top:7px}.kind-note{display:flex;gap:12px;align-items:center;margin:23px 0 0;padding-top:17px;border-top:1px solid #e7dfcd}.kind-note>span{font-size:28px;color:#ae986b}.kind-note p{font:400 13px/1.9 var(--serif);color:#a3916c;margin:0}.kind-note b{font-weight:500;color:#837044}.design-tabs{display:flex;gap:0;border:1px solid #ddd2ba;border-radius:30px;overflow:hidden;padding:3px;background:#eee8da}.design-tabs button{flex:1;font-size:11px;padding:7px 9px;background:none;border-radius:25px;color:#9a8a6a}.design-tabs [aria-selected=true]{background:#fffdf7;color:#70582c;box-shadow:0 2px 7px #78603b12;font-weight:500}.preview-stage{height:158px;position:relative;display:grid;place-items:center;border-bottom:1px solid #e6ddca;margin-bottom:14px;background:radial-gradient(ellipse at 50% 77%,#d9d0ac24,transparent 60%)}.boat-preview{width:220px;height:156px;position:relative;z-index:2;align-self:start;margin-top:-15px}.boat-preview>svg{display:block;width:100%;height:100%;overflow:visible}.preview-ripple{position:absolute;bottom:25px;left:50%;transform:translateX(-50%);width:155px;height:12px;border:1px solid #d7c69c66;border-radius:50%;box-shadow:0 5px 12px #baa46b15}.preview-stage>span{position:absolute;bottom:7px;font-size:9px;color:#a38e60}.boat-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.boat-option{position:relative;border:1px solid #ded6c3;border-radius:7px;background:#f6f2e7;padding:7px 3px 6px;min-height:76px;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:5px;color:#9a8d6e}.boat-option>svg{width:57px;height:50px;display:block;overflow:hidden}.boat-option>span{font-size:7px;white-space:nowrap}.boat-option[aria-pressed=true]{border:1.5px solid #b68e43;background:#f7edcf;color:#795e2c}.boat-option[aria-pressed=true]:after{content:'✓';position:absolute;right:3px;top:3px;width:12px;height:12px;display:grid;place-items:center;border-radius:50%;background:#b88d3f;color:#fff;font-size:7px}.boat-option:hover{border-color:#b68e43}.creator-bottom{padding:8px 32px 20px;text-align:center}.gold-button{display:inline-flex;align-items:center;justify-content:center;gap:20px;min-height:44px;padding:10px 28px;background:linear-gradient(160deg,#e8c986,#d4a45a);border:1px solid #d1ab6e;border-radius:28px;color:#5d421e;font-size:12px;font-weight:500}.gold-button:hover:not(:disabled){background:linear-gradient(160deg,#f4da9b,#deb467)}.gold-button:disabled{opacity:.45;filter:grayscale(.2)}.creator-bottom>.gold-button{min-width:250px}.creator-bottom>small{display:block;font-size:8px;color:#afa083;margin-top:9px}.form-error{font-size:10px;color:#aa5a3c;margin:0 0 8px;min-height:0}.custom-tools{display:flex;align-items:center;gap:6px;font-size:9px;margin-bottom:9px;color:#aa9878}.custom-tools>span{margin-right:auto}.custom-tools>button{border:1px solid #d9c9aa;background:#f5efdf;border-radius:20px;padding:4px 9px;font-size:9px;color:#9b845c}.custom-tools [aria-pressed=true]{background:#dabe83;color:#674c23;border-color:#c3a15c}.sticker-tray{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.sticker-tray button{background:#f3eedf;border:1px solid #e3d9c3;border-radius:5px;height:65px;display:flex;flex-direction:column;align-items:center;justify-content:end;padding:5px 2px;gap:5px}.sticker-tray button svg{width:35px;height:36px;display:block;overflow:hidden}.sticker-tray button span{font-size:7px;color:#998767;white-space:nowrap}.custom-help{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:9px;font-size:8px;color:#a69472;line-height:1.8}.custom-help>button{font-size:8px;border:1px solid #d6c3a1;border-radius:12px;padding:4px 7px;background:#eee1c8;color:#99733f;white-space:nowrap}.movable-piece{cursor:grab;touch-action:none}.movable-piece.piece-selected{filter:drop-shadow(0 0 3px #c9943d)}.wish-dialog{width:450px;max-width:calc(100vw - 30px);padding:28px 32px;text-align:center;overflow:auto;background:radial-gradient(ellipse at 50% 35%,#fffdf8,#f5eddc)}.wish-star{font-size:26px;color:#ba9852;margin:0 0 6px}.wish-dialog h2{font:500 23px var(--serif);color:#7e6330;margin:12px 0 2px}.wish-art{width:245px;height:174px;max-width:100%;margin:-6px auto -15px}.wish-art svg{display:block;width:100%;height:100%}.wish-dialog blockquote{font:400 17px/1.9 var(--serif);color:#79684a;margin:12px 0 15px;overflow-wrap:anywhere}.wish-author{font-size:10px;color:#aa9876;margin:0 0 23px}.wish-actions{display:flex;gap:10px}.wish-actions>button{flex:1;padding:10px 12px;font-size:11px;gap:0}.outline-button{border:1px solid #cfbc94;background:#fcf8ee;border-radius:25px;color:#997a42;min-height:44px}.return-river{font-size:10px;color:#a28b60;background:none;padding:10px 0;margin-top:13px}.info-dialog{width:470px;max-width:calc(100vw - 30px);padding:35px;overflow:auto}.info-dialog h2{font:500 25px var(--serif);color:#7d6436;margin:11px 0 18px}.info-dialog p{font-size:12px;line-height:2;color:#948468}.info-note{font-size:10px;line-height:1.9;background:#efe5ce;border-radius:8px;color:#a28a61;padding:15px;margin-top:20px}.empty-gallery{font-size:11px;text-align:center;padding:30px;color:#a3906c}.gallery-item{width:100%;display:flex;align-items:center;gap:12px;background:#f2ebda;border:1px solid #e2d4b9;border-radius:9px;padding:9px;margin-top:10px;color:#9d814d;text-align:left}.gallery-item>svg{width:80px;height:57px;flex-shrink:0}.gallery-item>span{flex:1;min-width:0}.gallery-item b{font-size:12px;font-weight:500}.gallery-item small{display:block;font-size:9px;margin-top:6px;color:#af9d79;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gallery-item i{font-style:normal;padding:7px}.info-dialog textarea{width:100%;height:110px;border:1px solid #d4c29d;padding:10px;background:#fffaf0;color:#8a734c;font-size:10px;border-radius:6px}.toast{position:fixed;bottom:100px;left:50%;transform:translate(-50%,15px);opacity:0;transition:.25s;pointer-events:none;background:#fff5deeb;border:1px solid #d9bd83;color:#81632d;padding:12px 23px;border-radius:30px;font-size:11px;max-width:90%;box-shadow:0 4px 30px #0004;z-index:50;text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}@keyframes river-drift{from{transform:translateX(-220px)}to{transform:translateX(calc(100vw + 40px))}}@keyframes boat-bob{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-5px) rotate(1deg)}}@keyframes firefly{0%,100%{opacity:.1;transform:translateY(0)}50%{opacity:.8;transform:translateY(-20px)}}@keyframes launch{from{opacity:0;transform:translateY(95px) scale(1.08)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(min-width:1600px){.foreground{width:340px;height:450px;bottom:-82px}.pier{width:500px;height:210px}.festival-title{top:4.5%}.main-action{bottom:35px}.river-boat{width:calc(var(--width)*1.2)}}
@media(max-width:1000px){.festival-title{width:430px}.festival-title h1{font-size:86px}.title-flower{left:6%;font-size:23px}.title-flower:after{left:340px}.counter>span{font-size:11px;gap:6px}.counter strong{font-size:30px}.foreground{width:240px;height:330px}.footer-left{gap:7px}.footer-left>button{font-size:8px}.small-brand{font-size:14px}.prototype-label{font-size:6px}.creator-dialog{width:800px}.creator-columns{gap:22px;padding:20px 26px 10px}.wish-fields{padding-right:22px}.boat-options{gap:5px}.boat-option>span{font-size:6px}.dialog-header{padding:25px 26px 17px}}
@media(max-width:700px){.festival{min-height:420px}.scenery img{object-position:center}.vignette{background:linear-gradient(180deg,#0207194d,transparent 30%,transparent 85%,#01061444)}.counter{top:18px;left:17px}.counter>span{font-size:9px;gap:4px}.counter strong{font-size:26px}.counter small{font-size:6px;margin-top:5px}.festival-title{top:12%;width:330px}.festival-title h1{font-size:74px;letter-spacing:-1px;line-height:1.2}.title-thai{font-size:14px;letter-spacing:2px;margin-top:4px;gap:10px}.title-thai span{width:24px}.festival-title p{font-size:7px;letter-spacing:1px;margin-top:9px}.title-flower{font-size:20px;left:6%;top:1%}.title-flower:after{font-size:16px;left:270px;top:7px}.foreground{width:165px;height:225px;bottom:-30px}.foreground-left{left:-49px}.foreground-right{right:-47px}.pier{height:148px;width:350px;bottom:0}.main-action{bottom:44px}.create-button{min-width:197px;min-height:49px;font-size:19px;padding:7px 23px;gap:10px}.create-button svg{width:24px;height:24px}.main-action>span{font-size:7px;margin-top:9px}.scene-footer{bottom:11px;left:12px;right:12px;align-items:center}.footer-left{gap:6px;flex-wrap:wrap;max-width:245px}.small-brand{font-size:13px;line-height:1;padding-right:7px}.small-brand i{font-size:5px;letter-spacing:1.2px;margin-top:4px}.footer-left>button{font-size:7px;line-height:1.5}.footer-dot{font-size:7px}.prototype-label{display:none}.sound-button{height:30px;width:30px}.sound-button svg{height:15px;width:15px}.river-boat{width:calc(var(--width)*.77)}.river-boat .krathong-art{margin-top:-58%}.river-boat.newly-launched{left:5px;width:170px;top:75%}.boat-name{font-size:7px;padding:2px 7px;max-width:90px}.creator-dialog{width:calc(100vw - 20px);max-height:calc(100svh - 24px);border-radius:14px}.dialog-header{padding:22px 20px 16px}.dialog-kicker{font-size:8px}.dialog-header h2{font-size:23px;margin:7px 0}.dialog-header p{font-size:9px;max-width:95%;line-height:1.9}.close-dialog{top:12px;right:12px;width:28px;height:28px;font-size:21px}.creator-columns{display:flex;flex-direction:column;padding:17px 20px 8px;gap:20px}.wish-fields{border:0;padding:0;display:grid;grid-template-columns:1fr;}.wish-fields label{font-size:11px;margin-bottom:7px}.wish-fields input,.wish-fields textarea{font-size:11px;padding:9px 11px}.wish-fields>small{font-size:8px;margin:6px 0 15px}.wish-fields textarea{min-height:88px;max-height:170px}.field-foot{font-size:7px}.kind-note{display:none}.design-tabs button{font-size:10px;padding:7px}.preview-stage{height:138px;margin-bottom:11px}.boat-preview{height:140px;width:198px;margin-top:-15px}.preview-ripple{width:143px;bottom:24px}.preview-stage>span{font-size:8px;bottom:7px}.boat-options{gap:6px}.boat-option{min-height:72px;padding:6px 3px}.boat-option>svg{width:52px;height:45px}.boat-option>span{font-size:6px}.creator-bottom{padding:8px 20px 17px}.creator-bottom>.gold-button{min-height:43px;font-size:11px;min-width:240px}.creator-bottom>small{font-size:7px}.custom-tools{font-size:8px}.custom-tools>button{font-size:8px;padding:4px 7px}.sticker-tray{gap:4px}.sticker-tray button{height:59px}.sticker-tray button svg{height:32px;width:30px}.sticker-tray button span{font-size:6px}.custom-help{font-size:7px;gap:5px}.custom-help button{font-size:7px;padding:4px 5px}.wish-dialog{padding:26px 24px;max-height:calc(100svh - 28px)}.wish-dialog h2{font-size:21px}.wish-art{height:170px;width:240px}.wish-dialog blockquote{font-size:16px}.wish-actions>button{font-size:10px}.wish-author{font-size:9px}.return-river{font-size:9px}.info-dialog{padding:30px 25px}.info-dialog h2{font-size:23px}.info-dialog p{font-size:11px}.info-note{font-size:9px}.toast{font-size:10px;bottom:110px;padding:11px 20px}}
@media(max-width:700px) and (max-height:720px){.festival-title{top:12%;width:295px}.festival-title h1{font-size:65px}.title-thai{font-size:12px}.festival-title p{font-size:6px}.title-flower:after{left:245px}.foreground{width:143px;height:198px;bottom:-30px}.pier{height:127px;width:300px}.main-action{bottom:40px}.create-button{min-height:44px;min-width:185px;font-size:18px}.main-action>span{font-size:6px;margin-top:8px}.dialog-header p{font-size:8px}.creator-columns{gap:14px}.wish-fields textarea{min-height:75px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.river-boat{left:var(--start);transform:translateX(-50%)}.river-boat.newly-launched{left:50%;transform:translateX(-50%)}}
.river-boat{top:max(var(--y),62%)}
@media(max-width:700px){.festival-title{width:calc(100% - 28px)}.festival-title h1{font-size:clamp(49px,15.4vw,66px);letter-spacing:-1px}.title-flower{left:4%}.title-flower:after{left:275px}.river-boat{top:max(var(--y),64%)}.river-boat.newly-launched{top:75%}}
@media(max-width:360px){.title-flower:after{left:245px}}
.festival{position:fixed;inset:0}
.festival,.river-boats{overflow:clip}

.release-instruction{font-size:11px;line-height:1.8;color:#a28c61;margin:10px 0 0}
.release-krathong{width:100%;font-size:16px;min-height:49px;box-shadow:0 4px 20px #c3994d25}
@media(max-width:700px){.release-instruction{font-size:10px}.release-krathong{font-size:15px}}
.river-wish-bubble{position:fixed;top:0;left:0;z-index:15;width:252px;max-width:calc(100vw - 16px);padding:19px 23px 16px;background:linear-gradient(145deg,#fffdf5f7,#f5e9ccf5);border:1px solid #d9bb7f;border-radius:14px;color:#79613a;text-align:center;box-shadow:0 8px 35px #0005,0 0 18px #edc77d15;backdrop-filter:blur(10px);pointer-events:auto;will-change:transform}
.river-wish-bubble:after{content:'';position:absolute;bottom:-6px;left:var(--arrow-x,50%);width:10px;height:10px;background:#f5e9cc;border-right:1px solid #d9bb7f;border-bottom:1px solid #d9bb7f;transform:translateX(-50%) rotate(45deg)}
.river-wish-bubble>button{position:absolute;right:5px;top:3px;padding:1px 5px;background:none;color:#b5a07b;font-size:20px;line-height:1.1}
.river-wish-bubble p{font:400 14px/1.9 var(--serif);margin:0 0 9px;white-space:normal;overflow-wrap:anywhere}
.river-wish-bubble>span{font-size:9px;color:#b0996c;display:block}
.river-boat.wish-open .boat-name{opacity:1}

@media(max-width:700px){.river-wish-bubble{width:224px;padding:17px 20px 14px;border-radius:12px}.river-wish-bubble p{font-size:13px}.river-wish-bubble>span{font-size:8px}}

/* GONNA LOY artwork keeps its original proportions and transparency. */
.festival-title{top:8px;width:min(340px,48vw)}
.festival-title h1{font:inherit;line-height:1;letter-spacing:normal;filter:none;margin:0}
.festival-logo{display:block;width:100%;height:auto;object-fit:contain;filter:drop-shadow(0 5px 12px #01071999)}
.festival-title p{font-size:9px;letter-spacing:1px;margin:5px 0 0}
.small-brand{font-family:var(--sans);font-size:13px;letter-spacing:1px;font-weight:600}
.small-brand i{letter-spacing:0;font-size:6px;font-weight:300}
@media(min-width:1600px){.festival-title{top:12px;width:380px}}
@media(max-width:700px){.festival-title{top:10%;width:min(290px,76vw)}.festival-title p{font-size:7px;letter-spacing:.5px;margin:5px 0 0}.small-brand{font-size:10px;letter-spacing:.5px}.small-brand i{font-size:5px}}
@media(max-width:700px) and (max-height:720px){.festival-title{top:10%;width:min(245px,68vw)}.festival-title p{font-size:6px}}

.options-count{display:flex;align-items:center;gap:4px;font-size:9px;color:#a08c67;margin:0 0 8px}.options-count strong{font-weight:500;color:#806235}.options-count>span{margin-left:auto;font-size:8px;color:#b3a17f}
.boat-options{max-height:190px;overflow-y:auto;overscroll-behavior:contain;padding:2px 5px 3px 2px;scrollbar-width:thin;scrollbar-color:#c8ae7c transparent}
.boat-option>.new-boat-badge{position:absolute;top:4px;left:4px;display:block;font-size:6px;color:#496747;background:#e3eacd;border-radius:10px;padding:1px 5px;font-weight:500}
@media(max-width:700px){.boat-options{max-height:170px}.options-count{font-size:8px}.options-count>span{font-size:7px}}

/* Keep mobile selection in the dialog's single vertical scrolling surface. */
.creator-dialog{-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain}
.boat-options{touch-action:pan-y}
.boat-option{touch-action:pan-y;-webkit-tap-highlight-color:transparent}
.boat-option svg,.boat-option span{pointer-events:none;user-select:none;-webkit-user-select:none;-webkit-user-drag:none}
@media(max-width:700px){
 .boat-options{max-height:none;overflow:visible;overscroll-behavior:auto;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:2px}
 .boat-option{min-height:90px;padding:8px 4px}
 .boat-option svg{width:68px;height:58px}
 .boat-option>span:not(.new-boat-badge){font-size:9px;line-height:1.5}
 .boat-option>.new-boat-badge{font-size:8px}
 .options-count{font-size:10px}.options-count>span{font-size:9px}
}

/* Lantern designs share the picker and wishes, then rise into the sky. */
.lantern-preview .preview-ripple{display:none}
.river-boat.sky-lantern{left:var(--flight-x);top:var(--sky-waterline,57%);transform-origin:50% 100%;width:210px;z-index:3;filter:drop-shadow(0 0 12px #ffb45255);animation:lantern-flight var(--flight-time) linear var(--flight-delay) infinite both;will-change:transform}
.sky-lantern .krathong-art{margin-top:0}
.sky-lantern.newly-launched{width:270px;z-index:7}
.sky-lantern.newly-launched .boat-bob{animation:lantern-appear 1.2s ease-out,boat-bob 5s 1.2s ease-in-out infinite}
.river-boat.sky-lantern:focus-visible,.river-boat.sky-lantern.wish-open{animation-play-state:paused}
.sky-lantern .boat-name{bottom:10%}
/* Align the sprite baseline (292 / 340) with the distant water horizon. */
@keyframes lantern-flight{0%{transform:translate(-50%,-85.882353%) scale(1);opacity:0}2%,80%{opacity:1}100%{transform:translate(calc(-50% + var(--flight-drift)),calc(-85.882353% - 105vh)) scale(.55);opacity:0}}
@keyframes lantern-appear{from{opacity:0;transform:translateY(35px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){.river-boat.sky-lantern{width:165px}.sky-lantern.newly-launched{width:225px}}
@media(prefers-reduced-motion:reduce){.river-boat.sky-lantern{left:var(--flight-x);top:28%;transform:translateX(-50%);opacity:1}}

.river-boat.sky-lantern.newly-launched.wish-open{animation-play-state:paused}

.custom-base-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:14px}
.custom-base{display:flex;flex-direction:column;align-items:center;gap:3px;background:#f3eedf;border:1px solid #e3d9c3;border-radius:7px;padding:6px 3px;color:#88754e;touch-action:pan-y}
.custom-base svg{display:block;width:85px;max-width:100%;height:48px;pointer-events:none}
.custom-base span{font-size:9px;pointer-events:none}
.custom-base[aria-pressed=true]{background:#f6ebcd;border-color:#b69450;box-shadow:inset 0 0 0 1px #b69450}
.ingredients-label{font-size:10px;color:#9b845c;margin:0 0 8px}
.sticker-tray{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.sticker-tray button{min-height:70px;height:auto;touch-action:pan-y;justify-content:center}
.sticker-tray button svg{width:45px;height:40px;pointer-events:none}
.sticker-tray button span{font-size:8px;white-space:normal;text-align:center;pointer-events:none}
@media(max-width:700px){.custom-base-options{gap:7px}.custom-base{min-height:72px}.custom-base svg{height:47px}.custom-base span{font-size:9px}.sticker-tray button{min-height:76px}.sticker-tray button svg{width:47px;height:42px}.sticker-tray button span{font-size:9px}.custom-help{font-size:9px;align-items:start}.custom-help button{font-size:9px}}

/* Match the BBQ silhouette to the surrounding krathongs in the river. */
.river-boat.bbq-river .krathong-art{transform:scale(.72);transform-origin:50% 85%}

/* Creator colors and outlines follow the supplied GONNA LOY character. */
.creator-dialog{--ink:#3e232c;--leaf:#70c242;--cream:#faf8dd;--sun:#fff389;width:min(940px,calc(100vw - 40px));background:var(--cream);border:3px solid var(--ink);border-radius:28px;box-shadow:8px 10px 0 #21131a75,0 24px 90px #0007;color:var(--ink);font-family:var(--sans)}
.creator-dialog::backdrop{background:#071022b8;backdrop-filter:blur(7px)}
.creator-dialog>.close-dialog{top:14px;right:14px;width:33px;height:33px;display:grid;place-items:center;border:2px solid var(--ink);border-radius:50%;background:#fffdf0;color:var(--ink);font-size:23px;line-height:1;z-index:4}
.creator-dialog .dialog-header{display:grid;grid-template-columns:1fr 126px;align-items:center;gap:24px;padding:27px 66px 25px 32px;background:#edf3c4;border-bottom:3px solid var(--ink)}
.creator-dialog .dialog-kicker{font-size:10px;letter-spacing:1.4px;color:#516637;font-weight:700}
.creator-dialog .dialog-header h2{font:700 31px/1.5 var(--sans);letter-spacing:-.6px;color:var(--ink);margin:6px 0}
.creator-dialog .dialog-header p{font-size:12px;color:#635640;line-height:1.8;max-width:none}
.creator-mascot{width:126px;height:126px;object-fit:cover;border:3px solid var(--ink);border-radius:25px;background:#f8f6d7;box-shadow:5px 5px 0 var(--leaf);transform:rotate(5deg)}
.creator-dialog .creator-columns{padding:24px 30px 16px;gap:28px}
.creator-dialog .wish-fields{border-color:#dbd6b6;padding-right:28px}
.creator-section-title{display:flex;align-items:center;gap:9px;margin:0 0 18px;font-size:15px;font-weight:700;color:var(--ink)}
.creator-section-title>span{width:27px;height:27px;display:grid;place-items:center;border:2px solid var(--ink);border-radius:50%;background:var(--sun);font-size:13px;flex-shrink:0;box-shadow:2px 2px 0 var(--ink)}
.creator-dialog .wish-fields label{color:var(--ink);font-size:13px;font-weight:600}
.creator-dialog .wish-fields label>span{color:#638a32}
.creator-dialog .wish-fields input,.creator-dialog .wish-fields textarea{border:2px solid #9c9877;border-radius:13px;background:#fffef3;padding:12px 14px;font-size:14px;color:var(--ink);box-shadow:0 3px 0 #e2dfbf}
.creator-dialog .wish-fields input:focus,.creator-dialog .wish-fields textarea:focus{border-color:var(--ink);outline:3px solid #70c24260;outline-offset:2px}
.creator-dialog .wish-fields input::placeholder,.creator-dialog .wish-fields textarea::placeholder{color:#9c957c}
.creator-dialog .wish-fields>small,.creator-dialog .field-foot{color:#827c61;font-size:10px}
.creator-dialog .kind-note{border-top:2px dashed #d7d4b0;margin-top:25px;padding-top:20px}
.creator-dialog .kind-note>span{color:#6b9b35;font-size:34px}
.creator-dialog .kind-note p{font:500 14px/1.8 var(--sans);color:#7b7757}
.creator-dialog .kind-note b{color:#568a2f;font-weight:700}
.creator-dialog .design-tabs{border:2px solid var(--ink);padding:4px;gap:4px;border-radius:15px;background:#e7ebc8;overflow:visible}
.creator-dialog .design-tabs button{border:2px solid transparent;border-radius:10px;font-size:12px;font-weight:600;color:#777555;padding:8px 4px}
.creator-dialog .design-tabs [aria-selected=true]{background:var(--leaf);border-color:var(--ink);color:var(--ink);box-shadow:0 3px 0 var(--ink)}
.creator-dialog .preview-stage{height:175px;margin:12px 0 15px;border:2px dashed #c6d79b;border-radius:20px;background:radial-gradient(ellipse at 50% 72%,#e5edbd,transparent 70%)}
.creator-dialog .boat-preview{width:240px;height:170px;margin-top:-9px}
.creator-dialog .preview-stage>span{font-size:10px;color:#62733b;bottom:9px;font-weight:500}
.creator-dialog .preview-ripple{border-color:#aac27d;bottom:29px}
.creator-dialog .options-count{font-size:11px;color:#6f7750;margin-bottom:10px}
.creator-dialog .options-count strong{font-weight:700;color:#4f7431}
.creator-dialog .options-count>span{color:#8a8c62;font-size:9px}
.creator-dialog .boat-options{max-height:225px;scrollbar-color:#87ae55 transparent;gap:8px;padding:2px 6px 5px 2px}
.creator-dialog .boat-option,.creator-dialog .custom-base,.creator-dialog .sticker-tray button{border:2px solid #d4d5af;border-radius:12px;background:#fffef1;color:#645a43;box-shadow:0 2px 0 #e1e2bf}
.creator-dialog .boat-option{min-height:86px}
.creator-dialog .boat-option>span{font-size:9px}
.creator-dialog .boat-option[aria-pressed=true],.creator-dialog .custom-base[aria-pressed=true]{border-color:var(--ink);background:#edf5c6;box-shadow:3px 3px 0 var(--ink);color:var(--ink)}
.creator-dialog .boat-option[aria-pressed=true]:after{background:var(--leaf);border:1px solid var(--ink);color:var(--ink);width:16px;height:16px;font-size:10px;right:4px;top:4px}
.creator-dialog .boat-option>.new-boat-badge{background:var(--sun);color:#776329;border:1px solid #e1cf71;font-size:7px}
.creator-dialog .boat-option:hover,.creator-dialog .custom-base:hover,.creator-dialog .sticker-tray button:hover{border-color:#7d9c45;background:#f0f6d7}
.creator-dialog .custom-tools{font-size:11px;color:#5c7139;margin-bottom:10px}
.creator-dialog .custom-tools>span{font-weight:600}
.creator-dialog .custom-tools>button,.creator-dialog .custom-help>button{border:2px solid #9b9c70;background:#fbf4b9;color:#655b38;border-radius:10px;font-size:10px}
.creator-dialog .custom-base span,.creator-dialog .sticker-tray button span{color:#665a45;font-size:9px}
.creator-dialog .ingredients-label{font-size:11px;font-weight:600;color:#5d7637}
.creator-dialog .custom-help{font-size:10px;color:#7a7959}
.creator-dialog .creator-bottom{padding:20px 30px 24px;background:#eff2cf;border-top:2px solid #d9dcaf}
.creator-dialog .creator-bottom>.gold-button{min-width:270px;min-height:49px;border:3px solid var(--ink);border-radius:16px;background:var(--leaf);box-shadow:0 5px 0 var(--ink);font-size:16px;font-weight:700;color:var(--ink);gap:22px}
.creator-dialog .creator-bottom>.gold-button:hover:not(:disabled){background:#90d759;transform:translateY(-1px)}
.creator-dialog .creator-bottom>.gold-button:active:not(:disabled){transform:translateY(3px);box-shadow:0 2px 0 var(--ink)}
.creator-dialog .creator-bottom>.gold-button:disabled{background:#d4dfb2;color:#85906d;border-color:#a6ae85;box-shadow:0 4px 0 #a6ae85;opacity:1;filter:none}
.creator-dialog .creator-bottom>small{color:#777a58;font-size:10px;margin-top:14px}
.creator-dialog button:focus-visible{outline:3px solid #5b982f;outline-offset:4px}
#openCreator{border:3px solid #3e232c;background:#78c746;color:#3e232c;border-radius:20px;box-shadow:0 6px 0 #3e232c,0 10px 30px #0005;font-family:var(--sans);font-size:24px;font-weight:700}
#openCreator:hover{background:#91d85b}
#openCreator .button-icon{color:#3e232c}
@media(max-width:700px){
 .creator-dialog{width:calc(100vw - 18px);border-radius:23px;max-height:calc(100svh - 20px)}
 .creator-dialog .dialog-header{grid-template-columns:1fr 83px;gap:12px;padding:25px 23px 22px 20px}
 .creator-dialog .dialog-header h2{font-size:24px;line-height:1.45;letter-spacing:-.5px;margin:6px 0 7px}
 .creator-dialog .dialog-kicker{font-size:7px;letter-spacing:.8px;max-width:175px}
 .creator-dialog .dialog-header p{font-size:10px;line-height:1.75}
 .creator-mascot{width:83px;height:90px;border-radius:19px;box-shadow:3px 3px 0 var(--leaf);margin-top:20px}
 .creator-dialog>.close-dialog{top:10px;right:10px;width:28px;height:28px;font-size:21px}
 .creator-dialog .creator-columns{padding:23px 17px 18px;gap:25px}
 .creator-dialog .wish-fields{border-right:0;padding-right:0}
 .creator-section-title{font-size:14px;margin-bottom:17px}
 .creator-dialog .wish-fields input,.creator-dialog .wish-fields textarea{font-size:16px;padding:10px 12px}
 .creator-dialog .wish-fields textarea{min-height:116px}
 .creator-dialog .wish-fields>small{font-size:10px;margin-bottom:22px}
 .creator-dialog .field-foot{font-size:9px}
 .creator-dialog .design-tabs button{font-size:12px;min-height:42px}
 .creator-dialog .preview-stage{height:170px;margin-top:14px}
 .creator-dialog .boat-options{max-height:none;overflow:visible;padding:2px 2px 5px;gap:9px}
 .creator-dialog .boat-option{min-height:96px}
 .creator-dialog .boat-option>span{font-size:9px}
 .creator-dialog .custom-base{min-height:78px}
 .creator-dialog .custom-help{font-size:9px;gap:6px}
 .creator-dialog .creator-bottom{padding:19px 17px 23px}
 .creator-dialog .creator-bottom>.gold-button{min-width:245px;font-size:16px}
 #openCreator{font-size:19px;min-height:51px;border-radius:17px}
}
@media(max-width:360px){.creator-dialog .dialog-header{grid-template-columns:1fr 70px;gap:8px}.creator-dialog .dialog-header h2{font-size:22px}.creator-mascot{width:70px;height:80px}}

.creator-dialog .piece-size-controls{margin:0 0 18px;padding:11px 12px;background:#edf2d0;border:2px solid #cbd4a3;border-radius:14px}
.piece-size-header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}
.piece-size-header label{font-size:11px;font-weight:700;color:#3e232c}
.piece-size-header span{font-size:10px;color:#647a3e;text-align:right}
.piece-size-row{display:grid;grid-template-columns:36px minmax(0,1fr) 36px 40px;gap:8px;align-items:center}
.creator-dialog .piece-size-row button{width:36px;height:36px;border:2px solid #3e232c;border-radius:10px;background:#fff389;color:#3e232c;font-size:21px;font-weight:600;line-height:1;touch-action:manipulation}
.creator-dialog .piece-size-row button:disabled{opacity:.4;cursor:default}
.piece-size-row input{width:100%;margin:0;height:30px;accent-color:#609d32;cursor:ew-resize}
.piece-size-row input:disabled{opacity:.4}
.piece-size-row output{font-size:12px;font-weight:600;color:#526c32;text-align:right;font-variant-numeric:tabular-nums}
@media(max-width:700px){.piece-size-row{grid-template-columns:40px minmax(0,1fr) 40px 40px;gap:6px}.creator-dialog .piece-size-row button{width:40px;height:40px}.piece-size-header span{font-size:9px}.piece-size-row input{height:40px}}

.piece-rotation-header{border-top:1px dashed #c2cd9a;margin-top:11px;padding-top:10px}

/* Confirmation continues the character palette from the creator. */
.wish-dialog.release-dialog{--ink:#3e232c;--leaf:#70c242;--cream:#faf8dd;width:470px;max-width:calc(100vw - 22px);max-height:calc(100svh - 28px);padding:0;border:3px solid var(--ink);border-radius:28px;background:var(--cream);color:var(--ink);font-family:var(--sans);box-shadow:7px 8px 0 #21131a75,0 24px 90px #0007;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.release-dialog::backdrop{background:#071022b8;backdrop-filter:blur(7px)}
.release-dialog>.close-dialog{width:32px;height:32px;top:12px;right:12px;display:grid;place-items:center;border:2px solid var(--ink);border-radius:50%;background:#fffef0;color:var(--ink);font-size:23px;line-height:1;z-index:3}
.release-header{background:#edf3c4;border-bottom:3px solid var(--ink);padding:23px 26px 21px}
.release-mascot{display:block;object-fit:cover;width:64px;height:64px;border:2px solid var(--ink);border-radius:17px;box-shadow:3px 3px 0 #a3cf63;margin:0 auto 14px;transform:rotate(5deg)}
.release-dialog .dialog-kicker{font-size:10px;letter-spacing:.4px;color:#658044;font-weight:600}
.release-dialog h2{font:700 24px/1.5 var(--sans);letter-spacing:-.5px;color:var(--ink);margin:7px 0 5px}
.release-dialog .release-instruction{font-size:11px;color:#6b7151;line-height:1.8;margin:0}
.release-art-frame{display:grid;place-items:center;height:186px;margin:20px 25px 0;border:2px dashed #cbd7a3;border-radius:20px;background:radial-gradient(ellipse at 50% 75%,#e0edb6,transparent 75%)}
.release-dialog .wish-art{width:260px;height:184px;max-width:100%;margin:0 auto}
.release-message{padding:1px 27px 15px}
.release-dialog blockquote{font:500 16px/1.9 var(--sans);color:var(--ink);overflow-wrap:anywhere;margin:17px 0 7px}
.release-dialog .wish-author{font-size:11px;color:#788450;margin:0;line-height:1.8}
.release-footer{padding:20px 26px 22px;background:#eff2cf;border-top:2px solid #d9dcaf}
.release-dialog .release-krathong{width:100%;min-height:49px;padding:10px 20px;border:3px solid var(--ink);border-radius:16px;background:var(--leaf);box-shadow:0 5px 0 var(--ink);color:var(--ink);font:700 17px/1.5 var(--sans)}
.release-dialog .release-krathong:hover{background:#90d759;transform:translateY(-1px)}
.release-dialog .release-krathong:active{transform:translateY(3px);box-shadow:0 2px 0 var(--ink)}
.release-dialog .return-river{display:block;width:100%;min-height:39px;border:2px solid #bbc48e;border-radius:12px;background:#fffdeb;padding:8px 12px;margin:17px 0 0;font-size:11px;font-weight:500;color:#657343}
.release-dialog .return-river:hover{border-color:#739647;background:#f2f7d3}
.release-dialog button:focus-visible{outline:3px solid #5b982f;outline-offset:4px}
@media(max-width:700px){.wish-dialog.release-dialog{border-radius:24px;max-height:calc(100svh - 20px)}.release-header{padding:21px 22px 18px}.release-mascot{width:57px;height:57px;border-radius:15px;margin-bottom:12px}.release-dialog h2{font-size:21px}.release-dialog .dialog-kicker{font-size:9px}.release-dialog .release-instruction{font-size:10px}.release-art-frame{height:167px;margin:17px 18px 0;border-radius:18px}.release-dialog .wish-art{width:238px;height:168px}.release-message{padding:0 22px 13px}.release-dialog blockquote{font-size:15px;margin-top:14px}.release-dialog .wish-author{font-size:10px}.release-footer{padding:17px 19px 20px}.release-dialog .release-krathong{font-size:16px;min-height:49px}.release-dialog .return-river{font-size:11px}}

/* Secondary windows and scene controls share the character's palette. */
.info-dialog{--ink:#3e232c;--leaf:#70c242;--cream:#faf8dd;width:540px;max-width:calc(100vw - 24px);max-height:calc(100svh - 28px);padding:0;border:3px solid var(--ink);border-radius:27px;background:var(--cream);color:var(--ink);font-family:var(--sans);box-shadow:7px 8px 0 #21131a75,0 24px 90px #0007;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.info-dialog::backdrop{background:#071022b8;backdrop-filter:blur(7px)}
.info-dialog>.close-dialog{width:32px;height:32px;top:12px;right:12px;display:grid;place-items:center;border:2px solid var(--ink);border-radius:50%;background:#fffef0;color:var(--ink);font-size:23px;line-height:1;z-index:3}
.info-header{display:grid;grid-template-columns:minmax(0,1fr) 62px;align-items:center;gap:18px;padding:28px 59px 24px 26px;border-bottom:3px solid var(--ink);background:#edf3c4}
.info-mascot{display:block;width:62px;height:62px;object-fit:cover;border:2px solid var(--ink);border-radius:16px;background:var(--cream);box-shadow:3px 3px 0 #a3cf63;transform:rotate(5deg)}
.info-dialog .dialog-kicker{color:#668044;font-size:10px;font-weight:600;letter-spacing:.4px}
.info-dialog h2{font:700 25px/1.55 var(--sans);letter-spacing:-.4px;color:var(--ink);margin:7px 0 0;overflow-wrap:anywhere}
.info-dialog .info-header p{font-size:11px;color:#737e53;line-height:1.8;margin:7px 0 0}
.info-body{padding:9px 26px 26px}
.info-dialog p{font-size:13px;line-height:1.95;color:#675f4c;margin:17px 0}
.info-dialog .info-note{font-size:11px;line-height:1.95;color:#617642;background:#edf2ce;border:2px dashed #c4d49a;border-radius:15px;padding:15px 17px;margin-top:20px}
.gallery-count{display:inline-block;font-size:10px;font-weight:600;color:#49672c;background:#dcecb8;border:1px solid #b6ce89;border-radius:8px;padding:4px 9px;margin-top:11px}
.info-dialog #gallery{padding:17px 24px 24px}
.info-dialog .gallery-item{display:flex;align-items:center;gap:14px;min-height:94px;margin:0 0 12px;padding:10px;border:2px solid #cdd6a9;border-radius:16px;background:#fffef0;color:var(--ink);text-align:left;box-shadow:0 3px 0 #dce2bd}
.info-dialog .gallery-item:last-child{margin-bottom:0}
.info-dialog .gallery-item:hover{background:#f0f6d8;border-color:#73964a;box-shadow:0 3px 0 #8aa75e}
.gallery-art{display:grid;place-items:center;width:92px;height:70px;flex-shrink:0;border:1px solid #d9e2b7;border-radius:12px;background:#f0f4d4;overflow:hidden}
.gallery-art svg{width:105px;height:74px;display:block}
.info-dialog .gallery-item b{font-size:13px;font-weight:700;color:var(--ink);overflow-wrap:anywhere}
.info-dialog .gallery-item small{font-size:11px;line-height:1.7;color:#788154;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-top:4px}
.info-dialog .gallery-item i{display:grid;place-items:center;flex-shrink:0;width:29px;height:29px;padding:0;border:2px solid var(--ink);border-radius:9px;background:#fff389;color:var(--ink);font-size:17px}
.info-dialog .empty-gallery{padding:28px 15px;border:2px dashed #c3d396;border-radius:16px;background:#f0f4d4;color:#677d43;font-size:12px;line-height:1.9}
.info-dialog button:focus-visible{outline:3px solid #5b982f;outline-offset:4px}
.info-dialog #infoContent>h2,.info-dialog #infoContent>p{margin-left:25px;margin-right:25px}
.info-dialog #shareLink{display:block;width:calc(100% - 50px);margin:0 25px 25px;border:2px solid #b8c68f;border-radius:12px;background:#fffef0;color:#4f5639}
.counter{top:23px;left:24px;padding:9px 12px 10px;background:#faf8dd;border:3px solid #3e232c;border-radius:18px;box-shadow:0 4px 0 #3e232c;text-shadow:none;color:#3e232c;line-height:1.3}
.counter>span{font-size:11px;font-weight:600;gap:7px;align-items:center}
.counter strong{display:inline-grid;place-items:center;min-width:46px;padding:4px 7px;border:2px solid #3e232c;border-radius:10px;background:#70c242;color:#3e232c;font:700 30px/1 var(--sans);font-variant-numeric:tabular-nums}
.counter small{font-size:9px;color:#73804e;letter-spacing:0;margin-top:5px}
.scene-footer{bottom:14px;left:20px;right:20px;align-items:center;gap:12px}
.footer-left{padding:6px 8px;gap:7px;background:#faf8dd;border:2px solid #3e232c;border-radius:16px;box-shadow:0 4px 0 #3e232c;flex-wrap:nowrap;max-width:none}
.footer-left .small-brand{font:700 12px/1.1 var(--sans);letter-spacing:.4px;color:#49742b;text-shadow:none;padding-right:8px;border-right:1px solid #c3cea0;white-space:nowrap}
.footer-left .small-brand i{font:400 6px/1.3 var(--sans);letter-spacing:0;color:#7b825d;margin-top:4px}
.footer-left>button{min-height:34px;padding:7px 9px;border:1.5px solid #778e4c;border-radius:10px;background:#e6edc5;color:#455a2d;text-shadow:none;font-size:10px;font-weight:600;white-space:nowrap}
.footer-left>button#openGallery{background:#91cd60;border-color:#3e232c;color:#3e232c}
.footer-left>button:hover{background:#b6df83;text-decoration:none}
.footer-left .footer-dot{display:none}
.sound-button{width:37px;height:37px;border:2px solid #3e232c;border-radius:12px;background:#faf8dd;box-shadow:0 3px 0 #3e232c;backdrop-filter:none}
.sound-button svg{stroke:#3e232c;width:19px;height:19px;stroke-width:1.8}
.sound-button.is-on{background:#91cd60;box-shadow:0 3px 0 #3e232c}
.footer-left>button:focus-visible,.sound-button:focus-visible{outline:3px solid #fff389;outline-offset:4px}
@media(max-width:1100px){.main-action{bottom:82px}.prototype-label{display:none}}
@media(max-width:700px){
 .info-dialog{border-radius:23px;max-height:calc(100svh - 20px)}
 .info-header{grid-template-columns:minmax(0,1fr) 50px;gap:12px;padding:26px 42px 21px 19px}
 .info-mascot{width:50px;height:54px;border-radius:14px}
 .info-dialog h2{font-size:21px;line-height:1.55}
 .info-dialog .dialog-kicker{font-size:9px}
 .info-dialog .info-header p{font-size:10px}
 .info-body{padding:7px 19px 20px}
 .info-dialog p{font-size:12px;line-height:1.95}
 .info-dialog .info-note{font-size:10px;padding:13px;line-height:1.9;margin-top:17px}
 .info-dialog #gallery{padding:16px 16px 19px}
 .info-dialog .gallery-item{gap:10px;min-height:85px;padding:8px;border-radius:14px}
 .gallery-art{width:75px;height:62px;border-radius:10px}
 .gallery-art svg{width:90px;height:64px}
 .info-dialog .gallery-item b{font-size:12px}.info-dialog .gallery-item small{font-size:10px}
 .info-dialog .gallery-item i{width:26px;height:26px;font-size:15px;border-radius:8px}
 .counter{top:12px;left:12px;padding:7px 9px 7px;border-width:2px;border-radius:14px;box-shadow:0 3px 0 #3e232c}
 .counter>span{font-size:9px;gap:5px}.counter strong{min-width:35px;font-size:23px;padding:3px 5px;border-radius:8px}.counter small{font-size:8px;margin-top:3px}
 .scene-footer{bottom:12px;left:10px;right:10px;gap:7px}
 .footer-left{padding:5px;gap:4px;border-radius:13px;max-width:calc(100% - 42px)}
 .footer-left .small-brand{font-size:9px;letter-spacing:0;padding-right:5px}.footer-left .small-brand i{font-size:5px;margin-top:3px}
 .footer-left>button{min-height:34px;padding:7px 5px;font-size:9px;border-radius:8px}
 .sound-button{width:34px;height:34px;flex-shrink:0;border-radius:10px}.sound-button svg{width:17px;height:17px}
 .main-action{bottom:80px}
}

@media(max-width:360px){.counter{top:10px;left:10px;padding:6px 8px 5px}.counter strong{font-size:21px;padding:2px 5px}.counter small{font-size:7px;margin-top:2px}}

.public-release-note{display:block;font-size:10px;line-height:1.8;color:#6c7c49;margin:0 0 12px}.release-error{font-size:11px;line-height:1.8;color:#9a3d30;margin:15px 0 0}.release-dialog .release-krathong:disabled{background:#cad9a6;color:#6b7752;cursor:wait;transform:none;box-shadow:0 4px 0 #728052}.info-dialog .legacy-publish{margin:18px 24px 0;padding:15px;background:#edf3c7;border:2px dashed #b4c782;border-radius:15px}.legacy-publish>b{font-size:12px;color:#3e232c}.info-dialog .legacy-publish p{font-size:11px;line-height:1.85;color:#6b7750;margin:6px 0 11px}.legacy-publish button{min-height:40px;border:2px solid #3e232c;border-radius:10px;background:#91cd60;color:#3e232c;padding:7px 11px;font-size:11px;font-weight:600;box-shadow:0 3px 0 #3e232c}.legacy-publish button:disabled{opacity:.55;cursor:wait}.legacy-publish small{display:block;font-size:10px;line-height:1.8;color:#617345;margin-top:10px}.wish-visibility{display:block;font-size:9px;color:#6d8b3c;font-style:normal;margin-top:5px}@media(max-width:700px){.info-dialog .legacy-publish{margin:15px 16px 0;padding:13px}.public-release-note{font-size:9px}.wish-visibility{font-size:8px}}

/* Keep regular, newly released and full-bodied designs in the same river scale. */
.river-boat:not(.sky-lantern){width:var(--width)}
.river-boat.compact-river-art .krathong-art{transform:scale(.84);transform-origin:50% 85%}
@media(max-width:700px){.river-boat:not(.sky-lantern){width:calc(var(--width)*.77)}}

/* Varied spacing and depth stay bounded throughout the river loop. */
@keyframes river-drift{from{transform:translateX(calc(-96px - 50%))}to{transform:translateX(calc(100vw + 96px - 50%))}}
.river-boat:not(.sky-lantern){left:0;top:var(--y);animation-duration:var(--duration);animation-delay:var(--delay);animation-timing-function:linear;animation-play-state:running}
.river-boat:not(.sky-lantern):hover,.river-boat:not(.sky-lantern):focus-visible{animation-play-state:running}


@media(max-width:700px){.river-boat:not(.sky-lantern){top:var(--mobile-y);width:calc(var(--mobile-width)*.77)}}
@media(prefers-reduced-motion:reduce){.river-boat:not(.sky-lantern){left:var(--start);transform:translateX(-50%)}}

@keyframes river-sway{0%,100%{transform:translate(calc(var(--sway-x)*-1),1px) rotate(-.8deg)}37%{transform:translate(var(--sway-x),-3px) rotate(1.1deg)}72%{transform:translate(1px,2px) rotate(-.3deg)}}
.river-boat:not(.sky-lantern) .boat-bob{animation:river-sway var(--sway-time) ease-in-out var(--bob-delay) infinite}
.river-boat.newly-launched:not(.sky-lantern) .boat-bob{animation:launch 2s ease-out,river-sway var(--sway-time) 2s ease-in-out infinite}

/* Boats may overlap naturally; nearer boats sit in front. */
.river-boat:not(.sky-lantern){z-index:var(--depth-order,1)}
@media(max-width:700px){.river-boat:not(.sky-lantern){z-index:var(--mobile-depth-order,1)}}
.river-boat:not(.sky-lantern):hover,.river-boat:not(.sky-lantern):focus-visible{z-index:9}

/* Reading one wish pauses that boat while the rest of the river keeps moving. */
.river-boat:not(.sky-lantern).wish-open,.river-boat:not(.sky-lantern):focus-visible{animation-play-state:paused}

.custom-environment-warning{margin:0 0 12px;color:#b42324;font-size:11px;line-height:1.65;font-weight:500}
