@font-face {
	font-family: 'IRANSansX-FD-Regular';
	src: url(https://creativeplay.ir/wp-content/plugins/dragonizer/assets/fonts/IRANSansX-FD-Regular.woff2) format('woff2');
	font-weight: 100 200 300 400 500 600 700 800 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'IRANSansX-FD-Bold';
	src: url(https://creativeplay.ir/wp-content/plugins/dragonizer/assets/fonts/IRANSansX-FD-Bold.woff2) format('woff2');
	font-weight: 100 200 300 400 500 600 700 800 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--cbg-field: #d4ffd4;
	--cbg-field-alt: #9ec99e;
	--cbg-line: rgba(255,255,255,0.98);
	--cbg-ink: #18492f;
	--cbg-ink-soft: rgba(24, 73, 47, 0.68);
	--cbg-border: rgba(24, 73, 47, 0.18);
	--cbg-ball-optical-offset-y: -25px;
}

body.cbg-body-lock {
	overflow: hidden !important;
	touch-action: none;
}

.cbg-template-page {
	margin: 0;
	height: var(--cbg-stable-vh, 100svh);
	min-height: var(--cbg-stable-vh, 100svh);
	overflow: hidden;
	background: linear-gradient(180deg, var(--cbg-field) 0%, var(--cbg-field-alt) 100%);
	color: var(--cbg-ink);
	font-family: 'IRANSansX-FD-Regular', Tahoma, sans-serif;
	direction: rtl;
	position: relative;
}

.cbg-template-page *,
.cbg-game * {
	box-sizing: border-box;
}

.cbg-template-page,
.cbg-template-page *:not(input):not(textarea) {
	user-select: none;
	-webkit-user-select: none;
}

.cbg-template-page input,
.cbg-template-page textarea,
.cbg-template-page .cbg-coupon-code {
	user-select: text;
	-webkit-user-select: text;
}

.cbg-template-page h1,
.cbg-template-page h2,
.cbg-template-page h3,
.cbg-template-page h4,
.cbg-template-page h5,
.cbg-template-page h6,
.cbg-template-page strong,
.cbg-template-page .cbg-modal-title,
.cbg-template-page .cbg-back-home {
	font-family: 'IRANSansX-FD-Bold', 'IRANSansX-FD-Regular', Tahoma, sans-serif;
}

.cbg-field-layer {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: var(--cbg-stable-vh, 100svh);
	pointer-events: none;
	z-index: 0;
}

.cbg-field-border,
.cbg-field-midline,
.cbg-field-circle,
.cbg-field-box {
	position: absolute;
}

.cbg-field-border {
	inset: 24px;
	border: 4px solid var(--cbg-line);
	border-radius: 0;
}

.cbg-field-midline {
	top: 24px;
	bottom: 24px;
	left: 50%;
	border-left: 4px solid var(--cbg-line);
	transform: translateX(-50%);
}

.cbg-field-circle {
	width: min(18vw, 176px);
	height: min(18vw, 176px);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border: 4px solid var(--cbg-line);
	border-radius: 50%;
}

.cbg-field-watermark {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: clamp(220px, 24vw, 290px);
	height: clamp(220px, 24vw, 290px);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: .05;
}

.cbg-field-watermark-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: grayscale(1) brightness(0);
}

.cbg-field-box {
	top: 50%;
	transform: translateY(-50%);
	width: min(9vw, 88px);
	height: min(26vh, 190px);
	border: 4px solid var(--cbg-line);
}

.cbg-field-box-left {
	left: 24px;
	border-left: 0;
}

.cbg-field-box-right {
	right: 24px;
	border-right: 0;
}

.cbg-template-shell {
	position: relative;
	z-index: 1;
	height: var(--cbg-stable-vh, 100svh);
	min-height: var(--cbg-stable-vh, 100svh);
	display: grid;
	grid-template-rows: auto 1fr;
}

.cbg-template-inner {
	width: 100%;
	max-width: none;
	padding-inline: clamp(14px, 2vw, 28px);
}

.cbg-template-topbar {
	padding-top: 14px;
}

.cbg-template-topbar-inner {
	position: relative;
	min-height: 50px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	grid-template-areas: "back chances title";
	align-items: center;
	gap: 16px;
	direction: ltr;
}

.cbg-template-title {
	position: static;
	margin: 0;
	font-size: clamp(13px, 1.35vw, 18px);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--cbg-ink);
	white-space: nowrap;
	direction: rtl;
	grid-area: title;
	justify-self: end;
	text-align: right;
	max-width: min(34vw, 360px);
}

