/* ============================================================
   Wheel of Luck – Frontend Styles
   ============================================================ */

.wol-container {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	padding: 32px 20px;
	font-family: var(--e-global-typography-secondary-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif);
	user-select: none;
}

/* ── Canvas ───────────────────────────────────────────────── */
.wol-wheel-wrapper {
	position: relative;
	display: inline-block;
}

.wol-canvas {
	display: block;
	max-width: 100%;
	height: auto;
	filter: drop-shadow(0 12px 40px rgba(0, 0, 0, .35));
}

/* ── Spin Button ──────────────────────────────────────────── */
.wol-controls {
	display: flex;
	justify-content: center;
}

.wol-spin-btn {
	cursor: pointer;
	border: none !important;
	background: none !important;
	padding: 0;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
}

.wol-spin-btn-inner {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 48px;
	background: linear-gradient(135deg, #00c4f0 0%, #0082AE 50%, #004d6b 100%);
	color: #fff;
	font-size: 20px;
	font-weight: 800;
	border-radius: 60px;
	border: none;
	box-shadow:
		0 6px 24px rgba(0,130,174,.5),
		0 2px 0 rgba(0,0,0,.2) inset,
		0 -3px 0 rgba(0,0,0,.15) inset;
	transition: all .2s ease;
	letter-spacing: .02em;
	text-shadow: 0 1px 3px rgba(0,0,0,.3);
	font-family: var(--e-global-typography-secondary-font-family, inherit);
}

.wol-spin-btn:hover .wol-spin-btn-inner {
	transform: translateY(-3px) scale(1.03);
	box-shadow:
		0 12px 36px rgba(0,130,174,.7),
		0 2px 0 rgba(0,0,0,.2) inset,
		0 -3px 0 rgba(0,0,0,.15) inset;
}

.wol-spin-btn:active .wol-spin-btn-inner {
	transform: translateY(1px) scale(.98);
	box-shadow:
		0 3px 12px rgba(0,130,174,.4),
		0 2px 0 rgba(0,0,0,.2) inset;
}

.wol-spin-btn:disabled .wol-spin-btn-inner,
.wol-spin-btn[disabled] .wol-spin-btn-inner {
	opacity: .55;
	transform: none;
	cursor: not-allowed;
	box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* ── Modal ────────────────────────────────────────────────── */
.wol-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s ease;
}

.wol-modal.active {
	opacity: 1;
	pointer-events: all;
}

.wol-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .65);
	backdrop-filter: blur(6px);
}

.wol-modal-box {
	position: relative;
	background: linear-gradient(160deg, #003347 0%, #0082AE 60%, #00a8de 100%);
	border: 2px solid rgba(255,255,255,.12);
	border-radius: 24px;
	padding: 48px 40px 40px;
	max-width: 440px;
	width: 90%;
	text-align: center;
	box-shadow:
		0 40px 100px rgba(0,0,0,.6),
		0 0 0 1px rgba(255,255,255,.05) inset;
	transform: scale(.85) translateY(30px);
	transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), opacity .3s;
	overflow: hidden;
}

.wol-modal.active .wol-modal-box {
	transform: scale(1) translateY(0);
}

.wol-modal-glow {
	position: absolute;
	top: -60px;
	left: 50%;
	transform: translateX(-50%);
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, rgba(253,224,71,.4) 0%, transparent 70%);
	pointer-events: none;
}

.wol-modal-icon {
	font-size: 56px;
	margin-bottom: 16px;
	animation: wol-bounce-in .5s .1s both;
}

.wol-modal-title {
	color: #fde68a;
	font-size: 30px;
	font-weight: 800;
	margin: 0 0 12px;
	line-height: 1.2;
	text-shadow: 0 0 30px rgba(253,224,71,.5);
	animation: wol-fade-up .4s .2s both;
}

.wol-modal-description {
	color: rgba(255,255,255,.8);
	font-size: 16px;
	line-height: 1.6;
	margin: 0 0 28px;
	animation: wol-fade-up .4s .3s both;
}

.wol-modal-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	animation: wol-fade-up .4s .4s both;
}

.wol-spin-again,
.wol-modal-close {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	border: none;
	cursor: pointer;
	transition: all .2s;
}

.wol-spin-again {
	background: linear-gradient(135deg, #00c4f0, #0082AE);
	color: #fff;
	box-shadow: 0 4px 16px rgba(0,130,174,.4);
}

.wol-spin-again:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0,130,174,.6);
}

.wol-modal-close {
	background: rgba(255,255,255,.1);
	color: rgba(255,255,255,.7);
	border: 1px solid rgba(255,255,255,.15);
}

.wol-modal-close:hover {
	background: rgba(255,255,255,.2);
	color: #fff;
}

/* ── Confetti ─────────────────────────────────────────────── */
.wol-confetti {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 99998;
	overflow: hidden;
}

.wol-confetti-particle {
	position: absolute;
	top: -20px;
	border-radius: 3px;
	animation: wol-confetti-fall linear forwards;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes wol-bounce-in {
	0%   { transform: scale(.3) rotate(-20deg); opacity: 0; }
	60%  { transform: scale(1.15) rotate(5deg); }
	80%  { transform: scale(.95); }
	100% { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes wol-fade-up {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes wol-confetti-fall {
	0%   { top: -20px; transform: translateX(0) rotate(0deg); opacity: 1; }
	100% { top: 110vh; transform: translateX(var(--drift, 80px)) rotate(var(--rotate, 720deg)); opacity: 0; }
}

/* ── Notice (no items) ────────────────────────────────────── */
.wol-notice {
	padding: 16px 20px;
	background: #fef9c3;
	border: 1px solid #fde047;
	border-radius: 10px;
	color: #713f12;
	font-size: 14px;
}

/* ── Custom Popup Overlay ──────────────────────────────────── */
.wol-popup {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s ease, visibility .35s ease;
}

.wol-popup.active {
	opacity: 1;
	visibility: visible;
}

.wol-popup-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .7);
	backdrop-filter: blur(8px);
}

.wol-popup-box {
	position: relative;
	max-width: 520px;
	width: 92%;
	max-height: 90vh;
	overflow-y: auto;
	background: linear-gradient(160deg, #003347 0%, #0082AE 60%, #00a8de 100%);
	border: 2px solid rgba(255, 255, 255, .15);
	border-radius: 24px;
	padding: 32px 24px;
	box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
	transform: scale(.85) translateY(30px);
	transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}

.wol-popup.active .wol-popup-box {
	transform: scale(1) translateY(0);
}

.wol-popup-close-btn {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 10;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: rgba(255, 255, 255, .7);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all .2s;
}

.wol-popup-close-btn:hover {
	background: rgba(255, 255, 255, .25);
	color: #fff;
	transform: scale(1.1);
}

.wol-popup-wheel .wol-container {
	padding: 20px 10px;
	gap: 20px;
}
