.spin-wheel {
	--sw-color_overlay: #000000;
	--sw-overlay_opacity: 0.75;
	--sw-color_popup: #141414;
	--sw-color_border: #ffd600;
	--sw-border_width: 3px;
	--sw-color_title: #ffffff;
	--sw-color_text: #ffffff;
	--sw-color_highlight: #ffd600;
	--sw-color_link: #ffd600;
	--sw-color_close: #ffd600;
	--sw-color_close_bg: #141414;
	--sw-color_button: #e43b90;
	--sw-color_button_text: #ffffff;
	--sw-color_button_hover: #c92a7b;
	--sw-color_button_hover_text: #ffffff;
	--sw-button_radius: 14px;
	--sw-color_rim: #141414;
	--sw-color_rim_light: #ffd600;
	--sw-color_pointer: #ffd600;
	--sw-color_hub: #141414;
	--sw-color_hub_border: #ffd600;
	--sw-color_divider: #141414;
	--sw-color_badge: #ffd600;
	--sw-color_badge_text: #ffffff;
	--sw-color_code: #000000;
	--sw-code_border: dashed;
	--sw-color_code_text: #ffffff;
	--sw-color_copy: #ffd600;
	--sw-color_info: #000000;
	--sw-color_info_border: #ffd600;
	--sw-color_info_text: #ffffff;
	--sw-width: 520px;
	--sw-radius: 22px;
	--sw-wheel_size: 82%;
	--sw-badge_size: 380px;
	--sw-font_size_heading: 28px;
	--sw-font_size_text: 14px;
	--sw-icon_offset: 20px;
	--sw-icon_size: 64px;
	--sw-image_background: none;
	--sw-image_background_mobile: var(--sw-image_background);
}

.spin-wheel,
.spin-wheel *,
.spin-wheel *::before,
.spin-wheel *::after {
	box-sizing: border-box;
}

.spin-wheel-symbols {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.spin-wheel-icon,
.spin-wheel-overlay,
.spin-wheel-popup,
.spin-wheel-hidden {
	display: none;
}

.spin-wheel-active .spin-wheel-icon {
	display: flex;
}

.spin-wheel-icon {
	position: fixed;
	bottom: var(--sw-icon_offset);
	z-index: 100000;
	align-items: center;
	gap: 8px;
	padding: 0 16px 0 0;
	border: 0;
	border-radius: 999px;
	background: var(--sw-color_popup);
	color: var(--sw-color_text);
	font-family: var(--sw-font_heading, inherit);
	font-weight: 700;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
	cursor: pointer;
}

.spin-wheel-left .spin-wheel-icon {
	left: var(--sw-icon_offset);
}

.spin-wheel-right .spin-wheel-icon {
	right: var(--sw-icon_offset);
	flex-direction: row-reverse;
	padding: 0 0 0 16px;
}

.spin-wheel-icon img,
.spin-wheel-icon-image {
	display: block;
	width: var(--sw-icon_size);
	height: var(--sw-icon_size);
	border-radius: 50%;
	object-fit: cover;
}

.spin-wheel-icon-image {
	background: conic-gradient(var(--sw-color_highlight) 0 25%, var(--sw-color_button) 0 50%, var(--sw-color_highlight) 0 75%, var(--sw-color_button) 0);
	border: 3px solid var(--sw-color_border);
}

.spin-wheel-label-none .spin-wheel-icon-text {
	display: none;
}

.spin-wheel-label-none {
	padding: 0;
}

.spin-wheel-pulse {
	animation: spin-wheel-pulse 2s ease-in-out infinite;
}

@keyframes spin-wheel-pulse {
	0%, 100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.06);
	}
}

.spin-wheel-open .spin-wheel-overlay {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 100001;
	background: var(--sw-color_overlay);
	opacity: var(--sw-overlay_opacity);
	touch-action: none;
}

.spin-wheel-open .spin-wheel-popup {
	display: block;
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 100002;
	width: calc(100% - 32px);
	max-width: var(--sw-width);
	max-height: calc(100% - 32px);
	max-height: calc(100dvh - 32px);
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 28px 28px 22px;
	transform: translate(-50%, -50%);
	border: var(--sw-border_width) solid var(--sw-color_border);
	border-radius: var(--sw-radius);
	background: var(--sw-color_popup) var(--sw-image_background) center / cover no-repeat;
	color: var(--sw-color_text);
	font-family: var(--sw-font_body, inherit);
	font-size: var(--sw-font_size_text);
	line-height: 1.4;
	text-align: center;
	outline: none;
}

.spin-wheel-locked {
	overflow: hidden;
	overscroll-behavior: none;
}

