.snz-wheel-launch,
.snz-wheel-close,
.snz-wheel-spin,
.snz-wheel-copy {
	appearance: none;
	-webkit-appearance: none;
}

.snz-wheel-launch {
	position: fixed;
	z-index: 99990;
	left: 18px;
	bottom: 22px;
	width: 78px;
	height: 78px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.snz-wheel-launch-disc {
	display: block;
	width: 78px;
	height: 78px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 50% 50%, #f6edd4 0 4px, #10281c 5px 16px, transparent 17px),
		conic-gradient(
			from -22.5deg,
			#123826 0 45deg,
			#d7b56a 45deg 90deg,
			#1c6840 90deg 135deg,
			#f0e2bc 135deg 180deg,
			#123826 180deg 225deg,
			#d7b56a 225deg 270deg,
			#1c6840 270deg 315deg,
			#f0e2bc 315deg 360deg
		);
	box-shadow:
		inset 0 0 0 4px #f0e2bc,
		0 0 0 2px #10281c,
		0 10px 22px rgba(0, 0, 0, 0.28);
	animation: snz-wheel-idle 12s linear infinite;
}

.snz-wheel-launch::before {
	content: "";
	position: absolute;
	z-index: 2;
	top: -1px;
	left: 50%;
	transform: translateX(-50%);
	border-left: 7px solid transparent;
	border-right: 7px solid transparent;
	border-top: 12px solid #f0e2bc;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.snz-wheel-launch:hover {
	transform: translateY(-3px) scale(1.05);
}

.snz-wheel-launch:hover .snz-wheel-launch-disc {
	box-shadow:
		inset 0 0 0 4px #f0e2bc,
		0 0 0 2px #10281c,
		0 14px 28px rgba(0, 0, 0, 0.34);
}

.snz-wheel-launch:active {
	transform: translateY(0) scale(0.97);
}

.snz-wheel-overlay {
	position: fixed;
	inset: 0;
	z-index: 99991;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	background: rgba(8, 12, 8, 0.42);
}

.snz-wheel-overlay.is-open {
	display: flex !important;
}

.snz-wheel-dialog {
	position: relative;
	width: min(440px, 100%);
	max-height: calc(100vh - 32px);
	overflow: visible;
	margin: 0;
	padding: 56px 22px 22px;
	border: 1px solid rgba(232, 201, 122, 0.55) !important;
	border-radius: 28px !important;
	background:
		radial-gradient(circle at 50% 0%, rgba(232, 201, 122, 0.16), transparent 42%),
		linear-gradient(180deg, rgba(22, 42, 30, 0.96) 0%, rgba(10, 18, 14, 0.96) 100%) !important;
	background-color: #12261c !important;
	box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45) !important;
	text-align: center;
	color: #f7f1e4;
}

button.snz-wheel-close {
	position: absolute !important;
	top: 14px !important;
	right: 14px !important;
	left: auto !important;
	z-index: 5;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	max-width: 36px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid rgba(240, 226, 188, 0.9) !important;
	border-radius: 50% !important;
	background: rgba(16, 40, 28, 0.65) !important;
	color: #f0e2bc !important;
	box-shadow: none !important;
	cursor: pointer;
	font-size: 22px !important;
	font-weight: 500;
	line-height: 1 !important;
	flex: none !important;
	transition: background 0.2s ease, color 0.2s ease;
}

button.snz-wheel-close:hover {
	background: #f0e2bc !important;
	color: #10281c !important;
	transform: none;
}

.snz-wheel-dialog h2 {
	margin: 0 0 2px;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #f0e2bc;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.snz-wheel-lead {
	margin: 0 0 14px;
	color: #f7f1e4;
	font-size: 14px;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.snz-wheel-stage {
	position: relative;
	width: 320px;
	height: 320px;
	margin: 8px auto 18px;
}

.snz-wheel-pointer {
	position: absolute;
	z-index: 3;
	top: 2px;
	left: 50%;
	transform: translateX(-50%);
	border-left: 12px solid transparent;
	border-right: 12px solid transparent;
	border-top: 22px solid #f0e2bc;
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4));
}

