
/*
//=====================================================================================
*/

.cups_page .field_box input:read-only
{
	color: var(--text_dim);
}

.cups_page .field_chip:disabled
{
	opacity: 0.45;
	cursor: default;
}

.cups_page .play_button:disabled
{
	cursor: default;
}

.cups_counts
{
	grid-template-columns: repeat(3, 1fr);
}

.cups_count
{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	height: 54px;
}

.cups_count_name
{
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	line-height: 1;
}

.cups_count_icon
{
	width: 13px;
	height: 15px;
	opacity: 0.7;
	transition: opacity 0.25s;
}

.cups_count_pay
{
	color: rgba(253, 230, 138, 0.55);
	font: 700 12.5px/1 var(--font_game);
	letter-spacing: 0.02em;
	font-variant-numeric: tabular-nums;
	transition: color 0.25s;
}

.cups_count[aria-checked="true"] .cups_count_pay
{
	color: #fde68a;
}

.cups_count[aria-checked="true"] .cups_count_icon
{
	opacity: 1;
}

.cups_random
{
	width: 100%;
	height: 40px;
	margin-top: 10px;
	gap: 8px;
	font-size: 13.5px;
}

.cups_random kbd
{
	margin-left: 2px;
}

.cups_random:disabled
{
	opacity: 0.45;
	cursor: default;
}

/*
//=====================================================================================
*/

.cups_stage
{
	gap: 12px;
}

.cups_scene
{
	position: relative;
	flex: 1 1 0;
	min-height: 180px;
}

.cups_rig
{
	position: absolute;
	left: 50%;
	top: 50%;
	width: 1000px;
	height: 640px;
	transform: translate(-50%, -50%) scale(var(--cups_scale, 1));
}

.cups_cabinet
{
	position: absolute;
	left: 30px;
	top: 30px;
	width: 940px;
	height: 580px;
	overflow: hidden;
	isolation: isolate;
	border-radius: 34px;
	background: #0f0a22;
	box-shadow: 0 0 0 15px #1d1438, 0 0 0 16px rgba(245, 196, 81, 0.3), 0 0 0 29px #0f0a22, 0 40px 70px rgba(0, 0, 0, 0.6);
}

.cups_cabinet::after
{
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	border-radius: 34px;
	box-shadow: inset 0 0 0 2px rgba(245, 196, 81, 0.34), inset 0 0 60px rgba(0, 0, 0, 0.35);
	pointer-events: none;
}

.cups_wall
{
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 240px;
	background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.024) 0 1px, transparent 1px 28px), linear-gradient(180deg, #0e0924 0%, #181140 70%, #211955 100%);
}

.cups_rail
{
	position: absolute;
	left: -20px;
	right: -20px;
	top: 216px;
	z-index: 2;
	height: 28px;
	border-radius: 14px;
	background: linear-gradient(180deg, #4b3998 0%, #2d216a 42%, #1a1242 100%);
	box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.35), 0 2px 0 rgba(245, 196, 81, 0.5), 0 10px 16px rgba(0, 0, 0, 0.5);
}

.cups_rail::before
{
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 11px;
	border-top: 1.5px dashed rgba(255, 255, 255, 0.12);
}

.cups_felt
{
	position: absolute;
	left: 0;
	right: 0;
	top: 232px;
	bottom: 0;
	background: radial-gradient(ellipse 55% 70% at 50% 40%, rgba(255, 255, 255, 0.05), transparent 70%), repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.022) 0 2px, transparent 2px 5px), radial-gradient(ellipse at 50% 38%, #3a2894 0%, #241a64 52%, #140d38 100%);
	box-shadow: inset 0 14px 22px rgba(0, 0, 0, 0.45), inset 0 0 70px rgba(0, 0, 0, 0.4);
}

.cups_felt::after
{
	content: "";
	position: absolute;
	left: 10px;
	right: 10px;
	top: 22px;
	bottom: 10px;
	border: 1px solid rgba(245, 196, 81, 0.15);
	border-top: 0;
	border-radius: 0 0 26px 26px;
}

/*
//=====================================================================================
*/

.cups_sign
{
	position: absolute;
	left: 50px;
	top: 78px;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 254px;
}

.cups_title
{
	color: rgba(245, 196, 81, 0.86);
	font: 700 34px/1 var(--font_game);
	letter-spacing: 0.42em;
	text-indent: 0.42em;
	white-space: nowrap;
}

