:root{color-scheme:light;--ink:#17283f;--body:#334155;--muted:#697789;--paper:#f5f7fa;--white:#fff;--line:#dfe5ed;--blue:#2563eb;--blue-dark:#1d4ed8;--gold:#d97706;--gold-pale:#fff8e8;--green:#147d55;--red:#b42318;--radius:14px;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei","Noto Sans SC",sans-serif}*{box-sizing:border-box}html{min-width:320px;background:var(--paper)}body{margin:0;color:var(--body);background:var(--paper);min-height:100vh}button,input,textarea{font:inherit}button{touch-action:manipulation}.topbar{min-height:64px;padding:10px max(16px,calc((100vw - 1120px)/2));display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--ink);color:white}.brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;min-width:0}.brand-mark{width:38px;height:38px;border:1px solid rgba(255,255,255,.28);display:grid;place-items:center;color:#f4c979;font-size:19px;font-weight:800;border-radius:10px;flex:0 0 auto}.brand strong,.brand small{display:block}.brand strong{font-size:15px;line-height:1.35}.brand small{font-size:11px;color:#bdc8d6;margin-top:2px}.account-area{display:flex;align-items:center;gap:8px}.account-name{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:#dce5ef}.page-shell{width:min(100% - 32px,1040px);margin:28px auto 56px}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.page-heading h1{font-size:clamp(23px,4vw,32px);line-height:1.15;letter-spacing:0;margin:3px 0 8px;color:var(--ink)}.eyebrow{font-size:11px;font-weight:750;letter-spacing:.08em;color:#788597;margin:0 0 5px}.lede{max-width:680px;color:var(--muted);font-size:14px;line-height:1.55;margin:0}.phase-badge,.status-pill{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:5px 11px;border:1px solid #d5deea;border-radius:999px;background:#fff;color:#435269;font-size:12px;font-weight:700;white-space:nowrap}.phase-badge[data-phase="registration"]{background:var(--gold-pale);border-color:#f2d594;color:#885300}.phase-badge[data-phase="drawn"],.status-pill[data-state="entered"]{background:#eaf7f0;border-color:#a8dec3;color:var(--green)}.status-pill[data-state="needed"],.status-pill[data-state="closed"]{background:#fff5f3;border-color:#f0c1ba;color:var(--red)}.deadline-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(200px,1.25fr);gap:0;background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:16px}.deadline-strip>div{padding:14px 16px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:5px}.deadline-strip>div:last-child{border-right:0}.deadline-strip span{font-size:11px;color:var(--muted)}.deadline-strip strong{font-size:14px;color:var(--ink)}.countdown-block{background:#fbfcfe}.countdown-block strong{font-variant-numeric:tabular-nums;font-size:18px}.summary-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.9fr);gap:16px;margin-bottom:16px}.amount-ledger,.entry-panel,.reveal-panel,.history-section,.admin-section{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:20px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.section-heading h2{font-size:16px;line-height:1.3;color:var(--ink);margin:0}.amount-row{min-height:48px;display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid var(--line);font-size:13px}.amount-row strong{font-size:17px;color:var(--ink);font-variant-numeric:tabular-nums}.amount-total strong{color:var(--blue);font-size:20px}.muted-note{font-size:12px;line-height:1.55;color:var(--muted);margin:8px 0 0}.entry-copy{font-size:13px;line-height:1.6;color:var(--body);margin:0 0 16px}.qq-form label,.login-form label{display:block;font-size:12px;font-weight:700;color:#405068;margin:0 0 6px}.input-action{display:flex;gap:8px}.input-action input,.login-form input,.tier-card input,.tier-card textarea{min-width:0;width:100%;border:1px solid #cbd5e1;border-radius:9px;padding:11px 12px;background:#fff;color:var(--ink);outline:none}.input-action input:focus,.login-form input:focus,.tier-card input:focus,.tier-card textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(37,99,235,.12)}.button{min-height:40px;padding:9px 14px;border:1px solid transparent;border-radius:9px;font-size:13px;font-weight:700;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}.button:active{transform:translateY(1px)}.button:disabled{opacity:.48;cursor:not-allowed;transform:none}.button-primary{background:var(--blue);color:#fff}.button-primary:hover:not(:disabled){background:var(--blue-dark)}.button-secondary{background:#fff;color:#334155;border-color:#cad3df}.button-secondary:hover:not(:disabled){background:#f2f5f9}.button-quiet{background:transparent;color:#e0e8f2;border-color:rgba(255,255,255,.22)}.button-quiet:hover:not(:disabled){background:rgba(255,255,255,.08)}.button-wide{width:100%}.message{min-height:20px;margin:8px 0 0;font-size:12px;color:var(--muted)}.message[data-kind="error"]{color:var(--red)}.message[data-kind="success"]{color:var(--green)}.reveal-panel{margin-bottom:16px;border-color:#ead8ad;background:linear-gradient(0deg,#fff 0%,#fffdf8 100%)}.lock-mark{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:var(--gold-pale);color:#9a5b00;font-weight:800}.reveal-copy{font-size:13px;line-height:1.6;color:#66543b;margin:0}.prize-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-top:14px}.prize-result{border-top:1px solid #edd8a4;padding:12px 0 2px}.prize-result strong{display:block;color:var(--ink);font-size:14px}.prize-result p{font-size:12px;line-height:1.55;color:var(--muted);margin:5px 0 0}.winner-line{padding:9px 0;border-top:1px solid #edd8a4;font-size:13px}.history-section{margin-top:16px}.history-list{display:grid;gap:0}.history-item{display:grid;grid-template-columns:105px minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--line);font-size:13px}.history-item time{color:var(--muted);font-variant-numeric:tabular-nums}.history-item strong{color:var(--ink)}.login-view{width:min(100%,480px);margin:clamp(20px,7vh,70px) auto}.login-copy{margin-bottom:18px}.login-copy h1{font-size:28px;line-height:1.2;color:var(--ink);margin:4px 0 10px}.login-form{display:grid;gap:8px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px}.login-form input{margin-bottom:7px}.check-line{display:flex!important;align-items:center;gap:8px;font-weight:500!important}.check-line input{width:16px;height:16px;margin:0;accent-color:var(--blue)}.turnstile-box{min-height:0}.turnstile-box:not([hidden]){min-height:68px}.site-footer{width:min(100% - 32px,1040px);margin:0 auto;padding:16px 0 28px;display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);color:#778396;font-size:11px}.step-mark{width:28px;height:28px;display:grid;place-items:center;border:1px solid #d9e2ef;border-radius:50%;font-weight:800;color:#55657a}.admin-heading{align-items:center}.admin-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 16px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;margin-bottom:16px}.admin-toolbar>div{display:grid;gap:4px}.admin-toolbar strong{color:var(--ink)}.admin-section{margin:16px 0}.count-label{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.tier-list{display:grid;gap:12px;margin:14px 0}.tier-card{border:1px solid var(--line);border-radius:11px;padding:14px;background:#fcfdff}.tier-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:12px}.tier-head strong{font-size:13px;color:var(--ink)}.tier-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}.tier-fields label{display:grid;gap:5px;font-size:11px;font-weight:700;color:var(--muted)}.tier-card textarea{min-height:70px;resize:vertical}.tier-description{margin-top:10px}.remove-tier{color:var(--red);background:#fff;border-color:#efc3bd}.table-scroll{overflow-x:auto}.participant-table{width:100%;border-collapse:collapse;font-size:12px}.participant-table th,.participant-table td{text-align:left;padding:11px 9px;border-top:1px solid var(--line);white-space:nowrap}.participant-table th{color:var(--muted);font-size:11px;font-weight:700;background:#fbfcfd}.participant-table td{color:var(--body)}.participant-table td strong{color:var(--ink);font-variant-numeric:tabular-nums}.participant-cards{display:none}.participant-card{padding:12px 0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr auto;gap:5px 12px;font-size:12px}.participant-card strong{color:var(--ink)}.participant-card .qq{grid-column:1/-1;color:var(--muted);font-variant-numeric:tabular-nums}.winner-admin-list{display:grid;gap:10px}.winner-admin-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;padding:13px 0;border-top:1px solid var(--line)}.winner-admin-item strong{color:var(--ink)}.winner-admin-item .private-qq{grid-column:1/-1;font-size:12px;color:var(--muted)}.winner-admin-item form{grid-column:1/-1;display:flex;gap:8px}.winner-admin-item input{flex:1;min-width:0;padding:9px 10px;border:1px solid var(--line);border-radius:8px}.scheduler-section{display:flex;align-items:center;justify-content:space-between;gap:16px}.phase-badge[data-phase="collecting"]{color:#45566c}.phase-badge[data-phase="registration"]{color:#875600;background:var(--gold-pale);border-color:#eed9ac}.phase-badge[data-phase="locked"]{color:#8a4b0a;background:#fff4e5;border-color:#f4ca8c}.phase-badge[data-phase="drawing"],.phase-badge[data-phase="drawn"]{color:var(--green);background:#e8f6ef;border-color:#afdcc3}
@media(max-width:760px){.page-shell{width:calc(100% - 24px);margin:18px auto 36px}.topbar{min-height:58px;padding:9px 12px}.brand-mark{width:34px;height:34px}.brand strong{font-size:14px}.account-name{max-width:95px;font-size:11px}.topbar .button{min-height:36px;padding:7px 9px;font-size:12px}.page-heading{align-items:center;margin-bottom:14px}.page-heading h1{font-size:23px}.lede{font-size:13px}.deadline-strip{grid-template-columns:1fr 1fr}.deadline-strip>div{padding:11px 12px;border-bottom:1px solid var(--line)}.deadline-strip>div:nth-child(2){border-right:0}.deadline-strip>div:nth-child(3){border-bottom:0}.deadline-strip>div:last-child{border-top:0;border-bottom:0}.countdown-block strong{font-size:16px}.summary-layout{grid-template-columns:1fr;gap:12px}.amount-ledger,.entry-panel,.reveal-panel,.history-section,.admin-section{padding:15px;border-radius:12px}.amount-row{min-height:44px}.amount-row strong{font-size:16px}.amount-total strong{font-size:19px}.input-action input{font-size:16px}.input-action .button{min-width:86px}.history-item{grid-template-columns:88px minmax(0,1fr);gap:5px 10px}.history-item>span:last-child{grid-column:2}.admin-toolbar{display:grid;grid-template-columns:1fr 1fr}.admin-toolbar>div{grid-column:1/-1}.admin-toolbar button{width:100%;font-size:12px;padding:8px 9px}.admin-heading{align-items:flex-start}.admin-heading .button{white-space:nowrap}.tier-fields{grid-template-columns:1fr 1fr}.tier-description{grid-column:1/-1}.table-scroll{display:none}.participant-cards{display:block}.scheduler-section{align-items:flex-start}.scheduler-section .button{white-space:nowrap}.site-footer{width:calc(100% - 24px);display:grid;gap:5px}.login-view{width:calc(100% - 24px);margin:28px auto}.login-copy h1{font-size:25px}.login-form{padding:18px}.winner-admin-item form{flex-direction:column}.winner-admin-item form button{width:100%}}
@media(max-width:360px){.deadline-strip>div{padding:10px}.topbar{gap:6px}.brand{gap:7px}.account-area{gap:4px}.tier-fields{gap:8px}.button{padding-left:10px;padding-right:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
[hidden]{display:none!important}
h1,h2{text-wrap:balance}
.lede,.entry-copy,.reveal-copy,.muted-note{ text-wrap:pretty }
:focus-visible{outline:3px solid #0b63ce;outline-offset:2px}
.button{transition-property:transform,background-color,border-color,box-shadow;transition-duration:150ms;transition-timing-function:ease-out}
@media(max-width:760px){.button{min-height:44px}.account-area .button{min-height:40px}.page-heading h1{max-width:18ch}.entry-panel,.amount-ledger,.reveal-panel,.history-section,.admin-section{border-radius:12px}}
@media(max-width:360px){.brand small{display:none}.account-name{max-width:72px}.deadline-strip strong{font-size:13px}.phase-badge{padding-inline:8px;font-size:11px}}
