/* Reset and Base */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Arial", sans-serif;
	color: #fff;
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow-x: hidden;
	background: #000; /* Simplified background */
}

/* Dialog Box */
.dialog-box {
	position: relative;
	max-width: 400px;
	width: 100%;
	margin: 20px;
	z-index: 1;
	text-align: center;
}

/* Avatar */
.dingbutouxiang {
	margin-bottom: 20px;
}
.dingbutouxiang img {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	border: 3px solid #ffe15e;
	object-fit: cover;
}

/* Banner */
.roulette-banner1 {
	font-size: 18px;
	margin-bottom: 20px;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Banner Image */
.img-banner1 {
	position: relative;
	display: block;
	top: -20px;
	margin: 0 auto 20px;
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

/* Mobile */
@media (max-width: 480px) {
	.img-banner1 {
		top: -23px; /* Naik sedikit di layar kecil */
		max-width: 90%; /* Lebih kecil agar muat di layar kecil */
		margin-bottom: 15px; /* Sedikit jarak bawah */
	}

	/* Adjust dialog box for mobile */
	.dialog-box {
		max-width: 95%;
		margin: 10px;
	}

	/* Smaller wheel on mobile */
	.circle-container {
		width: 250px;
		height: 250px;
	}

	.circle-bg1 {
		width: 235px;
		height: 235px;
	}

	.circle-bg3 {
		width: 270px;
		height: 270px;
	}

	.circle-bg4 {
		width: 360px;
		height: 360px;
		top: 125px;
		left: 125px;
		pointer-events: none;
	}

	.roulette-circle-bg {
		width: 265px;
		height: 265px;
	}

	.circle {
		width: 400px;
		height: 400px;
	}

	.roulette-light {
		width: 360px;
		height: 360px;
	}

	.roulette-light-white {
		width: 500px;
		height: 500px;
	}

	.roulette-arrow {
		top: 115px;
		right: -20px;
		width: 32px;
		height: 12px;
	}

	.roulette-point {
		width: 85px;
		height: 85px;
	}

	.roulette-lucky {
		width: 100px;
		height: 100px;
	}

	/* Adjust button for mobile */
	.button-spin {
		padding: 12px 30px;
		font-size: 18px;
		margin-top: 60px;
	}

	/* Adjust ticket form for mobile */
	.ticket-form {
		margin: 60px 0 -30px 0;
	}

	.ticket-input,
	.username-input {
		max-width: 250px;
		padding: 10px 15px;
		font-size: 14px;
	}

	/* Adjust popup for mobile */
	.popup-card {
		width: 90%;
		padding: 20px 15px 25px;
	}

	.popup-icon {
		width: 70px;
		height: 70px;
	}

	.popup-icon img {
		width: 45px;
		height: 45px;
	}

	.popup-card h3 {
		font-size: 16px;
	}

	.popup-title {
		font-size: 22px;
	}

	.popup-card p {
		font-size: 13px;
	}

	.popup-card button {
		padding: 9px 20px;
		font-size: 14px;
	}
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {
	.dialog-box {
		max-width: 450px;
		margin: 20px;
	}

	.circle-container {
		width: 300px;
		height: 300px;
	}

	.circle-bg1 {
		width: 285px;
		height: 285px;
	}

	.circle-bg3 {
		width: 325px;
		height: 325px;
	}

	.circle-bg4 {
		width: 430px;
		height: 430px;
		top: 150px;
		left: 150px;
		pointer-events: none;
	}

	.roulette-circle-bg {
		width: 320px;
		height: 320px;
	}

	.circle {
		width: 480px;
		height: 480px;
	}

	.roulette-light {
		width: 350px;
		height: 350px;
	}

	.roulette-light-white {
		width: 600px;
		height: 600px;
	}

	.roulette-arrow {
		top: 140px;
		right: -25px;
		width: 40px;
		height: 16px;
	}

	.roulette-point {
		width: 105px;
		height: 105px;
	}

	.roulette-lucky {
		width: 125px;
		height: 125px;
	}

	.button-spin {
		padding: 16px 45px;
		font-size: 22px;
		margin-top: 85px;
	}

	.ticket-form {
		margin: 85px 0 -45px 0;
	}

	.ticket-input,
	.username-input {
		max-width: 320px;
		padding: 14px 22px;
		font-size: 17px;
	}

	.popup-card {
		width: 340px;
		padding: 28px 22px 32px;
	}

	.popup-icon {
		width: 95px;
		height: 95px;
	}

	.popup-icon img {
		width: 60px;
		height: 60px;
	}

	.popup-card h3 {
		font-size: 19px;
	}

	.popup-title {
		font-size: 30px;
	}

	.popup-card p {
		font-size: 15px;
	}

	.popup-card button {
		padding: 11px 28px;
		font-size: 16px;
	}
}

/* Desktop */
@media (min-width: 769px) and (max-width: 1200px) {
	.dialog-box {
		max-width: 500px;
		margin: 30px;
	}

	.circle-container {
		width: 320px;
		height: 320px;
	}

	.circle-bg1 {
		width: 305px;
		height: 305px;
	}

	.circle-bg3 {
		width: 345px;
		height: 345px;
	}

	.circle-bg4 {
		width: 450px;
		height: 450px;
		top: 160px;
		left: 160px;
		pointer-events: none;
	}

	.roulette-circle-bg {
		width: 340px;
		height: 340px;
	}

	.circle {
		width: 500px;
		height: 500px;
	}

	.roulette-light-white,
	.roulette-light {
		width: 500px;
		height: 500px;
	}

	.roulette-arrow {
		top: 150px;
		right: -28px;
		width: 42px;
		height: 17px;
	}

	.roulette-point {
		width: 110px;
		height: 110px;
	}

	.roulette-lucky {
		width: 130px;
		height: 130px;
	}

	.button-spin {
		padding: 18px 50px;
		font-size: 24px;
		margin-top: 90px;
	}

	.ticket-form {
		margin: 90px 0 -50px 0;
	}

	.ticket-input,
	.username-input {
		max-width: 350px;
		padding: 16px 25px;
		font-size: 18px;
	}

	.popup-card {
		width: 360px;
		padding: 30px 24px 35px;
	}

	.popup-icon {
		width: 100px;
		height: 100px;
	}

	.popup-icon img {
		width: 65px;
		height: 65px;
	}

	.popup-card h3 {
		font-size: 20px;
	}

	.popup-title {
		font-size: 32px;
	}

	.popup-card p {
		font-size: 16px;
	}

	.popup-card button {
		padding: 12px 30px;
		font-size: 17px;
	}
}

/* Large Desktop */
@media (min-width: 1201px) {
	.dialog-box {
		max-width: 550px;
		margin: 40px;
	}

	.circle-container {
		width: 350px;
		height: 350px;
	}

	.circle-bg1 {
		width: 335px;
		height: 335px;
	}

	.circle-bg3 {
		width: 375px;
		height: 375px;
	}

	.circle-bg4 {
		width: 480px;
		height: 480px;
		top: 175px;
		left: 175px;
		pointer-events: none;
	}

	.roulette-circle-bg {
		width: 370px;
		height: 370px;
	}

	.circle {
		width: 520px;
		height: 520px;
	}

	.roulette-light {
		width: 420px;
		height: 420px;
	}

	.roulette-light-white {
		width: 470px;
		height: 470px;
	}

	.roulette-arrow {
		top: 165px;
		right: -30px;
		width: 45px;
		height: 18px;
	}

	.roulette-point {
		width: 115px;
		height: 115px;
	}

	.roulette-lucky {
		width: 135px;
		height: 135px;
	}

	.button-spin {
		padding: 20px 55px;
		font-size: 26px;
		margin-top: 95px;
	}

	.ticket-form {
		margin: 95px 0 -55px 0;
	}

	.ticket-input,
	.username-input {
		max-width: 380px;
		padding: 18px 28px;
		font-size: 19px;
	}

	.popup-card {
		width: 380px;
		padding: 32px 26px 37px;
	}

	.popup-icon {
		width: 105px;
		height: 105px;
	}

	.popup-icon img {
		width: 70px;
		height: 70px;
	}

	.popup-card h3 {
		font-size: 21px;
	}

	.popup-title {
		font-size: 34px;
	}

	.popup-card p {
		font-size: 17px;
	}

	.popup-card button {
		padding: 13px 32px;
		font-size: 18px;
	}
}

/* Roulette Circle Container */
.circle-container {
	position: relative;
	width: 280px;
	height: 280px;
	margin: 0 auto 20px;
}

/* Simplified background rings */
.circle-bg1 {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 265px;
	height: 265px;
	border-radius: 50%;
	z-index: 2;
	pointer-events: none;
	border: 2px solid #e9c844;
}

.circle-bg3 {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 305px;
	height: 305px;
	border-radius: 50%;
	z-index: 4;
	pointer-events: none;
	border: 2px solid #e9c844;
}

/* Roulette Circle */
.roulette-circle-bg {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 300px;
	height: 300px;
	border-radius: 50%;
	overflow: visible;
	z-index: 5;
}

#roulette-circle {
	width: 100%;
	height: 100%;
	position: relative;
	transition: transform 1s ease-out;
}

.circle {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 460px;
	height: 460px;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

/* CSS tambahan untuk animasi spin */
.spin-active {
	transition: transform 5s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Labels */
.lb-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.lb {
	position: absolute;
	top: 10px;
	left: 50%;
	transform-origin: 0px 110px;
	text-align: center;
	width: 60px;
}

.space {
	height: 20px;
}

.value {
	position: absolute; /* Posisi mengikuti parent circle */
	top: 50%; /* Tengah vertikal circle */
	left: 50%; /* Tengah horizontal circle */
	transform: translate(-50%, -50%); /* Pusatkan teks di titik tengah */
	font-size: 12px; /* Bisa disesuaikan */
	font-weight: bold;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
	pointer-events: none; /* Agar klik tidak terganggu */
	white-space: nowrap; /* Biar teks tidak pecah */
	width: max-content; /* Sesuaikan ukuran teks */
	text-align: center;
}

/* Desktop */
.roulette-white {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 300px; /* sama seperti roulette-light */
	height: 300px; /* sama seperti roulette-light */
	pointer-events: none;
	z-index: 15;
	animation: blink 1s infinite alternate; /* sama seperti roulette-light */
}

/* Roulette Lights */
.roulette-light {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 300px;
	height: 300px;
	pointer-events: none;
	z-index: 15;
	animation: blink 2s infinite alternate, spin 10s linear infinite; /* lebih slow */
}

.roulette-light-white {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 400px;
	height: 400px;
	pointer-events: none;
	z-index: 20;
	animation: blink 1s infinite alternate;
}

.roulette-light-blue {
	filter: hue-rotate(180deg);
}
.roulette-light-red {
	filter: hue-rotate(0deg);
}

@keyframes blink {
	0% {
		opacity: 0.5;
	}
	50% {
		opacity: 1;
	}
	100% {
		opacity: 0.5;
	}
}

@keyframes spin {
	0% {
		transform: translate(-50%, -50%) rotate(0deg);
	}
	100% {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

.roulette-pink {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 285px; /* sama dengan circle-bg3 */
	height: 285px;
	transform: translate(-50%, -50%) rotate(10deg); /* tetap miring */
	z-index: 16; /* pastikan di atas circle-bg3 & roulette-out */
	animation: glowPulse 1.8s ease-in-out infinite;
	opacity: 0.85;
	pointer-events: none;
}

/* Animasi terang-redup tanpa zoom */
@keyframes glowPulse {
	0% {
		opacity: 0.6;
		filter: brightness(0.8);
	}
	50% {
		opacity: 1;
		filter: brightness(1.2);
	}
	100% {
		opacity: 0.6;
		filter: brightness(0.8);
	}
}

/* pastiin layer lainnya di bawahnya */
.circle-bg3 {
	position: absolute;
	z-index: 5;
}

.roulette-out {
	position: absolute;
	z-index: 10;
}

/* Arrow and Pointer */
.roulette-arrow {
	position: absolute;
	top: 132px;
	right: -25px;
	width: 38px;
	height: 15px;
	z-index: 10;
	transform-origin: center;
	filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.roulette-point {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100px;
	height: 100px;
	border-radius: 50%;
	z-index: 10;
}

.roulette-lucky {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 120px;
	height: 120px;
	z-index: 15;
}

/* Animasi Lucky Spin ikut berputar */
.roulette-lucky.spin-active {
	animation: spinLucky 5s ease-out forwards;
}

/* Keyframes animasi putaran */
@keyframes spinLucky {
	0% {
		transform: translate(-50%, -50%) rotate(0deg);
	}
	100% {
		transform: translate(-50%, -50%) rotate(1440deg);
	}
}

/* ===== Start Button Spin Wheel ===== */
.button-spin {
	position: relative;
	background: linear-gradient(45deg, #ff8800, #ff2d55);
	color: #fff;
	border: none;
	padding: 15px 40px;
	font-size: 20px;
	font-weight: 700;
	border-radius: 50px;
	cursor: pointer;
	margin-top: 80px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	overflow: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 0 20px rgba(255, 87, 34, 0.6), 0 0 40px rgba(255, 87, 34, 0.3);
}

/* ✨ Efek neon luar */
.button-spin::before {
	content: "";
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	border-radius: 50px;
	/* Gradient baru: gold ke jingga */
	background: linear-gradient(45deg, #ffd700, #ff8c00);
	background-size: 300% 300%;
	z-index: -1;
	filter: blur(8px);
	animation: glowmove 3s linear infinite;
	opacity: 0.8;
}

/* 💥 Efek hover lebih intens */
.button-spin:hover {
	transform: translateY(-3px) scale(1.05);
	box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 140, 0, 0.4);
}

/* ✊ Efek klik */
.button-spin:active {
	transform: translateY(0) scale(1);
}

/* ✨ Animasi glow warna jalan */
@keyframes glowmove {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

/* 🌀 Disabled state saat spin aktif */
.button-spin.dinjixuanzhuna {
	pointer-events: none;
	opacity: 0.6;
	filter: grayscale(0.5);
}
/* ===== End Button Spin Wheel ===== */

/* ===== Start Modal Casino Style ===== */
/* Kosong */
/* ===== End Modal Casino Style ===== */

/* ===== START Popup Hadiah ===== */
.popup-hadiah {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.8);
	z-index: 9999;
	justify-content: center;
	align-items: center;
	font-family: "Poppins", sans-serif;
	padding: 10px;
	backdrop-filter: blur(5px);
}

/* === CARD === */
.popup-card {
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
	border: 3px solid #ffd700;
	border-radius: 20px;
	text-align: center;
	padding: 30px 25px 35px;
	width: 350px;
	max-width: 90%;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 50px rgba(255, 215, 0, 0.3);
	animation: popupBounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
	color: #fff;
	position: relative;
	overflow: hidden;
}

.popup-card::before {
	content: "";
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: conic-gradient(
		from 0deg,
		transparent,
		rgba(255, 215, 0, 0.1),
		transparent
	);
	animation: rotate 4s linear infinite;
	pointer-events: none;
}

.popup-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(
		circle at center,
		transparent 40%,
		rgba(255, 215, 0, 0.05) 100%
	);
	border-radius: 20px;
	pointer-events: none;
}

/* === ICON === */
.popup-icon {
	background: linear-gradient(135deg, #ffd700, #ff8c00);
	width: 100px;
	height: 100px;
	border-radius: 50%;
	margin: 0 auto 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
	animation: iconPulse 2s ease-in-out infinite;
}
.popup-icon img {
	width: 60px;
	height: 60px;
	filter: brightness(0) invert(1);
}

/* === TEXT === */
.popup-card h3 {
	margin: 15px 0 10px;
	font-size: 20px;
	letter-spacing: 2px;
	color: #ffd700;
	font-weight: 700;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.popup-title {
	font-size: 32px;
	color: #ff6a00;
	font-weight: 900;
	margin: 10px 0;
	text-shadow: 0 3px 6px rgba(255, 106, 0, 0.5);
	animation: textGlow 1.5s ease-in-out infinite alternate;
}
.popup-card p {
	font-size: 15px;
	color: #e0e0e0;
	margin-bottom: 25px;
	line-height: 1.4;
}

/* === BUTTON === */
.popup-card button {
	background: linear-gradient(135deg, #00c4ff, #0099cc);
	color: #fff;
	border: none;
	border-radius: 30px;
	padding: 12px 30px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
	max-width: 240px;
	text-transform: uppercase;
	letter-spacing: 1px;
	box-shadow: 0 4px 15px rgba(0, 196, 255, 0.3);
	position: relative;
	overflow: hidden;
}
.popup-card button::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.2),
		transparent
	);
	transition: left 0.5s;
}
.popup-card button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 196, 255, 0.5);
}
.popup-card button:hover::before {
	left: 100%;
}
.popup-card button:active {
	transform: translateY(0);
}

/* === ANIMATIONS === */
@keyframes popupBounceIn {
	0% {
		transform: scale(0.3);
		opacity: 0;
	}
	50% {
		transform: scale(1.05);
		opacity: 0.9;
	}
	70% {
		transform: scale(0.9);
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

@keyframes rotate {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

@keyframes iconPulse {
	0%,
	100% {
		transform: scale(1);
		box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
	}
	50% {
		transform: scale(1.1);
		box-shadow: 0 12px 30px rgba(255, 215, 0, 0.6);
	}
}

@keyframes textGlow {
	from {
		text-shadow: 0 3px 6px rgba(255, 106, 0, 0.5);
	}
	to {
		text-shadow: 0 3px 6px rgba(255, 106, 0, 0.5),
			0 0 20px rgba(255, 106, 0, 0.8);
	}
}

/* Confetti effect */
.confetti {
	position: absolute;
	width: 10px;
	height: 10px;
	background: #ffd700;
	animation: fall 3s linear infinite;
}

.confetti:nth-child(odd) {
	background: #ff6a00;
}

.confetti:nth-child(3n) {
	background: #00c4ff;
}

@keyframes fall {
	to {
		transform: translateY(100vh) rotate(720deg);
		opacity: 0;
	}
}

/* === RESPONSIVE STYLE === */
/* Mobile */
@media (max-width: 480px) {
	.popup-card {
		width: 90%;
		padding: 25px 20px 30px;
		border-radius: 16px;
	}

	.popup-icon {
		width: 80px;
		height: 80px;
		margin-bottom: 15px;
	}

	.popup-icon img {
		width: 50px;
		height: 50px;
	}

	.popup-card h3 {
		font-size: 18px;
		margin: 12px 0 8px;
	}

	.popup-title {
		font-size: 26px;
		margin: 8px 0;
	}

	.popup-card p {
		font-size: 14px;
		margin-bottom: 20px;
	}

	.popup-card button {
		padding: 10px 25px;
		font-size: 15px;
		max-width: 200px;
	}
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {
	.popup-card {
		width: 380px;
		padding: 35px 30px 40px;
	}

	.popup-icon {
		width: 110px;
		height: 110px;
		margin-bottom: 20px;
	}

	.popup-icon img {
		width: 65px;
		height: 65px;
	}

	.popup-card h3 {
		font-size: 22px;
	}

	.popup-title {
		font-size: 36px;
	}

	.popup-card p {
		font-size: 16px;
		margin-bottom: 25px;
	}

	.popup-card button {
		padding: 14px 35px;
		font-size: 17px;
		max-width: 260px;
	}
}

/* Desktop */
@media (min-width: 769px) {
	.popup-card {
		width: 400px;
		padding: 40px 35px 45px;
	}

	.popup-icon {
		width: 120px;
		height: 120px;
		margin-bottom: 25px;
	}

	.popup-icon img {
		width: 70px;
		height: 70px;
	}

	.popup-card h3 {
		font-size: 24px;
	}

	.popup-title {
		font-size: 40px;
	}

	.popup-card p {
		font-size: 17px;
		margin-bottom: 30px;
	}

	.popup-card button {
		padding: 15px 40px;
		font-size: 18px;
		max-width: 280px;
	}
}
/* ===== End Popup Hadiah ===== */

/* ===== Start Ticket Form ===== */
.ticket-form {
	margin: 80px 0 -40px 0;
	text-align: center;
}

.ticket-input,
.username-input {
	width: 100%;
	max-width: 300px;
	padding: 12px 20px;
	font-size: 16px;
	border: 2px solid #e9c844;
	border-radius: 15px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	outline: none;
	text-align: center;
	transition: all 0.3s ease;
	box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
	pointer-events: auto !important;
}

.username-input {
	margin-bottom: 10px;
}

.ticket-input::placeholder {
	color: #ccc;
	opacity: 0.8;
}

.ticket-input:focus {
	border-color: #ffd700;
	box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
	background: rgba(0, 0, 0, 0.9);
}

.error-msg {
	color: #ff0000;
	font-size: 14px;
	font-weight: bold;
	margin-top: 10px;
	display: none;
	text-shadow: 0 0 5px rgba(255, 0, 0, 0.8);
	animation: shake 0.5s ease-in-out;
}

@keyframes shake {
	0%,
	100% {
		transform: translateX(0);
	}
	25% {
		transform: translateX(-5px);
	}
	75% {
		transform: translateX(5px);
	}
}

/* Responsive for ticket form */
@media (max-width: 480px) {
	.ticket-input {
		max-width: 250px;
		padding: 10px 15px;
		font-size: 14px;
	}

	.error-msg {
		font-size: 12px;
	}
}
/* ===== End Ticket Form ===== */

/* ===== Start Prize Admin Form ===== */
.prize-admin-form .form-control {
	margin-bottom: 5px;
}

.prize-admin-form .btn {
	margin-top: 24px;
}

.prize-admin-form small {
	font-size: 11px;
	display: block;
	margin-top: 2px;
}

/* Responsive for prize admin form */
@media (max-width: 768px) {
	.prize-admin-form .row > div {
		margin-bottom: 10px;
	}

	.prize-admin-form .btn {
		margin-top: 0;
		width: 100%;
	}
}

@media (max-width: 480px) {
	.prize-admin-form .row > div {
		margin-bottom: 8px;
	}

	.prize-admin-form input[type="file"] {
		font-size: 14px;
	}
}
/* ===== End Prize Admin Form ===== */

/* ===== FINAL UI + ANIMATION START SCREEN ===== */
.welcome-blur {
	filter: blur(6px) brightness(0.75);
	pointer-events: none;
	transition: filter 0.35s ease;
}

.game-form-hidden {
	display: none !important;
}

.start-overlay {
	position: fixed;
	inset: 0;
	z-index: 9998;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.25);
	backdrop-filter: blur(7px);
}

.start-box {
	width: min(92vw, 560px);
	padding: 28px 28px 30px;
	border-radius: 22px;
	background: linear-gradient(135deg, rgba(20, 20, 25, 0.88), rgba(18, 20, 35, 0.88));
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255,255,255,0.12);
	text-align: center;
	color: #fff;
	animation: startBoxIn 0.45s ease both;
}

.start-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 18px;
	margin-bottom: 18px;
	border-radius: 999px;
	background: linear-gradient(135deg, #fff5b6, #ffd229);
	color: #623b00;
	font-weight: 800;
	font-size: 12px;
}

.start-box h2 {
	margin: 0 0 16px;
	font-size: 22px;
	line-height: 1.2;
	font-weight: 900;
	color: #ffdb42;
	text-shadow: 0 2px 12px rgba(255, 172, 0, 0.25);
}

.start-box p {
	margin: 0 auto 22px;
	max-width: 450px;
	font-size: 15px;
	line-height: 1.6;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.86);
}

.start-actions {
	display: flex;
	gap: 18px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.btn-start-game,
.btn-show-prizes,
.btn-livechat {
	min-width: 150px;
	border: 0;
	border-radius: 14px;
	padding: 13px 22px;
	font-weight: 900;
	font-size: 15px;
	cursor: pointer;
	text-decoration: none !important;
	transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.btn-start-game {
	background: linear-gradient(135deg, #22d16f, #10b85e);
	color: #fff;
	box-shadow: 0 10px 24px rgba(20, 190, 100, .25);
}

.btn-show-prizes {
	background: linear-gradient(135deg, #fff2a5, #ffca21);
	color: #583900;
	box-shadow: 0 10px 24px rgba(255, 205, 33, .22);
}

.btn-livechat {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 0;
	background: linear-gradient(135deg, #23d56d, #12b85d);
	color: #fff !important;
	box-shadow: 0 10px 24px rgba(20, 190, 100, .25);
}

.btn-start-game:hover,
.btn-show-prizes:hover,
.btn-livechat:hover {
	transform: translateY(-2px) scale(1.02);
	filter: brightness(1.08);
}

.prize-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 10000;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: rgba(0, 0, 0, 0.72);
	backdrop-filter: blur(8px);
}

.prize-box {
	position: relative;
	width: min(92vw, 430px);
	max-height: 78vh;
	overflow: auto;
	padding: 24px;
	border-radius: 20px;
	background: linear-gradient(135deg, #141720, #16243f);
	border: 2px solid #ffd700;
	box-shadow: 0 20px 60px rgba(0,0,0,.55), 0 0 40px rgba(255, 215, 0, .25);
	color: #fff;
}

.prize-box h3 {
	margin: 0 0 16px;
	color: #ffd700;
	font-weight: 900;
	text-align: center;
}

.close-prize {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,.12);
	color: #fff;
	font-size: 24px;
	line-height: 30px;
	cursor: pointer;
}

.prize-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.prize-item {
	padding: 11px 12px;
	border-radius: 12px;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.08);
	font-weight: 800;
	font-size: 13px;
	text-align: center;
}

/* Slow idle rotation handled by JS using transform so it does not conflict with spin result. */
.idle-glow-left {
	animation: idleRingLeft 18s linear infinite;
}

@keyframes idleRingLeft {
	from { transform: translate(-50%, -50%) rotate(0deg); }
	to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes startBoxIn {
	from { opacity: 0; transform: translateY(12px) scale(.97); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
	.start-box { padding: 24px 18px 26px; border-radius: 18px; }
	.start-box h2 { font-size: 18px; }
	.start-box p { font-size: 13px; }
	.start-actions { gap: 10px; }
	.btn-start-game, .btn-show-prizes, .btn-livechat { min-width: 132px; padding: 12px 16px; font-size: 14px; }
	.prize-list { grid-template-columns: 1fr; }
}

/* ===== FINAL FORM TIKET MODEL WELCOME BOX - POSISI TETAP ===== */
.ticket-form {
	margin: 80px auto -40px auto !important;
	width: 100%;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	pointer-events: auto !important;
}

.ticket-start-card {
	width: min(92vw, 430px);
	padding: 22px 24px 26px;
	border-radius: 22px;
	background: linear-gradient(135deg, rgba(20, 20, 25, 0.88), rgba(18, 20, 35, 0.88));
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 22px 58px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255,255,255,0.12), 0 0 36px rgba(255, 206, 29, 0.13);
	text-align: center;
	color: #fff;
	animation: startBoxIn 0.35s ease both;
	backdrop-filter: blur(8px);
}

.ticket-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 18px;
	margin-bottom: 14px;
	border-radius: 999px;
	background: linear-gradient(135deg, #fff5b6, #ffd229);
	color: #623b00;
	font-weight: 900;
	font-size: 12px;
	box-shadow: 0 8px 22px rgba(255, 202, 33, 0.22);
}

.ticket-start-card h2 {
	margin: 0 0 10px;
	font-size: 20px;
	line-height: 1.2;
	font-weight: 900;
	letter-spacing: .4px;
	color: #ffdb42;
	text-shadow: 0 2px 12px rgba(255, 172, 0, 0.25);
}

.ticket-start-card p:not(.error-msg) {
	margin: 0 auto 18px;
	max-width: 340px;
	font-size: 13px;
	line-height: 1.5;
	font-weight: 700;
	color: rgba(255,255,255,0.82);
}

.ticket-start-card .username-input,
.ticket-start-card .ticket-input {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	min-height: 54px;
	margin: 0 auto 12px !important;
	padding: 14px 18px !important;
	font-size: 16px !important;
	font-weight: 700;
	border: 2px solid rgba(255, 215, 0, 0.92) !important;
	border-radius: 16px !important;
	background: rgba(0, 0, 0, 0.62) !important;
	color: #fff !important;
	outline: none;
	text-align: center;
	box-shadow: 0 0 12px rgba(255, 215, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.08);
	transition: all 0.25s ease;
}

.ticket-start-card .username-input::placeholder,
.ticket-start-card .ticket-input::placeholder {
	color: rgba(255,255,255,0.68);
	font-weight: 600;
}

.ticket-start-card .username-input:focus,
.ticket-start-card .ticket-input:focus {
	border-color: #fff1a3 !important;
	background: rgba(0, 0, 0, 0.78) !important;
	box-shadow: 0 0 24px rgba(255, 215, 0, 0.52), inset 0 1px 0 rgba(255,255,255,0.10);
}

.ticket-start-card .error-msg {
	margin: 6px 0 12px;
	font-size: 13px;
	color: #ff5a5a;
	text-shadow: 0 0 10px rgba(255, 0, 0, 0.35);
}

.ticket-start-card .button-spin {
	position: static !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: min(100%, 230px) !important;
	height: 58px !important;
	margin: 8px auto 0 !important;
	padding: 0 28px !important;
	border: 0 !important;
	border-radius: 18px !important;
	background: linear-gradient(135deg, #ff7a12, #ff3f4d) !important;
	color: #fff !important;
	font-size: 20px !important;
	font-weight: 900 !important;
	letter-spacing: 2px;
	text-transform: uppercase;
	box-shadow: 0 16px 34px rgba(255, 77, 40, 0.34), 0 0 30px rgba(255, 109, 30, 0.18) !important;
	cursor: pointer;
}

.ticket-start-card .button-spin:hover:not(:disabled) {
	transform: translateY(-2px) scale(1.02);
	filter: brightness(1.08);
}

.ticket-start-card .button-spin:disabled {
	opacity: .62;
	cursor: not-allowed;
	filter: grayscale(.15);
}

@media (max-width: 480px) {
	.ticket-form {
		margin: 58px auto -30px auto !important;
	}
	.ticket-start-card {
		width: min(90vw, 360px);
		padding: 18px 18px 22px;
		border-radius: 18px;
	}
	.ticket-start-card h2 {
		font-size: 17px;
	}
	.ticket-start-card p:not(.error-msg) {
		font-size: 12px;
		margin-bottom: 14px;
	}
	.ticket-start-card .username-input,
	.ticket-start-card .ticket-input {
		min-height: 48px;
		font-size: 14px !important;
	}
	.ticket-start-card .button-spin {
		height: 52px !important;
		font-size: 18px !important;
	}
}


/* =========================================================
   FINAL PATCH: BACKGROUND FIT + SINGLE WELCOME FLOW
   - Tidak mengubah tampilan/ukuran roda wheel.
   - Background belakang full cover di desktop & mobile.
   - Welcome overlay hanya satu kali; setelah Mulai langsung ke form tiket.
   ========================================================= */
html,
body {
    width: 100% !important;
    min-width: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #000 !important;
    overflow-x: hidden !important;
}

body {
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: inherit;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #000;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(0,0,0,0.02), rgba(0,0,0,0.18));
}

#mainContent {
    position: relative;
    z-index: 1;
}

.start-overlay {
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
}

.start-overlay.is-closing,
.start-overlay.started-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (max-width: 768px) {
    body {
        min-height: 100dvh !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body::before {
        background-size: cover !important;
        background-position: center center !important;
    }

    .start-overlay {
        padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)) !important;
    }

    .start-box {
        width: min(92vw, 430px) !important;
        max-width: 92vw !important;
        transform-origin: center !important;
    }
}

@media (max-width: 420px) {
    .start-box {
        width: min(90vw, 360px) !important;
        padding: 22px 16px 24px !important;
    }

    .start-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px !important;
    }

    .btn-start-game,
    .btn-show-prizes {
        min-width: 0 !important;
        width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        white-space: nowrap;
    }

    .btn-livechat {
        min-width: 0 !important;
        width: min(100%, 170px) !important;
    }
}

/* ===== SWEETALERT LUCKY WHEEL THEME ===== */
.lw-swal-popup,
.swal2-popup.lw-swal-popup {
    border-radius: 22px !important;
    border: 2px solid rgba(255, 215, 0, 0.85) !important;
    box-shadow: 0 22px 70px rgba(0,0,0,.65), 0 0 32px rgba(255,215,0,.18) !important;
}
.lw-swal-title,
.swal2-title.lw-swal-title {
    color: #ffdb42 !important;
    font-weight: 900 !important;
    text-shadow: 0 2px 12px rgba(255, 172, 0, 0.25) !important;
}
.lw-swal-confirm,
.swal2-confirm.lw-swal-confirm {
    border-radius: 999px !important;
    padding: 12px 28px !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, #00c7ee, #009ad0) !important;
    box-shadow: 0 12px 26px rgba(0, 184, 230, .28) !important;
}
