.wuai-lottery-page,
.wuai-lottery-page * {
	box-sizing: border-box;
}

.wuai-lottery-page {
	position: relative;
	max-width: 720px;
	margin: 0 auto;
	padding: 10px 10px calc(28px + env(safe-area-inset-bottom));
	color: #34203b;
	overflow: hidden;
	background:
		linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,242,255,.94) 48%, rgba(255,250,232,.94)),
		linear-gradient(180deg, #fffdf8 0%, #f7f2ff 46%, #fff 100%);
}

.wuai-lottery-page a {
	text-decoration: none;
}

.wuai-lottery-page [hidden],
.wuai-lottery-modal-mask[hidden] {
	display: none !important;
}

.wuai-lottery-hero,
.wuai-lottery-stats,
.wuai-lottery-stage,
.wuai-lottery-code-card,
.wuai-lottery-content-grid {
	position: relative;
	z-index: 1;
}

.wuai-lottery-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-height: 94px;
	padding: 14px 16px;
	border: 1px solid rgba(255, 255, 255, .36);
	border-radius: 18px;
	background:
		linear-gradient(115deg, rgba(255, 230, 109, .30), transparent 28%),
		linear-gradient(135deg, #7c3aed 0%, #a855f7 48%, #fb7185 100%);
	box-shadow: 0 14px 28px rgba(124, 58, 237, .22), inset 0 1px 0 rgba(255,255,255,.28);
	overflow: hidden;
}

.wuai-lottery-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(45deg, transparent 46%, rgba(255,255,255,.28) 48%, transparent 52%),
		linear-gradient(135deg, transparent 0%, rgba(255,255,255,.22) 48%, transparent 60%);
	background-size: 84px 84px, 100% 100%;
	opacity: .38;
	pointer-events: none;
}

.wuai-lottery-hero-copy {
	position: relative;
	z-index: 1;
	min-width: 0;
}

.wuai-lottery-badge {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 10px;
	border: 1px solid rgba(255,255,255,.38);
	border-radius: 999px;
	background: rgba(255,255,255,.18);
	color: #fff7c2;
	font-size: 13px;
	font-weight: 800;
}

.wuai-lottery-title {
	margin: 10px 0 4px;
	color: #fff;
	font-size: 23px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: 0;
	text-shadow: 0 2px 12px rgba(58, 16, 86, .28);
}

.wuai-lottery-subtitle {
	margin: 0;
	color: rgba(255,255,255,.82);
	font-size: 13px;
	line-height: 1.45;
}

.wuai-lottery-hero-status {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 82px;
	height: 76px;
	border: 1px solid rgba(255,255,255,.42);
	border-radius: 20px;
	background: rgba(255,255,255,.16);
	color: #fff;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 12px 26px rgba(58, 16, 86, .18);
}

.wuai-lottery-hero-status span,
.wuai-lottery-hero-status em {
	font-size: 12px;
	font-style: normal;
	font-weight: 800;
	line-height: 1;
}

.wuai-lottery-hero-status strong {
	margin: 2px 0;
	color: #fff7c2;
	font-size: 30px;
	line-height: 1;
	font-weight: 900;
	text-shadow: 0 2px 12px rgba(0,0,0,.22);
}

.wuai-lottery-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 7px;
	margin: 8px 0 10px;
}

.wuai-lottery-stat {
	min-width: 0;
	height: 48px;
	padding: 7px 10px;
	border: 1px solid rgba(168, 85, 247,.14);
	border-radius: 12px;
	background: rgba(255,255,255,.75);
	box-shadow: 0 8px 20px rgba(168,85,247,.08);
	backdrop-filter: blur(10px);
}