.cbg-header-chances {
	grid-area: chances;
	justify-self: center;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 999px;
	background: rgba(255,255,255,.92);
	border: 1px solid rgba(24,73,47,.1);
	color: var(--cbg-ink);
	font-family: 'IRANSansX-FD-Bold', 'IRANSansX-FD-Regular', Tahoma, sans-serif;
	white-space: nowrap;
	direction: rtl;
}

.cbg-header-chances-label {
	font-size: 12px;
	opacity: .78;
}

.cbg-header-chances-current {
	font-size: 20px;
	line-height: 1;
	font-weight: 900;
}

.cbg-back-home,
.cbg-box .button,
.cbg-modal .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border-radius: 999px;
	border: 1.5px solid var(--cbg-border);
	background: rgba(255,255,255,0.92);
	color: var(--cbg-ink);
	text-decoration: none;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	transition: background-color .18s ease, transform .18s ease;
	cursor: pointer;
	font-family: 'IRANSansX-FD-Bold', 'IRANSansX-FD-Regular', Tahoma, sans-serif;
	direction: rtl;
}

.cbg-back-home {
	grid-area: back;
	justify-self: start;
}

.cbg-back-home:hover,
.cbg-box .button:hover,
.cbg-modal .button:hover {
	background: #ffffff;
	transform: translateY(-1px);
}

.cbg-back-home:disabled,
.cbg-box .button:disabled,
.cbg-modal .button:disabled {
	opacity: .72;
	transform: none;
	cursor: not-allowed;
}

body.cbg-play-mode .cbg-template-topbar {
	pointer-events: none;
}

body.cbg-play-mode .cbg-template-main,
body.cbg-play-mode .cbg-template-page .cbg-tooltip,
body.cbg-play-mode .cbg-template-page .cbg-sticky-timer {
	pointer-events: none;
}

body.cbg-play-mode .cbg-ball-target.cbg-playing {
	pointer-events: auto !important;
}

body.cbg-grab-cursor,
body.cbg-grab-cursor * {
	cursor: grab !important;
}

body.cbg-grab-cursor input,
body.cbg-grab-cursor textarea,
body.cbg-grab-cursor .cbg-modal .button,
body.cbg-grab-cursor .cbg-modal-close {
	cursor: auto !important;
}

.cbg-template-main {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px 0 12px;
}