.spin-wheel-gutter {
	scrollbar-gutter: stable;
}

.spin-wheel-popup .spin-wheel-for-wheel,
.spin-wheel-popup .spin-wheel-for-spinning,
.spin-wheel-popup .spin-wheel-for-limit,
.spin-wheel-popup .spin-wheel-for-win,
.spin-wheel-popup .spin-wheel-for-code,
.spin-wheel-popup .spin-wheel-limit-email,
.spin-wheel-popup .spin-wheel-limit-device {
	display: none;
}

.spin-wheel-popup.spin-wheel-state-wheel .spin-wheel-for-wheel,
.spin-wheel-popup.spin-wheel-state-spinning .spin-wheel-for-spinning,
.spin-wheel-popup.spin-wheel-state-limit .spin-wheel-for-limit,
.spin-wheel-popup.spin-wheel-state-win .spin-wheel-for-win,
.spin-wheel-popup.spin-wheel-state-code .spin-wheel-for-code,
.spin-wheel-popup.spin-wheel-limit-type-email .spin-wheel-limit-email,
.spin-wheel-popup.spin-wheel-limit-type-device .spin-wheel-limit-device {
	display: block;
}

.spin-wheel-popup.spin-wheel-limit-type-email .spin-wheel-pill.spin-wheel-limit-email,
.spin-wheel-popup.spin-wheel-limit-type-device .spin-wheel-pill.spin-wheel-limit-device {
	display: inline-flex;
}

.spin-wheel-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 3px solid var(--sw-color_close);
	border-radius: 50%;
	background: var(--sw-color_close_bg);
	color: var(--sw-color_close);
	cursor: pointer;
}

.spin-wheel-close svg {
	width: 20px;
	height: 20px;
}

.spin-wheel-heading {
	margin: 0 52px 14px;
}

.spin-wheel-logo {
	display: block;
	max-width: 100%;
	max-height: 96px;
	margin: 0 auto;
}

.spin-wheel-name {
	color: var(--sw-color_highlight);
	font-family: var(--sw-font_heading, inherit);
	font-size: calc(var(--sw-font_size_heading) * 1.4);
	font-weight: 900;
	line-height: 1.1;
	text-transform: uppercase;
}

.spin-wheel-title,
.spin-wheel-subtitle {
	margin: 0 0 14px;
	color: var(--sw-color_title);
	font-family: var(--sw-font_heading, inherit);
	font-size: var(--sw-font_size_heading);
	font-weight: 800;
	line-height: 1.15;
}

.spin-wheel-subtitle {
	font-size: calc(var(--sw-font_size_heading) * 1.25);
}

.spin-wheel-title-large {
	margin: 24px 0 26px;
	color: var(--sw-color_highlight);
	font-size: calc(var(--sw-font_size_heading) * 1.45);
	overflow-wrap: break-word;
	text-shadow: 3px 3px 0 #000000;
}

.spin-wheel-highlight {
	color: var(--sw-color_highlight);
}

.spin-wheel-wheel {
	position: relative;
	width: var(--sw-wheel_size);
	max-width: 420px;
	margin: 8px auto 20px;
	aspect-ratio: 1 / 1;
}

.spin-wheel-disc {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.spin-wheel-rotor {
	width: 100%;
	height: 100%;
	transform: rotate(0deg);
	transform-origin: 50% 50%;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	will-change: transform;
}

.spin-wheel-rotor svg {
	display: block;
	width: 100%;
	height: 100%;
	font-family: var(--sw-font_heading, inherit);
	transition: filter 0.4s ease, opacity 0.3s ease;
}

.spin-wheel-blur .spin-wheel-rotor svg {
	filter: blur(3px);
}

.spin-wheel-state-limit .spin-wheel-rotor svg {
	opacity: 0.55;
}

.spin-wheel-rim {
	fill: var(--sw-color_rim);
	stroke: var(--sw-color_border);
	stroke-width: 1.6;
}

.spin-wheel-slice {
	stroke: var(--sw-color_divider);
}

.spin-wheel-light {
	fill: var(--sw-color_rim_light);
}

.spin-wheel-light-2 {
	fill: var(--sw-color_rim_light_2, var(--sw-color_rim_light));
}

.spin-wheel-light-3 {
	fill: var(--sw-color_rim_light_3, var(--sw-color_rim_light));
}

.spin-wheel-pointer {
	position: absolute;
	top: -8px;
	left: 50%;
	z-index: 2;
	width: 0;
	height: 0;
	transform: translateX(-50%);
	border-top: 30px solid var(--sw-color_pointer);
	border-right: 15px solid transparent;
	border-left: 15px solid transparent;
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.45));
}

