/**
 * MAH24 Spin Wheel — customer-facing Neon Game theme.
 * Every visual rule is scoped to the plugin root, apart from the deliberately
 * prefixed body scroll-lock class used while a modal instance is open.
 */

.m24sw-root {
	--m24sw-bg: #08101d;
	--m24sw-bg-deep: #050914;
	--m24sw-panel: #0b1224;
	--m24sw-panel-soft: #101a31;
	--m24sw-cyan: #00d9ff;
	--m24sw-blue: #4e7cff;
	--m24sw-purple: #7c61ff;
	--m24sw-magenta: #d946ef;
	--m24sw-success: #3ee6c1;
	--m24sw-error: #ff5a7a;
	--m24sw-text: #f4faff;
	--m24sw-text-soft: #afc4e8;
	--m24sw-muted: #7e93b5;
	--m24sw-line: rgba(126, 167, 218, 0.26);
	--m24sw-radius: 26px;
	--m24sw-ease: cubic-bezier(0.22, 0.72, 0.18, 1);
	position: relative;
	z-index: 0;
	direction: rtl;
	color: var(--m24sw-text);
	font-family: Vazirmatn, IRANSansX, IRANSans, Tahoma, Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	text-align: right;
	color-scheme: dark;
	-webkit-font-smoothing: antialiased;
}

.m24sw-root,
.m24sw-root * {
	box-sizing: border-box;
}

.m24sw-root [hidden] {
	display: none !important;
}

.m24sw-root button,
.m24sw-root input,
.m24sw-root output {
	font: inherit;
}

.m24sw-root button {
	-webkit-tap-highlight-color: transparent;
}

.m24sw-root svg {
	display: block;
}

.m24sw-ltr {
	direction: ltr;
	unicode-bidi: isolate;
}

.m24sw-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

body.m24sw-modal-open {
	overflow: hidden !important;
	overscroll-behavior: none;
}

/* Floating campaign teaser. */
.m24sw-root .m24sw-launcher {
	position: fixed;
	right: auto;
	bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px));
	left: max(24px, calc(env(safe-area-inset-left) + 16px));
	z-index: 999990;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 66px;
	max-width: min(260px, calc(100vw - 32px));
	padding: 8px 18px 8px 9px;
	color: var(--m24sw-text);
	background:
		linear-gradient(120deg, rgba(8, 16, 36, 0.98), rgba(19, 12, 50, 0.98)) padding-box,
		linear-gradient(120deg, var(--m24sw-cyan), var(--m24sw-blue), var(--m24sw-magenta)) border-box;
	border: 1px solid transparent;
	border-radius: 999px;
	box-shadow:
		0 14px 40px rgba(0, 0, 0, 0.42),
		0 0 28px rgba(0, 217, 255, 0.22),
		inset 0 0 22px rgba(78, 124, 255, 0.08);
	cursor: pointer;
	isolation: isolate;
	transition: transform 180ms ease, box-shadow 180ms ease;
	animation: m24sw-launcher-pulse 3.2s ease-in-out infinite;
}

.m24sw-root[data-m24sw-launcher-position="bottom-right"] .m24sw-launcher {
	right: max(24px, calc(env(safe-area-inset-right) + 16px));
	left: auto;
	padding: 8px 9px 8px 18px;
}

.m24sw-root .m24sw-launcher:hover {
	transform: translateY(-3px);
	box-shadow:
		0 18px 48px rgba(0, 0, 0, 0.48),
		0 0 36px rgba(0, 217, 255, 0.34),
		0 0 42px rgba(217, 70, 239, 0.16);
}

.m24sw-root .m24sw-launcher:active {
	transform: translateY(0) scale(0.98);
}

