:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR",sans-serif;color:#29191e;background:#fff8f7;font-synthesis:none;--wine:#900d2e;--muted:#8d737b;--line:#eadde1;--soft:#faf4f5}*{box-sizing:border-box}body{margin:0;min-height:100svh;background:radial-gradient(ellipse at 0 0,#f4c2c5 0,transparent 42%),radial-gradient(ellipse at 100% 100%,#edc3cb 0,transparent 44%),#fff9f7}button,input,select{font:inherit}button{border:0;border-radius:12px;background:var(--wine);color:#fff;padding:13px 18px;font-weight:750;cursor:pointer;min-height:44px;transition:background .18s,transform .18s}button:hover{background:#740823}button:active{transform:translateY(1px)}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #b75b76;outline-offset:3px}a{color:var(--wine)}h1,h2,h3,p{margin:0}h1{font-size:clamp(28px,5vw,40px);letter-spacing:-1.5px;line-height:1.22}h2{font-size:22px;letter-spacing:-.7px}h3{font-size:16px}p{line-height:1.6}#app{padding:28px 20px 18px;max-width:900px;margin:auto}.card{background:#ffffffed;border:1px solid #ffffff;border-radius:28px;padding:30px;box-shadow:0 20px 60px #6f123114}.topline,.section-heading,.time-ends,.actions,.row,.stat-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:800;letter-spacing:.5px;color:var(--wine);background:#f7eaf0;border:1px solid #ebd6de;border-radius:30px;padding:7px 12px}.brand:before{content:'✓';display:inline-grid;place-items:center;width:18px;height:18px;color:white;background:var(--wine);border-radius:50%;font-size:12px}.edition{font-size:10px;letter-spacing:2px;color:var(--muted);font-weight:750}.intro{margin:21px 0 22px}.intro p{color:#80626e;font-size:14px;margin-top:9px}.timer-panel{background:linear-gradient(120deg,#8b0b2c,#c83649);border-radius:20px;color:#fff;padding:21px 23px}.timer-meta{display:flex;justify-content:space-between;align-items:center;gap:10px}.pill{font-size:11px;font-weight:750;display:inline-flex;gap:6px;align-items:center;background:#ffffff20;border:1px solid #ffffff35;border-radius:24px;padding:5px 9px}.dot{height:6px;width:6px;border-radius:50%;background:#a0f0b6}.timer-label{font-size:12px;color:#ffe3e9}.timer-value{font-size:35px;font-weight:800;letter-spacing:1px;font-variant-numeric:tabular-nums;margin-top:7px}.timer-caption{font-size:12px;color:#ffe4e9}.track{height:7px;border-radius:10px;background:#ffffff30;overflow:hidden;margin:14px 0 9px}.track span{display:block;height:100%;width:0%;background:#73df98;border-radius:inherit;transition:width 1s linear,background 1s}.time-ends{font-size:11px;font-variant-numeric:tabular-nums;color:#ffe5eb}.time-ends strong{color:white;font-size:12px}.closing-note{margin-top:11px;background:#ffffff1f;border-radius:8px;padding:8px;font-size:12px}.section-heading{margin:23px 0 13px}.section-heading h2{font-size:18px}.section-heading .muted{font-size:12px}.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.choice{display:flex;align-items:center;gap:10px;text-align:left;background:#fff;color:#34232b;border:1px solid var(--line);min-height:67px;padding:10px 12px;border-radius:13px}.choice:hover{background:#fcf6f8;border-color:#c99aa9}.choice:disabled{opacity:.55}.choice.selected{background:#f9edf1;border:2px solid var(--wine);padding:9px 11px}.choice .number{color:#b79ca7;background:#f8f3f5;border-radius:8px;min-width:28px;height:29px;display:grid;place-items:center;font-size:11px;font-weight:700}.choice.selected .number{color:#fff;background:var(--wine)}.choice .candidate-name{font-size:14px;overflow-wrap:anywhere;line-height:1.25;flex:1}.choice .check{height:18px;min-width:18px;border:1.5px solid #e4d6dc;border-radius:50%;display:grid;place-items:center;font-size:11px;color:transparent}.choice.selected .check{color:#fff;background:var(--wine);border-color:var(--wine)}.vote-footer{margin-top:17px}.vote-footer>button{width:100%;min-height:50px}.footnote{text-align:center;font-size:11px;color:var(--muted);margin-top:10px}.page-footer{font-size:10px;color:#aa8b98;display:flex;justify-content:space-between;padding:16px 7px;letter-spacing:.5px}.page-footer a{text-decoration:none;color:inherit}.empty{text-align:center;padding:35px 15px}.empty-mark{width:64px;height:64px;margin:0 auto 17px;border-radius:50%;display:grid;place-items:center;background:#f7eaf0;color:var(--wine);font-size:30px}.empty h2{margin-bottom:10px;font-size:21px}.empty p{font-size:14px;color:var(--muted)}.receipt{margin-top:18px;padding:18px 20px;border:1px solid #cce4d5;background:#f3fbf6;border-radius:14px;display:flex;gap:13px;align-items:center}.receipt .seal{color:#257044;font-size:23px}.receipt strong{font-size:15px}.receipt p{font-size:12px;color:#577564;margin-top:4px}.muted{color:var(--muted)}.error{padding:11px 14px;background:#fff0ef;border:1px solid #f2c8c3;border-radius:10px;color:#9c2730;font-size:13px;margin:12px 0}.optional-panel{margin-top:15px;border:1px solid var(--line);padding:16px;border-radius:16px;background:#fffcfd}.optional-panel h2{font-size:14px}.optional-panel .sub{font-size:10px;color:var(--muted);margin:5px 0 12px}.finalists{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.finalist{background:#f8ecf0;border-radius:10px;padding:10px 12px;flex:1;min-width:90px}.finalist span{display:block;font-size:10px;color:var(--wine);font-weight:800;margin-bottom:5px}.finalist strong{font-size:13px}.result-line{margin:11px 0}.result-label{display:flex;justify-content:space-between;gap:10px;font-size:12px}.result-track{height:5px;background:#f4e9ed;border-radius:8px;margin-top:6px;overflow:hidden}.result-track span{display:block;height:100%;background:#a5294c;border-radius:8px}.notice{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);padding:13px 20px;border-radius:12px;background:#36222c;color:#fff;font-size:13px;z-index:10;max-width:90vw;box-shadow:0 10px 30px #0002}.notice:empty{display:none}dialog{position:fixed;top:auto;bottom:25px;margin:auto;max-width:calc(100% - 28px);width:430px;border:1px solid #dbbdc8;border-radius:22px;padding:25px;background:#fff;box-shadow:0 18px 100px #59182d55;z-index:9}dialog h2{margin:10px 0}dialog p{font-size:14px}dialog .muted{font-size:12px;margin:7px 0 20px}.eyebrow{font-size:10px;color:var(--wine);font-weight:800;letter-spacing:1px}.secondary{background:#f4eaf0;color:var(--wine)}.secondary:hover{background:#ead7e1}.actions>*{flex:1}.login{max-width:460px;margin:35px auto}.field{display:block;font-size:13px;font-weight:700;margin:16px 0}.field input,.field select{margin-top:8px}input:not([type=checkbox]),select{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:10px;color:#3e2933;background:#fff;min-height:44px}input[type=checkbox]{accent-color:var(--wine);width:18px;height:18px}.admin-card{margin-bottom:18px}.admin-card .section-heading{margin-top:0}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.admin-grid .card{padding:24px}.stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:17px 0}.stat{background:var(--soft);padding:15px;border-radius:12px}.stat span{font-size:11px;color:var(--muted)}.stat strong{display:block;font-size:28px;margin-top:4px}.toggle{display:flex;align-items:center;gap:10px;font-size:13px;padding:12px 0;border-bottom:1px solid var(--line)}.toggle small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.inline-note{font-size:12px;color:var(--muted);line-height:1.6;margin:12px 0}.admin-buttons{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.admin-buttons button{font-size:12px;padding:10px 12px;flex:1;white-space:nowrap}.candidate-row{display:flex;gap:8px;margin:8px 0}.candidate-row span{min-width:20px;align-self:center;color:var(--muted);font-size:12px}.candidate-row button{padding:8px 12px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.small-button{font-size:11px;padding:8px 12px;min-height:34px}.full{width:100%}.history-item{padding:13px 0;border-bottom:1px solid var(--line);font-size:13px;display:flex;justify-content:space-between;gap:10px}.history-item small{display:block;color:var(--muted);margin-top:5px}.live-indicator{font-size:11px;color:#2e7b4a}.loading{margin-top:10vh}.admin-header{margin-bottom:20px}.divider{height:1px;background:var(--line);margin:20px 0}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(min-width:700px){#app.voter{max-width:660px;padding-top:32px}.choices{gap:11px}.choice{min-height:70px}.card{padding:30px 32px}}
@media(max-width:600px){#app{padding:12px 12px 0}.card{padding:20px 17px;border-radius:22px}.edition{font-size:9px;letter-spacing:1px}.intro{margin:17px 0}.intro h1{font-size:28px}.intro p{font-size:12px}.timer-panel{padding:16px 17px;border-radius:16px}.timer-value{font-size:30px}.choice{min-height:56px;padding:8px;gap:7px}.choice.selected{padding:7px}.choice .number{min-width:23px;height:26px;font-size:10px}.choice .candidate-name{font-size:12px}.choice .check{min-width:15px;height:15px}.choices{gap:7px}.section-heading{margin:18px 0 10px}.section-heading h2{font-size:16px}.vote-footer{margin-top:13px}.admin-grid{grid-template-columns:1fr}.admin-grid .card{padding:20px 17px}.two-fields{grid-template-columns:1fr}.admin-header h1{font-size:27px}.timer-meta .pill{font-size:10px}.page-footer{padding-top:13px}.optional-panel{padding:13px}.result-line{margin:8px 0}.finalist{padding:8px}.receipt{padding:14px}.topline{gap:6px}.admin-card .row{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Presenter: a dedicated, authenticated stage screen. */
body.presenter-page{background:radial-gradient(ellipse at 18% 0,#542a37 0,transparent 45%),#130e15;color:#f7edf1}#app.presenter{max-width:1320px;padding:32px 36px 18px}.presenter-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.presenter-header .eyebrow{color:#d7aa77;letter-spacing:3px}.presenter-header h1{font-size:clamp(30px,4vw,48px);margin:8px 0;letter-spacing:-1px}.presenter-header p{font-size:12px;color:#b6a2af}.presenter-actions{display:flex;align-items:center;gap:10px}.presenter-actions a{color:#cdb2c0;font-size:12px}.presenter-actions button{background:#ffffff0d;color:#e4cfd9;border:1px solid #ffffff16}.presenter-summary{display:grid;grid-template-columns:.8fr 1.2fr;gap:24px;align-items:stretch;margin-bottom:24px}.presenter-total{padding:20px 26px;border:1px solid #ffffff16;border-radius:20px;background:#ffffff05}.presenter-total>span{font-size:12px;color:#c0a4b4}.presenter-total>strong{display:block;font-size:60px;line-height:1.1;font-variant-numeric:tabular-nums;font-weight:850;letter-spacing:-2px;margin:10px 0}.presenter-total small{font-size:17px;color:#b99aaa;margin-left:10px;font-weight:500}.presenter-total p{font-size:10px;color:#9c8091}.presenter .timer-panel{height:100%;background:linear-gradient(120deg,#3e1b2d,#712a42);border:1px solid #ffffff12}.presenter .timer-value{font-size:35px}.presenter-wait{height:100%;display:grid;place-items:center;border:1px solid #ffffff16;border-radius:20px;color:#ae91a1;font-size:14px}.board-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;padding:0 4px}.board-heading h2{font-size:12px;letter-spacing:3px;color:#c59dad}.board-heading>span{font-size:11px;color:#9b7e8f}.ranking-board{--rank-slot:104px;--rank-count:0;position:relative;height:calc(var(--rank-slot)*var(--rank-count))}.leaderboard-row{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;gap:22px;border:1px solid #ffffff10;border-radius:15px;background:#ffffff04;padding:12px 24px;transition:transform .8s cubic-bezier(.22,.75,.2,1),background .6s,border-color .6s,box-shadow .6s;will-change:transform}.live-rank{font-size:25px;min-width:40px;font-weight:800;font-variant-numeric:tabular-nums;color:#715766}.live-candidate{flex:1;min-width:0}.live-name{font-size:clamp(16px,2.2vw,25px);font-weight:650;overflow-wrap:anywhere;line-height:1.15;margin-bottom:10px}.live-track{height:5px;background:#ffffff0b;border-radius:8px;overflow:hidden}.live-track span{height:100%;display:block;background:#886173;border-radius:8px;transition:width .8s cubic-bezier(.22,.75,.2,1),background .6s}.live-votes{min-width:86px;text-align:right;font-variant-numeric:tabular-nums}.live-votes strong{font-size:clamp(17px,2.3vw,27px);display:block;font-weight:750}.live-votes>span{font-size:11px;color:#967e8b;display:block;margin-top:4px}.rank-1{border-color:#edbf72;background:linear-gradient(100deg,#6c4822cc,#36251ca0);box-shadow:0 0 32px #d5a15216}.rank-1 .live-rank,.rank-1 .live-votes strong{color:#ffe0a1}.rank-1 .live-name{color:#fff0ce;font-weight:850}.rank-1 .live-track span{background:linear-gradient(90deg,#bc894a,#ffdf9b)}.rank-1 .live-votes>span{color:#d2b584}.rank-2{background:linear-gradient(100deg,#54485688,#292130);border-color:#b9a6bd80}.rank-2 .live-rank{color:#e0d5e8}.rank-2 .live-name{font-weight:750;color:#eee5f3}.rank-2 .live-track span{background:#bda8cb}.rank-3{background:#3b252b77;border-color:#ac795660}.rank-3 .live-rank{color:#d1a17f}.rank-3 .live-track span{background:#be8b6e}.presenter-warning{font-size:13px;color:#ffbfab;background:#7f342b55;border-radius:12px}.presenter-warning:not(:empty){padding:12px 16px;margin-bottom:20px}.presenter-footer{display:flex;justify-content:space-between;color:#765465;font-size:10px;letter-spacing:2px;margin-top:18px}.presenter .optional-panel{background:#ffffff06;border-color:#ffffff16;color:#eedce5}.presenter .optional-panel .sub{color:#9e7d90}.presenter .finalist{background:#ffffff0a}.presenter .finalist span{color:#e3b2c5}.presenter .empty{color:#ac8c9f}
@media(max-width:600px){#app.presenter{padding:22px 14px 12px}.presenter-header{align-items:flex-start;gap:12px}.presenter-header h1{font-size:28px}.presenter-actions{flex-wrap:wrap;justify-content:flex-end;max-width:125px;gap:6px}.presenter-actions .small-button{font-size:10px;padding:6px 8px}.presenter-summary{grid-template-columns:1fr;gap:12px}.presenter-total{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px}.presenter-total>span{font-size:11px;max-width:85px}.presenter-total>strong{font-size:42px;margin:0}.presenter-total p{max-width:130px}.presenter-total small{font-size:14px}.presenter .timer-panel{padding:15px 17px}.leaderboard-row{padding:10px 12px;gap:10px}.live-rank{min-width:27px;font-size:20px}.live-name{font-size:15px}.live-votes{min-width:62px}.live-votes strong{font-size:19px}.board-heading>span{font-size:9px}.presenter-footer{font-size:8px}}

[hidden]{display:none!important}.admin-grid.single-column{grid-template-columns:1fr}#admin-total{font-size:inherit;color:inherit}

/* Row geometry depends on width only, never on mobile browser chrome or live votes. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.ranking-board .leaderboard-row{height:calc(var(--rank-slot) - 10px);transform:translateY(calc(var(--rank-slot)*var(--rank-index,0)));overflow:hidden}
.live-rank{flex:0 0 40px}.live-votes{flex:0 0 104px}.live-votes strong,.live-votes>span{white-space:nowrap}.live-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.2;max-height:2.4em}
#admin-leaderboard{--rank-slot:88px;margin-top:14px}
#admin-leaderboard .leaderboard-row{padding:10px 14px;gap:12px;background:#fcf8fa;border-color:#eadde1;color:#36232d}
#admin-leaderboard .live-name{font-size:16px}#admin-leaderboard .live-rank{font-size:22px;color:#a38091}#admin-leaderboard .live-votes strong{font-size:21px}#admin-leaderboard .live-track{background:#f0e3e9}
#admin-leaderboard .rank-1{background:#fff7e7;border-color:#d6a64b;box-shadow:0 3px 16px #b2812812}#admin-leaderboard .rank-1 .live-rank,#admin-leaderboard .rank-1 .live-votes strong{color:#9c6511}#admin-leaderboard .rank-1 .live-name{color:#6e4b16}
#admin-leaderboard .rank-2{background:#f4f2f8;border-color:#b8afc5}#admin-leaderboard .rank-2 .live-rank,#admin-leaderboard .rank-2 .live-name{color:#675674}
#admin-leaderboard .rank-3{background:#fcf1eb;border-color:#d6ae93}#admin-leaderboard .rank-3 .live-rank{color:#a06945}
@media(max-width:600px){.ranking-board,#admin-leaderboard{--rank-slot:80px}.live-rank{flex-basis:27px}.live-votes{flex-basis:72px}.live-name{margin-bottom:7px}#admin-leaderboard .live-name{font-size:14px}#admin-leaderboard .live-votes strong{font-size:18px}#admin-leaderboard .leaderboard-row{padding:10px;gap:9px}}