.cbg-template-stage-wrap,
.cbg-template-stage {
	height: 100%;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cbg-template-page .cbg-game {
	margin: 0;
	width: 100%;
}

.cbg-template-page .cbg-stage {
	position: relative;
	width: 100%;
	min-height: 0;
	display: block;
	padding: 0;
}

.cbg-template-page .cbg-tooltip {
	position: fixed;
	bottom: 92px;
	left: 50%;
	transform: translateX(-50%);
	max-width: min(560px, calc(100vw - 28px));
	width: max-content;
	padding: 4px 18px;
	border-radius: 16px;
	background: rgba(255,255,255,0.94);
	color: var(--cbg-ink);
	border: 1px solid rgba(24,73,47,0.12);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	box-shadow: none;
	animation: none;
	text-align: center;
	line-height: 2;
	z-index: 3;
}

.cbg-template-page .cbg-tooltip::after {
	display: none;
}

.cbg-template-page .cbg-tooltip span {
	color: var(--cbg-ink-soft);
	margin-top: 6px;
}

.cbg-template-page .cbg-ball-target {
	position: fixed;
	left: 50%;
	top: calc(50% + var(--cbg-ball-optical-offset-y));
	display: flex;
	align-items: center;
	justify-content: center;
	transform: translate(-50%, -50%);
	transform-origin: center center;
	animation: cbgFieldBallIdle 3.8s linear infinite;
	filter: none;
	z-index: 4;
}

.cbg-template-page .cbg-sticky-timer {
	background: rgba(255,255,255,0.94);
	color: var(--cbg-ink);
	border: 1px solid rgba(24,73,47,0.12);
	box-shadow: none;
}

.cbg-game,
.cbg-box {
	direction: rtl;
	text-align: center;
	font-family: 'IRANSansX-FD-Regular', Tahoma, sans-serif;
	position: relative;
	margin: 20px 0;
}

.cbg-box {
	padding: 24px;
	border: 1px solid rgba(24,73,47,.08);
	border-radius: 24px;
	background: rgba(255,255,255,0.96);
	color: var(--cbg-ink);
	box-shadow: none;
}

.cbg-message {
	font-size: 15px;
	line-height: 2;
	font-weight: 600;
	margin-bottom: 14px;
}

.cbg-stage {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	position: relative;
	animation: cbgStageIn .45s ease both;
}

.cbg-tooltip {
	position: relative;
	max-width: 300px;
	padding: 12px 14px;
	border-radius: 14px;
	background: rgba(20,20,20,.94);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.9;
	box-shadow: none;
	animation: cbgTooltipFloat 1.7s ease-in-out infinite;
}

.cbg-tooltip::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -8px;
	transform: translateX(-50%);
	border: 8px solid transparent;
	border-top-color: rgba(20,20,20,.94);
	width: 0;
	height: 0;
}

.cbg-tooltip span {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	opacity: .82;
	font-weight: 500;
}

.cbg-cooldown-text {
	display: inline !important;
	font-size: inherit !important;
	opacity: 1 !important;
	font-weight: 800 !important;
}

.cbg-ball-target {
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 0;
	width: 84px;
	height: 84px;
	position: relative;
	z-index: 2;
	animation: cbgIdle 1.1s ease-in-out infinite;
	filter: none;
	touch-action: manipulation;
	user-select: none;
	-webkit-user-select: none;
	-webkit-user-drag: none;
}

.cbg-ball-target:disabled { cursor: not-allowed; opacity: .85; }

.cbg-ball-target svg,
.cbg-ball-target img {
	width: 84px;
	height: 84px;
	display: block;
	transform-origin: center center;
	pointer-events: none;
	user-select: none;
	-webkit-user-select: none;
	-webkit-user-drag: none;
	object-fit: contain;
}

.cbg-game.cbg-is-playing .cbg-tooltip { display: none; }

.cbg-ball-target.cbg-playing {
	position: fixed !important;
	left: 40px;
	top: 40px;
	right: auto !important;
	bottom: auto !important;
	z-index: 1000002;
	animation: none;
	transition: none;
	will-change: left, top, transform;
	direction: ltr;
	margin: 0;
	padding: 0;
}

.cbg-ball-target.cbg-returning {
	position: fixed !important;
	right: auto !important;
	bottom: auto !important;
	z-index: 1000002;
	animation: none !important;
	will-change: left, top, transform;
}

.cbg-sticky-timer {
	position: fixed;
	left: 50%;
	bottom: 18px;
	right: auto;
	transform: translateX(-50%);
	z-index: 1000003;
	display: none;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 999px;
	background: rgba(255,255,255,.96);
	color: inherit;
	box-shadow: none;
	font-size: 13px;
	font-weight: 700;
}

.cbg-game::before {
	content: "";
	position: fixed;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	background: rgba(255,255,255,0);
	backdrop-filter: blur(0);
	-webkit-backdrop-filter: blur(0);
	transition: opacity .24s ease, background-color .24s ease, backdrop-filter .24s ease, -webkit-backdrop-filter .24s ease;
	z-index: 1000003;
}

