:root{color:#fff;background:#01020a;font-family:Songti TC,"Noto Serif TC",PMingLiU,serif;font-synthesis:none;text-rendering:optimizeLegibility;--night: #05071a;--gold: #deb96c;--gold-light: #f0d08a;--cyan: #5bc6d1;--cyan-dark: #143a42;--white: #ffffff;--muted: rgba(255, 255, 255, .82)}*{box-sizing:border-box}html,body,#root{min-width:320px;min-height:100%;margin:0}body{min-height:100svh;background:#01020a}button,input{font:inherit;letter-spacing:0}button{-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible{outline:3px solid var(--gold-light);outline-offset:3px}.app-shell{display:flex;justify-content:center;min-height:100svh;overflow-x:hidden;background:#01020a}.page-shell{display:flex;flex:1;flex-direction:column;width:100%;max-width:28rem;min-height:100svh;padding:max(1rem,env(safe-area-inset-top)) 1.35rem max(1rem,env(safe-area-inset-bottom));overflow-x:hidden;overflow-y:auto;background-color:var(--night);background-image:url(/assets/voting-bg.png);background-image:image-set(url(/assets/voting-bg-tall.webp) type("image/webp"),url(/assets/voting-bg.png) type("image/png"));background-position:center;background-repeat:no-repeat;background-size:cover}.page-shell:focus{outline:none}.page-shell--landing{justify-content:flex-end;padding-bottom:max(clamp(4.25rem,11svh,6.75rem),env(safe-area-inset-bottom));background-image:url(/assets/voting-index.png);background-image:image-set(url(/assets/voting-index-tall.webp) type("image/webp"),url(/assets/voting-index.png) type("image/png"))}.page-shell--registration{justify-content:space-between;padding-top:max(51svh,env(safe-area-inset-top));background-image:url(/assets/voting-registration.png);background-image:image-set(url(/assets/voting-registration-tall.webp) type("image/webp"),url(/assets/voting-registration.png) type("image/png"))}.page-shell--ballots,.page-shell--complete{background-image:url(/assets/voting-ballot.png);background-image:image-set(url(/assets/voting-ballot-tall.webp) type("image/webp"),url(/assets/voting-ballot.png) type("image/png"))}.page-shell--ballots{justify-content:space-between;padding-top:max(78%,env(safe-area-inset-top))}.page-shell--complete{justify-content:flex-start;padding-top:max(40svh,env(safe-area-inset-top))}.page-shell--candidates,.page-shell--best-dress-detail{gap:1rem;background-image:url(/assets/voting-bg.png);background-image:image-set(url(/assets/voting-bg-tall.webp) type("image/webp"),url(/assets/voting-bg.png) type("image/png"))}@media(min-aspect-ratio:1/2){.page-shell{background-image:url(/assets/voting-bg.png);background-image:image-set(url(/assets/voting-bg-short.webp) type("image/webp"),url(/assets/voting-bg.png) type("image/png"))}.page-shell--landing{background-image:url(/assets/voting-index.png);background-image:image-set(url(/assets/voting-index-short.webp) type("image/webp"),url(/assets/voting-index.png) type("image/png"))}.page-shell--registration{background-image:url(/assets/voting-registration.png);background-image:image-set(url(/assets/voting-registration-short.webp) type("image/webp"),url(/assets/voting-registration.png) type("image/png"))}.page-shell--ballots,.page-shell--complete{background-image:url(/assets/voting-ballot.png);background-image:image-set(url(/assets/voting-ballot-short.webp) type("image/webp"),url(/assets/voting-ballot.png) type("image/png"))}.page-shell--ballots{padding-top:max(72%,env(safe-area-inset-top))}}.screen-reader-title{width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.button{display:inline-flex;align-items:center;justify-content:center;min-width:5.75rem;min-height:2.75rem;border:1px solid transparent;border-radius:2px;padding:.6rem 1.25rem;cursor:pointer;transition:background-color .15s ease,color .15s ease,border-color .15s ease,transform .15s ease}.button:not(:disabled):active{transform:scale(.98)}.button--primary{color:var(--cyan-dark);background:var(--cyan)}.button--primary:not(:disabled):hover{color:var(--cyan-dark);background:#88dce3}.button--primary:disabled{cursor:not-allowed;opacity:.45}.button--text{color:#329eb2;background:transparent}.button--text:hover{color:var(--cyan-dark);background:#5bc6d124}.button--wide{width:100%}.page-actions{display:flex;justify-content:center;width:100%}.page-actions--landing{padding-inline:.15rem}.page-note{margin:auto 0 0;color:var(--white);font-size:.88rem;text-align:center;text-shadow:0 1px 7px rgba(0,0,0,.9)}.registration-form{display:flex;flex-direction:column;align-items:center;gap:1.15rem;width:100%}.form-fields{display:flex;flex-direction:column;gap:.85rem;width:100%}.form-fields input{width:100%;min-height:2.8rem;border:1px solid rgba(255,255,255,.65);border-radius:2px;padding:.62rem .8rem;color:#191919;background:#fffffff7}.form-fields input::placeholder{color:#202020;opacity:1}.field-error{margin:-.45rem 0 0;color:#fff;font-size:.82rem;text-shadow:0 1px 6px rgba(0,0,0,.95)}.flow-error,.flow-status{margin:0;color:var(--white);font-size:.86rem;line-height:1.45;text-align:center;text-shadow:0 1px 6px rgba(0,0,0,.95)}.flow-error--dialog{color:#7a1522;text-shadow:none}.flow-recovery{display:flex;flex-direction:column;align-items:center;gap:.55rem}.flow-recovery button{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:2.5rem;border:2px solid var(--white);padding:.45rem .9rem;color:var(--white);background:#040618a3;font:inherit;cursor:pointer}.flow-recovery button:disabled{cursor:wait;opacity:.62}.ballot-loading-dialog{width:min(calc(100% - 2rem),12rem);border:1px solid rgba(240,208,138,.64);border-radius:2px;padding:0;color:var(--white);background:#05071af5;box-shadow:0 1.5rem 4rem #00000094;touch-action:none;overscroll-behavior:contain}.ballot-loading-dialog::backdrop{background:#01020ac7}.ballot-loading-dialog__content{display:flex;align-items:center;justify-content:center;gap:.75rem;min-height:5.5rem;padding:1.25rem}.ballot-loading-dialog__content p{margin:0;font-size:1rem}.ballot-loading-dialog__spinner{flex:0 0 auto;color:var(--gold-light);animation:ballot-loading-spin .9s linear infinite}@keyframes ballot-loading-spin{to{transform:rotate(360deg)}}.ballot-selection{display:flex;flex-direction:column;align-items:center;gap:1.15rem;width:100%}.ballot-selection h2{margin:0;color:var(--white);font-size:1.55rem;font-weight:400}.ballot-list{display:flex;flex-direction:column;gap:.85rem;width:100%}.ballot-option{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.1rem;min-height:6.2rem;border:3px solid var(--white);border-radius:0;padding:.8rem;color:var(--white);background:#0406187a;font-size:1.65rem;cursor:pointer;transition:color .15s ease,background-color .15s ease,border-color .15s ease}.ballot-option:hover{border-color:var(--gold-light);color:var(--gold-light);background:#040618b8}.ballot-option:disabled{cursor:not-allowed;opacity:.62}.ballot-option small{margin-top:.35rem;font-size:.78rem}.candidate-header{display:flex;align-items:flex-start;justify-content:center;gap:.45rem;width:100%;min-height:4.4rem;text-align:center}.candidate-header>div{display:flex;flex-direction:column;align-items:center;gap:.25rem;flex:1}.icon-button,.candidate-header__balance{width:2.75rem;min-width:2.75rem;height:2.75rem}.icon-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.72);border-radius:50%;padding:0;color:var(--white);background:#05071a8f;cursor:pointer}.icon-button:hover{border-color:var(--gold-light);color:var(--gold-light)}.candidate-header h1,.candidate-header p{margin:0}.candidate-header h1{display:flex;flex-direction:column;font-size:1.85rem;font-weight:500;line-height:1.18}.candidate-header p{font-size:1.15rem}.candidate-header--detail{min-height:3.5rem}.candidate-header--detail h1{flex:1;font-size:2rem;text-align:center}.candidate-grid{display:grid;flex:1;gap:.7rem;width:100%;align-content:start}.candidate-grid--dress{grid-template-columns:repeat(3,minmax(0,1fr))}.candidate-grid--talent{grid-template-columns:repeat(2,minmax(0,1fr))}.candidate-card{display:flex;align-self:start;flex-direction:column;gap:.3rem;min-width:0;border:2px solid transparent;border-radius:0;padding:.25rem;color:var(--white);background:#00000061;text-align:center;cursor:pointer;transition:border-color .15s ease,background-color .15s ease}.candidate-card:hover{border-color:#ffffffa6}.candidate-card[aria-pressed=true]{border-color:var(--gold);background:#20161cbd;box-shadow:inset 0 0 0 1px var(--gold)}.candidate-photo{display:flex;flex:none;align-items:center;justify-content:center;width:100%;aspect-ratio:1 / 1;border:1px solid rgba(255,255,255,.25);color:#ffffffd1;background:#05050a;overflow:hidden;font-family:Georgia,Times New Roman,serif;font-size:1.75rem}.candidate-photo img{width:100%;height:100%;object-fit:cover}.candidate-grid--dress .candidate-card{padding:0}.candidate-grid--dress .candidate-photo{aspect-ratio:3 / 4}.candidate-card[aria-pressed=true] .candidate-photo{border-color:var(--gold-light);color:var(--gold-light)}.candidate-copy{display:flex;flex-direction:column;gap:.05rem;min-height:2.45rem}.candidate-name,.candidate-detail{overflow-wrap:anywhere}.candidate-name{font-size:.88rem}.candidate-detail{color:var(--muted);font-size:.82rem}.best-dress-detail{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:1.1rem;width:100%}.best-dress-detail__photo{display:flex;align-items:center;justify-content:center;width:min(76%,17rem);aspect-ratio:3 / 4;border:5px solid var(--white);color:#ffffffd1;background:#05050a;font-family:Georgia,Times New Roman,serif;font-size:2.6rem}.best-dress-detail__photo .candidate-photo{height:100%;border:0}.completion-content{display:flex;flex-direction:column;gap:1.15rem;width:100%;text-align:center}.completion-content h2{margin:0;font-size:1.9rem;font-weight:400}.vote-dialog,.already-voted-dialog,.flow-error-dialog,.ballot-status-dialog{width:min(calc(100% - 2rem),23rem);border:0;border-radius:2px;padding:0;color:#181818;background:#fff;box-shadow:0 1.5rem 4rem #00000080}.vote-dialog::backdrop,.already-voted-dialog::backdrop,.flow-error-dialog::backdrop,.ballot-status-dialog::backdrop{background:#000000bd}.dialog-content{display:flex;flex-direction:column;gap:1.25rem;padding:2.25rem 1.8rem}.dialog-content h2,.dialog-content p{margin:0}.dialog-content h2{color:var(--cyan);font-size:1.85rem;font-weight:500;text-align:center}.dialog-content p{font-size:1.08rem;line-height:1.6}.dialog-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.5rem}.dialog-actions .button{display:inline-flex;align-items:center;justify-content:center;gap:.45rem}.dialog-content--flow-message{align-items:stretch}.dialog-content--flow-message>p{text-align:center}.dialog-content--reminder{align-items:stretch;gap:1.8rem;min-height:12rem}.dialog-content--reminder p{display:flex;flex:1;align-items:center;justify-content:center;text-align:center}.dialog-close{align-self:flex-end;width:2.5rem;height:2.5rem;border:0;padding:0;color:#303030;background:transparent;font-size:1.8rem;font-weight:300;line-height:1;cursor:pointer}@media(max-width:359px){.page-shell{padding-inline:1rem}.ballot-option{min-height:5.85rem;font-size:1.45rem}.candidate-header h1{font-size:1.65rem}.candidate-grid{gap:.5rem}.candidate-name{font-size:.8rem}.candidate-detail{font-size:.75rem}}@media(max-height:700px){.page-shell--landing{padding-bottom:max(3.75rem,env(safe-area-inset-bottom))}.page-shell--registration{padding-top:max(49svh,env(safe-area-inset-top))}.page-shell--complete{padding-top:max(38svh,env(safe-area-inset-top))}.candidate-header{min-height:3.4rem}.candidate-header h1{font-size:1.6rem}.candidate-header p{font-size:1rem}.candidate-grid--talent .candidate-photo{aspect-ratio:1.35 / 1}.candidate-copy{min-height:2.15rem}.best-dress-detail__photo{width:min(68%,14rem)}}@media(max-height:600px){.page-shell--candidates{gap:.45rem;padding-block:max(.65rem,env(safe-area-inset-top)) max(.65rem,env(safe-area-inset-bottom))}.page-shell--candidates .candidate-header{min-height:3rem}.candidate-grid--talent{gap:.35rem .5rem}.candidate-grid--talent .candidate-photo{aspect-ratio:1.5 / 1}.candidate-copy{min-height:2.2rem}.page-shell--candidates .page-actions .button{min-height:2.5rem;padding-block:.45rem}.page-shell--candidates .page-note{font-size:.8rem}}@media(min-width:33rem){.app-shell{align-items:flex-start;padding-block:1rem}.page-shell{flex:0 1 auto;width:calc((100svh - 2rem)*.462);max-width:28rem;min-height:calc(100svh - 2rem);border:1px solid rgba(222,185,108,.24)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important}.ballot-loading-dialog__spinner{animation:none}}.result-display{display:flex;flex-direction:column;width:100%;min-width:0;min-height:100vh;padding:3rem clamp(2rem,3.35vw,4rem) 2rem;overflow:hidden;background-color:#05071a;background-position:center;background-repeat:no-repeat;background-size:cover}.result-display--dress{background-image:url(/assets/display-best-dress.jpg)}.result-display--talent{background-image:url(/assets/display-got-talent.jpg)}.result-content{display:flex;flex:1;flex-direction:column;justify-content:center;gap:1.5rem;min-width:0;margin-left:clamp(18rem,24vw,28rem)}.result-display--talent .result-content{justify-content:flex-end;padding-bottom:2rem}.result-heading{display:flex;align-items:baseline;justify-content:space-between;gap:1.5rem}.result-heading h1,.result-heading p{margin:0}.result-heading h1{color:var(--gold-light);font-size:2.5rem;font-weight:500;text-shadow:0 2px 14px #000000}.result-heading p{color:var(--white);font-size:1.25rem}.result-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;gap:1rem;width:100%}.result-display--dress .result-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.result-candidate{display:flex;flex-direction:column;min-width:0;border:1px solid rgba(240,208,138,.7);border-radius:2px;padding:.55rem;color:var(--white);background:#020514d1;box-shadow:0 0 24px #1672b44d;text-align:center}.result-candidate__image{display:grid;width:100%;aspect-ratio:3 / 4;overflow:hidden;background:#07091f}.result-display--talent .result-candidate__image{aspect-ratio:4 / 3}.result-candidate__image img,.result-candidate__image strong{grid-area:1 / 1}.result-candidate__image img{width:100%;height:100%;object-fit:cover}.result-candidate__image strong{align-self:end;justify-self:start;min-width:3rem;padding:.25rem .55rem;color:#071827;background:var(--gold-light);font-size:1.75rem}.result-candidate h2,.result-candidate p{margin:0;overflow-wrap:anywhere}.result-candidate h2{margin-top:.5rem;font-size:1.25rem;font-weight:500}.result-candidate p{color:var(--muted);font-size:1rem}.result-candidate .result-candidate__votes{margin-top:.35rem;color:var(--gold-light);font-size:1.2rem;font-weight:600}.result-connection{align-self:flex-end;border:1px solid rgba(255,255,255,.45);padding:.35rem .65rem;color:var(--white);background:#000000b8;font-size:.8rem}@media(max-width:75rem){.result-display{padding:2rem clamp(1rem,3vw,2rem) 1.5rem}.result-content{gap:1rem;margin-left:clamp(5rem,14vw,10rem)}.result-grid{gap:.65rem}}@media(max-width:52rem){.result-display{padding:1.25rem clamp(.75rem,2.5vw,1.25rem) 1rem}.result-content{gap:.75rem;margin-left:0}.result-grid{gap:.5rem}.result-candidate{padding:.35rem}.result-candidate__image strong{min-width:2.25rem;padding:.2rem .4rem;font-size:1.25rem}}@media(max-height:800px){.result-display{padding-block:1.5rem}.result-heading h1{font-size:2rem}.result-candidate h2{font-size:1rem}.result-candidate p{font-size:.85rem}}