.cups_title_sub
{
	margin-top: -2px;
	color: rgba(245, 196, 81, 0.78);
	font-size: 20px;
	letter-spacing: 0.3em;
	text-indent: 0.3em;
}

.cups_rule
{
	position: relative;
	width: 210px;
	height: 1px;
	margin: 5px 0 3px;
	background: linear-gradient(90deg, transparent, rgba(245, 196, 81, 0.55), transparent);
}

.cups_rule::after
{
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 7px;
	height: 7px;
	margin: -3.5px 0 0 -3.5px;
	rotate: 45deg;
	background: #e2b04a;
}

.cups_terms
{
	color: rgba(245, 196, 81, 0.5);
	font: 600 12px/1.2 var(--font_game);
	letter-spacing: 0.24em;
	text-indent: 0.24em;
	white-space: nowrap;
}

.cups_theatre
{
	position: absolute;
	left: 300px;
	top: 40px;
	z-index: 1;
	width: 400px;
	height: 210px;
	overflow: visible;
}

.cups_name
{
	position: absolute;
	left: 318px;
	top: 108px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 106px;
	height: 46px;
	border-radius: 7px;
	rotate: -4deg;
	transform-origin: 50% -26px;
	background: repeating-linear-gradient(176deg, rgba(0, 0, 0, 0.07) 0 2px, transparent 2px 7px), linear-gradient(180deg, #7c4620 0%, #5a3015 55%, #3e1f0b 100%);
	box-shadow: inset 0 0 0 1.5px rgba(245, 196, 81, 0.7), inset 0 0 0 4px #3a1c0a, inset 0 0 0 5px rgba(245, 196, 81, 0.3), 0 8px 12px rgba(0, 0, 0, 0.5);
}

.cups_name::before,
.cups_name::after
{
	content: "";
	position: absolute;
	top: -28px;
	width: 2px;
	height: 29px;
	background: repeating-linear-gradient(180deg, #f5c451 0 3px, #8a5310 3px 4px, transparent 4px 5px);
}

.cups_name::before
{
	left: 16px;
}

.cups_name::after
{
	right: 16px;
}

.cups_name_small
{
	color: rgba(253, 230, 138, 0.75);
	font: 700 8.5px/1 var(--font_game);
	letter-spacing: 0.34em;
	text-indent: 0.34em;
}

.cups_name_big
{
	color: #fde68a;
	font: 800 14px/1 var(--font_game);
	letter-spacing: 0.12em;
	text-indent: 0.12em;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.cups_plaque
{
	position: absolute;
	left: 742px;
	top: 72px;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 204px;
	height: 140px;
	border-radius: 16px;
	background: radial-gradient(circle 3.4px at 15px 15px, #f8dc8c 0 2.4px, transparent 3px), radial-gradient(circle 3.4px at calc(100% - 15px) 15px, #f8dc8c 0 2.4px, transparent 3px), radial-gradient(circle 3.4px at 15px calc(100% - 15px), #f8dc8c 0 2.4px, transparent 3px), radial-gradient(circle 3.4px at calc(100% - 15px) calc(100% - 15px), #f8dc8c 0 2.4px, transparent 3px), linear-gradient(180deg, #1c1444, #0c0820);
	box-shadow: inset 0 0 0 2px rgba(245, 196, 81, 0.55), inset 0 0 0 7px #120c2c, inset 0 0 0 8px rgba(245, 196, 81, 0.22), inset 0 12px 22px rgba(0, 0, 0, 0.4), 0 12px 20px rgba(0, 0, 0, 0.45);
}

.cups_plaque_label
{
	color: rgba(245, 196, 81, 0.75);
	font: 700 13px/1 var(--font_game);
	letter-spacing: 0.34em;
	text-indent: 0.34em;
	text-transform: uppercase;
}

.cups_plaque_value
{
	color: #fff1c2;
	font: 800 46px/1 var(--font_game);
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.cups_plaque_note
{
	max-width: 180px;
	overflow: hidden;
	color: var(--text_dim);
	font: 600 14px/1 var(--font_body);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.cups_plaque_note .coin
{
	width: 15px;
	height: 15px;
	vertical-align: -2px;
}

.cups_plaque[data-state="win"] .cups_plaque_value,
.cups_plaque[data-state="win"] .cups_plaque_note
{
	color: #6ee7b7;
}

.cups_plaque[data-state="loss"] .cups_plaque_value,
.cups_plaque[data-state="loss"] .cups_plaque_note
{
	color: #fda4af;
}

/*
//=====================================================================================
*/

.cups_monkey_box
{
	position: absolute;
	left: 370px;
	top: 30px;
	z-index: 3;
	width: 260px;
	height: 250px;
}

.cups_monkey
{
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.cups_monkey .mk_rig
{
	transform-origin: 130px 250px;
	transition: transform 0.35s var(--ease);
}

.cups_monkey .mk_torso
{
	transform-origin: 130px 222px;
}

.cups_monkey .mk_head
{
	transform-origin: 130px 155px;
}

.cups_monkey .mk_tail
{
	transform-origin: 166px 204px;
}

.cups_monkey .mk_tail_curl
{
	transform-origin: 224px 168px;
}

.cups_monkey .mk_ear
{
	transition: rotate 0.25s var(--ease);
}

.cups_monkey .mk_ear_west
{
	transform-origin: 88px 110px;
}

.cups_monkey .mk_ear_east
{
	transform-origin: 172px 110px;
}

.cups_monkey .mk_hat
{
	transform-origin: 112px 58px;
	transition: translate 0.3s var(--ease);
}

.cups_monkey .mk_eyes
{
	transform-origin: 130px 107px;
	transition: transform 0.2s var(--ease), opacity 0.15s;
}

.cups_monkey .mk_pupils
{
	translate: var(--look_x, 0px) var(--look_y, 0px);
	transition: translate 0.18s ease-out;
}

.cups_monkey .mk_lid
{
	transform-box: fill-box;
	transform-origin: 50% 0;
	transform: scaleY(0);
}

.cups_monkey .mk_brow
{
	transform-box: fill-box;
	transform-origin: 50% 50%;
	transition: translate 0.25s var(--ease), rotate 0.25s var(--ease);
}

.cups_monkey .mk_arm_west
{
	transform-origin: 106px 164px;
}

.cups_monkey .mk_arm_east
{
	transform-origin: 154px 164px;
}

.cups_monkey .mk_hand_west,
.cups_monkey .mk_wand
{
	transform-origin: 80px 210px;
}

.cups_monkey .mk_hand_east
{
	transform-origin: 179px 210px;
}

.cups_monkey .mk_prop
{
	transform-origin: 179px 190px;
	transition: opacity 0.3s;
}

.cups_monkey .mk_wand_spark
{
	transform-box: fill-box;
	transform-origin: 50% 50%;
	opacity: 0;
}

.cups_monkey .mk_mouth,
.cups_monkey .mk_happy
{
	transition: opacity 0.12s;
}

.cups_monkey .mk_mouth_grin,
.cups_monkey .mk_mouth_smirk,
.cups_monkey .mk_mouth_gasp,
.cups_monkey .mk_happy
{
	opacity: 0;
}

.cups_monkey.is_playing .mk_prop
{
	opacity: 0;
}

.cups_monkey.is_waiting .mk_rig
{
	transform: translateY(7px) scale(1.04);
}

.cups_monkey.is_waiting .mk_brow_west
{
	rotate: 6deg;
}

.cups_monkey.is_waiting .mk_brow_east
{
	translate: 0 -3px;
	rotate: -6deg;
}

.cups_monkey.is_shuffling .mk_brow
{
	translate: 0 2px;
}

.cups_monkey.is_waiting .mk_mouth_smirk,
.cups_monkey.is_smug .mk_mouth_smirk,
.cups_monkey.is_cloth .mk_mouth_grin,
.cups_monkey.is_shuffling .mk_mouth_grin,
.cups_monkey.is_clap .mk_mouth_grin,
.cups_monkey.is_clap .mk_happy,
.cups_monkey.is_gasp .mk_mouth_gasp
{
	opacity: 1;
}

.cups_monkey.is_waiting .mk_mouth_smile,
.cups_monkey.is_smug .mk_mouth_smile,
.cups_monkey.is_cloth .mk_mouth_smile,
.cups_monkey.is_shuffling .mk_mouth_smile,
.cups_monkey.is_clap .mk_mouth_smile,
.cups_monkey.is_gasp .mk_mouth_smile,
.cups_monkey.is_clap .mk_eyes
{
	opacity: 0;
}

.cups_monkey.is_gasp .mk_eyes
{
	transform: scale(1.14);
}

.cups_monkey.is_gasp .mk_brow,
.cups_monkey.is_cloth .mk_brow
{
	translate: 0 -6px;
}

.cups_monkey.is_gasp .mk_ear_west
{
	rotate: -10deg;
}

.cups_monkey.is_gasp .mk_ear_east
{
	rotate: 10deg;
}

.cups_monkey.is_smug .mk_brow_east
{
	translate: 0 -5px;
	rotate: 10deg;
}

.cups_monkey.is_smug .mk_brow_west
{
	translate: 0 2px;
	rotate: 6deg;
}

.cups_monkey.is_smug .mk_lid
{
	transform: scaleY(0.42);
}

@media (prefers-reduced-motion: no-preference)
{
	.cups_monkey .mk_torso
	{
		animation: mk_breathe 3.6s ease-in-out infinite;
	}

	.cups_monkey .mk_head
	{
		animation: mk_bob 3.6s ease-in-out infinite;
	}

	.cups_monkey .mk_lid
	{
		animation: mk_blink 5.4s infinite;
	}

	.cups_monkey .mk_ear_west
	{
		animation: mk_twitch_west 7.4s ease-in-out infinite;
	}

	.cups_monkey .mk_ear_east
	{
		animation: mk_twitch_east 9.6s ease-in-out 1.4s infinite;
	}

	.cups_monkey .mk_tail
	{
		animation: mk_tail 4.8s ease-in-out infinite;
	}

	.cups_monkey .mk_tail_curl
	{
		animation: mk_curl 2.4s ease-in-out infinite alternate;
	}

	.cups_monkey:not(.is_playing) .mk_prop
	{
		animation: mk_juggle 6.4s ease-in-out 0.8s infinite;
	}

	.cups_monkey:not(.is_playing) .mk_hand_east
	{
		animation: mk_toss 6.4s ease-in-out 0.8s infinite;
	}

	.cups_monkey:not(.is_playing) .mk_wand
	{
		animation: mk_tap 7.6s ease-in-out 2.2s infinite;
	}

	.cups_monkey:not(.is_playing) .mk_wand_spark
	{
		animation: mk_spark 7.6s ease-out 2.2s infinite;
	}

	.cups_monkey.is_shuffling .mk_head
	{
		animation: mk_bob 0.5s ease-in-out infinite;
	}

	.cups_monkey.is_shuffling .mk_tail_curl
	{
		animation: mk_curl 0.6s ease-in-out infinite alternate;
	}

	.cups_monkey.is_waiting .mk_brow_west
	{
		animation: mk_wiggle 0.9s ease-in-out infinite;
	}

	.cups_monkey.is_waiting .mk_brow_east
	{
		animation: mk_wiggle 0.9s ease-in-out 0.45s infinite;
	}

	.cups_monkey.is_waiting .mk_pupils
	{
		animation: mk_dart 2.6s ease-in-out infinite;
	}

	.cups_monkey.is_gasp .mk_head
	{
		animation: mk_gasp 0.5s var(--ease) both;
	}

	.cups_monkey.is_gasp .mk_hat
	{
		animation: mk_hop 0.6s var(--ease) both;
	}

	.cups_monkey.is_clap .mk_arm_west
	{
		animation: mk_clap_west 0.34s ease-in-out 6;
	}

	.cups_monkey.is_clap .mk_arm_east
	{
		animation: mk_clap_east 0.34s ease-in-out 6;
	}

	.cups_monkey.is_clap .mk_hat
	{
		animation: mk_hat_pop 1.1s var(--ease) both;
	}

	.cups_monkey.is_clap .mk_head
	{
		animation: mk_bob 0.34s ease-in-out 6;
	}

	.cups_monkey.is_smug .mk_head
	{
		animation: mk_bow_head 1.8s var(--ease) 0.15s both;
	}

	.cups_monkey.is_smug .mk_torso
	{
		animation: mk_bow_body 1.8s var(--ease) 0.15s both;
	}

	.cups_monkey.is_smug .mk_hat
	{
		animation: mk_hat_tip 1.8s var(--ease) 0.15s both;
	}

	.cups_monkey.is_smug .mk_lid
	{
		animation: none;
	}
}

@keyframes mk_breathe
{
	0%,
	100%
	{
		transform: scale(1, 1);
	}

	50%
	{
		transform: scale(1.016, 1.034);
	}
}

@keyframes mk_bob
{
	0%,
	100%
	{
		transform: translateY(0);
	}

	50%
	{
		transform: translateY(-1.8px);
	}
}

@keyframes mk_blink
{
	0%,
	91%,
	97%,
	100%
	{
		transform: scaleY(0);
	}

	94%
	{
		transform: scaleY(1);
	}
}

@keyframes mk_twitch_west
{
	0%,
	86%,
	100%
	{
		transform: rotate(0deg);
	}

	89%
	{
		transform: rotate(-12deg);
	}

	92%
	{
		transform: rotate(4deg);
	}

	95%
	{
		transform: rotate(-3deg);
	}
}

@keyframes mk_twitch_east
{
	0%,
	80%,
	100%
	{
		transform: rotate(0deg);
	}

	83%
	{
		transform: rotate(12deg);
	}

	86%
	{
		transform: rotate(-3deg);
	}
}

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

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

@keyframes mk_curl
{
	from
	{
		transform: rotate(-14deg) scale(0.96);
	}

	to
	{
		transform: rotate(10deg) scale(1.04);
	}
}

@keyframes mk_juggle
{
	0%,
	58%,
	100%
	{
		transform: translate(0px, 0px) rotate(0deg);
	}

	61%
	{
		transform: translate(0px, 4px) rotate(0deg);
	}

	70%
	{
		transform: translate(-8px, -70px) rotate(-200deg);
	}

	79%
	{
		transform: translate(0px, 2px) rotate(-360deg);
	}

	83%
	{
		transform: translate(0px, 0px) rotate(-360deg);
	}
}

@keyframes mk_toss
{
	0%,
	56%,
	84%,
	100%
	{
		transform: translate(0px, 0px);
	}

	61%
	{
		transform: translate(0px, 6px);
	}

	64%
	{
		transform: translate(0px, -8px);
	}

	78%
	{
		transform: translate(0px, -2px);
	}

	80%
	{
		transform: translate(0px, 5px);
	}
}

@keyframes mk_tap
{
	0%,
	78%,
	94%,
	100%
	{
		transform: rotate(0deg);
	}

	81%
	{
		transform: rotate(-16deg);
	}

	84%
	{
		transform: rotate(8deg);
	}

	87%
	{
		transform: rotate(-14deg);
	}

	90%
	{
		transform: rotate(8deg);
	}
}

@keyframes mk_spark
{
	0%,
	83%,
	93%,
	100%
	{
		opacity: 0;
		transform: scale(0.2) rotate(0deg);
	}

	85%,
	90%
	{
		opacity: 1;
		transform: scale(1.1) rotate(45deg);
	}
}

@keyframes mk_wiggle
{
	0%,
	100%
	{
		translate: 0 0;
	}

	50%
	{
		translate: 0 -5px;
	}
}

@keyframes mk_dart
{
	0%,
	100%
	{
		translate: -3.4px 2.4px;
	}

	45%,
	55%
	{
		translate: 3.4px 2.4px;
	}
}

@keyframes mk_gasp
{
	0%
	{
		transform: none;
	}

	40%
	{
		transform: translateY(-8px) scale(1.04);
	}

	100%
	{
		transform: translateY(-3px);
	}
}

@keyframes mk_hop
{
	0%,
	100%
	{
		transform: none;
	}

	35%
	{
		transform: translateY(-16px) rotate(-6deg);
	}
}

@keyframes mk_clap_west
{
	0%,
	100%
	{
		transform: translate(0px, -20px) rotate(-12deg);
	}

	50%
	{
		transform: translate(0px, -22px) rotate(-42deg);
	}
}

@keyframes mk_clap_east
{
	0%,
	100%
	{
		transform: translate(0px, -20px) rotate(12deg);
	}

	50%
	{
		transform: translate(0px, -22px) rotate(42deg);
	}
}

@keyframes mk_hat_pop
{
	0%
	{
		transform: none;
	}

	22%
	{
		transform: translate(4px, -34px) rotate(-12deg);
	}

	55%
	{
		transform: translate(2px, -28px) rotate(8deg);
	}

	100%
	{
		transform: none;
	}
}

@keyframes mk_bow_head
{
	0%,
	100%
	{
		transform: none;
	}

	25%,
	70%
	{
		transform: translateY(9px) rotate(-4deg) scale(0.98);
	}
}

@keyframes mk_bow_body
{
	0%,
	100%
	{
		transform: none;
	}

	25%,
	70%
	{
		transform: translateY(4px) scale(1.02, 0.96);
	}
}

@keyframes mk_hat_tip
{
	0%,
	100%
	{
		transform: none;
	}

	20%,
	62%
	{
		transform: translate(-4px, -22px) rotate(-26deg);
	}

	80%
	{
		transform: translate(0px, -3px) rotate(-3deg);
	}
}

/*
//=====================================================================================
*/

.cups_bubble
{
	position: absolute;
	left: 598px;
	top: 86px;
	z-index: 10;
	max-width: 190px;
	padding: 11px 17px 12px;
	border-radius: 18px;
	color: #2a1d6e;
	font: 700 19px/1.1 var(--font_game);
	white-space: nowrap;
	background: linear-gradient(180deg, #fffdf8, #f1ebdf);
	box-shadow: inset 0 0 0 1.5px rgba(42, 29, 110, 0.14), inset 0 -3px 0 rgba(42, 29, 110, 0.08), 0 10px 18px rgba(0, 0, 0, 0.45);
	opacity: 0;
	transform: translateY(10px) scale(0.6);
	transform-origin: 0% 100%;
	transition: opacity 0.2s, transform 0.3s cubic-bezier(0.3, 0.7, 0.4, 1.4);
	pointer-events: none;
}

.cups_bubble::after
{
	content: "";
	position: absolute;
	left: -11px;
	bottom: 6px;
	width: 22px;
	height: 18px;
	background: #f4eee3;
	clip-path: polygon(100% 0, 0 100%, 72% 100%);
}

.cups_bubble.is_shown
{
	opacity: 1;
	transform: none;
}

/*
//=====================================================================================
*/

.cups_table
{
	position: absolute;
	inset: 0;
	z-index: 4;
	pointer-events: none;
}

.cups_spots
{
	position: absolute;
	inset: 0;
	z-index: 1;
}

.cups_spot
{
	position: absolute;
	left: var(--x);
	top: 476px;
	width: 140px;
	height: 36px;
	margin: -18px 0 0 -70px;
	border-radius: 50%;
	border: 1.5px solid rgba(245, 196, 81, 0.26);
	box-shadow: inset 0 0 0 7px rgba(6, 4, 15, 0.12);
	scale: var(--size, 1);
	transition: border-color 0.3s;
}

.cups_spot_key
{
	position: absolute;
	left: 50%;
	top: 42px;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	margin-left: -12px;
	border-radius: 50%;
	color: rgba(245, 196, 81, 0.55);
	font: 700 13px/1 var(--font_game);
	border: 1px solid rgba(245, 196, 81, 0.3);
	background: rgba(6, 4, 15, 0.22);
	transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.cups_table.is_open .cups_spot
{
	border-color: rgba(245, 196, 81, 0.45);
}

.cups_table.is_open .cups_spot_key
{
	color: #fde68a;
	border-color: rgba(245, 196, 81, 0.65);
	background: rgba(6, 4, 15, 0.45);
}

.cups_dish
{
	position: absolute;
	left: 440px;
	top: 564px;
	z-index: 2;
	width: 120px;
	height: 40px;
	overflow: visible;
}

.cups_gem
{
	position: absolute;
	left: 0;
	top: 0;
	z-index: 3;
	width: 64px;
	height: 56px;
	transform-origin: 32px 54px;
	opacity: 0;
	transition: opacity 0.18s;
}

.cups_gem.is_shown
{
	opacity: 1;
}

.cups_gem_art
{
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
	filter: drop-shadow(0 7px 4px rgba(4, 2, 12, 0.5));
}

.cups_gem_twinkle
{
	position: absolute;
	right: -9px;
	top: -8px;
	width: 22px;
	height: 22px;
	fill: #fff;
	opacity: 0;
}

.cups_cups
{
	position: absolute;
	inset: 0;
	z-index: 4;
}

.cups_cup
{
	position: absolute;
	left: 0;
	top: 0;
	width: 140px;
	height: 160px;
	border-radius: 46% 46% 20px 20px;
	transform-origin: 70px 150px;
	pointer-events: none;
	-webkit-tap-highlight-color: transparent;
}

.cups_cup:disabled
{
	cursor: default;
}

.cups_cup.is_pickable
{
	pointer-events: auto;
	cursor: pointer;
}

.cups_cup:focus-visible
{
	outline: none;
}

.cups_cup::before
{
	content: "";
	position: absolute;
	left: 2px;
	top: 128px;
	width: 136px;
	height: 38px;
	border-radius: 50%;
	border: 2.5px solid rgba(253, 230, 138, 0);
	transition: border-color 0.2s;
}

.cups_cup.is_pickable:hover::before,
.cups_cup.is_pickable:focus-visible::before,
.cups_cup.is_chosen::before
{
	border-color: rgba(253, 230, 138, 0.85);
}

.cups_shadow
{
	position: absolute;
	left: 0;
	top: 124px;
	width: 140px;
	height: 44px;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(4, 2, 12, 0.72), rgba(4, 2, 12, 0.38) 60%, rgba(4, 2, 12, 0));
}

.cups_body
{
	position: absolute;
	inset: 0;
	transform-origin: 70px 150px;
	transition: translate 0.22s var(--ease);
}

.cups_art
{
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.cups_cup.is_pickable:hover .cups_body,
.cups_cup.is_pickable:focus-visible .cups_body
{
	translate: 0 -14px;
}

.cups_cup.is_chosen .cups_body
{
	translate: 0 -20px;
}

@media (prefers-reduced-motion: no-preference)
{
	.cups_table.is_open .cups_spot
	{
		animation: cups_spot_pulse 1.6s ease-in-out infinite;
	}

	.cups_gem.is_shown .cups_gem_twinkle
	{
		animation: cups_twinkle 1.9s ease-in-out infinite;
	}

	.cups_cup.is_chosen .cups_body
	{
		animation: cups_jitter 0.18s ease-in-out infinite alternate;
	}

	.cups_name
	{
		animation: cups_swing 5.2s ease-in-out infinite;
	}
}

@keyframes cups_spot_pulse
{
	0%,
	100%
	{
		border-color: rgba(245, 196, 81, 0.3);
	}

	50%
	{
		border-color: rgba(245, 196, 81, 0.7);
	}
}

@keyframes cups_twinkle
{
	0%,
	60%,
	100%
	{
		opacity: 0;
		transform: scale(0.2) rotate(0deg);
	}

	75%
	{
		opacity: 1;
		transform: scale(1) rotate(60deg);
	}
}

@keyframes cups_jitter
{
	from
	{
		rotate: -2deg;
	}

	to
	{
		rotate: 2deg;
	}
}

@keyframes cups_swing
{
	0%,
	100%
	{
		rotate: -4deg;
	}

	50%
	{
		rotate: -1.5deg;
	}
}

/*
//=====================================================================================
*/

.cups_cloth
{
	position: absolute;
	left: 180px;
	top: 268px;
	z-index: 8;
	width: 640px;
	height: 330px;
	transform-origin: 50% 0%;
	pointer-events: none;
}

.cups_cloth[hidden]
{
	display: none;
}

.cups_cloth svg
{
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
	filter: drop-shadow(0 18px 18px rgba(4, 2, 12, 0.55));
}

.cups_fx
{
	position: absolute;
	left: 0;
	top: 0;
	z-index: 9;
	width: 1000px;
	height: 640px;
	pointer-events: none;
}

/*
//=====================================================================================
*/

.cups_pill
{
	min-width: 58px;
}

.cups_result
{
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--text_dim);
}

.cups_result svg
{
	width: 16px;
	height: 14px;
	opacity: 0.55;
}

.cups_result.is_win
{
	color: #6ee7b7;
}

.cups_result.is_win svg
{
	opacity: 1;
}

/*
//=====================================================================================
*/

@media (max-height: 860px) and (min-width: 1101px)
{
	.cups_count
	{
		height: 50px;
	}
}

@media (max-height: 760px) and (min-width: 1101px)
{
	.cups_stage
	{
		gap: 10px;
		padding-top: 14px;
		padding-bottom: 16px;
	}

	.cups_page .game_controls .field
	{
		margin-bottom: 10px;
	}

	.cups_page .game_controls .field_box
	{
		height: 44px;
	}

	.cups_count
	{
		gap: 4px;
		height: 46px;
	}

	.cups_random
	{
		height: 36px;
		margin-top: 8px;
	}

	.cups_page .session_chart
	{
		margin: 6px 0 8px;
	}
}

@media (max-height: 700px) and (min-width: 1101px)
{
	.cups_profit_field
	{
		display: none;
	}
}

@media (max-width: 1100px)
{
	.cups_scene
	{
		flex: none;
		height: calc((100vw - 48px) * 0.64);
		max-height: 640px;
	}
}

/*
//=====================================================================================
*/
