/* Event screen (projector / TV). Everything is sized in em from .stage so it scales to any screen; colours come from the
   event theme via --st-* (core/themes.js). All artwork is CSS/SVG drawn for this project. */
body.disp { margin: 0; overflow: hidden; background: #000; }
.stage { position: fixed; inset: 0; font-size: max(9px, min(1.05vw, 1.9vh)); color: var(--st-ink); font-family: var(--s); overflow: hidden; display: grid; grid-template-columns: 1fr; }
.stage[data-mode=showcase], .stage[data-mode=hearts] { grid-template-columns: 24em 1fr; }
.st-bg { position: absolute; inset: 0; background: radial-gradient(120% 100% at 15% 0, var(--st-b), var(--st-a)); }
.st-side, .st-main { position: relative; z-index: 1; }
.stage h1, .stage h2 { font-family: var(--f); }
.stage .lbl { color: var(--st-mut); font-size: 1.1em; margin: .4em 0; letter-spacing: .02em; }
.stage .hint { color: var(--st-mut); font-size: 1.15em; max-width: 40em; text-align: center; }

/* Sidebar (wishes, showcase) */
.st-side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9em; padding: 2em 1.6em; background: rgba(0, 0, 0, .16); border-right: 1px solid color-mix(in srgb, var(--st-ink) 14%, transparent); text-align: center; }
.stage[data-dark="0"] .st-side { background: rgba(255, 255, 255, .45); }
.st-side .avatar.big { width: 12em; height: 12em; border: .25em solid var(--st-ac); box-shadow: 0 .6em 1.6em #0004; }
.st-side .mono { font-size: 3.6em; color: var(--st-ac); }
.names { font: 700 2.4em/1.15 var(--script); margin: .2em 0 0; } .names i { color: var(--st-ac); font-style: normal; font-size: .9em; }
.rule { width: 70%; height: 1px; background: linear-gradient(90deg, transparent, var(--st-ac), transparent); }
.date { color: var(--st-mut); font-size: 1.15em; margin: 0; }
.joincard { background: rgba(255, 255, 255, .92); color: #3a2a22; border-radius: 1.2em; padding: 1.1em 1.4em; text-align: center; display: inline-flex; flex-direction: column; align-items: center; gap: .3em; box-shadow: 0 .6em 2em #0003; }
.joincard .qrbox { width: 12em; max-width: none; padding: .5em; } .joincard.small .qrbox { width: 10em; }
.joincard p { margin: 0; color: #3a2a22; } .joincard .jl { font-weight: 600; font-size: 1.2em; } .joincard .jn { font-size: 1.15em; } .joincard .jn b { font: 600 1.8em var(--f); color: #b4405a; }
.joincard.small p { font-size: 1em; font-weight: 600; }

/* Wishes wall */
.wall { overflow: hidden; }
.wcard { position: absolute; left: var(--x); top: var(--y); width: 21em; max-width: 34%; padding: .9em 1.15em; border-radius: 1.2em; background: var(--st-pn); border: 1px solid color-mix(in srgb, var(--st-ink) 18%, transparent); backdrop-filter: blur(.5em); rotate: var(--r); animation: drift var(--t) ease-in-out var(--d) infinite alternate; box-shadow: 0 .5em 1.4em #0002; }
.wcard b { color: var(--st-ac); font-size: 1.05em; } .wcard p { margin: .25em 0 0; font-size: 1.3em; line-height: 1.4; overflow-wrap: anywhere; }
.wcard.fresh { animation: freshIn 4.5s cubic-bezier(.2, .9, .3, 1) both, drift var(--t) ease-in-out var(--d) infinite alternate; z-index: 3; }
@keyframes drift { from { translate: 0 0; } to { translate: .9em -1.6em; } }
@keyframes freshIn { 0% { left: 40%; top: 36%; scale: .4; opacity: 0; } 12% { left: 34%; top: 32%; scale: 1.7; opacity: 1; } 62% { left: 34%; top: 32%; scale: 1.7; } 100% { left: var(--x); top: var(--y); scale: 1; opacity: 1; } }
.wall-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font: 600 2em/1.5 var(--f); color: var(--st-mut); }
.wall-empty small { font: 400 .6em var(--s); }

/* Showcase */
.show { display: grid; place-items: center; }
.slide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2em; opacity: 0; transition: opacity 1.2s ease; margin: 0; padding: 2.5em; }
.slide.on { opacity: 1; }
.slide .frame { background: var(--st-paper); padding: .9em .9em 2.2em; border-radius: .4em; box-shadow: 0 1em 3em #0006; rotate: -1.2deg; max-height: 76%; display: flex; }
.slide .frame img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; min-height: 0; }
.slide figcaption { font: 600 2.3em/1.3 var(--f); text-align: center; max-width: 26em; text-shadow: 0 .05em .3em #0003; }
.slide.txt figcaption { font: 700 3.6em/1.35 var(--script); color: var(--st-ink); }
.dots { position: absolute; bottom: 1.8em; left: 0; right: 0; display: flex; justify-content: center; gap: .6em; } .dots i { width: .7em; height: .7em; border-radius: 50%; background: color-mix(in srgb, var(--st-ink) 30%, transparent); transition: all .3s; } .dots i.on { background: var(--st-ac); width: 2em; border-radius: .4em; }

/* Draw (bouquet, lucky) — bright, light stages */
.stage[data-mode=bouquet], .stage[data-mode=lucky] { --st-ink: #3a2a22 !important; --st-mut: #6d5648 !important; --st-pn: rgba(255, 255, 255, .8) !important; }
.stage[data-mode=bouquet] .st-bg { background: radial-gradient(60% 50% at 78% 30%, #fff6dc 0, transparent 70%), linear-gradient(180deg, #f9e3d3 0, #e8e3c0 52%, #9cbc82 52.2%, #6f9560 100%); }
.stage[data-mode=bouquet] .st-bg::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 40%; height: 46%; border: 1.4em solid transparent; border-image: none; border-radius: 50% 50% 0 0 / 70% 70% 0 0; box-shadow: inset 0 0 0 .9em color-mix(in srgb, #fff 70%, #d9a0b0), 0 0 0 .1em #fff8; opacity: .55; }
.stage[data-mode=lucky] .st-bg { background: radial-gradient(18% 24% at 12% 22%, #ffd7e0cc, transparent), radial-gradient(14% 20% at 86% 18%, #ffe9b8cc, transparent), radial-gradient(22% 28% at 70% 82%, #d8c6f5cc, transparent), radial-gradient(16% 22% at 20% 80%, #bfe3f0cc, transparent), linear-gradient(160deg, #e9c3c8, #b99cae 55%, #8e7aa6); }
.draw { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4em; text-align: center; padding: 2em; }
.pill { font: 600 2.6em/1.2 var(--f); margin: 0; background: rgba(255, 255, 255, .88); color: #3a2a22; padding: .3em 1.8em; border-radius: .8em; box-shadow: 0 .4em 1.4em #0002; }
.ready { display: flex; align-items: center; justify-content: center; gap: 4em; flex-wrap: wrap; }
.ready .prize { flex-basis: 100%; }
.art { height: 24em; width: auto; filter: drop-shadow(0 .8em 1em #0003); }
.prize { font: 600 1.7em var(--f); margin: 0; color: #3a2a22; background: rgba(255, 255, 255, .6); padding: .15em 1em; border-radius: 99px; }
.drawing { display: flex; flex-direction: column; align-items: center; gap: .6em; }
.drawing .art { animation: wobble .5s ease-in-out infinite alternate; transform-origin: 50% 90%; }
.drawing.lucky .gb { animation: tumble .6s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.09s); transform-box: fill-box; transform-origin: center; }
.gb { transform-box: fill-box; transform-origin: center; }
@keyframes wobble { from { rotate: -3deg; } to { rotate: 3deg; } }
@keyframes tumble { from { translate: -3px 2px; } to { translate: 4px -6px; } }
.spinname { font: 700 5em/1.1 var(--f); min-height: 1.2em; color: #3a2a22; background: rgba(255, 255, 255, .8); padding: .1em .8em; border-radius: .4em; min-width: 5em; overflow-wrap: anywhere; }
.spinname.win { animation: pop .8s ease both; color: #b4405a; }
.winner { position: relative; background: rgba(255, 255, 255, .92); color: #3a2a22; border-radius: 1.6em; padding: 1.6em 4em; min-width: 26em; box-shadow: 0 1em 3em #0003; display: flex; flex-direction: column; align-items: center; gap: .3em; animation: pop .7s ease both; }
.winner .avatar { width: 6em; height: 6em; background: #b4405a; color: #fff; font: 600 3em var(--f); }
.winner h2 { font: 700 5em/1.1 var(--f); margin: 0; color: #3a2a22; overflow-wrap: anywhere; } .winner .lbl { color: #6d5648; }
.winner .prize { background: #f6e8d2; }
.chips { display: flex; flex-wrap: wrap; gap: .4em; justify-content: center; list-style: none; padding: 0; margin: .4em 0; } .chips li { background: #f6e8d2; border-radius: 99px; padding: .15em .8em; font-size: 1.1em; }

/* Quiz — dark stage with gold light */
.stage[data-mode=quiz], .stage[data-mode=likely] { --st-ink: #fff4dc !important; --st-mut: #e2cfa3 !important; --st-pn: rgba(255, 235, 190, .10) !important; --st-ac: #f1cd78 !important; }
.stage[data-mode=quiz] .st-bg { background: radial-gradient(70% 60% at 50% 0, #3b2a12 0, #0c0907 70%); }
.stage[data-mode=quiz] .st-bg::before, .stage[data-mode=quiz] .st-bg::after { content: ""; position: absolute; top: 0; bottom: 0; width: 17%; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .45) 0 .7em, rgba(255, 255, 255, .06) .7em 1.4em), linear-gradient(180deg, #5b1a22, #2a0b10); box-shadow: 0 0 3em #000a; }
.stage[data-mode=quiz] .st-bg::before { left: 0; clip-path: polygon(0 0, 100% 0, 62% 100%, 0 100%); } .stage[data-mode=quiz] .st-bg::after { right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 38% 100%); }
.quiz, .likely { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1em; padding: 2em 12%; text-align: center; }
.script { font: 700 4.4em/1.2 var(--script); color: var(--st-ac); margin: 0; text-shadow: 0 .05em .4em #000a; }
.quiz .qhead, .likely .qhead { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 62em; }
.qn { text-align: left; } .qn b { display: block; font: 600 2.4em var(--f); color: var(--st-ac); } .qn small { display: block; font-size: 1.15em; color: var(--st-mut); } .qn strong { color: var(--st-ink); font-size: 1.15em; } .qn .pz { color: #ff9b8a; }
.q { font: 600 2.4em/1.3 var(--f); margin: .1em 0; text-shadow: 0 .05em .4em #000a; max-width: 28em; }
.likely .q { background: rgba(0, 0, 0, .35); border: .08em solid var(--st-ac); border-radius: .8em; padding: .35em 1.3em; }
.ring { position: relative; width: 6em; height: 6em; flex: none; } .ring svg { width: 100%; height: 100%; rotate: -90deg; } .ring circle { fill: none; stroke-width: 3.2; } .ring .rt { stroke: rgba(255, 255, 255, .16); } .ring .rp { stroke: var(--st-ac); stroke-linecap: round; transition: stroke-dashoffset .25s linear; } .ring .rp.low { stroke: #ff7a6b; } .ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 600 2.4em var(--f); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: .9em; width: 100%; max-width: 62em; } .opts.n3, .opts.n5, .opts.n6 { grid-template-columns: repeat(3, 1fr); }
.opt { position: relative; display: flex; align-items: center; gap: .7em; padding: .8em 1.1em; border-radius: .9em; font-size: 1.7em; text-align: left; color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 85%, #fff), var(--c)); border: .06em solid rgba(255, 233, 168, .55); box-shadow: 0 .15em 0 #0006; overflow: hidden; transition: filter .4s, transform .4s; }
.o1 { --c: var(--q1); } .o2 { --c: var(--q2); } .o3 { --c: var(--q3); } .o4 { --c: var(--q4); }
.opt .lt { font: 600 1.3em var(--f); font-style: normal; color: #ffe9a8; } .opt .tx { flex: 1; line-height: 1.25; overflow-wrap: break-word; } .opt .ic { width: 1em; opacity: .9; display: block; } .opt .ic svg { width: 100%; display: block; }
.opt.dim { filter: grayscale(.75) brightness(.5); }
.opt.ok { background: linear-gradient(180deg, #fff3c4, #e3c06f); color: #3a2a10; transform: scale(1.04); box-shadow: 0 0 2.4em rgba(255, 214, 120, .65); z-index: 2; } .opt.ok .lt { color: #7a5a14; }
.opt .cn { font-style: normal; font-size: .72em; } .opt u { position: absolute; left: 0; bottom: 0; height: .22em; background: rgba(255, 255, 255, .6); } .opt .tick { width: 1.2em; flex: none; color: #2f7a43; }
.top3 { display: inline-flex; gap: 1.4em; align-items: center; margin: .6em 0 0; padding: .35em 1.4em; border: .06em solid var(--st-ac); border-radius: 99px; background: rgba(0, 0, 0, .45); font-size: 1.3em; } .top3 b { color: var(--st-ac); } .top3 i { font-style: normal; color: var(--st-ac); margin-right: .2em; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 1em; margin: .6em 0; min-height: 15em; }
.pod { width: 11em; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .1em; padding: .8em .4em; border-radius: .8em .8em 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--st-ac) 55%, transparent), rgba(255, 255, 255, .06)); border: .06em solid color-mix(in srgb, var(--st-ac) 60%, transparent); border-bottom: 0; }
.pod b { font: 700 2.6em var(--f); color: var(--st-ac); } .pod span { font-size: 1.4em; overflow-wrap: anywhere; } .pod em { font-style: normal; font-size: 1.1em; color: var(--st-mut); }
.pod.p1 { height: 15em; } .pod.p2 { height: 12em; } .pod.p3 { height: 10em; }
.quiz .lb { font-size: 1.3em; text-align: left; }

/* Who's more likely — two sides + VS */
.stage[data-mode=likely] .st-bg { background: radial-gradient(60% 50% at 50% 30%, #ffffff22, transparent 70%), linear-gradient(100deg, color-mix(in srgb, var(--q1) 60%, #14090c) 0 50%, color-mix(in srgb, var(--q2) 60%, #0a0f1c) 50% 100%); }
.stage[data-mode=likely] .st-bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(180deg, transparent, #0006); }
.vs-title { font: 700 4.6em/1.15 var(--f); margin: 0; text-shadow: 0 .06em .4em #000a; } .vs-title.sm { font-size: 2.4em; }
.ring-row { display: flex; align-items: flex-end; justify-content: center; gap: 3em; }
.fighter { --c: var(--q1); display: flex; flex-direction: column; align-items: center; gap: .5em; width: 15em; position: relative; } .fighter.groom { --c: var(--q2); }
.fighter .avatar.big { width: 12em; height: 14em; border-radius: 1em; border: .3em solid var(--c); background: #0004; box-shadow: 0 .6em 1.6em #0007; } .fighter.ok .avatar.big { box-shadow: 0 0 2.5em var(--st-ac); border-color: var(--st-ac); }
.fighter .mono { font-size: 4em; } .fighter .nm { font: 600 1.6em var(--f); background: var(--c); border-radius: 99px; padding: .05em 1em; }
.meter { width: 100%; height: 6em; background: rgba(255, 255, 255, .12); border-radius: .5em; position: relative; overflow: hidden; } .meter i { position: absolute; bottom: 0; left: 0; right: 0; background: var(--c); transition: height .8s; }
.pc { font: 700 2.6em var(--f); } .pc small { font: 400 .4em var(--s); display: block; color: var(--st-mut); }
.crown { font-style: normal; color: var(--st-ac); font-weight: 600; font-size: 1.1em; }
.vs { align-self: center; width: 6em; height: 6em; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #ffe9a8, #d19a2a); color: #5a2a00; font: 700 2.4em var(--f); box-shadow: 0 0 2em #ffcf5acc; }

/* Controls (sound / fullscreen) */
.st-ctl { position: absolute; z-index: 9; left: 1em; bottom: .9em; display: flex; gap: .4em; align-items: center; font-size: .9em; background: rgba(0, 0, 0, .5); color: #fff; border-radius: 2em; padding: .25em .8em; opacity: .5; transition: opacity .2s; }
.st-ctl:hover, .st-ctl:focus-within { opacity: 1; }
.st-ctl button { min-height: 0; padding: .25em .7em; margin: 0; border: 0; background: transparent; color: #fff; border-radius: 1em; font-size: 1em; } .st-ctl button:hover { background: #fff3; }
.st-ctl .cnt { margin-left: .6em; color: #ffffffb0; }
@media (max-width: 700px) { .stage[data-mode=showcase], .stage[data-mode=hearts] { grid-template-columns: 1fr; grid-template-rows: auto 1fr; } .st-side { flex-direction: row; padding: .8em; } .st-side .avatar.big { width: 5em; height: 5em; } .names { font-size: 1.6em; } .st-side .joincard.small, .st-side .rule { display: none; } .wcard { max-width: 70%; } .opts, .opts.n3, .opts.n5, .opts.n6 { grid-template-columns: 1fr; } .quiz, .likely { padding: 1em 4%; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .wcard.fresh { opacity: 1; } }

.qtitle { margin: 0 0 .3em; text-align: center; font: 600 1.1em var(--s); letter-spacing: .12em; color: var(--st-ac); opacity: .85; }

.qimg { display: grid; place-items: center; margin: .2em 0 .5em; } .qimg img { max-height: 22vh; max-width: 60%; border-radius: .8em; object-fit: cover; box-shadow: 0 .4em 1.2em #0005; }
.opt .oimg { width: 3.4em; height: 3.4em; object-fit: cover; border-radius: .5em; flex: none; box-shadow: 0 .1em .4em #0004; }
.opts.n4 .opt .oimg, .opts.n5 .opt .oimg, .opts.n6 .opt .oimg { width: 2.6em; height: 2.6em; }
/* answer tile with a picture: picture on top, letter + text below (keeps 3–4 columns readable on the projector) */
.opt.pic { display: grid; grid-template-columns: auto 1fr auto; align-items: center; row-gap: .45em; padding-top: .6em; }
.opt.pic .oimg { grid-column: 1 / -1; grid-row: 1; width: 100%; height: 6.2em; border-radius: .6em; }
.opts.n4 .opt.pic .oimg, .opts.n5 .opt.pic .oimg, .opts.n6 .opt.pic .oimg { height: 4.6em; width: 100%; }

/* ===== Polish pass (2 Nov): bigger, calmer projector layouts ===== */
.stage[data-mode=quiz] .st-bg { background: radial-gradient(60% 55% at 50% 8%, #4a3515 0, #120d08 62%, #0a0705); }
.quiz, .likely { gap: 1.1em; padding: 2em 19%; }
.quiz .qtitle { position: absolute; top: 1.4em; left: 0; right: 0; margin: 0; }
.quiz .qhead, .likely .qhead { max-width: 54em; }
.qn b { font-size: 2.8em; } .qn small { font-size: 1.25em; }
.q { font-size: 3.1em; line-height: 1.25; max-width: 20em; margin: .15em 0 .25em; }
.ring { width: 7.2em; height: 7.2em; } .ring b { font-size: 2.9em; }
.opts { max-width: 56em; gap: 1em; }
.opt { font-size: 2.05em; padding: .85em 1.1em; min-height: 2.9em; border-radius: 1em; box-shadow: 0 .18em 0 #0007, 0 .6em 1.2em #0005; }
.opt .lt { display: grid; place-items: center; flex: none; width: 1.55em; height: 1.55em; border-radius: 50%; font-size: 1.05em; line-height: 1; background: rgba(0, 0, 0, .28); color: #ffe9a8; border: .06em solid rgba(255, 233, 168, .55); }
.opt.ok .lt { background: #7a5a14; color: #fff3c4; border-color: transparent; }
.opt.ok { transform: scale(1.03); }
.top3 { gap: 1.6em; padding: .45em 1.6em; font-size: 1.5em; margin-top: .4em; }
.top3 span { white-space: nowrap; }

/* final podium: three tiers (gold / silver / bronze) with a floor plate */
.podium { gap: .8em; margin: .4em 0 0; position: relative; padding-bottom: .9em; }
.podium::after { content: ""; position: absolute; left: -1.5em; right: -1.5em; bottom: 0; height: .9em; border-radius: .5em; background: linear-gradient(180deg, #3a2c14, #17110a); box-shadow: 0 .5em 1.4em #000a; }
.pod { width: 12.5em; position: relative; z-index: 1; border-radius: .9em .9em 0 0; box-shadow: inset 0 .15em 0 #fff3; }
.pod b { font-size: 3em; } .pod span { font-size: 1.6em; line-height: 1.2; } .pod em { font-size: 1.25em; }
.pod.p1 { height: 15em; background: linear-gradient(180deg, #f1cd78, rgba(241, 205, 120, .22)); border-color: #f1cd78; } .pod.p1 b { color: #fff4dc; text-shadow: 0 .05em .3em #0008; } .pod.p1 span, .pod.p1 em { color: #fff4dc; }
.pod.p2 { height: 12em; background: linear-gradient(180deg, #d5d8de99, rgba(213, 216, 222, .12)); border-color: #d5d8de99; }
.pod.p3 { height: 10em; background: linear-gradient(180deg, #c98d5a99, rgba(201, 141, 90, .12)); border-color: #c98d5a99; }
.quiz .lb { list-style-position: inside; padding: 0; margin: .4em 0 0; width: 46em; display: grid; grid-template-columns: 1fr 1fr; gap: .35em .6em; font-size: 1.3em; }
.quiz .lb li { display: list-item; padding: .3em .9em; border-radius: .7em; background: rgba(255, 235, 190, .08); border: 1px solid rgba(241, 205, 120, .18); }
.quiz .lb li::marker { color: var(--st-ac); font-weight: 600; } .quiz .lb li b { float: right; color: var(--st-ac); }

/* wishes wall: bigger readable cards + a soft vignette so empty space feels intentional */
.wall::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 55% 45%, transparent 55%, rgba(0, 0, 0, .18)); pointer-events: none; }
.wcard { padding: 1.05em 1.3em; border-radius: 1.4em; }
.wcard b { font: 600 1.15em var(--f); } .wcard p { font-size: 1.5em; }
.wcard::before { content: "“"; position: absolute; right: .5em; top: -.15em; font: 700 3.4em var(--f); color: var(--st-ac); opacity: .35; line-height: 1; }

/* draw winner */
.winner { padding: 1.8em 4.5em; border-radius: 1.8em; }
.winner .avatar { background: linear-gradient(145deg, #c9506b, #8f2e48); box-shadow: 0 .4em 1.2em #8f2e4866, 0 0 0 .3em #fff, 0 0 0 .45em #e3c06f; }
.winner .avatar { margin: .12em 0 .25em; width: 1.6em; height: 1.6em; font: 600 4.6em/1 var(--f); }
.winner h2 { font-size: 5.4em; }
.winner .prize { font-size: 1.9em; padding: .2em 1.2em; margin-top: .2em; }
.pill { font-size: 2.9em; }
.qn .x2 { background: var(--st-ac); color: #1a1208; border-radius: 99px; padding: .1em .8em; font-weight: 700; }
/* projector: shape badge on each tile (same shapes as the editor and phones) */
.opt .lt { padding: .32em; background: rgba(0, 0, 0, .28); border: 0; } .opt .lt svg { width: 100%; height: 100%; display: block; }
.opt .ic { display: none; }
.quiz .opt { min-height: 3.5em; } .quiz .opts { gap: 1.1em; }

/* soft (pastel) answer tiles — used by the default InviteKhun theme: light tile, dark text, icon in a deeper tone of the tile colour (heart = pink) */
[data-soft="1"] .o1 { --ci: var(--qi1); } [data-soft="1"] .o2 { --ci: var(--qi2); } [data-soft="1"] .o3 { --ci: var(--qi3); } [data-soft="1"] .o4 { --ci: var(--qi4); }
[data-soft="1"] .opt { background: var(--c); color: var(--qt); border: .07em solid color-mix(in srgb, var(--c) 78%, #000); box-shadow: 0 .12em .5em #0000001a; }
.gp[data-soft="1"] .opt { border: 2px solid color-mix(in srgb, var(--c) 78%, #000); box-shadow: 0 2px 8px #0000001a; color: var(--qt); background: var(--c); }
[data-soft="1"] .opt .lt, [data-soft="1"] .opt .ic { color: var(--ci); opacity: 1; }
[data-soft="1"] .opt.ok { background: linear-gradient(180deg, #fff3c4, #e8c872); color: #3a2a10; } [data-soft="1"] .opt.ok .lt { color: #7a5a14; }
.gp[data-soft="1"] .opt.mine { outline-color: var(--st-ac); }
.stage[data-soft="1"][data-mode=likely] .st-bg { background: linear-gradient(100deg, var(--q2) 0 50%, var(--q1) 50% 100%); }
.stage[data-soft="1"][data-mode=likely] .st-bg::after { background: linear-gradient(180deg, transparent, #0000001f); }
[data-soft="1"] .fighter .nm { color: var(--qt); }
[data-soft="1"] .opt .lt, .gp[data-soft="1"] .opt .lt { background: rgba(255, 255, 255, .7); border: 0; color: var(--ci); }
[data-soft="1"] .opt.ok .lt { background: #7a5a14; color: #fff3c4; }

/* long text on the projector */
.q.long { font-size: 2.75em; } .q.xlong { font-size: 2.4em; line-height: 1.25; }
.opts.lg .opt { font-size: 1.6em; padding: .65em .95em; } .opts.xl .opt { font-size: 1.45em; padding: .55em .85em; }

/* Thai needs roomy lines: tone marks and vowels above/below must not touch the neighbouring line (rounded Thai fonts have tall marks) */
.q, .q.long, .q.xlong { line-height: 1.6; text-shadow: 0 .04em .25em #0008; }
.opt .tx, .opt { line-height: 1.5; } .qn b, .vs-title, .script, .pc, .winner h2 { line-height: 1.45; }
.wcard p, .slide figcaption { line-height: 1.6; }
.opts.lg .opt { font-size: 1.62em; } .opts.xl .opt { font-size: 1.48em; } .q.long { font-size: 2.55em; } .q.xlong { font-size: 2.2em; }

/* questions and answers use the medium weight: bold Thai marks get heavy and crowd each other */
.q, .opt .tx, .gp .opt, .gp .q { font-weight: 500; }

/* projector layout "big picture on the left": picture fills the left half, question + answers on the right */
.quiz.imgleft { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-areas: "head head" "img q" "img opts" "img top"; align-content: center; column-gap: 2em; row-gap: .5em; padding: 2em 8%; text-align: center; }
.quiz.imgleft .qtitle { grid-column: 1 / -1; } .quiz.imgleft .qhead { grid-area: head; max-width: none; }
.quiz.imgleft .qimg { grid-area: img; align-self: stretch; margin: 0; display: grid; } .quiz.imgleft .qimg img { max-height: none; max-width: 100%; width: 100%; height: 100%; max-height: 62vh; object-fit: cover; border-radius: 1em; }
.quiz.imgleft .q { grid-area: q; font-size: 2.2em; max-width: none; margin: 0; } .quiz.imgleft .q.long { font-size: 2em; } .quiz.imgleft .q.xlong { font-size: 1.8em; }
.quiz.imgleft .opts { grid-area: opts; max-width: none; grid-template-columns: 1fr; gap: .6em; } .quiz.imgleft .opt { font-size: 1.35em; padding: .55em .9em; } .quiz.imgleft .opts.lg .opt, .quiz.imgleft .opts.xl .opt { font-size: 1.2em; }
.quiz.imgleft .top3 { grid-area: top; justify-self: center; }

/* Backdrop picture (library or own): cover + a soft veil so text stays readable. Beats every per-mode background. */
.stage[data-bg="1"] .st-bg { background-size: cover; background-position: center; background-repeat: no-repeat; background-color: var(--st-a); }
.stage[data-bg="1"][data-mode] .st-bg::before { content: none; }
.stage[data-bg="1"][data-mode] .st-bg::after { content: ""; position: absolute; inset: 0; clip-path: none; width: auto; height: auto; left: 0; right: 0; top: 0; bottom: 0; border: 0; box-shadow: none; border-radius: 0; opacity: 1; background: linear-gradient(180deg, rgba(255, 251, 244, .30), rgba(255, 251, 244, .46)); }
.stage[data-bg="1"][data-bgtone="dark"][data-mode] .st-bg::after { background: linear-gradient(180deg, rgba(6, 10, 22, .30), rgba(6, 10, 22, .46)); }
.stage .st-bg .bgv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .stage .st-bg .bgv { display: none; } }
/* Quiz / likely force a cream-on-dark palette for their own curtain look; on a bright backdrop use dark ink + a deeper gold instead. */
.stage[data-bg="1"][data-bgtone="light"][data-mode=quiz], .stage[data-bg="1"][data-bgtone="light"][data-mode=likely] { --st-ink: #2b2823 !important; --st-mut: #5c564b !important; --st-pn: rgba(255, 255, 255, .7) !important; --st-ac: #9a6b1f !important; }
.stage[data-bg="1"][data-bgtone="dark"][data-mode=quiz], .stage[data-bg="1"][data-bgtone="dark"][data-mode=likely] { --st-pn: rgba(8, 12, 24, .5) !important; }

/* ---- Moving backdrop (projector): slow zoom + a few light CSS effects matched to the picture. Only transform/opacity are animated. ---- */
.stage[data-kb="1"] .st-bg { animation: fxZoom 46s ease-in-out infinite alternate; transform-origin: 50% 55%; }
@keyframes fxZoom { from { transform: scale(1); } to { transform: scale(1.08) translate3d(-.8%, -.6%, 0); } }
.st-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.st-fx .fx { position: absolute; inset: 0; }
.fx span, .fx i { position: absolute; display: block; will-change: transform, opacity; }
/* colours */
.fx.c-pink { --pc: #f6b8c8; } .fx.c-white { --pc: #ffffff; } .fx.c-violet { --pc: #cdb6ee; } .fx.c-gold { --pc: #ffd98a; } .fx.c-warm { --pc: #ffe2b8; }
/* falling petals */
.fx-petals span { left: var(--x); top: 0; width: calc(1em * var(--s)); height: calc(.68em * var(--s)); border-radius: 80% 0 80% 0; background: var(--pc); opacity: 0; box-shadow: 0 0 .5em rgba(255, 255, 255, .35); animation: fxFall var(--t) linear var(--d) infinite; }
@keyframes fxFall {
  0% { transform: translate3d(0, -12vh, 0) rotate(0); opacity: 0; }
  8% { opacity: .85; }
  30% { transform: translate3d(4vw, 28vh, 0) rotate(120deg); }
  55% { transform: translate3d(-3vw, 58vh, 0) rotate(250deg); }
  80% { transform: translate3d(4vw, 86vh, 0) rotate(340deg); opacity: .85; }
  100% { transform: translate3d(0, 112vh, 0) rotate(420deg); opacity: 0; }
}
/* twinkling dust / stars */
.fx-sparkle span, .fx-stars span { left: var(--x); top: var(--y); width: calc(.34em * var(--s)); height: calc(.34em * var(--s)); border-radius: 50%; background: var(--pc); box-shadow: 0 0 .9em .2em var(--pc); opacity: 0; animation: fxTw var(--t) ease-in-out var(--d) infinite; }
.fx-stars span { --pc: #fff; width: calc(.22em * var(--s)); height: calc(.22em * var(--s)); box-shadow: 0 0 .6em .12em #cfe0ff; }
@keyframes fxTw { 0%, 100% { opacity: 0; transform: scale(.3); } 50% { opacity: .95; transform: scale(1); } }
.fx-stars .shoot { top: 10%; left: 78%; width: 14em; height: .14em; border-radius: 99px; background: linear-gradient(90deg, transparent, #fff); opacity: 0; transform: rotate(-24deg); animation: fxShoot 12s linear 3s infinite; }
@keyframes fxShoot { 0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-24deg); } 2% { opacity: 1; } 9% { opacity: 0; transform: translate3d(-48vw, 26vh, 0) rotate(-24deg); } 100% { opacity: 0; transform: translate3d(-48vw, 26vh, 0) rotate(-24deg); } }
/* drifting haze */
.fx-mist span { left: -45vw; top: var(--y); width: 75vw; height: 38vh; border-radius: 50%; background: radial-gradient(closest-side, var(--pc), transparent); opacity: 0; animation: fxDrift var(--t) linear var(--d) infinite; }
.fx-mist.c-white { --pc: rgba(255, 255, 255, .5); } .fx-mist.c-warm { --pc: rgba(255, 226, 184, .5); }
.fx-mist span:nth-child(1) { top: 8%; } .fx-mist span:nth-child(2) { top: 40%; } .fx-mist span:nth-child(3) { top: 66%; }
@keyframes fxDrift { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 15% { opacity: .8; } 85% { opacity: .8; } 100% { transform: translate3d(155vw, 0, 0); opacity: 0; } }
/* light sweeping across silk / water */
.fx-shimmer span { top: -20%; bottom: -20%; left: -40vw; width: 26vw; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .26), transparent); transform: skewX(-16deg); opacity: 0; animation: fxSweep 13s ease-in-out infinite; }
.fx-shimmer span:nth-child(2) { animation-delay: 6.5s; width: 16vw; }
@keyframes fxSweep { 0% { transform: translate3d(0, 0, 0) skewX(-16deg); opacity: 0; } 10% { opacity: 1; } 45% { transform: translate3d(190vw, 0, 0) skewX(-16deg); opacity: 0; } 100% { transform: translate3d(190vw, 0, 0) skewX(-16deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .st-fx { display: none; } .stage[data-kb="1"] .st-bg { animation: none; } }
.stage .joincard .jw { color: #a33a3a; font-size: .8em; max-width: 14em; line-height: 1.4; margin: .4em 0 0; }
/* leaves: elongated leaf shape with a vein, swaying and tumbling in 3D as they fall; each leaf differs in size, speed and tint */
.fx-leaves { perspective: 70em; }
.fx-leaves span { left: var(--x); top: 0; width: calc(2.3em * var(--s)); height: calc(1.05em * var(--s)); border-radius: 0 100% 0 100%; background: linear-gradient(135deg, var(--l1), var(--l2)); opacity: 0; box-shadow: inset -.15em -.15em .35em rgba(0, 0, 0, .12); animation: fxLeaf var(--t) ease-in-out var(--d) infinite; }
.fx-leaves span::after { content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: .08em; background: rgba(255, 255, 255, .35); transform: rotate(-26deg); transform-origin: left center; }
.fx-leaves.c-green { --l1: #8fb36a; --l2: #4f7a3a; } .fx-leaves.c-gold { --l1: #e8c26b; --l2: #b9822e; }
.fx-leaves span:nth-child(3n) { --l1: #b7cf7e; --l2: #6f9a48; } .fx-leaves span:nth-child(4n+1) { --l1: #6f9a48; --l2: #3d6430; }
.fx-leaves.c-gold span:nth-child(3n) { --l1: #f1d58f; --l2: #cf9a45; } .fx-leaves.c-gold span:nth-child(4n+1) { --l1: #d6a050; --l2: #a4642a; }
.fx-leaves span:nth-child(odd) { animation-name: fxLeafR; }
@keyframes fxLeaf {
  0% { transform: translate3d(0, -12vh, 0) rotate3d(1, .4, .2, 0deg) rotate(10deg); opacity: 0; }
  7% { opacity: .92; }
  22% { transform: translate3d(7vw, 18vh, 0) rotate3d(1, .5, .2, 110deg) rotate(55deg); }
  42% { transform: translate3d(-4vw, 42vh, 0) rotate3d(1, .3, .3, 230deg) rotate(-20deg); }
  62% { transform: translate3d(8vw, 64vh, 0) rotate3d(1, .6, .1, 330deg) rotate(50deg); }
  82% { transform: translate3d(-2vw, 88vh, 0) rotate3d(1, .4, .2, 430deg) rotate(-10deg); opacity: .92; }
  100% { transform: translate3d(4vw, 114vh, 0) rotate3d(1, .4, .2, 500deg) rotate(30deg); opacity: 0; }
}
@keyframes fxLeafR {
  0% { transform: translate3d(0, -12vh, 0) rotate3d(.4, 1, .2, 0deg) rotate(-20deg); opacity: 0; }
  7% { opacity: .92; }
  25% { transform: translate3d(-8vw, 20vh, 0) rotate3d(.5, 1, .2, -120deg) rotate(-60deg); }
  45% { transform: translate3d(3vw, 44vh, 0) rotate3d(.3, 1, .3, -240deg) rotate(15deg); }
  65% { transform: translate3d(-7vw, 66vh, 0) rotate3d(.6, 1, .1, -340deg) rotate(-45deg); }
  85% { transform: translate3d(2vw, 90vh, 0) rotate3d(.4, 1, .2, -440deg) rotate(10deg); opacity: .92; }
  100% { transform: translate3d(-4vw, 114vh, 0) rotate3d(.4, 1, .2, -500deg) rotate(-30deg); opacity: 0; }
}

/* Top-5 popup after an answer is revealed (projector). Waits ~3s so the answer is seen first, shows ~11s, then fades out; rows slide to their new rank. */
.lbpop { position: fixed; inset: 0; z-index: 6; display: grid; place-items: center; pointer-events: none; background: rgba(8, 6, 4, .5); animation: lbLife 16s ease both; }
.lbp-card { width: min(34em, 86vw); padding: 1.4em 1.6em 1.6em; border-radius: 1.6em; background: linear-gradient(160deg, rgba(40, 28, 18, .96), rgba(18, 12, 9, .96)); border: .1em solid #d9b768; box-shadow: 0 2em 6em #000a, 0 0 4em #d9b76855; color: #fff3dc; }
.lbp-card h3 { margin: 0 0 .7em; text-align: center; font: 700 1.9em var(--f); color: #f3d98e; letter-spacing: .03em; }
.lbp-card ol { list-style: none; margin: 0; padding: 0; position: relative; height: calc(5 * 3.5em); text-align: left; overflow: hidden; font-size: 1.15em; }
.lbp-card li { position: absolute; left: 0; right: 0; top: calc(var(--i) * 3.5em); height: 3.1em; display: flex; align-items: center; gap: .7em; padding: 0 .9em; border-radius: .9em; background: rgba(255, 255, 255, .07); animation: lbMove 1.3s cubic-bezier(.5, 0, .2, 1) calc(5.1s + var(--i) * .12s) both; }
.lbp-card li.m1 { background: linear-gradient(90deg, #f6dc8f44, #f6dc8f14); border: .06em solid #f3d98e; } .lbp-card li.m2 { background: rgba(220, 224, 232, .16); } .lbp-card li.m3 { background: rgba(214, 150, 98, .16); }
.lbp-card .rk { display: grid; place-items: center; flex: none; width: 1.9em; height: 1.9em; border-radius: 50%; background: #f3d98e; color: #3a2a10; font-size: .95em; }
.lbp-card .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbp-card .pt { font: 700 1.15em var(--f); color: #f3d98e; min-width: 3.2em; text-align: right; }
.lbp-card .gn { font-style: normal; font-size: .8em; color: #9fe0a8; animation: lbPop .6s ease 3.4s both; }
.lbp-card .mv { font-style: normal; font-size: .75em; color: #9fe0a8; opacity: 0; animation: lbPop .6s ease 6.2s both; }
@keyframes lbLife { 0%, 17% { opacity: 0; visibility: visible; } 22% { opacity: 1; } 92% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes lbMove { from { transform: translateY(calc(var(--dy) * 3.5em)); } to { transform: none; } }
@keyframes lbPop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lbp-card li, .lbp-card .gn, .lbp-card .mv { animation: none; opacity: 1; } .lbpop { animation-duration: 12s; } }

/* ----- team bar: bride's side vs groom's side (projector) ----- */
.teams { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .4em 1em; width: min(56em, 92%); margin: 1em auto 0; padding: .7em 1.2em; border-radius: 1em; background: var(--st-pn); backdrop-filter: blur(6px); }
.teams .tm { display: flex; flex-direction: column; align-items: center; min-width: 7em; } .teams .tm span { font-size: .95em; color: var(--st-mut); } .teams .tm b { font-size: 2em; line-height: 1.2; } .teams .tm small { color: var(--st-mut); }
.teams .tm b { color: var(--st-ink); }
.teams .tm.lead::before { content: '★'; color: var(--st-ac); font-size: 1.1em; }
.teams .tbar { height: 1em; border-radius: 99px; overflow: hidden; background: var(--q3); } .teams .tbar i { display: block; height: 100%; background: var(--q2); border-right: 3px solid #fff; transition: width .8s ease; }
.teams .tcap { grid-column: 1 / -1; margin: 0; text-align: center; font-size: .85em; color: var(--st-mut); }
.teams.big { margin-top: 1.4em; } .teams.big .tm b { font-size: 2.6em; }
.st-main.quiz .teams:not(.big) { position: absolute; right: 1.4em; top: 1.2em; margin: 0; width: 30em; padding: .5em .9em; z-index: 2; gap: .2em .7em; }
.st-main.quiz .teams:not(.big) .tm { min-width: 5em; }
.st-main.quiz .teams:not(.big) .tm b { font-size: 1.5em; }

/* ----- ส่งหัวใจ (projector) ----- */
.st-main.hearts { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .6em; }
.hcount { display: flex; align-items: baseline; gap: .3em; } .hcount b { font: 700 9em/1 var(--s); letter-spacing: -.02em; color: var(--st-ink); text-shadow: 0 .05em .3em #0004; }
.hcount small { font-size: 2em; color: var(--st-mut); }
.hbig svg { width: 5.5em; height: 5.5em; color: #e57f98; filter: drop-shadow(0 .2em .6em #e57f9866); animation: hbeat 1.2s ease-in-out infinite; }
@keyframes hbeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(.98); } 45% { transform: scale(1.06); } }
.hmeter { width: min(44em, 80%); height: 1.6em; border-radius: 99px; background: var(--st-pn); overflow: hidden; box-shadow: inset 0 0 0 2px #fff6; }
.hmeter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f3b6c4, #e57f98); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.hgoal { margin: 0; font-size: 1.3em; color: var(--st-mut); }
.hsides { display: flex; gap: 2em; font-size: 1.3em; } .hsides b { font-size: 1.3em; }
.st-main.hearts.done .script { animation: hbeat 1.6s ease-in-out infinite; }
/* floating hearts layer (projector + the guest's own taps): lives outside the re-rendered view */
#hlayer { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
#hlayer .hf { position: absolute; bottom: -2em; width: 2.6em; height: 2.6em; transform: scale(var(--s, 1)); animation: hfly 3.6s cubic-bezier(.25, .6, .35, 1) var(--d, 0s) both; color: #e57f98; }
body:not(.disp) #hlayer .hf { width: 26px; height: 26px; bottom: auto; animation: hpop 1.1s ease-out both; }
#hlayer .hf.c1 { color: #f3b6c4; } #hlayer .hf.c2 { color: #d9a441; } #hlayer .hf.c3 { color: #c96a86; }
#hlayer .hf svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 6px #0003); }
body.disp #hlayer .hf { font-size: max(12px, min(1.4vw, 2.4vh)); }
@keyframes hfly { 0% { transform: translate(0, 0) scale(calc(var(--s) * .4)); opacity: 0; } 12% { opacity: 1; } 60% { transform: translate(var(--w), -60vh) scale(var(--s)) rotate(-8deg); opacity: 1; } 100% { transform: translate(calc(var(--w) * -0.5), -105vh) scale(calc(var(--s) * 1.1)) rotate(8deg); opacity: 0; } }
@keyframes hpop { 0% { transform: translate(-50%, 0) scale(.5); opacity: 1; } 100% { transform: translate(calc(-50% + var(--w)), -160px) scale(1.2); opacity: 0; } }

/* ----- guest phone: team choice, team tag, heart button ----- */
.gp .tpick { border: 0; padding: 0; margin: 14px 0 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gp .tpick legend { font-weight: 600; margin-bottom: 8px; }
.gp .tpick label { position: relative; cursor: pointer; }
.gp .tpick input { position: absolute; inset: 0; width: 1px; height: 1px; opacity: 0; }
.gp .tpick span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 64px; padding: 8px; border-radius: 16px; border: 2px solid color-mix(in srgb, var(--st-ink) 18%, transparent); font-weight: 600; text-align: center; background: color-mix(in srgb, var(--c, #fff) 40%, transparent); }
.gp .tpick .b { --c: var(--q2); } .gp .tpick .g { --c: var(--q3); }
.gp .tpick span small { font-weight: 400; color: var(--st-mut); }
.gp .tpick input:checked + span { border-color: var(--st-ink); background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-ink) 25%, transparent); }
.gp .tpick input:focus-visible + span { outline: 3px solid var(--st-ac); outline-offset: 2px; }
.gp .tmtag { display: inline-block; font-size: .8em; padding: 1px 10px; border-radius: 99px; margin-left: 6px; color: #3a332c; } .gp .tmtag.b { background: var(--q2); } .gp .tmtag.g { background: var(--q3); }
.gp .gc.hearts { text-align: center; }
.gp .hbtn { display: grid; place-items: center; width: min(62vw, 240px); aspect-ratio: 1; margin: 14px auto 6px; padding: 0; border: 0; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff8, transparent 70%); color: #e57f98; touch-action: manipulation; -webkit-tap-highlight-color: transparent; cursor: pointer; }
.gp .hbtn svg { width: 82%; height: 82%; filter: drop-shadow(0 8px 18px #e57f9870); }
.gp .hbtn:active svg, .gp .hbtn.pop svg { animation: htap .25s ease; }
@keyframes htap { 50% { transform: scale(.86); } }
.gp .hmine { color: var(--st-mut); } .gp .hmine b { color: var(--st-ink); }
@media (prefers-reduced-motion: reduce) { .hbig svg, .st-main.hearts.done .script, .gp .hbtn.pop svg { animation: none; } #hlayer { display: none; } }

/* ----- โพลสด (projector) ----- */
.st-main.poll { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8em; padding: 2em 4em; }
.pbars { list-style: none; padding: 0; margin: .4em 0; width: min(64em, 92%); display: grid; gap: .7em; }
.pbars li { display: grid; grid-template-columns: minmax(10em, 18em) 1fr 4.5em 4.5em; align-items: center; gap: 1em; padding: .6em 1em; border-radius: 1em; background: var(--st-pn); }
.pbars .pl { display: flex; align-items: center; gap: .6em; font-size: 1.5em; font-weight: 600; } .pbars .pl .lt { width: 1.5em; height: 1.5em; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: var(--ci, #3a332c); flex: none; }
.pbars .pb { height: 1.4em; border-radius: 99px; background: color-mix(in srgb, var(--st-ink) 10%, transparent); overflow: hidden; }
.pbars .pb u { display: block; height: 100%; border-radius: inherit; background: var(--c); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.pbars b { font-size: 1.8em; text-align: right; } .pbars small { color: var(--st-mut); font-size: 1.1em; }
.pbars li.top { box-shadow: 0 0 0 .2em var(--c); }
/* ----- หน้าขอบคุณ (projector) ----- */
.st-main.thanks { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .5em; }
.st-main.thanks .avatar.big { width: 11em; height: 11em; } .st-main.thanks .names { font-size: 2.6em; margin: 0; }
.tmsg { font-size: 1.6em; max-width: 34em; margin: .2em 0; color: var(--st-ink); }
.tstats { list-style: none; display: flex; gap: 1.2em; padding: 0; margin: .6em 0 0; } .tstats li { display: flex; flex-direction: column; align-items: center; min-width: 8em; padding: .6em 1em; border-radius: 1em; background: var(--st-pn); }
.tstats b { font-size: 2.6em; line-height: 1.2; } .tstats span { color: var(--st-mut); }
.tchamp { font-size: 1.4em; margin: .4em 0 0; } .st-main.thanks .joincard.small { margin-top: .6em; }
/* ----- agenda strip in the projector sidebar ----- */
.agenda { display: grid; grid-template-columns: auto 1fr; gap: .1em .6em; align-items: baseline; margin: .8em 0 0; padding: .6em .9em; border-radius: .9em; background: var(--st-pn); text-align: left; width: 100%; }
.agenda .ak { grid-row: span 2; font-size: .8em; padding: .15em .6em; border-radius: 99px; background: var(--st-ac); color: #fff; align-self: center; }
.agenda b { font-size: 1.2em; } .agenda span:not(.ak) { grid-column: 2; } .agenda em { grid-column: 2; font-style: normal; color: var(--st-mut); font-size: .9em; } .agenda em:empty { display: none; }

/* ===== รูปจากแขกขึ้นจอ: big polaroid that takes turns + strip of the latest photos ===== */
.pwall { display: grid; grid-template-rows: 1fr auto; overflow: hidden; padding: 2em 2.5em 1.2em; }
.pstage { position: relative; min-height: 0; }
.pfeat { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transform: scale(.94); transition: opacity 1s ease, transform 1.2s cubic-bezier(.2, .9, .3, 1); pointer-events: none; }
.pfeat.on { opacity: 1; transform: none; z-index: 1; }
.pfeat .pimg { background: var(--st-paper, #fffdf8); padding: .8em .8em 0; border-radius: .35em; box-shadow: 0 1.2em 3em #0007; rotate: var(--r); max-height: 84%; max-width: 92%; display: flex; flex-direction: column; min-height: 0; }
.pfeat .pimg img { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; display: block; }
.pfeat figcaption { rotate: var(--r); background: var(--st-paper, #fffdf8); color: #2b2823; padding: .55em 1em .8em; margin-top: -.1em; border-radius: 0 0 .35em .35em; text-align: center; box-shadow: 0 1.2em 2em -1em #0006; max-width: 92%; display: flex; flex-direction: column; align-items: center; }
.pfeat figcaption b { font: 600 1.5em/1.3 var(--f); } .pfeat figcaption span { font: 400 1.25em/1.4 var(--s); color: #5c564b; overflow-wrap: anywhere; }
.pstrip { list-style: none; margin: .8em 0 0; padding: 0; display: flex; gap: 1em; justify-content: center; }
.pstrip li { width: 6.2em; height: 6.2em; background: var(--st-paper, #fffdf8); padding: .3em; border-radius: .25em; rotate: var(--r); box-shadow: 0 .4em 1em #0005; }
.pstrip li:first-child { outline: .2em solid var(--st-ac); }
.pstrip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcount { position: absolute; right: 1.6em; top: 1.1em; margin: 0; font: 600 1.1em var(--s); color: var(--st-mut); background: var(--st-pn); padding: .3em .9em; border-radius: 99px; }
@media (max-width: 700px) { .pwall { padding: 1em; } .pstrip li { width: 3.6em; height: 3.6em; } .pfeat figcaption b { font-size: 1.1em; } }

/* ===== คำอวยพรขึ้นจอ — "letters to the couple" + QR postage stamp (shared with the photo wall) ===== */
.lhead { position: absolute; left: 0; right: 0; top: 1.4em; text-align: center; z-index: 2; pointer-events: none; }
.lhead span { display: block; font: 600 1.05em var(--s); letter-spacing: .28em; color: var(--st-mut); }
.lhead h1 { margin: .45em 0 0; font-size: 3.2em; line-height: 1.2; color: var(--st-ink); text-shadow: 0 .05em .4em color-mix(in srgb, var(--st-pn) 80%, transparent); }
.lhead h1 i { font-style: normal; color: var(--st-ac); }
.qstamp { position: absolute; right: 2.2em; bottom: 2em; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .45em; rotate: 3deg; }
.qs-perf { background: #fffdf8; padding: .9em; -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle, #0000 .3em, #000 .33em) -.55em -.55em / 1.1em 1.1em round; mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle, #0000 .3em, #000 .33em) -.55em -.55em / 1.1em 1.1em round; filter: drop-shadow(0 .5em 1em #0004); }
.qs-perf .qrbox { width: 9.5em; padding: .35em; border: .12em dashed #c9b28a; border-radius: .2em; background: #fff; }
.qstamp p { margin: 0; background: var(--st-pn); color: var(--st-ink); font: 600 1em var(--s); padding: .35em .9em; border-radius: 99px; backdrop-filter: blur(.4em); }
.letters { overflow: hidden; display: block; }
.wstage { position: absolute; left: 14%; right: 14%; top: 18%; bottom: 30%; }
.wletter { position: absolute; inset: 0; margin: auto; height: fit-content; max-height: 100%; background: #fffdf8; color: #2f2a24; border-radius: .5em; padding: 2.6em 3.4em 2em; box-shadow: 0 1.6em 3.4em -1em #0005, inset 0 0 0 .5em #fffdf8, inset 0 0 0 .58em #e6d6b8; opacity: 0; transform: translateY(1.2em) rotate(-.6deg); transition: opacity 1s ease, transform 1.2s cubic-bezier(.2, .9, .3, 1); text-align: center; }
.wletter.on { opacity: 1; transform: none; z-index: 1; }
.wletter.on.fresh { animation: letterOut 1.6s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes letterOut { 0% { opacity: 0; transform: translateY(5em) scale(.86); clip-path: inset(62% -4em -4em -4em); } 45% { opacity: 1; clip-path: inset(-4em -4em -4em -4em); } 100% { transform: none; clip-path: inset(-4em -4em -4em -4em); } }
.wl-seal { position: absolute; left: 50%; top: -1.5em; translate: -50% 0; width: 3em; height: 3em; border-radius: 50%; display: grid; place-items: center; font: 700 1em var(--f); font-style: normal; color: #fff4e6; background: radial-gradient(circle at 35% 30%, #c25a5a, #8f2f36 70%); box-shadow: 0 .3em .7em #0004, inset 0 0 0 .22em #a8434b; letter-spacing: .05em; }
.wl-t { margin: .2em 0 .6em; font: 500 2.6em/1.5 var(--f); overflow-wrap: anywhere; }
.wl-t.long { font-size: 2em; }
.wl-n { margin: 0; font: 600 1.5em var(--script, var(--f)); color: #9a6b1f; }
.wletter.empty .wl-t { font-size: 2.1em; color: #5c564b; } .wletter.empty .wl-n { font: 400 1.2em var(--s); color: #7a7266; }
.wtrail { position: absolute; left: 0; right: 0; bottom: 3.2em; overflow: hidden; -webkit-mask: linear-gradient(90deg, #0000, #000 8%, #000 70%, #0000 82%); mask: linear-gradient(90deg, #0000, #000 8%, #000 70%, #0000 82%); }
.wtrail ul { list-style: none; margin: 0; padding: 0 0 .6em; display: flex; gap: 1.2em; width: max-content; animation: trail var(--dur, 60s) linear infinite; }
.wtrail li { flex: none; max-width: 22em; background: color-mix(in srgb, #fffdf8 88%, transparent); color: #2f2a24; border-radius: .35em; padding: .55em 1em; box-shadow: 0 .4em 1em #0002; display: flex; flex-direction: column; rotate: -.8deg; }
.wtrail li:nth-child(even) { rotate: .8deg; }
.wtrail b { font: 600 .95em var(--s); color: #9a6b1f; } .wtrail span { font-size: 1.1em; line-height: 1.35; }
@keyframes trail { to { transform: translateX(-50%); } }
.wcount { position: absolute; right: 2.2em; top: 2em; margin: 0; font: 600 1.05em var(--s); color: var(--st-mut); background: var(--st-pn); padding: .35em 1em; border-radius: 99px; }
.pwall { padding-top: 8.6em; }
.pwall .pstrip { padding-right: 12em; }
@media (max-width: 700px) { .wstage { left: 5%; right: 5%; top: 16%; bottom: 34%; } .wletter { padding: 2em 1.4em 1.4em; } .wl-t { font-size: 1.7em; } .qstamp { right: 1em; bottom: 1em; } .qs-perf .qrbox { width: 6.5em; } .lhead h1 { font-size: 2.2em; } .wtrail { display: none; } }
@media (prefers-reduced-motion: reduce) { .wtrail ul { animation: none; } }
.letters .agenda, .pwall .agenda { position: absolute; left: 2.2em; top: 2em; z-index: 2; margin: 0; width: auto; max-width: 24em; }

/* ----- smooth screen changes (see ui/morph.js) -----
   The old screen and the new one share the same grid cell; the old one fades out on top while the new one fades in.
   Inside one question, revealing the answer only changes classes, so the tiles ease into place instead of being redrawn. */
.stage > .st-main { grid-row: 1; grid-column: -2 / -1; min-width: 0; }
.stage > .st-main.scr-out { z-index: 2; pointer-events: none; animation: scrOut .35s ease forwards; }
.stage > .st-main.scr-in { animation: scrIn .55s ease .28s both; }
@keyframes scrOut { to { opacity: 0; transform: scale(.985); } }
@keyframes scrIn { from { opacity: 0; transform: translateY(.8em); } to { opacity: 1; transform: none; } }
.scr-in .opts .opt { animation: optIn .55s cubic-bezier(.2, .8, .2, 1) backwards; }
.scr-in .opts .opt:nth-child(1) { animation-delay: .35s; } .scr-in .opts .opt:nth-child(2) { animation-delay: .43s; } .scr-in .opts .opt:nth-child(3) { animation-delay: .51s; }
.scr-in .opts .opt:nth-child(4) { animation-delay: .59s; } .scr-in .opts .opt:nth-child(5) { animation-delay: .67s; } .scr-in .opts .opt:nth-child(6) { animation-delay: .75s; }
@keyframes optIn { from { opacity: 0; transform: translateY(1em) scale(.97); } to { opacity: 1; transform: none; } }
.opt { transition: filter .6s ease, transform .6s cubic-bezier(.2, .9, .3, 1.2), box-shadow .6s ease, background .6s ease, color .6s ease; }
.opt u { animation: barGrow 1s cubic-bezier(.2, .8, .2, 1) .2s both; transform-origin: left; }
.opt .cn, .opt .tick { animation: fadeIn .5s ease .3s both; }
.st-main .teams { animation: fadeIn .6s ease both; }
@keyframes barGrow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .stage > .st-main.scr-out { display: none; } }

/* ===== wish screen styles: wall / bubbles / float (the QR stamp keeps the bottom-right corner; content stays left of it) ===== */
.wst-wall .wwall { position: absolute; left: 3%; right: 17em; top: 9.4em; bottom: 2.2em; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: min-content; align-content: start; gap: 1.2em 1.3em; overflow: hidden; padding: .6em .4em; }
.wnote { --bg: #fff1b8; position: relative; background: var(--bg); color: #3a3126; border-radius: .35em; padding: .85em 1em .8em; box-shadow: 0 .5em 1.2em #0003; rotate: var(--r); animation: noteBob var(--t) ease-in-out var(--d) infinite alternate; }
.wnote.c1 { --bg: #ffd6df; } .wnote.c2 { --bg: #d4e8d0; } .wnote.c3 { --bg: #d5e2f5; }
.wnote::before { content: ""; position: absolute; left: 50%; top: -.45em; width: 3.2em; height: .9em; translate: -50% 0; background: #ffffff99; border-radius: .15em; box-shadow: 0 .1em .3em #0002; }
.wnote p { margin: 0; font: 500 1.35em/1.45 var(--f); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.wnote b { display: block; margin-top: .45em; font: 600 .95em var(--s); color: #9a6b1f; }
.wnote.fresh { animation: notePop 1.1s cubic-bezier(.2, 1.3, .4, 1) both, noteBob var(--t) ease-in-out var(--d) infinite alternate; z-index: 2; }
@keyframes noteBob { from { translate: 0 0; } to { translate: .25em -.55em; } }
@keyframes notePop { 0% { scale: .3; opacity: 0; } 60% { scale: 1.12; opacity: 1; } 100% { scale: 1; } }

.wst-bub { overflow: hidden; }
.wst-bub .wsky { position: absolute; left: 0; right: 17em; top: 8em; bottom: 0; overflow: hidden; }
.wbub { position: absolute; left: var(--x); bottom: -16em; width: 25em; max-width: 46%; background: #fffdf8ee; color: #3a2a22; border-radius: 2em; padding: 1em 1.4em 1.1em; box-shadow: 0 .8em 2.2em #0003; animation: bubRise var(--t) linear var(--d) infinite; }
.wbub::after { content: "♥"; position: absolute; right: .9em; top: -.75em; color: #d9526f; font-size: 1.9em; filter: drop-shadow(0 .1em .2em #0003); }
.wbub b { display: block; font: 600 1.15em var(--s); color: #9a6b1f; margin-bottom: .2em; }
.wbub p { margin: 0; font: 500 1.9em/1.4 var(--f); overflow-wrap: anywhere; }
@keyframes bubRise { 0% { translate: 0 0; opacity: 0; } 6% { opacity: 1; } 88% { opacity: 1; } 100% { translate: 1.5em -62em; opacity: 0; } }

.wst-float .wcard { width: 20%; max-width: none; }
.wst-float .wcard p { font-size: 1.45em; }

@media (prefers-reduced-motion: reduce) { .wbub { position: relative; bottom: auto; animation: none; margin: .5em; display: inline-block; } .wnote { animation: none; } }

/* ===== สุ่มรางวัล styles (ticket / envelope / drum) — ported from InviteKhun_Lucky_Draw_3_Designs, scoped under .dstage ===== */
.dstage {position:relative; isolation:isolate; overflow:hidden; display:grid; place-items:center; aspect-ratio:16/9; min-height:350px; border-radius:13px; color:var(--ink); background:var(--scene); box-shadow:0 12px 38px #45372836; container-type:inline-size}
.dstage.dst-pearl {--ink:#3f3129; --soft:#625146; --accent:#77552e; --rim:#a88857; --scene:radial-gradient(ellipse at 47% 44%,#fffaef 0%,#efe7d8 58%,#c5b29d 100%)}
.dstage.dst-garden {--ink:#243e31; --soft:#46594a; --accent:#536345; --rim:#7b8761; --scene:radial-gradient(ellipse at 50% 40%,#fffcf2 0%,#edece0 52%,#b1b99c 100%)}
.dstage .set, .dstage .set>* {position:absolute; pointer-events:none}
.dstage .set {inset:0; overflow:hidden; z-index:-1}
.dstage .frame {inset:4%; border:1px solid color-mix(in srgb,var(--rim) 66%,transparent); outline:1px solid color-mix(in srgb,var(--rim) 32%,transparent); outline-offset:-7px}
.dstage .corner {width:11%; aspect-ratio:1; border:2px solid var(--rim); border-right:0; border-bottom:0; opacity:.75}
.dstage .corner:nth-of-type(1) {top:0; left:0}
.dstage .corner:nth-of-type(2) {top:0; right:0; rotate:90deg}
.dstage .corner:nth-of-type(3) {bottom:0; right:0; rotate:180deg}
.dstage .corner:nth-of-type(4) {bottom:0; left:0; rotate:270deg}
.dstage .beam {display:none; left:50%; top:-17%; width:75%; height:128%; transform-origin:50% 0; translate:-50%; filter:blur(12px); background:linear-gradient(#ffe4ad68,#ffe4ad11 69%,transparent); clip-path:polygon(48% 0,52% 0,100% 100%,0 100%)}
.dstage.dst-champagne .beam {display:block; rotate:-22deg; animation:dk-sweep 9s ease-in-out infinite alternate}
.dstage.dst-champagne .beam.second {rotate:22deg; animation-direction:alternate-reverse}
@keyframes dk-sweep { to { rotate:26deg } }
.dstage .arc {display:none; width:65%; aspect-ratio:1; top:10%; left:17.5%; border:1px solid #b89761a0; border-radius:50%; box-shadow:0 0 75px #fff8,inset 0 0 40px #fff7,0 0 0 12px #faf3e484,0 0 0 13px #a988603b}
.dstage.dst-pearl .arc {display:block}
.dstage.dst-pearl .arc::before, .dstage.dst-pearl .arc::after {content:""; position:absolute; inset:6%; border:1px solid #b8976170; border-radius:50%; rotate:22deg; scale:1 .82}
.dstage.dst-pearl .arc::after {rotate:-22deg}
.dstage .silk {display:none; top:-12%; left:-19%; width:55%; height:132%; background:repeating-linear-gradient(105deg,#fff8e892 0%,#9f795836 7%,#e5d4be71 13%,#fff9e8a9 18%); filter:blur(1px); transform:skewX(-18deg)}
.dstage.dst-pearl .silk {display:block; clip-path:polygon(0 0,88% 0,68% 26%,55% 47%,57% 70%,100% 100%,0 100%); animation:dk-silk 12s ease-in-out infinite alternate}
.dstage.dst-pearl .silk.second {left:auto; right:-19%; transform:scaleX(-1) skewX(-18deg); animation-delay:-7s}
@keyframes dk-silk { to { translate:3% -2% } }
.dstage .branch {display:none; bottom:-18%; left:0; width:32%; height:96%; transform-origin:bottom center; transform:rotate(-22deg); animation:dk-sway 8s ease-in-out infinite alternate}
.dstage.dst-garden .branch {display:block}
.dstage .branch.second {left:auto; right:0; scale:-1 1; animation-delay:-4s}
@keyframes dk-sway { to { rotate:5deg } }
.dstage .stem {position:absolute; left:51%; height:89%; bottom:0; border-left:2px solid #71825c; transform:rotate(14deg); transform-origin:bottom}
.dstage .stem.offset {left:43%; height:69%; transform:rotate(-19deg)}
.dstage .leaf {position:absolute; bottom:var(--y); left:0; width:clamp(23px,8cqw,110px); aspect-ratio:2.5; border-radius:100% 0 100% 0; background:linear-gradient(12deg,#607c56bb,#c6cc9d); transform:rotate(-35deg) scale(var(--s)); transform-origin:left center}
.dstage .leaf:nth-child(even) {transform:rotate(214deg) scale(var(--s))}
.dstage .bloom {position:absolute; bottom:var(--y); left:0; color:#fffaf0; font:clamp(24px,5.7cqw,75px)/1 Georgia,serif; text-shadow:0 0 13px #a69569; transform:translate(-45%,50%)}
.dstage .copy {position:relative; width:min(82%,1000px); text-align:center; padding:20px 0 23px; z-index:1}
.dstage .emblem {display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; color:var(--accent); width:min(260px,45%); margin:0 auto 10px}
.dstage .emblem::before, .dstage .emblem::after {content:""; height:1px; background:linear-gradient(90deg,transparent,var(--rim))}
.dstage .emblem::after {scale:-1 1}
.dstage .emblem span {font:clamp(22px,4cqw,56px)/1 Georgia,serif;}
.dstage .eyebrow {color:var(--accent); font-size:clamp(14px,2.1cqw,27px); font-weight:700; margin:0 0 6px}
.dstage .headline {font:700 clamp(35px,7.25cqw,102px)/1.22 "Noto Serif Thai",Tahoma,serif; color:var(--ink); margin:0; text-wrap:balance; overflow-wrap:anywhere}
.dstage .status {color:var(--soft); font-size:clamp(14px,2cqw,24px); margin:6px 0 0}
.dstage .prize {display:inline-block; color:var(--ink); background:color-mix(in srgb,var(--scene-flat,#fff) 11%,transparent); border:1px solid color-mix(in srgb,var(--rim) 75%,transparent); border-radius:99px; padding:5px 17px; font-size:clamp(12px,1.45cqw,18px); margin:14px 0 0}
.dstage .count {position:absolute; text-align:center; color:var(--accent); left:12%; right:12%; bottom:7%; margin:0; height:1.5em; font-size:clamp(14px,2.25cqw,28px); font-weight:700; letter-spacing:.14em}
.dstage .flash {position:absolute; z-index:2; pointer-events:none; inset:0; opacity:0; background:radial-gradient(ellipse at 50% 48%,#fff7d691,#fff0 66%)}
.dstage[data-state=rolling] .copy {animation:dk-anticipate .72s ease-in-out infinite alternate}
.dstage[data-state=rolling] .beam {animation-duration:1s}
.dstage[data-state=result] .copy {animation:dk-reveal .85s cubic-bezier(.18,.82,.28,1) both}
.dstage[data-state=result] .flash {animation:dk-flash .8s ease-out both}
.dstage[data-state=result].dst-pearl .arc {animation:dk-halo 1.25s ease-out both}
.dstage[data-state=result].dst-garden .emblem span {animation:dk-bloom .9s ease-out both}
@keyframes dk-anticipate { to { transform:scale(1.035); filter:brightness(1.13) } }
@keyframes dk-tock { from { transform:scale(1.4); opacity:.2 } }
@keyframes dk-reveal { 0% { transform:translateY(20px) scale(.82); opacity:0; filter:blur(8px) } 70% { transform:scale(1.045) } }
@keyframes dk-flash { 12% { opacity:.9 } to { opacity:0 } }
@keyframes dk-halo { 36% { scale:1.18; box-shadow:0 0 110px 28px #fffbe2c0,0 0 0 16px #fff6dfa0 } }
@keyframes dk-bloom { from { transform:rotate(-50deg) scale(.2) } }
.dstage .effects {position:absolute; inset:0; z-index:2; width:100%; height:100%; pointer-events:none}
@media (max-width:650px) {
  .dstage { min-height:340px }
  .dstage .copy { width:85% }
  .dstage .count { bottom:8% }
}
.dstage.dst-champagne {--ink:#4e3624; --soft:#6a5140; --accent:#775338; --rim:#ba9360; --scene:radial-gradient(ellipse at 50% 27%,#fffdf6 0%,#f8efde 54%,#e2c9a6 100%)}
.dstage.dst-champagne .beam {background:linear-gradient(#fffaf0a0,#fff8e84d 70%,transparent); mix-blend-mode:screen}
.dstage.dst-pearl {--scene:radial-gradient(ellipse at 50% 25%,#fffdf7 0%,#f4ece0 58%,#e3d5c3 100%)}
.dstage.dst-garden {--scene:radial-gradient(ellipse at 50% 35%,#fffdf4 0%,#efeee1 56%,#c8d0ba 100%)}
.dstage .copy {width:min(86%,1040px); padding:0; position:relative; text-align:center; z-index:1}
.dstage .emblem {margin-bottom:4px}
.dstage .emblem span {font-size:clamp(20px,2.7cqw,39px)}
.dstage .eyebrow {margin:0 0 3px; font-size:clamp(13px,1.65cqw,22px)}
.dstage .stage-heading {margin:0; font:700 clamp(25px,4.65cqw,64px)/1.27 "Noto Serif Thai",Tahoma,serif; color:var(--ink)}
.dstage .copy .status {min-height:1.5em; margin:0; font-size:clamp(12px,1.6cqw,20px)}
.dstage .copy .prize {margin:3px 0 0; padding:3px 12px}
.dstage .count {position:static; height:1.55em; margin:0; font-size:clamp(12px,1.4cqw,18px)}
.dstage .prop {position:relative; width:min(100%,740px); height:clamp(154px,26.3cqw,335px); margin:clamp(5px,.8cqw,13px) auto; perspective:900px; isolation:isolate}
.dstage .piece, .dstage .winners-card {position:absolute; left:50%; top:50%; translate:-50% -50%}
.dstage .piece {display:none}
.dstage.dst-champagne .ticket, .dstage.dst-pearl .letter, .dstage.dst-garden .drum, .dstage.dst-garden .capsule {display:block}
.dstage .winners-card {display:grid; place-content:center; gap:3px; z-index:2; width:76%; min-height:62%; padding:5% 10%;
  color:var(--ink); background:linear-gradient(115deg,#fffdfa,#f8eedc); border:1px solid #cba879;
  box-shadow:0 11px 24px #624a3426,inset 0 0 0 5px #fff8e9,inset 0 0 0 6px #cfac79; border-radius:12px;
  visibility:hidden; opacity:0; transform:translateY(25%) scale(.86);}
.dstage .winners-card .headline {font:700 clamp(23px,5.65cqw,78px)/1.2 "Noto Serif Thai",Tahoma,serif; color:inherit; margin:0; text-shadow:none; text-wrap:balance; overflow-wrap:anywhere}
.dstage .winner-serial {color:var(--accent); margin:0 0 3px; font-size:clamp(11px,1.35cqw,17px); font-weight:700; font-variant-numeric:tabular-nums}
.dstage[data-state=result] .winners-card {visibility:visible; opacity:1; transform:none; animation:dk-card-in .72s cubic-bezier(.18,.8,.27,1) both}
@keyframes dk-card-in { from { opacity:0; transform:translateY(17%) scale(.87) } 65% { transform:scale(1.025) } }
.dstage[data-state=rolling] .copy, .dstage[data-state=result] .copy {animation:none}
.dstage[data-state=result] .flash {animation:dk-flash .8s ease-out both}
.dstage .wobble {transform-origin:50% 77%}
.dstage[data-state=rolling] .wobble {animation:dk-rock .36s ease-in-out infinite alternate}
@keyframes dk-rock { from { transform:rotate(-4deg) } to { transform:rotate(4deg) } }
.dstage .ticket {width:83%; height:71%; z-index:3; filter:drop-shadow(0 12px 13px #71513449); rotate:-4deg}
.dstage .ticket-main, .dstage .ticket-stub {position:absolute; inset-block:0; display:grid; place-content:center;
  background:repeating-linear-gradient(154deg,#fff3df3d 0 2px,transparent 2px 7px),linear-gradient(145deg,#fff9eb,#edcca0);
  border:1px solid #ba8756; box-shadow:inset 0 0 0 5px #fff6df8f,inset 0 0 0 6px #b98652; color:#644028;}
.dstage .ticket-main {left:0; width:75%; border-right:0; border-radius:11px 0 0 11px; padding:6px 12px}
.dstage .ticket-main::after {content:""; position:absolute; inset:10%; border:1px solid #ba875665; border-radius:8px; pointer-events:none}
.dstage .ticket-stub {right:0; width:25%; border-left:2px dashed #a97042; border-radius:0 11px 11px 0; mask-image:radial-gradient(circle at 100% 50%,transparent 7px,#000 8px)}
.dstage .ink-label {z-index:1; font-size:clamp(11px,1.6cqw,22px); font-weight:700; margin:0}
.dstage .serial {z-index:1; margin:0; font:700 clamp(22px,4.8cqw,54px)/1.1 ui-monospace,Consolas,monospace; letter-spacing:.07em; color:#6c4329; font-variant-numeric:tabular-nums}
.dstage .ticket-rule {position:absolute; z-index:1; height:4px; top:15%; left:18%; right:18%; background:repeating-linear-gradient(90deg,#a26d47 0 1px,transparent 1px 4px); opacity:.7}
.dstage .ticket-stub span {color:#925e3a; font:clamp(19px,4cqw,44px)/1 Georgia,serif}
.dstage .ticket-stub small {font-size:clamp(9px,1.2cqw,15px); margin-top:7px}
.dstage[data-state=opening] .ticket-main, .dstage[data-state=result] .ticket-main {animation:dk-tear-main .64s ease-in both}
.dstage[data-state=opening] .ticket-stub, .dstage[data-state=result] .ticket-stub {animation:dk-tear-stub .64s ease-in both}
@keyframes dk-tear-main { 32% { transform:translate(-7%,1%) rotate(-6deg) } to { opacity:0; transform:translate(-56%,35%) rotate(-23deg) } }
@keyframes dk-tear-stub { 32% { transform:translate(14%,-2%) rotate(8deg) } to { opacity:0; transform:translate(84%,-35%) rotate(31deg) } }
.dstage .letter {width:67%; height:76%; z-index:3; filter:drop-shadow(0 13px 16px #74594249); transform:rotate(-4deg);}
.dstage .envelope-paper, .dstage .pocket, .dstage .flap {position:absolute; inset:0;}
.dstage .envelope-paper {background:#ebd6bc; border:1px solid #ab865d; border-radius:10px}
.dstage .pocket {border-radius:9px; background:linear-gradient(30deg,#e7d0b3 0%,#fff3df 51%,#eed9bf 78%); clip-path:polygon(0 0,50% 54%,100% 0,100% 100%,0 100%); border:1px solid #b59066}
.dstage .pocket::before {content:""; position:absolute; inset:0; background:linear-gradient(30deg,transparent 49%,#b58c5d76 50%,transparent 51%) 0 100%/50% 76% no-repeat,linear-gradient(150deg,transparent 49%,#b58c5d76 50%,transparent 51%) 100% 100%/50% 76% no-repeat}
.dstage .flap {height:70%; background:linear-gradient(#fffcf2,#eed7b7); border-radius:8px 8px 0 0; clip-path:polygon(0 0,100% 0,51.5% 91%,48.5% 91%); transform-origin:50% top; filter:drop-shadow(0 5px 5px #9a714e)}
.dstage .seal {position:absolute; display:grid; place-items:center; left:50%; top:60%; translate:-50% -50%; width:clamp(31px,5.8cqw,72px); aspect-ratio:1; border-radius:44% 50% 46% 47%; color:#fff4df; font:clamp(15px,2.5cqw,33px)/1 Georgia,serif; border:2px solid #b38d61; background:radial-gradient(circle at 35% 30%,#c1a384,#927050); box-shadow:0 3px 6px #68462f70,inset 0 0 0 3px #ffffff36}
.dstage.dst-pearl .winners-card {width:69%; min-height:58%; border-radius:7px; top:42%; background:linear-gradient(145deg,#fffdf7,#f6ecdf); box-shadow:0 7px 20px #61432b28,inset 0 0 0 5px #fffdf7,inset 0 0 0 6px #bd9b7466}
.dstage[data-state=opening] .flap, .dstage[data-state=result] .flap {animation:dk-flip-flap .52s ease both}
.dstage[data-state=opening] .seal, .dstage[data-state=result] .seal {animation:dk-seal-off .41s ease both}
.dstage[data-state=result] .letter {animation:dk-pocket-down .72s ease both}
@keyframes dk-flip-flap { to { transform:rotateX(171deg); opacity:.28 } }
@keyframes dk-seal-off { to { transform:translateY(48px) rotate(37deg); opacity:0 } }
@keyframes dk-pocket-down { to { transform:translateY(38%) rotate(0) scale(.77); opacity:.56; z-index:0 } }
.dstage.dst-pearl[data-state=result] .winners-card {z-index:4; animation:dk-letter-out .78s ease-out both}
@keyframes dk-letter-out { from { opacity:0; transform:translateY(43%) scale(.77); clip-path:inset(0 0 72% 0) } to { opacity:1; transform:none; clip-path:inset(0) } }
.dstage .drum {width:clamp(144px,28cqw,315px); height:93%; z-index:1}
.dstage .drum-base {position:absolute; left:8%; right:8%; bottom:0; height:15%; border-radius:12px 12px 7px 7px; border:1px solid #63714d; background:linear-gradient(#aab38c,#7d8a68); box-shadow:0 7px 15px #51604939}
.dstage .drum-base::before {content:""; position:absolute; inset:21% 36%; border-radius:20px; background:linear-gradient(#faf1d9,#c1ab7b); border:1px solid #8c7e58}
.dstage .jar {position:absolute; inset:1% 5% 11%; overflow:hidden; border-radius:44% 44% 39% 39% / 38% 38% 44% 44%; border:2px solid #7585659e; background:radial-gradient(ellipse at 25% 17%,#fffdf9 0%,#ffffff3a 28%,#9aac8040 87%); box-shadow:inset 0 0 0 5px #fffdf78a,inset -12px -10px 26px #778b6460,0 6px 18px #63745430}
.dstage .jar::after {content:""; position:absolute; inset:6% 9%; border-radius:50%; border-left:clamp(3px,.7cqw,9px) solid #fff9; border-top:2px solid #fff8; transform:rotate(24deg); pointer-events:none}
.dstage .drumpaper {position:absolute; left:var(--x); top:var(--y); width:12.5%; aspect-ratio:1.37; background:repeating-linear-gradient(0deg,#8e9a742b 0 1px,transparent 1px 4px),linear-gradient(128deg,#fffdf8,#d9cead); border:1px solid #9a9e78; border-radius:4px; transform:rotate(var(--rot)); box-shadow:0 3px 4px #535d433f}
.dstage[data-state=rolling] .drumpaper {animation:dk-tumble .75s var(--delay) ease-in-out infinite alternate}
@keyframes dk-tumble { from { transform:translate(-13%,5%) rotate(var(--rot)) } to { transform:translate(37%,var(--jump)) rotate(150deg) } }
.dstage .capsule {width:51%; height:55%; z-index:3; visibility:hidden; transform:translateY(40%) scale(.22)}
.dstage .cap {position:absolute; inset-inline:0; height:50%; background:linear-gradient(120deg,#f9f7e4,#b5bf99); border:1px solid #788463; box-shadow:inset 0 0 0 4px #fff4,0 6px 15px #5e6b4950}
.dstage .cap.top {top:0; border-radius:90px 90px 0 0}
.dstage .cap.bottom {bottom:0; border-radius:0 0 90px 90px; background:linear-gradient(120deg,#b9c4a1,#849271)}
.dstage .cap-mark {position:absolute; width:100%; top:50%; translate:0 -50%; font:clamp(19px,4cqw,44px)/1 Georgia,serif; color:#fff8e6; text-shadow:0 1px 4px #364d32}
.dstage.dst-garden .winners-card {width:73%; border-color:#9aa982; background:linear-gradient(125deg,#fffdf3,#e8ebd9); box-shadow:0 12px 24px #44573d30,inset 0 0 0 5px #fffdf3,inset 0 0 0 6px #94a17c75}
.dstage[data-state=countdown] .capsule, .dstage[data-state=opening] .capsule, .dstage[data-state=result] .capsule {visibility:visible; transform:none; animation:dk-capsule-out .51s ease-out both}
.dstage[data-state=countdown] .drum, .dstage[data-state=opening] .drum, .dstage[data-state=result] .drum {animation:dk-drum-away .51s ease both}
@keyframes dk-capsule-out { from { opacity:0; transform:translateY(45%) scale(.26) } 65% { transform:translateY(-7%) scale(1.04) } to { opacity:1; transform:none } }
@keyframes dk-drum-away { to { transform:translateY(14%) scale(.73); opacity:.11 } }
.dstage[data-state=opening] .cap.top, .dstage[data-state=result] .cap.top {animation:dk-cap-top .66s ease both}
.dstage[data-state=opening] .cap.bottom, .dstage[data-state=result] .cap.bottom {animation:dk-cap-bottom .66s ease both}
.dstage[data-state=opening] .cap-mark, .dstage[data-state=result] .cap-mark {opacity:0}
@keyframes dk-cap-top { to { opacity:0; transform:translateY(-106%) rotate(-9deg) } }
@keyframes dk-cap-bottom { to { opacity:0; transform:translateY(104%) rotate(9deg) } }
.dstage .count-badge {display:none; position:absolute; z-index:4; left:50%; top:50%; translate:-50% -50%; place-content:center; width:clamp(45px,7.1cqw,94px); aspect-ratio:1; margin:0; border-radius:50%; background:#fff9e9; border:1px solid var(--rim); box-shadow:0 4px 15px #59452c43; color:var(--accent); font:700 clamp(24px,4.8cqw,64px)/1 Georgia,serif}
.dstage[data-state=countdown] .count-badge {display:grid}
.dstage .count-badge.pulse {animation:dk-tock .49s ease-out both}
@media(max-width:650px) {
  .dstage { min-height:370px }
  .dstage .copy { width:88% }
  .dstage .ticket { width:95% }
  .dstage .letter { width:83% }
  .dstage .winners-card, .dstage.dst-pearl .winners-card, .dstage.dst-garden .winners-card { width:89% }
}
@media(prefers-reduced-motion:reduce) {
  .dstage[data-state=result] .ticket, .dstage[data-state=result] .letter, .dstage[data-state=result] .drum, .dstage[data-state=result] .capsule { visibility:hidden }
}
.dstage.dst-champagne {--ink:#60391e; --soft:#674524; --accent:#894c1d; --rim:#ad7439; --foil:#a35c24; --foil-light:#f6dd9c; --bloom:#ffc772; --grade:#b67531}
.dstage.dst-pearl {--ink:#602838; --soft:#603746; --accent:#8f3f58; --rim:#ab6579; --foil:#9f4d68; --foil-light:#f2c1c5; --bloom:#ffb1c7; --grade:#c67b91}
.dstage.dst-garden {--ink:#173e2e; --soft:#2d503c; --accent:#3a6848; --rim:#719268; --foil:#517d57; --foil-light:#e4d5a1; --bloom:#d2ed9a; --grade:#5e864d}
.dstage .branch, .dstage .silk, .dstage .arc {display:none;}
.dstage .frame {inset:3.25%; border-color:#fff9e7d9; outline-color:color-mix(in srgb,var(--rim) 60%,transparent); outline-offset:-5px; box-shadow:0 0 0 1px color-mix(in srgb,var(--rim) 18%,transparent);}
.dstage .corner {width:8%; border-color:color-mix(in srgb,var(--rim) 80%,#fff4e5);}
.dstage .emblem {color:var(--foil); filter:drop-shadow(0 2px 3px #fff8);}
.dstage .eyebrow {color:var(--foil);}
.dstage .stage-heading {color:var(--ink); text-shadow:0 2px 0 #fff7,0 4px 18px #fff9;}
.dstage .copy .prize {background:#fffbefd6; border-color:color-mix(in srgb,var(--rim) 83%,transparent); padding-inline:15px;}
.dstage .ticket-main, .dstage .ticket-stub {background:repeating-linear-gradient(143deg,#8b4e2110 0 1px,transparent 1px 5px),linear-gradient(126deg,#fff6dd 5%,#ffdf98 45%,#e9ad5f 100%); border-color:#ad6b32; box-shadow:inset 0 0 0 4px #fff3d8c4,inset 0 0 0 6px #ae6d37,inset 0 0 27px #fff5d0bd;}
.dstage .ticket-main::after {border-color:#ad6b3270; background:repeating-linear-gradient(90deg,#92582625 0 1px,transparent 1px 5px) 50% 95%/40% 4px no-repeat;}
.dstage .ticket-stub {background:linear-gradient(145deg,#efbc68,#bd743b); color:#572d18;}
.dstage .ticket-stub span {color:#fff2ca; text-shadow:0 2px 3px #74431e;}
.dstage .envelope-paper {background:#df9ea7; border-color:#aa687d;}
.dstage .pocket {background:linear-gradient(36deg,#c9758d 0%,#f9cfd0 52%,#e9a8b2 77%); border-color:#b3687e;}
.dstage .flap {background:linear-gradient(#fff0e5,#e6a5b2); filter:drop-shadow(0 5px 5px #9d566c);}
.dstage .seal {background:radial-gradient(circle at 32% 25%,#b76679,#8c3e57 72%); border-color:#a95770;}
.dstage .jar {background:radial-gradient(ellipse at 25% 17%,#fffef4 0%,#ffffff39 27%,#8eac6d8a 91%); border-color:#668d6ac7; box-shadow:inset 0 0 0 5px #fffdf78a,inset -12px -10px 26px #46654d76,0 10px 20px #41584437;}
.dstage .drum-base {background:linear-gradient(#8bab72,#42684d); border-color:#446c4a;}
.dstage .drumpaper:nth-child(3n+1) {background:linear-gradient(128deg,#ffeddf,#ce9f99);}
.dstage .drumpaper:nth-child(3n+2) {background:linear-gradient(128deg,#fff5ce,#cbad5d);}
.dstage .cap.top {background:linear-gradient(120deg,#fffbdb,#9dc080);}
.dstage .cap.bottom {background:linear-gradient(120deg,#a6c68b,#507753);}
.dstage .winners-card, .dstage.dst-pearl .winners-card, .dstage.dst-garden .winners-card {z-index:4; isolation:isolate; border:1px solid var(--foil); border-radius:10px; padding:5% 7%;
  background:linear-gradient(138deg,#fffdf8 1%,color-mix(in srgb,var(--foil-light) 28%,#fffdf6) 67%,#fff7e5);
  box-shadow:0 15px 35px #59352544,0 0 35px color-mix(in srgb,var(--bloom) 46%,transparent),inset 0 0 0 5px #fffdf7,inset 0 0 0 6px var(--foil);}
.dstage .winners-card::before {content:""; position:absolute; inset:11px; border:1px solid color-mix(in srgb,var(--foil) 37%,transparent); border-radius:3px; z-index:-1;}
.dstage .winners-card::after {content:""; position:absolute; inset:5px; border-radius:6px; z-index:-1; background:linear-gradient(113deg,transparent 21%,#fff9 44%,transparent 61%) 145% 0/250% 100% no-repeat;}
.dstage .card-stars {color:var(--foil); font:clamp(13px,1.65cqw,20px)/1 Georgia,serif; letter-spacing:.26em; margin:0 0 4px;}
.dstage .winners-card .headline {color:var(--ink);}
.dstage .winner-serial {color:var(--foil);}
.dstage[data-state=result] .winners-card, .dstage[data-state=result].dst-pearl .winners-card {animation:dk-spotlight-name 1.03s cubic-bezier(.16,.84,.24,1) both;}
.dstage[data-state=result].dst-pearl .winners-card {animation-name:dk-raised-letter;}
.dstage[data-state=result] .winners-card::after {animation:dk-foil-shine 1.45s .24s ease-out both;}
@keyframes dk-spotlight-name {
  0% { opacity:0; transform:translateY(21%) scale(.60) rotateX(23deg); }
  33% { opacity:1; }
  52% { transform:translateY(-4%) scale(1.12) rotateX(0); }
  75% { transform:scale(.982); }
}
@keyframes dk-raised-letter {
  0% { opacity:0; transform:translateY(63%) scale(.71); clip-path:inset(0 0 76% 0); }
  48% { opacity:1; transform:translateY(-6%) scale(1.045); clip-path:inset(0); }
  70% { transform:scale(.99); }
}
@keyframes dk-foil-shine { from { background-position:145% 0; } to { background-position:-60% 0; } }
.dstage .anticipation {position:absolute; inset:0; z-index:0; pointer-events:none; opacity:0; background:radial-gradient(ellipse at 50% 51%,transparent 15%,color-mix(in srgb,var(--grade) 29%,transparent) 74%,color-mix(in srgb,var(--ink) 22%,transparent));}
.dstage[data-state=countdown] .anticipation, .dstage[data-state=opening] .anticipation {opacity:1; transition:opacity .38s;}
.dstage[data-state=result] .anticipation {opacity:0; transition:opacity .62s;}
.dstage .count-badge {background:radial-gradient(circle at 33% 27%,#fffdf1,var(--foil-light)); box-shadow:0 0 0 5px #fff8,0 0 0 6px var(--rim),0 8px 22px #5435235f;}
.dstage .count-badge.pulse {animation:dk-count-impact .58s cubic-bezier(.15,.72,.26,1) both;}
@keyframes dk-count-impact { 0% { transform:scale(1.7); opacity:.24; } 43% { transform:scale(.94); opacity:1; } }
.dstage .count-badge::after {content:""; position:absolute; inset:0; border:2px solid var(--rim); border-radius:50%;}
.dstage .count-badge.pulse::after {animation:dk-count-ripple .62s ease-out both;}
@keyframes dk-count-ripple { to { transform:scale(1.8); opacity:0; } }
.dstage .reveal-wave {position:absolute; z-index:1; left:50%; top:50%; width:67%; aspect-ratio:1.8; translate:-50% -50%; pointer-events:none; opacity:0; border:2px solid var(--bloom); border-radius:50%; box-shadow:0 0 44px var(--bloom),inset 0 0 28px var(--bloom);}
.dstage .reveal-wave.second {width:55%;}
.dstage[data-state=result] .reveal-wave {animation:dk-reveal-wave 1.15s ease-out both;}
.dstage[data-state=result] .reveal-wave.second {animation-delay:.14s;}
@keyframes dk-reveal-wave { from { transform:scale(.19); opacity:.94; } to { transform:scale(1.65); opacity:0; } }
.dstage .flash {background:radial-gradient(ellipse at 50% 48%,#fffbec 0%,color-mix(in srgb,var(--bloom) 70%,transparent) 17%,transparent 67%);}
.dstage[data-state=result] .flash {animation:dk-prize-light 1s ease-out both;}
@keyframes dk-prize-light { 0% { opacity:0; } 12% { opacity:.79; } 37% { opacity:.21; } to { opacity:0; } }
.dstage[data-state=opening] .ticket-main, .dstage[data-state=result] .ticket-main {animation-duration:.82s;}
.dstage[data-state=opening] .ticket-stub, .dstage[data-state=result] .ticket-stub {animation-duration:.82s;}
.dstage[data-state=opening] .pocket, .dstage[data-state=opening] .cap {filter:brightness(1.07);}
@media(max-width:650px) {
  .dstage .winners-card, .dstage.dst-pearl .winners-card, .dstage.dst-garden .winners-card { padding:6% 8%; }
}
@keyframes dk-scene-drift { from { transform:scale(1.025) translateX(-.45%); } to { transform:scale(1.12) translateX(.85%); } }
@keyframes dk-light-drift { to { transform:translate(3%,2%); opacity:.35; } }
.dstage .winners-card, .dstage.dst-pearl .winners-card, .dstage.dst-garden .winners-card {width:min(85%,655px); gap:5px; padding:4% 7%;}
.dstage .card-stars {display:none;}
.dstage .winner-serial {display:flex; align-items:center; justify-content:center; gap:10px;}
.dstage .winner-serial::before, .dstage .winner-serial::after {content:""; width:2em; height:1px; background:var(--foil);}
.dstage.dst-champagne .winners-card {border-radius:4px; border-left:9px solid #b97a39; border-right:9px solid #b97a39; background:repeating-linear-gradient(128deg,transparent 0 5px,#97612409 6px 7px),linear-gradient(120deg,#fffdf1,#ffe6ac 80%,#eec173);}
.dstage.dst-pearl .winners-card {border-radius:42% 42% 10px 10px / 16% 16% 10px 10px; background:linear-gradient(158deg,#fffaf8,#ffe7e8); border-bottom:5px solid #ba7687;}
.dstage.dst-garden .winners-card {border-radius:68px 12px; background:linear-gradient(135deg,#fffef2,#e3edcf); border-bottom:4px solid #789776;}
.dstage.dst-pearl .winners-card::before, .dstage.dst-garden .winners-card::before {border-radius:inherit;}
.dstage[data-state=result] .stage-heading {font-size:clamp(18px,2.9cqw,39px);}
.dstage[data-state=result] .winners-card .headline {font-size:clamp(27px,6.15cqw,83px);}
.dstage.dst-champagne .copy {width:84%; text-align:left; display:grid; grid-template-columns:35% 65%; align-items:center;}
.dstage.dst-champagne .emblem {display:none}
.dstage.dst-champagne .eyebrow, .dstage.dst-champagne .stage-heading, .dstage.dst-champagne .status, .dstage.dst-champagne .prize {grid-column:1; justify-self:start;}
.dstage.dst-champagne .stage-heading {font-size:clamp(25px,4.35cqw,58px); max-width:6.2em; line-height:1.23;}
.dstage.dst-champagne .eyebrow {align-self:end}
.dstage.dst-champagne .prop {grid-column:2; grid-row:1/6; width:100%; height:clamp(180px,32cqw,380px);}
.dstage.dst-champagne .count {display:none}
.dstage.dst-champagne .ticket {width:96%; height:65%;}
.dstage.dst-champagne .ticket-main, .dstage.dst-champagne .ticket-stub {text-align:center;}
.dstage.dst-champagne[data-state=opening] .ticket-main, .dstage.dst-champagne[data-state=result] .ticket-main {animation:none}
.dstage.dst-champagne[data-state=result] .ticket-main .serial, .dstage.dst-champagne[data-state=result] .ticket-main .ink-label {opacity:0}
.dstage.dst-champagne[data-state=result] .ticket {z-index:1}
.dstage.dst-champagne[data-state=result] .winners-card {left:38%; top:50%; width:68%; height:49%; min-height:0; padding:4px; text-align:center; box-shadow:none; background:none; border:none; rotate:-4deg; animation:dk-printed .8s ease-out both}
.dstage.dst-champagne .winners-card::after, .dstage.dst-champagne .winners-card::before {display:none}
.dstage.dst-champagne .winners-card .headline {font-size:clamp(21px,3.8cqw,55px)}
@keyframes dk-printed { from { opacity:0; filter:blur(6px); clip-path:inset(0 100% 0 0) } to { opacity:1; filter:blur(0); clip-path:inset(0) } }
.dstage.dst-pearl .frame, .dstage.dst-pearl .emblem, .dstage.dst-pearl .count {display:none}
.dstage.dst-pearl .stage-heading {font-weight:500; font-size:clamp(22px,3.5cqw,46px)}
.dstage.dst-pearl .prop {height:clamp(198px,29cqw,365px);}
.dstage.dst-pearl .letter {width:59%; height:66%; top:58%; rotate:2deg;}
.dstage.dst-pearl .envelope-paper {background:repeating-linear-gradient(10deg,#fff3 0 1px,transparent 1px 6px),#e8bdc1;}
.dstage.dst-pearl[data-state=result] .letter {animation:none; transform:translateY(9%); opacity:1}
.dstage.dst-pearl[data-state=result] .winners-card {top:38%; width:51%; min-height:56%; border:none; border-radius:2px; padding:7% 3% 5%; rotate:-5deg; background:linear-gradient(108deg,#fffbf3,#fff3e9); box-shadow:0 7px 20px #62384735; animation:dk-lift-note .95s cubic-bezier(.22,.79,.25,1) both}
.dstage.dst-pearl .winners-card::before {inset:9%; border:0; border-bottom:1px solid #ab7682;}
.dstage.dst-pearl .winners-card .headline {font-size:clamp(22px,4.1cqw,56px); font-weight:500;}
@keyframes dk-lift-note { from { opacity:0; transform:translateY(58%) rotate(5deg); clip-path:inset(0 0 82%) } 65% { opacity:1; transform:translateY(-5%) } to { opacity:1; transform:none; clip-path:inset(0) } }
.dstage.dst-garden .frame, .dstage.dst-garden .emblem, .dstage.dst-garden .count {display:none}
.dstage.dst-garden .prop {width:min(85%,760px); height:clamp(190px,28cqw,355px)}
.dstage.dst-garden .drum {width:clamp(165px,24cqw,300px);}
.dstage.dst-garden .jar {border-radius:50%}
.dstage.dst-garden .drumpaper {aspect-ratio:1; border-radius:50%; background:radial-gradient(circle at 33% 26%,#fffde9,#c5b264 63%,#95804b)}
.dstage.dst-garden .drumpaper:nth-child(3n+1) {background:radial-gradient(circle at 33% 26%,#fff7e9,#dfa6ad 62%,#b58194)}
.dstage.dst-garden .drumpaper:nth-child(3n+2) {background:radial-gradient(circle at 33% 26%,#fffeda,#a6b875 62%,#68825f)}
.dstage.dst-garden .capsule {width:auto; height:62%; aspect-ratio:1}
.dstage.dst-garden .cap.top {border-radius:100px 100px 0 0}
.dstage.dst-garden .cap.bottom {border-radius:0 0 100px 100px}
.dstage.dst-garden[data-state=countdown] .drum, .dstage.dst-garden[data-state=opening] .drum, .dstage.dst-garden[data-state=result] .drum {animation:dk-roll-aside .75s ease both}
@keyframes dk-roll-aside { to { transform:translateX(-75%) scale(.72); opacity:.58 } }
.dstage.dst-garden[data-state=countdown] .capsule, .dstage.dst-garden[data-state=opening] .capsule, .dstage.dst-garden[data-state=result] .capsule {left:62%;}
.dstage.dst-garden[data-state=result] .cap.top, .dstage.dst-garden[data-state=result] .cap.bottom, .dstage.dst-garden[data-state=opening] .cap.top, .dstage.dst-garden[data-state=opening] .cap.bottom {animation:none}
.dstage.dst-garden[data-state=result] .cap-mark {display:none}
.dstage.dst-garden[data-state=result] .winners-card {left:62%; width:57%; min-height:0; padding:8px 6%; border:0; border-radius:0; background:linear-gradient(105deg,#406c50,#678656 54%,#3d6347); clip-path:polygon(0 0,100% 0,96% 50%,100% 100%,0 100%,4% 50%); box-shadow:none; animation:dk-unroll .73s cubic-bezier(.2,.75,.25,1) both}
.dstage.dst-garden .winners-card::before {border:none; inset:5px 7%; border-block:1px solid #ebd69b99}
.dstage.dst-garden .winners-card .headline {font-size:clamp(20px,3.9cqw,54px); color:#fffbea;}
.dstage.dst-garden .winner-serial {color:#ffedbc}
@keyframes dk-unroll { from { opacity:0; transform:scaleX(.16) rotate(-7deg) } 72% { opacity:1; transform:scaleX(1.06) rotate(1deg) } to { transform:none } }
.dstage.dst-pearl .count-badge, .dstage.dst-garden .count-badge {display:none}
.dstage.dst-pearl[data-state=countdown] .seal {animation:dk-seal-sway .5s ease-in-out infinite alternate}
@keyframes dk-seal-sway { to { rotate:12deg; scale:1.09 } }
@media(max-width:650px) {
  .dstage.dst-champagne .copy { display:block; text-align:center; width:90% }
  .dstage.dst-champagne .stage-heading { margin:auto; max-width:none }
  .dstage.dst-champagne .prop { height:160px }
  .dstage.dst-champagne .ticket { width:90% }
  .dstage.dst-champagne .prize, .dstage.dst-champagne .status, .dstage.dst-champagne .eyebrow { justify-self:auto }
  .dstage.dst-pearl .letter { width:80% }
  .dstage.dst-pearl[data-state=result] .winners-card { width:69% }
  .dstage.dst-garden .prop { width:100% }
}
@media(prefers-reduced-motion:reduce) {
  .dstage.dst-champagne[data-state=result] .ticket, .dstage.dst-pearl[data-state=result] .letter, .dstage.dst-garden[data-state=result] .capsule { visibility:visible }
  .dstage.dst-champagne[data-state=result] .ticket-stub, .dstage.dst-pearl[data-state=result] .flap, .dstage.dst-pearl[data-state=result] .seal { visibility:hidden }
}
.dstage[data-state=result] .stage-heading {font-size:clamp(25px,4.65cqw,64px)}
.dstage.dst-champagne[data-state=result] .stage-heading {font-size:clamp(25px,4.35cqw,58px)}
.dstage.dst-pearl[data-state=result] .stage-heading {font-size:clamp(22px,3.5cqw,46px)}
.dstage .count-badge.pulse {animation:dk-gentle-count .93s ease both}
@keyframes dk-gentle-count { 0% { opacity:.25; transform:translateY(4px) scale(.93) } 19%,82% { opacity:1; transform:none } 100% { opacity:.45 } }
.dstage.dst-champagne[data-state=result] .winners-card {animation-duration:1.15s}
.dstage.dst-pearl[data-state=result] .winners-card {animation-duration:1.17s}
.dstage.dst-garden[data-state=result] .winners-card {animation-duration:1.04s}
.dstage[data-state=result] .flash {animation:none; opacity:0}
.dstage[data-state=result] .reveal-wave {animation-delay:.52s}
.dstage[data-state=result] .reveal-wave.second {animation-delay:.68s}
.dstage .stage-heading, .dstage .winners-card .headline {font-family:'IK Athiti','IK Krub',sans-serif; line-height:1.28}
.dstage.dst-pearl .stage-heading, .dstage.dst-pearl .winners-card .headline {font-family:'IK Mali','IK Krub',sans-serif; font-weight:500; line-height:1.45}
.dstage.dst-pearl {--ink:#243d61;--soft:#3f516c;--foil:#496784;--accent:#425779;--rim:#8297b0;--foil-light:#d8e5f5;--bloom:#cfdef8}
.dstage.dst-pearl .flap {background:linear-gradient(155deg,#f3f7ff,#acbfdf)}
.dstage.dst-pearl .pocket {background:linear-gradient(32deg,#8c9fc2,#d8e6f9 50%,#a3b7d8);border-color:#718ab1}
.dstage.dst-pearl .envelope-paper {background:#adc4dd;border-color:#758aa3}
.dstage.dst-pearl .seal {background:radial-gradient(circle at 30% 20%,#d5ae7f,#9a694b);border-color:#b2875e}
.dstage .copy .status {min-height:1.65em}
@media(prefers-reduced-motion:reduce) {
  .dstage[data-state=result] .ticket-stub, .dstage[data-state=result] .flap, .dstage[data-state=result] .seal { visibility:hidden }
  .dstage[data-state=result] .winners-card { opacity:1;visibility:visible;transform:none }
}

/* --- fit into the projector page --- */
.st-main.dstage { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); aspect-ratio: auto; min-height: 0; width: 100%; height: 100%; border-radius: 0; box-shadow: none; background: none; padding: 0; text-align: center; font-size: 16px; line-height: 1.5; }
.dstage .dglaze { position: absolute; inset: 0; background: radial-gradient(ellipse 58% 74% at 50% 46%, color-mix(in srgb, var(--glaze, #fffaf0) 94%, transparent) 0%, color-mix(in srgb, var(--glaze, #fffaf0) 80%, transparent) 50%, transparent 100%); }
.dstage.dst-pearl { --glaze: #f0f5ff; } .dstage.dst-garden { --glaze: #f7f8ea; }
.dstage .copy .prize { font-size: clamp(12px, 1.6cqw, 22px); font-weight: 600; background: color-mix(in srgb, #fff 55%, transparent); color: var(--ink); }
.dstage .eyebrow, .dstage .status, .dstage .headline, .dstage .stage-heading { text-shadow: 0 0 .5em color-mix(in srgb, var(--glaze, #fffaf0) 90%, transparent); }
.dstage .dchips { position: absolute; left: 0; right: 0; bottom: -2.6em; display: flex; justify-content: center; gap: .5em; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; font-size: clamp(11px, 1.3cqw, 17px); color: var(--soft); }
.dstage .dchips li { background: color-mix(in srgb, #fff 60%, transparent); border-radius: 99px; padding: .15em .8em; }
.dstage .count-badge { z-index: 4; }
.dstage .qstamp { z-index: 5; }
.dstage .wobble { will-change: transform; }
.dstage .piece, .dstage .winners-card { backface-visibility: hidden; }
#fxlayer { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* Showcase styles (settings: รูปแบบสไลด์บนจอ). polaroid = the original look above. */
.show.sty-cinema { overflow: hidden; }
.slide.cine { padding: 0; gap: 0; justify-content: flex-end; }
.slide.cine .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 40%; }
.slide.cine.on .bg { animation: kenburns 16s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.13) translate(-1.2%, -.8%); } }
.slide.cine::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(transparent, #000b); pointer-events: none; }
.slide.cine figcaption { position: relative; z-index: 1; margin: 0 0 3.4em; padding: 0 2em; color: #fff; text-shadow: 0 .08em .5em #000b; }
.slide.cine.txt { justify-content: center; padding: 2.5em; }
.slide.cine.txt::after { display: none; }
.slide.cine.txt figcaption { margin: 0; color: var(--st-ink); text-shadow: none; }
.show.sty-cinema .dots { z-index: 2; } .show.sty-cinema .dots i { background: #fff6; } .show.sty-cinema .dots i.on { background: #fff; }

.slide.split { flex-direction: row; gap: 3.5em; padding: 3em 4.5em 5em; }
.slide.split .frame { flex: 0 1 58%; max-height: 84%; rotate: 0deg; justify-content: center; opacity: 0; translate: -3em 0; transition: opacity 1s ease, translate 1s cubic-bezier(.2,.8,.3,1); }
.slide.split figcaption { flex: 1 1 0; min-width: 0; max-width: none; text-align: left; font: 700 3em/1.45 var(--script); color: var(--st-ink); text-shadow: none; opacity: 0; translate: 3em 0; transition: opacity 1s ease .35s, translate 1s cubic-bezier(.2,.8,.3,1) .35s; }
.slide.split.on .frame, .slide.split.on figcaption { opacity: 1; translate: 0 0; }
.slide.split.txt { justify-content: center; }
.slide.split.txt figcaption { flex: 0 1 auto; max-width: 24em; text-align: center; }

.slide.scrap { display: block; padding: 0; }
.slide.scrap .pol { position: absolute; width: 27%; display: flex; flex-direction: column; gap: .6em; padding: .7em .7em 1em; background: var(--st-paper); box-shadow: 0 .8em 2.2em #0005; opacity: 0; transform: translateY(2.2em) scale(.92) rotate(var(--r)); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.3,1); }
.slide.scrap.on .pol { opacity: 1; transform: rotate(var(--r)); }
.slide.scrap .pol:nth-child(1) { left: 6%; top: 11%; --r: -5deg; transition-delay: .1s; }
.slide.scrap .pol:nth-child(2) { left: 36.5%; top: 21%; --r: 3deg; transition-delay: .45s; }
.slide.scrap .pol:nth-child(3) { left: 67%; top: 9%; --r: -2deg; transition-delay: .8s; }
.slide.scrap[data-k="1"] .pol:nth-child(1) { left: 33%; top: 12%; width: 34%; }
.slide.scrap[data-k="2"] .pol:nth-child(1) { left: 14%; top: 13%; width: 31%; }
.slide.scrap[data-k="2"] .pol:nth-child(2) { left: 54%; top: 19%; width: 31%; }
.slide.scrap .pol img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.slide.scrap .pol p { margin: 0; font: 600 1.35em/1.35 var(--f); text-align: center; color: var(--st-ink); }
.slide.scrap .pol.txt { aspect-ratio: 4 / 5; justify-content: center; }
.slide.scrap .pol.txt p { font: 700 2em/1.4 var(--script); }

/* รูปจากแขก — ผนังรวมรูป (photoStyle 'grid') */
.pwall.pgw { grid-template-rows: minmax(0, 1fr); }
.pgrid { min-height: 0; width: 100%; max-width: calc(var(--c) * 21em); margin: 0 auto; padding: .4em 10em 0 1em; display: grid; grid-template-columns: repeat(var(--c), minmax(0, 1fr)); grid-template-rows: repeat(var(--rows), minmax(0, 1fr)); gap: 1.3em 1.5em; }
.ptile { margin: 0; min-height: 0; min-width: 0; display: flex; flex-direction: column; background: var(--st-paper, #fffdf8); padding: .45em .45em 0; border-radius: .3em; box-shadow: 0 .8em 2em #0006; rotate: var(--r); }
.ptile img { flex: 1; min-height: 0; width: 100%; object-fit: cover; display: block; }
.ptile figcaption { padding: .35em .2em .5em; font: 400 .95em/1.3 var(--s); color: #6a6358; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.ptile figcaption b { font: 600 1.05em var(--f); color: #2b2823; }
.ptile.big { grid-column: span 2; grid-row: span 2; }
.ptile.fresh { z-index: 2; outline: .25em solid var(--st-ac); animation: ppop .9s cubic-bezier(.2, 1.4, .4, 1) both; }
.ptile.big figcaption { font-size: 1.3em; }
@keyframes ppop { from { scale: .6; opacity: 0; } to { scale: 1; opacity: 1; } }
@media (max-width: 700px) { .pgrid { padding-right: 0; gap: .6em; } }

/* ===== โยนช่อดอกไม้ (draw style 'toss') — cinematic scene from behind the guests (markup: ui/toss.js) =====
   data-phase: ready → prep → count → throw → fly → catch → reveal (→ won after the host confirms) */
.st-main.toss2 { position: absolute; inset: 0; padding: 0; overflow: hidden; background: #e9dcc8; color: #3a2a22; }
.tcam { position: absolute; inset: 0; transform-origin: 0 0; transform: var(--c-ready); transition: transform 1.2s cubic-bezier(.45, 0, .2, 1); will-change: transform; }
.tsvg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.toss2[data-phase=prep] .tcam { transform: var(--c-prep); transition-duration: .9s; }
.toss2[data-phase=count] .tcam { transform: var(--c-count); transition: transform 3s cubic-bezier(.3, 0, .5, 1); }
.toss2[data-phase=throw] .tcam { transform: var(--c-throw); }
.toss2[data-phase=fly] .tcam { transform: var(--c-fly); transition: transform 2.3s cubic-bezier(.45, 0, .35, 1); }
.toss2[data-phase=catch] .tcam { transform: var(--c-catch); transition: transform .9s cubic-bezier(.3, 0, .2, 1); }
.toss2[data-phase=reveal] .tcam, .toss2[data-phase=won] .tcam { transform: var(--c-reveal); transition: transform 1.8s cubic-bezier(.4, 0, .2, 1); }

/* room life: string lights, candle flames, floating bokeh */
.tsvg .bulb { fill: #fff3cf; opacity: .9; animation: tTwinkle 3.4s ease-in-out infinite; }
.tsvg .bulb.b1 { animation-delay: -1.1s; } .tsvg .bulb.b2 { animation-delay: -2.3s; }
@keyframes tTwinkle { 0%, 100% { opacity: .95; } 50% { opacity: .45; } }
.tsvg .flame { transform-box: fill-box; transform-origin: 50% 100%; animation: tFlick 1.4s ease-in-out infinite alternate; }
.tsvg .flame.f1 { animation-duration: 1.1s; } .tsvg .flame.f2 { animation-duration: 1.7s; }
@keyframes tFlick { from { transform: scale(1, 1) skewX(-3deg); } to { transform: scale(.9, 1.15) skewX(3deg); } }
.tbokeh i { position: absolute; left: var(--x); top: var(--y); width: var(--r); height: var(--r); border-radius: 50%; background: radial-gradient(circle, #fff5d8cc, #fff5d800 70%); animation: tFloat var(--t) ease-in-out var(--dl) infinite alternate; pointer-events: none; }
@keyframes tFloat { from { translate: 0 0; opacity: .25; } to { translate: 1.2em -1.6em; opacity: .7; } }

/* guests (back view): idle → excited → reaching → winner celebrates */
.gst .gsh { fill: #4a3220; opacity: .28; }
.gst .gb { animation: tBob 2.4s ease-in-out var(--d) infinite; }
.gst .al, .gst .ar { transform-box: fill-box; transform-origin: 50% 3%; transition: transform .7s cubic-bezier(.3, 1.35, .5, 1) var(--j); }
.gst .al { transform: rotate(9deg); } .gst .ar { transform: rotate(-9deg); }
.gst .hb { opacity: 0; transition: opacity .2s; }
@keyframes tBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes tHop { from { transform: translateY(0); } to { transform: translateY(-9px); } }
@keyframes tCheer { 0% { transform: translateY(0); } 30% { transform: translateY(-26px); } 55% { transform: translateY(0); } 75% { transform: translateY(-12px); } 100% { transform: translateY(0); } }
.toss2:is([data-phase=prep], [data-phase=count], [data-phase=throw]) .gst .al { transform: rotate(140deg); }
.toss2:is([data-phase=prep], [data-phase=count], [data-phase=throw]) .gst .ar { transform: rotate(-140deg); }
.toss2:is([data-phase=count], [data-phase=throw]) .gst .gb { animation: tHop .55s ease-in-out var(--d) infinite alternate; }
.toss2[data-phase=fly] .gst .al { transform: rotate(163deg); } .toss2[data-phase=fly] .gst .ar { transform: rotate(-163deg); }
.toss2[data-phase=fly] .gst .gb { animation: tHop .42s ease-in-out var(--d) infinite alternate; }
.toss2:is([data-phase=catch], [data-phase=reveal], [data-phase=won]) .gst:not(.win) .al { transform: rotate(20deg); transition-duration: 1.1s; }
.toss2:is([data-phase=catch], [data-phase=reveal], [data-phase=won]) .gst:not(.win) .ar { transform: rotate(-20deg); transition-duration: 1.1s; }
.gst { transition: filter 1.2s; }
.toss2:is([data-phase=reveal], [data-phase=won]) .gst:not(.win) { filter: brightness(.6) saturate(.7); }
.toss2:is([data-phase=catch], [data-phase=reveal], [data-phase=won]) .gst.win .al { transform: rotate(170deg); transition: none; }
.toss2:is([data-phase=catch], [data-phase=reveal], [data-phase=won]) .gst.win .ar { transform: rotate(-170deg); transition: none; }
.toss2:is([data-phase=catch], [data-phase=reveal], [data-phase=won]) .gst.win .hb { opacity: 1; }
.toss2[data-phase=catch] .gst.win .gb { animation: tCheer .9s ease-out both; }
.toss2:is([data-phase=reveal], [data-phase=won]) .gst.win .gb { animation: tHop .8s ease-in-out infinite alternate; }
.gst .hb .bq { transform-box: fill-box; transform-origin: 50% 60%; }
.toss2:is([data-phase=reveal], [data-phase=won]) .gst.win .hb .bq { animation: tWave 1.6s ease-in-out infinite alternate; }
@keyframes tWave { from { transform: rotate(-10deg); } to { transform: rotate(10deg); } }

/* the bride: holds the bouquet low → raises it → winds up → throws (the bouquet leaves her hand at "fly") */
.bride .barm { transform-box: fill-box; transform-origin: 50% 0; transform: rotate(-14deg); transition: transform .9s cubic-bezier(.3, 1.2, .5, 1); }
.bride .bbody, .groom .gbody { transform-box: fill-box; transform-origin: 50% 100%; animation: tSway 4s ease-in-out infinite alternate; }
.groom .gbody { animation-delay: -1.6s; }
@keyframes tSway { from { transform: rotate(-1.2deg); } to { transform: rotate(1.2deg); } }
.toss2:is([data-phase=prep], [data-phase=count]) .bride .barm { transform: rotate(150deg); }
.toss2[data-phase=count] .bride .barm { animation: tTease 1s ease-in-out infinite alternate; }
@keyframes tTease { from { transform: rotate(146deg); } to { transform: rotate(158deg); } }
.toss2[data-phase=throw] .bride .barm { animation: tThrow .65s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes tThrow { 0% { transform: rotate(150deg); } 45% { transform: rotate(92deg); } 100% { transform: rotate(172deg); } }
.toss2[data-phase=throw] .bride .bbody { animation: tLean .65s ease-in-out forwards; }
@keyframes tLean { 0% { transform: rotate(0); } 45% { transform: rotate(3deg); } 100% { transform: rotate(-4deg); } }
.toss2[data-phase=fly] .bride .barm { transform: rotate(172deg); }
.toss2:is([data-phase=catch], [data-phase=reveal], [data-phase=won]) .bride .barm { transform: rotate(-30deg); transition-duration: 1.4s; }
.toss2:is([data-phase=fly], [data-phase=catch], [data-phase=reveal], [data-phase=won]) .bride .bhb { opacity: 0; }
.toss2[data-phase=catch] .groom .gbody { animation: tCheer .9s ease-out; }

/* the bouquet in flight: x moves evenly, y rises then falls (a parabola), it spins and grows as it comes toward the camera */
.fb { opacity: 0; pointer-events: none; }
.toss2[data-phase=fly] .fb { opacity: 1; }
.toss2[data-phase=fly] .fbx { animation: tFx 2.3s linear forwards; }
.toss2[data-phase=fly] .fby { animation: tFy 2.3s forwards; }
.toss2[data-phase=fly] .fbr { animation: tFr 2.3s cubic-bezier(.2, .5, .4, 1) forwards; }
.fbr { transform: scale(var(--s0)); }
@keyframes tFx { from { transform: translateX(0); } to { transform: translateX(var(--dx)); } }
@keyframes tFy { 0% { transform: translateY(0); animation-timing-function: cubic-bezier(.25, .7, .5, 1); } 44% { transform: translateY(var(--peak)); animation-timing-function: cubic-bezier(.55, 0, .8, .45); } 100% { transform: translateY(var(--dy)); } }
@keyframes tFr { 0% { transform: rotate(0) scale(var(--s0)); } 45% { transform: rotate(380deg) scale(calc(var(--s1) * 1.35 + .25)); } 100% { transform: rotate(720deg) scale(var(--s1)); } }
.fhalo { opacity: 0; } .toss2[data-phase=fly] .fhalo { animation: tHalo 2.3s ease forwards; }
@keyframes tHalo { 0% { opacity: 0; } 15%, 80% { opacity: 1; } 100% { opacity: 0; } }
.toss2[data-phase=fly] .fbx.tr, .toss2[data-phase=fly] .fbx.tr .fby { animation-delay: var(--td); }
.fbx.tr { opacity: var(--to); }
.bq .rib { transform-box: fill-box; transform-origin: 50% 0; animation: tRib 1.1s ease-in-out infinite alternate; }
.bq .rib.r2 { animation-delay: -.5s; }
@keyframes tRib { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
.burst ellipse { opacity: 0; }
.toss2[data-phase=catch] .burst ellipse { animation: tBurst 1.1s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes tBurst { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--bx), var(--by)) rotate(var(--br)); } }

/* spotlight on the winner, falling petals, blurred foreground flowers */
.tspot { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; background: radial-gradient(ellipse 9% 24% at var(--wx) var(--wy), #fff3d000 0, #fff3d000 45%, #1e100866 100%); }
.toss2:is([data-phase=reveal], [data-phase=won]) .tspot { opacity: 1; }
.tpetals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity 1.2s; }
.toss2:is([data-phase=catch], [data-phase=reveal], [data-phase=won]) .tpetals { opacity: 1; }
.tpetals i { position: absolute; top: -4%; left: var(--x); width: 1em; height: .62em; border-radius: 70% 0 70% 0; background: var(--c); box-shadow: 0 .1em .3em #0002; animation: tFall var(--t) linear var(--dl) infinite; }
@keyframes tFall { from { transform: translate(0, 0) rotate(0); } to { transform: translate(var(--sw), 110vh) rotate(600deg); } }
.tfg i { position: absolute; bottom: -9%; width: 26em; height: 18em; border-radius: 50%; filter: blur(14px); opacity: .85; pointer-events: none; background: radial-gradient(circle at 30% 40%, #f6d7db 0 18%, transparent 19%), radial-gradient(circle at 60% 35%, #fff6ee 0 16%, transparent 17%), radial-gradient(circle at 45% 65%, #efb2bd 0 15%, transparent 16%), radial-gradient(circle at 75% 60%, #9cb383 0 14%, transparent 15%), radial-gradient(circle at 20% 70%, #9cb383 0 12%, transparent 13%); }
.tfg i:first-child { left: -8em; } .tfg i:last-child { right: -8em; transform: scaleX(-1); }

/* words: caption (ready), countdown, the winner's name */
.toss2 .tcap { position: absolute; left: 2.4em; top: 2em; z-index: 3; padding: 1em 1.5em; border-radius: 1em; background: #fffaf2d9; box-shadow: 0 .8em 2.4em #4a2f1a33; backdrop-filter: blur(.5em); transition: opacity .8s, translate .8s; max-width: 30em; }
.toss2 .tcap p { margin: 0; } .toss2 .tcap .tk { font: 600 1.05em var(--s); letter-spacing: .04em; color: #a57b3f; }
.toss2 .tcap .tt { font: 600 1.9em/1.3 var(--f); color: #3a2a22; } .toss2 .tcap .tt b { color: #b4405a; font-size: 1.2em; } .toss2 .tcap .tm { font: 500 1em var(--s); color: #6d5648; margin-top: .2em; }
.toss2:not([data-phase=ready]) .tcap { opacity: 0; translate: 0 -1em; }
.toss2 .qstamp { transition: opacity .6s; }
.toss2:not([data-phase=ready]) .qstamp { opacity: 0; }
.tcount { position: absolute; left: 50%; top: 9%; translate: -50% 0; z-index: 4; pointer-events: none; }
.tcount span { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; font: 700 5em/1 var(--f); color: #fff8ea; background: radial-gradient(circle, #c99a52, #8d6328); box-shadow: 0 0 0 .12em #fff3d6, 0 .3em 1.2em #5a3a1855; }
.tcount span:empty { display: none; }
.tcount span.go { animation: tCnt .9s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes tCnt { 0% { transform: scale(1.8); opacity: 0; } 35% { transform: scale(1); opacity: 1; } 100% { transform: scale(.92); opacity: .9; } }
.tname { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; text-align: center; padding: 4.5em 2em 2.4em; pointer-events: none; opacity: 0; background: linear-gradient(to top, #1c0f07f2 0, #1c0f07e0 52%, #1c0f0700 100%); }
.toss2:is([data-phase=reveal], [data-phase=won]) .tname { animation: tNameIn 1.3s cubic-bezier(.2, .8, .2, 1) .55s both; }
.tname .te { margin: 0; font: 600 1.35em var(--s); letter-spacing: .06em; color: #f6e3bd; display: flex; align-items: center; justify-content: center; gap: .9em; }
.tname .te::before, .tname .te::after { content: ""; width: 4em; height: 1px; background: linear-gradient(90deg, #f6e3bd00, #f6e3bd); } .tname .te::after { transform: scaleX(-1); }
.tname h2 { margin: -.2em 0 -.1em; padding: .5em .2em .15em; font: 700 5.6em/1.45 var(--f); background: linear-gradient(180deg, #fff6dc 0, #f1d08a 50%, #c8913f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 .06em .18em #1a0c0499); overflow-wrap: anywhere; }
.tname h2:empty { display: none; }
.tname .tl { margin: .2em 0 0; font: 500 1.1em var(--s); color: #f6e3bdcc; } .tname .tl:empty { display: none; }
@keyframes tNameIn { from { opacity: 0; transform: translateY(1.2em) scale(.96); letter-spacing: .08em; } to { opacity: 1; transform: none; letter-spacing: 0; } }
@media (max-width: 700px) { .toss2 .tcap { left: 1em; top: 1em; font-size: .8em; } .tname { padding: 3em 1em 1.4em; } .tname h2 { font-size: 3.4em; } .tfg { display: none; } }
@media (prefers-reduced-motion: reduce) { .toss2 *, .toss2 .tcam { animation: none !important; transition: none !important; } }

/* ===== สุ่มรางวัล: โหลจับสลาก (jar) · ซองปริศนา (mail) · ตู้กาชาปอง (capsule) — markup: ui/draws3.js =====
   data-phase: ready → mix → pick → open → reveal (→ won after the host confirms). The name is filled in only at reveal. */
.st-main.dx3 { position: absolute; inset: 0; padding: 0; overflow: hidden; background: #efe2cf; color: #3a2a22; }
.dxcam { position: absolute; inset: 0; transform-origin: 0 0; transform: var(--c-ready); transition: transform 1.2s cubic-bezier(.45, 0, .2, 1); will-change: transform; }
.dx3[data-phase=mix] .dxcam { transform: var(--c-mix); transition-duration: 1.4s; }
.dx3[data-phase=pick] .dxcam { transform: var(--c-pick); transition-duration: 1.3s; }
.dx3[data-phase=open] .dxcam { transform: var(--c-open); transition-duration: .9s; }
.dx3:is([data-phase=reveal], [data-phase=won]) .dxcam { transform: var(--c-reveal); }
.dxsvg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dxbokeh i { position: absolute; left: var(--x); top: var(--y); width: var(--r); height: var(--r); border-radius: 50%; background: radial-gradient(circle, #fff5d8cc, #fff5d800 70%); animation: tFloat var(--t) ease-in-out var(--dl) infinite alternate; pointer-events: none; }
.dxspot { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s; background: radial-gradient(ellipse 34% 46% at 50% 47%, #1e100800 0, #1e100800 55%, #1e100899 100%); }
.dx3:is([data-phase=reveal], [data-phase=won]) .dxspot { opacity: 1; }
.dxspark { position: absolute; inset: 0; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity 1s; }
.dx3:is([data-phase=reveal], [data-phase=won]) .dxspark { opacity: 1; }
.dxspark i { position: absolute; bottom: -3%; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle, #fff6d6 0, #f1cf7f 40%, #f1cf7f00 72%); animation: dxRise var(--t) linear var(--dl) infinite; }
@keyframes dxRise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-105vh) scale(1.1); opacity: 0; } }
.dxcap { position: absolute; left: 2.4em; top: 2em; z-index: 3; padding: 1em 1.5em; border-radius: 1em; background: #fffaf2d9; box-shadow: 0 .8em 2.4em #4a2f1a33; backdrop-filter: blur(.5em); transition: opacity .8s, translate .8s; max-width: 30em; }
.dxcap p { margin: 0; } .dxcap .tk { font: 600 1.05em var(--s); color: #a57b3f; } .dxcap .tt { font: 600 1.8em/1.35 var(--f); color: #3a2a22; } .dxcap .tm { font: 500 1.05em var(--s); color: #6d5648; margin-top: .2em; } .dxcap .tm b { color: #b4405a; }
.dx3:not([data-phase=ready]):not([data-phase=won]) .dxcap { opacity: 0; translate: 0 -1em; }
.dx3 .qstamp { transition: opacity .6s; } .dx3:not([data-phase=ready]) .qstamp { opacity: 0; }
/* the winner card (shared look: ivory stock, double gold rule, foil name) */
.jc-in, .me-card, .cc-card { background: linear-gradient(160deg, #fffdf8, #f8efe0); box-shadow: inset 0 0 0 .4em #fffaf2, inset 0 0 0 .5em #d4b06a, inset 0 0 0 .8em #fffaf2, inset 0 0 0 .87em #e8d3a6, 0 1.2em 3em #4a2f1a40; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.6em 1.8em; color: #3a2a22; }
.dx3 .dk { margin: 0; font: 600 1.15em var(--s); letter-spacing: .06em; color: #a57b3f; }
.dx3 .dp { margin: .2em 0 0; font: 500 1.1em var(--s); color: #6d5648; display: flex; align-items: center; gap: .7em; text-wrap: balance; }
.dx3 .dp::before, .dx3 .dp::after { content: ""; width: 2.4em; height: 1px; background: linear-gradient(90deg, #d4b06a00, #d4b06a); } .dx3 .dp::after { transform: scaleX(-1); }
.dx3 #dxname { margin: -.25em 0 0; padding: .5em .15em .1em; font: 700 3em/1.45 var(--f); background: linear-gradient(180deg, #b98b45 0, #8a6326 55%, #6d4a1a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; overflow-wrap: anywhere; max-width: 100%; min-height: 1.45em; }
.dx3 #dxname:not(:empty) { animation: dxName 1.1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes dxName { from { opacity: 0; transform: translateY(.4em) scale(.94); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* 1 — โหลจับสลาก */
.dx-jar .ring { transform-box: view-box; transform-origin: 800px 540px; animation: jSw 26s linear infinite; }
.dx-jar .ring.k1 { animation-duration: 34s; animation-direction: reverse; } .dx-jar .ring.k2 { animation-duration: 41s; }
.dx-jar .tkp { animation: jFl 3s ease-in-out var(--d) infinite alternate; }
@keyframes jSw { to { transform: rotate(360deg); } }
@keyframes jFl { from { transform: translateY(-3px) rotate(-4deg); } to { transform: translateY(3px) rotate(4deg); } }
.dx-jar[data-phase=mix] .ring { animation-duration: 1.5s; } .dx-jar[data-phase=mix] .ring.k1 { animation-duration: 2s; } .dx-jar[data-phase=mix] .ring.k2 { animation-duration: 2.6s; }
.dx-jar[data-phase=mix] .tkp { animation-duration: .4s; }
.dx-jar .jar { transform-box: view-box; transform-origin: 800px 690px; }
.dx-jar[data-phase=mix] .jar { animation: jShake .16s ease-in-out infinite alternate; }
@keyframes jShake { from { transform: rotate(-1.4deg) translateX(-3px); } to { transform: rotate(1.4deg) translateX(3px); } }
.dx-jar .jlid { transform-box: fill-box; transform-origin: 0 100%; transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); }
.dx-jar:is([data-phase=pick], [data-phase=open], [data-phase=reveal], [data-phase=won]) .jlid { transform: translate(-30px, -70px) rotate(-16deg); }
.dx-jar .jps * { vector-effect: non-scaling-stroke; }
.dx-jar .jpick { opacity: 0; } .dx-jar .jpm { transform: translate(800px, 560px); }
.dx-jar[data-phase=pick] .jpick { opacity: 1; }
.dx-jar[data-phase=pick] .jpm { animation: jUp 1.8s cubic-bezier(.45, 0, .2, 1) forwards; }
@keyframes jUp { 0% { transform: translate(800px, 560px) scale(.9) rotate(25deg); } 35% { transform: translate(800px, 250px) scale(1) rotate(-6deg); } 55% { transform: translate(830px, 120px) scale(1.6) rotate(-14deg); } 100% { transform: translate(800px, 400px) scale(8.4) rotate(0); } }
.jcard { position: absolute; left: 50%; top: 44.4%; width: 30em; height: 18em; translate: -50% -75%; perspective: 1400px; opacity: 0; z-index: 2; transition: translate 1.1s cubic-bezier(.3, 0, .2, 1), scale 1.1s cubic-bezier(.3, 0, .2, 1), opacity .25s; }
.jc-in { position: absolute; inset: 0; clip-path: inset(50% 0 0 0); }
.jc-in::after { content: ""; position: absolute; left: 4%; right: 4%; top: 50%; height: 1px; background: linear-gradient(90deg, #d8c4a200, #d8c4a2, #d8c4a200); }
.jc-flap { position: absolute; left: 0; right: 0; top: 0; height: 50%; transform-origin: 50% 100%; transform-style: preserve-3d; transform: rotateX(180deg); }
.jc-back { position: absolute; inset: 0; backface-visibility: hidden; transform: rotateX(180deg); background: linear-gradient(0deg, #f1e6d2, #fbf6ec 70%); border-radius: 2px; box-shadow: 0 .4em 1em #4a2f1a33; }
.dx-jar:is([data-phase=open], [data-phase=reveal], [data-phase=won]) .jcard { opacity: 1; }
.dx-jar:is([data-phase=open], [data-phase=reveal], [data-phase=won]) .jpick { opacity: 0; transition: opacity .3s; }
.dx-jar[data-phase=open] .jc-flap { animation: jUnfold 1.4s cubic-bezier(.5, 0, .3, 1) .35s forwards; }
.dx-jar[data-phase=open] .jc-in { animation: jReveal 1.4s linear .35s forwards; }
.dx-jar:is([data-phase=reveal], [data-phase=won]) .jc-flap { transform: rotateX(0); } .dx-jar:is([data-phase=reveal], [data-phase=won]) .jc-in { clip-path: inset(0); }
@keyframes jUnfold { to { transform: rotateX(0); } }
@keyframes jReveal { 0%, 45% { clip-path: inset(50% 0 0 0); } 50%, 100% { clip-path: inset(0); } }
.dx-jar:is([data-phase=reveal], [data-phase=won]) .jcard { translate: -50% -50%; scale: 1.25; top: 50%; }
.dx-jar:is([data-phase=reveal], [data-phase=won]) .jc-flap { opacity: 0; }

/* 2 — ซองปริศนา */
.dx-mail .mfl { transform-box: fill-box; transform-origin: 50% 100%; animation: tFlick 1.3s ease-in-out infinite alternate; }
.dx-mail .ev { transition: transform .8s cubic-bezier(.3, 1.2, .5, 1), opacity .8s; }
.dx-mail[data-phase=mix] .ev { animation: mSh .55s ease-in-out var(--d) infinite alternate; }
@keyframes mSh { from { transform: translate(0, 0) rotate(0); } to { transform: translate(var(--mx), var(--my)) rotate(var(--mr)); } }
.dx-mail:not([data-phase=ready]):not([data-phase=mix]) .ev:not(.pick) { opacity: .3; transform: translateY(30px) scale(.96); }
.dx-mail[data-phase=pick] .ev.pick { transform: translateY(-26px) scale(1.06); }
.dx-mail:is([data-phase=open], [data-phase=reveal], [data-phase=won]) .ev.pick { opacity: 0; transition: opacity .3s; }
.menv { position: absolute; left: 50%; top: 50%; width: 36em; height: 23.5em; translate: -50% -50%; opacity: 0; z-index: 2; perspective: 1600px; transition: opacity .3s, translate 1s cubic-bezier(.3, 0, .2, 1); }
.dx-mail:is([data-phase=open], [data-phase=reveal], [data-phase=won]) .menv { opacity: 1; }
.me-back { position: absolute; inset: 0; border-radius: .4em; background: linear-gradient(180deg, #efe3cd, #e6d6bb); box-shadow: 0 1.4em 3em #4a2f1a55; }
.me-card { position: absolute; left: 5%; right: 5%; top: 7%; height: 86%; border-radius: .25em; z-index: 1; transition: transform 1.1s cubic-bezier(.3, 0, .2, 1); }
.me-front { position: absolute; inset: 0; z-index: 2; border-radius: .4em; background: linear-gradient(180deg, #fbf6ec, #f3eadb); clip-path: polygon(0 34%, 50% 66%, 100% 34%, 100% 100%, 0 100%); box-shadow: inset 0 0 0 .45em #fbf6ec, inset 0 0 0 .55em #d4b06a; }
.me-front::before { content: ""; position: absolute; inset: 0; background: linear-gradient(32deg, transparent 49.6%, #e2d3b6 50%, transparent 50.4%), linear-gradient(-32deg, transparent 49.6%, #e2d3b6 50%, transparent 50.4%); }
.me-flap { position: absolute; left: 0; right: 0; top: 0; height: 66%; z-index: 3; transform-origin: 50% 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.5, 0, .3, 1); }
.me-flap::before { content: ""; position: absolute; inset: 0; backface-visibility: hidden; background: linear-gradient(180deg, #f6eedf, #efe4d0); clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 .2em .3em #4a2f1a33); }
.me-fb { position: absolute; inset: 0; transform: rotateX(180deg); backface-visibility: hidden; background: linear-gradient(0deg, #e9dcc4, #f3eadb); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.me-seal { position: absolute; left: 50%; top: 66%; width: 5.4em; height: 5.4em; translate: -50% -50%; z-index: 4; }
.me-seal b, .me-seal span { position: absolute; inset: 0; }
.me-seal b { border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--sc) 70%, #fff), var(--sc) 55%, color-mix(in srgb, var(--sc) 70%, #000)); box-shadow: 0 .2em .5em #0004, inset 0 0 0 .5em #ffffff18; transition: transform .7s cubic-bezier(.4, 0, .6, 1), opacity .7s; }
.me-seal .l { clip-path: polygon(0 0, 54% 0, 44% 35%, 56% 60%, 46% 100%, 0 100%); } .me-seal .r { clip-path: polygon(54% 0, 100% 0, 100% 100%, 46% 100%, 56% 60%, 44% 35%); }
.me-seal span { display: grid; place-items: center; font: 1.8em serif; color: #ffffffcc; pointer-events: none; transition: opacity .3s; }
.dx-mail[data-phase=open] .me-seal span { animation: mCrack .4s .25s forwards; }
@keyframes mCrack { to { opacity: 0; } }
.dx-mail[data-phase=open] .me-seal .l { animation: mBreakL .8s cubic-bezier(.4, 0, .7, .4) .35s forwards; }
.dx-mail[data-phase=open] .me-seal .r { animation: mBreakR .8s cubic-bezier(.4, 0, .7, .4) .35s forwards; }
@keyframes mBreakL { 0% { transform: none; } 20% { transform: translate(-.2em, 0) rotate(-6deg); } 100% { transform: translate(-3em, 7em) rotate(-70deg); opacity: 0; } }
@keyframes mBreakR { 0% { transform: none; } 20% { transform: translate(.2em, 0) rotate(6deg); } 100% { transform: translate(3em, 7em) rotate(70deg); opacity: 0; } }
.dx-mail:is([data-phase=reveal], [data-phase=won]) .me-seal { opacity: 0; }
.dx-mail[data-phase=open] .me-flap { animation: mFlap .9s cubic-bezier(.5, 0, .3, 1) 1s forwards; }
@keyframes mFlap { 0% { transform: rotateX(0); z-index: 3; } 99% { z-index: 3; } 100% { transform: rotateX(178deg); z-index: 0; } }
.dx-mail[data-phase=open] .me-card { animation: mSlide 1s cubic-bezier(.3, 0, .2, 1) 1.75s forwards; }
@keyframes mSlide { to { transform: translateY(-64%); } }
.dx-mail:is([data-phase=reveal], [data-phase=won]) .me-flap { transform: rotateX(178deg); z-index: 0; }
.dx-mail:is([data-phase=reveal], [data-phase=won]) .me-card { z-index: 5; transform: translateY(-30%) scale(1.12); }
.dx-mail:is([data-phase=reveal], [data-phase=won]) .menv { translate: -50% -38%; }
.dx-mail:is([data-phase=reveal], [data-phase=won]) :is(.me-front, .me-back, .me-flap) { opacity: .0; transition: opacity 1s .2s; }

/* 3 — ตู้กาชาปอง */
.dx-capsule .ring { transform-box: view-box; transform-origin: 800px 330px; animation: jSw 30s linear infinite paused; }
.dx-capsule[data-phase=mix] .ring { animation-play-state: running; }
.dx-capsule .ring.k1 { animation-duration: 38s; animation-direction: reverse; } .dx-capsule .ring.k2 { animation-duration: 46s; }
.dx-capsule[data-phase=mix] .ring { animation-duration: 1.2s; } .dx-capsule[data-phase=mix] .ring.k1 { animation-duration: 1.7s; } .dx-capsule[data-phase=mix] .ring.k2 { animation-duration: 2.2s; }
.dx-capsule .fcap { transform-box: fill-box; animation: cFl 5s ease-in-out var(--d) infinite alternate; }
@keyframes cFl { from { translate: 0 -8px; } to { translate: 0 10px; } }
.dx-capsule .bul { fill: #fff3cf; animation: tTwinkle 1.8s ease-in-out infinite; } .dx-capsule .bul.u1 { animation-delay: -.6s; } .dx-capsule .bul.u2 { animation-delay: -1.2s; }
.dx-capsule:is([data-phase=mix], [data-phase=pick]) .bul { animation-duration: .35s; }
.dx-capsule .mbody { transform-box: view-box; transform-origin: 800px 860px; }
.dx-capsule:is([data-phase=mix], [data-phase=pick]) .mbody { animation: cVib .12s linear infinite alternate; }
@keyframes cVib { from { transform: translateX(-2px) rotate(-.3deg); } to { transform: translateX(2px) rotate(.3deg); } }
.dx-capsule .crank { transform-box: view-box; transform-origin: 800px 660px; }
.dx-capsule[data-phase=pick] .crank { animation: cCrank 1.3s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes cCrank { to { transform: rotate(720deg); } }
.dx-capsule .cpick { opacity: 0; } .dx-capsule .cpm { transform: translate(800px, 700px); }
.dx-capsule[data-phase=pick] .cpick { opacity: 1; }
.dx-capsule[data-phase=pick] .cpm { animation: cDrop .9s cubic-bezier(.5, 0, .5, 1) 1.2s both; }
@keyframes cDrop { 0% { transform: translate(800px, 700px) scale(.8); opacity: 0; } 25% { opacity: 1; } 60% { transform: translate(800px, 775px) scale(1); } 75% { transform: translate(800px, 760px) scale(1); } 100% { transform: translate(800px, 778px) scale(1.1); } }
.dx-capsule[data-phase=pick] .chflap { animation: cFlap .9s ease 1.3s both; }
@keyframes cFlap { 0%, 100% { opacity: 1; } 40% { opacity: .2; } }
.ccap { position: absolute; left: 50%; top: 50%; width: 15em; height: 15em; translate: -50% -50%; opacity: 0; z-index: 2; }
.cc-top, .cc-bot { position: absolute; left: 0; right: 0; height: 50%; }
.cc-top { top: 0; border-radius: 7.5em 7.5em 0 0; background: radial-gradient(circle at 32% 30%, #fff 0, #fbe3e8 18%, #f5c6cf 55%, #e5a3b1 100%); border-bottom: .25em solid #d6b77a; z-index: 3; transform-origin: 10% 100%; }
.cc-bot { bottom: 0; border-radius: 0 0 7.5em 7.5em; background: radial-gradient(circle at 40% 10%, #fffefb 0, #fbf3e4 50%, #e9dcc4 100%); z-index: 2; box-shadow: 0 1.4em 2.4em #4a2f1a33; }
.cc-glow { position: absolute; left: 50%; top: 50%; width: 22em; height: 22em; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, #fff6d6 0, #ffe4a0aa 35%, #ffe4a000 70%); opacity: 0; z-index: 0; }
.cc-card { position: absolute; left: 50%; top: 50%; width: 26em; min-height: 14em; translate: -50% -50%; z-index: 1; scale: .4; opacity: 0; border-radius: .3em; }
.dx-capsule:is([data-phase=open], [data-phase=reveal], [data-phase=won]) .ccap { opacity: 1; }
.dx-capsule:is([data-phase=open], [data-phase=reveal], [data-phase=won]) .cpick { opacity: 0; }
.dx-capsule[data-phase=open] .ccap { animation: cCome 1s cubic-bezier(.3, 0, .2, 1) both, cWob .26s ease-in-out 1s 3 alternate; }
@keyframes cCome { from { translate: -50% 120%; scale: .25; rotate: 220deg; } to { translate: -50% -50%; scale: 1; rotate: 0deg; } }
@keyframes cWob { from { rotate: -7deg; } to { rotate: 7deg; } }
.dx-capsule[data-phase=open] .cc-top { animation: cPop .7s cubic-bezier(.3, 1.4, .5, 1) 1.8s forwards; }
@keyframes cPop { to { transform: translate(-6em, -5em) rotate(-48deg); opacity: .0; } }
.dx-capsule[data-phase=open] .cc-glow { animation: cGlow 1s ease-out 1.8s forwards; }
@keyframes cGlow { 0% { opacity: 0; scale: .2; } 40% { opacity: 1; } 100% { opacity: .75; scale: 1.25; } }
.dx-capsule:is([data-phase=reveal], [data-phase=won]) .cc-top { transform: translate(-6em, -5em) rotate(-48deg); opacity: 0; }
.dx-capsule:is([data-phase=reveal], [data-phase=won]) .cc-glow { opacity: .75; scale: 1.25; }
.dx-capsule:is([data-phase=reveal], [data-phase=won]) .cc-card { animation: cCard 1s cubic-bezier(.2, 1.1, .3, 1) both; }
@keyframes cCard { from { opacity: 0; scale: .35; translate: -50% 0; } to { opacity: 1; scale: 1; translate: -50% -62%; } }
.dx-capsule:is([data-phase=reveal], [data-phase=won]) .cc-bot { transform: translateY(5em) scale(.75); opacity: .9; transition: transform 1s, opacity 1s; }
@media (max-width: 700px) { .dxcap { left: 1em; top: 1em; font-size: .8em; } .jcard, .menv, .ccap { font-size: .8em; } .dx3 #dxname { font-size: 2.6em; } }
@media (prefers-reduced-motion: reduce) { .dx3 *, .dx3 .dxcam { animation: none !important; transition: none !important; } }

/* ===== เกมคำถาม / ใครน่าจะ… — premium pass (25 Nov 2026): lobby card, softer reveal, podium, likely portraits ===== */
/* waiting screen (both question games) */
.st-main.glob { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5em; padding: 2em 6%; text-align: left; }
.gl-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3em; align-items: center; width: min(66em, 100%); padding: 2.6em 3.2em; border-radius: 1.4em; background: linear-gradient(160deg, #fffdf8f5, #f8efe0f2); color: #3a2a22; box-shadow: inset 0 0 0 .5em #fffaf2, inset 0 0 0 .6em #d4b06a, inset 0 0 0 .95em #fffaf2, inset 0 0 0 1.02em #e8d3a6, 0 1.6em 4em #3a22104d; animation: glIn .9s cubic-bezier(.2, .8, .2, 1) both; }
.gl-eye { margin: 0; font: 600 1.15em var(--s); color: #a57b3f; }
.gl-t { margin: .05em 0 .05em; padding-top: .5em; font: 700 4.2em/1.4 var(--f); background: linear-gradient(180deg, #b98b45, #7a5520); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gl-i { margin: 0; font: 500 1.25em/1.6 var(--s); color: #6d5648; max-width: 32em; }
.gl-steps { list-style: none; display: flex; flex-wrap: wrap; gap: .8em 1.6em; margin: 1.4em 0 0; padding: 0; }
.gl-steps li { display: flex; align-items: center; gap: .5em; font: 600 1.2em var(--s); color: #3a2a22; }
.gl-steps i { width: 1.9em; height: 1.9em; border-radius: 50%; display: grid; place-items: center; font: 700 .95em var(--s); font-style: normal; color: #fff; background: linear-gradient(135deg, #d9b26a, #a77c3c); box-shadow: 0 .2em .5em #a77c3c55; }
.gl-r { display: flex; flex-direction: column; align-items: center; gap: .7em; }
.gl-qr { padding: .9em; background: #fff; border-radius: 1em; box-shadow: 0 0 0 .3em #e8d3a6, 0 .8em 2em #3a221033; rotate: 2deg; }
.gl-qr .qrbox { width: 14em; max-width: none; padding: 0; }
.gl-r p { margin: 0; font: 600 1.2em var(--s); color: #3a2a22; }
.gl-join { width: min(66em, 100%); text-align: center; background: #fffaf2d9; backdrop-filter: blur(.4em); border-radius: 1.2em; padding: 1em 1.4em 1.2em; box-shadow: 0 .6em 1.8em #3a221026; animation: glIn .9s .2s cubic-bezier(.2, .8, .2, 1) both; }
.gl-join > p { margin: 0 0 .6em; font: 600 1.3em var(--s); color: #3a2a22; } .gl-join > p b { font: 700 1.6em var(--f); color: #b4405a; }
.gl-join ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5em; }
.gl-join li { display: flex; align-items: center; gap: .4em; padding: .2em .85em .2em .25em; border-radius: 99px; background: #fff; color: #3a2a22; font: 600 1.05em var(--s); box-shadow: 0 .2em .5em #3a22101f; animation: glPop .5s cubic-bezier(.3, 1.5, .5, 1) both; }
.gl-join li i { width: 1.8em; height: 1.8em; border-radius: 50%; display: grid; place-items: center; font: 700 .85em var(--s); font-style: normal; color: #fff; background: #c9a25d; }
.gl-join li.b i { background: #d98a9c; } .gl-join li.g i { background: #7f9f8a; } .gl-join li.more { padding: .2em .85em; color: #a57b3f; }
.gl-join .gl-none { margin: 0; font: 500 1.1em var(--s); color: #6d5648; }
@keyframes glIn { from { opacity: 0; transform: translateY(1em) scale(.98); } }
@keyframes glPop { from { opacity: 0; transform: scale(.6); } }

/* quiz answer reveal: wrong answers fade back (no heavy grey), the right one glows and shimmers */
.st-main.quiz .opt { position: relative; overflow: hidden; transition: opacity .6s, filter .6s, transform .6s; }
.st-main.quiz .opt.dim { filter: saturate(.35); opacity: .45; transform: scale(.97); }
.st-main.quiz .opt.ok { animation: okGlow 1.6s ease-in-out infinite alternate; }
.st-main.quiz .opt.ok::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 35%, #ffffff99 50%, transparent 65%); transform: translateX(-110%); animation: okSweep 2.6s ease-in-out .3s infinite; }
@keyframes okGlow { from { box-shadow: 0 0 1em #ffd67866; } to { box-shadow: 0 0 3em #ffd678dd; } }
@keyframes okSweep { 0% { transform: translateX(-110%); } 55%, 100% { transform: translateX(110%); } }
.st-main.quiz .teams:not(.big) { position: static; width: min(46em, 92%); margin: .4em auto 0; padding: .5em 1.2em; }

/* final standings */
.st-main.quiz:has(.pd-stage) { justify-content: center; padding-top: 1em; padding-bottom: 1em; }
.pd-stage { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; }
.pd-beam { position: absolute; left: 50%; top: -3em; width: 30em; height: 30em; translate: -50% 0; background: radial-gradient(ellipse 30% 60% at 50% 30%, #fff4cf99, #fff4cf00 70%); pointer-events: none; animation: glIn 1.2s 1.6s both; }
.pd-t { position: relative; margin: 0 0 1.3em; font-size: 3.2em; }
.podium2 { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 1.2em; padding-bottom: .8em; }
.podium2::after { content: ""; position: absolute; left: -2em; right: -2em; bottom: 0; height: .8em; border-radius: .4em; background: linear-gradient(180deg, #ecdcc0, #b89566); box-shadow: 0 .6em 1.4em #3a221040; }
.pd { position: relative; z-index: 1; width: 13em; display: flex; flex-direction: column; align-items: center; }
.pd-who { position: relative; display: flex; flex-direction: column; align-items: center; gap: .1em; padding: .4em 1em .6em; margin-bottom: .7em; min-width: 10em; max-width: 13em; background: #fffdf8; color: #3a2a22; border-radius: 1em; box-shadow: 0 .6em 1.4em #3a221033; animation: pdWho .6s cubic-bezier(.3, 1.4, .5, 1) both; }
.pd-who b { font: 700 1.5em/1.45 var(--f); overflow-wrap: anywhere; text-align: center; padding-top: .1em; }
.pd-who em { font: 600 1em var(--s); font-style: normal; color: #a57b3f; }
.pd-ava { width: 2.6em; height: 2.6em; margin-top: -1.8em; border-radius: 50%; display: grid; place-items: center; font: 700 1.3em var(--f); color: #fff; box-shadow: 0 0 0 .2em #fffdf8, 0 .3em .6em #3a221033; }
.pd-crown { position: absolute; top: -3.7em; width: 3.4em; animation: crownDrop .7s cubic-bezier(.3, 1.5, .5, 1) 2.3s both; filter: drop-shadow(0 .2em .3em #3a221040); }
.pd-block { width: 100%; border-radius: .6em .6em 0 0; display: grid; place-items: start center; padding-top: .5em; box-shadow: inset 0 .2em 0 #fff9, inset 0 -1.2em 2em #0000001f; transform-origin: bottom; animation: pdRise .9s cubic-bezier(.3, 1.1, .4, 1) both; }
.pd-block span { font: 800 3.4em/1 var(--f); color: #fff; text-shadow: 0 .05em 0 #0003, 0 -.03em 0 #fff6; }
.pd.p1 .pd-block { height: 11em; background: linear-gradient(180deg, #f6dc95, #d9ab52 60%, #b9863a); animation-delay: 1.2s; } .pd.p1 .pd-ava { background: linear-gradient(135deg, #f1cd78, #b9863a); } .pd.p1 .pd-who { animation-delay: 1.9s; }
.pd.p2 .pd-block { height: 8.4em; background: linear-gradient(180deg, #f1f2f5, #c4c9d1 60%, #9aa1ac); animation-delay: .7s; } .pd.p2 .pd-ava { background: linear-gradient(135deg, #d5d8de, #8f96a1); } .pd.p2 .pd-who { animation-delay: 1.4s; }
.pd.p3 .pd-block { height: 6.6em; background: linear-gradient(180deg, #f3d6c0, #d39b77 60%, #a8704c); animation-delay: .2s; } .pd.p3 .pd-ava { background: linear-gradient(135deg, #e7b896, #a8704c); } .pd.p3 .pd-who { animation-delay: .9s; }
@keyframes pdRise { from { transform: scaleY(0); } }
@keyframes pdWho { from { opacity: 0; transform: translateY(1em) scale(.85); } }
@keyframes crownDrop { from { opacity: 0; transform: translateY(-2em) rotate(-20deg); } }
.lb2 { list-style: none; margin: 1.1em 0 0; padding: 0; width: min(52em, 94%); display: grid; grid-template-columns: 1fr 1fr; gap: .45em .8em; }
.lb2 li { display: flex; align-items: center; gap: .7em; padding: .4em .9em; border-radius: .8em; background: #fffaf2e6; color: #3a2a22; font: 600 1.2em var(--s); text-align: left; box-shadow: 0 .3em .8em #3a22101a; animation: pdWho .5s ease both; animation-delay: calc(2.4s + var(--i) * .08s); }
.lb2 li i { width: 1.8em; height: 1.8em; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 .85em var(--s); font-style: normal; background: #efe2c8; color: #8a6326; }
.lb2 li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lb2 li b { color: #a57b3f; }
.st-main.quiz .teams.big { margin-top: .9em; }

/* ใครน่าจะ… — portraits in floral wreaths, the question on an ivory card, a tug-of-war bar */
.st-main.likely.lk2 { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1em; padding: 1.6em 8%; text-align: center; }
.lk-head { display: flex; flex-direction: column; align-items: center; gap: .2em; }
.lk-head span { font: 600 1.3em var(--s); color: #a57b3f; background: #fffaf2e0; padding: .2em 1.1em; border-radius: 99px; box-shadow: 0 .2em .6em #3a22101a; }
.lk-head small { font: 500 1.05em var(--s); color: var(--st-mut); } .lk-head strong { color: var(--st-ink); }
.lk-q { max-width: 46em; margin: 0; padding: .45em 1.6em .4em; border-radius: 1em; background: linear-gradient(160deg, #fffdf8, #f8efe0); color: #3a2a22; font: 700 2.6em/1.5 var(--f); box-shadow: inset 0 0 0 .16em #fffaf2, inset 0 0 0 .2em #d4b06a, 0 .8em 2em #3a221033; text-wrap: balance; }
.lk-q.long { font-size: 2.1em; } .lk-q.xlong { font-size: 1.8em; }
.lk-row { display: flex; align-items: center; justify-content: center; gap: 4em; }
.lk-f { position: relative; display: flex; flex-direction: column; align-items: center; gap: .45em; width: 16em; transition: opacity .8s, filter .8s, transform .8s; }
.lk-ring { position: relative; width: 13em; height: 13em; display: grid; place-items: center; }
.lk-wr { position: absolute; inset: -.6em; width: calc(100% + 1.2em); height: calc(100% + 1.2em); animation: wrSpin 60s linear infinite; }
.lk-f.groom .lk-wr { animation-direction: reverse; }
.lk-ph { width: 11em; height: 11em; border-radius: 50%; overflow: hidden; display: grid; place-items: center; box-shadow: 0 0 0 .3em #fffdf8, 0 .8em 2em #3a221044; }
.lk-f.bride .lk-ph { background: radial-gradient(circle at 35% 30%, #fbe3e8, #e3a1b0); } .lk-f.groom .lk-ph { background: radial-gradient(circle at 35% 30%, #e3efe6, #93b59f); }
.lk-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lk-ph span { font: 700 5em/1.3 var(--f); color: #fff; text-shadow: 0 .05em .2em #0003; }
.lk-nm { font: 700 1.9em/1.45 var(--f); padding: .02em 1em; border-radius: 99px; background: #fffdf8; color: #3a2a22; box-shadow: 0 .3em .8em #3a221026; }
.lk-pc { font: 800 2.6em/1.25 var(--f); color: var(--st-ink); } .lk-pc small { display: block; font: 500 .4em var(--s); color: var(--st-mut); }
.lk-vs { width: 5.5em; height: 5.5em; flex: none; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff3cf, #e2b867 60%, #b9853e); color: #5a3a12; font: 800 2em var(--f); box-shadow: 0 0 0 .25em #fffdf8aa, 0 .6em 1.6em #3a221044; animation: vsPulse 1.6s ease-in-out infinite alternate; }
.lk-tug { position: relative; display: flex; width: min(44em, 90%); height: 1.1em; border-radius: 99px; box-shadow: 0 .3em .8em #3a221026; }
.lk-tug i { display: block; height: 100%; } .lk-tug i.b { background: linear-gradient(90deg, #e3a1b0, #f3c6cf); border-radius: 99px 0 0 99px; transition: width 1s cubic-bezier(.3, 1, .3, 1); } .lk-tug i.g { flex: 1; background: linear-gradient(90deg, #b8d3c0, #8fb29b); border-radius: 0 99px 99px 0; }
.lk-tug span { position: absolute; top: 50%; translate: -50% -50%; width: 2.1em; height: 2.1em; border-radius: 50%; display: grid; place-items: center; background: #fffdf8; color: #d9526f; font-size: 1.2em; box-shadow: 0 .2em .6em #3a221040; transition: left 1s cubic-bezier(.3, 1, .3, 1); }
.lk-hint { margin: 0; }
.lk2.rev .lk-f.lose { opacity: .5; filter: saturate(.4); transform: scale(.9); }
.lk2.rev .lk-f.win { transform: scale(1.08); }
.lk-f.win .lk-ph { box-shadow: 0 0 0 .3em #fffdf8, 0 0 0 .55em #f1cd78, 0 0 3em #f1cd78; }
.lk-crown { position: absolute; top: -2.5em; width: 4em; z-index: 2; filter: drop-shadow(0 .2em .3em #3a221040); animation: crownDrop .7s cubic-bezier(.3, 1.5, .5, 1) .3s both; }
.lk-ok { font: 600 1.05em var(--s); font-style: normal; color: #fff; background: linear-gradient(90deg, #c99a52, #a77c3c); padding: .2em .9em; border-radius: 99px; animation: pdWho .6s .5s both; }
@keyframes wrSpin { to { rotate: 360deg; } }
@keyframes vsPulse { to { transform: scale(1.08); } }
.lk-done .lk-eye { margin: 0; font: 600 1.2em var(--s); color: #a57b3f; background: #fffaf2e0; padding: .2em 1.1em; border-radius: 99px; }
.lk-done .script { margin: 0; font-size: 3.4em; }
.lk-sum { list-style: none; margin: .3em 0 0; padding: 0; width: min(66em, 96%); display: grid; grid-template-columns: 1fr 1fr; gap: .5em .8em; }
.lk-sum li { display: grid; grid-template-columns: minmax(0, 1fr) 5em auto; align-items: center; gap: .7em; padding: .5em .9em; border-radius: .8em; background: #fffaf2e6; color: #3a2a22; text-align: left; box-shadow: 0 .3em .8em #3a22101a; animation: pdWho .5s ease both; animation-delay: calc(var(--i) * .1s); }
.lk-sum p { margin: 0; font: 600 1.05em/1.45 var(--s); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lk-mini { height: .55em; border-radius: 99px; background: #9dbca8; overflow: hidden; } .lk-mini i { display: block; height: 100%; background: #e3a1b0; }
.lk-sum b { font: 700 1em var(--s); white-space: nowrap; } .lk-sum b.b { color: #c0607a; } .lk-sum b.g { color: #4f7f62; }
.lk-tot { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .2em 1em; margin: .5em 0 0; padding: .4em 1.6em; border-radius: 1.2em; background: #fffaf2e6; color: #3a2a22; font: 600 1.4em var(--s); }
.lk-tot b { font: 800 1.4em var(--f); } .lk-tot .b b { color: #c0607a; } .lk-tot .g b { color: #4f7f62; } .lk-tot i { font-style: normal; color: #d9526f; } .lk-tot small { flex-basis: 100%; text-align: center; font-size: .65em; color: #6d5648; }
@media (max-width: 700px) { .gl-card { grid-template-columns: 1fr; gap: 1.2em; padding: 1.6em; } .gl-t { font-size: 2.8em; } .gl-qr .qrbox { width: 10em; } .lk-row { gap: 1em; } .lk-ring { width: 8em; height: 8em; } .lk-ph { width: 7em; height: 7em; } .lk-f { width: 9em; } .lk-q { font-size: 1.6em; } .lb2, .lk-sum { grid-template-columns: 1fr; } .pd { width: 8em; } }
@media (prefers-reduced-motion: reduce) { .glob *, .pd-stage *, .lk2 *, .st-main.quiz .opt { animation: none !important; } }
.st-main.quiz .teams.big { margin-top: .6em; padding: .35em 1.2em; } .st-main.quiz .teams.big .tm b { font-size: 2em; }
/* projector control bar hides itself after 3 s without the mouse (it no longer sits on top of the content) */
body.ctl-idle .st-ctl { opacity: 0; pointer-events: none; transition: opacity .8s; }
/* sidebar without a couple photo: initials in a floral wreath */
.st-side .avatar.big.sb-wr { position: relative; overflow: visible; background: radial-gradient(circle at 35% 30%, #fffdf8, #f3e3cf); box-shadow: 0 0 0 .25em #fffdf8, 0 .8em 2em #3a221033; border: 0; }
.sb-wr .lk-wr { position: absolute; inset: -.7em; width: calc(100% + 1.4em); height: calc(100% + 1.4em); animation: wrSpin 80s linear infinite; }
.sb-mono { font: 700 2.6em/1.4 var(--f); color: #8a6326; display: flex; align-items: baseline; gap: .12em; }
.sb-mono i { font-style: normal; font-size: .6em; color: #c9a25d; }

/* Thai tone marks / floating vowels sit above the line box: single-line cut-off text (ellipsis) gets a roomier line plus matching padding so nothing is clipped */
.lbp-card .nm, .lb2 li span, .ptile figcaption { line-height: 1.6; padding-block: .18em; margin-block: -.18em; }
.lk-sum p, .wnote p { line-height: 1.55; padding-top: .2em; margin-top: -.2em; }
.gl-t { padding-bottom: .12em; }
.opt .cn { position: absolute; top: .3em; right: .9em; font-size: .55em; white-space: nowrap; opacity: .85; }

/* time is up and the host has not revealed yet: say so on the projector and nudge the host's reveal button */
.ring.up b { font-size: 1.15em; color: #b3402f; line-height: 1.2; }
.ring.up .rp { stroke: #b3402f; }
.lbp-card.none { text-align: center; } .lbp-card.none p { margin: .2em 0 0; color: #fff3d6cc; font-size: 1.1em; }
.opt .tx { flex: 1 1 auto; min-width: 0; }

/* ranking popup: the old score shows first, "+gain" pops in, then the score counts up, then the rows slide to their new places */
@keyframes lbCount { from { --n: var(--from); } to { --n: var(--to); } }
.cprop .lbp-card .pt { --n: var(--to); counter-reset: n var(--n); animation: lbCount 1s cubic-bezier(.2, .7, .3, 1) 3.9s both; }
.cprop .lbp-card .pt .fb { display: none; }
.cprop .lbp-card .pt::after { content: counter(n); }
@media (prefers-reduced-motion: reduce) { .cprop .lbp-card .pt { animation: none; } }

/* jar draw: the paper crease must not run through the winner's name once the card is open */
.dx-jar:is([data-phase=reveal], [data-phase=won]) .jc-in::after { opacity: 0; transition: opacity .5s; }
