/* LuckyWinner · Ruleta */
.lw-wheel { --lw-rim: #f5a623; display: flex; flex-direction: column; align-items: center; }
.lw-wheel-stage {
	position: relative;
	width: min(100%, 560px);
	aspect-ratio: 1 / 1;
	margin: 8px auto 0;
	touch-action: manipulation;
}
.lw-wheel-canvas { display: block; width: 100%; height: 100%; }

/* Puntero */
.lw-wheel-pointer {
	position: absolute;
	top: -2%;
	left: 50%;
	width: 11%;
	aspect-ratio: 3 / 4;
	transform: translateX(-50%);
	transform-origin: 50% 30%;
	z-index: 3;
	filter: drop-shadow(0 4px 6px rgba(0,0,0,.35));
}
.lw-wheel-pointer::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 55%, #d1d5db 100%);
	clip-path: polygon(50% 100%, 0 28%, 18% 0, 82% 0, 100% 28%);
	border-radius: 6px;
}
.lw-wheel-pointer::after {
	content: "";
	position: absolute; left: 50%; top: 20%;
	width: 34%; aspect-ratio: 1; transform: translateX(-50%);
	border-radius: 50%;
	background: var(--lw-primary, #111827);
	box-shadow: inset 0 2px 3px rgba(255,255,255,.35);
}
.lw-wheel-pointer.is-tick { animation: lw-wheel-tick .14s ease-out; }
@keyframes lw-wheel-tick {
	0% { transform: translateX(-50%) rotate(0); }
	40% { transform: translateX(-50%) rotate(-16deg); }
	100% { transform: translateX(-50%) rotate(0); }
}

/* Botón central */
.lw-wheel-button {
	position: absolute;
	top: 50%; left: 50%;
	width: 22%;
	aspect-ratio: 1 / 1;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	border: clamp(3px, 1vw, 6px) solid #fff;
	background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--lw-primary, #111827) 70%, #fff) 0%, var(--lw-primary, #111827) 60%);
	color: #fff;
	font: inherit;
	font-weight: 900;
	font-size: clamp(12px, 3.4vw, 20px);
	letter-spacing: .06em;
	cursor: pointer;
	z-index: 4;
	box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 0 4px rgba(0,0,0,.08);
	transition: transform .15s ease, box-shadow .2s ease, filter .2s;
	display: grid; place-items: center;
	padding: 0;
}
.lw-wheel-button::before {
	content: "";
	position: absolute; left: 50%; top: -24%;
	width: 0; height: 0;
	transform: translateX(-50%);
	border-left: 12px solid transparent; border-right: 12px solid transparent;
	border-bottom: 18px solid #fff;
	display: none;
}
.lw-wheel-button:hover:not([disabled]) { transform: translate(-50%, -50%) scale(1.07); }
.lw-wheel-button:active:not([disabled]) { transform: translate(-50%, -50%) scale(.96); }
.lw-wheel-button:focus-visible { outline: 4px solid var(--lw-accent, #7c3aed); outline-offset: 4px; }
.lw-wheel-button[disabled] { cursor: default; filter: saturate(.8); }
.lw-wheel:not(.is-spinning):not(.is-done) .lw-wheel-button { animation: lw-wheel-breathe 1.8s ease-in-out infinite; }
@keyframes lw-wheel-breathe {
	0%, 100% { box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 0 0 color-mix(in srgb, var(--lw-accent, #7c3aed) 55%, transparent); }
	50% { box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 0 14px color-mix(in srgb, var(--lw-accent, #7c3aed) 0%, transparent); }
}


@media (prefers-reduced-motion: reduce) {
	.lw-wheel-button { animation: none !important; }
}