.m24sw-root .m24sw-launcher__orb {
	position: relative;
	display: grid;
	flex: 0 0 50px;
	width: 50px;
	height: 50px;
	place-items: center;
	color: var(--m24sw-cyan);
	background: radial-gradient(circle at 35% 25%, #173f78 0, #09142b 56%, #040713 100%);
	border: 1px solid rgba(0, 217, 255, 0.76);
	border-radius: 50%;
	box-shadow: 0 0 20px rgba(0, 217, 255, 0.44), inset 0 0 14px rgba(124, 97, 255, 0.32);
}

.m24sw-root .m24sw-launcher__orb::before {
	position: absolute;
	inset: -5px;
	content: "";
	border: 2px solid rgba(124, 97, 255, 0.7);
	border-block-color: var(--m24sw-cyan) var(--m24sw-magenta);
	border-radius: inherit;
	filter: drop-shadow(0 0 5px rgba(0, 217, 255, 0.9));
}

.m24sw-root .m24sw-launcher__orb svg {
	width: 27px;
	height: 27px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	filter: drop-shadow(0 0 5px currentColor);
}

.m24sw-root .m24sw-launcher__text {
	overflow: hidden;
	font-size: 14px;
	font-weight: 800;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.m24sw-root .m24sw-launcher__badge {
	position: absolute;
	top: -7px;
	right: -2px;
	display: grid;
	width: 24px;
	height: 24px;
	place-items: center;
	font-size: 12px;
	font-weight: 800;
	background: linear-gradient(145deg, var(--m24sw-magenta), #8a2be2);
	border: 2px solid #11172a;
	border-radius: 50%;
	box-shadow: 0 0 15px rgba(217, 70, 239, 0.66);
}

.m24sw-root[data-m24sw-launcher-position="bottom-right"] .m24sw-launcher__badge {
	right: auto;
	left: -2px;
}

/* Modal and code-rendered star field. */
.m24sw-root .m24sw-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	padding: clamp(12px, 3vw, 42px);
	place-items: center;
	overflow: auto;
	background: rgba(1, 4, 13, 0.82);
	backdrop-filter: blur(13px) saturate(1.15);
	-webkit-backdrop-filter: blur(13px) saturate(1.15);
	opacity: 0;
	visibility: hidden;
	transition: opacity 220ms ease, visibility 220ms ease;
	overscroll-behavior: contain;
}

.m24sw-root .m24sw-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.m24sw-root .m24sw-shell {
	position: relative;
	width: min(1180px, 100%);
	min-height: min(700px, calc(100dvh - 48px));
	overflow: hidden;
	color: var(--m24sw-text);
	background:
		radial-gradient(circle at 8% 16%, rgba(86, 36, 205, 0.2) 0 1px, transparent 2px),
		radial-gradient(circle at 82% 18%, rgba(0, 217, 255, 0.28) 0 1px, transparent 2px),
		radial-gradient(circle at 25% 74%, rgba(217, 70, 239, 0.22) 0 1.5px, transparent 2.5px),
		radial-gradient(circle at 74% 80%, rgba(78, 124, 255, 0.28) 0 1px, transparent 2px),
		linear-gradient(135deg, rgba(9, 17, 37, 0.99), rgba(4, 8, 22, 0.995) 55%, rgba(9, 7, 29, 0.99));
	background-size: 170px 150px, 230px 190px, 270px 220px, 310px 250px, auto;
	border: 1px solid rgba(126, 167, 218, 0.34);
	border-radius: var(--m24sw-radius);
	box-shadow:
		0 40px 100px rgba(0, 0, 0, 0.62),
		0 0 70px rgba(78, 124, 255, 0.12),
		inset 0 1px 0 rgba(255, 255, 255, 0.045);
	transform: translateY(15px) scale(0.975);
	transition: transform 260ms var(--m24sw-ease);
	isolation: isolate;
}

.m24sw-root .m24sw-overlay.is-open .m24sw-shell {
	transform: translateY(0) scale(1);
}

.m24sw-root .m24sw-shell::before,
.m24sw-root .m24sw-shell::after {
	position: absolute;
	z-index: -1;
	width: 420px;
	height: 420px;
	content: "";
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.15;
	pointer-events: none;
}

.m24sw-root .m24sw-shell::before {
	top: -250px;
	right: -120px;
	background: var(--m24sw-cyan);
}

.m24sw-root .m24sw-shell::after {
	bottom: -290px;
	left: 8%;
	background: var(--m24sw-magenta);
}

.m24sw-root .m24sw-aurora {
	position: absolute;
	z-index: -1;
	inset: auto 10% -80px;
	height: 170px;
	background: radial-gradient(ellipse, rgba(0, 217, 255, 0.2), rgba(91, 45, 207, 0.1) 42%, transparent 70%);
	filter: blur(18px);
	pointer-events: none;
}

.m24sw-root .m24sw-icon-button {
	display: inline-grid;
	width: 44px;
	height: 44px;
	padding: 0;
	place-items: center;
	color: var(--m24sw-text-soft);
	background: rgba(7, 14, 29, 0.72);
	border: 1px solid var(--m24sw-line);
	border-radius: 13px;
	cursor: pointer;
	transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.m24sw-root .m24sw-icon-button:hover {
	color: #fff;
	background: rgba(20, 31, 58, 0.92);
	border-color: rgba(0, 217, 255, 0.58);
	transform: translateY(-1px);
}

.m24sw-root .m24sw-icon-button svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 1.8;
}

.m24sw-root .m24sw-close {
	position: absolute;
	top: 18px;
	left: 18px;
	z-index: 20;
	background: transparent;
	border-color: transparent;
}

.m24sw-root .m24sw-view {
	position: relative;
	z-index: 1;
	width: 100%;
	min-height: inherit;
}

.m24sw-root .m24sw-main-view {
	display: grid;
	grid-template-columns: minmax(330px, 0.78fr) minmax(500px, 1.22fr);
	grid-template-areas: "copy wheel";
	align-items: stretch;
}

.m24sw-root .m24sw-copy-panel {
	grid-area: copy;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: clamp(58px, 7vw, 96px) clamp(30px, 4.7vw, 70px) 34px;
	background: linear-gradient(90deg, rgba(4, 8, 20, 0.52), rgba(7, 12, 28, 0.1));
	border-left: 1px solid rgba(126, 167, 218, 0.1);
}

.m24sw-root .m24sw-heading {
	margin: 0 0 30px;
}

.m24sw-root .m24sw-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 11px;
	color: var(--m24sw-cyan);
	font-size: 12px;
	font-weight: 750;
	letter-spacing: 0.02em;
	text-shadow: 0 0 14px rgba(0, 217, 255, 0.38);
}

.m24sw-root .m24sw-eyebrow svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.m24sw-root .m24sw-title {
	margin: 0;
	color: var(--m24sw-text);
	font-size: clamp(32px, 3.3vw, 50px);
	font-weight: 900;
	line-height: 1.27;
	letter-spacing: -0.045em;
	text-wrap: balance;
}

.m24sw-root .m24sw-title::first-letter {
	text-shadow: 0 0 22px rgba(0, 217, 255, 0.35);
}

.m24sw-root .m24sw-subtitle {
	margin: 12px 0 0;
	color: var(--m24sw-text-soft);
	font-size: 16px;
	line-height: 1.9;
}

.m24sw-root .m24sw-form {
	display: grid;
	gap: 11px;
	margin: 0;
}

.m24sw-root .m24sw-label {
	color: #dceaff;
	font-size: 14px;
	font-weight: 650;
}

.m24sw-root .m24sw-field-wrap {
	position: relative;
}

.m24sw-root .m24sw-input {
	width: 100%;
	height: 56px;
	padding: 0 52px 0 17px;
	color: var(--m24sw-text);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-align: left;
	background: rgba(3, 8, 20, 0.78);
	border: 1px solid rgba(118, 155, 206, 0.44);
	border-radius: 13px;
	box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.22);
	outline: 0;
	transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.m24sw-root .m24sw-input::placeholder {
	color: #647897;
	opacity: 1;
}

.m24sw-root .m24sw-input:hover {
	border-color: rgba(126, 175, 230, 0.66);
}

.m24sw-root .m24sw-input:focus {
	background: rgba(5, 12, 28, 0.96);
	border-color: var(--m24sw-cyan);
	box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.12), 0 0 22px rgba(0, 217, 255, 0.12);
}

