/* MyFlowers – Tarcza bukietów */
.mfbw, .mfbw-fab, .mfbw-dialog {
	--mfbw-pink: #d6247a;
	--mfbw-pink-l: #f6bcd5;
	--mfbw-bordo: #6d1b38;
	--mfbw-gold: #c9a227;
	--mfbw-cream: #fdf8f2;
	font-family: inherit;
	box-sizing: border-box;
}
.mfbw *, .mfbw *::before, .mfbw *::after { box-sizing: border-box; }

.mfbw {
	position: relative;
	max-width: 1100px;
	margin: 0 auto;
	padding: clamp(24px, 4vw, 48px) clamp(16px, 3vw, 40px);
	color: var(--mfbw-bordo);
	background:
		radial-gradient(circle at 10% 0%, rgba(246, 188, 213, .45), transparent 45%),
		radial-gradient(circle at 100% 100%, rgba(201, 162, 39, .14), transparent 40%),
		var(--mfbw-cream);
	border: 1px solid rgba(201, 162, 39, .45);
	border-radius: 24px;
}
.mfbw__head { text-align: center; margin-bottom: clamp(18px, 3vw, 32px); }
.mfbw__kicker { margin: 0 0 6px; color: var(--mfbw-gold); font-size: 14px; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; }
.mfbw__title { margin: 0 0 8px; color: var(--mfbw-bordo); font-size: clamp(30px, 4.5vw, 46px); line-height: 1.1; }
.mfbw__lead { margin: 0 auto; max-width: 560px; font-size: 18px; line-height: 1.5; color: #7a4a5c; }

.mfbw__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(20px, 4vw, 48px);
	align-items: center;
}