.wuai-lottery-stat span,
.wuai-lottery-stat strong {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wuai-lottery-stat span {
	color: #7b647d;
	font-size: 11px;
	line-height: 1.2;
}

.wuai-lottery-stat strong {
	margin-top: 4px;
	color: #8B5CF6;
	font-size: 18px;
	line-height: 1;
	font-weight: 800;
}

.wuai-lottery-stat strong small {
	color: #8d758f;
	font-size: 13px;
	font-weight: 800;
}

.wuai-lottery-stat:nth-child(even) strong {
	color: #7c3aed;
}

.wuai-lottery-stage {
	margin: 8px auto 10px;
	padding: 11px;
	border: 1px solid rgba(139, 92, 246,.24);
	border-radius: 20px;
	background:
		radial-gradient(circle at 50% 48%, rgba(246, 196, 83, .24), transparent 30%),
		linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(246,239,255,.96) 52%, rgba(255,248,226,.96) 100%);
	box-shadow: 0 16px 32px rgba(99,102,241,.15), inset 0 1px 0 rgba(255,255,255,.78);
	overflow: hidden;
}

.wuai-lottery-stage-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
	color: #34214a;
}

.wuai-lottery-stage-head strong {
	font-size: 19px;
	font-weight: 800;
}

.wuai-lottery-stage-head span {
	padding: 4px 9px;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(246, 196, 83, .22), rgba(139, 92, 246, .12));
	color: #7c3aed;
	font-size: 12px;
	font-weight: 900;
}

.wuai-lottery-glow {
	position: absolute;
	inset: 12px;
	border-radius: 20px;
	pointer-events: none;
}

.wuai-lottery-glow::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 18px;
	background:
		linear-gradient(115deg, transparent 0%, rgba(255,255,255,.58) 42%, transparent 58%),
		linear-gradient(180deg, rgba(246,196,83,.12), transparent 38%);
	opacity: .42;
	transform: translateX(-35%);
	animation: wuai-lottery-glow 4.8s ease-in-out infinite;
}

.wuai-lottery-orbit {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	padding: 2px;
	border-radius: 18px;
	background: linear-gradient(135deg, rgba(124, 58, 237, .10), rgba(246, 196, 83, .14));
}

.wuai-lottery-prize,
.wuai-lottery-center {
	min-width: 0;
	height: 92px;
}

.wuai-lottery-prize {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 7px 6px;
	border: 1px solid rgba(255,255,255,.60);
	border-radius: 16px;
	background: rgba(255,255,255,.92);
	box-shadow: 0 8px 18px rgba(139,92,246,.10), inset 0 1px 0 rgba(255,255,255,.70);
	overflow: hidden;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.wuai-lottery-prize::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(135deg, rgba(139, 92, 246,.07), rgba(246, 196, 83,.13)),
		linear-gradient(120deg, transparent 0%, rgba(255,255,255,.50) 48%, transparent 70%);
	opacity: .8;
	pointer-events: none;
}

.wuai-lottery-prize.is-active,
.wuai-lottery-prize.is-final {
	transform: translateY(-2px) scale(1.025);
	border-color: #f6c453;
	box-shadow:
		0 0 0 1px rgba(246,196,83,.45),
		0 0 28px rgba(246,196,83,.30),
		inset 0 0 18px rgba(246,196,83,.12);
}

.wuai-lottery-prize.is-final {
	animation: wuai-lottery-final .8s ease-in-out 2;
}

.wuai-lottery-stage.is-drawing .wuai-lottery-prize {
	animation: wuai-lottery-card-flash .72s ease-in-out infinite;
}