.m24sw-root .m24sw-input[aria-invalid="true"] {
	border-color: var(--m24sw-error);
	box-shadow: 0 0 0 3px rgba(255, 90, 122, 0.11);
}

.m24sw-root .m24sw-field-icon {
	position: absolute;
	z-index: 1;
	top: 50%;
	right: 17px;
	color: #89a5cc;
	transform: translateY(-50%);
	pointer-events: none;
}

.m24sw-root .m24sw-field-icon svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.65;
}

.m24sw-root .m24sw-field-error {
	min-height: 0;
	margin: -3px 3px 0;
	color: #ff91a7;
	font-size: 12px;
	line-height: 1.55;
}

.m24sw-root .m24sw-field-error:empty {
	display: none;
}

.m24sw-root .m24sw-consent {
	margin: 0 2px 8px;
	color: var(--m24sw-muted);
	font-size: 11px;
	line-height: 1.75;
}

.m24sw-root .m24sw-text-button {
	padding: 0;
	color: var(--m24sw-cyan);
	background: transparent;
	border: 0;
	cursor: pointer;
	text-decoration: underline;
	text-decoration-color: rgba(0, 217, 255, 0.44);
	text-underline-offset: 3px;
}

.m24sw-root .m24sw-primary-button,
.m24sw-root .m24sw-secondary-button,
.m24sw-root .m24sw-quiet-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 51px;
	padding: 11px 21px;
	color: var(--m24sw-text);
	font-size: 14px;
	font-weight: 750;
	line-height: 1.45;
	border-radius: 12px;
	cursor: pointer;
	transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.m24sw-root .m24sw-primary-button {
	width: 100%;
	background: linear-gradient(108deg, #00bfff 0%, #3479ff 48%, #c73bff 100%);
	border: 0;
	box-shadow: 0 10px 28px rgba(60, 90, 255, 0.28), 0 0 24px rgba(0, 217, 255, 0.16);
	overflow: hidden;
}

.m24sw-root .m24sw-primary-button::before {
	position: absolute;
	top: -80%;
	left: -20%;
	width: 28%;
	height: 260%;
	content: "";
	background: rgba(255, 255, 255, 0.22);
	transform: rotate(24deg) translateX(-240%);
	transition: transform 620ms ease;
}

.m24sw-root .m24sw-primary-button:hover::before {
	transform: rotate(24deg) translateX(540%);
}

.m24sw-root .m24sw-primary-button:hover {
	filter: brightness(1.1) saturate(1.08);
	transform: translateY(-2px);
}

.m24sw-root .m24sw-primary-button:active {
	transform: translateY(0) scale(0.99);
}

.m24sw-root .m24sw-primary-button:disabled,
.m24sw-root .m24sw-secondary-button:disabled,
.m24sw-root .m24sw-wheel-trigger:disabled {
	opacity: 0.58;
	cursor: wait;
	filter: saturate(0.72);
	transform: none;
}

.m24sw-root .m24sw-button__icon {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

.m24sw-root .m24sw-button__spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.38);
	border-top-color: #fff;
	border-radius: 50%;
	animation: m24sw-spin-loader 700ms linear infinite;
}

.m24sw-root[data-m24sw-state="requesting_spin"] .m24sw-button__spinner,
.m24sw-root[data-m24sw-state="applying"] .m24sw-apply-button .m24sw-button__spinner {
	display: inline-block;
}

.m24sw-root[data-m24sw-state="requesting_spin"] .m24sw-primary-button .m24sw-button__icon,
.m24sw-root[data-m24sw-state="applying"] .m24sw-apply-button .m24sw-button__icon {
	display: none;
}

.m24sw-root .m24sw-secondary-button {
	background: rgba(7, 14, 30, 0.76);
	border: 1px solid rgba(126, 167, 218, 0.34);
	box-shadow: inset 0 0 18px rgba(78, 124, 255, 0.05);
}

.m24sw-root .m24sw-secondary-button:hover,
.m24sw-root .m24sw-quiet-button:hover {
	background: rgba(17, 28, 53, 0.9);
	border-color: rgba(0, 217, 255, 0.5);
	transform: translateY(-1px);
}

