@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	height: 100%;
	overflow: hidden;
}

body {
	height: 100vh;
	width: 100%;
	min-height: 100%;
	background-image: url('images/background.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
}

.logo {
	width: 220px;
	position: absolute;
	top: 50px;
	right: 50px;
	z-index: 1010;
}

.title-block {
	width: fit-content;
	position: absolute;
	top: 45px;
	left: 50%;
	transform: translateX(-50%);
	font-family: 'Inter';
	line-height: 1;
	text-align: center;
	color: #FFFFFF;
	z-index: 10;
}

.title {
	font-size: 96px;
	font-weight: 700;
	color: #FF5353;
}

.devider {
	width: 100%;
	height: 1px;
	margin: 5px 0;
	background-color: #FFFFFF;
}

.description {
	font-size: 54px;
	font-weight: 600;
}

.red {
	color: #FF5353;
}

.table-container {
	width: 1300px;
	height: 444px;
	position: absolute;
	bottom: 1vh;
	left: 50%;
	transform: translateX(-50%);
}

.table-wrapper {
	width: 100%;
	height: 100%;
}

.table-img {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 1300px;
	z-index: 20;
}

.tigers-img {
	height: 103vh;
	position: absolute;
	bottom: -5vh;
	left: 13%;
	transform: translateX(-50%);
	z-index: -1;
}

.glasses-container {
	width: 900px;
	position: absolute;
	bottom: 55%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 30;
}

.glassses {
	position: relative;
	width: 900px;
	height: 350px;
}

.glass-container {
	width: 280px;
	position: absolute;
	left: 0;
	bottom: 0;
	--x: 0px;
	--lift: 0%;
	--rot: 0deg;
	transform: translateX(var(--x)) translateY(calc(-1 * var(--lift)))
		rotate(var(--rot));
	transition: transform 0.45s ease;
	cursor: pointer;
	z-index: 5;
}

.glass-container.lifted {
	--lift: 40%;
	--rot: 8deg;
}

.glass-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.start-btn {
	width: 333px;
	height: 87px;
	position: absolute;
	top: 330px;
	left: 50%;
	transform: translateX(-50%);
	background-color: #FF5353;
	color: #FFFFFF;
	border: 2px solid #FF5353;
	border-radius: 16px;
	font-family: 'Inter';
	font-size: 43px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.3s ease;
}

.start-btn:hover {
	background-color: #FFFFFF;
	color: #FF5353;
}

.start-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.coins-img {
	width: 210px;
	position: absolute;
	bottom: 8px;
	left: 0;
	opacity: 0;
	transform: translateX(0);
	transition: opacity 0.2s ease;
	z-index: 2;
	pointer-events: none;
}

.coins-img.visible {
	opacity: 1;
}

.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease;
	z-index: 999;
}

.modal-overlay.open {
	opacity: 1;
	visibility: visible;
}

.win-modal {
	width: 662px;
	height: 426px;
	padding: 60px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	border-radius: 16px;
	background: #FF5353;
	font-family: 'Inter';
	text-align: center;
}

.win-title {
	font-size: 80px;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
	color: #FFFFFF;
}

.modal-get-bonus-btn {
	width: 333px;
	height: 87px;
	border: none;
	border-radius: 16px;
	background:  #FFFFFF;
	font-family: 'Inter';
	font-size: 47px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	color: #FF5353;
	cursor: pointer;
}

.gift1,
.gift2,
.procent1,
.procent2 {
	transition: filter 0.55s ease;
	z-index: 1;
}

.gift1 {
	width: 15vh;
	position: absolute;
	top: -5vh;
	left: 0.5vh;
	transform: rotate(-185deg);
	filter: grayscale(1) blur(2px);
}

.gift2 {
	width: 28vh;
	position: absolute;
	bottom: 10vh;
	right: -9vh;
	filter: grayscale(1);
}

.procent1 {
	width: 42vh;
	position: absolute;
	bottom: -20vh;
	left: -15vh;
	transform: rotate(-55deg);
	filter: grayscale(1) blur(4px);
}

.procent2 {
	width: 18vh;
	position: absolute;
	top: -11vh;
	right: 33vh;
	transform: rotate(-210deg);
	filter: grayscale(1);
}

body.modal-open .gift1,
body.modal-open .gift2,
body.modal-open .procent1,
body.modal-open .procent2 {
	z-index: 1000;
}

