.content-lottery-widget{position:relative;overflow:hidden;margin:16px 0;padding:16px;border-radius:16px;color:#fff;background:linear-gradient(135deg,var(--lottery-theme,#e34b13) 0%,var(--lottery-theme-warm,#ff6048) 58%,#ffbd4a 100%);box-shadow:0 12px 28px rgba(var(--lottery-theme-rgb,227,75,19),.2)}
.content-lottery-widget.tpl-classic{color:var(--lottery-theme-deep,#6b2214);background:linear-gradient(135deg,#fff,var(--lottery-theme-soft,#ffe3b8));border:1px solid rgba(var(--lottery-theme-rgb,227,75,19),.16);box-shadow:0 10px 24px rgba(var(--lottery-theme-rgb,227,75,19),.08)}
.content-lottery-widget.tpl-image,.content-lottery-widget.has-bg-image{background-size:cover;background-position:center;background-repeat:no-repeat}
.content-lottery-widget-mask{position:absolute;inset:0;background:#000;pointer-events:none}
.content-lottery-widget-bg{position:absolute;right:-42px;top:-42px;width:150px;height:150px;border-radius:999px;background:rgba(255,255,255,.16)}
.content-lottery-widget-bg:before,.content-lottery-widget-bg:after{content:"";position:absolute;display:block}
.content-lottery-widget-bg:after{right:30px;bottom:-42px;width:110px;height:84px;border-radius:14px;background:linear-gradient(180deg,#ffd56d,#ffb22d);transform:rotate(8deg)}
.decoration-simple .content-lottery-widget-bg:before{right:54px;bottom:-10px;width:82px;height:58px;border-radius:13px;background:rgba(255,255,255,.88);box-shadow:0 8px 20px rgba(var(--lottery-theme-rgb,227,75,19),.16);transform:rotate(-8deg)}
.decoration-simple .content-lottery-widget-bg:after{right:24px;bottom:-36px;width:102px;height:70px;border-radius:15px;background:linear-gradient(135deg,rgba(255,255,255,.72),var(--lottery-theme-soft,#ffe3b8));border:1px solid rgba(255,255,255,.52);box-shadow:0 10px 24px rgba(var(--lottery-theme-rgb,227,75,19),.18)}
.decoration-red_packet .content-lottery-widget-bg{background:transparent}
.decoration-red_packet .content-lottery-widget-bg:before{right:48px;bottom:-32px;width:104px;height:104px;background:url("data:image/svg+xml,%3Csvg viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M509.47 917.99c-277.7 0-351.97-82.92-351.97-399.35S231.77 121 509.47 121s350.47 81.21 350.47 397.64-72.77 399.35-350.47 399.35z' fill='%23FF5308'/%3E%3Cpath d='M767.56 320c-11-54-42.74-78.53-42.74-78.53-53.94-57.47-180.94-57.55-216.1-57.55-32.84 0-169.84 8.08-216.1 57.55 0 0-31.74 24.53-42.74 78.53 0 0-8 32-3 56 0 0 3 44 46 63 0 0 90.56 31.42 214 40.73v0.27c0.62-0.04 1.23-0.09 1.84-0.14 0.61 0.05 1.22 0.09 1.84 0.14v-0.27c123.44-9.3 214-40.73 214-40.73 43-19 46-63 46-63 5-24-3-56-3-56z' fill='%23E83100'/%3E%3Cpath d='M508.72 341c-66.07 0-119.62 53.56-119.62 119.62s53.56 119.62 119.62 119.62 119.62-53.56 119.62-119.62c-0.08-66.03-53.59-119.54-119.62-119.62' fill='%23FFDD00'/%3E%3C/svg%3E") center/contain no-repeat;filter:none;transform:rotate(-8deg)}
.decoration-red_packet .content-lottery-widget-bg:after{display:none}
.decoration-gift .content-lottery-widget-bg{background:transparent}
.decoration-gift .content-lottery-widget-bg:before{right:38px;bottom:-30px;width:104px;height:104px;background:url("data:image/svg+xml,%3Csvg viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M204.8 129.8432a34.133333 34.133333 0 0 1 52.224-28.945067l170.3936 106.496c14.5408 9.079467 8.0896 31.5392-9.045333 31.5392H238.933333a34.133333 34.133333 0 0 1-34.133333-34.133333V129.8432zM170.666667 409.6a34.133333 34.133333 0 0 0-34.133334 34.133333v375.466667a136.533333 136.533333 0 0 0 136.533334 136.533333h170.666666a34.133333 34.133333 0 0 0 34.133334-34.133333V443.733333a34.133333 34.133333 0 0 0-34.133334-34.133333H170.666667z m409.6 0a34.133333 34.133333 0 0 0-34.133334 34.133333v477.866667a34.133333 34.133333 0 0 0 34.133334 34.133333h170.666666a136.533333 136.533333 0 0 0 136.533334-136.533333V443.733333a34.133333 34.133333 0 0 0-34.133334-34.133333h-273.066666z m186.709333-308.701867a34.133333 34.133333 0 0 1 52.224 28.945067V204.8a34.133333 34.133333 0 0 1-34.133333 34.133333h-179.438934c-17.134933 0-23.552-22.459733-9.045333-31.5392l170.3936-106.496z' fill='%23FF7744'/%3E%3Cpath d='M170.666667 273.066667a68.266667 68.266667 0 0 0-68.266667 68.266666v170.666667a34.133333 34.133333 0 0 0 34.133333 34.133333h307.2a34.133333 34.133333 0 0 0 34.133334-34.133333V307.2a34.133333 34.133333 0 0 0-34.133334-34.133333H170.666667z m409.6 0a34.133333 34.133333 0 0 0-34.133334 34.133333v204.8a34.133333 34.133333 0 0 0 34.133334 34.133333h307.2a34.133333 34.133333 0 0 0 34.133333-34.133333v-170.666667a68.266667 68.266667 0 0 0-68.266667-68.266666h-273.066666z' fill='%23FFC65A'/%3E%3C/svg%3E") center/contain no-repeat;filter:none;transform:rotate(8deg)}
.decoration-gift .content-lottery-widget-bg:after{display:none}
.content-lottery-widget-decoration{position:absolute;right:12px;top:52px;width:calc(var(--lottery-decoration-space,clamp(104px,32%,142px)) - 20px);height:104px;display:flex;align-items:center;justify-content:center;z-index:0;pointer-events:none}
.content-lottery-widget-decoration img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.content-lottery-widget.decoration-simple .content-lottery-widget-inner,.content-lottery-widget.decoration-red_packet .content-lottery-widget-inner,.content-lottery-widget.decoration-gift .content-lottery-widget-inner{padding-right:62px}
.content-lottery-widget.has-decoration-image{--lottery-decoration-space:clamp(104px,32%,142px)}
.content-lottery-widget.has-decoration-image .content-lottery-widget-inner{padding-right:var(--lottery-decoration-space)}
.content-lottery-widget.has-bg-image .content-lottery-widget-decoration{right:10px;opacity:.94;filter:drop-shadow(0 8px 18px rgba(0,0,0,.18))}
.content-lottery-widget-inner{position:relative;z-index:1}
.content-lottery-widget-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.content-lottery-widget-kicker{display:inline-flex;padding:4px 9px;border-radius:99px;background:rgba(255,255,255,.18);font-size:12px}
.content-lottery-widget-status{flex:none;margin-left:auto;padding:4px 9px;border-radius:99px;background:rgba(255,255,255,.2);font-size:12px;text-align:right}
.content-lottery-widget.decoration-simple .content-lottery-widget-top,.content-lottery-widget.decoration-red_packet .content-lottery-widget-top,.content-lottery-widget.decoration-gift .content-lottery-widget-top{margin-right:-62px}
.content-lottery-widget.has-decoration-image .content-lottery-widget-top{margin-right:calc(-1 * var(--lottery-decoration-space))}
.content-lottery-widget.has-decoration-image .content-lottery-widget-rules{margin-right:calc(-1 * var(--lottery-decoration-space))}
.tpl-classic .content-lottery-widget-kicker,.tpl-classic .content-lottery-widget-status,.tpl-classic .content-lottery-widget-prize,.tpl-classic .content-lottery-widget-time>div,.tpl-classic .content-lottery-widget-rule-chip,.tpl-classic .content-lottery-widget-stat span{background:var(--lottery-theme-soft,rgba(227,75,19,.08));color:var(--lottery-theme-deep,#9c321f)}
.content-lottery-widget-title{margin:10px 0 0;font-size:20px;line-height:1.25;font-weight:800}
.content-lottery-widget-desc{margin:7px 0 0;font-size:13px;line-height:1.5;color:rgba(255,255,255,.88)}
.tpl-classic .content-lottery-widget-desc,.tpl-classic .content-lottery-widget-notice,.tpl-classic .content-lottery-widget-time span{color:rgba(var(--lottery-theme-rgb,107,34,20),.68)}
.content-lottery-widget-prize{margin-top:12px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.14);font-size:13px;line-height:1.45}
.content-lottery-widget-prize b{display:block;margin-bottom:3px;font-size:12px;opacity:.72}
.content-lottery-widget-time{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.content-lottery-widget-time>div{min-width:0;padding:9px;border-radius:10px;background:rgba(255,255,255,.13)}
.content-lottery-widget-time span{display:block;margin-bottom:3px;font-size:12px;color:rgba(255,255,255,.72)}
.content-lottery-widget-time strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:600}
.content-lottery-widget-stat,.content-lottery-widget-rule-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.content-lottery-widget-stat span,.content-lottery-widget-rule-chip{padding:5px 8px;border-radius:99px;background:rgba(255,255,255,.16);font-size:12px}
.content-lottery-widget-notice{margin-top:10px;font-size:12px;line-height:1.45;color:rgba(255,255,255,.72)}
.content-lottery-widget-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:14px}
.content-lottery-widget-btn{height:34px;padding:0 14px;border:0;border-radius:99px;background:#fff;color:var(--lottery-theme,#e34b13);font-size:13px;font-weight:700}
.content-lottery-widget-btn:disabled{cursor:not-allowed;opacity:.62}
.content-lottery-widget-btn.sub{background:rgba(255,255,255,.16);color:#fff;border:1px solid rgba(255,255,255,.28)}
.tpl-classic .content-lottery-widget-btn{background:var(--lottery-theme,#e34b13);color:#fff;box-shadow:0 6px 14px rgba(var(--lottery-theme-rgb,227,75,19),.16)}
.tpl-classic .content-lottery-widget-btn.sub{background:rgba(255,255,255,.72);color:var(--lottery-theme,#e34b13);border-color:rgba(var(--lottery-theme-rgb,227,75,19),.22);box-shadow:none}
.content-lottery-widget-rules{margin-top:12px;padding:12px;border-radius:12px;background:rgba(0,0,0,.12);font-size:12px;line-height:1.55}
.tpl-classic .content-lottery-widget-rules{background:rgba(var(--lottery-theme-rgb,227,75,19),.07);border:1px solid rgba(var(--lottery-theme-rgb,227,75,19),.1)}
.content-lottery-widget-rules-title{margin-bottom:6px;font-weight:700}
.content-lottery-widget-rules ol{margin:0;padding-left:18px}
.content-lottery-widget-rules li{margin:4px 0}
.content-lottery-winner-list{max-height:360px;overflow:auto;text-align:left}
.content-lottery-winner-item{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #f1f1f1}
.content-lottery-winner-item:last-child{border-bottom:0}
.content-lottery-winner-head{width:36px;height:36px;border-radius:50%;object-fit:cover;background:#f5f5f5}
.content-lottery-winner-name{font-size:14px;color:#333}
.content-lottery-winner-prize{margin-top:2px;font-size:12px;color:#999}
.content-lottery-my-result{padding:18px 8px 8px;text-align:center;color:#333}
.content-lottery-my-result-status{display:inline-flex;align-items:center;justify-content:center;min-width:86px;height:30px;padding:0 14px;border-radius:99px;background:#f5f5f5;color:#666;font-size:14px;font-weight:700}
.content-lottery-my-result.is-win .content-lottery-my-result-status{background:#fff2d7;color:#c87500}
.content-lottery-my-result-message{margin-top:14px;font-size:16px;font-weight:700}
.content-lottery-my-result-prize{margin:16px 0 0;padding:14px;border-radius:12px;background:#fff7ec;text-align:left}
.content-lottery-my-result-prize span{display:block;margin-bottom:4px;color:#999;font-size:12px}
.content-lottery-my-result-prize strong{display:block;color:#e34b13;font-size:18px}
.content-lottery-my-result-welfare{margin-top:8px;color:#999;font-size:12px;text-align:left}
@media (max-width:360px){.content-lottery-widget-time{grid-template-columns:1fr}.content-lottery-widget-title{font-size:18px}.content-lottery-widget.has-decoration-image{--lottery-decoration-space:clamp(88px,31%,106px)}.content-lottery-widget-decoration{right:8px;top:50px;width:calc(var(--lottery-decoration-space) - 14px);height:88px}.content-lottery-widget.decoration-simple .content-lottery-widget-inner,.content-lottery-widget.decoration-red_packet .content-lottery-widget-inner,.content-lottery-widget.decoration-gift .content-lottery-widget-inner{padding-right:46px}}