.m24sw-root .m24sw-secondary-button svg,
.m24sw-root .m24sw-quiet-button svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.65;
}

.m24sw-root .m24sw-copy-panel__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: auto;
	padding-top: 28px;
}

.m24sw-root .m24sw-sound-control {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--m24sw-text-soft);
	font-size: 12px;
	cursor: pointer;
	user-select: none;
}

.m24sw-root .m24sw-sound-control input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.m24sw-root .m24sw-sound-icon svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.6;
}

.m24sw-root .m24sw-switch {
	position: relative;
	width: 40px;
	height: 22px;
	background: #26344c;
	border: 1px solid rgba(126, 167, 218, 0.3);
	border-radius: 999px;
	transition: background 160ms ease, box-shadow 160ms ease;
}

.m24sw-root .m24sw-switch::after {
	position: absolute;
	top: 3px;
	right: 3px;
	width: 14px;
	height: 14px;
	content: "";
	background: #b9c7dc;
	border-radius: 50%;
	transition: transform 180ms ease, background 180ms ease;
}

.m24sw-root .m24sw-sound-control input:checked + .m24sw-switch {
	background: linear-gradient(90deg, #1587ff, #8151ff);
	box-shadow: 0 0 14px rgba(0, 217, 255, 0.3);
}

.m24sw-root .m24sw-sound-control input:checked + .m24sw-switch::after {
	background: #fff;
	transform: translateX(-17px);
}

.m24sw-root .m24sw-sound-control input:focus-visible + .m24sw-switch {
	outline: 2px solid var(--m24sw-cyan);
	outline-offset: 3px;
}

.m24sw-root .m24sw-quiet-button {
	min-height: 38px;
	padding: 7px 10px;
	color: var(--m24sw-text-soft);
	font-size: 11px;
	background: rgba(7, 13, 27, 0.68);
	border: 1px solid rgba(126, 167, 218, 0.2);
	border-radius: 10px;
}

/* SVG wheel. Geometry remains LTR/physical while UI copy remains RTL. */
.m24sw-root .m24sw-wheel-stage {
	position: relative;
	grid-area: wheel;
	display: grid;
	min-width: 0;
	padding: 70px 44px 50px;
	place-items: center;
	direction: ltr;
	overflow: hidden;
}

.m24sw-root .m24sw-wheel-stage::before,
.m24sw-root .m24sw-wheel-stage::after {
	position: absolute;
	content: "";
	pointer-events: none;
}

.m24sw-root .m24sw-wheel-stage::before {
	width: min(670px, 95%);
	aspect-ratio: 1;
	background: radial-gradient(circle, rgba(24, 77, 187, 0.2), rgba(91, 34, 180, 0.08) 48%, transparent 69%);
	border-radius: 50%;
	filter: blur(15px);
}

.m24sw-root .m24sw-wheel-stage::after {
	bottom: 7%;
	width: min(420px, 62%);
	height: 24px;
	background: radial-gradient(ellipse, rgba(0, 217, 255, 0.44), rgba(75, 73, 255, 0.16) 45%, transparent 72%);
	filter: blur(12px);
}

.m24sw-root .m24sw-wheel-halo {
	position: absolute;
	width: min(580px, calc(100% - 60px));
	aspect-ratio: 1;
	border: 1px solid rgba(124, 97, 255, 0.16);
	border-radius: 50%;
	box-shadow: 0 0 90px rgba(0, 217, 255, 0.12), inset 0 0 80px rgba(217, 70, 239, 0.06);
	animation: m24sw-halo-breathe 4s ease-in-out infinite;
}

.m24sw-root .m24sw-wheel-svg {
	position: relative;
	z-index: 2;
	width: min(520px, 100%);
	height: auto;
	overflow: visible;
	filter: drop-shadow(0 0 30px rgba(0, 217, 255, 0.16));
}

.m24sw-root .m24sw-wheel-backplate {
	fill: #050a16;
	stroke: rgba(0, 217, 255, 0.14);
	stroke-width: 3;
}

.m24sw-root .m24sw-wheel-ring {
	fill: none;
}

.m24sw-root .m24sw-wheel-ring--glow {
	stroke-width: 7;
}

.m24sw-root .m24sw-wheel-ring--inner {
	stroke: rgba(161, 192, 238, 0.44);
	stroke-width: 2;
}

.m24sw-root .m24sw-wheel-rotor {
	transform-origin: 260px 260px;
	transform-box: view-box;
	will-change: transform;
}

.m24sw-root .m24sw-wheel-slice {
	stroke: rgba(2, 7, 18, 0.9);
	stroke-width: 3;
	transition: filter 180ms ease;
}

.m24sw-root .m24sw-wheel-slice-shine {
	fill: none;
	stroke: rgba(255, 255, 255, 0.1);
	stroke-width: 1.2;
	pointer-events: none;
}

.m24sw-root .m24sw-wheel-label {
	fill: #f2f8ff;
	font-family: Vazirmatn, IRANSansX, Tahoma, sans-serif;
	font-size: 17px;
	font-weight: 800;
	text-anchor: middle;
	direction: rtl;
	paint-order: stroke;
	stroke: rgba(1, 6, 18, 0.65);
	stroke-width: 3px;
	stroke-linejoin: round;
	filter: drop-shadow(0 0 5px rgba(0, 217, 255, 0.24));
}

.m24sw-root .m24sw-wheel-label__icon {
	fill: #65edff;
	font-family: Tahoma, Arial, sans-serif;
	font-size: 27px;
	font-weight: 800;
	text-anchor: middle;
	paint-order: stroke;
	stroke: rgba(1, 5, 18, 0.7);
	stroke-width: 3px;
	filter: drop-shadow(0 0 6px rgba(0, 217, 255, 0.75));
}

.m24sw-root .m24sw-wheel-nodes circle {
	fill: #28dcff;
	stroke: #a6f7ff;
	stroke-width: 2;
	filter: drop-shadow(0 0 7px #00d9ff);
}

.m24sw-root .m24sw-wheel-core-disc {
	stroke: #8a6aff;
	stroke-width: 4;
	filter: drop-shadow(0 0 9px rgba(124, 97, 255, 0.78));
}

.m24sw-root .m24sw-pointer {
	position: absolute;
	z-index: 5;
	top: 28px;
	left: 50%;
	width: 72px;
	filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.82));
	transform: translateX(-50%);
}