.cbg-game.cbg-is-loading::before,
.cbg-game.cbg-is-starting::before {
	opacity: 1;
	background: rgba(255,255,255,.16);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.cbg-game.cbg-is-playing .cbg-sticky-timer,
.cbg-game.cbg-is-loading .cbg-sticky-timer,
.cbg-game.cbg-is-starting .cbg-sticky-timer { display: inline-flex; }

.cbg-sticky-timer strong {
	font-size: 24px;
	line-height: 1;
	font-weight: 900;
}

.cbg-sticky-timer small {
	font-size: 12px;
	opacity: .75;
}

.cbg-loading {
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%,-50%) scale(.96);
	z-index: 1000004;
	display: none;
	opacity: 0;
	animation: cbgLoadingIn .25s ease forwards;
}

.cbg-game.cbg-is-loading .cbg-loading,
.cbg-game.cbg-is-starting .cbg-loading { display: block; }

.cbg-spinner {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 3px solid rgba(24,73,47,0.14);
	border-top-color: var(--cbg-ink);
	margin: 0;
	animation: cbgSpin .75s linear infinite;
}

.cbg-modal {
	position: fixed;
	inset: 0;
	background: rgba(237,248,237,.4);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000005;
	direction: rtl;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .28s ease, visibility 0s linear .28s;
}

.cbg-modal.cbg-modal-open,
.cbg-modal.cbg-modal-closing {
	visibility: visible;
}

.cbg-modal.cbg-modal-open {
	opacity: 1;
	pointer-events: auto;
	transition: opacity .28s ease;
}

.cbg-modal.cbg-modal-closing {
	opacity: 0;
	pointer-events: none;
}

.cbg-modal-content {
	width: min(440px,100%);
	background: rgba(255,255,255,0.98);
	color: var(--cbg-ink);
	border-radius: 26px;
	padding: 28px 24px;
	text-align: center;
	position: relative;
	box-shadow: none;
	border: 1px solid rgba(24,73,47,0.12);
	opacity: 0;
	transform: translateY(18px) scale(.95);
	transition: transform .32s cubic-bezier(.2,.85,.2,1.15), opacity .32s ease;
}

