.yp-floating-btn {
	position: fixed;
	bottom: 22px;
	z-index: 99990;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border: none;
	border-radius: 999px;
	background: var(--yp-accent, #6c5ce7);
	color: #fff;
	font-family: var(--yp-font, inherit);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
}

.yp-floating-btn.yp-pos-right { right: 22px; }
.yp-floating-btn.yp-pos-left { left: 22px; }

@media (max-width: 767px) {
	.yp-floating-btn.yp-hide-mobile { display: none; }
}

.yp-game-root.yp-mode-modal,
.yp-game-root.yp-mode-slide-in {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	background: rgba(15, 23, 42, var(--yp-overlay, 0.65));
	backdrop-filter: blur(3px);
	font-family: var(--yp-font, inherit);
}

.yp-game-root.yp-mode-modal.is-open {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.yp-game-root.yp-mode-slide-in.is-open {
	display: flex;
	align-items: stretch;
	justify-content: flex-end;
}

.yp-game-root.yp-mode-embed {
	display: block;
	margin: 20px auto;
	font-family: var(--yp-font, inherit);
}

.yp-dialog {
	position: relative;
	width: 100%;
	max-width: var(--yp-width, 480px);
	max-height: 92vh;
	overflow-y: auto;
	padding: 26px 22px 22px;
	border-radius: var(--yp-radius, 18px);
	background: var(--yp-bg, #ffffff);
	color: var(--yp-text, #1e293b);
	text-align: center;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	box-sizing: border-box;
}

.yp-mode-slide-in .yp-dialog {
	max-height: 100vh;
	border-radius: 0;
}

.yp-mode-embed .yp-dialog {
	margin: 0 auto;
	max-height: none;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.yp-theme-dark .yp-dialog {
	background: #0f172a;
	color: #f8fafc;
}

.yp-close-btn {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 50%;
	background: rgba(128, 128, 128, 0.15);
	color: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.yp-close-btn:focus-visible,
.yp-play-btn:focus-visible,
.yp-copy-btn:focus-visible,
.yp-apply-btn:focus-visible,
.yp-floating-btn:focus-visible {
	outline: 2px solid var(--yp-accent, #6c5ce7);
	outline-offset: 2px;
}

.yp-logo-img {
	max-height: 52px;
	width: auto;
	margin-bottom: 10px;
}

.yp-title {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.25;
}

.yp-subtitle {
	margin: 0 0 14px;
	font-size: 14px;
	opacity: 0.8;
}

.yp-player-form {
	text-align: left;
	margin-bottom: 14px;
}

.yp-field { margin-bottom: 10px; }

.yp-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 4px;
}

.yp-input {
	width: 100%;
	padding: 10px 12px;
	border: 1.5px solid #cbd5e1;
	border-radius: 8px;
	font-size: 14px;
	box-sizing: border-box;
}

.yp-consent-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12px;
	margin-top: 6px;
}

.yp-form-error {
	margin: 6px 0 0;
	font-size: 13px;
	color: #dc2626;
	min-height: 18px;
	text-align: center;
}

.yp-play-btn,
.yp-inline-trigger {
	display: inline-block;
	width: 100%;
	margin-top: 12px;
	padding: 13px 18px;
	border: none;
	border-radius: 10px;
	background: var(--yp-accent, #6c5ce7);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

.yp-inline-trigger { width: auto; }

.yp-play-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.yp-result-box {
	margin-top: 16px;
	padding: 14px;
	border-radius: 12px;
	background: rgba(108, 92, 231, 0.08);
	border: 1px solid rgba(108, 92, 231, 0.25);
}

.yp-result-heading { margin: 0 0 4px; font-size: 14px; }
.yp-result-prize { font-size: 22px; font-weight: 800; color: var(--yp-accent, #6c5ce7); }

.yp-coupon-code {
	display: inline-block;
	margin: 10px 0;
	padding: 8px 16px;
	border: 1.5px dashed var(--yp-accent, #6c5ce7);
	border-radius: 8px;
	background: #fff;
	color: #0f172a;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 1px;
}

.yp-result-actions {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
}

.yp-copy-btn,
.yp-apply-btn {
	padding: 9px 14px;
	border: none;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.yp-copy-btn { background: #e2e8f0; color: #0f172a; }
.yp-apply-btn { background: var(--yp-accent, #6c5ce7); color: #fff; }

.yp-terms {
	margin: 12px 0 0;
	font-size: 11px;
	opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
