@font-face {
	font-family: "Benzin";
	src: url("fonts/benzin.woff2") format("woff2");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Benzin", "Montserrat", -apple-system, BlinkMacSystemFont,
		sans-serif;
	background-color: #3b505f;
	background-image: url(bg.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	color: #ffffff;
	min-height: 100vh;
	line-height: 1.6;
}

.container {
	max-width: 400px;
	margin: 0 auto;
	padding: 20px;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Шапка */
.header {
	text-align: center;
	margin-bottom: 30px;
}

.title {
	font-size: 32px;
	font-weight: bold;
	margin-bottom: 15px;
	background: linear-gradient(45deg, #ffffff, #cc33ff);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-shadow: 0 2px 10px rgba(204, 51, 255, 0.3);
}

.main-prize {
	background: rgba(204, 51, 255, 0.1);
	border: 2px solid #cc33ff;
	border-radius: 15px;
	padding: 15px;
	margin: 15px 0;
	backdrop-filter: blur(15px);
}

.prize-badge {
	font-size: 14px;
	color: #cc33ff;
	margin-bottom: 5px;
}

.prize-amount {
	font-size: 18px;
	font-weight: bold;
}

.subtitle {
	font-size: 16px;
	opacity: 0.9;
}

/* Форма */
.form-section {
	background: rgba(204, 51, 255, 0.1);
	border: 2px solid #cc33ff;
	border-radius: 20px;
	padding: 25px;
	backdrop-filter: blur(15px);
}

.user-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.form-group {
	display: flex;
	flex-direction: column;
}

.form-group label {
	margin-bottom: 8px;
	font-weight: bold;
	color: white;
}

.form-group input {
	padding: 15px;
	border: 2px solid #cc33ff;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.9);
	color: #3b505f;
	font-size: 16px;
	font-family: inherit;
	transition: all 0.3s ease;
}

.form-group input:focus {
	outline: none;
	border-color: #cc33ff;
	background: white;
	box-shadow: 0 0 0 3px rgba(204, 51, 255, 0.1);
}

.form-group input::placeholder {
	color: #d0d0d0;
}

.submit-btn {
	background: linear-gradient(45deg, #cc33ff, #833b8f);
	color: white;
	border: none;
	padding: 18px;
	border-radius: 12px;
	font-size: 18px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: "Benzin", sans-serif;
	margin-top: 10px;
}

.submit-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(204, 51, 255, 0.4);
}

.submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* Колесо */
.wheel-section {
	text-align: center;
	margin: 30px 0;
}

.wheel-container {
	position: relative;
	margin: 0 auto;
	width: 350px;
	height: 350px;
}

.wheel-image {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

#wheelImage {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.form-group input[type="tel"] {
	font-family: "Benzin", "Montserrat", monospace;
	letter-spacing: 0.5px;
}

/* Анимация колеса */
.wheel-image {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

#wheelImage {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	transition: transform 1s linear;
}

@keyframes wheelSpin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(calc(1440deg + var(--target-rotation, 0deg)));
	}
}

.pointer {
	position: absolute;
	top: 50%;
	right: -15px;
	transform: translateY(-50%) rotate(90deg);
	width: 0;
	height: 0;
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
	border-top: 30px solid #cc33ff;
	filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
	z-index: 10;
}

.spin-text {
	font-size: 20px;
	margin-top: 20px;
	color: #cc33ff;
	font-weight: bold;
}

/* Результат */
.result-section {
	background: rgba(204, 51, 255, 0.1);
	border-radius: 20px;
	padding: 30px;
	text-align: center;
	backdrop-filter: blur(15px);
	border: 2px solid #cc33ff;
}

.result-content h2 {
	font-size: 28px;
	margin-bottom: 20px;
	color: #fff;
}

.prize-text {
	font-size: 24px;
	font-weight: bold;
	margin: 25px 0;
	padding: 20px;
	background: rgba(204, 51, 255, 0.1);
	border: 2px solid #cc33ff;
	border-radius: 15px;
	color: #ffffff;
}

.congrats {
	font-size: 18px;
	opacity: 0.9;
	margin-bottom: 25px;
}

.result-actions {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.spin-again-btn,
.close-btn {
	padding: 15px 25px;
	border: none;
	border-radius: 12px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: "Benzin", sans-serif;
}

.spin-again-btn {
	background: linear-gradient(45deg, #7982a9, #5a6380);
	color: white;
}

.close-btn {
	background: rgba(255, 255, 255, 0.2);
	color: white;
	border: 2px solid rgba(255, 255, 255, 0.3);
}

.spin-again-btn:hover,
.close-btn:hover {
	transform: translateY(-2px);
}

/* Утилиты */
.hidden {
	display: none !important;
}

.loading {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #cc33ff;
	animation: spin 6s linear infinite;
}

/* Добавьте в конец файла */

/* Стили для таймера ожидания */
#spinTimer {
	background: rgba(255, 87, 87, 0.1);
	border: 2px solid #ff5757;
	border-radius: 12px;
	padding: 15px;
	text-align: center;
	margin-top: 15px;
	color: #ff5757;
	font-weight: bold;
	backdrop-filter: blur(10px);
}

#spinTimer span {
	font-family: "Benzin", monospace;
	letter-spacing: 1px;
}

/* Стили для disabled кнопки */
.submit-btn:disabled {
	background: linear-gradient(45deg, #7982a9, #5a6380);
	opacity: 0.7;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
}

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

/* Адаптивность */
@media (max-width: 480px) {
	.container {
		padding: 15px;
	}

	.title {
		font-size: 28px;
	}

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

@media (max-width: 380px) {
	.wheel-container {
		width: 280px;
		height: 280px;
	}
}

@media (max-width: 320px) {
	.wheel-container {
		width: 250px;
		height: 250px;
	}

	.prize-text {
		font-size: 20px;
		padding: 15px;
	}
}
