:root{font-family:Inter,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#243e37;background:#f7f8f2;font-synthesis:none;--ink:#243e37;--muted:#839087;--line:#e7ebe2;--orange:#f76a4c;--green:#235b47}
*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit}button:disabled{cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #e4ae41;outline-offset:4px}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[hidden]{display:none!important}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.app-shell{max-width:1440px;padding:0 52px;margin:auto}.topbar{height:105px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font-size:20px;font-weight:750;letter-spacing:1px}.brand-icon{height:43px;width:43px;background:var(--orange);border-radius:13px;display:grid;place-items:center;transform:rotate(-6deg);color:#fff9ed}.brand-icon svg{width:27px;height:27px;fill:currentColor;stroke-width:1}.brand-by{display:block;font-size:8px;font-weight:600;letter-spacing:2px;margin-top:5px;color:#819084}.tabs{display:flex;padding:5px;border-radius:12px;background:#edf0e8;gap:4px}.tab{border:0;background:transparent;border-radius:8px;padding:11px 21px;display:flex;align-items:center;gap:8px;font-size:13px;color:#7f8a80;white-space:nowrap}.tab svg{width:17px;height:17px}.tab.active{background:#fff;color:#294a3c;box-shadow:0 2px 5px #263c3210}.nav-count{font-size:10px;background:#e1e7dd;border-radius:5px;padding:2px 5px}.help-button{background:none;border:0;display:flex;gap:8px;align-items:center;font-size:12px;color:#7d887e}.help-button>span:first-child{border:1.5px solid #94a094;width:18px;height:18px;border-radius:50%;font-weight:600}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:37px 0 30px}.eyebrow{font-size:9px;letter-spacing:2px;color:#748773;font-weight:700;display:flex;align-items:center;gap:7px}.eyebrow>span{width:5px;height:5px;border-radius:50%;background:#709474}.page-heading h1{font-size:30px;letter-spacing:1px;font-weight:700;line-height:1.5;margin:10px 0 6px}.heading-spark{color:var(--orange);font-size:32px;display:inline-block;margin-left:12px;vertical-align:middle}.page-heading p{font-size:12px;color:#7f8c80;margin:0;letter-spacing:.4px}.edition{font-size:10px;letter-spacing:2px;align-self:flex-end;color:#a3aca0;margin-bottom:6px}.edition>span{display:block;font-size:9px;letter-spacing:1px;margin-top:9px;text-align:right}.workspace{display:grid;grid-template-columns:310px minmax(0,1fr);gap:22px;align-items:stretch}.setup-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:26px 23px;display:flex;flex-direction:column}.panel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}.panel-title h2{font-size:16px;margin:0;font-weight:650}.step-label{font-size:8px;letter-spacing:1.6px;color:#a1aca0}.setup-section{padding:23px 0;border-bottom:1px solid #edf0e8}.field-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.field-heading label{font-size:12px;font-weight:600}.little-label{font-size:9px;color:#a5afa3;font-variant-numeric:tabular-nums}.roster-button{display:flex;align-items:center;width:100%;gap:12px;background:#f6f8f1;border:1px dashed #d7dfd1;border-radius:10px;padding:16px 13px;text-align:left}.roster-button:hover{background:#eff4e8;border-color:#8dac81}.roster-icon{width:35px;height:35px;background:#e9efdf;border-radius:10px;display:grid;place-items:center;color:#5a7750}.roster-icon svg{width:18px;height:18px}.roster-text{flex:1;min-width:0}.roster-text strong{font-size:14px;font-weight:650}.roster-text small{display:block;font-size:9px;color:#919b8d;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.roster-plus{font-size:21px;color:#78926a}.roster-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:11px;gap:6px;font-size:10px;color:#8a9586}.text-button{padding:0;background:none;border:0;color:#577a5b;font-size:11px;white-space:nowrap;line-height:1.7}.text-button:hover{text-decoration:underline}.setup-section input[type=text]{width:100%;border:1px solid #e3e8dc;border-radius:8px;padding:12px 13px;font-size:12px;background:#fff;outline-offset:1px;color:var(--ink)}.count-row{display:flex;align-items:center;justify-content:space-between;margin-top:18px}.count-row>label{font-size:12px;color:#70816e}.stepper{display:flex;align-items:center;border:1px solid #e2e7dc;border-radius:7px;overflow:hidden;height:34px}.stepper button{border:0;background:#f6f8f2;width:30px;height:100%;color:#7e8e74;font-size:18px}.stepper input{width:43px;min-width:0;border:0;text-align:center;font-size:13px;color:var(--ink);appearance:textfield;-moz-appearance:textfield}.stepper input::-webkit-inner-spin-button,.stepper input::-webkit-outer-spin-button{appearance:none;margin:0}.rules-section{border:0;padding-bottom:25px}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;position:relative}.switch-row strong{font-size:12px;font-weight:500}.switch-row small{display:block;font-size:9px;color:#98a08f;margin-top:7px}.switch-row input{position:absolute;right:0;opacity:0;width:34px;height:24px}.switch-track{background:#b8c3b5;border-radius:20px;width:34px;height:20px;position:relative;flex-shrink:0;transition:background .2s}.switch-track:after{content:"";position:absolute;width:14px;height:14px;border-radius:50%;background:#fff;top:3px;left:3px;transition:transform .2s}.switch-row input:checked+.switch-track{background:#40744e}.switch-row input:checked+.switch-track:after{transform:translateX(14px)}.switch-row input:focus-visible+.switch-track{outline:3px solid #e4ae41;outline-offset:3px}.setup-note{margin-top:auto;padding-top:19px;border-top:1px solid var(--line);display:flex;align-items:center;gap:6px;font-size:9px;color:#97a18e;white-space:nowrap}.setup-note svg{width:12px;height:12px}.draw-stage{background:#edf2e6;min-height:535px;border:1px solid #e1e8d8;border-radius:18px;position:relative;overflow:hidden;display:flex;flex-direction:column}.stage-top{display:flex;justify-content:space-between;align-items:center;padding:21px 23px;z-index:2;flex-shrink:0}.live-badge{display:flex;align-items:center;gap:7px;border:1px solid #d7e1cc;background:#f7faefbb;border-radius:20px;padding:6px 10px;font-size:9px;color:#738469}.live-badge>span:first-child{width:5px;height:5px;background:#7d9d62;border-radius:50%}.stage-tools{display:flex;gap:8px}.icon-button{display:flex;justify-content:center;align-items:center;border:1px solid #dce4d3;background:#ffffff50;width:31px;height:31px;border-radius:8px;color:#7e9074;position:relative}.icon-button svg{width:14px;height:14px}.icon-button:hover{background:#fff}.sound-slash{position:absolute;width:20px;height:1.5px;background:currentColor;transform:rotate(-45deg)}[aria-pressed=true] .sound-slash{display:none}.stage-body{display:flex;flex:1;align-items:center;justify-content:center;position:relative;min-height:270px}.stage-content{text-align:center;z-index:1;position:relative;padding:0 30px;width:100%}.orbit{position:absolute;width:335px;height:335px;border:1px solid #e1e8d7;border-radius:50%;left:50%;top:43%;transform:translate(-50%,-50%);pointer-events:none}.orbit-two{width:450px;height:450px;border-style:dashed;border-color:#e2e9d9}.ticket-art{height:141px;width:160px;margin:0 auto 7px;position:relative}.ticket{width:113px;height:135px;border-radius:12px;background:#fffdf2;border:1px solid #ede5ce;position:absolute;left:20px;top:-6px;transform:rotate(-11deg);box-shadow:4px 8px 0 #4262400b;display:flex;align-items:center;flex-direction:column;overflow:hidden}.ticket-shadow{position:absolute;left:37px;top:0;background:#d0dcbc;border-radius:12px;width:113px;height:133px;transform:rotate(7deg)}.ticket-top{font-size:5px;letter-spacing:1px;padding:14px 0;color:#939377}.ticket svg{color:#f17b50;width:59px;height:59px;fill:#f3ac6c;stroke:#f08253;stroke-width:1.2;filter:drop-shadow(2px 3px 0 #ffe3b5)}.ticket-bottom{margin-top:auto;width:100%;font-size:7px;border-top:1px dashed #dcd9c5;padding:10px;display:flex;justify-content:space-between;gap:4px;color:#929478}.ticket-bottom span{font-size:5px}.ticket-mini-star{color:var(--orange);font-size:40px;position:absolute;top:-18px;right:-4px;transform:rotate(10deg)}.stage-kicker{font-size:8px;letter-spacing:3px;color:#8c9b79;margin:13px 0 10px;font-weight:500}.stage-title{font-size:30px;letter-spacing:2px;line-height:1.4;font-weight:650;margin:0;color:#35563e}.stage-description{font-size:11px;color:#8f9d80;letter-spacing:.7px;margin:13px 0 0}.decor{position:absolute;color:#a8bc90;pointer-events:none}.decor-one{font-size:33px;top:9%;left:18%;transform:rotate(-8deg)}.decor-two{font-size:28px;right:15%;top:63%;color:#a1b587}.decor-three{font-size:20px;right:22%;top:3%;color:#b5c69d}.decor-dot{width:7px;height:7px;background:#eeb786;border-radius:50%;position:absolute;left:20%;top:74%}.stage-bottom{padding:29px 24px 21px;text-align:center;z-index:2}.draw-summary{font-size:10px;color:#839773;margin-bottom:15px;display:flex;align-items:center;justify-content:center;gap:7px}.draw-summary>span:first-child{color:#63815a;font-weight:600;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.draw-summary strong{font-weight:500}.summary-dot{opacity:.6}.draw-button{border:0;background:var(--orange);color:white;width:272px;max-width:100%;height:53px;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:10px;box-shadow:0 4px 0 #dc5a3f;font-size:15px;font-weight:600;letter-spacing:1.5px;margin:0 auto;transition:background .2s,transform .2s,box-shadow .2s}.draw-button>svg:first-child{width:17px;height:17px}.button-arrow{width:17px;height:17px;margin-left:30px;opacity:.85}.draw-button:hover:enabled{background:#f15a3c;transform:translateY(-1px);box-shadow:0 5px 0 #dc5a3f}.draw-button:active:enabled{transform:translateY(3px);box-shadow:0 1px 0 #dc5a3f}.draw-button:disabled{opacity:.57}.keyboard-hint{font-size:9px;color:#98a38c;margin:15px 0 0;letter-spacing:.6px}.recent-panel{margin-top:27px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:21px 24px}.recent-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.recent-heading h2{font-size:12px;font-weight:600;display:flex;align-items:center;gap:8px;margin:0}.recent-heading h2 svg{width:15px;height:15px;color:#7e9471}.recent-heading h2>span{font-size:9px;color:#9aa38f;font-weight:400;margin-left:7px}.recent-heading>.text-button{font-size:10px}.recent-empty{display:flex;gap:10px;justify-content:center;align-items:center;min-height:66px;font-size:10px;color:#adb6a1}.recent-empty>p{font-size:11px;color:#98a58a}.empty-star{font-size:23px;color:#b7c2a8}.recent-empty>span:last-child{padding-left:10px;border-left:1px solid #e2e8da}.recent-filled{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:19px;font-size:12px}.prize-badge{background:#fbf0e5;color:#ba8755;border-radius:6px;padding:5px 8px;font-size:10px;max-width:160px;overflow-wrap:anywhere}.name-chip{background:#eff4e9;color:#4f7450;padding:6px 12px;border-radius:6px;max-width:100%;overflow-wrap:anywhere}.recent-time{margin-left:auto;font-size:10px;color:#a4ad9b}footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:25px 0 26px;font-size:9px;letter-spacing:.5px;color:#a5ae9c}.footer-divider{margin:0 10px;color:#c2c9ba}.footer-right{display:flex;align-items:center}.green-dot{width:4px;height:4px;background:#8fa77d;display:inline-block;border-radius:50%;margin-right:6px}.winner-list{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;max-height:215px;overflow:auto;margin:20px auto 0;max-width:650px}.winner-card{padding:14px 22px;background:#fffdf3;border:1px solid #dddcc5;border-radius:10px;box-shadow:0 4px 0 #d9e1c9;color:#35613e;font-size:24px;font-weight:650;overflow-wrap:anywhere;max-width:100%;animation:reveal .45s ease-out backwards}.winner-list.many .winner-card{font-size:17px;padding:9px 16px}.is-drawing .stage-title{font-size:36px;overflow-wrap:anywhere;letter-spacing:2px}.is-drawing .ticket-art{animation:float .45s ease-in-out infinite alternate}.has-result .stage-title{font-size:22px}.has-result .stage-kicker{color:#b58c55}.has-result .ticket-art{display:none}.has-result .stage-description{font-size:11px}.confetti{position:absolute;inset:0;pointer-events:none;z-index:5;overflow:hidden}.confetti-piece{position:absolute;top:-20px;width:7px;height:13px;animation:confetti-fall 2.5s ease-in forwards}.draw-stage:fullscreen{border-radius:0;border:0;padding:20px;max-height:100vh}.draw-stage:fullscreen .stage-title{font-size:54px}.draw-stage:fullscreen .winner-list{max-height:45vh;max-width:85vw}.draw-stage:fullscreen .winner-card{font-size:40px}.draw-stage:fullscreen .winner-list.many .winner-card{font-size:24px}.draw-stage:fullscreen .stage-bottom{padding-bottom:25px}.draw-stage:fullscreen .orbit-one{width:500px;height:500px}.draw-stage:fullscreen .orbit-two{width:700px;height:700px}.draw-stage:fullscreen .ticket-art{transform:scale(1.4);margin-bottom:45px}.history-panel{background:#fff;border:1px solid var(--line);border-radius:16px;min-height:450px;padding:24px}.history-toolbar{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:20px;font-size:12px;color:#85927a}.danger{color:#b26c59}.history-item{padding:23px 0;border-bottom:1px solid var(--line)}.history-item:last-child{border:0}.history-item-head{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:11px;color:#95a18c;margin-bottom:13px}.history-item-head strong{font-size:14px;color:#456541;overflow-wrap:anywhere}.history-item-head time{margin-left:auto;font-size:10px}.history-names{display:flex;gap:7px;flex-wrap:wrap;font-size:12px}.history-empty{padding:85px 0;text-align:center;color:#9da991;font-size:13px}.history-empty>span{font-size:44px;color:#bbcaab;display:block;margin-bottom:14px}.secondary-button,.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:8px;font-size:12px;padding:11px 17px}.secondary-button{border:1px solid #dce5d3;background:#fff;color:#657e56}.secondary-button svg{width:15px;height:15px}.primary-button{border:1px solid var(--orange);background:var(--orange);color:#fff}.secondary-button:disabled,.primary-button:disabled{opacity:.4}dialog{border:1px solid #e1e7d9;border-radius:18px;width:500px;max-width:calc(100% - 32px);padding:28px;color:var(--ink);box-shadow:0 25px 100px #1f372d26;background:#fcfdf9;max-height:90vh;overflow:auto}dialog::backdrop{background:#26382f60;backdrop-filter:blur(4px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}.dialog-heading h2{font-size:23px;margin:10px 0}.dialog-heading .eyebrow{font-size:8px}.dialog-intro{font-size:12px;color:#819073;line-height:1.9;margin:12px 0 16px}textarea{width:100%;border:1px solid #dce5d3;background:#fff;border-radius:10px;padding:15px;color:#3c5934;resize:vertical;line-height:1.8;font-size:14px;min-height:130px;max-height:40vh}.import-row{display:flex;justify-content:space-between;align-items:center;margin-top:10px;font-size:11px;color:#8b997f;gap:10px}.file-label{cursor:pointer}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;padding-top:18px;margin-top:10px;border-top:1px solid var(--line)}.form-error{font-size:11px;color:#c36348;margin:10px 0 0;min-height:16px}.guide-list{padding-left:25px;margin:24px 0}.guide-list li{padding-left:8px;margin-bottom:22px;color:#759264;font-size:14px}.guide-list strong{color:#3e5b35}.guide-list p{font-size:12px;line-height:1.9;color:#839575;margin:7px 0}.help-note{font-size:11px;color:#8e9b81;line-height:1.9;border-top:1px solid var(--line);padding-top:15px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#2b503b;color:#fff;padding:13px 20px;border-radius:10px;font-size:12px;z-index:100;max-width:90%;box-shadow:0 8px 30px #243a3420;text-align:center;line-height:1.6}.setup-card :disabled{opacity:.5}.tab:disabled{opacity:.5}@keyframes float{to{transform:translateY(-9px) rotate(4deg)}}@keyframes reveal{from{opacity:0;transform:translateY(12px) scale(.9)}to{opacity:1;transform:none}}@keyframes confetti-fall{to{transform:translateY(660px) rotate(560deg);opacity:0}}
@media(min-width:1440px){.app-shell{max-width:1390px}.workspace{grid-template-columns:324px minmax(0,1fr)}.draw-stage{min-height:560px}.stage-title{font-size:34px}}
@media(max-width:1050px){.app-shell{padding:0 28px}.workspace{grid-template-columns:280px minmax(0,1fr);gap:17px}.setup-card{padding:24px 19px}.stage-title{font-size:26px}.edition{display:none}.decor-one{left:10%}.decor-two{right:9%}.footer-right{font-size:8px}.tabs{gap:0}.tab{padding:10px 15px}}
@media(max-width:760px){.app-shell{padding:0 20px}.topbar{height:86px;flex-wrap:wrap;gap:8px}.brand{font-size:17px;gap:9px}.brand-icon{width:36px;height:36px;border-radius:11px}.brand-by{font-size:7px}.tabs{margin-left:auto}.tab{padding:9px 11px;font-size:11px}.tab svg{display:none}.help-text{display:none}.help-button{padding:5px}.page-heading{margin:26px 0 23px}.page-heading h1{font-size:24px;letter-spacing:0;margin-top:8px}.page-heading p{font-size:11px;line-height:1.8}.heading-spark{font-size:27px;margin-left:8px}.eyebrow{font-size:8px;letter-spacing:1.6px}.workspace{grid-template-columns:1fr}.setup-card{padding:20px;display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.panel-title{grid-column:1/-1;margin-bottom:0}.setup-section{padding:19px 0;border-bottom:0}.setup-section:nth-child(2){border-right:1px solid var(--line);padding-right:20px}.setup-section:nth-child(3){padding-bottom:12px}.rules-section{grid-column:1/-1;padding:15px 0;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}.rules-section .field-heading{display:none}.switch-row{width:100%}.switch-row>span:first-child{display:flex;align-items:center;gap:10px}.switch-row small{margin:0;font-size:9px}.setup-note{grid-column:1/-1;padding-top:12px;font-size:9px}.step-label{font-size:8px}.roster-button{padding:12px 9px;gap:8px}.roster-icon{display:none}.roster-text strong{font-size:13px}.roster-text small{font-size:8px}.roster-bottom{font-size:9px}.text-button{font-size:10px}.count-row{margin-top:12px}.count-row>label{font-size:10px}.draw-stage{min-height:490px}.stage-body{min-height:260px}.stage-bottom{padding-top:17px}.stage-title{font-size:28px}.recent-panel{margin-top:20px;padding:20px}.recent-heading h2>span{display:none}.recent-empty{flex-wrap:wrap;gap:5px;padding-top:12px}.recent-empty>span:last-child{display:none}.recent-time{width:100%;margin-top:4px}.footer-right{display:none}footer{font-size:8px;padding:23px 0}.history-panel{padding:20px;min-height:350px}.page-heading .secondary-button{padding:10px;font-size:10px;flex-shrink:0}.history-item-head time{width:100%;margin-left:0}.draw-stage:fullscreen{padding:8px}.draw-stage:fullscreen .stage-title{font-size:30px}.draw-stage:fullscreen .winner-card{font-size:25px}.draw-stage:fullscreen .ticket-art{transform:none;margin-bottom:7px}}
@media(max-width:420px){.app-shell{padding:0 14px}.brand{font-size:15px}.tabs{padding:3px}.tab{padding:8px;font-size:10px}.nav-count{font-size:8px}.topbar{gap:4px}.page-heading h1{font-size:21px}.setup-card{gap:0 13px;padding:18px}.setup-section:nth-child(2){padding-right:13px}.roster-bottom{align-items:flex-start;gap:5px;flex-direction:column}.setup-section input[type=text]{padding:11px 9px}.switch-row>span:first-child{display:block}.switch-row small{margin-top:5px}.stage-title{font-size:25px}.stage-top{padding:17px}.stage-content{padding:0 18px}.draw-button{width:245px}.winner-card{font-size:21px}.dialog-heading h2{font-size:20px}dialog{padding:22px}.history-toolbar{font-size:11px}.page-heading .secondary-button svg{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.confetti{display:none}}
@media(max-width:360px){.topbar{height:auto;min-height:86px;padding:14px 0;gap:12px}.tabs{order:3;width:100%;justify-content:center}.help-button{margin-left:auto}.setup-card{display:flex}.setup-section:nth-child(2){border-right:0;padding-right:0}.setup-section{width:100%}.rules-section{padding-top:16px}.roster-bottom{flex-direction:row}.stage-title{font-size:21px}.stage-content{padding:0 12px}.recent-heading{gap:5px}.page-heading{flex-wrap:wrap}.setup-note{white-space:normal}}