.wuai-lottery-prize-img {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 43px;
	height: 43px;
	border-radius: 12px;
	background: linear-gradient(135deg, #fff7c2, #f6c453);
	box-shadow: 0 8px 18px rgba(246,196,83,.22);
	overflow: hidden;
}

.wuai-lottery-prize-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wuai-lottery-prize-img b {
	color: #3b1248;
	font-size: 16px;
	font-weight: 900;
	line-height: 1;
}

.wuai-lottery-prize-name,
.wuai-lottery-prize-amount,
.wuai-lottery-prize-prob {
	position: relative;
	z-index: 1;
	max-width: 100%;
	overflow: hidden;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wuai-lottery-prize-name {
	color: #34214a;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.15;
}

.wuai-lottery-prize-amount,
.wuai-lottery-prize-prob {
	color: #6d28d9;
	font-size: 11px;
	line-height: 1.2;
}

.wuai-lottery-prize.is-type-none {
	opacity: .82;
}

.wuai-lottery-prize.is-type-none .wuai-lottery-prize-img {
	background: linear-gradient(135deg, #f4ecff, #d9c7ff);
	box-shadow: 0 8px 18px rgba(139,92,246,.12);
}

.wuai-lottery-center {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: visible;
}

.wuai-lottery-draw-btn {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 0;
	border: 0;
	border-radius: 24px;
	background:
		radial-gradient(circle at 50% 18%, rgba(255,255,255,.45), transparent 34%),
		linear-gradient(135deg, #6d28d9 0%, #8B5CF6 42%, #f6c453 100%);
	color: #fff;
	box-shadow: 0 15px 30px rgba(124, 58, 237, .32), 0 0 0 5px rgba(246,196,83,.20), inset 0 1px 0 rgba(255,255,255,.34);
	cursor: pointer;
	animation: wuai-lottery-pulse 2s ease-in-out infinite;
	-webkit-tap-highlight-color: transparent;
}

.wuai-lottery-draw-btn::before {
	content: "";
	position: absolute;
	inset: -5px;
	border: 1px solid rgba(246,196,83,.66);
	border-radius: 28px;
}

.wuai-lottery-draw-btn::after {
	content: "";
	position: absolute;
	inset: 7px;
	border-radius: 18px;
	border: 1px solid rgba(255,255,255,.22);
	pointer-events: none;
}

.wuai-lottery-draw-btn span,
.wuai-lottery-draw-btn em {
	position: relative;
	z-index: 1;
	max-width: 90%;
	overflow: hidden;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wuai-lottery-draw-btn span {
	font-size: 16px;
	font-weight: 900;
	line-height: 1.2;
}

.wuai-lottery-draw-btn em {
	margin-top: 4px;
	color: rgba(255,255,255,.76);
	font-size: 11px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0;
}

.wuai-lottery-draw-btn i {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin-bottom: 4px;
	border-radius: 50%;
	background: rgba(255,255,255,.22);
	color: #fff7c2;
	font-style: normal;
	font-size: 14px;
	font-weight: 900;
	line-height: 1;
}

.wuai-lottery-draw-btn:disabled {
	background:
		radial-gradient(circle at 50% 18%, rgba(255,255,255,.30), transparent 34%),
		linear-gradient(135deg, #6d5f91 0%, #8b7fc0 50%, #b79b5a 100%);
	color: #fff;
	box-shadow: 0 10px 24px rgba(124, 58, 237,.18), 0 0 0 5px rgba(255,255,255,.40), inset 0 1px 0 rgba(255,255,255,.22);
	cursor: default;
	animation: none;
}

.wuai-lottery-draw-btn:disabled::before {
	border-color: rgba(255,255,255,.34);
}

.wuai-lottery-draw-btn:disabled em {
	color: rgba(255,255,255,.78);
}

.wuai-lottery-draw-btn.is-loading {
	animation: wuai-lottery-breath 1s ease-in-out infinite;
}

.wuai-lottery-draw-btn:not(:disabled):active {
	transform: scale(.96);
}

.wuai-lottery-draw-btn[data-state="closed"] span,
.wuai-lottery-draw-btn[data-state="login"] span {
	font-size: 14px;
}

.wuai-lottery-code-card,
.wuai-lottery-panel {
	border: 1px solid rgba(168, 85, 247,.13);
	border-radius: 14px;
	background: rgba(255,255,255,.82);
	box-shadow: 0 8px 20px rgba(168,85,247,.07);
	backdrop-filter: blur(12px);
}

.wuai-lottery-code-card {
	display: block;
	margin: 0 0 10px;
	padding: 11px 12px;
}

.wuai-lottery-code-card strong,
.wuai-lottery-section-head strong {
	display: block;
	color: #34203b;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.25;
}

.wuai-lottery-fold-head em,
.wuai-lottery-section-head span {
	display: block;
	margin-top: 3px;
	color: #a78cab;
	font-size: 12px;
	line-height: 1.3;
}

.wuai-lottery-fold-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.wuai-lottery-fold-head span {
	min-width: 0;
}

.wuai-lottery-fold-head b,
.wuai-lottery-section-head button {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 58px;
	height: 28px;
	padding: 0 10px;
	border: 1px solid rgba(168, 85, 247,.16);
	border-radius: 999px;
	background: rgba(139, 92, 246,.08);
	color: #7c3aed;
	font-size: 12px;
	font-weight: 900;
	cursor: pointer;
}

.wuai-lottery-code-card:not(.is-collapsed) {
	background: rgba(255,255,255,.88);
}

.wuai-lottery-code-card form {
	display: flex;
	gap: 8px;
	min-width: 0;
	margin-top: 12px;
}

.wuai-lottery-code-card form[hidden],
.wuai-lottery-rule-text[hidden] {
	display: none !important;
}

.wuai-lottery-code-card input {
	min-width: 0;
	flex: 1 1 auto;
	height: 42px;
	padding: 0 13px;
	border: 1px solid rgba(168, 85, 247,.16);
	border-radius: 12px;
	background: rgba(43,18,64,.08);
	color: #34203b;
	outline: none;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.42);
}

.wuai-lottery-code-card input:focus {
	border-color: rgba(139, 92, 246,.42);
	box-shadow: 0 0 0 3px rgba(139, 92, 246,.10);
}

.wuai-lottery-code-card form button,
.wuai-lottery-modal-actions button,
.wuai-lottery-modal-actions a {
	flex: 0 0 auto;
	height: 42px;
	padding: 0 16px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 45%, #8b5cf6 100%);
	color: #fff;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 10px 22px rgba(168, 85, 247,.20);
}

.wuai-lottery-code-card form button:disabled {
	opacity: .68;
	cursor: default;
}

.wuai-lottery-content-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.wuai-lottery-panel {
	min-width: 0;
	padding: 12px;
}

.wuai-lottery-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.wuai-lottery-feed-list,
.wuai-lottery-record-list,
.wuai-lottery-rank-list,
.wuai-lottery-rule-text {
	display: grid;
	gap: 7px;
	color: #51324f;
	font-size: 13px;
	line-height: 1.7;
}

.wuai-lottery-feed-list {
	max-height: 118px;
	overflow: hidden;
}

.wuai-lottery-feed-row,
.wuai-lottery-record-row,
.wuai-lottery-rank-row {
	min-width: 0;
	min-height: 38px;
	padding: 8px 10px;
	border-radius: 12px;
	background: rgba(139, 92, 246,.06);
	color: #51324f;
}

.wuai-lottery-feed-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.wuai-lottery-feed-row b {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: linear-gradient(135deg, #fff7c2, #f6c453);
	color: #5c3c00;
	font-size: 12px;
	line-height: 24px;
	text-align: center;
}

.wuai-lottery-feed-row span {
	flex: 0 1 auto;
	min-width: 0;
	color: #34203b;
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wuai-lottery-feed-row em {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #8B5CF6;
	font-style: normal;
	font-weight: 800;
}

.wuai-lottery-record-row,
.wuai-lottery-rank-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.wuai-lottery-record-list:not(.is-expanded) .wuai-lottery-record-row.is-extra {
	display: none;
}

.wuai-lottery-record-row.is-win {
	border: 1px solid rgba(246, 196, 83, .34);
	background: linear-gradient(135deg, rgba(255,247,194,.45), rgba(139,92,246,.06));
}

.wuai-lottery-record-row.is-miss {
	opacity: .72;
	background: rgba(139, 92, 246, .04);
}

.wuai-lottery-record-row span,
.wuai-lottery-rank-row span {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wuai-lottery-record-row em,
.wuai-lottery-record-row time,
.wuai-lottery-rank-row em {
	flex: 0 0 auto;
	color: #b78a00;
	font-size: 12px;
	font-style: normal;
	font-weight: 800;
}

.wuai-lottery-record-row time {
	color: #8d758f;
	font-weight: 700;
}

.wuai-lottery-record-row small {
	flex: 0 0 100%;
	color: #8d758f;
	font-size: 12px;
	line-height: 1.4;
}

.wuai-lottery-rank-row {
	min-height: 44px;
}

.wuai-lottery-rank-row b {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #f6d36a;
	color: #5c3c00;
	font-size: 13px;
	line-height: 28px;
	text-align: center;
}

.wuai-lottery-rank-row i {
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(139, 92, 246,.18), rgba(124,58,237,.18));
	color: #7c3aed;
	font-style: normal;
	font-weight: 900;
	line-height: 34px;
	text-align: center;
}

.wuai-lottery-rank-row.is-rank-2 b {
	background: linear-gradient(135deg, #f8fafc, #cbd5e1);
	color: #4d5262;
}

.wuai-lottery-rank-row.is-rank-3 b {
	background: linear-gradient(135deg, #f5c38b, #b77842);
	color: #5a2f11;
}

.wuai-lottery-rank-row.is-rank-1 {
	border: 1px solid rgba(246, 196, 83, .34);
	background: linear-gradient(135deg, rgba(255,247,194,.54), rgba(139,92,246,.06));
}

.wuai-lottery-rank-row.is-rank-2 {
	border: 1px solid rgba(203, 213, 225, .50);
}

.wuai-lottery-rank-row.is-rank-3 {
	border: 1px solid rgba(183, 120, 66, .26);
}

.wuai-lottery-rule-text {
	gap: 7px;
}

.wuai-lottery-rule-text p {
	position: relative;
	margin: 0;
	padding: 7px 10px 7px 26px;
	border-radius: 10px;
	background: rgba(139, 92, 246, .05);
	line-height: 1.55;
}

.wuai-lottery-rule-text p::before {
	content: "";
	position: absolute;
	left: 12px;
	top: 15px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #f6c453;
}

.wuai-lottery-empty {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	padding: 8px 10px;
	border-radius: 12px;
	background: rgba(139, 92, 246,.05);
	color: #8d758f;
}

.wuai-lottery-empty b {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: rgba(139, 92, 246, .10);
	color: #7c3aed;
	font-size: 12px;
	font-weight: 900;
	line-height: 24px;
	text-align: center;
}

.wuai-lottery-empty span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wuai-lottery-modal-mask {
	position: fixed;
	z-index: 1090;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: rgba(17, 5, 27, .66);
	backdrop-filter: blur(8px);
	opacity: 0;
	transition: opacity .18s ease;
}

.wuai-lottery-modal-mask.is-open {
	opacity: 1;
}

.wuai-lottery-modal {
	position: relative;
	width: min(390px, 90vw);
}

.wuai-lottery-modal-card {
	position: relative;
	z-index: 1;
	max-height: calc(100vh - 44px);
	overflow: auto;
	padding: 26px 20px 20px;
	border: 1px solid rgba(168, 85, 247,.30);
	border-radius: 22px;
	background:
		linear-gradient(#fff9fd, #fff9fd) padding-box,
		linear-gradient(135deg, rgba(139, 92, 246,.58), rgba(168,85,247,.58)) border-box;
	color: #34203b;
	text-align: center;
	box-shadow: 0 26px 70px rgba(42,17,58,.28), 0 0 48px rgba(246, 196, 83,.18);
	transform: translateY(10px) scale(.98);
	transition: transform .18s ease;
}

.wuai-lottery-modal-mask.is-open .wuai-lottery-modal-card {
	transform: translateY(0) scale(1);
}

.wuai-lottery-modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: rgba(139, 92, 246,.10);
	color: #8B5CF6;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.wuai-lottery-modal-kicker {
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 11px;
	border: 1px solid rgba(168, 85, 247,.18);
	border-radius: 999px;
	background: rgba(139, 92, 246,.08);
	color: #8B5CF6;
	font-size: 13px;
	font-weight: 900;
}

.wuai-lottery-modal-card strong {
	display: block;
	margin-top: 10px;
	color: #2b1240;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 900;
}

.wuai-lottery-modal-img {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 92px;
	height: 92px;
	margin: 16px auto 12px;
	border-radius: 16px;
	background: linear-gradient(135deg, #fff7c2, #f6c453);
	box-shadow: 0 0 34px rgba(246, 196, 83,.38), 0 0 42px rgba(168, 85, 247,.22);
	overflow: hidden;
}

.wuai-lottery-modal-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wuai-lottery-modal-img b {
	color: #4b164f;
	font-size: 28px;
	font-weight: 900;
}

.wuai-lottery-modal-card p {
	margin: 0;
	color: #34203b;
	font-size: 17px;
	font-weight: 900;
}

.wuai-lottery-modal-card em {
	display: block;
	margin-top: 8px;
	color: #b78a00;
	font-style: normal;
	font-weight: 800;
}

.wuai-lottery-modal-actions {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 16px;
}

.wuai-lottery-modal-actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(168, 85, 247,.18);
	background: rgba(139, 92, 246,.08);
	color: #8B5CF6;
	box-shadow: none;
}

.wuai-lottery-particle {
	position: absolute;
	inset: -12px;
	pointer-events: none;
}

.wuai-lottery-particle i {
	position: absolute;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #ffe66d;
	box-shadow: 0 0 14px rgba(255,230,109,.72);
	animation: wuai-lottery-confetti 1.9s ease-in-out infinite;
}

.wuai-lottery-particle i:nth-child(1) { left: 8%; top: 22%; }
.wuai-lottery-particle i:nth-child(2) { left: 88%; top: 28%; animation-delay: .2s; background: #A855F7; }
.wuai-lottery-particle i:nth-child(3) { left: 20%; top: 82%; animation-delay: .4s; background: #8b5cf6; }
.wuai-lottery-particle i:nth-child(4) { left: 74%; top: 78%; animation-delay: .6s; }
.wuai-lottery-particle i:nth-child(5) { left: 50%; top: 6%; animation-delay: .8s; background: #A855F7; }

.wuai-daily-actions {
	flex: 0 0 100%;
	width: 100%;
	margin: 10px 0 0;
	padding: 0 10px 10px;
	list-style: none;
	order: 20;
}

.wuai-daily-actions-wrap {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px;
	padding: 10px;
	border: 1px solid rgba(168, 85, 247,.10);
	border-radius: 16px;
	background: rgba(255,255,255,.82);
	box-shadow: 0 8px 24px rgba(168, 85, 247,.08);
}

.wuai-daily-action {
	position: relative;
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	height: 58px;
	padding: 0 12px;
	border-radius: 14px;
	text-decoration: none !important;
	overflow: hidden;
}

.wuai-daily-icon {
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
}

.wuai-daily-copy {
	min-width: 0;
	display: block;
}

.wuai-daily-title,
.wuai-daily-subtitle {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	line-height: 1.2;
}

.wuai-daily-title {
	font-size: 15px;
	font-weight: 900;
}

.wuai-daily-subtitle {
	margin-top: 4px;
	font-size: 11px;
	font-weight: 700;
	opacity: .72;
}

.wuai-action-checkin {
	border: 1px solid rgba(168, 85, 247,.16);
	background: #f8f5ff;
	color: #8B5CF6 !important;
}

.wuai-action-checkin .wuai-daily-icon {
	background: rgba(139, 92, 246,.10);
	color: #8B5CF6;
}

.wuai-action-checkin.is-unsigned {
	background: linear-gradient(135deg, rgba(139, 92, 246,.10), rgba(168,85,247,.10));
	color: #7c3aed !important;
}

.wuai-action-lottery {
	border: 0;
	background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 45%, #8b5cf6 100%);
	color: #fff !important;
	box-shadow: 0 10px 22px rgba(168, 85, 247,.22);
}

.wuai-action-lottery .wuai-daily-icon {
	background: rgba(255,255,255,.20);
	color: #ffe66d;
}

.wuai-lottery-entry {
	flex: 0 0 100%;
	width: 100%;
	margin: 10px 0 0;
	padding: 0 10px 10px;
	list-style: none;
	order: 20;
}

.wuai-lottery-entry-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	height: 58px;
	border-radius: 16px;
	background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 45%, #8b5cf6 100%);
	color: #fff !important;
	box-shadow: 0 10px 22px rgba(168, 85, 247,.22);
}

.wuai-lottery-entry-icon {
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255,255,255,.20);
	color: #ffe66d;
	font-weight: 900;
	line-height: 34px;
	text-align: center;
}

.wuai-lottery-entry-title,
.wuai-lottery-entry-subtitle {
	display: block;
	line-height: 1.2;
	white-space: nowrap;
}

.wuai-lottery-entry-title {
	font-size: 15px;
	font-weight: 900;
}

.wuai-lottery-entry-subtitle {
	margin-top: 4px;
	font-size: 11px;
	opacity: .78;
}

.wuai-lottery-thread-card {
	margin: 14px 0 0;
	padding: 14px;
	border: 1px solid rgba(168, 85, 247,.18);
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(139, 92, 246,.08), rgba(124,58,237,.08));
}

.wuai-lottery-thread-card strong {
	display: block;
	color: #8B5CF6;
}

.wuai-lottery-thread-card p {
	margin: 6px 0 0;
	color: #6c757d;
	line-height: 1.7;
}

.wuai-lottery-label {
	display: inline-flex;
	align-items: center;
	margin-right: 4px;
	padding: 1px 6px;
	border-radius: 999px;
	background: #eef2ff;
	color: #4f46e5;
	font-size: 12px;
	font-weight: 700;
	vertical-align: 1px;
}

body.wuai-lottery-active #js-go_top.goTop {
	width: 42px !important;
	height: 42px !important;
	right: 12px !important;
	bottom: calc(86px + env(safe-area-inset-bottom)) !important;
	z-index: 1080 !important;
	opacity: .88 !important;
}

@keyframes wuai-lottery-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.035); }
}

@keyframes wuai-lottery-breath {
	0%, 100% { transform: scale(1); box-shadow: 0 0 24px rgba(139, 92, 246,.34); }
	50% { transform: scale(1.05); box-shadow: 0 0 36px rgba(255,230,109,.44); }
}

@keyframes wuai-lottery-final {
	0%, 100% { transform: translateY(-2px) scale(1.02); }
	50% { transform: translateY(-4px) scale(1.05); }
}

@keyframes wuai-lottery-card-flash {
	0%, 100% { box-shadow: 0 8px 18px rgba(139,92,246,.10), inset 0 1px 0 rgba(255,255,255,.70); }
	50% { box-shadow: 0 0 0 1px rgba(246,196,83,.34), 0 0 22px rgba(246,196,83,.22), inset 0 1px 0 rgba(255,255,255,.70); }
}

@keyframes wuai-lottery-glow {
	0%, 100% { opacity: .22; transform: translateX(-45%); }
	50% { opacity: .50; transform: translateX(45%); }
}

@keyframes wuai-lottery-confetti {
	0%, 100% { transform: translateY(0); opacity: .35; }
	50% { transform: translateY(-12px); opacity: 1; }
}

@media (max-width: 767.98px) {
	.wuai-lottery-page {
		padding: 8px 9px calc(58px + env(safe-area-inset-bottom));
	}

	.wuai-lottery-hero {
		min-height: 92px;
		padding: 13px 14px;
	}

	.wuai-lottery-title {
		font-size: 22px;
	}

	.wuai-lottery-hero-status {
		width: 76px;
		height: 70px;
		border-radius: 18px;
	}

	.wuai-lottery-hero-status strong {
		font-size: 27px;
	}

	.wuai-lottery-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wuai-lottery-stat {
		height: 46px;
	}

	.wuai-lottery-stage {
		padding: 10px;
		margin-bottom: 10px;
	}

	.wuai-lottery-prize,
	.wuai-lottery-center {
		height: clamp(84px, 24vw, 92px);
	}

	.wuai-lottery-prize {
		padding: 7px 5px;
	}

	.wuai-lottery-prize-img {
		width: 41px;
		height: 41px;
	}

	.wuai-lottery-draw-btn span {
		font-size: 15px;
	}

	.wuai-lottery-code-card form {
		min-width: 0;
		margin-top: 12px;
	}

	.wuai-lottery-code-card form button {
		padding: 0 12px;
	}

	.wuai-lottery-content-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 9px;
	}

	.wuai-lottery-modal-actions {
		flex-direction: column;
	}

	.wuai-lottery-modal-actions button,
	.wuai-lottery-modal-actions a {
		width: 100%;
	}
}

@media (max-width: 380px) {
	.wuai-lottery-page {
		padding-left: 7px;
		padding-right: 7px;
	}

	.wuai-lottery-hero {
		gap: 9px;
		padding: 12px;
	}

	.wuai-lottery-hero-status {
		width: 70px;
		height: 66px;
		border-radius: 17px;
	}

	.wuai-lottery-hero-status strong {
		font-size: 25px;
	}

	.wuai-lottery-stage {
		padding: 9px;
	}

	.wuai-lottery-orbit {
		gap: 6px;
	}

	.wuai-lottery-prize,
	.wuai-lottery-center {
		height: 82px;
	}

	.wuai-lottery-prize-name {
		font-size: 12px;
	}

	.wuai-lottery-prize-img {
		width: 38px;
		height: 38px;
	}

	.wuai-lottery-draw-btn span {
		font-size: 15px;
	}

	.wuai-daily-actions {
		padding-left: 8px;
		padding-right: 8px;
	}

	.wuai-daily-action {
		height: 56px;
		padding: 0 9px;
	}

	.wuai-daily-title {
		font-size: 14px;
	}
}

/* Lottery page scoped overrides: keep later theme CSS from dulling the game surface. */
body.wuai-lottery-active .wuai-lottery-page .wuai-lottery-stage {
	margin-bottom: 10px !important;
	background:
		radial-gradient(circle at 50% 48%, rgba(246, 196, 83, .24), transparent 30%),
		linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(246,239,255,.96) 52%, rgba(255,248,226,.96) 100%) !important;
	box-shadow: 0 16px 32px rgba(99,102,241,.15), inset 0 1px 0 rgba(255,255,255,.78) !important;
}

body.wuai-lottery-active .wuai-lottery-page .wuai-lottery-hero {
	border-color: rgba(255, 255, 255, .36) !important;
	background:
		linear-gradient(115deg, rgba(255, 230, 109, .30), transparent 28%),
		linear-gradient(135deg, #7c3aed 0%, #a855f7 48%, #fb7185 100%) !important;
	box-shadow: 0 16px 34px rgba(124, 58, 237, .22), inset 0 1px 0 rgba(255,255,255,.28) !important;
	color: #fff !important;
}

body.wuai-lottery-active .wuai-lottery-page .wuai-lottery-title {
	color: #fff !important;
}

body.wuai-lottery-active .wuai-lottery-page .wuai-lottery-subtitle {
	color: rgba(255,255,255,.82) !important;
}

body.wuai-lottery-active .wuai-lottery-page .wuai-lottery-badge {
	border-color: rgba(255,255,255,.38) !important;
	background: rgba(255,255,255,.18) !important;
	color: #fff7c2 !important;
}

body.wuai-lottery-active .wuai-lottery-page .wuai-lottery-hero-status {
	border-color: rgba(255,255,255,.40) !important;
	background: rgba(255,255,255,.16) !important;
	color: #fff !important;
}

body.wuai-lottery-active .wuai-lottery-page .wuai-lottery-draw-btn {
	border-radius: 24px !important;
	background:
		radial-gradient(circle at 50% 18%, rgba(255,255,255,.45), transparent 34%),
		linear-gradient(135deg, #6d28d9 0%, #8B5CF6 42%, #f6c453 100%) !important;
	box-shadow: 0 15px 30px rgba(124, 58, 237, .32), 0 0 0 5px rgba(246,196,83,.20), inset 0 1px 0 rgba(255,255,255,.34) !important;
}

body.wuai-lottery-active .wuai-lottery-page .wuai-lottery-draw-btn:disabled {
	background:
		radial-gradient(circle at 50% 18%, rgba(255,255,255,.30), transparent 34%),
		linear-gradient(135deg, #6d5f91 0%, #8b7fc0 50%, #b79b5a 100%) !important;
	color: #fff !important;
	box-shadow: 0 10px 24px rgba(124, 58, 237,.18), 0 0 0 5px rgba(255,255,255,.40), inset 0 1px 0 rgba(255,255,255,.22) !important;
}

body.wuai-lottery-active .wuai-lottery-page .wuai-lottery-draw-btn::before {
	border-radius: 28px !important;
}

@media (max-width: 767.98px) {
	body.wuai-lottery-active .wuai-lottery-page .wuai-lottery-stage {
		margin-bottom: 10px !important;
	}

	body.wuai-lottery-active footer:not(.fixed-bottom),
	body.wuai-lottery-active .footer:not(.fixed-bottom),
	body.wuai-lottery-active .text-muted.small.bg-white.py-4.mt-3 {
		display: none !important;
	}
}
