.peg,
.wheelSVG {
	visibility: hidden;
}

body,
html {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	font-family: Montserrat, sans-serif;
}

.centerCircle,
.valueContainer,
.wheelOutline,
.wheelText {
	pointer-events: none;
}

body,
html {
	text-align: center;
}

button {
	position: relative;
	background-color: #e81d62;
}

.spinBtn {
	background: #f9cc80;
    color: #b23237;
	box-shadow: none;
}

body {
    background: #ee2c3c;
	/*background-image: radial-gradient(circle,  #ee2c3c, #7d171f);*/
    /*background-image: url('/media/PW25_wedgame_pattern_1x1.jpg');*/
    /*background-size: 300px 300px;*/
	/*background-size: cover;*/
	background-position: center;
	background-repeat: repeat;

	background-attachment: fixed;
	overflow-x: hidden;
	overflow-y: visible;
	min-height: 100vh;
	position: relative;
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: 
		radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
		radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
		radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px),
		radial-gradient(circle at 90% 70%, rgba(255, 215, 0, 0.2) 2px, transparent 2px);
	background-size: 200px 200px, 150px 150px, 180px 180px, 220px 220px;
	animation: sparkleMove 20s linear infinite;
	pointer-events: none;
	z-index: -1;
}

@keyframes sparkleMove {
	0% {
		transform: translateY(0px);
	}
	100% {
		transform: translateY(-400px);
	}
}

/* Mobile-specific background optimization */
@media only screen and (max-width: 768px) {
	body {
		background-attachment: scroll; /* Fixed attachment can cause issues on mobile */
	}
	
	body::before {
		background-attachment: scroll;
		animation-duration: 15s; /* Faster animation on mobile for better performance */
	}
}

body,
html {
	margin: 0;
	padding: 0;
}

#container {
	width: 100vw;
	padding: 20px;
	box-sizing: border-box;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 40px;
}

.wheelContainer {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	margin: 0;
	width: 100%;
	max-width: 600px;
}

.wheelSVG {
	position: relative;
	overflow: visible;
	height: min(85vh, 600px);
	width: 100%;
	max-width: 600px;
	touchable: auto;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.wheelText {
	text-anchor: start;
	font-family: Montserrat, sans-serif;
	-webkit-user-select: none;
	user-select: none;
}

.wheelText tspan {
	text-anchor: middle;
	letter-spacing: 2px;
}

.toast {
	border-radius: 12px;
	opacity: 0;
	background-color: #fdba51;
	position: absolute;
	overflow: hidden;
	color: #fff;
	font-family: Montserrat, sans-serif;
	max-width: min(90vw, 400px);
	bottom: 10%;
	left: 50%;
	transform: translateX(-50%);
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.toast p {
	clear: both;
	font-family: Montserrat, Arial, sand-serif;
	margin: 23px;
	color: #ee2c3c;
	letter-spacing: 0;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	line-height: 32px;
	-webkit-transition: line-height 0.2s ease;
	transition: line-height 0.2s ease;
}

.toast p,
.toast span {
	font-size: 2.3rem !important;
	line-height: 2.8rem !important;
}

button {
	position: relative;
	width: min(60vw, 350px);
	max-width: 350px;
	padding: 20px 25px;
	font-weight: 800;
	font-size: clamp(1.2rem, 3.5vw, 1.8rem);
	color: #ffffff;
	border-radius: 15px;
	border: none;
	background: #ff6b35;
	box-shadow: 0 8px 0 #d71559;
	cursor: pointer;
	font-family: Montserrat, sans-serif;
	transition: all 0.3s ease;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	text-transform: uppercase;
	letter-spacing: 2px;
}


.spinText {
	margin: 20px 0;
	font-size: clamp(1.5rem, 4vw, 2.8rem);
	color: white;
	font-weight: 900;
	text-align: center;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
	padding: 0 20px;
	text-transform: uppercase;
	letter-spacing: 3px;
}


@media only screen and (max-width: 480px) {
	.wheelSVG {
		height: min(90vw, 450px);
		max-width: 450px;
	}

	button {
		font-size: 1rem;
		padding: 12px 16px;
		width: min(70vw, 250px);
		margin: 10px 0;
	}
	
	.toast {
		padding: 10px;
		bottom: -20%;
		max-width: 85vw;
		left: 50%;
		transform: translateX(-50%);
	}
	
	.toast p,
	.toast span {
		font-size: 0.9rem !important;
		line-height: 1.3rem !important;
		margin: 15px !important;
	}

	.spinText {
		font-size: 1.2rem !important;
		margin: 15px 0 !important;
	}
	
	#container {
		padding: 10px;
		justify-content: flex-start;
		min-height: 100vh;
	}
}

@media only screen and (min-width: 481px) and (max-width: 800px) {
	.wheelSVG {
		height: min(80vw, 500px);
		max-width: 500px;
	}
	
	.toast {
		padding: 15px;
		max-width: 80vw;
	}
	
	.toast p,
	.toast span {
		font-size: 1.2rem !important;
		line-height: 1.6rem !important;
		margin: 18px !important;
	}

	.spinText {
		font-size: 1.6rem !important;
	}
	
	button {
		width: min(50vw, 280px);
		padding: 14px 18px;
	}
}

@media only screen and (max-height: 480px) {
	.wheelSVG {
		height: min(50vh, 200px);
	}
	
	.toast {
		bottom: 2%;
	}
	
	.toast p,
	.toast span {
		font-size: 0.8rem !important;
		line-height: 1.1rem !important;
		margin: 10px !important;
	}

	button {
		font-size: 0.9rem;
		padding: 8px 12px;
		width: min(60vw, 200px);
	}
	
	.spinText {
		font-size: 1rem !important;
		margin: 10px 0 !important;
	}
	
	#container {
		padding: 5px;
		justify-content: space-around;
	}
}

button:focus {
	outline: 0;
}

/*button:hover {*/
/*	transform: translateY(-2px);*/
/*	box-shadow: 0 10px 0 #d71559;*/
/*}*/

/*button:active {*/
/*	transform: translateY(2px);*/
/*	box-shadow: 0 6px 0 #d71559;*/
/*}*/

/* Improve touch targets and gestures */
.wheelSVG * {
	touch-action: none;
}

/* Add viewport meta tag support */
@viewport {
	width: device-width;
	initial-scale: 1;
}

a:link {
	color: #f1dc16;
}
a:visited {
	color: #f1dc16;
}
a:hover {
	color: #f1dc16;
}
a:active {
	color: #f1dc16;
}
