.hero{min-height:0;margin:16px 0;padding:clamp(17px,3vw,30px);grid-template-columns:minmax(0,1fr) minmax(95px,.4fr);border-radius:19px}
.hero h1,.page-title h1,#cloud-gate h1{font-size:clamp(32px,5vw,57px);margin:0 0 .22em;line-height:1.14;letter-spacing:-.04em}.hero-art{width:100%;height:105px;margin:0;justify-self:end}
.brand small{display:none}.page-title{padding:24px 0 10px}.bar{height:57px}.tools{display:grid;align-content:start;gap:7px}.field-title{margin:6px 0 0}.files .btn{min-height:46px}.guest-optional{margin-top:7px;font-size:.94rem}.guest-optional summary{cursor:pointer;color:#74314f;font-weight:650;padding:7px 0}.guest-optional .guest-id{margin-top:4px}.caption-wrap textarea{min-height:46px}.send{margin-top:3px;min-height:46px}.feedback:empty{display:none}.stage:not(.neon) .stage-layout{grid-template-columns:minmax(0,1fr)}.stage:not(.neon) figure{max-width:min(100%,1150px)}.projection-mode .stage:not(.neon) figure{width:min(100%,1150px);background:#fffdf9}.stage .stage-brand small,.neon-profile :empty{display:none}.host-pagination{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin:9px 0;color:var(--muted);font-variant-numeric:tabular-nums}.host-pagination .btn{min-height:40px}.stage .stage-layout,.stage .stage-top,.stage .stage-bottom{position:relative;z-index:1}.stage .wedding-motion{z-index:-1}
.party-float{position:absolute;inset:0;overflow:hidden;pointer-events:none}.party-float i{position:absolute;display:block;left:var(--x);bottom:-24vmin;width:var(--w);height:calc(var(--w)*1.83);opacity:0;animation:float-up var(--t) linear infinite;animation-delay:var(--d);background:url(balloon.svg) center/contain no-repeat;filter:drop-shadow(0 6px 8px #7d215d4d)}
.party-float .heart{height:var(--w);background-image:url(heart.svg)}.stage.neon .party-float i{filter:brightness(1.15) drop-shadow(0 0 10px #f65aaf90)}
.party-float i:nth-child(1){--x:3%;--w:7.2vmin;--t:19s;--d:-9s;--s:31px}.party-float i:nth-child(2){--x:10%;--w:4.8vmin;--t:13s;--d:-12s;--s:-22px}.party-float i:nth-child(3){--x:16%;--w:5.9vmin;--t:24s;--d:-17s;--s:-42px}.party-float i:nth-child(4){--x:27%;--w:3.7vmin;--t:15s;--d:-6s;--s:48px}.party-float i:nth-child(5){--x:76%;--w:6.1vmin;--t:21s;--d:-14s;--s:20px}.party-float i:nth-child(6){--x:84%;--w:5.7vmin;--t:16s;--d:-9s;--s:-31px}.party-float i:nth-child(7){--x:90%;--w:8.5vmin;--t:19s;--d:-5s;--s:22px}.party-float i:nth-child(8){--x:94%;--w:4.3vmin;--t:13s;--d:-9s;--s:-23px}.party-float i:nth-child(9){--x:67%;--w:3.3vmin;--t:18s;--d:-13s;--s:39px}
@keyframes float-up{0%{opacity:0;transform:translate3d(0,0,0) rotate(-8deg)}15%{opacity:.7}82%{opacity:.68}100%{opacity:0;transform:translate3d(var(--s),-145vh,0) rotate(13deg)}}
@media(max-width:650px){main{padding-bottom:16px}.hero{min-height:0;margin:11px 0 12px;grid-template-columns:1fr;padding:20px 15px}.hero-art{width:170px;right:-53px;top:-1px;height:134px}.hero p{font-size:.92rem}.studio{grid-template-columns:1fr}.image-wrap{aspect-ratio:2.15}.stage .stage-bottom{font-size:11px}.party-float i{min-width:18px}.party-float i:nth-child(3),.party-float i:nth-child(5){display:none}.host-pagination{justify-content:center}}
@media(prefers-reduced-motion:reduce){.party-float i{animation:none;opacity:.48;bottom:var(--x);transform:rotate(-8deg)}}
#manage-entry{border-radius:999px;min-height:42px;padding-inline:14px;background:#fff9fc;color:#702b50;white-space:nowrap}
#manage-entry[aria-current="page"]{border-color:#bd7396}#cloud-gate{max-width:520px;margin-top:clamp(22px,6vw,70px)}#cloud-login{display:grid;gap:13px}#cloud-login label{display:grid;gap:6px}#cloud-code{min-height:45px}.guest-optional summary:hover{text-decoration:underline}.stage.neon .neon-profile:empty{display:none}
/* A fixed preview box with an absolutely positioned image prevents the intrinsic
   image height from sizing a CSS grid row on mobile Safari. */
#guest-image-wrap{display:block;position:relative;isolation:isolate;width:100%;height:auto;aspect-ratio:1.55;max-height:430px;overflow:hidden;background:#f1e1e9}
#guest-image-wrap.chosen{aspect-ratio:var(--image-ratio,1.55);max-height:520px;max-height:min(520px,58svh)}
#guest-image-wrap img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:50% 50%}
#guest-image-wrap.chosen .viewfinder{display:none}
.film-top{align-items:center;min-height:32px;padding-top:0}.preview-expand{padding:4px 0;min-height:32px;text-underline-offset:3px}
#preview-dialog{width:min(870px,calc(100% - 20px));max-width:none;max-height:94vh;max-height:94dvh;margin:auto;padding:12px;color:var(--ink);background:#fff9fc;border:1px solid var(--line);border-radius:15px;overflow:hidden}
#preview-dialog::backdrop{background:#2e1232c9}
.full-photo-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:9px}.full-photo-header h2{margin:0;font-size:19px}
.full-photo-frame{position:relative;height:min(76vh,680px);height:min(76dvh,680px);background:#271726;border-radius:8px;overflow:hidden}
.full-photo-frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center}
@media(max-width:650px){#guest-image-wrap{aspect-ratio:1.85}#guest-image-wrap.chosen{max-height:52vh;max-height:52svh}}
.bar-actions{display:flex;gap:7px;align-items:center}.bar-actions .btn{border-radius:999px;min-height:41px;white-space:nowrap}#friends-entry[aria-current=page]{background:var(--burgundy);color:white}
.send-choice{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:4px 0 1px;padding:0;border:0}.send-choice legend{font-weight:730;margin-bottom:6px;padding:0}.send-choice label{display:flex;align-items:center;justify-content:center;gap:6px;min-height:43px;border:1px solid var(--line);border-radius:9px;background:#fff8fb;color:var(--ink);font-weight:680}.send-choice label:has(input:checked){border-color:#a64373;background:#f7dce9}.send-choice input{accent-color:var(--burgundy);margin:0}#send-note{font-size:14px;color:var(--muted)}#send-note:empty{display:none}
.friends-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,225px),1fr));gap:13px;margin:15px 0}.friends-grid .friend-photo{display:flex;flex-direction:column;gap:9px}.friends-grid .friend-photo img{object-fit:contain;aspect-ratio:4/3}.friends-grid p{padding:0;overflow-wrap:anywhere}.friends-grid button{margin-top:auto}
@media(max-width:520px){.bar{gap:7px}.bar-actions{gap:4px}.bar-actions .btn{padding-inline:7px;font-size:13px;min-height:39px}.friends-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}}
#rank-choice{font-size:14px;color:var(--ink)}#rank-choice input{accent-color:var(--burgundy)}
.friend-actions{display:flex;gap:5px;margin-top:auto;flex-wrap:wrap}.friend-actions .btn{min-height:40px;padding:6px 9px}.gallery-like[aria-pressed=true]{background:#f3c6df;border-color:#a84678;color:#602143}
.wall-qr{position:absolute;box-sizing:border-box;z-index:3;bottom:clamp(33px,6vh,85px);right:clamp(15px,3vw,55px);width:clamp(94px,13vw,175px);padding:6px;border-radius:9px;background:#fff;color:#55253f;text-align:center;box-shadow:0 6px 24px #2f092b55;font-size:clamp(11px,1.1vw,15px);font-weight:730}.wall-qr svg{display:block;width:100%;height:auto}.wall-qr span{display:block;padding:2px 0 3px}
.wall-rank{position:absolute;z-index:3;top:clamp(55px,11vmin,130px);right:clamp(15px,3vw,55px);width:clamp(136px,19vw,240px);padding:clamp(6px,1.2vmin,16px);border-radius:11px;background:#fff9fbea;color:#55253f;box-shadow:0 8px 30px #430d3d48}.wall-rank h2{font-size:clamp(13px,2.1vmin,24px);margin:0 0 5px}.wall-rank ol{display:grid;gap:4px;list-style:none;margin:0;padding:0}.wall-rank li{display:grid;grid-template-columns:1em minmax(0,1fr) auto;gap:5px;align-items:center;font-size:clamp(11px,1.65vmin,20px);font-weight:750}.stage .wall-rank img,.projection-mode .stage .wall-rank img,.projection-mode .stage.neon .wall-rank img{display:block;height:clamp(22px,6.2vmin,82px);width:100%;object-fit:cover;border-radius:5px;background:#eecbdf}
.projection-mode .stage.rank-on .stage-layout{padding-right:clamp(140px,20vw,250px)}.projection-mode .stage:not(.rank-on) .stage-layout{padding-right:clamp(100px,14vw,182px)}
@media(max-width:670px) and (orientation:portrait){.wall-qr{bottom:38px;width:80px}.wall-rank{right:9px;top:58px;width:116px}.projection-mode .stage.rank-on .stage-layout{padding-right:118px}.projection-mode .stage:not(.rank-on) .stage-layout{padding-right:85px}}
@media(max-height:440px){.wall-rank{top:43px}.wall-rank ol{gap:2px}.wall-qr{bottom:29px;width:85px}.stage .wall-rank img,.projection-mode .stage .wall-rank img,.projection-mode .stage.neon .wall-rank img{height:19px}}
.galleries{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px}.galleries .btn[aria-current=page]{background:#f3d6e5;color:#612046;border-color:#b05a80}.galleries .btn{min-height:42px}
.vote-share{flex-basis:100%;min-width:0;padding-top:10px;border-top:1px solid var(--line)}
.vote-share label{display:block;font-weight:720;margin-bottom:5px}.vote-share>div{display:flex;gap:7px}.vote-share input{min-width:0;flex:1;border:1px solid var(--line);border-radius:9px;background:#fff9fc;color:var(--ink);padding:7px 9px;font:inherit;font-size:16px}.vote-share p{font-size:14px;color:var(--muted);margin-top:5px}
.guest-social{display:grid;column-gap:9px;row-gap:6px;grid-template-columns:minmax(80px,.5fr) minmax(0,1fr);padding:8px 0 0;margin:11px 0 2px;border:0}
.guest-social legend{font-weight:730;padding:0}.guest-social>label:not(.social-consent){align-self:center}
.guest-social input:not([type=checkbox]){width:100%;min-width:0;min-height:38px;border:1px solid var(--line);border-radius:7px;padding:6px 8px;background:#fffdfd;color:var(--ink);font:inherit;font-size:16px}
.guest-social .social-consent{display:flex;align-items:flex-start;gap:6px;grid-column:1 / -1;line-height:1.4}.social-consent input{accent-color:var(--burgundy);margin-top:4px}
.stage-social{display:flex;flex-wrap:wrap;gap:clamp(3px,1vmin,9px);padding-top:3px;font-size:clamp(12px,1.85vmin,24px);line-height:1.22}.social-chip{display:inline-flex;align-items:center;gap:7px;min-width:0;max-width:100%;padding:.35em .65em;border:1px solid #e6bed0;border-radius:10px;background:#fcecf4;color:#532941}.social-chip b{font-weight:800;white-space:nowrap;color:#733455;font-size:.84em}.social-chip span{min-width:0;overflow-wrap:anywhere;font-weight:650}.stage.neon .stage-social{display:grid;width:min(100%,390px)}.stage.neon .social-chip{background:#240e2b;color:#fff0f9;border-color:#a65388}.stage.neon .social-chip b{color:#ffb9df}
@media(max-height:460px){.stage-social{font-size:11px;gap:3px}.stage.neon .stage-social{display:flex}.social-chip{padding:3px 4px;gap:4px}}
/* Projector layout: give the QR and rankings a real column, not floating overlays. */
.wall-side{display:none}
.projection-mode .stage .stage-layout,.projection-mode .stage.neon .stage-layout,.projection-mode .stage:not(.neon) .stage-layout{
 display:grid;padding:0;grid-template-columns:minmax(0,1fr) clamp(130px,18vw,220px);gap:clamp(8px,1.55vw,25px);align-items:stretch;min-height:0;
}
.projection-mode .stage .stage-layout:not(:has(.wall-qr:not([hidden]),.wall-rank:not([hidden]))){grid-template-columns:minmax(0,1fr)}
.projection-mode .wall-side{display:flex;flex-direction:column;min-height:0;min-width:0;align-items:stretch;gap:clamp(4px,1vh,11px);justify-content:flex-end}
.projection-mode .wall-qr,.projection-mode .wall-rank{position:static;inset:auto;width:100%;max-width:none;box-shadow:0 3px 13px #48223a26}
.projection-mode .wall-qr{width:min(100%,clamp(98px,12.6vw,165px));align-self:end;flex:none;margin-top:auto}
.projection-mode .wall-qr span{padding:1px 0 2px}
.projection-mode .wall-rank{align-self:stretch;padding:clamp(5px,.9vmin,11px);max-height:54%;overflow:hidden}
.projection-mode .wall-rank ol{gap:3px}
.projection-mode .wall-rank li{grid-template-columns:1.1em minmax(0,1fr) auto;gap:4px}
.projection-mode .stage .wall-rank img,.projection-mode .stage.neon .wall-rank img{
 height:clamp(17px,5.8vh,55px);width:100%;object-fit:contain;object-position:center;background:#f5e2ee;border:0;box-shadow:none;
}
.projection-mode #stage-body{container-type:size;overflow:hidden;min-height:0;min-width:0;height:100%;width:100%;display:grid;place-items:center}
.projection-mode .stage:not(.neon) #stage-body figure{
 --caption-limit:min(25cqh,140px);height:auto;max-height:100%;width:fit-content;max-width:100%;display:flex;flex-direction:column;align-items:stretch;align-self:center;justify-self:center;background:#fffaf8;
}
.projection-mode .stage:not(.neon) #stage-body figure img{
 width:auto;height:auto;max-width:100%;max-height:calc(100cqh - 22px);object-fit:contain;object-position:center;background:transparent;align-self:center;
}
.projection-mode .stage:not(.neon) #stage-body figure:has(figcaption) img{max-height:calc(100cqh - min(14cqh,65px) - 18px)}
.projection-mode .stage:not(.neon) #stage-body figure:has(.stage-social) img{max-height:calc(100cqh - min(22cqh,120px) - 18px)}
.projection-mode .stage:not(.neon) #stage-body figcaption{max-width:100%;width:0;min-width:100%;max-height:var(--caption-limit);overflow:auto;font-size:clamp(14px,2.6vmin,33px);padding-inline:8px}
.projection-mode .stage.neon #stage-body figure{width:100%;gap:clamp(10px,2.5vw,32px)}
.projection-mode .stage.neon #stage-body figure img{width:auto;height:auto;max-width:100%;max-height:85cqh;justify-self:end;object-fit:contain}
.projection-mode .stage.neon #stage-body img:not(:only-child){min-width:0}
.projection-mode .stage.neon .neon-profile{max-height:100%;overflow:auto}
@media(max-width:670px) and (orientation:portrait){
 .projection-mode .stage .stage-layout,.projection-mode .stage.neon .stage-layout,.projection-mode .stage:not(.neon) .stage-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:5px}
 .projection-mode .stage .stage-layout:not(:has(.wall-qr:not([hidden]),.wall-rank:not([hidden]))){grid-template-rows:minmax(0,1fr)}
 .projection-mode .wall-side{display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;gap:6px}
 .projection-mode .wall-rank{flex:1;max-height:none;min-width:0}
 .projection-mode .wall-rank ol{grid-template-columns:repeat(auto-fit,minmax(min(100%,34px),1fr));gap:3px}
 .projection-mode .wall-rank li{grid-template-columns:minmax(0,1fr);justify-items:center;gap:1px}
 .projection-mode .stage .wall-rank img,.projection-mode .stage.neon .wall-rank img{height:clamp(20px,5vh,44px)}
 .projection-mode .wall-qr{width:86px;flex:none;margin-left:auto}
 .projection-mode .stage.neon #stage-body figure img{max-height:55cqh;justify-self:center}
}
@media(max-height:480px) and (orientation:landscape){
 .projection-mode .wall-qr{width:clamp(65px,18vh,90px);font-size:9px;padding:2px}
 .projection-mode .wall-rank{max-height:55%;padding:4px}
 .projection-mode .wall-rank h2{font-size:11px;margin-bottom:2px}
 .projection-mode .wall-rank ol{gap:1px}
 .projection-mode .stage .wall-rank img,.projection-mode .stage.neon .wall-rank img{height:clamp(11px,5vh,22px)}
}
#wall-rank-empty{color:#79415f;font-size:clamp(11px,1.55vmin,16px);margin:2px 0 0}
#wall-rank .rank-number{display:grid;min-width:1em;place-items:center;font-weight:850;color:#782a54}
@media(prefers-reduced-motion:no-preference){
 #wall-rank .rank-reveal .rank-number{animation:rank-number-in .30s cubic-bezier(.18,.75,.27,1.25) var(--rank-delay,0s) both}
 #wall-rank .rank-reveal img{animation:rank-photo-in .42s cubic-bezier(.17,.7,.3,1) calc(var(--rank-delay,0s) + .31s) both}
 #wall-rank .rank-reveal .rank-votes{animation:rank-score-in .27s ease-out calc(var(--rank-delay,0s) + .55s) both}
}
@keyframes rank-number-in{from{opacity:0;transform:translateY(7px) scale(.72)}to{opacity:1;transform:none}}
@keyframes rank-photo-in{from{opacity:0;transform:translateX(8px) scale(.94)}to{opacity:1;transform:none}}
@keyframes rank-score-in{from{opacity:0;transform:translateX(3px)}to{opacity:1;transform:none}}
/* Keep current and next images in the same cell for a quiet, continuous dissolve. */
#stage-body{isolation:isolate;position:relative}
#stage-body>figure{grid-area:1/1}
#stage-body>figure.stage-fade-in{z-index:1;animation:stage-dissolve-in .64s ease-out both}
#stage-body>figure.stage-fade-out{z-index:2;animation:stage-dissolve-out .64s ease-in both;pointer-events:none}
@keyframes stage-dissolve-in{from{opacity:.56;filter:saturate(.92)}to{opacity:1;filter:none}}
@keyframes stage-dissolve-out{from{opacity:1}to{opacity:0}}
.rank-show{position:absolute;inset:0;z-index:8;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:clamp(10px,2.25vh,27px);padding:clamp(14px,3.2vmin,42px) clamp(20px,6vw,115px);color:#fff6fb;background:radial-gradient(ellipse at 76% 22%,#a7477e 0,transparent 45%),radial-gradient(ellipse at 29% 84%,#50377f,transparent 53%),#2a173e;overflow:hidden}
.rank-show::before{content:"";position:absolute;inset:1.3vmin;border:1px solid #ffd2ed75;border-radius:clamp(9px,3vmin,29px);pointer-events:none}
.rank-show-top{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:clamp(17px,3.15vmin,33px);font-weight:840;z-index:1}
.rank-show-top .btn{background:#fff1f8;color:#6a254e;border-color:#b46b94}
#rank-show-card{min-width:0;min-height:0;height:100%;width:100%;display:grid;place-items:center}
.rank-show-slide{width:min(100%,1360px);height:100%;display:grid;grid-template-columns:minmax(105px,.52fr) minmax(0,1fr);align-items:center;gap:clamp(7px,4vw,55px);min-height:0;min-width:0}
.rank-show-number{display:grid;justify-items:center;align-content:center;color:#ffe4f3;text-shadow:0 7px 27px #4d163d80}.rank-show-number small{font-size:clamp(17px,4.5vmin,64px);font-weight:800}.rank-show-number strong{font-size:clamp(75px,24vmin,320px);line-height:.91;font-weight:880}
.rank-show-photo{height:100%;min-height:0;min-width:0;display:grid;grid-template-rows:minmax(0,1fr) auto;align-items:stretch;gap:clamp(5px,1vmin,12px);background:#fff5fa;border:1px solid #ffe0f1;border-radius:clamp(10px,2.5vmin,25px);padding:clamp(7px,1.3vmin,17px);box-shadow:0 12px 44px #0d071a73}
.stage .rank-show-photo img,.stage:fullscreen .rank-show-photo img,.projection-mode .stage.neon .rank-show-photo img{width:100%;height:100%;min-width:0;min-height:0;object-fit:contain;object-position:center;background:#f3e1ee;border-radius:8px}
.rank-show-caption{color:#582343;display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:clamp(15px,3.2vmin,38px);font-weight:760;line-height:1.2}.rank-show-caption .rank-show-likes{margin-left:auto;white-space:nowrap;color:#a42e69}.rank-show-caption .rank-show-name{overflow-wrap:anywhere}
#rank-show-progress{display:flex;gap:9px;justify-content:center;z-index:1}#rank-show-progress i{width:9px;height:9px;border-radius:50%;background:#f5c7df63}#rank-show-progress i.active{background:#ffd8ee}
@media(prefers-reduced-motion:no-preference){
 .rank-show-number{animation:show-rank-number .6s cubic-bezier(.19,.85,.34,1.15) both}
 .rank-show-photo{animation:show-rank-photo .57s cubic-bezier(.18,.71,.31,1) .54s both}
 .rank-show-likes{animation:show-rank-photo .28s ease-out 1s both}
}
@keyframes show-rank-number{from{transform:translateY(30px) scale(.74);opacity:0}to{transform:none;opacity:1}}
@keyframes show-rank-photo{from{transform:translateY(17px) scale(.955);opacity:0}to{transform:none;opacity:1}}
@media(max-width:620px) and (orientation:portrait){.rank-show-slide{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:10px}.rank-show-number strong{font-size:clamp(53px,15vmin,110px)}}
.emergency-btn{background:#8f2449;color:#fff5f8;border-color:#8f2449}.emergency-btn:hover{background:#75203f;color:#fff;border-color:#75203f}.emergency-btn:disabled{opacity:.55}
#onair-panel{border-inline-start:4px solid #9a345b;background:#fff9fc}#onair-status{flex-basis:100%;margin:0}#onair-status:empty{display:none}
.actions .emergency-btn{background:#fff0f6;border-color:#d6a1ba;color:#83254d}.actions .emergency-btn:hover{background:#8f2449;color:#fff}