.spin-wheel-hub {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34%;
	height: 34%;
	overflow: hidden;
	transform: translate(-50%, -50%);
	border: 3px solid var(--sw-color_hub_border);
	border-radius: 50%;
	background: var(--sw-color_hub);
}

.spin-wheel-hub-image {
	max-width: 86%;
	max-height: 86%;
}

.spin-wheel-hub-wait {
	display: none;
	max-width: 100%;
	max-height: 100%;
}

.spin-wheel-hub-clock {
	width: 62%;
	height: 62%;
	color: #000000;
}

.spin-wheel-state-limit .spin-wheel-hub {
	background: var(--sw-color_highlight);
}

.spin-wheel-state-limit .spin-wheel-hub-image {
	display: none;
}

.spin-wheel-state-limit .spin-wheel-hub-wait {
	display: block;
}

.spin-wheel-button {
	display: block;
	width: 100%;
	max-width: 440px;
	margin: 0 auto 18px;
	padding: 14px 18px;
	border: 0;
	border-radius: var(--sw-button_radius);
	background: var(--sw-color_button);
	color: var(--sw-color_button_text);
	font-family: var(--sw-font_heading, inherit);
	font-size: calc(var(--sw-font_size_heading) * 1.3);
	font-weight: 900;
	line-height: 1.1;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.spin-wheel-button:hover,
.spin-wheel-button:focus {
	background: var(--sw-color_button_hover);
	color: var(--sw-color_button_hover_text);
}

.spin-wheel-button:disabled {
	cursor: default;
}

.spin-wheel-box {
	margin: 0 auto 18px;
	padding: 14px 18px;
	border: 2px solid var(--sw-color_info_border);
	border-radius: 16px;
	background: var(--sw-color_info);
	color: var(--sw-color_info_text);
	text-align: left;
}

.spin-wheel-box-title {
	margin-bottom: 6px;
	color: var(--sw-color_highlight);
	font-family: var(--sw-font_heading, inherit);
	font-weight: 800;
}

.spin-wheel-items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.spin-wheel-items li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 6px;
}

.spin-wheel-items-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 16px;
}

.spin-wheel-items-row li {
	margin: 0;
}

.spin-wheel-item-icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	color: var(--sw-color_highlight);
}

.spin-wheel-note {
	margin: 8px 0 0;
	font-size: 0.9em;
	opacity: 0.85;
}

.spin-wheel-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 22px;
	margin-top: 10px;
}

.spin-wheel-box .spin-wheel-links {
	justify-content: space-between;
}

.spin-wheel-links a {
	color: var(--sw-color_link);
	font-weight: 700;
	text-decoration: underline;
}

.spin-wheel-pill {
	align-items: center;
	gap: 10px;
	margin: 0 auto 22px;
	padding: 8px 18px;
	border: 2px solid var(--sw-color_info_border);
	border-radius: 999px;
	background: var(--sw-color_info);
	color: var(--sw-color_highlight);
	font-family: var(--sw-font_heading, inherit);
	font-size: calc(var(--sw-font_size_heading) * 0.75);
	font-weight: 800;
}

.spin-wheel-pill svg {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
}

.spin-wheel-badge {
	width: 100%;
	max-width: var(--sw-badge_size);
	margin: 0 auto 6px;
}

.spin-wheel-badge-image,
.spin-wheel-badge-svg {
	display: none;
	width: 100%;
	height: auto;
}

.spin-wheel-burst {
	fill: var(--sw-color_badge);
	stroke: #000000;
	stroke-width: 3;
	stroke-linejoin: round;
}

.spin-wheel-badge-text {
	fill: var(--sw-color_badge_text);
	stroke: #000000;
	stroke-width: 4;
	paint-order: stroke;
	font-family: var(--sw-font_heading, inherit);
	font-size: 46px;
	font-weight: 900;
}

.spin-wheel-box-form {
	max-width: 460px;
}

.spin-wheel-label {
	display: block;
	margin-bottom: 8px;
	color: var(--sw-color_highlight);
	font-family: var(--sw-font_heading, inherit);
	font-weight: 800;
	text-transform: uppercase;
}

.spin-wheel-code-box .spin-wheel-label {
	color: var(--sw-color_info_text);
	font-size: 1.25em;
	text-align: center;
}

.spin-wheel-input {
	position: relative;
	margin-bottom: 12px;
}

.spin-wheel-input svg {
	position: absolute;
	top: 50%;
	left: 14px;
	width: 22px;
	height: 22px;
	transform: translateY(-50%);
	color: #9a9a9a;
}

