/* ==========================================================================
   Spin2Win — prize wheel (front-end)
   Style: deep navy + metallic silver + gold (matches the reference design)
   ========================================================================== */

.s2w-wrap {
	position: relative;
	max-width: 620px;
	margin: 24px auto;
	padding: 30px 24px 36px;
	border-radius: 20px;
	background: radial-gradient(120% 130% at 50% 0%, var(--s2w-bg-from, #1d3f7f) 0%, var(--s2w-bg-to, #060f2e) 100%);
	box-shadow: 0 24px 60px rgba(3, 8, 25, 0.45), inset 0 1px 0 rgba(140, 180, 255, 0.18);
	overflow: hidden;
	color: var(--s2w-text-color, #eaf1ff);
	font-family: var(--s2w-font, inherit);
	-webkit-font-smoothing: antialiased;
}

/* Transparent mode for CTA sections: no panel, blends into the parent section */
.s2w-wrap.s2w-bare {
	background: none;
	box-shadow: none;
	border-radius: 0;
	padding: 0;
	overflow: visible;
}

.s2w-bare .s2w-rays { display: none; }

/* Soft light rays like the reference background */
.s2w-rays {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		conic-gradient(from 215deg at 18% -8%, transparent 0 12%, rgba(95, 150, 235, 0.16) 16%, transparent 22%),
		conic-gradient(from 305deg at 82% -8%, transparent 0 12%, rgba(95, 150, 235, 0.14) 16%, transparent 22%);
}

.s2w-head {
	position: relative;
	text-align: center;
	margin-bottom: 14px;
}

.s2w-title {
	margin: 0 0 6px;
	font-size: 27px;
	line-height: 1.35;
	font-weight: 800;
	color: var(--s2w-title-color, #ffffff);
	text-shadow: 0 2px 12px rgba(40, 90, 190, 0.55);
}

.s2w-sub {
	margin: 0;
	font-size: 14.5px;
	color: var(--s2w-text-color, #b9cbf1);
}

/* --------------------------------------------------------------------------
   Wheel stage
   -------------------------------------------------------------------------- */

.s2w-stage {
	position: relative;
	max-width: 480px;
	margin: 0 auto;
}

.s2w-shadow {
	position: absolute;
	left: 10%;
	top: 16%;
	width: 80%;
	aspect-ratio: 1;
	border-radius: 50%;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
	pointer-events: none;
}

.s2w-svg {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
}

.s2w-rotor {
	transform-box: view-box;
	transform-origin: 250px 290px;
	will-change: transform;
}

/* Celebratory flash after the wheel stops */
.s2w-done .s2w-svg {
	animation: s2w-flash 0.9s ease-in-out 2;
}

@keyframes s2w-flash {
	50% { filter: brightness(1.22) saturate(1.15); }
}

/* --------------------------------------------------------------------------
   Email form and play button
   -------------------------------------------------------------------------- */

.s2w-form {
	position: relative;
	margin-top: 22px;
	text-align: center;
}

.s2w-row {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

.s2w-email {
	flex: 1 1 250px;
	max-width: 320px;
	padding: 13px 20px;
	border-radius: 999px;
	border: 1px solid rgba(150, 185, 245, 0.45);
	background: rgba(255, 255, 255, 0.07);
	color: #f2f6ff;
	font-size: 15px;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.s2w-email::placeholder { color: rgba(190, 208, 245, 0.65); }

.s2w-email:focus {
	border-color: #7fb1ff;
	background: rgba(255, 255, 255, 0.1);
	box-shadow: 0 0 0 4px rgba(95, 150, 235, 0.22);
}

.s2w-btn {
	display: inline-block;
	padding: 13px 34px;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, 0.28);
	background: linear-gradient(180deg, var(--s2w-btn-from, #ffd76a) 0%, var(--s2w-btn-to, #e07000) 100%);
	color: var(--s2w-btn-text, #3d2300);
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0.3px;
	cursor: pointer;
	text-decoration: none;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 20px rgba(0, 0, 0, 0.3);
	transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.s2w-btn:hover {
	transform: translateY(-1px);
	filter: brightness(1.05);
	color: var(--s2w-btn-text, #3d2300);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 12px 26px rgba(0, 0, 0, 0.38);
}

.s2w-btn:active { transform: translateY(1px); }

.s2w-btn[disabled] {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none;
}

.s2w-btn.s2w-loading .s2w-btn-label { opacity: 0.4; }

.s2w-btn.s2w-loading::after {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-inline-start: 8px;
	vertical-align: -2px;
	border: 2px solid rgba(61, 35, 0, 0.35);
	border-top-color: #3d2300;
	border-radius: 50%;
	animation: s2w-rot 0.7s linear infinite;
}

@keyframes s2w-rot { to { transform: rotate(360deg); } }

/* Bot honeypot field — fully hidden */
.s2w-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.s2w-msg {
	min-height: 22px;
	margin-top: 12px;
	font-size: 14px;
}

.s2w-msg.s2w-error {
	color: #ffd2d2;
	background: rgba(220, 60, 60, 0.18);
	border: 1px solid rgba(255, 120, 120, 0.35);
	border-radius: 10px;
	padding: 9px 14px;
	display: inline-block;
}

.s2w-msg.s2w-info {
	color: #cfe2ff;
	background: rgba(80, 140, 230, 0.16);
	border: 1px solid rgba(127, 177, 255, 0.35);
	border-radius: 10px;
	padding: 9px 14px;
	display: inline-block;
}

.s2w-tries {
	margin: 12px 0 0;
	font-size: 12.5px;
	color: var(--s2w-text-color, #93a9d8);
	opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Results page
   -------------------------------------------------------------------------- */

.s2w-result { padding: 44px 26px; }

.s2w-r-card {
	position: relative;
	text-align: center;
	max-width: 460px;
	margin: 0 auto;
}

.s2w-r-icon {
	font-size: 58px;
	line-height: 1;
	margin-bottom: 12px;
	filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.s2w-r-title {
	margin: 0 0 16px;
	font-size: 30px;
	font-weight: 800;
	color: var(--s2w-title-color, #ffffff);
	text-shadow: 0 2px 14px rgba(40, 90, 190, 0.6);
}

.s2w-r-prize {
	margin: 0 0 18px;
	font-size: 26px;
	font-weight: 800;
	background: linear-gradient(180deg, var(--s2w-accent-from, #ffd35c), var(--s2w-accent-to, #e35d00));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.s2w-r-prize-soft {
	background: linear-gradient(180deg, #cfe0ff, #8fb4f5);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.s2w-code-box {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 auto 18px;
	padding: 14px 18px;
	border: 2px dashed rgba(255, 210, 120, 0.65);
	border-radius: 14px;
	background: rgba(255, 180, 60, 0.08);
}

.s2w-code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 3px;
	color: #ffe9b8;
	background: none;
	padding: 0;
}

.s2w-copy {
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid rgba(255, 210, 120, 0.55);
	background: rgba(255, 210, 120, 0.12);
	color: #ffe9b8;
	font-size: 13px;
	cursor: pointer;
	transition: background 0.15s;
}

.s2w-copy:hover { background: rgba(255, 210, 120, 0.22); }

.s2w-r-meta {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	font-size: 14px;
	color: var(--s2w-text-color, #b9cbf1);
}

.s2w-r-meta li { margin: 4px 0; }
.s2w-r-meta strong { color: var(--s2w-title-color, #ffffff); }

.s2w-r-text {
	font-size: 14.5px;
	color: var(--s2w-text-color, #b9cbf1);
	margin: 0 0 22px;
	line-height: 1.8;
}

.s2w-r-cta { margin: 8px 0 6px; font-size: 17px; }

/* Manual fallback (secondary to the one-click button) */
.s2w-r-manual {
	font-size: 12.5px;
	opacity: 0.7;
	margin: 20px 0 8px;
}

.s2w-r-card .s2w-code-box { opacity: 0.9; }

/* --------------------------------------------------------------------------
   Responsive + motion preferences
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
	.s2w-wrap { padding: 22px 14px 28px; border-radius: 14px; }
	.s2w-title { font-size: 22px; }
	.s2w-r-title { font-size: 24px; }
	.s2w-code { font-size: 18px; letter-spacing: 2px; }
	.s2w-email { max-width: 100%; }
	.s2w-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.s2w-done .s2w-svg { animation: none; }
}