body.bonus-revealed .gift1 {
	filter: blur(2px);
}

body.bonus-revealed .gift2 {
	filter: none;
}

body.bonus-revealed .procent1 {
	filter: blur(4px);
}

body.bonus-revealed .procent2 {
	filter: none;
}

@media (max-height: 1079px) {
	.table-wrapper {
		position: absolute;
		bottom: -10%;
		left: 50%;
		transform: translateX(-50%) scale(0.8);
	}
}

@media (max-height: 975px) {
	.title {
		font-size: 72px;
	}

	.description {
		font-size: 36px;
	}

	.start-btn {
		width: 250px;
		height: 65px;
		font-size: 32px;
		top: 250px;
		border-radius: 10px;
	}

	.logo {
		width: 180px;
	}
}

@media (max-height: 880px) {
	.table-wrapper {
		bottom: -17%;
		transform: translateX(-50%) scale(0.7);
	}
}

@media (max-width: 1040px) {
	.table-wrapper {
		position: absolute;
		bottom: -14%;
		left: 50%;
		transform: translateX(-50%) scale(0.65);
	}

	.table-container {
		bottom: 10vh;
	}

	.tigers-img {
		height: 60vh;
		bottom: 10vh;
		left: 50%;
		transform: translateX(-50%);
	}

	.start-btn {
		top: 91vh;
	}

	.title-block {
		top: 80px;
	}

	.title {
		font-size: 72px;
	}

	.description {
		font-size: 42px;
	}

	.logo {
		width: 180px;
		top: 20px;
		right: 50%;
		transform: translateX(50%);
	}

	.gift1 {
		width: 10vh;
		top: 0vh;
		left: 0vh;
	}

	.gift2 {
		width: 13vh;
		right: -6vh;
	}

	.procent1 {
		width: 15vh;
		left: -5.5vh;
		bottom: -6vh;
	}

	.procent2 {
		width: 12vh;
		top: 2vh;
		right: -6vh;
	}
}

@media (max-width: 850px) {
	.table-wrapper {
		transform: translateX(-50%) scale(0.6);
	}

	.title {
		font-size: 66px;
		white-space: nowrap;
	}

	.description {
		font-size: 38px;
	}

	.logo {
		width: 165px;
	}

	.win-modal {
		transform: scale(0.8);
	}
}

@media (max-width: 1220px) and (max-height: 850px) and (orientation: landscape) {
	.table-wrapper {
		transform: translateX(-50%) scale(0.6);
	}

	.tigers-img {
		left: 20%;
	}
}

@media (max-width: 780px) {

	.table-wrapper {
		transform: translateX(-50%) scale(0.5);
	}

	.logo {
		width: 125px;
	}

	.title-block {
		top: 60px;
	}
	
	.title {
		font-size: 52px;
	}

	.description {
		font-size: 29px;
	}

	.start-btn {
		top: 89vh;
		z-index: 100;
	}
}

@media (max-width: 1040px) and (max-height: 800px) and (orientation: landscape) {
	.table-container {
		bottom: 0;
	}

	.table-wrapper {
		bottom: -20%;
	}

	.tigers-img {
		height: 80vh;
		bottom: 0;
		left: 25%;
	}

	.logo {
		width: 160px;
		top: 30px;
		right: 30px;
		transform: translateX(0);
	}

	.title-block {
		top: 20px;
	}

	.start-btn {
		top: 28vh;
		transform: translateX(-50%) scale(0.9);
	}
}

@media (max-width: 440px) {
	.table-wrapper {
		transform: translateX(-50%) scale(0.4);
	}

	.table-container {
		bottom: 7vh;
	}

	.win-modal {
		white-space: nowrap;
		transform: scale(0.55);
	}

	.start-btn {
		transform: translateX(-50%) scale(0.8);
	}
}

@media (max-width: 400px) {
	.table-wrapper {
		transform: translateX(-50%) scale(0.37);
	}
}

@media (max-width: 376px) {
	.table-wrapper {
		bottom: -20%;
		transform: translateX(-50%) scale(0.35);
	}

	.logo {
		top: 15px;
		width: 100px;
	}

	.start-btn {
		top: 88vh;
	}

	.title-block {
		top: 45px;
	}
	
	.title {
		font-size: 44px;
	}

	.description {
		font-size: 25px;
	}
}