.cbg-modal.cbg-modal-open .cbg-modal-content {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.cbg-modal.cbg-modal-closing .cbg-modal-content {
	opacity: 0;
	transform: translateY(18px) scale(.95);
}

.cbg-modal-close {
	position: absolute;
	top: 12px;
	left: 14px;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 30px;
	cursor: pointer;
	line-height: 1;
	padding: 0;
}

.cbg-modal-title {
	font-size: 24px;
	font-weight: 900;
	margin-bottom: 12px;
}

.cbg-modal-message {
	font-size: 15px;
	line-height: 2;
	margin-bottom: 18px;
}

.cbg-coupon-box {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.cbg-coupon-field {
	position: relative;
	width: min(260px, 100%);
}

.cbg-coupon-expiry {
	margin-top: 14px;
	font-size: 13px;
	line-height: 1.9;
	color: var(--cbg-ink-soft);
	font-family: 'IRANSansX-FD-Regular', Tahoma, sans-serif;
}

.cbg-coupon-code {
	text-align: end;
	font-weight: 900;
	font-size: 18px;
	letter-spacing: 1px;
	border: 2px dashed rgba(24,73,47,0.26);
	border-radius: 14px;
	padding: 12px 48px 12px 14px;
	min-width: 0;
	width: 100%;
	background: #fff;
	color: inherit;
	font-family: 'IRANSansX-FD-Bold', 'IRANSansX-FD-Regular', Tahoma, sans-serif;
	direction: ltr;
}

.cbg-copy-btn {
	position: absolute;
	top: 50%;
	left: 8px;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	min-width: 36px;
	padding: 0 !important;
	border-radius: 10px !important;
	font-family: 'IRANSansX-FD-Bold', 'IRANSansX-FD-Regular', Tahoma, sans-serif !important;
}

.cbg-copy-btn svg {
	width: 18px;
	height: 18px;
	display: block;
}

.cbg-copy-btn:hover {
	transform: translateY(-50%) !important;
}

.cbg-copy-btn.is-copied {
	background: var(--cbg-ink);
	color: #fff;
}

.cbg-phone-input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	direction: ltr;
	font-size: 17px;
	font-weight: 700;
	border: 2px solid #d1d5db;
	border-radius: 14px;
	padding: 12px;
	margin-bottom: 10px;
	background: #fff;
	color: inherit;
	font-family: 'IRANSansX-FD-Regular', Tahoma, sans-serif;
}

.cbg-phone-input:focus {
	outline: none;
	border-color: rgba(24,73,47,0.48);
	box-shadow: none;
}

.cbg-phone-error {
	color: #dc2626;
	font-size: 13px;
	margin-bottom: 10px;
}

.cbg-phone-submit {
	width: 100%;
	padding: 12px !important;
	font-size: 15px !important;
	border-radius: 16px !important;
}

@keyframes cbgStageIn { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: translateY(0) } }
@keyframes cbgTooltipFloat { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
@keyframes cbgIdle {
	0% { transform: translateY(0) rotate(0deg) scale(1); }
	34% { transform: translateY(-5px) rotate(180deg) scale(1.02); }
	70% { transform: translateY(2px) rotate(320deg) scale(.99); }
	100% { transform: translateY(0) rotate(360deg) scale(1); }
}
@keyframes cbgFieldBallIdle {
	0% { transform: translate(-50%, -50%) rotate(0deg); }
	100% { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes cbgLoadingIn { to { opacity: 1; transform: translate(-50%,-50%) scale(1) } }
@keyframes cbgSpin { to { transform: rotate(360deg) } }

@media (max-width: 920px) {
	.cbg-field-border { inset: 18px; }

	.cbg-field-midline {
		top: 18px;
		bottom: 18px;
	}

	.cbg-field-box {
		width: 56px;
		height: 160px;
	}

	.cbg-field-box-left { left: 18px; }
	.cbg-field-box-right { right: 18px; }
}

@media (max-width: 720px) {
	.cbg-template-inner {
		padding-inline: 12px;
	}

	.cbg-template-topbar {
		padding-top: 10px;
	}

	.cbg-template-topbar-inner {
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-rows: auto auto;
		grid-template-areas:
			"back title"
			"chances chances";
		min-height: auto;
		row-gap: 10px;
	}

	.cbg-back-home {
		grid-area: back;
		justify-self: start;
		padding: 9px 13px;
		font-size: 12px;
	}

	.cbg-header-chances {
		grid-area: chances;
		justify-self: center;
		padding: 9px 12px;
		gap: 6px;
	}

	.cbg-header-chances-current {
		font-size: 18px;
	}

	.cbg-header-chances-label {
		font-size: 11px;
	}

	.cbg-template-title {
		grid-area: title;
		justify-self: end;
		font-size: 14px;
		white-space: normal;
		max-width: 46vw;
	}

	.cbg-field-border { inset: 14px; }

	.cbg-field-midline {
		top: 14px;
		bottom: 14px;
	}

	.cbg-field-circle {
		width: 90px;
		height: 90px;
	}

	.cbg-field-watermark {
		width: 150px;
		height: 150px;
	}

	.cbg-field-box {
		width: 32px;
		height: 110px;
	}

	.cbg-field-box-left { left: 14px; }
	.cbg-field-box-right { right: 14px; }
	.cbg-template-page .cbg-tooltip {
		bottom: 76px;
		max-width: calc(100vw - 24px);
		width: auto;
		padding: 12px 14px;
		font-size: 12px;
		line-height: 1.9;
	}

	.cbg-template-page .cbg-game {
		width: 100%;
	}

	.cbg-ball-target,
	.cbg-ball-target svg,
	.cbg-ball-target img {
		width: 68px;
		height: 68px;
	}

	.cbg-sticky-timer {
		left: 50%;
		right: auto;
		bottom: 10px;
		transform: translateX(-50%);
		font-size: 12px;
	}

	.cbg-sticky-timer strong {
		font-size: 20px;
	}

	.cbg-modal {
		padding: 14px;
	}

	.cbg-modal-content {
		padding: 24px 18px;
		border-radius: 22px;
	}
}