.m24sw-root .m24sw-pointer svg {
	width: 100%;
	height: auto;
}

.m24sw-root .m24sw-pointer__outer {
	fill: #11dff7;
	stroke: #b5fbff;
	stroke-width: 2;
}

.m24sw-root .m24sw-pointer__inner {
	fill: #0b1833;
	stroke: #4059e8;
	stroke-width: 2;
}

.m24sw-root .m24sw-pointer circle {
	fill: #52f1ff;
}

.m24sw-root .m24sw-wheel-trigger {
	position: absolute;
	z-index: 6;
	top: 50%;
	left: 50%;
	display: grid;
	width: 113px;
	height: 113px;
	padding: 11px;
	place-items: center;
	color: #fff;
	font-size: 18px;
	font-weight: 900;
	line-height: 1.2;
	text-align: center;
	background: radial-gradient(circle at 38% 28%, #263f79, #0b1633 52%, #030714 100%);
	border: 3px solid #8a61ff;
	border-radius: 50%;
	box-shadow:
		0 0 0 5px rgba(0, 217, 255, 0.12),
		0 0 23px rgba(124, 97, 255, 0.68),
		inset 0 0 20px rgba(0, 0, 0, 0.66);
	transform: translate(-50%, -50%);
	cursor: pointer;
	transition: filter 180ms ease, transform 180ms ease;
}

.m24sw-root .m24sw-wheel-trigger:hover {
	filter: brightness(1.15);
	transform: translate(-50%, -50%) scale(1.04);
}

.m24sw-root[data-m24sw-state="spinning"] .m24sw-pointer {
	animation: m24sw-pointer-tick 140ms ease-in-out infinite alternate;
}

/* Winning result. */
.m24sw-root .m24sw-result-view,
.m24sw-root .m24sw-error-view {
	display: grid;
	padding: clamp(66px, 7vw, 86px) clamp(22px, 5vw, 64px) 45px;
	place-items: center;
	text-align: center;
}

.m24sw-root .m24sw-result-card,
.m24sw-root .m24sw-error-card {
	position: relative;
	width: min(620px, 100%);
	padding: 24px clamp(18px, 5vw, 56px) 28px;
	overflow: hidden;
	background: linear-gradient(145deg, rgba(14, 25, 49, 0.76), rgba(4, 9, 22, 0.88));
	border: 1px solid rgba(126, 167, 218, 0.3);
	border-radius: 24px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.m24sw-root .m24sw-result-card::before {
	position: absolute;
	inset: 0;
	content: "";
	background: radial-gradient(circle at 50% 4%, rgba(0, 217, 255, 0.13), transparent 38%);
	pointer-events: none;
}

.m24sw-root .m24sw-result-card__rays {
	position: absolute;
	top: -170px;
	left: 50%;
	width: 500px;
	height: 500px;
	background: repeating-conic-gradient(from 5deg, rgba(0, 217, 255, 0.06) 0 4deg, transparent 4deg 16deg);
	border-radius: 50%;
	transform: translateX(-50%);
	animation: m24sw-rays 24s linear infinite;
	pointer-events: none;
}

.m24sw-root .m24sw-gift-art {
	position: relative;
	width: 154px;
	height: 154px;
	margin: -5px auto 5px;
	filter: drop-shadow(0 0 17px rgba(0, 217, 255, 0.22));
}

.m24sw-root .m24sw-gift-art > svg {
	width: 100%;
	height: 100%;
}

.m24sw-root .m24sw-gift-art__shadow {
	fill: rgba(0, 217, 255, 0.18);
	filter: blur(5px);
}

.m24sw-root .m24sw-result-check {
	position: absolute;
	right: 6px;
	bottom: 10px;
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	color: #06111b;
	background: var(--m24sw-cyan);
	border: 3px solid #0c1528;
	border-radius: 50%;
	box-shadow: 0 0 17px rgba(0, 217, 255, 0.65);
}

.m24sw-root .m24sw-result-check svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.5;
}

.m24sw-root .m24sw-result-kicker,
.m24sw-root .m24sw-error-kicker {
	position: relative;
	display: block;
	margin: 0 0 1px;
	color: var(--m24sw-cyan);
	font-size: 11px;
	font-weight: 750;
}

.m24sw-root .m24sw-result-title,
.m24sw-root .m24sw-error-title {
	position: relative;
	margin: 0;
	color: #fff;
	font-size: clamp(31px, 4vw, 44px);
	font-weight: 900;
	line-height: 1.35;
}

.m24sw-root .m24sw-result-prize {
	position: relative;
	margin: 4px 0 20px;
	color: var(--m24sw-text-soft);
	font-size: 17px;
}

.m24sw-root .m24sw-result-prize strong {
	color: var(--m24sw-cyan);
}

.m24sw-root .m24sw-coupon-block {
	position: relative;
	padding: 12px 16px 14px;
	background: rgba(3, 10, 23, 0.78);
	border: 1px dashed rgba(0, 217, 255, 0.75);
	border-radius: 13px;
	box-shadow: inset 0 0 20px rgba(0, 217, 255, 0.035), 0 0 18px rgba(0, 217, 255, 0.08);
}

.m24sw-root .m24sw-coupon-block__label {
	display: block;
	margin-bottom: 2px;
	color: var(--m24sw-muted);
	font-size: 10px;
	font-weight: 650;
}

.m24sw-root .m24sw-coupon-code-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	direction: ltr;
}