.spin-wheel-input input {
	display: block;
	width: 100%;
	height: 50px;
	padding: 0 14px 0 46px;
	border: 3px solid var(--sw-color_highlight);
	border-radius: 12px;
	background: #ffffff;
	color: #111111;
	font-size: 16px;
}

.spin-wheel-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 8px;
	font-weight: 400;
	cursor: pointer;
}

.spin-wheel-checkbox input {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin: 0;
	-webkit-appearance: none;
	appearance: none;
	border: 2px solid #ffffff;
	border-radius: 5px;
	background: transparent;
	cursor: pointer;
}

.spin-wheel-checkbox input:checked {
	border-color: var(--sw-color_highlight);
	background: var(--sw-color_highlight) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.spin-wheel-checkbox input:focus-visible,
.spin-wheel-input input:focus {
	outline: 2px solid var(--sw-color_link);
	outline-offset: 2px;
}

.spin-wheel-code-box {
	max-width: 100%;
}

.spin-wheel-code-row {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px 12px 22px;
	border: 3px var(--sw-code_border) var(--sw-color_highlight);
	border-radius: 16px;
	background: var(--sw-color_code);
}

.spin-wheel-code {
	color: var(--sw-color_code_text);
	font-family: var(--sw-font_heading, inherit);
	font-size: calc(var(--sw-font_size_heading) * 1.6);
	font-weight: 900;
	letter-spacing: 0.04em;
	white-space: nowrap;
	-webkit-user-select: all;
	user-select: all;
}

.spin-wheel-copy {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	padding: 6px;
	border: 0;
	background: transparent;
	color: var(--sw-color_copy);
	cursor: pointer;
}

.spin-wheel-copy svg {
	width: 100%;
	height: 100%;
}

.spin-wheel-copied {
	position: absolute;
	right: 8px;
	bottom: -26px;
	color: var(--sw-color_copy);
	font-size: 0.9em;
	font-weight: 700;
}

.spin-wheel-error {
	color: #ff8a8a;
	font-weight: 700;
}

.spin-wheel-error:empty,
.spin-wheel-live {
	display: none;
}

.spin-wheel-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	z-index: 100003;
	display: none;
	max-width: calc(100% - 32px);
	padding: 12px 20px;
	transform: translateX(-50%);
	border: 2px solid var(--sw-color_border);
	border-radius: 12px;
	background: var(--sw-color_popup);
	color: var(--sw-color_text);
	font-weight: 700;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.spin-wheel-toast.active {
	display: block;
}

@media (min-width: 577px) {
	.spin-wheel-label-desktop .spin-wheel-icon-text {
		display: inline;
	}
}

@media (max-width: 576px) {
	.spin-wheel-label-desktop .spin-wheel-icon-text {
		display: none;
	}

	.spin-wheel-label-desktop {
		padding: 0;
	}

	.spin-wheel-open .spin-wheel-popup {
		padding: 22px 16px 16px;
		background-image: var(--sw-image_background_mobile);
	}

	.spin-wheel-mobile-sheet.spin-wheel-open .spin-wheel-popup {
		top: auto;
		bottom: 0;
		width: 100%;
		max-height: 92%;
		max-height: 92dvh;
		transform: translate(-50%, 0);
		border-bottom: 0;
		border-radius: var(--sw-radius) var(--sw-radius) 0 0;
	}

	.spin-wheel-mobile-full.spin-wheel-open .spin-wheel-popup {
		width: 100%;
		max-width: none;
		height: 100%;
		height: 100dvh;
		max-height: none;
		border: 0;
		border-radius: 0;
	}

	.spin-wheel-close {
		top: 10px;
		right: 10px;
		width: 38px;
		height: 38px;
	}

	.spin-wheel-heading {
		margin: 0 44px 10px;
	}

	.spin-wheel-logo {
		max-height: 64px;
	}

	.spin-wheel-title,
	.spin-wheel-subtitle {
		font-size: calc(var(--sw-font_size_heading) * 0.8);
	}

	.spin-wheel-title-large {
		font-size: calc(var(--sw-font_size_heading) * 1.1);
	}

	.spin-wheel-wheel {
		width: 86%;
		max-width: 340px;
	}

	.spin-wheel-button {
		font-size: var(--sw-font_size_heading);
	}

	.spin-wheel-items-row {
		flex-direction: column;
	}

	.spin-wheel-code {
		font-size: var(--sw-font_size_heading);
	}

	.spin-wheel-pill {
		font-size: calc(var(--sw-font_size_heading) * 0.6);
	}
}

@media (prefers-reduced-motion: reduce) {
	.spin-wheel-pulse {
		animation: none;
	}

	.spin-wheel-blur .spin-wheel-rotor svg {
		filter: none;
	}
}
