/* ══════════════════════════════════════════════════════════════════════════
   КОЛЕСО ФОРТУНЫ YESBEAT (design/centrostudio/css/wheel.css)
   Страница /fortune/ и баннер на главной. Цвета тематики приходят из акции
   CSS-переменными --wheel-bg / --wheel-accent / --wheel-image; без них —
   фирменные токены yb-v2 (светлая и тёмная темы).
   ══════════════════════════════════════════════════════════════════════════ */

.wheel {
	--wheel-accent-c: var(--wheel-accent, var(--red, #E11D48));
	--yb-card-bg: #ffffff;
	position: relative;
	isolation: isolate;
	margin: 8px 0 40px;
	padding: 36px;
	overflow: hidden;
	border-radius: 24px;
	background: var(--wheel-bg,
		radial-gradient(55% 85% at 88% 20%, rgb(225 29 72 / 9%), transparent 70%),
		radial-gradient(45% 75% at 10% 90%, rgb(123 77 255 / 9%), transparent 70%),
		var(--ybSoft, #f4f4f8));
	box-shadow: inset 0 0 0 1px var(--rf-line, rgb(57 58 88 / 9%));
	color: var(--rf-ink, #393A58);
}

.wheel::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--wheel-image, none) center / cover no-repeat;
	opacity: .25;
	content: '';
}

.wheel[style*="--wheel-bg"] { color: #fff; }
.wheel[style*="--wheel-bg"] .wheel-note,
.wheel[style*="--wheel-bg"] .wheel-head p { color: rgb(255 255 255 / 80%); }

.wheel-layout {
	display: grid;
	grid-template-columns: minmax(340px, 480px) minmax(0, 1fr);
	align-items: stretch;
	gap: 36px;
}

/* Левая витрина с колесом — тёмный фирменный подиум Yesbeat (#18192C) */
.wheel-showcase {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 32px 28px 24px;
	border-radius: 20px;
	background:
		radial-gradient(65% 65% at 50% 45%, rgb(99 102 241 / 26%), transparent 72%),
		radial-gradient(50% 50% at 80% 15%, rgb(225 29 72 / 22%), transparent 70%),
		#18192C;
	box-shadow:
		inset 0 0 0 1px rgb(255 255 255 / 10%),
		0 18px 36px -18px rgb(24 25 44 / 45%);
}

.wheel-stage {
	position: relative;
	width: min(410px, 100%);
	aspect-ratio: 1;
	cursor: pointer;
	transition: transform .18s ease;
}
.wheel-stage:hover:not([aria-disabled="true"]) {
	transform: scale(1.015);
}
.wheel-stage[aria-disabled="true"] {
	cursor: default;
}
.wheel-tap-hint {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 16px;
	border-radius: 999px;
	background: rgb(255 255 255 / 10%);
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 16%);
	color: rgb(255 255 255 / 92%);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .01em;
	user-select: none;
}
.wheel-login-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	border-radius: 999px;
	background: var(--wheel-accent-c);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}
.wheel-login-pill:hover {
	color: #fff;
	opacity: .92;
}
.wheel-disc {
	display: block;
	width: 100%;
	height: 100%;
	filter: drop-shadow(0 16px 28px rgb(0 0 0 / 42%));
}
.wheel-outer-bezel {
	fill: #121324;
	stroke: rgb(255 255 255 / 18%);
	stroke-width: 1.5;
}
.wheel-rotor {
	transform-origin: 100px 100px;
	transform-box: view-box;
	will-change: transform;
}
.wheel-slice {
	stroke: rgb(255 255 255 / 35%);
	stroke-width: 1;
	stroke-linejoin: round;
}
.wheel-rotor text {
	font-size: 10.2px;
	font-weight: 800;
	letter-spacing: -.01em;
	pointer-events: none;
}
.wheel-rim {
	fill: none;
	stroke: #ffffff;
	stroke-width: 2.5;
}
.wheel-pegs circle {
	fill: #ffffff;
	opacity: .85;
}
.wheel-hub-shadow { fill: rgb(16 17 30 / 28%); }
.wheel-hub { fill: #ffffff; stroke: var(--wheel-accent-c); stroke-width: 3.5; }
.wheel-hub-core { fill: var(--wheel-accent-c); }

.wheel-pointer {
	position: absolute;
	top: -10px;
	left: 50%;
	z-index: 3;
	width: 32px;
	height: 38px;
	transform-origin: 50% 6px;
	transform: translateX(-50%);
	background: none !important;
	clip-path: none !important;
	filter: drop-shadow(0 4px 8px rgb(0 0 0 / 35%));
}
.wheel-pointer svg {
	display: block;
	width: 100%;
	height: 100%;
}
.wheel-pointer.is-tick {
	animation: wheelPointerTick .14s ease-out;
}
@keyframes wheelPointerTick {
	0% { transform: translateX(-50%) rotate(0deg); }
	35% { transform: translateX(-50%) rotate(-18deg); }
	100% { transform: translateX(-50%) rotate(0deg); }
}

/* Правая панель: заголовок, условия, кнопка и выигрыши */
.wheel-panel {
	display: grid;
	gap: 14px;
	align-content: center;
	min-width: 0;
	text-align: left;
}
.wheel-head {
	display: grid;
	gap: 8px;
}
.wheel-head h1 {
	margin: 0;
	font-size: clamp(24px, 3.2vw, 34px);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.02em;
}
.wheel-head p {
	margin: 0;
	max-width: 560px;
	color: var(--text-muted, #6b6c85);
	font-size: 15px;
	line-height: 1.5;
}
.wheel-specs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}
.wheel-spec {
	padding: 5px 11px;
	border-radius: 999px;
	background: rgb(57 58 88 / 7%);
	color: var(--text-muted, #6b6c85);
	font-size: 12.5px;
}
.wheel-spec b {
	color: var(--rf-ink, #393A58);
	font-weight: 700;
}

.wheel-action {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
	padding: 4px 0;
}
.wheel-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 220px;
	height: 50px;
	padding: 0 28px;
	border: 0;
	border-radius: var(--rf-r-pill, 999px);
	background: linear-gradient(135deg, var(--wheel-accent-c) 0%, #be123c 100%);
	box-shadow: 0 12px 24px -8px rgb(225 29 72 / 55%);
	color: #fff;
	font: inherit;
	font-size: 15.5px;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.wheel-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 26px -8px rgb(225 29 72 / 65%);
	color: #fff;
}
.wheel-button[disabled] {
	opacity: .55;
	box-shadow: none;
	cursor: default;
	transform: none;
}
.wheel-note { margin: 0; color: var(--text-muted, #6b6c85); font-size: 13.5px; }
.wheel-error { width: 100%; margin: 0; color: var(--red-text, #be123c); font-size: 13.5px; font-weight: 600; }

.wheel-wins {
	padding: 18px 20px;
	border-radius: 16px;
	background: var(--yb-card-bg, #fff);
	box-shadow: inset 0 0 0 1px var(--rf-line, rgb(57 58 88 / 9%));
	color: var(--rf-ink, #393A58);
	text-align: left;
}
.wheel-wins-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}
.wheel-wins h2 {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 16px;
	font-weight: 800;
}
.wheel-wins-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	border-radius: 999px;
	background: rgb(225 29 72 / 10%);
	color: var(--wheel-accent-c);
	font-size: 12px;
	font-weight: 800;
}
.wheel-wins-count[hidden] { display: none; }
.wheel-wins-cart {
	color: var(--wheel-accent-c);
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
}
.wheel-wins-cart:hover { text-decoration: underline; }
.wheel-wins ul {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 196px;
	margin: 0 0 10px;
	padding: 0 6px 0 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: rgb(57 58 88 / 24%) transparent;
	list-style: none;
}
.wheel-wins ul::-webkit-scrollbar { width: 5px; }
.wheel-wins ul::-webkit-scrollbar-track { background: transparent; }
.wheel-wins ul::-webkit-scrollbar-thumb { background: rgb(57 58 88 / 22%); border-radius: 999px; }
.wheel-wins ul:empty { margin: 0; }
.wheel-wins-empty { margin: 0 0 6px !important; }
.wheel-wins li {
	flex: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	padding: 10px 14px;
	border-radius: 12px;
	background: var(--ybSoft, #f4f4f8);
}
.wheel-wins li.is-used { opacity: .55; }
.wheel-wins code {
	padding: 4px 10px;
	border: 1px solid rgb(225 29 72 / 24%);
	border-radius: 8px;
	background: rgb(225 29 72 / 8%);
	color: var(--wheel-accent-c);
	font-size: 13.5px;
	font-weight: 800;
	letter-spacing: .06em;
}
.wheel-win-label { font-weight: 700; font-size: 14.5px; }
.wheel-win-meta { margin-left: auto; color: var(--text-muted, #6b6c85); font-size: 13px; }
.wheel-win-copy {
	padding: 6px 13px;
	border: 0;
	border-radius: 999px;
	background: var(--rf-ink, #393A58);
	color: #fff;
	font: inherit;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity .15s ease;
}
.wheel-win-copy:hover { opacity: .88; }
.wheel-wins-foot {
	margin: 0;
	color: var(--text-muted, #6b6c85);
	font-size: 12.5px;
	line-height: 1.45;
}

@media (max-width: 880px) {
	.wheel { padding: 20px 16px; }
	.wheel-layout { grid-template-columns: 1fr; gap: 22px; }
	.wheel-showcase { padding: 26px 16px 22px; }
	.wheel-stage { width: min(320px, 100%); }
}

.wheel-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgb(16 17 30 / 68%);
}
.wheel-modal[hidden] { display: none; }
.wheel-modal-card {
	display: grid;
	justify-items: center;
	gap: 16px;
	width: min(540px, 100%);
	padding: 38px 36px 32px;
	border-radius: 26px;
	background: var(--yb-card-bg, #fff);
	box-shadow: 0 28px 60px -18px rgb(16 17 30 / 60%);
	color: var(--rf-ink, #393A58);
	text-align: center;
}
.wheel-modal-badge {
	display: inline-grid;
	place-items: center;
	width: 60px;
	height: 60px;
	border-radius: 18px;
	background: rgb(225 29 72 / 10%);
	color: var(--wheel-accent-c);
}
.wheel-modal.is-empty .wheel-modal-badge {
	background: var(--ybSoft, #f4f4f8);
	color: var(--text-muted, #6b6c85);
}
.wheel-modal-badge svg {
	width: 28px;
	height: 28px;
}
.wheel-modal-card h2 { margin: 0; font-size: clamp(24px, 3vw, 28px); font-weight: 800; letter-spacing: -.015em; }
.wheel-modal-card p { margin: 0; max-width: 420px; color: var(--text-muted, #6b6c85); font-size: 15.5px; line-height: 1.5; }
.wheel-code {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	margin: 4px 0;
	padding: 16px 20px;
	border: 1px solid rgb(225 29 72 / 26%);
	border-radius: 16px;
	background: rgb(225 29 72 / 7%);
}
.wheel-code[hidden] { display: none; }
.wheel-code code { font-size: 26px; font-weight: 800; letter-spacing: .1em; color: var(--rf-ink, #393A58); }
.wheel-code button {
	height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: var(--wheel-accent-c);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}
.wheel-link {
	padding: 8px 16px;
	border: 0;
	background: none;
	color: var(--text-muted, #6b6c85);
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
}
.wheel-link:hover { color: var(--rf-ink, #393A58); }
.wheel-modal-actions { display: grid; justify-items: center; gap: 10px; width: 100%; margin-top: 6px; }
.wheel-modal-actions .wheel-button { width: 100%; height: 52px; font-size: 16px; }
.wheel-modal-actions [hidden] { display: none; }

/* ─── Промокоды колеса в корзине и личном кабинете ────────────────────────── */
.cartWheelCoupons {
	display: grid;
	gap: 8px;
	margin: 10px 0 4px;
}
.cartWheelCoupons__title {
	color: var(--text-muted, #6b6c85);
	font-size: 12.5px;
	font-weight: 600;
}
.cartWheelCoupons__list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.cartWheelCoupon {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 11px;
	border: 1px solid rgb(225 29 72 / 26%);
	border-radius: 999px;
	background: rgb(225 29 72 / 7%);
	color: var(--rf-ink, #393A58);
	font: inherit;
	font-size: 13px;
	cursor: pointer;
	transition: background .15s ease, transform .15s ease;
}
.cartWheelCoupon:hover,
.cartWheelCoupon.is-active {
	background: rgb(225 29 72 / 14%);
	transform: translateY(-1px);
}
.cartWheelCoupon code {
	color: var(--red, #E11D48);
	font-weight: 800;
	letter-spacing: .05em;
}
.cartWheelCoupon small {
	color: var(--text-muted, #6b6c85);
	font-size: 11.5px;
}

.ubWheelCoupons {
	display: grid;
	gap: 8px;
	margin-top: 10px;
	padding: 10px 12px;
	border-radius: 12px;
	background: rgb(225 29 72 / 6%);
	border: 1px solid rgb(225 29 72 / 18%);
}
.ubWheelCoupons__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 12.5px;
	font-weight: 700;
}
.ubWheelCoupons__head a {
	color: var(--red, #E11D48);
	font-size: 12px;
	text-decoration: none;
}
.ubWheelCoupons__list {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ubWheelCoupons__item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
}
.ubWheelCoupons__item code {
	font-weight: 800;
	letter-spacing: .05em;
}
.ubWheelCoupons__item small {
	margin-left: auto;
	color: var(--text-muted, #6b6c85);
	font-size: 11.5px;
}
.ubWheelCoupons__copy {
	padding: 2px 8px;
	border: 0;
	border-radius: 999px;
	background: var(--red, #E11D48);
	color: #fff;
	font: inherit;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
}

/* ─── Слайд колеса в верхнем слайдере главной (.topSliderNewSlider) ──────── */
html.yb-v2 .topSliderNew .topSliderNewSlider .item.itemWheel .ybBnr__eb::before {
	content: none;
}
.topSliderNew .topSliderNewSlider .item.itemWheel .wheelSlideBg {
	background:
		radial-gradient(55% 130% at 78% 35%, rgb(225 29 72 / 48%), transparent 70%),
		radial-gradient(50% 120% at 45% 100%, rgb(99 102 241 / 45%), transparent 70%),
		var(--wheel-bg, #18192C);
}
.topSliderNew .topSliderNewSlider .item.itemWheel .wheelSlideCard {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background:
		radial-gradient(75% 75% at 50% 42%, rgb(99 102 241 / 38%), transparent 72%),
		#18192C;
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 16%), -10px 0 30px -18px rgb(0 0 0 / 45%), 10px 0 30px -18px rgb(0 0 0 / 45%);
}
.topSliderNew .topSliderNewSlider .item.itemWheel .wheelSlideDisc {
	position: relative;
	z-index: 3;
	width: 72px;
	height: 72px;
	filter: drop-shadow(0 6px 12px rgb(0 0 0 / 45%));
	transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
@media (hover: hover) {
	.topSliderNew .topSliderNewSlider .item.itemWheel:hover .wheelSlideDisc {
		transform: rotate(25deg) scale(1.06);
	}
}
.topSliderNew .topSliderNewSlider .item.itemWheel .wheelSlideBadge {
	position: relative;
	z-index: 3;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--wheel-accent, #e11d48);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}