.m24sw-root .m24sw-coupon-code {
	max-width: calc(100% - 42px);
	overflow: hidden;
	color: #7ef3ff;
	font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
	font-size: clamp(20px, 4vw, 28px);
	font-weight: 800;
	letter-spacing: 0.055em;
	line-height: 1.4;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-shadow: 0 0 12px rgba(0, 217, 255, 0.27);
}

.m24sw-root .m24sw-copy-icon {
	display: grid;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	padding: 0;
	place-items: center;
	color: var(--m24sw-cyan);
	background: rgba(0, 217, 255, 0.07);
	border: 1px solid rgba(0, 217, 255, 0.24);
	border-radius: 9px;
	cursor: pointer;
}

.m24sw-root .m24sw-copy-icon svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

.m24sw-root .m24sw-result-expiry {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 10px 0 17px;
	color: var(--m24sw-text-soft);
	font-size: 11px;
}

.m24sw-root .m24sw-result-expiry svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.5;
}

.m24sw-root .m24sw-apply-button {
	min-height: 54px;
}

.m24sw-root .m24sw-result-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 10px;
}

.m24sw-root .m24sw-result-actions .m24sw-secondary-button {
	width: 100%;
	min-width: 0;
	min-height: 44px;
	padding: 9px 12px;
	font-size: 12px;
}

.m24sw-root .m24sw-result-conditions {
	margin: 13px 0 0;
	padding: 10px 12px;
	color: var(--m24sw-text-soft);
	font-size: 11px;
	background: rgba(126, 167, 218, 0.06);
	border-radius: 9px;
}

.m24sw-root .m24sw-result-message {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 12px 0 0;
	color: var(--m24sw-success);
	font-size: 10px;
}

.m24sw-root .m24sw-result-message.is-error {
	color: #ff91a7;
}

.m24sw-root .m24sw-result-message svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

/* Dedicated error cards. */
.m24sw-root .m24sw-error-card {
	padding-top: 44px;
	padding-bottom: 40px;
}

.m24sw-root .m24sw-error-card__aura {
	position: absolute;
	top: -150px;
	left: 50%;
	width: 400px;
	height: 300px;
	background: radial-gradient(ellipse, rgba(255, 90, 122, 0.17), transparent 68%);
	transform: translateX(-50%);
	pointer-events: none;
}

.m24sw-root .m24sw-error-icons {
	position: relative;
	width: 104px;
	height: 104px;
	margin: 0 auto 18px;
}

.m24sw-root .m24sw-error-icon {
	position: absolute;
	inset: 0;
	display: none;
	place-items: center;
	color: var(--m24sw-error);
	background: radial-gradient(circle, rgba(255, 90, 122, 0.13), rgba(10, 17, 34, 0.75) 66%);
	border: 1px solid rgba(255, 90, 122, 0.35);
	border-radius: 50%;
	box-shadow: 0 0 30px rgba(255, 90, 122, 0.17);
}

.m24sw-root .m24sw-error-icon svg {
	width: 58px;
	height: 58px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.2;
}

.m24sw-root .m24sw-error-view[data-m24sw-error-kind="phone"] .m24sw-error-icon--phone,
.m24sw-root .m24sw-error-view[data-m24sw-error-kind="duplicate"] .m24sw-error-icon--duplicate,
.m24sw-root .m24sw-error-view[data-m24sw-error-kind="expired"] .m24sw-error-icon--expired,
.m24sw-root .m24sw-error-view[data-m24sw-error-kind="generic"] .m24sw-error-icon--generic {
	display: grid;
}

.m24sw-root .m24sw-error-kicker {
	color: #ff91a7;
}

.m24sw-root .m24sw-error-title {
	font-size: clamp(25px, 3.5vw, 36px);
}

.m24sw-root .m24sw-error-message {
	max-width: 430px;
	margin: 10px auto 25px;
	color: var(--m24sw-text-soft);
	font-size: 14px;
}

.m24sw-root .m24sw-error-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	width: min(390px, 100%);
	margin: 0 auto;
}

/* Terms drawer is part of the same focus trap. */
.m24sw-root .m24sw-terms-panel {
	position: absolute;
	z-index: 30;
	top: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	width: min(430px, 94%);
	height: 100%;
	padding: 28px;
	background: rgba(7, 13, 28, 0.985);
	border-left: 1px solid rgba(0, 217, 255, 0.24);
	box-shadow: -30px 0 70px rgba(0, 0, 0, 0.46);
	transform: translateX(104%);
	transition: transform 240ms var(--m24sw-ease);
	overflow: auto;
	overscroll-behavior: contain;
}