.snz-wheel {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	position: relative;
	background:
		radial-gradient(circle at 50% 42%, rgba(255, 248, 230, 0.2), transparent 36%),
		radial-gradient(circle at 50% 100%, rgba(0, 0, 0, 0.28), transparent 46%),
		conic-gradient(
			from -30deg,
			#0e3324 0 60deg,
			#1a6240 60deg 120deg,
			#145238 120deg 180deg,
			#0e3324 180deg 240deg,
			#1a6240 240deg 300deg,
			#145238 300deg 360deg
		);
	box-shadow:
		inset 0 0 0 10px #e7d3a1,
		inset 0 0 0 14px #10281c,
		0 0 0 1px rgba(240, 226, 188, 0.9),
		0 18px 34px rgba(0, 0, 0, 0.32);
	transform: rotate(0deg);
}

.snz-wheel::before {
	content: "";
	position: absolute;
	inset: 14px;
	border-radius: 50%;
	background: repeating-conic-gradient(
		from -30deg,
		transparent 0 59deg,
		rgba(240, 226, 188, 0.95) 59deg 60deg
	);
	pointer-events: none;
}

.snz-wheel.is-spinning {
	transition: transform 4.2s cubic-bezier(0.12, 0.65, 0.08, 1);
}

.snz-wheel-label {
	position: absolute;
	z-index: 1;
	left: 50%;
	top: 16px;
	width: 28px;
	height: 120px;
	margin-left: -14px;
	transform-origin: 50% calc(160px - 16px);
	transform: rotate(calc(var(--i) * var(--snz-step, 60deg)));
	display: flex;
	align-items: flex-start;
	justify-content: center;
	pointer-events: none;
}

.snz-wheel-label > span {
	display: inline-block;
	margin-top: 34px;
	font-size: 20px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
	color: #f7f1e4;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
	transform: rotate(-90deg);
}

.snz-wheel-hub {
	position: absolute;
	z-index: 2;
	left: 50%;
	top: 50%;
	width: 62px;
	height: 62px;
	margin: -31px 0 0 -31px;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 42%, #f7f1e4 0 6px, #e7d3a1 7px 13px, #10281c 14px);
	box-shadow: 0 0 0 3px #f0e2bc;
}

.snz-wheel-spin,
.snz-wheel-copy {
	border: 0 !important;
	border-radius: 999px !important;
	background: linear-gradient(180deg, #f6edd4 0%, #d7b56a 100%) !important;
	color: #10281c !important;
	font: 800 15px/1 inherit;
	letter-spacing: 0.03em;
	padding: 14px 28px;
	cursor: pointer;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22) !important;
	transition: transform 0.2s ease, filter 0.2s ease;
}

.snz-wheel-spin:hover,
.snz-wheel-copy:hover {
	background: linear-gradient(180deg, #fff6df 0%, #e4c57a 100%) !important;
	color: #10281c !important;
	transform: translateY(-2px);
	filter: brightness(1.03);
}

.snz-wheel-spin:active,
.snz-wheel-copy:active {
	transform: translateY(0) scale(0.98);
}

.snz-wheel-spin[hidden] {
	display: none !important;
}

.snz-wheel-result {
	display: none;
	margin: 16px auto 0;
	max-width: 320px;
}

.snz-wheel-result.is-shown {
	display: block;
}

.snz-wheel-result strong {
	display: block;
	margin: 0 0 12px;
	font-size: 26px;
	line-height: 1.2;
	color: #f7f1e4;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.snz-wheel-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.snz-wheel-actions[hidden] {
	display: none !important;
}

.snz-wheel-code {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid rgba(240, 226, 188, 0.9);
	background: transparent;
	color: #f6edd4;
	font-weight: 800;
	letter-spacing: 0.06em;
}

.snz-wheel-note {
	margin: 12px auto 0;
	max-width: 280px;
	color: #f7f1e4;
	font-size: 13px;
	line-height: 1.45;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.snz-wheel-note[hidden] {
	display: none !important;
}

@keyframes snz-wheel-idle {
	to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
	.snz-wheel-stage {
		width: 268px;
		height: 268px;
	}
	.snz-wheel-label {
		top: 12px;
		height: 100px;
		transform-origin: 50% calc(134px - 12px);
	}
	.snz-wheel-label > span {
		margin-top: 26px;
		font-size: 16px;
	}
	.snz-wheel-dialog h2 {
		font-size: 22px;
	}
	.snz-wheel-result strong {
		font-size: 22px;
	}
	.snz-wheel-launch,
	.snz-wheel-launch-disc {
		width: 68px;
		height: 68px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.snz-wheel.is-spinning,
	.snz-wheel-launch,
	.snz-wheel-launch-disc,
	.snz-wheel-close,
	.snz-wheel-spin,
	.snz-wheel-copy {
		animation: none;
		transition: none;
	}
}
