/* WDW Spin to Win — front-end (six76 dark/cyan theme-compatible) */

.wdw-stw-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.wdw-stw-modal[hidden] {
	display: none;
}

.wdw-stw-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(3, 7, 18, 0.8);
	backdrop-filter: blur(2px);
}

.wdw-stw-modal-dialog {
	position: relative;
	width: 100%;
	max-width: 26rem;
	max-height: 90vh;
	overflow-y: auto;
	padding: 1.5rem;
	border-radius: 0.75rem;
	border: 1px solid rgba(34, 211, 238, 0.35);
	background: #111827;
	color: #f9fafb;
	box-shadow: 0 0 40px rgba(34, 211, 238, 0.25);
	text-align: center;
}

.wdw-stw-modal-close {
	position: absolute;
	top: 0.5rem;
	right: 0.75rem;
	border: 0;
	background: transparent;
	color: #9ca3af;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.25rem;
}

.wdw-stw-modal-close:hover {
	color: #22d3ee;
}

.wdw-stw-inline {
	max-width: 26rem;
	margin: 2rem auto;
	padding: 1.5rem;
	border-radius: 0.75rem;
	border: 1px solid rgba(34, 211, 238, 0.35);
	background: rgba(34, 211, 238, 0.08);
	text-align: center;
}

.wdw-stw-headline {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #22d3ee;
}

.wdw-stw-message {
	margin: 0 0 1rem;
	color: #d1d5db;
}

.wdw-stw-smallprint {
	margin: 0.75rem 0 0;
	font-size: 0.75rem;
	color: #6b7280;
}

.wdw-stw-cta {
	display: inline-block;
	margin-top: 1rem;
	padding: 0.65rem 1.5rem;
	border: 0;
	border-radius: 999px;
	background: #22d3ee;
	color: #111827;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wdw-stw-cta:hover {
	color: #111827;
	transform: translateY(-1px);
	box-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
}

.wdw-stw-cta[hidden] {
	display: none;
}

.wdw-stw-cta[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.wdw-stw-result {
	min-height: 1.25rem;
	margin: 0.75rem 0 0;
	font-weight: 700;
	color: #facc15;
}

.wdw-stw-result-coupon {
	display: inline-block;
	margin-left: 0.35rem;
	padding: 0.1rem 0.5rem;
	border-radius: 0.25rem;
	border: 1px dashed #22d3ee;
	color: #22d3ee;
	font-family: monospace;
	letter-spacing: 0.05em;
	user-select: all;
}

/* --- Awarded coupon code + copy button --- */

.wdw-stw-coupon {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	flex-wrap: wrap;
}

.wdw-stw-coupon-copy {
	padding: 0.15rem 0.6rem;
	border: 1px solid #22d3ee;
	border-radius: 0.25rem;
	background: transparent;
	color: #22d3ee;
	font-size: 0.8rem;
	line-height: 1.6;
	cursor: pointer;
}

.wdw-stw-coupon-copy:hover,
.wdw-stw-coupon-copy:focus-visible {
	background: #22d3ee;
	color: #0d0d0d;
}

.wdw-stw-coupon-copy.is-copied {
	border-color: #4ade80;
	color: #4ade80;
}

.wdw-stw-coupon-copy.is-copied:hover {
	background: #4ade80;
	color: #0d0d0d;
}

/* Off-screen field used only when the async clipboard API is unavailable. */
.wdw-stw-copy-shim {
	position: absolute;
	left: -9999px;
	top: 0;
	opacity: 0;
}

.wdw-stw-prize-panel {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border: 1px solid rgba(34, 211, 238, 0.4);
	border-radius: 0.5rem;
	background: rgba(34, 211, 238, 0.06);
}

.wdw-stw-prize-intro {
	margin: 0 0 0.5rem;
}

/* --- "My Free Spins" account section --- */

/*
 * Rendered inside the theme's own account cards, so this styles the section
 * itself and leaves the surrounding layout to the page. The nested
 * .wdw-stw-inline (the delegated wheel) drops its default top margin here so
 * the wheel sits under the status line rather than floating away from it.
 */
.wdw-stw-spins-panel {
	margin: 0 0 1.5rem;
	padding: 1.25rem;
	border: 1px solid rgba(34, 211, 238, 0.4);
	border-radius: 0.5rem;
	background: rgba(34, 211, 238, 0.06);
	text-align: center;
}

.wdw-stw-spins-heading {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
	font-weight: 700;
}

.wdw-stw-spins-status {
	margin: 0 0 0.75rem;
}

.wdw-stw-spins-status.is-ready {
	font-weight: 700;
}

.wdw-stw-spins-unavailable {
	margin: 0;
	font-size: 0.875rem;
	opacity: 0.85;
}

.wdw-stw-spins-history {
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
	text-align: left;
	border-top: 1px solid rgba(34, 211, 238, 0.25);
}

.wdw-stw-spins-row {
	padding: 0.6rem 0;
	font-size: 0.9375rem;
	border-bottom: 1px solid rgba(34, 211, 238, 0.12);
}

.wdw-stw-spins-row:last-child {
	border-bottom: 0;
}

.wdw-stw-spins-row.is-ready {
	font-weight: 700;
}

/* Muted, and never bold — a lapsed spin must not read as an offer. */
.wdw-stw-spins-row.is-expired {
	opacity: 0.6;
	text-decoration: line-through;
}

/* Block so the caveat sits under its row rather than running on as prose. */
.wdw-stw-spins-pending {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.8125rem;
	opacity: 0.85;
}

.wdw-stw-spins-row .wdw-stw-coupon {
	display: inline-flex;
	margin-top: 0.35rem;
}

.wdw-stw-spins-panel .wdw-stw-inline {
	margin-top: 0;
}

.wdw-stw-spins-panel .wdw-stw-prize-panel {
	margin-bottom: 0;
	text-align: left;
}

/* --- Wheel --- */

.wdw-stw-wheel-wrap {
	position: relative;
	width: 240px;
	height: 240px;
	margin: 0 auto;
}

.wdw-stw-wheel-teaser {
	opacity: 0.9;
}

.wdw-stw-wheel {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	box-shadow: 0 0 25px rgba(57, 216, 224, 0.35), inset 0 0 15px rgba(3, 7, 18, 0.6);
	transition: transform 5s cubic-bezier(0.12, 0.6, 0.08, 1);
	will-change: transform;
	position: relative;
	overflow: hidden;
}

.wdw-stw-wheel-svg {
	display: block;
	width: 100%;
	height: 100%;
}

.wdw-stw-wheel-svg text {
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	pointer-events: none;
}

.wdw-stw-wheel-pointer {
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 12px solid transparent;
	border-right: 12px solid transparent;
	border-top: 18px solid #facc15;
	filter: drop-shadow(0 2px 3px rgba(3, 7, 18, 0.7));
	z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
	.wdw-stw-wheel {
		transition-duration: 0.6s;
	}
}