.m24sw-root .m24sw-shell.is-terms-open .m24sw-terms-panel {
	transform: translateX(0);
}

.m24sw-root .m24sw-terms-panel__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	padding-bottom: 19px;
	border-bottom: 1px solid var(--m24sw-line);
}

.m24sw-root .m24sw-terms-panel__header h3 {
	margin: 0;
	color: var(--m24sw-text);
	font-size: 24px;
	font-weight: 850;
}

.m24sw-root .m24sw-terms-panel__content {
	flex: 1;
	padding: 18px 2px;
	color: var(--m24sw-text-soft);
	font-size: 13px;
	line-height: 2;
}

.m24sw-root .m24sw-terms-panel__content p {
	margin: 0 0 1em;
}

.m24sw-root .m24sw-terms-panel__content a {
	color: var(--m24sw-cyan);
}

/* Lightweight, generated confetti. */
.m24sw-root .m24sw-confetti {
	position: absolute;
	z-index: 25;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.m24sw-root .m24sw-confetti__piece {
	position: absolute;
	top: -18px;
	left: var(--m24sw-x, 50%);
	width: var(--m24sw-w, 8px);
	height: var(--m24sw-h, 14px);
	background: var(--m24sw-piece, var(--m24sw-cyan));
	border-radius: 2px;
	box-shadow: 0 0 6px var(--m24sw-piece, var(--m24sw-cyan));
	transform: rotate(var(--m24sw-rotate, 0deg));
	animation: m24sw-confetti-fall var(--m24sw-fall, 1700ms) var(--m24sw-delay, 0ms) var(--m24sw-ease) forwards;
}

/* Inline shortcode mode becomes a responsive embedded experience. */
.m24sw-root.m24sw-mode-inline .m24sw-launcher,
.m24sw-root.m24sw-mode-shortcode .m24sw-launcher {
	display: none;
}

.m24sw-root.m24sw-mode-inline .m24sw-overlay,
.m24sw-root.m24sw-mode-shortcode .m24sw-overlay {
	position: relative;
	z-index: auto;
	inset: auto;
	display: block;
	padding: 0;
	overflow: visible;
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	opacity: 1;
	visibility: visible;
}

.m24sw-root.m24sw-mode-inline .m24sw-shell,
.m24sw-root.m24sw-mode-shortcode .m24sw-shell {
	width: 100%;
	min-height: 650px;
	transform: none;
}

.m24sw-root.m24sw-mode-inline .m24sw-close,
.m24sw-root.m24sw-mode-shortcode .m24sw-close {
	display: none;
}

/* Keyboard visibility is intentionally stronger than hover styling. */
.m24sw-root button:focus-visible,
.m24sw-root input:focus-visible,
.m24sw-root a:focus-visible,
.m24sw-root [tabindex]:focus-visible {
	outline: 2px solid var(--m24sw-cyan);
	outline-offset: 4px;
}

@keyframes m24sw-launcher-pulse {
	0%, 100% { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42), 0 0 22px rgba(0, 217, 255, 0.18); }
	50% { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42), 0 0 34px rgba(0, 217, 255, 0.3), 0 0 42px rgba(217, 70, 239, 0.1); }
}

@keyframes m24sw-halo-breathe {
	0%, 100% { opacity: 0.65; transform: scale(0.985); }
	50% { opacity: 1; transform: scale(1.015); }
}

@keyframes m24sw-spin-loader {
	to { transform: rotate(360deg); }
}

@keyframes m24sw-pointer-tick {
	from { transform: translateX(-50%) rotate(-2deg); }
	to { transform: translateX(-50%) rotate(2deg); }
}

