/* ================================================================
   WHEEL OF FORTUNE
   ================================================================ */

/* Floating button */
.br-wheel-trigger {
	position: fixed;
	bottom: 24px;
	left: 24px;
	z-index: var(--br-z-float);
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--br-berry);
	color: #fff;
	padding: 12px 20px;
	border-radius: var(--br-r-pill);
	font-weight: 600;
	font-size: 15px;
	box-shadow: 0 4px 20px rgba(232, 54, 79, .4);
	transition: all .3s;
	animation: brWheelPulse 3s infinite;
}

.br-wheel-trigger:hover {
	transform: scale(1.05);
	box-shadow: 0 6px 25px rgba(232, 54, 79, .5);
}

.br-wheel-trigger__icon {
	font-size: 22px;
}

@keyframes brWheelPulse {
	0%, 100% { box-shadow: 0 4px 20px rgba(232, 54, 79, .4); }
	50% { box-shadow: 0 4px 30px rgba(232, 54, 79, .6); }
}

@media (max-width: 767px) {
	.br-wheel-trigger__text { display: none; }
	.br-wheel-trigger { padding: 14px; border-radius: var(--br-r-circle); }
}

/* Popup */
.br-wheel-box {
	max-width: 500px;
	text-align: center;
}

.br-wheel-title {
	font-size: 24px;
	margin-bottom: var(--br-gap-sm);
}

.br-wheel-subtitle {
	color: var(--br-ink-faded);
	margin-bottom: var(--br-gap-lg);
}

/* Wheel canvas */
.br-wheel-canvas {
	position: relative;
	width: 300px;
	height: 300px;
	margin: 0 auto var(--br-gap-lg);
}

.br-wheel-spinner {
	width: 100%;
	height: 100%;
	border-radius: var(--br-r-circle);
	position: relative;
	overflow: hidden;
	border: 4px solid var(--br-line);
	box-shadow: var(--br-shadow-deep);
}

.br-wheel-segment {
	position: absolute;
	width: 50%;
	height: 50%;
	top: 0;
	right: 0;
	transform-origin: bottom left;
	transform: rotate(var(--rotation)) skewY(calc(90deg - var(--segment-angle)));
	background: var(--segment-color);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 12px;
}

.br-wheel-segment__label {
	transform: skewY(calc(var(--segment-angle) - 90deg)) rotate(calc(var(--segment-angle) / 2));
	font-size: 11px;
	font-weight: 600;
	color: #fff;
	text-align: center;
	max-width: 80px;
	line-height: 1.2;
}

.br-wheel-pointer {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 28px;
	color: var(--br-berry);
	z-index: 10;
	text-shadow: 0 2px 4px rgba(0,0,0,.3);
}

/* Form */
.br-wheel-form {
	max-width: 300px;
	margin: 0 auto;
}

.br-wheel-form .br-overlay__field {
	text-align: center;
}

.br-wheel-form .br-consent {
	justify-content: center;
	margin-bottom: var(--br-gap-md);
}

/* Result */
.br-wheel-result {
	padding: var(--br-gap-lg) 0;
}

.br-wheel-result__emoji {
	font-size: 64px;
	display: block;
	margin-bottom: var(--br-gap-md);
}

.br-wheel-result__title {
	font-size: 22px;
	margin-bottom: var(--br-gap-md);
	color: var(--br-pine);
}

.br-wheel-result__code {
	font-size: 18px;
	margin-bottom: var(--br-gap-sm);
}

.br-wheel-result__code strong {
	color: var(--br-berry);
	font-size: 24px;
	letter-spacing: 2px;
}

.br-wheel-result__note {
	font-size: var(--br-text-sm);
	color: var(--br-ink-faded);
	margin-bottom: var(--br-gap-lg);
}