.voting-page{background:#102822;color:#f6eedf}.vote-hero{position:relative;text-align:center;padding:160px 20px 70px;background:radial-gradient(ellipse at 50% 55%,#49614466,transparent 60%),linear-gradient(#102822b8,#102822),url('../images/hero-silk-background.webp') center/cover}.vote-hero h1{font-family:var(--f-display,var(--f-ui));font-size:clamp(2.6rem,6vw,5rem);line-height:1.3;margin:14px 0 20px;font-weight:400}.vote-hero h1 em{color:#e3c99b;font-style:normal}.vote-lead{line-height:1.9;color:#d5dccf}.vote-crest{display:block;margin:auto;width:90px;color:#e3c99b}.vote-crest svg{width:100%;height:65px}.vote-status{display:inline-flex;align-items:center;gap:9px;border:1px solid #e3c99b44;border-radius:30px;padding:8px 18px;margin:25px 0 0;font-size:.85rem}.vote-dot{width:6px;height:6px;border-radius:50%;background:#e3c99b}.vote-stats{display:flex;justify-content:center;margin:32px auto;max-width:650px}.vote-stats>div{flex:1;border-right:1px solid #e3c99b33;padding:0 12px}.vote-stats>div:last-child{border:0}.vote-stats strong{display:block;color:#e3c99b;font-size:clamp(1.8rem,4vw,2.8rem);font-weight:400}.vote-stats span{font-size:.78rem;color:#becbbf}.vote-content{padding-block:50px 85px}.vote-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin:35px 0 28px;scroll-margin-top:110px}.vote-heading h2,.vote-guide h2{font-size:clamp(1.5rem,3vw,2.2rem);font-weight:400}.vote-heading>span{font-size:.75rem;color:#d8c6a1}.vote-podium{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;align-items:start}.vote-rank{text-align:center;border:1px solid #d6b67533;background:linear-gradient(160deg,#e3c99b10,transparent);padding:18px 10px 24px;border-radius:100px 100px 12px 12px;text-decoration:none;display:grid;gap:12px}.vote-rank:first-child{border-color:#e3c99b88;background:linear-gradient(150deg,#e3c99b25,transparent)}.vote-rank__no{color:#e3c99b;font-size:1.7rem}.vote-rank__portrait{height:160px;display:block}.vote-rank__portrait img{width:100%;height:100%;object-fit:contain}.vote-rank strong{font-weight:500;font-size:.9rem}.vote-rank>span:last-child{font-size:.8rem;color:#dac79e}.vote-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}.vote-card{border:1px solid #e3c99b33;border-radius:140px 140px 14px 14px;overflow:hidden;background:linear-gradient(145deg,#29463b,#172e28);scroll-margin-top:110px}.vote-card[hidden]{display:none}.vote-card__image{display:block;position:relative;height:380px;background:radial-gradient(ellipse at 50% 60%,#d5b87e26,transparent 70%);overflow:hidden}.vote-card__image img{width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 10px 16px #0005);transition:transform .5s}.vote-card__image:hover img{transform:scale(1.025)}.vote-number{position:absolute;bottom:12px;left:20px;font-size:2rem;color:#e3c99b}.vote-card__body{padding:24px;text-align:center}.vote-card__body .kicker{font-size:.7rem;min-height:1.5em}.vote-card h3{font-size:1.2rem;font-weight:500;margin:10px 0}.vote-card__score{color:#bfcbbc;font-size:.8rem;margin:20px 0}.vote-card__score strong{color:#e3c99b;font-size:1.7rem;font-weight:400;margin-right:6px}.vote-card .btn{width:100%}.vote-profile-link{display:flex;align-items:center;justify-content:center;gap:9px;font-size:.8rem;margin-top:17px;color:#d7dfd2}.vote-profile-link svg{width:16px}.vote-search input{border:1px solid #e3c99b44;background:#ffffff08;color:#fff;padding:13px 18px;border-radius:30px;max-width:100%;font:inherit}.vote-search input::placeholder{color:#c2cbbb}.vote-wait{text-align:center;border:1px solid #e3c99b26;border-radius:20px;padding:45px 25px;color:#c5d1c4}.vote-wait svg{width:65px;height:65px;color:#e3c99b;margin:auto}.vote-wait h3{color:#e8d6b2;font-weight:400;margin:14px}.vote-guide{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin-top:80px;padding:45px 0;border-top:1px solid #e3c99b33}.vote-guide ol{list-style:none;display:grid;gap:25px;padding:0}.vote-guide li{display:flex;gap:22px}.vote-guide b{color:#c7a46b;font-size:1.3rem;font-weight:400}.vote-guide small{display:block;color:#b7c5b8;margin-top:5px}.vote-rules{padding:20px 0;border-block:1px solid #e3c99b33;line-height:1.9}.vote-rules summary{cursor:pointer;color:#e3c99b}.voting-page .fine{color:#b7c5b8}.vote-dialog{background:#19382e;color:#f6eedf;border:1px solid #cfb47d77;border-radius:22px;padding:35px;max-width:480px;width:calc(100% - 30px);max-height:90dvh;box-shadow:0 30px 100px #0008}.vote-dialog::backdrop{background:#051c17c9;backdrop-filter:blur(7px)}.vote-dialog__close{position:absolute;right:15px;top:10px;font-size:2rem}.vote-dialog h2{font-size:1.8rem;font-weight:400;margin:15px 0}.vote-dialog form{display:grid;gap:16px}.vote-dialog input[type=number]{width:100%;padding:12px;color:#fff;background:#ffffff0a;border:1px solid #e3c99b55;border-radius:9px;font:inherit}.vote-packages{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.vote-packages button{padding:12px 5px;background:#ffffff06;color:#e3c99b;border:1px solid #e3c99b44;border-radius:10px;font:inherit;cursor:pointer}.vote-packages button[aria-pressed=true]{background:#e3c99b;color:#19382e}.vote-packages small{display:block;font-size:.7rem}.vote-amount{font-size:1.1rem}.vote-amount strong{font-size:2rem;color:#e3c99b}.vote-accept{display:flex;align-items:start;gap:10px;font-size:.8rem}.vote-dialog__pending,.vote-notice,.vote-receipt{padding:25px;border:1px solid #e3c99b44;border-radius:14px;margin:20px 0;line-height:1.9}.vote-dialog__pending p{font-size:.9rem;color:#c3cfbf}.vote-entry{padding:32px;border:1px solid #c7a46b55;border-radius:18px;margin-block:30px;display:flex;gap:24px;align-items:center;justify-content:space-between;background:linear-gradient(110deg,#29463b,#132d26);color:#f6eedf}.vote-entry h2{font-size:1.5rem;font-weight:400;color:#e3c99b}.vote-entry p{margin:8px 0}.vote-entry .btn{flex-shrink:0}@media(max-width:900px){.vote-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.vote-podium{grid-template-columns:repeat(3,1fr)}.vote-rank__portrait{height:130px}.vote-card__image{height:330px}}@media(max-width:600px){.vote-hero{padding:130px 12px 45px}.vote-content{padding-top:20px}.vote-heading{align-items:start;flex-direction:column;gap:15px}.vote-search,.vote-search input{width:100%}.vote-grid{gap:14px}.vote-card{border-radius:80px 80px 12px 12px}.vote-card__image{height:250px}.vote-card__body{padding:15px 10px}.vote-card h3{font-size:1rem}.vote-card .btn{font-size:.78rem;padding:12px 7px}.vote-card__body .kicker{letter-spacing:.03em;font-size:.6rem}.vote-profile-link{font-size:.7rem}.vote-guide{grid-template-columns:1fr;gap:20px;margin-top:45px}.vote-podium{grid-template-columns:repeat(2,1fr)}.vote-rank:first-child{grid-column:1/-1;width:65%;justify-self:center}.vote-entry{flex-direction:column;align-items:start}.vote-dialog{padding:30px 22px}}@media(prefers-reduced-motion:reduce){.vote-card__image img{transition:none}}

.vote-demo-banner { position:relative; z-index:2; padding:95px 20px 18px; text-align:center; background:#e3c99b; color:#17382e; font-size:.85rem; }
.vote-demo-banner a { margin-left:14px; text-decoration:underline; }.vote-demo-banner+.vote-hero { padding-top:60px; }
.vote-window { margin:18px 0 0; color:#e3c99b; font-size:.95rem; }
/* Quiet portrait cards, intentionally simpler than the royal throne. */
.vote-card { border-radius:18px; }.vote-card__image { margin:14px 14px 0; border-radius:9px; border:1px solid #e3c99b22; background:radial-gradient(ellipse at 50% 45%,#c7a46b1c,transparent 75%),#142d26; }
.vote-card__image img { padding:18px 15px 0; }.vote-card__body { padding-top:20px; }
.vote-card__image img[src*="queen-2542"] { object-position:75% bottom; }
[data-demo-message]:not(:empty) { padding:14px; background:#ffffff0a; border-radius:9px; color:#e3c99b; }
@media(max-width:600px){.vote-card{border-radius:12px}.vote-card__image{margin:8px 8px 0}.vote-card__image img{padding:12px 6px 0}.vote-demo-banner{padding-top:85px}}

/* Framed portraits on the supplied silk stage. */
.vote-grid { gap:30px; }.vote-card{border-radius:150px 150px 18px 18px;background:linear-gradient(180deg,#263e30,#132a22);border-color:#d9bd8455;box-shadow:0 18px 35px #0003}.vote-card__image{width:100%;height:auto;aspect-ratio:2/3;margin:0;border:0;border-radius:0;cursor:pointer;isolation:isolate;background:linear-gradient(#18322833,#18322855),url('../images/royal-throne-background.webp') center/cover;color:#e3c99b;position:relative;display:block;padding:0;}.vote-card__image>img:not(.vote-portrait-frame){position:absolute;left:50%;transform:translateX(-50%);top:21%;height:65%;width:auto;max-width:90%;padding:0;z-index:2;object-fit:contain;filter:drop-shadow(0 8px 8px #0007)}.vote-card__image>img.vote-portrait-frame{position:absolute;inset:0;width:100%;height:100%;padding:0;object-fit:contain;z-index:1;filter:drop-shadow(0 10px 8px #0006)}.vote-card__image:hover img:not(.vote-portrait-frame){transform:translateX(-50%)}.vote-card__image>img[src*="queen-2542"]:not(.vote-portrait-frame){left:42%}.vote-card__image>img[src*="queen-2550"]:not(.vote-portrait-frame){left:45%}.vote-image-hint{position:absolute;bottom:3%;left:0;right:0;text-align:center;font-size:.72rem;z-index:4;color:#f4e4c0;text-shadow:0 2px 6px #000}.vote-number{z-index:5}.vote-card__body{padding-top:22px;border-top:1px solid #d9bd8422}.vote-podium{padding:25px;border-radius:20px;background:linear-gradient(#112c23cc,#112c23e8),url('../images/royal-throne-background.webp') center/cover;border:1px solid #d9bd8433}.vote-rank__portrait{background:url('../images/royal-honor-frame.webp') center/contain no-repeat;height:190px}.vote-rank__portrait>img{padding:35px 15px 25px}.vote-rank{border-radius:100px 100px 12px 12px}
.queen-profile{width:min(1050px,calc(100% - 28px));max-height:92dvh;padding:0;border:1px solid #dfc39188;border-radius:22px;color:#f3ecdc;background:#142e26;box-shadow:0 40px 100px #0009}.queen-profile::backdrop{background:#031c16cc;backdrop-filter:blur(9px)}.queen-profile__close{position:absolute;right:16px;top:10px;z-index:6;border:1px solid #e3c99b55;border-radius:50%;width:40px;height:40px;background:#142e26;color:#e3c99b;font-size:26px;cursor:pointer}.queen-profile__layout{display:grid;grid-template-columns:.9fr 1.1fr}.queen-profile__art{position:sticky;top:0;align-self:start;aspect-ratio:2/3;background:linear-gradient(#19342933,#19342988),url('../images/royal-throne-background.webp') center/cover}.queen-profile__frame{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:1}.queen-profile__portrait{position:absolute;left:50%;transform:translateX(-50%);top:21%;height:65%;width:auto;max-width:90%;object-fit:contain;z-index:2;filter:drop-shadow(0 10px 10px #0006)}.queen-profile__copy{padding:45px 36px 35px}.queen-profile__nickname{font-size:2.7rem;color:#e3c99b;margin:16px 0 4px;font-weight:300}.queen-profile h2{font-size:1.45rem;font-weight:400;margin:12px 0}.queen-profile__note{font-size:.72rem;color:#b4c4b4;line-height:1.7}.queen-profile__facts{display:flex;flex-wrap:wrap;gap:25px;margin:25px 0;padding:20px 0;border-block:1px solid #e3c99b33}.queen-profile dt{font-size:.72rem;color:#afc1af}.queen-profile dd{margin:6px 0 0;font-size:1.15rem;color:#e3c99b}.queen-profile h3{font-size:.7rem;color:#d5bd91;letter-spacing:.04em;font-weight:500;margin:22px 0 9px}.queen-profile section p,.queen-profile blockquote{font-size:.9rem;line-height:1.9;color:#d6dfce;margin:0}.queen-profile__dream{padding:0 0 25px}.queen-profile blockquote{border-left:2px solid #c7a46b88;padding-left:18px}.queen-profile [hidden]{display:none!important}
@media(max-width:700px){.vote-grid{gap:14px}.vote-podium{padding:15px}.vote-rank__portrait{height:155px}.vote-rank__portrait>img{padding:28px 10px 20px}.vote-card{border-radius:85px 85px 14px 14px}.queen-profile__layout{grid-template-columns:1fr}.queen-profile__art{position:relative;width:min(80%,330px);margin:auto}.queen-profile__copy{padding:20px 24px 28px}.queen-profile__nickname{font-size:2.2rem}.vote-image-hint{font-size:.6rem}}

/* One leading portrait and four compact leaderboard rows. */
.vote-podium{display:grid;grid-template-columns:minmax(250px,.9fr) minmax(0,1.2fr);grid-template-rows:repeat(4,110px);gap:0 35px;padding:28px 36px;background:radial-gradient(ellipse at 15% 40%,#b6955730,transparent 55%),linear-gradient(125deg,#264438,#10261f);border:1px solid #d9bd8444;border-radius:20px}
.vote-podium .vote-rank{grid-column:2;display:grid;grid-template-columns:30px 65px 1fr auto;align-items:center;gap:14px;border:0;border-bottom:1px solid #d9bd8433;border-radius:0;background:none;padding:10px 0;text-align:left;margin:0;width:auto;min-width:0}.vote-podium .vote-rank:first-child{grid-column:1;grid-row:1/5;display:flex;flex-direction:column;justify-content:center;text-align:center;border:1px solid #d9bd8455;border-radius:130px 130px 12px 12px;background:radial-gradient(ellipse at 50% 40%,#e3c99b15,transparent 70%);padding:20px}.vote-podium .vote-rank__portrait{width:65px;height:85px;background:none}.vote-podium .vote-rank__portrait img{padding:0;object-fit:contain}.vote-podium .vote-rank:first-child .vote-rank__portrait{width:100%;height:245px;background:none}.vote-podium .vote-rank__no{font-size:1.05rem;color:#c7ad79}.vote-podium .vote-rank:first-child .vote-rank__no{font-size:1.8rem}.vote-podium .vote-rank strong{font-size:.86rem;line-height:1.7}.vote-podium .vote-rank>span:last-child{white-space:nowrap;font-size:.75rem}.vote-podium .vote-rank:first-child>span:last-child{font-size:1.2rem;color:#e3c99b}
/* Slim double gold frame, independent of the royal throne artwork. */
.vote-card{border-radius:18px;background:#18362b;box-shadow:0 14px 30px #0003}.vote-card__image{border-radius:15px 15px 0 0;background:linear-gradient(#16302555,#16302588),url('../images/royal-throne-background.webp') center/cover}.vote-card__image .vote-portrait-frame{display:none!important}.vote-card__image::before{content:'';position:absolute;inset:14px 16px 20px;border:1px solid #e9cf96aa;border-radius:48% 48% 4px 4px;box-shadow:inset 0 0 0 5px #182d2444,0 0 0 4px #d3b77d22;z-index:1;pointer-events:none}.vote-card__image::after{content:'';position:absolute;top:13px;left:calc(50% - 12px);width:24px;height:24px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ead5aa' d='M12 3c.6 4.6 2.4 6.4 7 7-4.6.6-6.4 2.4-7 7-.6-4.6-2.4-6.4-7-7 4.6-.6 6.4-2.4 7-7z'/%3E%3C/svg%3E") center/17px no-repeat,#304633;z-index:3}.vote-card__image>img:not(.vote-portrait-frame){top:17%;height:72%;max-width:88%}.vote-image-hint{bottom:8%;left:auto;right:25px;padding:5px 10px;background:#142c23dd;border:1px solid #e3c99b44;border-radius:20px;font-size:.65rem}.vote-card__body{padding:19px 22px 22px;text-align:left}.vote-card h3{font-size:1.02rem;font-weight:400;line-height:1.7;min-height:3.4em;margin:0 0 16px;color:#f4ebd9}.vote-card__actions{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #d9bd8426;padding-top:15px}.vote-card__score{margin:0;font-size:.67rem;white-space:nowrap}.vote-card__score strong{display:block;font-size:1.55rem;line-height:1.35}.vote-card .vote-card__actions .btn{width:auto;min-height:42px;padding:11px 16px;font-size:.8rem;border-radius:30px;white-space:nowrap}
/* Portrait-sized profile: scroll the information, keep the image visible. */
.queen-profile{width:min(760px,calc(100% - 28px));max-height:560px;overflow:hidden;border-radius:18px}.queen-profile__layout{grid-template-columns:280px minmax(0,1fr);align-items:start}.queen-profile__art{position:relative;top:auto;width:280px;aspect-ratio:2/3;margin:35px 0 25px 12px;background:radial-gradient(ellipse,#d6b98018,transparent 70%)}.queen-profile__frame{display:none}.queen-profile__art::before{content:'';position:absolute;inset:12px;border:1px solid #d9bd8488;border-radius:130px 130px 6px 6px;box-shadow:0 0 0 4px #d9bd8418}.queen-profile__portrait{top:14%;height:76%}.queen-profile__copy{padding:36px 28px 28px;max-height:550px;overflow-y:auto;scrollbar-width:thin}.queen-profile__nickname{font-size:2.1rem;margin-top:12px}.queen-profile h2{font-size:1.15rem}.queen-profile__facts{gap:17px;margin:18px 0;padding:15px 0}.queen-profile dd{font-size:1rem}.queen-profile__copy .kicker{font-size:.6rem}.queen-profile h3{margin-top:18px}.queen-profile section p,.queen-profile blockquote{font-size:.8rem}.queen-profile__note{font-size:.65rem}.queen-profile__close{right:9px;top:8px;width:30px;height:30px;font-size:22px}
@media(max-width:900px){.vote-podium{padding:20px;gap:0 20px;grid-template-columns:.8fr 1.2fr}.vote-podium .vote-rank{grid-template-columns:22px 48px 1fr;gap:10px}.vote-podium .vote-rank>span:last-child{grid-column:3;margin-top:-28px}.vote-podium .vote-rank__portrait{width:48px}.vote-podium .vote-rank strong{align-self:start;margin-top:10px}.vote-podium .vote-rank:first-child strong{align-self:auto;margin:0}.vote-podium .vote-rank:first-child>span:last-child{margin:0}.vote-card__body{padding:16px}.vote-card .vote-card__actions .btn{padding:10px 12px;font-size:.72rem}}
@media(max-width:600px){.vote-podium{grid-template-columns:1fr;grid-template-rows:auto;gap:0;padding:18px}.vote-podium .vote-rank:first-child{grid-column:1;grid-row:auto;width:100%;border-radius:100px 100px 12px 12px;margin-bottom:15px;gap:10px}.vote-podium .vote-rank:first-child .vote-rank__portrait{height:220px}.vote-podium .vote-rank{grid-column:1;grid-template-columns:25px 55px 1fr auto;min-height:90px;gap:12px}.vote-podium .vote-rank strong{align-self:center;margin:0;font-size:.8rem}.vote-podium .vote-rank>span:last-child{grid-column:4;margin:0;font-size:.7rem}.vote-podium .vote-rank__portrait{height:70px}.vote-card__actions{flex-direction:column;align-items:stretch;gap:10px}.vote-card__score strong{display:inline;font-size:1.35rem}.vote-card .vote-card__actions .btn{width:100%}.vote-card h3{font-size:.86rem}.vote-card__body{padding:13px}.vote-image-hint{right:18px;font-size:.55rem;padding:4px 7px}.queen-profile{width:min(390px,calc(100% - 24px));max-height:88dvh;overflow-y:auto}.queen-profile__layout{grid-template-columns:1fr}.queen-profile__art{width:180px;margin:22px auto 0}.queen-profile__copy{max-height:none;overflow:visible;padding:12px 24px 24px}.queen-profile__nickname{margin-top:0;font-size:1.8rem}.queen-profile__copy>.kicker{display:none}.queen-profile__facts{margin-top:15px}}

/* User-supplied Top 5 frame, shared by initial and live leaderboard renders. */
.vote-podium .vote-rank .vote-rank__portrait {
 position:relative;isolation:isolate;flex:none;width:60px;height:90px;
 background:radial-gradient(ellipse at 50% 60%,#bca66b22,transparent 65%);
}
.vote-podium .vote-rank .vote-rank__portrait::after {
 content:'';position:absolute;inset:0;z-index:3;pointer-events:none;
 background:url('../images/vote-top5-frame.webp') center/100% 100% no-repeat;
 filter:drop-shadow(0 4px 5px #0005);
}
.vote-podium .vote-rank .vote-rank__portrait>img {
 position:absolute;left:0;top:24%;width:100%;height:69%;padding:0;object-fit:contain;object-position:center bottom;z-index:2;
}
.vote-podium .vote-rank .vote-rank__portrait>img[src*="queen-2542"] { left:-12%; }
.vote-podium .vote-rank .vote-rank__portrait>img[src*="queen-2550"] { left:-6%; }
.vote-podium .vote-rank:first-child .vote-rank__portrait { width:190px;height:285px;max-width:100%; }
@media(max-width:900px) and (min-width:601px){.vote-podium .vote-rank .vote-rank__portrait{width:48px;height:72px}.vote-podium .vote-rank:first-child .vote-rank__portrait{width:170px;height:255px}}
@media(max-width:600px){.vote-podium .vote-rank .vote-rank__portrait{width:50px;height:75px}.vote-podium .vote-rank:first-child .vote-rank__portrait{width:180px;height:270px}}

/* Supplied voting-card artwork replaces the temporary CSS frame. */
.vote-card__image::before,.vote-card__image::after{content:none;display:none}
.vote-card__image>img.vote-portrait-frame{display:block!important;position:absolute;inset:0;width:100%;height:100%;padding:0;object-fit:contain;z-index:3;pointer-events:none;filter:drop-shadow(0 5px 6px #0005)}
.vote-card__image>img:not(.vote-portrait-frame){top:16%;height:78%;max-width:88%;z-index:2}
.vote-card__image{border-radius:15px 15px 0 0}
.vote-image-hint{z-index:4;bottom:5%;right:12%;font-size:.65rem}
@media(max-width:600px){.vote-image-hint{font-size:.55rem;right:12%;padding:4px 7px}}

.vote-profile-text{display:block;margin:0 0 10px auto;border:0;background:none;padding:3px 0;color:#ccb78d;font:inherit;font-size:.72rem;cursor:pointer}.vote-profile-text:hover{text-decoration:underline}
.vote-card__image>img:not(.vote-portrait-frame){animation:vote-portrait-breathe 7s ease-in-out infinite alternate;translate:var(--portrait-x,0px) var(--portrait-y,0px);transition:translate .45s ease-out;transform-origin:center bottom}.vote-card:nth-child(2n) .vote-card__image>img:not(.vote-portrait-frame){animation-delay:-3s}.vote-card__image>img.vote-portrait-frame{animation:none!important;translate:none!important;transform:none!important;transition:none!important}.vote-card__image:hover>img:not(.vote-portrait-frame){transform:translateX(-50%)}
@keyframes vote-portrait-breathe{from{transform:translateX(-50%) scale(1)}to{transform:translateX(-50%) scale(1.015)}}
.motion-off .vote-card__image>img:not(.vote-portrait-frame){animation:none;translate:none}
@media(prefers-reduced-motion:reduce){.vote-card__image>img:not(.vote-portrait-frame){animation:none;translate:none;transition:none}}
.vote-dialog{width:min(440px,calc(100% - 24px));padding:28px;max-height:92dvh;background:radial-gradient(ellipse at 100% 0,#c7a46b18,transparent 55%),#17352b;border-radius:20px}.vote-dialog__heading .kicker{font-size:.6rem;letter-spacing:.14em;margin-bottom:10px}.vote-dialog__heading h2{font-size:1.85rem;line-height:1.35;margin:8px 0 20px}.vote-dialog__heading h2 span{color:#e3c99b}.vote-dialog__close{right:12px;top:12px;width:30px;height:30px;font-size:24px}.vote-recipient{display:flex;align-items:center;gap:14px;padding:12px;margin-bottom:22px;border:1px solid #e3c99b33;border-radius:12px;background:#ffffff04}.vote-recipient>img{width:52px;height:65px;object-fit:contain;background:#ffffff05;border-radius:8px}.vote-recipient small{color:#aebfac;font-size:.65rem}.vote-recipient p{font-size:.9rem;line-height:1.6;margin:5px 0 0}.vote-dialog form{gap:13px}.vote-packages{gap:8px}.vote-packages button{font-size:1.15rem;padding:12px 4px;border-radius:10px}.vote-packages small{font-size:.6rem;margin-top:4px}.vote-quantity-label{font-size:.75rem;color:#bdcbb7}.vote-stepper{display:grid;grid-template-columns:46px 1fr 46px;border:1px solid #e3c99b44;border-radius:10px;overflow:hidden}.vote-stepper button{background:#ffffff08;color:#e3c99b;font-size:1.35rem;border:0;cursor:pointer}.vote-dialog .vote-stepper input{border:0;background:transparent;text-align:center;font-size:1.25rem;padding:9px;appearance:textfield}.vote-stepper input::-webkit-inner-spin-button{appearance:none}.vote-dialog .vote-amount{display:flex;align-items:center;gap:8px;justify-content:space-between;padding-top:12px;border-top:1px solid #e3c99b33;margin:2px 0;font-size:.8rem}.vote-amount strong{margin-left:auto;font-size:1.8rem}.vote-dialog form>.fine{font-size:.65rem;margin:0 0 4px;line-height:1.7}.vote-accept{font-size:.7rem;line-height:1.7;padding-block:5px}.vote-accept input{width:18px;height:18px;accent-color:#d6bc88;flex:none}.vote-dialog form>.btn{width:100%;border-radius:12px;padding:14px}.vote-dialog [data-demo-message]:empty{display:none}
@media(max-width:600px){.vote-dialog{padding:24px 20px}.vote-dialog__heading h2{font-size:1.65rem}.vote-recipient{margin-bottom:18px}.vote-profile-text{font-size:.65rem}}

/* Five-place royal stage; DOM order stays ranked for score refreshes. */
.vote-podium{display:grid;grid-template-columns:.85fr 1fr 1.3fr 1fr .85fr;grid-template-rows:auto;align-items:end;gap:12px;padding:45px 20px 28px;background:linear-gradient(#10291f55,#10291fcc),url('../images/royal-throne-background.webp') center/cover;border-radius:22px;overflow:hidden}
.vote-podium .vote-rank,.vote-podium .vote-rank:first-child{grid-row:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;text-align:center;gap:10px;border:0;border-radius:0;background:none;padding:0;margin:0;width:100%;min-width:0;box-shadow:none}
.vote-podium .vote-rank:nth-child(1){grid-column:3}.vote-podium .vote-rank:nth-child(2){grid-column:2}.vote-podium .vote-rank:nth-child(3){grid-column:4}.vote-podium .vote-rank:nth-child(4){grid-column:1}.vote-podium .vote-rank:nth-child(5){grid-column:5}
.vote-podium .vote-rank .vote-rank__portrait{width:100%;height:auto;aspect-ratio:2/3;max-width:180px}.vote-podium .vote-rank:first-child .vote-rank__portrait{width:100%;height:auto;max-width:250px;aspect-ratio:2/3;filter:drop-shadow(0 0 20px #e3c99b33)}
.vote-podium .vote-rank:nth-child(n+4) .vote-rank__portrait{max-width:145px}.vote-podium .vote-rank .vote-rank__no{font-size:1.25rem;line-height:1;color:#e3c99b;order:0;display:flex;flex-direction:column;align-items:center;gap:8px}.vote-podium .vote-rank .vote-rank__portrait{order:1}.vote-podium .vote-rank>strong{order:2;font-size:.78rem;line-height:1.7;min-height:3.4em;align-self:auto;margin:0;color:#f8eedb}.vote-podium .vote-rank>span:last-child{order:3;grid-column:auto;margin:0;font-size:.7rem;line-height:1.4;white-space:normal;color:#eee1c5}.vote-podium .vote-rank>span:last-child b{display:block;font-size:clamp(1.6rem,2.8vw,2.7rem);font-weight:600;letter-spacing:-.03em;color:#ffe1a0;text-shadow:0 2px 10px #0009;font-variant-numeric:tabular-nums}
.vote-podium .vote-rank:first-child .vote-rank__no::before{content:'ธิดาขวัญใจมหาชน';font-size:clamp(.7rem,1.2vw,1rem);line-height:1.5;white-space:nowrap;letter-spacing:.04em;color:#ffe5af;padding:7px 16px;border-block:1px solid #e3c99b88;text-shadow:0 2px 8px #000}
.vote-podium .vote-rank:first-child>span:last-child b{font-size:clamp(2.3rem,4vw,3.6rem);color:#fff0c8}.vote-podium .vote-rank:first-child>span:last-child{font-size:.8rem}.vote-podium .vote-rank:first-child>strong{font-size:.9rem}
.vote-card__score,.vote-card__actions .vote-card__score{font-size:.72rem;color:#d9c9a5}.vote-card__score strong,.vote-card__actions .vote-card__score strong{display:block;font-size:clamp(2rem,3vw,2.7rem);font-weight:600;color:#ffe4aa;line-height:1.15;margin-bottom:5px;font-variant-numeric:tabular-nums;letter-spacing:-.03em;text-shadow:0 2px 8px #0004}
.vote-stats [data-vote-total]{font-size:clamp(2.8rem,5vw,4rem);color:#ffe4aa;font-weight:500;font-variant-numeric:tabular-nums}.vote-stats>div{align-self:center}
.vote-dialog .vote-packages button{font-size:1.45rem;font-weight:500}.vote-dialog .vote-stepper input{font-size:1.7rem;font-weight:500;color:#ffe4aa}.vote-dialog .vote-amount strong{font-size:2.1rem;font-weight:600;color:#ffe4aa}
@media(max-width:600px){.vote-podium{grid-template-columns:.85fr 1fr 1.3fr 1fr .85fr;gap:5px;padding:28px 7px 20px;margin-inline:-10px;border-radius:14px}.vote-podium .vote-rank,.vote-podium .vote-rank:first-child{grid-row:1;min-height:0;gap:7px}.vote-podium .vote-rank .vote-rank__portrait,.vote-podium .vote-rank:first-child .vote-rank__portrait{height:auto;width:100%;aspect-ratio:2/3}.vote-podium .vote-rank>strong,.vote-podium .vote-rank:first-child>strong{font-size:.52rem;line-height:1.65;min-height:5em;overflow-wrap:anywhere}.vote-podium .vote-rank .vote-rank__no{font-size:.85rem}.vote-podium .vote-rank:first-child .vote-rank__no::before{font-size:.56rem;padding:5px 3px;letter-spacing:0;white-space:normal;max-width:100%}.vote-podium .vote-rank>span:last-child{font-size:.5rem}.vote-podium .vote-rank>span:last-child b{font-size:clamp(.95rem,4vw,1.4rem)}.vote-podium .vote-rank:first-child>span:last-child b{font-size:clamp(1.3rem,5vw,1.9rem)}.vote-podium .vote-rank:first-child>span:last-child{font-size:.55rem}.vote-card__actions .vote-card__score strong{font-size:2rem}.vote-card__actions .vote-card__score{font-size:.65rem}.vote-stats [data-vote-total]{font-size:2.6rem}}

/* Anchor every portrait to its matching arch in the original stage image. */
.vote-podium{position:relative;display:block;aspect-ratio:1.4;min-height:0;padding:0;overflow:visible;background-image:linear-gradient(180deg,#10291f22 0%,#10291f22 58%,#10291ff5 88%),url('../images/royal-throne-background.webp');background-size:100% 100%,100% auto;background-position:center,center top;background-repeat:no-repeat;background-color:#10291f;margin-top:65px;border-radius:20px}
.vote-podium .vote-rank,.vote-podium .vote-rank:first-child{position:absolute;display:flex;left:var(--rank-x);top:var(--rank-y);width:var(--rank-w);transform:translateX(-50%);gap:9px;padding:0;margin:0;border:0;background:none;grid-column:auto;grid-row:auto}
.vote-podium .vote-rank:nth-child(1){--rank-x:50%;--rank-y:3%;--rank-w:27%;z-index:5}
.vote-podium .vote-rank:nth-child(2){--rank-x:30%;--rank-y:17.5%;--rank-w:20%;z-index:3}
.vote-podium .vote-rank:nth-child(3){--rank-x:70%;--rank-y:17.5%;--rank-w:20%;z-index:3}
.vote-podium .vote-rank:nth-child(4){--rank-x:14.5%;--rank-y:19.5%;--rank-w:19%;z-index:2}
.vote-podium .vote-rank:nth-child(5){--rank-x:85.5%;--rank-y:19.5%;--rank-w:19%;z-index:2}
.vote-podium .vote-rank .vote-rank__portrait,.vote-podium .vote-rank:first-child .vote-rank__portrait,.vote-podium .vote-rank:nth-child(n+4) .vote-rank__portrait{width:100%;height:auto;max-width:none;aspect-ratio:2/3;flex:none}
.vote-podium .vote-rank .vote-rank__no{position:absolute;top:-27px;left:0;right:0;font-size:1.15rem;text-shadow:0 2px 6px #000;gap:7px}
.vote-podium .vote-rank:first-child .vote-rank__no{top:-60px;font-size:1.4rem}
.vote-podium .vote-rank:first-child .vote-rank__no::before{font-size:clamp(.7rem,1.3vw,1.1rem);padding:5px 12px;background:#17372cec;border:1px solid #d7bc7b88;border-radius:30px}
.vote-podium .vote-rank>strong{font-size:clamp(.65rem,1vw,.9rem);min-height:3.4em;background:#10291fbb;border-radius:8px;padding:4px 7px;text-shadow:0 2px 7px #000}
.vote-podium .vote-rank:first-child>strong{font-size:clamp(.8rem,1.2vw,1.1rem)}
.vote-podium .vote-rank>span:last-child{font-size:.7rem;color:#f4e7c9;text-shadow:0 2px 6px #000}
.vote-podium .vote-rank>span:last-child b{font-size:clamp(1.5rem,3vw,3rem)}
.vote-podium .vote-rank:first-child>span:last-child b{font-size:clamp(2.4rem,5vw,4.6rem)}
@media(max-width:600px){.vote-podium{aspect-ratio:1.05;margin-top:65px;margin-inline:-10px;overflow:visible}.vote-podium .vote-rank:nth-child(1){--rank-y:2.3%}.vote-podium .vote-rank:nth-child(2),.vote-podium .vote-rank:nth-child(3){--rank-y:13.1%}.vote-podium .vote-rank:nth-child(4),.vote-podium .vote-rank:nth-child(5){--rank-y:14.6%}.vote-podium .vote-rank,.vote-podium .vote-rank:first-child{gap:6px}.vote-podium .vote-rank .vote-rank__no{top:-20px;font-size:.8rem}.vote-podium .vote-rank:first-child .vote-rank__no{top:-54px;font-size:1rem}.vote-podium .vote-rank:first-child .vote-rank__no::before{font-size:.6rem;padding:4px 5px;white-space:nowrap;max-width:none}.vote-podium .vote-rank>strong,.vote-podium .vote-rank:first-child>strong{font-size:.55rem;min-height:5em;padding:4px 2px;line-height:1.6}.vote-podium .vote-rank:first-child>strong{font-size:.65rem}.vote-podium .vote-rank>span:last-child{font-size:.5rem}.vote-podium .vote-rank>span:last-child b{font-size:clamp(1rem,4vw,1.6rem)}.vote-podium .vote-rank:first-child>span:last-child b{font-size:clamp(1.6rem,6vw,2.3rem)}}

/* Gold-edged name plaques with an independent portrait and frame depth. */
.vote-podium .vote-rank>strong{position:relative;display:flex;align-items:center;justify-content:center;width:94%;min-height:3.8em;padding:9px 10px;color:#f9e9c8;font-weight:400;line-height:1.65;text-wrap:balance;border-radius:2px 2px 13px 13px;border:1px solid #cbb07866;border-top-color:#ead3a0aa;background:linear-gradient(110deg,#10251f,#294436 48%,#10251f);box-shadow:0 8px 16px #0004,inset 0 1px 0 #ffe9ba22;text-shadow:0 1px 4px #0005}
.vote-podium .vote-rank>strong::before{content:'';position:absolute;left:17%;right:17%;top:-4px;height:1px;background:linear-gradient(90deg,transparent,#f4d99f,transparent)}
.vote-podium .vote-rank:first-child>strong{width:96%;border-color:#ecd39999;color:#fff0d1;background:linear-gradient(110deg,#253b2b,#4e5435 50%,#253b2b);box-shadow:0 9px 22px #0005,0 0 18px #e3c99b14}
.vote-podium .vote-rank .vote-rank__portrait{animation:rank-float 7s ease-in-out infinite;transform-origin:center bottom;will-change:transform}
.vote-podium .vote-rank:nth-child(2n) .vote-rank__portrait{animation-delay:-2s}.vote-podium .vote-rank:nth-child(3n) .vote-rank__portrait{animation-delay:-4s}
.vote-podium .vote-rank .vote-rank__portrait>img{animation:rank-portrait-depth 6s ease-in-out infinite alternate;transform-origin:center bottom}
.vote-podium .vote-rank:first-child .vote-rank__portrait::after{animation:rank-gold-light 5s ease-in-out infinite}
.vote-podium .vote-rank:first-child .vote-rank__portrait::before{content:'';position:absolute;inset:0;z-index:4;pointer-events:none;background:radial-gradient(ellipse at 50% 10%,#ffe9b455,transparent 17%),radial-gradient(ellipse at 12% 48%,#fff1c866,transparent 9%),radial-gradient(ellipse at 86% 73%,#fff0bb66,transparent 9%);mix-blend-mode:screen;animation:rank-soft-glow 5s ease-in-out infinite}
.rank-sparkles{position:absolute;inset:0;z-index:5;pointer-events:none}.rank-sparkles i{position:absolute;width:15px;height:15px;opacity:0;background:#fff6d4;clip-path:polygon(50% 0,58% 40%,100% 50%,58% 58%,50% 100%,42% 58%,0 50%,42% 40%);filter:drop-shadow(0 0 5px #ffe7a3);animation:rank-spark 6s ease-in-out infinite;left:var(--sx);top:var(--sy);animation-delay:var(--sd)}.rank-sparkles i:nth-child(1){--sx:49%;--sy:7%;--sd:0s}.rank-sparkles i:nth-child(2){--sx:12%;--sy:36%;--sd:1.3s}.rank-sparkles i:nth-child(3){--sx:85%;--sy:62%;--sd:2.7s}.rank-sparkles i:nth-child(4){--sx:23%;--sy:93%;--sd:4.1s;width:11px;height:11px}.rank-sparkles i:nth-child(5){--sx:77%;--sy:21%;--sd:5s;width:11px;height:11px}
@keyframes rank-float{0%,100%{transform:translateY(0) rotate(-.25deg)}50%{transform:translateY(-5px) rotate(.25deg)}}
@keyframes rank-portrait-depth{from{transform:translateY(0) scale(1)}to{transform:translateY(-2px) scale(1.012)}}
@keyframes rank-gold-light{0%,100%{filter:drop-shadow(0 4px 5px #0005) brightness(1)}50%{filter:drop-shadow(0 4px 5px #0005) drop-shadow(0 0 9px #e3c99b44) brightness(1.1)}}
@keyframes rank-soft-glow{0%,100%{opacity:.2}50%{opacity:.7}}
@keyframes rank-spark{0%,65%,100%{opacity:0;transform:scale(.25) rotate(0)}76%{opacity:.95;transform:scale(1) rotate(15deg)}86%{opacity:0;transform:scale(.4) rotate(30deg)}}
.motion-off .vote-podium .vote-rank__portrait,.motion-off .vote-podium .vote-rank__portrait>img,.motion-off .vote-podium .vote-rank__portrait::before,.motion-off .vote-podium .vote-rank__portrait::after,.motion-off .rank-sparkles i{animation:none!important}
@media(prefers-reduced-motion:reduce){.vote-podium .vote-rank .vote-rank__portrait,.vote-podium .vote-rank .vote-rank__portrait>img,.vote-podium .vote-rank .vote-rank__portrait::before,.vote-podium .vote-rank .vote-rank__portrait::after,.rank-sparkles i{animation:none!important}}
@media(max-width:600px){.vote-podium .vote-rank>strong,.vote-podium .vote-rank:first-child>strong{min-height:5.2em;padding:6px 3px;border-radius:2px 2px 8px 8px}.rank-sparkles i{width:9px;height:9px}@keyframes rank-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}}

/* Pointer-driven depth only; all labels stay on a shared baseline. */
.vote-podium{aspect-ratio:1.5;--stage-x:0px;--stage-y:0px}
.vote-podium .vote-rank,.vote-podium .vote-rank:first-child{top:0;height:100%;display:block;transform:translateX(-50%)}
.vote-podium .vote-rank .vote-rank__portrait,.vote-podium .vote-rank:first-child .vote-rank__portrait{position:absolute;top:var(--portrait-top);left:0;animation:none!important;transform:none;translate:calc(var(--stage-x) * .15) calc(var(--stage-y) * .12);transition:translate .45s ease-out}
.vote-podium .vote-rank:nth-child(1){--portrait-top:3.2%}
.vote-podium .vote-rank:nth-child(2),.vote-podium .vote-rank:nth-child(3){--portrait-top:18.75%}
.vote-podium .vote-rank:nth-child(4),.vote-podium .vote-rank:nth-child(5){--portrait-top:20.9%}
.vote-podium .vote-rank .vote-rank__portrait>img{animation:none!important;transform:none;translate:calc(var(--stage-x) * -.5) calc(var(--stage-y) * -.4);transition:translate .5s ease-out}
.vote-podium .vote-rank .vote-rank__no{top:calc(var(--portrait-top) - 28px);font-size:1rem;gap:6px}
.vote-podium .vote-rank:first-child .vote-rank__no{top:calc(var(--portrait-top) - 62px);font-size:1.15rem}
.vote-podium .vote-rank:first-child .vote-rank__no::before{font-size:clamp(.65rem,1.1vw,.95rem);padding:5px 12px;background:#163127e8}
.vote-podium .vote-rank>strong,.vote-podium .vote-rank:first-child>strong{position:absolute;top:66%;left:50%;transform:translateX(-50%);display:block;width:94%;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font-size:clamp(.62rem,.95vw,.85rem);font-weight:400;line-height:1.7;color:#f3e5c8;text-shadow:0 2px 7px #000;overflow-wrap:anywhere;text-wrap:balance}
.vote-podium .vote-rank>strong::before{display:none}
.vote-podium .vote-rank>span:last-child,.vote-podium .vote-rank:first-child>span:last-child{position:absolute;top:79%;left:0;width:100%;margin:0;font-size:.65rem;line-height:1.5;color:#d4c3a0}
.vote-podium .vote-rank>span:last-child b{font-size:clamp(1.5rem,2.7vw,2.6rem);line-height:1.2}
.vote-podium .vote-rank:first-child>span:last-child b{font-size:clamp(2rem,3.8vw,3.6rem)}
.motion-off .vote-podium .vote-rank .vote-rank__portrait,.motion-off .vote-podium .vote-rank .vote-rank__portrait>img{translate:none!important}
@media(prefers-reduced-motion:reduce){.vote-podium .vote-rank .vote-rank__portrait,.vote-podium .vote-rank .vote-rank__portrait>img{translate:none!important;transition:none}}
@media(max-width:600px){.vote-podium{aspect-ratio:.95}.vote-podium .vote-rank:nth-child(1){--portrait-top:2%}.vote-podium .vote-rank:nth-child(2),.vote-podium .vote-rank:nth-child(3){--portrait-top:11.9%}.vote-podium .vote-rank:nth-child(4),.vote-podium .vote-rank:nth-child(5){--portrait-top:13.25%}.vote-podium .vote-rank .vote-rank__no{top:calc(var(--portrait-top) - 20px);font-size:.7rem}.vote-podium .vote-rank:first-child .vote-rank__no{top:calc(var(--portrait-top) - 55px);font-size:.85rem}.vote-podium .vote-rank:first-child .vote-rank__no::before{font-size:.55rem;padding:5px;white-space:normal;width:110%;line-height:1.5}.vote-podium .vote-rank>strong,.vote-podium .vote-rank:first-child>strong{top:44%;width:98%;font-size:clamp(.48rem,1.9vw,.65rem);min-height:0;padding:0;line-height:1.8}.vote-podium .vote-rank>span:last-child,.vote-podium .vote-rank:first-child>span:last-child{top:67%;font-size:.5rem}.vote-podium .vote-rank>span:last-child b{font-size:clamp(1rem,4vw,1.5rem)}.vote-podium .vote-rank:first-child>span:last-child b{font-size:clamp(1.4rem,5vw,2rem)}}
.vote-card__image>img:not(.vote-portrait-frame){animation:none!important}

/* Keep the leading award and rank inside the stage, above the central arch. */
.vote-podium{margin-top:35px;overflow:hidden;background-position:center,center top}
.vote-podium .vote-rank:first-child .vote-rank__no{top:1.2%;font-size:1.1rem;z-index:6;gap:3px}
.vote-podium .vote-rank:first-child .vote-rank__no::before{padding:4px 10px;font-size:clamp(.65rem,1vw,.9rem)}
.vote-podium .vote-rank:nth-child(1){--portrait-top:9%}
.vote-podium .vote-rank:first-child .vote-rank__portrait{width:94%;left:3%}
.vote-podium .vote-rank>strong,.vote-podium .vote-rank:first-child>strong{top:72%;font-size:clamp(.6rem,.9vw,.8rem);line-height:1.65}
.vote-podium .vote-rank>span:last-child,.vote-podium .vote-rank:first-child>span:last-child{top:84%}
@media(max-width:600px){.vote-podium{margin-top:25px}.vote-podium .vote-rank:nth-child(1){--portrait-top:9%}.vote-podium .vote-rank:first-child .vote-rank__no{top:1%;font-size:.7rem;gap:2px}.vote-podium .vote-rank:first-child .vote-rank__no::before{font-size:.5rem;line-height:1.3;width:100%;padding:3px 2px}.vote-podium .vote-rank>strong,.vote-podium .vote-rank:first-child>strong{top:59%;font-size:clamp(.48rem,1.8vw,.62rem);line-height:1.65}.vote-podium .vote-rank>span:last-child,.vote-podium .vote-rank:first-child>span:last-child{top:78%}}

/* Tighter name-to-score spacing and the confirmed award wording. */
.vote-podium .vote-rank>span:last-child,.vote-podium .vote-rank:first-child>span:last-child{top:79%}
.vote-podium .vote-rank:first-child .vote-rank__no::before{content:'ธิดาขวัญใจมหาชน'}
@media(max-width:600px){.vote-podium .vote-rank>span:last-child,.vote-podium .vote-rank:first-child>span:last-child{top:72%}}

/* Rank is 1–5; contestant numbers remain separately formatted as 01–35. */
.vote-podium .vote-rank .vote-rank__no,.vote-podium .vote-rank:first-child .vote-rank__no{top:calc(var(--portrait-top) + 3%);left:50%;right:auto;transform:translateX(-50%);width:30px;height:30px;display:flex;justify-content:center;align-items:center;gap:0;border:1px solid #e6c98c99;border-radius:50%;background:linear-gradient(145deg,#34523b,#10271f);box-shadow:0 3px 9px #0006;color:#ffebbc;font-size:1.1rem;line-height:1;font-weight:500;z-index:8}
.vote-podium .vote-rank:first-child .vote-rank__no{width:38px;height:38px;font-size:1.4rem;top:calc(var(--portrait-top) + 3%)}
.vote-podium .vote-rank:first-child .vote-rank__no::before{position:absolute;bottom:calc(100% + 12px);left:50%;transform:translateX(-50%);width:max-content;max-width:none;white-space:nowrap;line-height:1.5;padding:5px 12px;font-size:clamp(.65rem,1vw,.9rem)}
@media(max-width:600px){.vote-podium .vote-rank .vote-rank__no{width:20px;height:20px;font-size:.75rem;top:calc(var(--portrait-top) + 1.5%)}.vote-podium .vote-rank:first-child .vote-rank__no{width:26px;height:26px;font-size:1rem;top:calc(var(--portrait-top) + 2%)}.vote-podium .vote-rank:first-child .vote-rank__no::before{font-size:.5rem;padding:3px 6px;bottom:calc(100% + 8px);width:max-content}}

/* User-supplied emerald award plaque; lettering remains crisp HTML text. */
.vote-podium .vote-rank:first-child .vote-rank__no::before{
 content:'ธิดาขวัญใจมหาชน';display:flex;align-items:center;justify-content:center;
 width:clamp(150px,22vw,240px);height:auto;aspect-ratio:3/1;box-sizing:border-box;
 padding:8% 14% 0;border:0;border-radius:0;background:url('../images/vote-award-banner.webp') center/contain no-repeat;
 bottom:calc(100% + 4px);color:#ffedc5;font-size:clamp(.65rem,1.1vw,1rem);font-weight:500;
 line-height:1.3;letter-spacing:0;text-shadow:0 1px 4px #0008;filter:drop-shadow(0 3px 4px #0005);
}
@media(max-width:600px){.vote-podium .vote-rank:first-child .vote-rank__no::before{width:clamp(100px,29vw,150px);aspect-ratio:3/1;height:auto;font-size:clamp(.5rem,1.9vw,.7rem);padding:8% 14% 0;bottom:calc(100% + 2px)}}

/* Supplied rank medallion; numbers stay dynamic when rankings change. */
.vote-podium .vote-rank .vote-rank__no,.vote-podium .vote-rank:first-child .vote-rank__no{
 width:clamp(38px,5vw,60px);height:clamp(38px,5vw,60px);box-sizing:border-box;padding:5px 0 0;
 border:0;border-radius:0;background:url('../images/vote-rank-badge.webp') center/contain no-repeat;
 box-shadow:none;filter:drop-shadow(0 3px 4px #0006);font-size:clamp(.9rem,1.7vw,1.5rem);font-weight:600;color:#ffedc5;
}
.vote-podium .vote-rank:first-child .vote-rank__no{width:clamp(48px,6vw,74px);height:clamp(48px,6vw,74px);font-size:clamp(1.2rem,2.2vw,2rem);padding-top:7px}
@media(max-width:600px){.vote-podium .vote-rank .vote-rank__no{width:28px;height:28px;font-size:.8rem;padding-top:3px}.vote-podium .vote-rank:first-child .vote-rank__no{width:36px;height:36px;font-size:1.05rem;padding-top:4px}}

/* Dissolve the image edge into the page instead of ending on a hard seam. */
.vote-podium{
 background-image:linear-gradient(180deg,rgba(16,41,31,.12) 0%,rgba(16,41,31,.18) 38%,rgba(16,41,31,.64) 64%,#10291f 83%,#10291f 100%),url('../images/royal-throne-background.webp');
 background-size:100% 100%,100% auto;background-position:center,center top;
 background-color:#10291f;border-bottom:0;box-shadow:none;
 aspect-ratio:1.62;
}
.vote-podium .vote-rank:nth-child(1){--portrait-top:9.7%}
.vote-podium .vote-rank:nth-child(2),.vote-podium .vote-rank:nth-child(3){--portrait-top:20.25%}
.vote-podium .vote-rank:nth-child(4),.vote-podium .vote-rank:nth-child(5){--portrait-top:22.57%}
.vote-podium .vote-rank>strong,.vote-podium .vote-rank:first-child>strong{top:76%}
.vote-podium .vote-rank>span:last-child,.vote-podium .vote-rank:first-child>span:last-child{top:84%}
@media(max-width:600px){.vote-podium{aspect-ratio:1.08;background-image:linear-gradient(180deg,#10291f22 0%,#10291f33 30%,#10291fb3 54%,#10291f 72%,#10291f 100%),url('../images/royal-throne-background.webp')}.vote-podium .vote-rank:nth-child(1){--portrait-top:10.2%}.vote-podium .vote-rank:nth-child(2),.vote-podium .vote-rank:nth-child(3){--portrait-top:13.5%}.vote-podium .vote-rank:nth-child(4),.vote-podium .vote-rank:nth-child(5){--portrait-top:15.06%}.vote-podium .vote-rank>strong,.vote-podium .vote-rank:first-child>strong{top:65%}.vote-podium .vote-rank>span:last-child,.vote-podium .vote-rank:first-child>span:last-child{top:80%}}

/* Score follows the actual name height, rather than a separate stage percentage. */
.vote-podium .vote-rank>strong,.vote-podium .vote-rank:first-child>strong{top:76%;height:3.3em;display:flex;align-items:flex-end;justify-content:center;line-height:1.65}
.vote-podium .vote-rank>span:last-child,.vote-podium .vote-rank:first-child>span:last-child{top:calc(76% + 2.65rem + 4px)}
@media(max-width:600px){.vote-podium .vote-rank>strong,.vote-podium .vote-rank:first-child>strong{top:65%;height:4.95em;line-height:1.65}.vote-podium .vote-rank>span:last-child,.vote-podium .vote-rank:first-child>span:last-child{top:calc(65% + clamp(.48rem,1.8vw,.62rem) * 4.95 + 4px)}}
.vote-podium .vote-rank>strong,.vote-podium .vote-rank:first-child>strong{height:2.8em;line-height:1.4}
.vote-podium .vote-rank>span:last-child,.vote-podium .vote-rank:first-child>span:last-child{top:calc(76% + 2.25rem + 3px)}
@media(max-width:600px){.vote-podium .vote-rank>strong,.vote-podium .vote-rank:first-child>strong{height:4.2em;line-height:1.4}.vote-podium .vote-rank>span:last-child,.vote-podium .vote-rank:first-child>span:last-child{top:calc(65% + clamp(.48rem,1.8vw,.62rem) * 4.2 + 3px)}}

.vote-event-logo{display:block;width:clamp(160px,20vw,240px);height:auto;margin:0 auto 24px;filter:drop-shadow(0 5px 12px #0004)}
@media(max-width:600px){.vote-event-logo{width:180px;margin-bottom:20px}}

/* Shared temporary profile preview for the 34 demo contestants. */
.vote-card__preview{margin:14px 0 18px;padding:15px 16px;border-radius:16px;background:linear-gradient(130deg,#ffffff09,#ffffff03);border:1px solid #e0cd9b20;text-align:left}
.vote-card__sample{font-size:.65rem;letter-spacing:.05em;color:#d6c49a}
.vote-card__nickname{margin:6px 0 12px;font-size:1.05rem;color:#f2e7d0}.vote-card__nickname span{font-size:.76rem;color:#c1cfc6;font-weight:400}
.vote-card__preview dl{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0}.vote-card__preview dl>div{display:grid;gap:3px}.vote-card__preview dt{font-size:.7rem;color:#a9beb1}.vote-card__preview dd{margin:0;font-size:.92rem;color:#f7efde}
.vote-card__preview-note{margin:12px 0 0;font-size:.65rem;color:#a9beb1;line-height:1.5}

/* Match the contestant gallery's supplied woven frame. */
.vote-card{border-radius:24px;padding:10px;background:linear-gradient(150deg,#234337,#142f26);border:1px solid #ffffff20}
.vote-card__image{background:transparent;border-radius:20px;overflow:hidden;aspect-ratio:2/3}
.vote-card__image>img.vote-portrait-frame{object-fit:fill;filter:none;z-index:3}
.vote-card__image>img:not(.vote-portrait-frame){left:7.5%;top:7.5%;height:85%;width:85%;max-width:85%;object-fit:contain;object-position:center;padding:0;border-radius:16px;background:#dce5dc;transform:none!important;filter:none}
.vote-card__image>img[src*="queen-"]:not(.vote-portrait-frame){left:7.5%}
.vote-card__image:hover>img:not(.vote-portrait-frame){transform:none}
.vote-card__body{border:0;padding:15px 12px 12px}
.vote-number{left:12%;top:auto;bottom:10%;border-radius:10px;background:#193d32ed;color:#fff;border:1px solid #ffffff40}
.vote-card__home{margin-top:13px;border-top:1px solid #e0cd9b24;padding-top:12px;display:grid;gap:5px}
.vote-card__home>span{font-size:.7rem;color:#d5c499}
.vote-card__home>strong{font-size:.94rem;font-weight:500;line-height:1.65;color:#fff5de}
.queen-profile__home{padding:15px 18px;margin:18px 0;border-radius:14px;background:#d5c49914;border:1px solid #d5c49955;border-left:3px solid #d5c499}
.queen-profile .queen-profile__home h3{margin:0 0 8px;font-size:.8rem;color:#e5d2a5}
.queen-profile .queen-profile__home p{font-size:1.04rem;color:#fff5de;font-weight:500;line-height:1.7}
@media(max-width:600px){.vote-card{padding:6px;border-radius:19px}.vote-card__body{padding:12px 8px}.vote-card__image{border-radius:15px}}

.queen-profile__close{display:grid;place-items:center;padding:0;line-height:1;box-sizing:border-box}.queen-profile__close svg{display:block;width:16px;height:16px;flex:none}

/* Four-across contestant selection, matching the contestant gallery. */
.vote-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:stretch}
.vote-grid .vote-card{min-width:0;padding:6px;border-radius:18px}
.vote-grid .vote-card__body{padding:10px 7px 9px}
.vote-grid .vote-card h3{font-size:.88rem;line-height:1.6;min-height:3.2em;margin-bottom:9px}
.vote-grid .vote-profile-text{font-size:.7rem}
.vote-grid .vote-card__preview{margin:10px 0 12px;padding:10px;border-radius:12px}
.vote-grid .vote-card__nickname{font-size:.9rem;margin:5px 0 10px}
.vote-grid .vote-card__nickname span{display:block;font-size:.7rem;margin-top:3px}
.vote-grid .vote-card__home>strong{font-size:.8rem}
.vote-grid .vote-card__actions{flex-direction:column;align-items:stretch;gap:10px;padding-top:11px}
.vote-grid .vote-card__score{text-align:center}
.vote-grid .vote-card__score strong{font-size:1.8rem}
.vote-grid .vote-card__actions .btn{width:100%;padding:10px 6px;font-size:.74rem}
@media(max-width:1100px){.vote-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}}
@media(max-width:850px){.vote-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.vote-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.vote-grid .vote-card__preview{padding:9px}.vote-grid .vote-card h3{font-size:.83rem}}

.vote-grid .vote-card__preview{background:none;border:0;padding:0;margin:0 0 12px}.vote-grid .vote-card__nickname{margin:0 0 10px;font-size:.9rem;color:#e5d2a5}.vote-grid .vote-card__home{margin-top:0;padding-top:9px}.vote-grid .vote-card h3{margin-bottom:4px}

/* Short, readable contestant summaries. */
.vote-grid .vote-number{width:29px;height:29px;min-width:29px;min-height:0;padding:0;display:grid;place-items:center;font-size:.86rem;line-height:1;border-radius:8px;box-sizing:border-box}
.vote-grid .vote-card__body{padding:9px 7px 8px;display:flex;flex-direction:column}
.vote-grid .vote-card h3{font-size:.84rem;line-height:1.5;min-height:0;margin:0 0 3px;font-weight:500}
.vote-grid .vote-card__preview{margin:0 0 9px;flex:1}
.vote-grid .vote-card__nickname{font-size:.8rem;line-height:1.4;margin:0 0 7px;color:#dfc99c}
.vote-grid .vote-card__home{display:block;padding:0;margin:0;border:0;line-height:1.5}
.vote-grid .vote-card__home>span{display:inline;font-size:.65rem;color:#a9beb1;margin-right:5px}
.vote-grid .vote-card__home>strong{display:inline;font-size:.73rem;font-weight:400;line-height:1.55;color:#e3e9df;overflow-wrap:anywhere}
.vote-grid .vote-card__actions{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:6px;padding-top:9px;margin-top:auto}
.vote-grid .vote-card__score{text-align:left;font-size:.61rem;line-height:1.3;white-space:nowrap}
.vote-grid .vote-card__score strong{font-size:1.38rem;line-height:1.15;color:#f3d493;letter-spacing:-.03em}
.vote-grid .vote-card__actions .btn{width:auto;min-height:34px;padding:8px 9px;font-size:.66rem;line-height:1.3;white-space:nowrap;border-radius:12px}
@media(max-width:600px){.vote-grid .vote-card__body{padding:8px 5px}.vote-grid .vote-card h3{font-size:.8rem}.vote-grid .vote-card__score strong{font-size:1.25rem}.vote-grid .vote-card__actions .btn{font-size:.61rem;padding:7px 6px}.vote-grid .vote-number{width:25px;height:25px;min-width:25px;font-size:.76rem}}

.vote-podium .rank-sparkles i{animation:royal-twinkle 4.8s ease-in-out infinite;width:clamp(7px,1.2vw,17px);height:clamp(7px,1.2vw,17px)}
.vote-podium .rank-sparkles i:nth-child(1){left:49%;top:7%;animation-delay:0.0s}
.vote-podium .rank-sparkles i:nth-child(2){left:18%;top:25%;animation-delay:-0.61s}
.vote-podium .rank-sparkles i:nth-child(3){left:84%;top:39%;animation-delay:-1.22s}
.vote-podium .rank-sparkles i:nth-child(4){left:13%;top:60%;animation-delay:-1.83s}
.vote-podium .rank-sparkles i:nth-child(5){left:85%;top:77%;animation-delay:-2.44s}
.vote-podium .rank-sparkles i:nth-child(6){left:26%;top:88%;animation-delay:-3.05s}
.vote-podium .rank-sparkles i:nth-child(7){left:72%;top:90%;animation-delay:-3.66s}
.vote-podium .rank-sparkles i:nth-child(8){left:31%;top:14%;animation-delay:-4.27s}
.vote-podium .rank-sparkles i:nth-child(9){left:70%;top:17%;animation-delay:-4.88s}
.vote-podium .rank-sparkles i:nth-child(10){left:12%;top:46%;animation-delay:-5.49s}
.vote-podium .rank-sparkles i:nth-child(11){left:87%;top:57%;animation-delay:-6.1s}
.vote-podium .rank-sparkles i:nth-child(12){left:50%;top:96%;animation-delay:-6.71s}
.vote-podium .vote-rank:first-child .vote-rank__portrait::before{background:radial-gradient(ellipse at 50% 10%,#ffe9b477,transparent 25%),radial-gradient(ellipse at 12% 48%,#fff1c866,transparent 14%),radial-gradient(ellipse at 86% 73%,#fff0bb66,transparent 14%);animation:royal-radiance 5.5s ease-in-out infinite}
.motion-off .vote-podium .rank-sparkles{display:none}
@media(prefers-reduced-motion:reduce){.vote-podium .rank-sparkles{display:none}.vote-podium .vote-rank:first-child .vote-rank__portrait::before{animation:none}}

.vote-dialog__close{display:grid;place-items:center;padding:0;line-height:1;box-sizing:border-box}.vote-dialog__close svg{display:block;width:16px;height:16px;flex:none}
.vote-grid button.vote-card__score{border:0;background:none;color:inherit;padding:0;cursor:pointer;font-family:inherit}.vote-card__score small{display:block;font-size:.6rem;color:#afc6b5;margin-top:4px}
.support-share{display:block;margin:5px auto 8px;padding:5px 8px;border:0;background:none;color:#b8cfbf;font:inherit;font-size:.7rem;cursor:pointer}.support-share:hover{color:#ffe6b5}
.support-fields{display:grid;gap:12px;margin:18px 0}.support-fields>label{font-size:.8rem;display:grid;gap:6px}.support-fields input:not([type=checkbox]){width:100%;padding:11px 12px;border:1px solid #d9bd8444;border-radius:10px;background:#ffffff08;color:#fff;font:inherit}
.supporters-dialog{width:min(620px,calc(100% - 28px));max-height:80dvh;overflow:auto;padding:32px;border:1px solid #d9bd8466;border-radius:22px;background:radial-gradient(ellipse at top left,#355241,#142e26 70%);color:#f5ecda;box-shadow:0 30px 90px #0008}.supporters-dialog::backdrop{background:#031c16cc;backdrop-filter:blur(8px)}.supporters-dialog h2{font-size:1.6rem;margin:12px 0}.supporters-close{position:absolute;right:12px;top:12px;width:30px;height:30px;border:1px solid #d9bd8455;border-radius:50%;background:#17392d;color:#efdcb4;display:grid;place-items:center;padding:0;font:20px/1 sans-serif;cursor:pointer}.support-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 0;border-top:1px solid #d9bd8426}.support-row strong{font-size:.95rem;font-weight:500}.support-row small{display:block;color:#aec2b4;font-size:.72rem;margin-top:5px}.support-row>b{color:#f1d294;white-space:nowrap;font-size:1rem}.support-empty{padding:25px 18px;text-align:center;border:1px dashed #d9bd8444;border-radius:14px;line-height:1.8;color:#c2d2c6;font-size:.85rem}@media(max-width:600px){.supporters-dialog{padding:28px 20px}.support-row{gap:10px}.support-row>b{font-size:.87rem}}

.supporters-total{display:flex;align-items:baseline;justify-content:center;gap:10px;flex-wrap:wrap;margin:20px 0;padding:20px 15px;border:1px solid #ddc38b44;border-radius:16px;background:linear-gradient(120deg,#d9bd8418,#ffffff03)}.supporters-total>span{font-size:.8rem;color:#c7d6c9}.supporters-total>strong{font-size:clamp(2rem,6vw,3rem);font-weight:600;line-height:1.2;color:#f5d995;font-variant-numeric:tabular-nums}

/* Slightly larger score and support action, keeping the compact row. */
.vote-grid .vote-card__score{font-size:.7rem}
.vote-grid .vote-card__score strong{font-size:1.65rem}
.vote-grid .vote-card__actions .btn{min-height:40px;padding:10px 13px;font-size:.76rem;border-radius:13px}
@media(max-width:600px){.vote-grid .vote-card__score strong{font-size:1.45rem}.vote-grid .vote-card__actions .btn{min-height:38px;padding:9px 8px;font-size:.68rem}}

.vote-mobile-ranking{display:none}
@media(max-width:600px){
 .vote-hero{padding:38px 16px 38px}.vote-hero h1{font-size:clamp(1.85rem,8vw,2.4rem);line-height:1.45;margin:14px 0 20px}.vote-event-logo{max-width:190px}.vote-hero .vote-status{margin-top:12px}.vote-stats{margin:24px auto}.vote-heading{gap:14px}.vote-heading h2{font-size:1.4rem;line-height:1.6}.vote-search{width:100%}
 .vote-mobile-ranking{display:grid;gap:7px;margin:14px 0 34px;list-style:none;padding:0}
 .vote-mobile-ranking a{display:grid;grid-template-columns:26px 36px minmax(0,1fr) auto;align-items:center;gap:9px;padding:10px 12px;background:#ffffff06;border:1px solid #d9bd8424;border-radius:13px;text-decoration:none;color:#e7ecdf;min-height:60px}
 .vote-mobile-ranking li:first-child a{background:linear-gradient(100deg,#d9bd8422,#ffffff04);border-color:#d9bd8466}
 .vote-mobile-ranking img{width:36px;height:44px;object-fit:contain;background:#e0e7db;border-radius:7px}
 .vote-mobile-ranking .ranking-name{font-size:.8rem;line-height:1.5;overflow-wrap:anywhere}
 .vote-mobile-ranking .ranking-score{font-size:1.05rem;line-height:1.3;color:#f0d49a;text-align:right;font-weight:600}.vote-mobile-ranking small{display:block;font-size:.6rem;font-weight:400;color:#becdbc}
 .vote-mobile-ranking .ranking-position{font-size:.9rem;color:#d9bd84}
 .vote-grid .vote-card h3{font-size:.86rem;line-height:1.6;text-wrap:pretty}.vote-grid .vote-card__nickname{font-size:.85rem}.vote-grid .vote-card__home>span{display:block;font-size:.68rem;margin:0 0 2px}.vote-grid .vote-card__home>strong{font-size:.77rem;line-height:1.6}.vote-grid .vote-card__actions .btn{min-height:44px}
 .vote-grid .vote-card__score{min-height:44px}.vote-grid .vote-card__score small{font-size:.65rem}.vote-grid .vote-card__score strong{display:block}
 .queen-profile{max-height:calc(100dvh - 24px);width:calc(100% - 24px)}.queen-profile__art{width:136px;margin:16px auto 0}.queen-profile__art::before{border-radius:12px}.queen-profile__portrait{top:8%;height:84%;max-width:84%;filter:none}.queen-profile__copy{padding:10px 20px 24px}.queen-profile__nickname{font-size:1.55rem}.queen-profile h2{font-size:1.1rem;line-height:1.65}.queen-profile__facts{display:grid;grid-template-columns:1fr 1fr;gap:15px}.queen-profile__facts>div:last-child{grid-column:1/-1}.queen-profile section p,.queen-profile blockquote{font-size:.88rem}.queen-profile__note{font-size:.72rem}.queen-profile .queen-profile__home p{font-size:1rem}.queen-profile__close,.vote-dialog__close,.supporters-close{width:40px;height:40px;right:8px;top:8px}
 .vote-dialog{max-height:calc(100dvh - 24px);overflow-y:auto;padding:26px 20px}.vote-dialog input{font-size:16px}.supporters-dialog{max-height:calc(100dvh - 24px)}.support-row{align-items:start}.support-row small{line-height:1.7}.support-fields .vote-accept{line-height:1.7}
 [id^=candidate-],#vote-contestants,#vote-top5{scroll-margin-top:82px}
}
@media(max-width:359px){.vote-grid .vote-card__actions{flex-direction:column;align-items:stretch}.vote-grid .vote-card__score{text-align:center}.vote-grid .vote-card__actions .btn{width:100%}.vote-grid .vote-card h3{font-size:.8rem}.vote-mobile-ranking a{gap:7px;padding:9px;grid-template-columns:20px 30px minmax(0,1fr) auto}.vote-mobile-ranking img{width:30px}.vote-mobile-ranking .ranking-name{font-size:.73rem}}

.rank-name-line{display:inline}.rank-name-line+ .rank-name-line::before{content:" "}
@media(max-width:600px){
 .vote-podium{aspect-ratio:1.3;background-image:linear-gradient(180deg,#10282200 0%,#10282208 36%,#10282288 57%,#102822eb 72%,#102822 91%),url('../images/royal-throne-background.webp');background-color:#102822;border:0;border-radius:18px;margin-bottom:0}
 .vote-podium .vote-rank:nth-child(1){--portrait-top:12.28%}.vote-podium .vote-rank:nth-child(2),.vote-podium .vote-rank:nth-child(3){--portrait-top:16.25%}.vote-podium .vote-rank:nth-child(4),.vote-podium .vote-rank:nth-child(5){--portrait-top:18.12%}
 .vote-podium .vote-rank>strong,.vote-podium .vote-rank:first-child>strong{top:62%;height:auto;display:block;width:102%;padding:0;margin:0;line-height:1.5;font-size:clamp(.36rem,1.75vw,.65rem);text-wrap:initial}
 .vote-podium .rank-name-line{white-space:nowrap;display:block;line-height:1.5}
 .vote-podium .vote-rank>span:last-child,.vote-podium .vote-rank:first-child>span:last-child{top:calc(62% + 3em * 1.75);font-size:.48rem;line-height:1.25}
 .vote-podium .vote-rank>span:last-child b{font-size:clamp(.9rem,3.9vw,1.4rem);line-height:1.1}
 .vote-podium .vote-rank:first-child>span:last-child b{font-size:clamp(1.15rem,4.8vw,1.8rem)}
 .vote-mobile-ranking{display:none}
}
@media(max-width:600px){
 .vote-podium{background-image:linear-gradient(180deg,#10282200 0%,#10282208 35%,#10282266 50%,#102822dd 61%,#102822 71%),url('../images/royal-throne-background.webp')}
 .vote-podium .vote-rank>strong,.vote-podium .vote-rank:first-child>strong{font-size:clamp(.4rem,2vw,.72rem)}
 .vote-podium .vote-rank>span:last-child,.vote-podium .vote-rank:first-child>span:last-child{top:calc(62% + clamp(.4rem,2vw,.72rem) * 3 + 4px)}
 .vote-podium .rank-name-line+ .rank-name-line::before{content:none}
}
@media(max-width:600px){.rank-name-prefix{display:none}}
.vote-podium--waiting{margin-top:10px}
@media(max-width:600px){.vote-podium--waiting{margin-top:12px}}
.top5-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin:0 0 20px}.top5-tools[hidden]{display:none!important}.top5-tools .btn{color:#e5ce9e;border-color:#d9bd8455;background:#ffffff06;font-size:.82rem;min-height:44px}.top5-tools>span{font-size:.72rem;color:#aebfae}
.top5-poster{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;padding:0;margin:0;border:0;background:#071b15;color:#f8edda;overflow:hidden}.top5-poster::backdrop{background:#03140f}.top5-poster__toolbar{position:absolute;top:0;left:0;right:0;z-index:5;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;padding:10px;background:#0e281fee;border-bottom:1px solid #c7a46b44}.top5-poster__toolbar button{min-height:42px;padding:8px 14px;font:inherit;font-size:.8rem;border-radius:10px;border:1px solid #c7a46b66;background:#1e3c2d;color:#f3dfb2;cursor:pointer}.top5-poster__toolbar button[data-poster-download]{background:#dfc48d;color:#163227}.top5-poster__toolbar span{font-size:.7rem}.top5-poster__view{position:absolute;inset:66px 12px 12px;display:flex;align-items:center;justify-content:center}.top5-poster canvas{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;box-shadow:0 12px 50px #0008}
@media(orientation:portrait) and (max-width:767px){.top5-poster__toolbar{gap:6px;padding:8px}.top5-poster__toolbar button{font-size:.7rem;padding:7px 10px}.top5-poster__view{inset:88px 8px 8px}.top5-poster canvas{position:absolute;max-width:none;max-height:none;width:min(calc(100dvh - 110px),calc((100vw - 24px)*1.6));height:auto;transform:rotate(90deg)}}
@media(max-width:767px){
 .voting-page .vote-hero{padding-top:calc(var(--header-h,72px) + 28px)}
 .voting-page .vote-demo-banner+.vote-hero{padding-top:32px}
 .top5-tools{justify-content:center;text-align:center;gap:10px;margin-bottom:26px}
 .top5-tools .btn{margin-inline:auto;justify-content:center;max-width:100%;min-height:46px}
 .top5-tools>span{flex-basis:100%;text-align:center}
}

.popular-page .vote-podium .vote-rank:first-child .vote-rank__no::before{content:'POPULAR CHOICE AWARD';font-size:clamp(.48rem,.83vw,.75rem);white-space:nowrap;letter-spacing:0}

@media(max-width:600px){.popular-page .vote-podium .vote-rank:first-child .vote-rank__no::before{font-size:clamp(.36rem,1.45vw,.55rem)}}

/* Transparent cut-outs on the Top 5 thrones: no box, sit on the throne */
.vote-rank__portrait img.is-cutout{object-fit:contain;object-position:50% 100%;background:none;border-radius:0;box-shadow:none;filter:drop-shadow(0 10px 14px #0008)}

/* Compact profile overview: keep the portrait and details in one viewport. */
.queen-profile{width:min(900px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto}
.queen-profile__layout{grid-template-columns:minmax(190px,.8fr) minmax(0,1.2fr);align-items:center}
.queen-profile__art{width:100%;max-width:320px;aspect-ratio:2/3;margin:18px auto;position:relative}
.queen-profile__copy{padding:26px 28px 22px;max-height:none;overflow:visible;display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;align-content:center}
.queen-profile__copy>.kicker,.queen-profile__nickname,.queen-profile h2,.queen-profile__note,.queen-profile__facts,.queen-profile__home,.queen-profile__dream{grid-column:1/-1}
.queen-profile__copy>.kicker{margin:0;font-size:.58rem}
.queen-profile__nickname{margin:0;font-size:1.75rem;line-height:1.25}
.queen-profile h2{margin:0;font-size:1.12rem;line-height:1.5;padding-right:10px}
.queen-profile__note:empty{display:none}
.queen-profile__note{margin:0;font-size:.65rem}
.queen-profile__facts{display:grid;grid-template-columns:1fr 1fr;gap:8px 18px;margin:2px 0;padding:10px 0}
.queen-profile__facts>div:last-child{grid-column:1/-1}
.queen-profile dt{font-size:.68rem}
.queen-profile dd{font-size:.86rem;line-height:1.5;margin:2px 0 0}
.queen-profile h3{font-size:.7rem;margin:0 0 4px;line-height:1.5}
.queen-profile section p,.queen-profile blockquote{font-size:.79rem;line-height:1.65;overflow-wrap:anywhere}
.queen-profile .queen-profile__home{margin:0;padding:9px 12px;border-radius:8px}
.queen-profile .queen-profile__home h3{font-size:.7rem;margin:0 0 3px}
.queen-profile .queen-profile__home p{font-size:.87rem;line-height:1.6}
.queen-profile__dream{padding:0}
.queen-profile blockquote{padding-left:10px}
.queen-profile__copy>.support-share,.queen-profile__copy>.btn{min-height:40px;font-size:.76rem;padding:8px 10px;justify-content:center;align-self:end;margin:4px 0 0}
@media(max-width:600px){
 .queen-profile{width:min(440px,calc(100% - 20px));border-radius:16px}
 .queen-profile__layout{grid-template-columns:1fr;gap:0}
 .queen-profile__art{width:108px;height:132px;aspect-ratio:auto;margin:14px auto 0}
 .queen-profile__art::before{inset:2px;border-radius:60px 60px 6px 6px}
 .queen-profile__portrait{top:3%;height:94%;max-width:94%}
 .queen-profile__copy{padding:12px 18px 18px;gap:8px 12px}
 .queen-profile__copy>.kicker{display:none}
 .queen-profile__nickname,.queen-profile h2{text-align:center}
 .queen-profile__nickname{font-size:1.4rem}
 .queen-profile h2{font-size:1rem;padding:0}
 .queen-profile__facts{margin:0;padding:8px 0;gap:6px 12px}
 .queen-profile dd{font-size:.78rem}
 .queen-profile section p,.queen-profile blockquote{font-size:.75rem;line-height:1.6}
 .queen-profile .queen-profile__home p{font-size:.81rem}
 .queen-profile__copy>.support-share,.queen-profile__copy>.btn{font-size:.72rem;min-height:38px;padding:7px 8px}
}
@media(max-height:650px) and (min-width:601px){
 .queen-profile__art{max-width:240px;margin:10px auto}
 .queen-profile__copy{padding:18px 24px;gap:7px 12px}
 .queen-profile__nickname{font-size:1.4rem}
}
@media(max-height:740px) and (max-width:600px){
 .queen-profile__art{width:80px;height:92px;margin-top:10px}
 .queen-profile__copy{gap:6px 10px;padding:8px 16px 14px}
 .queen-profile__nickname{font-size:1.2rem}
 .queen-profile__facts{gap:4px 10px;padding:6px 0}
}

/* The hometown plaque overlaps the portrait crop, matching the catalogue banner. */
.queen-profile__art .queen-profile__portrait{top:auto;bottom:9%;height:86%;max-width:92%}
.queen-profile__hometown-plaque{position:absolute;z-index:4;left:0;right:0;bottom:2%;height:auto;min-height:0;aspect-ratio:1600/255;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:0 14%;background:url('../images/contestant-hometown-banner.webp') center/100% auto no-repeat;text-align:center;color:#fff0cd;text-shadow:0 1px 3px #061b14;line-height:1.5}
.queen-profile__hometown-plaque>span{position:absolute;bottom:calc(100% + 5px);left:0;right:0;font-size:.58rem;font-weight:400;color:#ead8b0;line-height:1.4}
.queen-profile__hometown-plaque>strong{font-size:.76rem;font-weight:500;overflow-wrap:anywhere}
@media(max-width:600px){
 .queen-profile__art{width:210px;height:190px;margin-top:12px}
 .queen-profile__hometown-plaque{bottom:0;min-height:0;padding:0 14%;gap:0}
 .queen-profile__hometown-plaque>span{font-size:.55rem;line-height:1.4}
 .queen-profile__hometown-plaque>strong{font-size:.65rem;line-height:1.4}
 .queen-profile__art .queen-profile__portrait{bottom:12%;height:85%}
}
@media(max-height:740px) and (max-width:600px){.queen-profile__art{width:200px;height:155px;margin-top:9px}}

/* Match catalogue cards: nickname first, full name second, centered. */
.vote-grid .vote-card .vote-card__body{text-align:center}
.vote-grid .vote-card .vote-card__nickname{font-size:1.4rem;font-weight:600;line-height:1.4;text-align:center;margin:0 0 5px;color:#f0dbaf}
.vote-grid .vote-card .vote-card__body h3{font-size:.94rem;font-weight:400;line-height:1.65;min-height:0;text-align:center;margin:0 0 10px;color:#c6d3c8}
.vote-grid .vote-card .vote-card__body .vote-detail-trigger{text-align:center}
@media(max-width:600px){.vote-grid .vote-card .vote-card__nickname{font-size:1.2rem}.vote-grid .vote-card .vote-card__body h3{font-size:.8rem}}


/* Sash names share the catalogue's gold plaque, separate from contestant names. */
.vote-grid .vote-card__sash{position:absolute;z-index:4;left:0;right:0;bottom:0;height:14%;min-height:3.2em;display:flex;align-items:center;justify-content:center;padding:2px 14%;box-sizing:border-box;background:url('../images/contestant-hometown-banner.webp') center/103% auto no-repeat;color:#fff0cd;font-family:var(--f-th);font-size:clamp(.64rem,.9vw,.82rem);font-weight:500;line-height:1.35;text-align:center;text-shadow:0 1px 3px #061b14;pointer-events:none}
.vote-grid .vote-card__sash>span{display:block;width:100%;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-wrap:balance;text-align:center}
@media(max-width:600px){.vote-grid .vote-card__sash{font-size:clamp(.64rem,2.6vw,.82rem);padding:2px 14%}}

/* Actual name separators survive formatting; mobile retains the two-line layout. */
.vote-podium .vote-rank>strong,.vote-podium .vote-rank:first-child>strong{display:block;white-space:normal;word-spacing:normal}
.vote-podium .rank-name-line+ .rank-name-line::before{content:none}


/* Charity disclosure is visible before consent and payment. */
.vote-dialog .vote-donation-notice{margin:18px 0 14px;padding:16px 18px;border:1px solid #d7bd8355;border-radius:12px;background:linear-gradient(120deg,#d7bd8317,#ffffff04);text-align:left}
.vote-dialog .vote-donation-notice h3{font:600 .95rem/1.6 var(--f-th);margin:0 0 8px;color:#f2d9a2}
.vote-dialog .vote-donation-notice p{font-size:.84rem;line-height:1.85;margin:0;color:#e5e9dd;overflow-wrap:anywhere}
.vote-dialog .vote-donation-notice p+p{margin-top:8px}.vote-dialog .vote-donation-notice strong{color:#f2d9a2;font-weight:600}
@media(max-width:600px){.vote-dialog .vote-donation-notice{padding:13px 14px}.vote-dialog .vote-donation-notice h3{font-size:.88rem}.vote-dialog .vote-donation-notice p{font-size:.8rem}}

/* Keep contestant numbers in the portrait's top-right corner, inside the woven frame. */
.vote-grid .vote-card__image>.vote-number{top:calc(7.5% + 12px);right:calc(7.5% + 12px);bottom:auto;left:auto;z-index:4;pointer-events:none}

/* iPad Safari (iPadOS 15–16): an absolute box sized by left+right AND aspect-ratio shrinks to its content and sticks to the left.
   Give the hometown plaque an explicit width so it always spans — and centres under — the portrait. */
.queen-profile__hometown-plaque{left:0;right:auto;width:100%;margin:0}

/* Popular Choice rule: two clear chips (like = 1, share = N) */
.popular-rules{display:grid;justify-items:center;gap:10px;margin:22px auto 18px;text-align:center}
.popular-rules__chips{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.rule-chip{display:inline-flex;align-items:center;gap:8px;padding:9px 18px;border-radius:99px;border:1px solid #d9bd8466;background:linear-gradient(135deg,#21402f,#152d24);color:#f6eedf;font-size:1rem;line-height:1.3;box-shadow:0 6px 16px #0004}
.rule-chip .i{width:1.15em;height:1.15em;color:#e8c98a;flex:none}
.rule-chip b{color:#f2d9a2;font-weight:700;white-space:nowrap}
.rule-chip--share{border-color:#e8c98a99;background:linear-gradient(135deg,#3a3420,#1d2b20)}
.popular-rules small{max-width:620px;font-size:.8rem;line-height:1.6;color:#d8ccb2}
@media(max-width:600px){.rule-chip{font-size:.9rem;padding:8px 14px}}

/* อีเมลก่อน → ชื่อเดิม/ชื่อใหม่ */
.who { display: contents; }
.who__found { margin: -2px 0 2px; padding: 12px; border-radius: 14px; background: #f7efdc; border: 1px solid #e3cf9f; color: #3a2f1b; }
.who__found[hidden] { display: none; }
.who__title { margin: 0 0 8px; font-size: .85rem; font-weight: 600; }
.who__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.who__chip { font: inherit; font-size: .88rem; padding: 7px 14px; border-radius: 99px; border: 1px solid #c9a25a; background: #fff; color: #3a2f1b; cursor: pointer; min-height: 36px; }
.who__chip[aria-checked="true"] { background: linear-gradient(135deg, #e8c98a, #c9a25a); border-color: transparent; color: #1b2e26; font-weight: 600; }
.who__chip--new { border-style: dashed; }
.who__hint { margin: 8px 0 0; font-size: .78rem; color: #6b5a3a; }
.who input[readonly] { background: #f3efe6; color: #3a2f1b; }
.support-fields .who > label { font-size: .8rem; display: grid; gap: 6px; }
.profile-support .who > label { display: grid; gap: 7px; font-size: .85rem; color: #d1ddca; }