@keyframes m24sw-rays {
	to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes m24sw-confetti-fall {
	0% { opacity: 0; transform: translate3d(0, -15px, 0) rotate(0); }
	8% { opacity: 1; }
	100% { opacity: 0; transform: translate3d(var(--m24sw-drift, 20px), calc(100dvh + 60px), 0) rotate(var(--m24sw-turn, 720deg)); }
}

/* Tablet and dedicated mobile composition. */
@media (max-width: 960px) {
	.m24sw-root .m24sw-shell {
		width: min(760px, 100%);
	}

	.m24sw-root .m24sw-main-view {
		grid-template-columns: 1fr;
		grid-template-areas:
			"wheel"
			"copy";
	}

	.m24sw-root .m24sw-wheel-stage {
		min-height: 530px;
		padding: 50px 50px 25px;
	}

	.m24sw-root .m24sw-pointer {
		top: 8px;
	}

	.m24sw-root .m24sw-copy-panel {
		padding: 35px clamp(25px, 8vw, 70px) 30px;
		border-top: 1px solid rgba(126, 167, 218, 0.1);
		border-left: 0;
	}

	.m24sw-root .m24sw-heading {
		margin-bottom: 22px;
	}

	.m24sw-root .m24sw-title {
		font-size: clamp(30px, 7vw, 44px);
	}

	.m24sw-root .m24sw-copy-panel__footer {
		margin-top: 5px;
	}
}

@media (max-width: 600px) {
	.m24sw-root {
		--m24sw-radius: 20px;
	}

	.m24sw-root .m24sw-overlay {
		padding: 0;
		align-items: start;
	}

	.m24sw-root .m24sw-shell {
		width: 100%;
		min-height: 100dvh;
		border-width: 0;
		border-radius: 0;
	}

	.m24sw-root .m24sw-close {
		position: fixed;
		top: max(12px, env(safe-area-inset-top));
		left: max(12px, env(safe-area-inset-left));
		width: 46px;
		height: 46px;
		background: rgba(5, 11, 24, 0.86);
		border-color: rgba(126, 167, 218, 0.25);
		backdrop-filter: blur(8px);
	}

	.m24sw-root .m24sw-wheel-stage {
		min-height: auto;
		padding: max(68px, calc(env(safe-area-inset-top) + 55px)) 22px 20px;
	}

	.m24sw-root .m24sw-wheel-svg {
		width: min(390px, 96vw);
	}

	.m24sw-root .m24sw-wheel-halo {
		width: min(420px, 96vw);
	}

	.m24sw-root .m24sw-pointer {
		top: max(24px, calc(env(safe-area-inset-top) + 12px));
		width: 56px;
	}

	.m24sw-root .m24sw-wheel-trigger {
		width: 84px;
		height: 84px;
		padding: 7px;
		font-size: 14px;
		border-width: 2px;
	}

	.m24sw-root .m24sw-wheel-label {
		font-size: 15px;
	}

	.m24sw-root .m24sw-wheel-label__icon {
		font-size: 23px;
	}

	.m24sw-root .m24sw-copy-panel {
		padding: 31px 20px max(24px, calc(env(safe-area-inset-bottom) + 18px));
	}

	.m24sw-root .m24sw-eyebrow {
		font-size: 11px;
	}

	.m24sw-root .m24sw-title {
		font-size: clamp(29px, 10vw, 38px);
	}

	.m24sw-root .m24sw-subtitle {
		font-size: 14px;
	}

	.m24sw-root .m24sw-input {
		height: 58px;
		font-size: 16px;
	}

	.m24sw-root .m24sw-primary-button {
		min-height: 56px;
	}

	.m24sw-root .m24sw-copy-panel__footer {
		flex-wrap: wrap;
		padding-top: 22px;
	}

	.m24sw-root .m24sw-result-view,
	.m24sw-root .m24sw-error-view {
		min-height: 100dvh;
		padding: max(64px, calc(env(safe-area-inset-top) + 54px)) 14px max(22px, env(safe-area-inset-bottom));
	}

	.m24sw-root .m24sw-result-card,
	.m24sw-root .m24sw-error-card {
		padding-right: 16px;
		padding-left: 16px;
		border-radius: 18px;
	}

	.m24sw-root .m24sw-gift-art {
		width: 132px;
		height: 132px;
	}

	.m24sw-root .m24sw-result-prize {
		font-size: 15px;
	}

	.m24sw-root .m24sw-coupon-code {
		font-size: clamp(18px, 6.5vw, 25px);
	}

	.m24sw-root .m24sw-result-actions,
	.m24sw-root .m24sw-error-actions {
		grid-template-columns: 1fr;
	}

	.m24sw-root .m24sw-terms-panel {
		position: fixed;
		width: 100%;
		height: 100dvh;
		padding: max(22px, env(safe-area-inset-top)) 20px max(22px, env(safe-area-inset-bottom));
		border-left: 0;
	}

	.m24sw-root .m24sw-launcher {
		bottom: max(14px, calc(env(safe-area-inset-bottom) + 10px));
		left: max(14px, calc(env(safe-area-inset-left) + 10px));
		min-height: 58px;
		padding: 7px 14px 7px 7px;
	}

	.m24sw-root[data-m24sw-launcher-position="bottom-right"] .m24sw-launcher {
		right: max(14px, calc(env(safe-area-inset-right) + 10px));
		padding: 7px 7px 7px 14px;
	}

	.m24sw-root .m24sw-launcher__orb {
		flex-basis: 44px;
		width: 44px;
		height: 44px;
	}

	.m24sw-root .m24sw-launcher__text {
		font-size: 12px;
	}

	.m24sw-root.m24sw-mode-inline .m24sw-shell,
	.m24sw-root.m24sw-mode-shortcode .m24sw-shell {
		min-height: auto;
		border: 1px solid rgba(126, 167, 218, 0.28);
		border-radius: var(--m24sw-radius);
	}

	.m24sw-root.m24sw-mode-inline .m24sw-result-view,
	.m24sw-root.m24sw-mode-inline .m24sw-error-view,
	.m24sw-root.m24sw-mode-shortcode .m24sw-result-view,
	.m24sw-root.m24sw-mode-shortcode .m24sw-error-view {
		min-height: 620px;
	}
}

@media (max-width: 360px) {
	.m24sw-root .m24sw-wheel-stage {
		padding-right: 10px;
		padding-left: 10px;
	}

	.m24sw-root .m24sw-copy-panel {
		padding-right: 15px;
		padding-left: 15px;
	}

	.m24sw-root .m24sw-wheel-trigger {
		width: 76px;
		height: 76px;
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.m24sw-root *,
	.m24sw-root *::before,
	.m24sw-root *::after {
		scroll-behavior: auto !important;
		animation-duration: 1ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 1ms !important;
	}
}

@media (prefers-contrast: more) {
	.m24sw-root {
		--m24sw-line: rgba(190, 219, 255, 0.62);
		--m24sw-text-soft: #d4e6ff;
		--m24sw-muted: #aabfdd;
	}

	.m24sw-root .m24sw-input,
	.m24sw-root .m24sw-secondary-button {
		border-width: 2px;
	}
}
