.ice-fishing-game {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	min-height: 100vh;
	min-height: 100dvh;
	color: #fff;
	font-family: "Open Sans", Arial, sans-serif;
	font-weight: 800;
	font-size: min(4.5px + 5.5 * (100vw - 375px) / 1545, 10px);
	overflow: hidden;
}

.ast-container:has(.ice-fishing-game) {
	max-width: none;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
	margin-left: 0;
	margin-right: 0;
}

.entry-content[data-ast-blocks-layout]:has(> .ice-fishing-game) > .ice-fishing-game,
.entry-content[data-ast-blocks-layout] > .wp-block-acf-ice-fishing-game,
.entry-content[data-ast-blocks-layout] > *:has(> .ice-fishing-game) {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.ice-fishing-game__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: #abd6ff;
	background-image: url("./img/page-bg.webp");
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	pointer-events: none;
}

.ice-fishing-game *,
.ice-fishing-game *::before,
.ice-fishing-game *::after {
	box-sizing: border-box;
}

.ice-fishing-game__screen {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.ice-fishing-game__intro-slot {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 6rem;
}

.ice-fishing-game__intro-slot > .ice-fishing-game__loader-bar{
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	margin: 0;
}

.ice-fishing-game__intro-slot > .ice-fishing-game__button {
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	margin: 0;
}

.ice-fishing-game__loader-bar {
	width: min(21rem, 72vw);
	height: 1.75rem;
	padding: 0.25rem;
	border-radius: 999px;
	background: #33434e;
	transition: opacity 0.45s ease, visibility 0.45s ease;
}

.ice-fishing-game__loader-bar.is-hidden {
	opacity: 0;
	visibility: hidden;
}

[data-ice-start][hidden] {
	display: none !important;
}

.ice-fishing-game__loader-bar::before {
	content: "";
	position: absolute;
	inset: 0.25rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
}

.ice-fishing-game__loader-progress {
	position: relative;
	z-index: 1;
	display: block;
	width: 0;
	height: 100%;
	border-radius: 999px;
	background: #60bdff;
	transition: width 0.3s ease;
}

.ice-fishing-game__screen {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.ice-fishing-game__screen[hidden] {
	display: none;
}

.ice-fishing-game__screen--intro {
	align-items: center;
	justify-content: center;
	background-image: none;
}

.ice-fishing-game__intro-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	padding: 2rem;
}

.ice-fishing-game__logo {
	width: 60em;
	margin-top: -10em;
	animation: 3s rotateLogo ease-in-out infinite;
}

@keyframes rotateLogo {
	0%,
	60%,
	100% {
		transform: rotate(0deg);
	}

	20% {
		transform: rotate(2.15deg);
	}

	40% {
		transform: rotate(-2.15deg);
	}
}

.ice-fishing-game__button {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 4rem;
	min-width: 30px;
	padding: 0 1rem;
	background-color: transparent;
	background-repeat: repeat-x;
	background-size: contain;
	background-position: center;
	background-image: url("./img/button_middle.webp");
	outline: 0;
	border: 0;
	color: #fff;
	cursor: pointer;
	text-decoration: none;
	text-transform: uppercase;
	-webkit-tap-highlight-color: transparent;
	animation: iceFishingButtonPulse 2s ease-in-out infinite;
}

.ice-fishing-game__button::before,
.ice-fishing-game__button::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 7rem;
	background-size: contain;
	background-repeat: no-repeat;
}

.ice-fishing-game__button::before {
	left: calc(-5rem + 1px);
	background-position: right center;
	background-image: url("./img/button_left.webp");
}

.ice-fishing-game__button::after {
	right: calc(-4rem + 1px);
	background-position: left center;
	background-image: url("./img/button_left.webp");
	transform: scaleX(-1);
}

.ice-fishing-game__button span {
	position: relative;
	z-index: 3;
	padding: 0 0.1em;
	margin-left: -1.5em;
	margin-right: -1.5em;
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
}

.ice-fishing-game__screen--game {
	display: block;
}