/* Wheel */
/* overflow:hidden – rotated SVG bbox would otherwise cause horizontal scroll. */
.mfbw__stage { display: flex; justify-content: center; overflow: hidden; padding: 24px 6px 30px; }
.mfbw__wheel-wrap {
	position: relative;
	width: min(100%, 480px);
	aspect-ratio: 1;
	filter: drop-shadow(0 18px 30px rgba(109, 27, 56, .22));
}
.mfbw__wheel {
	display: block;
	width: 100%;
	height: 100%;
	transform: rotate(0deg);
	transition-property: transform;
	transition-timing-function: cubic-bezier(.12, .7, .12, 1);
	will-change: transform;
}
.mfbw__num { font-size: 12px; font-weight: 700; fill: var(--mfbw-bordo); pointer-events: none; }
.mfbw__seg { cursor: pointer; outline: none; }
.mfbw__seg path { transition: fill .25s ease; }
.mfbw__seg:hover path, .mfbw__seg:focus-visible path { fill: var(--mfbw-pink-l); }
.mfbw__seg.is-active path { fill: var(--mfbw-pink); }
.mfbw__seg.is-active .mfbw__num { fill: #fff; }
.mfbw__seg.is-empty { cursor: default; }
.mfbw__seg.is-empty .mfbw__num { fill: #bfb3b6; }
.is-spinning .mfbw__seg { pointer-events: none; }

.mfbw__pointer {
	position: absolute;
	top: -20px;
	left: 50%;
	z-index: 2;
	width: 30px;
	height: 36px;
	margin-left: -15px;
	background: linear-gradient(180deg, #f3dc8a, var(--mfbw-gold));
	clip-path: polygon(50% 100%, 0 0, 100% 0);
	filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .25));
	transform-origin: 50% 0;
}
.mfbw__pointer::after {
	content: "";
	position: absolute;
	top: 5px;
	left: 50%;
	width: 10px;
	height: 10px;
	margin-left: -5px;
	border-radius: 50%;
	background: var(--mfbw-pink);
}
.mfbw__pointer.is-ticking { animation: mfbw-tick .12s ease-in-out infinite alternate; }
@keyframes mfbw-tick { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }

.mfbw .mfbw__spin {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 3;
	width: 30%;
	aspect-ratio: 1;
	margin: 0;
	padding: 0 !important;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	border: 4px solid #fff !important;
	border-radius: 50% !important;
	background: radial-gradient(circle at 35% 30%, #f06aa8, var(--mfbw-pink) 55%, var(--mfbw-bordo)) !important;
	color: #fff !important;
	box-shadow: 0 0 0 3px var(--mfbw-gold), 0 10px 24px rgba(109, 27, 56, .45);
	cursor: pointer;
	font-family: inherit;
	transition: transform .2s ease, box-shadow .2s ease;
	animation: mfbw-glow 2.4s ease-in-out infinite;
}
.mfbw .mfbw__spin:hover { transform: translate(-50%, -50%) scale(1.05); }
.mfbw .mfbw__spin:focus-visible { outline: 3px solid var(--mfbw-gold); outline-offset: 4px; }
.mfbw .mfbw__spin:disabled { cursor: wait; animation: none; opacity: .92; }
.mfbw__spin-flower { font-size: clamp(18px, 3.5vw, 26px); line-height: 1; }
.mfbw__spin-label { font-size: clamp(13px, 2.2vw, 17px); font-weight: 800; letter-spacing: 1.5px; }
@keyframes mfbw-glow {
	0%, 100% { box-shadow: 0 0 0 3px var(--mfbw-gold), 0 10px 24px rgba(109, 27, 56, .45), 0 0 0 0 rgba(214, 36, 122, .45); }
	50%      { box-shadow: 0 0 0 3px var(--mfbw-gold), 0 10px 24px rgba(109, 27, 56, .45), 0 0 0 14px rgba(214, 36, 122, 0); }
}

/* Result */
.mfbw__result { min-height: 200px; scroll-margin-top: 90px; }
.mfbw__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 320px;
	padding: 24px;
	border: 2px dashed rgba(214, 36, 122, .35);
	border-radius: 20px;
	text-align: center;
	color: #9a6b7c;
	font-size: 18px;
}
.mfbw__placeholder p { margin: 8px 0 0; }
.mfbw__placeholder-icon { font-size: 46px; }
.mfbw__empty { text-align: center; font-size: 18px; }

.mfbw__card {
	position: relative;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(201, 162, 39, .5);
	border-radius: 20px;
	box-shadow: 0 16px 40px rgba(109, 27, 56, .14);
	animation: mfbw-in .5s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes mfbw-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.mfbw__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 74px;
	padding: 8px 12px;
	border: 2px solid var(--mfbw-gold);
	border-radius: 16px;
	background: linear-gradient(160deg, var(--mfbw-pink), var(--mfbw-bordo));
	color: #fff;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}
.mfbw__badge-label { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.mfbw__badge-nr { font-size: 34px; font-weight: 800; line-height: 1; }
.mfbw__photo { margin: 0; aspect-ratio: 4 / 3; background: #fbe3ee; }
.mfbw__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mfbw__body { padding: 18px 20px 20px; }
.mfbw__name { margin: 0 0 6px; color: var(--mfbw-bordo); font-size: 26px; line-height: 1.2; }
.mfbw__desc { margin: 0 0 10px; color: #6a5560; font-size: 17px; line-height: 1.45; }
.mfbw__price { margin: 0 0 16px; color: var(--mfbw-pink); font-size: 20px; font-weight: 700; }
.mfbw__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mfbw .mfbw__btn {
	flex: 1 1 200px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 18px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .8px;
	text-align: center;
	text-decoration: none !important;
	transition: transform .15s ease, background .2s ease, color .2s ease;
}
.mfbw .mfbw__btn--primary {
	background: linear-gradient(135deg, #ec4b97, var(--mfbw-pink)) !important;
	color: #fff !important;
	box-shadow: 0 8px 18px rgba(214, 36, 122, .35);
}
.mfbw .mfbw__btn--primary:hover, .mfbw .mfbw__btn--primary:focus-visible { background: var(--mfbw-bordo) !important; transform: translateY(-1px); }
.mfbw .mfbw__btn--ghost { border: 2px solid var(--mfbw-gold); background: #fff !important; color: var(--mfbw-bordo) !important; }
.mfbw .mfbw__btn--ghost:hover, .mfbw .mfbw__btn--ghost:focus-visible { background: #fff7e0 !important; }
.mfbw__info { margin: 14px 0 0; font-size: 15px; color: #6a5560; }
.mfbw__info a { color: var(--mfbw-pink); font-weight: 700; }
.mfbw .mfbw__again {
	margin-top: 12px;
	padding: 6px 0 !important;
	border: 0 !important;
	background: none !important;
	color: var(--mfbw-bordo) !important;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* Floating trigger (front page) */
.mfbw-fab {
	position: fixed;
	left: 20px;
	bottom: 24px;
	z-index: 999980;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 22px 12px 14px !important;
	border: 2px solid var(--mfbw-gold) !important;
	border-radius: 999px !important;
	background: linear-gradient(135deg, #ec4b97, var(--mfbw-pink) 50%, var(--mfbw-bordo)) !important;
	color: #fff !important;
	font-family: inherit;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: .5px;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 10px 26px rgba(109, 27, 56, .4);
	animation: mfbw-fab-in .7s cubic-bezier(.2, .8, .2, 1) .6s both, mfbw-fab-pulse 2.8s ease-out 1.6s infinite;
}
.mfbw-fab:hover, .mfbw-fab:focus-visible { filter: brightness(1.08); outline: none; }
.mfbw-fab:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--mfbw-pink); }
.mfbw-fab__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	color: var(--mfbw-pink);
	font-size: 20px;
	animation: mfbw-rot 6s linear infinite;
}
@keyframes mfbw-fab-in { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes mfbw-fab-pulse {
	0%   { box-shadow: 0 10px 26px rgba(109, 27, 56, .4), 0 0 0 0 rgba(214, 36, 122, .5); }
	70%  { box-shadow: 0 10px 26px rgba(109, 27, 56, .4), 0 0 0 16px rgba(214, 36, 122, 0); }
	100% { box-shadow: 0 10px 26px rgba(109, 27, 56, .4), 0 0 0 0 rgba(214, 36, 122, 0); }
}
@keyframes mfbw-rot { to { transform: rotate(360deg); } }

/* Dialog */
.mfbw-dialog {
	width: min(1100px, calc(100vw - 24px));
	max-width: none;
	max-height: calc(100dvh - 24px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 24px;
	background: transparent;
	overflow: auto;
	overscroll-behavior: contain;
}
.mfbw-dialog::backdrop { background: rgba(58, 14, 30, .62); backdrop-filter: blur(3px); }
.mfbw-dialog[open] { animation: mfbw-in .35s cubic-bezier(.2, .8, .2, 1) both; }
.mfbw-dialog .mfbw { border-radius: 24px; }
.mfbw-dialog .mfbw-dialog__close {
	position: sticky;
	top: 12px;
	float: right;
	z-index: 5;
	width: 40px;
	height: 40px;
	margin: 12px 12px -52px 0;
	padding: 0 !important;
	border: 1px solid var(--mfbw-pink) !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: var(--mfbw-bordo) !important;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}
.mfbw-dialog .mfbw-dialog__close:hover, .mfbw-dialog .mfbw-dialog__close:focus-visible { background: var(--mfbw-pink) !important; color: #fff !important; outline: none; }
html.mfbw-lock { overflow: hidden; }

/* Responsive */
@media (max-width: 900px) {
	.mfbw__grid { grid-template-columns: 1fr; }
	.mfbw__wheel-wrap { width: min(100%, 420px); }
	.mfbw__placeholder { min-height: 140px; }
}
@media (max-width: 767px) {
	.mfbw-fab { left: 12px; bottom: 78px; padding: 10px 16px 10px 10px !important; font-size: 14px; }
	.mfbw-fab__icon { width: 28px; height: 28px; font-size: 17px; }
	.mfbw-dialog { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
	.mfbw-dialog .mfbw { border-radius: 0; min-height: 100%; border: 0; }
	.mfbw__lead { font-size: 16px; }
	.mfbw__num { font-size: 13px; }
	.mfbw__name { font-size: 22px; }
	.mfbw .mfbw__btn { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.mfbw .mfbw__spin, .mfbw-fab, .mfbw-fab__icon, .mfbw__card, .mfbw-dialog[open] { animation: none; }
}