.ice-fishing-game__bottom {
	position: absolute;
	z-index: 4;
	left: 0;
	right: 0;
	bottom: -1px;
	width: 100%;
	padding: 2em 0;
	background: linear-gradient(0deg, #0a303d -5.57%, rgba(25, 34, 44, 0.68) 35.48%, rgba(25, 34, 44, 0) 96.7%);
	display: grid;
	grid-template-columns: 45em auto 45em;
	grid-template-areas:
		"preview fishes graph"
		"stats   spin   graph";
	gap: 1em 6em;
	justify-content: center;
	align-items: center;
}

.ice-fishing-game__bottom .ice-fishing-game__preview {
	position: static;
	grid-area: preview;
	justify-self: center;
	left: auto;
	bottom: auto;
}

.ice-fishing-game__bottom .ice-fishing-game__cards {
	position: static;
	grid-area: fishes;
	justify-self: center;
	left: auto;
	bottom: auto;
	transform: none;
}

.ice-fishing-game__bottom .ice-fishing-game__meta {
	position: static;
	grid-area: stats;
	justify-self: center;
	left: auto;
	bottom: auto;
	transform: none;
	display: flex;
	gap: 0.75rem;
}

.ice-fishing-game__bottom .ice-fishing-game__stat {
	position: static;
	justify-self: auto;
}

.ice-fishing-game__bottom .ice-fishing-game__button--spin {
	position: static;
	grid-area: spin;
	justify-self: center;
	left: auto;
	bottom: auto;
	transform: none;
	animation: iceFishingButtonPulse 2s ease-in-out infinite;
}

.ice-fishing-game__wheel-area {
	position: absolute;
	top: 4rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	z-index: 2;
}

.ice-fishing-game__person {
	position: absolute;
	left: 4%;
	bottom: 0;
	width: auto;
	max-width: 35vw;
	z-index: 1;
}

.ice-fishing-game__person img {
	display: block;
	height: 100%;
	width: auto;
}

.ice-fishing-game__wheel-wrap {
	position: relative;
	width: min(70vh, 56vw, 54rem);
	aspect-ratio: 1;
	margin: 0;
}

.ice-fishing-game__wheel-arrow {
	position: absolute;
	top: -3.5rem;
	left: 50%;
	z-index: 3;
	width: 7rem;
	transform: translateX(-50%);
}

.ice-fishing-game__wheel-arrow-img {
	display: block;
	width: 100%;
	height: auto;
	transition: opacity 0.3s ease;
}

.ice-fishing-game__wheel-arrow-img--active {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
}

.ice-fishing-game__wheel-arrow.is-active .ice-fishing-game__wheel-arrow-img--default {
	opacity: 0;
}

.ice-fishing-game__wheel-arrow.is-active .ice-fishing-game__wheel-arrow-img--active {
	opacity: 1;
	filter: drop-shadow(0 0 0.6em #ff8c19) drop-shadow(0 0 1.2em rgba(255, 140, 25, 0.55));
}

.ice-fishing-game__wheel {
	position: relative;
	width: 100%;
	height: 100%;
	transform: rotate(0deg);
	transition: transform 4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ice-fishing-game__wheel.is-spinning {
	filter: drop-shadow(0 0 1rem rgba(255, 255, 255, 0.35));
}

.ice-fishing-game__wheel-layer {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ice-fishing-game__wheel-layer--ring,
.ice-fishing-game__wheel-layer--sectors {
	inset: 2%;
	width: 96%;
	height: 96%;
}

.ice-fishing-game__wheel-layer--button {
	inset: 41%;
	width: 18%;
	height: 18%;
	margin: auto;
}

.ice-fishing-game__preview {
	position: absolute;
	left: 8%;
	bottom: 7rem;
	z-index: 3;
	display: flex;
	justify-content: center;
}

.ice-fishing-game__preview-frame {
	position: relative;
	width: 19rem;
}

.ice-fishing-game__fish-moving {
	position: absolute;
	left: 1cqb;
	top: calc(50% - 5em);
	width: 15em;
	height: 10em;
	background-image: url("./img/gray-fish.webp");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	animation: fish1 4s linear infinite;
}

@keyframes fish1 {
	0% {
		transform: translateX(0) translateY(0);
	}

	25% {
		transform: translateX(8em) translateY(-1.2em);
	}

	40% {
		transform: translateX(11.8em) scaleX(1);
	}

	50% {
		transform: translateX(13em) scaleX(-1);
	}

	75% {
		transform: translateX(8em) translateY(1.2em) scaleX(-1);
	}

	90% {
		transform: translateX(3.2em) scaleX(-1);
	}

	100% {
		transform: translateX(0) scaleX(1);
	}
}

.ice-fishing-game__preview-frame span {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 2.25rem;
	text-shadow: 0 1px 0 #7a0000;
}

.ice-fishing-game__cards {
	position: absolute;
	left: 50%;
	bottom: 7.5rem;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	align-items: stretch;
	gap: 0.75rem;
	justify-content: center;
}

.ice-fishing-game__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	width: 7rem;
	min-height: 6rem;
	padding: 0.75rem 0.5rem 0;
	border: 3px solid rgba(255, 255, 255, 0.35);
	border-radius: 0.75rem;
	text-align: center;
}

.ice-fishing-game__card img {
	max-height: 7em;
	top: 3px;
	width: auto;
	position: absolute;
	right: 6px;
}

.ice-fishing-game__card h3 {
	margin: 0.25rem 0 0;
	font-size: 0.95rem;
	line-height: 1.05;
	text-transform: uppercase;
	word-spacing: 100vw;
}

.ice-fishing-game__card p {
	margin: 0;
	padding: 0.2rem 0.45rem 0;
	border-radius: 0.3rem 0.3rem 0 0;
	font-size: 0.7rem;
	text-transform: uppercase;
}

.ice-fishing-game__card--blue {
	background: linear-gradient(180deg, #3ea0ef 0%, #00569c 100%);
}

.ice-fishing-game__card--blue p {
	background: #008cff;
}

.ice-fishing-game__card--blue h3 {
	margin-top: auto;
	align-self: stretch;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	color: #fff;
	font-size: 1.9em;
	padding-bottom: 8px;
    text-align: start;
    line-height: 1.2;
	z-index: 1;
	text-shadow:
		0 -2px 1px #001483,
		-1px -1px 1px #001483,
		0 -1px 1px #001483,
		1px -1px 1px #001483,
		-2px 0 1px #001483,
		-1px 0 1px #001483,
		0 0 1px #001483,
		1px 0 1px #001483,
		2px 0 1px #001483,
		-1px 1px 1px #001483,
		0 1px 1px #001483,
		1px 1px 1px #001483,
		0 2px 1px #001483;
}

.ice-fishing-game__card--orange {
	background: linear-gradient(180deg, #eeb55f 0%, #ce7511 100%);
}

.ice-fishing-game__card--orange p {
	background: #ff8c19;
}

.ice-fishing-game__card--orange h3,
.ice-fishing-game__card--red h3 {
	margin-top: auto;
	align-self: stretch;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	color: #fff;
	font-size: 1.9em;
	padding-bottom: 8px;
	text-align: start;
	line-height: 1.2;
	z-index: 1;
	text-shadow:
		0 -2px 1px #900,
		-1px -1px 1px #900,
		0 -1px 1px #900,
		1px -1px 1px #900,
		-2px 0 1px #900,
		-1px 0 1px #900,
		0 0 1px #900,
		1px 0 1px #900,
		2px 0 1px #900,
		-1px 1px 1px #900,
		0 1px 1px #900,
		1px 1px 1px #900,
		0 2px 1px #900;
}

.ice-fishing-game__card--red {
	background: linear-gradient(180deg, #d0706b 0%, #993e33 100%);
}

.ice-fishing-game__card--red p {
	background: #c45e50;
}

.ice-fishing-game__card--all {
	position: relative;
	width: 8em;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	text-align: center;
	background-size: contain;
	background-position: 20% 40%;
	background-repeat: no-repeat;
	overflow: hidden;
	background-image: url("./img/fishes.webp");
}

.ice-fishing-game__card--all span,
.ice-fishing-game__card--all::before {
	position: absolute;
	left: 0;
	width: 100%;
}

.ice-fishing-game__card--all::before {
	content: "";
	display: block;
	top: 0;
	height: 100%;
	border-radius: 6px;
	border: 1px solid #a5b0d2;
	background: linear-gradient(180deg, rgba(95, 164, 225, 0.51) 6.25%, rgba(188, 112, 46, 0.51) 43.27%, rgba(141, 70, 58, 0.51) 100%);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

.ice-fishing-game__card--all span {
	z-index: 2;
	bottom: 1em;
	color: #fff;
	font-size: 1em;
	text-transform: uppercase;
	text-shadow:
		0 -1px 1px #001483,
		-1px 0 1px #001483,
		0 0 1px #001483,
		1px 0 1px #001483,
		0 1px 1px #001483;
}

.ice-fishing-game__tools {
	width: 7em;
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: 0.8em;
}

.ice-fishing-game__tool {
	position: relative;
	width: 6.3em;
	aspect-ratio: 1;
	border-radius: 4px;
}

.ice-fishing-game__tool::before {
	content: "";
	display: block;
	position: absolute;
	left: calc(50% - 1.3em);
	top: calc(50% - 1.9em);
	width: 2.6em;
	height: 3.8em;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.ice-fishing-game__tool--top {
	background: #dee4ea;
}

.ice-fishing-game__tool--top::before {
	background-image: url("./img/icon-1.webp");
}

.ice-fishing-game__tool-badge {
	position: absolute;
	right: 0.1em;
	bottom: 0.2em;
	width: 2.8em;
	height: 3.8em;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	background-image: url("./img/cell-4.webp");
}

.ice-fishing-game__tool-badge span {
	display: block;
	color: #fff;
	font-size: 1.1em;
	line-height: 1.2;
}

.ice-fishing-game__tool--bottom {
	background: #88aec3;
}

.ice-fishing-game__tool--bottom::before {
	background-image: url("./img/icon-2.webp");
}

.ice-fishing-game__graph {
	grid-area: graph;
	padding-top: 2em;
}

.ice-fishing-game__graph-grid {
	height: 16em;
	display: grid;
	grid-template-columns: repeat(8, 3.68em);
	gap: 0.5em;
}

.ice-fishing-game__graph-dot {
	position: relative;
	aspect-ratio: 1;
}

.ice-fishing-game__graph-dot::before {
	content: "";
	display: block;
	position: absolute;
	top: calc(50% - 0.8em);
	left: calc(50% - 0.8em);
	width: 1.3em;
	aspect-ratio: 1;
	border-radius: 100%;
	background-color: #fff;
}

.ice-fishing-game__graph-dot--blue::before {
	background-color: #6baac5;
}

.ice-fishing-game__graph-dot--blue-fish::before,
.ice-fishing-game__graph-dot--orange-fish::before {
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	background-image: url("./img/blue-fish-icon.webp");
}

.ice-fishing-game__graph-dot--orange-fish::before {
	background-image: url("./img/orange-fish-icon.webp");
}

.ice-fishing-game__meta {
	position: absolute;
	left: 4%;
	bottom: 2rem;
	z-index: 3;
	display: flex;
	gap: 0.75rem;
}

.ice-fishing-game__stat {
	min-width: 12rem;
	padding: 0.3rem 1rem 0rem;
	border: 2px solid #31454b;
	border-radius: 999px;
	background: #1c262e;
	text-align: center;
}

.ice-fishing-game__stat span {
	display: block;
	font-size: 0.7rem;
	text-transform: uppercase;
}

.ice-fishing-game__stat strong {
	display: block;
	font-size: 1.3rem;
	line-height: 1.2;
	color: #ffe23c;
}

.ice-fishing-game__button--spin {
	position: absolute;
	left: 50%;
	bottom: 2rem;
	transform: translateX(-50%);
	z-index: 4;
	margin: 0;
	animation: iceFishingSpinPulse 2s ease-in-out infinite;
}

@keyframes iceFishingSpinPulse {
	0%,
	100% {
		transform: translateX(-50%) scale(0.96);
	}

	50% {
		transform: translateX(-50%) scale(1.04);
	}
}

@keyframes iceFishingLogoSwing {
	0%,
	100% {
		transform: translateX(0);
	}

	25% {
		transform: translateX(10px);
	}

	75% {
		transform: translateX(-10px);
	}
}

@keyframes iceFishingButtonPulse {
	0%,
	100% {
		transform: scale(0.96);
	}

	50% {
		transform: scale(1.04);
	}
}

.ice-fishing-game__screen--game.is-win .ice-fishing-game__button--spin {
	pointer-events: none;
	animation-play-state: paused;
	opacity: 0.6;
}

.ice-fishing-game__screen--game.is-win .ice-fishing-game__cards .ice-fishing-game__card--orange {
	animation: iceFishingScaleWin 1s ease-in-out infinite;
	z-index: 4;
}

@keyframes iceFishingScaleWin {
	0%,
	100% {
		transform: scale(0.975);
		filter: drop-shadow(0 0 0 #f4e09c) drop-shadow(0 0 0 #ffc700);
	}

	50% {
		transform: scale(1.05);
		filter: drop-shadow(0 0 0.5em #f4e09c) drop-shadow(0 0 1.5em #ffc700);
	}
}

.ice-fishing-game__animation {
	position: absolute;
	inset: 0;
	z-index: 5;
	opacity: 0;
	pointer-events: none;
	overflow: hidden;
	transition: opacity 0.5s ease;
}

.ice-fishing-game__screen--game.is-animation-step-1 .ice-fishing-game__animation {
	opacity: 1;
	pointer-events: auto;
}

.ice-fishing-game__screen--game.is-animation-step-1 .ice-fishing-game__wheel-area,
.ice-fishing-game__screen--game.is-animation-step-1 .ice-fishing-game__person,
.ice-fishing-game__screen--game.is-animation-step-1 .ice-fishing-game__bottom {
	transition: opacity 0.5s ease;
	opacity: 0;
	pointer-events: none;
}

.ice-fishing-game__animation-bg {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: #abd6ff;
	background-image: url("./img/page-bg-3.webp");
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	transition: opacity 0.5s ease;
}

.ice-fishing-game__screen--game.is-animation-step-2 .ice-fishing-game__animation-bg {
	opacity: 0;
}

.ice-fishing-game__animation-aqua {
	position: absolute;
	inset: 0;
	z-index: 2;
	opacity: 0;
	background: linear-gradient(180deg, rgba(182, 242, 255, 0.55) 0%, rgba(31, 72, 105, 0.55) 51.77%);
	transition: opacity 0.5s ease;
	overflow: hidden;
}

.ice-fishing-game__screen--game.is-animation-step-2 .ice-fishing-game__animation-aqua {
	opacity: 1;
}

.ice-fishing-game__screen--game.is-animation-step-3 .ice-fishing-game__animation-aqua {
	animation: iceFishingHideAqua 1s ease forwards;
}

@keyframes iceFishingHideAqua {
	0% {
		transform: translateY(0);
	}

	100% {
		transform: translateY(100vh);
	}
}

.ice-fishing-game__video {
	display: none;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ice-fishing-game__screen--game.is-animation-step-2 .ice-fishing-game__video {
	display: block;
}

.ice-fishing-game__animation-land {
	position: absolute;
	inset: 0;
	z-index: 3;
	background-image: url("./img/page-bg-2.webp");
	background-size: cover;
	background-position: 40% 100%;
	background-repeat: no-repeat;
	overflow: hidden;
	transform: translateY(-100vh);
}

.ice-fishing-game__screen--game.is-animation-step-3 .ice-fishing-game__animation-land {
	transform: translateY(-100vh);
	animation: iceFishingShowLand 1s ease forwards;
}

@keyframes iceFishingShowLand {
	0% {
		transform: translateY(-100vh);
	}

	100% {
		transform: translateY(0);
	}
}

.ice-fishing-game__land-scene {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
}

.ice-fishing-game__ice-platform {
	position: absolute;
	left: calc(50% - 13em);
	bottom: 11em;
	width: 26.4em;
	height: 2em;
}

.ice-fishing-game__ice-platform::before {
	content: "";
	position: absolute;
	z-index: 2;
	left: 0;
	bottom: -6em;
	width: 26.4em;
	height: 11.7em;
	background-image: url("./img/ice.webp");
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.ice-fishing-game__crane {
	position: absolute;
	bottom: 11em;
	left: calc(50% - 34em - 100px);
	width: 46.8em;
	height: 65.2em;
	font-size: 120%;
	background-image: url("./img/crane-1.webp");
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	transform: translate(-20em, 0) scale(0.8);
}

.ice-fishing-game__crane::before {
	content: "";
	position: absolute;
	top: 2.25em;
	right: 3em;
	width: 3px;
	height: 5em;
	background-color: #000;
}

.ice-fishing-game__crane::after {
	content: "";
	position: absolute;
	top: 7em;
	right: 2em;
	width: 2.2em;
	height: 4.6em;
	background-image: url("./img/hook.webp");
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.ice-fishing-game__screen--game.is-animation-step-3 .ice-fishing-game__crane {
	animation: iceFishingMoveCrane 5s ease-in-out forwards;
	animation-delay: 1.5s;
}

.ice-fishing-game__screen--game.is-animation-step-3 .ice-fishing-game__crane::before {
	animation: iceFishingMoveCraneRow 5s ease-in-out forwards;
	animation-delay: 1.5s;
}

.ice-fishing-game__screen--game.is-animation-step-3 .ice-fishing-game__crane::after {
	animation: iceFishingMoveCraneHook 5s ease-in-out forwards;
	animation-delay: 1.5s;
}

@keyframes iceFishingMoveCrane {
	0%,
	100% {
		transform: translate(-20em, 0) scale(0.8);
	}

	20%,
	80% {
		transform: translate(0, 0) scale(1);
	}
}

@keyframes iceFishingMoveCraneRow {
	0%,
	20% {
		height: 5em;
	}

	45%,
	55% {
		height: 63em;
	}

	80%,
	100% {
		height: 25em;
	}
}

@keyframes iceFishingMoveCraneHook {
	0%,
	20% {
		top: 7em;
	}

	45%,
	55% {
		top: 65em;
	}

	80%,
	100% {
		top: 27em;
	}
}

.ice-fishing-game__helicopter {
	position: absolute;
	right: calc(50% - 43em + 100px);
	bottom: 60em;
	width: 58.1em;
	height: 24.1em;
	font-size: 110%;
	background-image: url("./img/halicopter.webp");
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0.5;
	transform: translate(30em, 20em) scale(0.7);
}

.ice-fishing-game__helicopter::before {
	content: "";
	position: absolute;
	top: 17.75em;
	right: 32em;
	width: 3px;
	height: 15em;
	background-color: #000;
	opacity: 0;
}

.ice-fishing-game__helicopter::after {
	content: "";
	position: absolute;
	top: 32em;
	right: 31em;
	width: 2.2em;
	height: 4.6em;
	background-image: url("./img/hook.webp");
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0;
}

.ice-fishing-game__screen--game.is-animation-step-3 .ice-fishing-game__helicopter {
	animation: iceFishingMoveHelicopter 5s ease-in-out forwards;
	animation-delay: 1.5s;
}

.ice-fishing-game__screen--game.is-animation-step-3 .ice-fishing-game__helicopter::before {
	animation: iceFishingMoveHelicopterRow 5s ease-in-out forwards;
	animation-delay: 1.5s;
}

.ice-fishing-game__screen--game.is-animation-step-3 .ice-fishing-game__helicopter::after {
	animation: iceFishingMoveHelicopterHook 5s ease-in-out forwards;
	animation-delay: 1.5s;
}

@keyframes iceFishingMoveHelicopter {
	0%,
	55% {
		opacity: 0.5;
		transform: translate(30em, 20em) scale(0.7);
	}

	80% {
		opacity: 1;
		transform: translate(0, 0) scale(1);
	}

	100% {
		opacity: 1;
		transform: translate(0, -25em) scale(1);
	}
}

@keyframes iceFishingMoveHelicopterMobile {
	0%,
	55% {
		opacity: 0.5;
		transform: translate(15em, 20em) scale(0.7);
	}

	80% {
		opacity: 1;
		transform: translate(0, 0) scale(1);
	}

	100% {
		opacity: 1;
		transform: translate(0, -25em) scale(1);
	}
}

@keyframes iceFishingMoveHelicopterRow {
	0%,
	55% {
		opacity: 0;
		height: 5em;
	}

	80%,
	100% {
		opacity: 1;
		height: 15em;
	}
}

@keyframes iceFishingMoveHelicopterHook {
	0%,
	55% {
		opacity: 0;
		top: 22em;
	}

	80%,
	100% {
		opacity: 1;
		top: 32em;
	}
}

.ice-fishing-game__orange-fish-vertical {
	position: absolute;
	left: calc(50% - 13em);
	bottom: 11em;
	width: 26.4em;
	height: 2em;
	overflow: hidden;
}

.ice-fishing-game__orange-fish-vertical::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 26.4em;
	height: 2em;
	background-image: url("./img/shadow.webp");
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.ice-fishing-game__orange-fish-vertical img {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: auto;
}

.ice-fishing-game__screen--game.is-animation-step-3 .ice-fishing-game__orange-fish-vertical {
	animation: iceFishingMoveFish 5s ease-in-out forwards;
	animation-delay: 1.5s;
}

@keyframes iceFishingMoveFish {
	0%,
	55% {
		height: 2em;
	}

	80% {
		height: 50em;
	}

	100% {
		height: 75em;
	}
}

.ice-fishing-game__card.ice-fishing-game__card--winner {
	position: absolute;
	z-index: 25;
	left: 16em;
	bottom: 18em;
	width: 7rem;
	aspect-ratio: auto;
	min-height: 6rem;
	padding: 0.75rem 0.5rem 0;
	border: 2px solid #eeb55f;
	border-radius: 0.75rem;
	opacity: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	transform: translate(calc(50vw - 14.5em), 20em) rotate(45deg);
}

.ice-fishing-game__card.ice-fishing-game__card--winner img {
	position: absolute;
	top: 3px;
	right: 6px;
	width: auto;
	max-height: 7em;
}

.ice-fishing-game__card.ice-fishing-game__card--winner h3 {
	position: static;
	bottom: auto;
	left: auto;
	margin: auto 0 0;
	padding: 0 0 8px;
	display: flex;
	align-self: stretch;
	align-items: flex-end;
	justify-content: center;
	font-size: 1.9em;
	line-height: 1.2;
	text-align: start;
}

.ice-fishing-game__card.ice-fishing-game__card--winner p {
	position: static;
	bottom: auto;
	left: auto;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.2rem 0.45rem 0;
	border-radius: 0.3rem 0.3rem 0 0;
	font-size: 0.7rem;
}

.ice-fishing-game__screen--game.is-animation-step-1 ~ .ice-fishing-game__card--winner {
	animation: iceFishingShowWinner 1s ease-in-out forwards;
	animation-delay: 0.5s;
}

.ice-fishing-game__screen--game.is-animation-step-2 ~ .ice-fishing-game__card--winner,
.ice-fishing-game__screen--game.is-animation-step-3 ~ .ice-fishing-game__card--winner,
.ice-fishing-game__screen--game.is-modal-open ~ .ice-fishing-game__card--winner {
	opacity: 1;
	transform: translate(0, 0) rotate(0deg);
}

@keyframes iceFishingShowWinner {
	0% {
		opacity: 1;
		transform: translate(calc(50vw - 14.5em), 20em) rotate(45deg);
	}

	33%,
	66% {
		opacity: 1;
		transform: translate(calc(50vw - 14.5em), 0) rotate(45deg);
	}

	100% {
		opacity: 1;
		transform: translate(0, 0) rotate(0deg);
	}
}

.ice-fishing-game__meta--animation {
	position: absolute;
	z-index: 6;
	left: 13em;
	bottom: 10em;
	display: flex;
	gap: 0.75rem;
	pointer-events: none;
}

.ice-fishing-game__screen--game.is-modal-open .ice-fishing-game__meta--animation,
.ice-fishing-game__screen--game.is-modal-open .ice-fishing-game__animation-bg,
.ice-fishing-game__screen--game.is-modal-open .ice-fishing-game__animation-land,
.ice-fishing-game__screen--game.is-modal-open .ice-fishing-game__animation-aqua {
	display: none;
}

.ice-fishing-game__modal {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease, visibility 0.5s ease;
	pointer-events: none;
	background-color: #abd6ff;
	background-image: url("./img/page-bg-2.webp");
	background-repeat: no-repeat;
	background-position: 40% 100%;
	background-size: cover;
}

.ice-fishing-game__modal.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.ice-fishing-game__modal-wrapper {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	width: 100em;
	max-width: 92vw;
}

.ice-fishing-game__sparkles {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.ice-fishing-game__sparkle {
	position: absolute;
	top: calc(50% - 42em);
	left: calc(50% - 78em);
	width: 157em;
	height: 84em;
	opacity: 0;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	mix-blend-mode: plus-lighter;
	filter: drop-shadow(0 0 0.2em #33ff4e) drop-shadow(0 0 0.4em #33ff4e);
	animation: iceFishingShowSparkles 2s ease-in-out infinite;
}

.ice-fishing-game__sparkle--1 {
	background-image: url("./img/sparkles-1.webp");
}

.ice-fishing-game__sparkle--2 {
	background-image: url("./img/sparkles-2.webp");
	animation-delay: 0.66s;
}

.ice-fishing-game__sparkle--3 {
	background-image: url("./img/sparkles-3.webp");
	animation-delay: 1.33s;
}

@keyframes iceFishingShowSparkles {
	0%,
	66%,
	100% {
		opacity: 0;
	}

	33% {
		opacity: 1;
	}
}

.ice-fishing-game__modal-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1080 / 519;
	padding: 16px;
}

.ice-fishing-game__modal-content::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("./img/frame.webp");
	background-size: 100% 100%;
	background-repeat: no-repeat;
	background-position: center;
}

.ice-fishing-game__modal-badge {
	position: absolute;
	right: 2em;
	top: -2em;
	width: 20em;
	height: 8em;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	border-radius: 2em;
	background: linear-gradient(180deg, #ff8282 0%, #b84e4e 100%);
	transform: rotate(-16deg);
}

.ice-fishing-game__modal-badge::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 95%;
	height: 95%;
	border-radius: 2em;
	background: linear-gradient(180deg, #da0000 0%, #8e0000 100%);
}

.ice-fishing-game__modal-badge span {
	position: relative;
	z-index: 2;
	padding-left: 5px;
	font-size: 5em;
	line-height: 1;
	color: #ffc585;
	text-shadow:
		0 -1px 1px #900,
		-1px 0 1px #900,
		0 0 1px #900,
		1px 0 1px #900,
		0 1px 1px #900;
}

.ice-fishing-game__modal-fish {
	position: absolute;
	left: 0;
	top: -28%;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ice-fishing-game__modal-fish img {
	width: 60%;
	animation: iceFishingMoveModalFish 2s ease-in-out infinite;
}

@keyframes iceFishingMoveModalFish {
	0%,
	100% {
		transform: rotate(6deg);
	}

	50% {
		transform: rotate(-6deg);
	}
}

.ice-fishing-game__modal-title,
.ice-fishing-game__modal-text {
	position: relative;
	z-index: 2;
	text-align: center;
	color: #ffd027;
	text-shadow:
		0 -1px 1px #900,
		-1px 0 1px #900,
		0 0 1px #900,
		1px 0 1px #900,
		0 1px 1px #900;
}

.ice-fishing-game__modal-title {
	font-size: 5.2em;
	line-height: 1;
}

.ice-fishing-game__modal-text {
	margin-top: 0.25em;
	font-size: 4em;
	text-transform: uppercase;
	color: #ffd38a;
	line-height: 1.1;
}

.ice-fishing-game__modal-button {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ice-fishing-game__button--take,
.ice-fishing-game__button--take:link,
.ice-fishing-game__button--take:visited,
.ice-fishing-game__button--take:hover,
.ice-fishing-game__button--take:focus,
.ice-fishing-game__button--take:active {
	color: #fff;
	text-decoration: none !important;
	outline: 0;
	box-shadow: none;
}

.ice-fishing-game__button--take span,
.ice-fishing-game__button--take:hover span,
.ice-fishing-game__button--take:focus span,
.ice-fishing-game__button--take:active span {
	color: #fff;
	text-decoration: none;
}

@media (max-width: 1023px) {
	.ice-fishing-game__graph {
		display: none;
	}

	.ice-fishing-game__card.ice-fishing-game__card--winner {
		left: 1rem;
		bottom: 1.5rem;
	}

	.ice-fishing-game__meta--animation {
		top: 5em;
		left: 0;
		right: auto;
		bottom: auto;
		width: 100%;
		padding: 0 1rem;
		justify-content: center;
		transform: none;
		font-size: 125%;
	}

	.ice-fishing-game__modal-wrapper {
		width: 90em;
		gap: 1rem;
	}

	.ice-fishing-game__modal {
		font-size: 55%;
	}

	.ice-fishing-game__modal-badge {
		width: 15em;
		height: 6em;
		right: 1em;
		top: -1em;
	}

	.ice-fishing-game__modal-badge span {
		font-size: 3.8em;
	}

	.ice-fishing-game__modal-title {
		font-size: 4.2em;
	}

	.ice-fishing-game__modal-text {
		font-size: 3.2em;
	}
}

@media (max-width: 899px) {
	.ice-fishing-game__wheel-arrow {
		width: 4rem;
		top: -1.5rem;
	}

	.ice-fishing-game__bottom {
		position: static;
		display: contents;
		padding: 0;
		background: none;
		gap: 0;
	}

	.ice-fishing-game__bottom .ice-fishing-game__preview,
	.ice-fishing-game__bottom .ice-fishing-game__cards,
	.ice-fishing-game__bottom .ice-fishing-game__button--spin {
		position: absolute;
		grid-area: auto;
		justify-self: auto;
	}

	.ice-fishing-game__bottom .ice-fishing-game__meta {
		position: absolute;
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		width: auto;
		max-width: calc(100% - 1.5rem);
	}

	.ice-fishing-game__bottom .ice-fishing-game__stat {
		position: static;
		grid-area: auto;
		justify-self: auto;
		flex: 0 0 auto;
	}

	.ice-fishing-game__meta {
		top: 1.25rem;
		bottom: auto;
		left: 50%;
		right: auto;
		transform: translateX(-50%);
		justify-content: center;
		gap: 0.5rem;
		white-space: nowrap;
	}

	.ice-fishing-game__bottom .ice-fishing-game__cards {
		left: 50%;
		right: auto;
		bottom: 6.5rem;
		transform: translateX(-50%);
	}

	.ice-fishing-game__bottom .ice-fishing-game__button--spin {
		left: 50%;
		bottom: 1.25rem;
		transform: translateX(-50%);
		animation: iceFishingSpinPulse 2s ease-in-out infinite;
	}

	.ice-fishing-game__stat {
		min-width: 11rem;
		padding: 0.2rem 0.9rem 0;
	}

	.ice-fishing-game__wheel-area {
		top: 8rem;
	}

	.ice-fishing-game__wheel-wrap {
		width: min(90vw, 41rem);
	}

	.ice-fishing-game__person {
		left: auto;
		right: -4%;
		bottom: 0rem;
		height: auto;
		width: 42vw;
		max-width: 18rem;
		z-index: 3;
	}

	.ice-fishing-game__person img {
		height: auto;
		width: 100%;
	}

	.ice-fishing-game__preview {
		display: none;
	}

	.ice-fishing-game__cards {
		left: 50%;
		right: auto;
		bottom: 5.5rem;
		transform: translateX(-50%);
		width: auto;
		max-width: 62vw;
		padding: 0;
		gap: 0.3rem;
		justify-content: center;
	}

	.ice-fishing-game__tools {
		width: 2.2rem;
		gap: 0.3rem;
		margin-right: 0.6rem;
	}

	.ice-fishing-game__tool {
		width: 3rem;
	}

	.ice-fishing-game__tool::before {
		left: calc(50% - 0.6em);
		top: calc(50% - 0.85em);
		width: 1.2em;
		height: 1.7em;
	}

	.ice-fishing-game__tool-badge {
		width: 1.4rem;
		height: 1.9rem;
	}

	.ice-fishing-game__tool-badge span {
		font-size: 0.7rem;
	}

	.ice-fishing-game__card {
		flex: 0 0 auto;
		width: 5.5rem;
		min-width: 0;
		max-width: none;
		padding: 0.4rem 0.3rem 0;
		min-height: 5.5rem;
	}

	.ice-fishing-game__card.ice-fishing-game__card img {
		max-height: 3.6rem;
		top: 2px;
		right: 2px;
	}

	.ice-fishing-game__card h3 {
		font-size: 0.58rem;
	}

	.ice-fishing-game__card--blue h3,
	.ice-fishing-game__card--orange h3,
	.ice-fishing-game__card--red h3 {
		font-size: 0.78em;
		padding-bottom: 4px;
	}

	.ice-fishing-game__card.ice-fishing-game__card--winner h3 {
		position: static;
		bottom: auto;
		left: auto;
		margin: auto 0 0;
		padding: 0 0 8px;
		display: flex;
		align-self: stretch;
		align-items: flex-end;
		justify-content: center;
		font-size: 0.9em;
		line-height: 1.2;
		text-align: start;
	}

	.ice-fishing-game__card p {
		font-size: 0.45rem;
		padding: 0.15rem 0.3rem 0;
	}

	.ice-fishing-game__card--all {
		width: 2.6rem;
	}

	.ice-fishing-game__card--all span {
		font-size: 0.5rem;
		bottom: 0.5em;
	}

	.ice-fishing-game__button--spin {
		bottom: 1.25rem;
	}
}

@media (max-width: 768px) {
	.ice-fishing-game {
		font-size: 100%;
	}

	.ice-fishing-game__animation-bg {
		background-image: url("./img/page-bg-3-mobile.webp");
	}

	.ice-fishing-game__land-scene {
		bottom: 10%;
		font-size: 50%;
	}

	.ice-fishing-game__modal-title {
		font-size: 2.8em;
	}

	.ice-fishing-game__modal-text {
		font-size: 2.6em;
		line-height: 1.3;
	}

	.ice-fishing-game__modal-badge {
		width: 12em;
		height: 5em;
		right: 1em;
		top: 0em;
	}

	.ice-fishing-game__modal-badge span {
		font-size: 2.8em;
	}
}

@media (max-width: 767px) {
	.ice-fishing-game__logo {
		width: 70em;
	}

	.ice-fishing-game__screen--game.is-animation-step-3 .ice-fishing-game__helicopter {
		animation-name: iceFishingMoveHelicopterMobile;
	}
}

@media (max-width: 767px) and (max-height: 741px) {
	.ice-fishing-game__meta--animation {
		top: 2.5em;
	}
}

@media (max-width: 480px) {
	.ice-fishing-game__wheel-wrap {
		width: min(94vw, 30rem);
	}

	.ice-fishing-game__person {
		width: 55vw;
		bottom: 0rem;
	}

	.ice-fishing-game__cards {
		bottom: 5.5rem;
	}
}

@media (min-width: 1024px) {
	.ice-fishing-game__person {
		position: absolute;
		width: 56.8em;
		height: 101em;
		max-width: none;
		max-height: 88%;
		left: calc(50% - 100em);
		bottom: 0;
	}

	.ice-fishing-game__modal-wrapper {
		width: 80em;
	}
}

@media (min-width: 1200px) {
	.ast-plain-container.ast-no-sidebar #primary:has(.ice-fishing-game) {
		margin-top: 0;
		margin-bottom: 0;
	}
}
