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

.tower_levels .segment
{
	font-size: 13px;
}

.tower_random
{
	width: 100%;
	height: 40px;
	margin-top: 10px;
}

.tower_page .play_button:disabled
{
	cursor: default;
	opacity: 0.55;
	filter: saturate(0.6);
}

.tower_stage
{
	gap: 0;
	padding: 16px 20px 16px;
	background: linear-gradient(180deg, #0c0a1f 0%, #130f30 52%, #1b1442 100%);
}

.tower_backdrop
{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.backdrop_star
{
	fill: #fff;
	opacity: 0.55;
}

.backdrop_star:nth-child(3n)
{
	opacity: 0.32;
}

.backdrop_moon
{
	fill: #f3eecf;
	opacity: 0.9;
}

.backdrop_far
{
	fill: #1f1749;
}

.backdrop_mid
{
	fill: #19123d;
}

.backdrop_near
{
	fill: #130d2f;
}

.tower_stage .tower_top
{
	position: absolute;
	top: 16px;
	left: 22px;
	right: 22px;
	z-index: 4;
	pointer-events: none;
}

.tower_stage .stage_status
{
	max-width: 32%;
}

.tower_stage .recent_list
{
	max-width: 34%;
	pointer-events: auto;
}

.tower_sparks
{
	z-index: 7;
}

.tower_scene
{
	position: relative;
	z-index: 1;
	flex: 1 1 0;
	min-height: 0;
}

.tower_rig
{
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 840px;
	height: 800px;
	margin-left: -420px;
	transform-origin: 50% 100%;
	transform: scale(var(--tower_scale, 0.6));
}

.tower_ground
{
	position: absolute;
	left: 110px;
	top: 758px;
	width: 620px;
	height: 46px;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0));
}

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

.tower_info
{
	position: absolute;
	left: 0;
	top: 214px;
	width: 160px;
	height: 504px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.info_plate
{
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 14px 13px;
	border-radius: 14px;
	background: linear-gradient(180deg, #221849, #150f30);
	border: 1px solid rgba(245, 196, 81, 0.32);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 5px #0f0a22, 0 0 0 6px rgba(245, 196, 81, 0.14), 0 18px 26px -14px rgba(0, 0, 0, 0.85);
}

.info_label
{
	color: rgba(245, 196, 81, 0.78);
	font: 700 11px/1 var(--font_body);
	letter-spacing: 0.24em;
	text-transform: uppercase;
	white-space: nowrap;
}

.info_value
{
	color: #fff;
	font: 700 29px/1 var(--font_game);
	font-stretch: condensed;
	letter-spacing: 0.01em;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
	transition: color 0.3s var(--ease);
}

.info_note
{
	overflow: hidden;
	color: var(--text_dim);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.info_note .coin
{
	width: 14px;
	height: 14px;
}

.info_next .info_value
{
	color: #fcd34d;
}

.info_level .info_value
{
	color: #c4b5fd;
}

.info_top .info_value
{
	color: #fb7185;
}

.info_now .info_value[data-state="win"]
{
	color: #6ee7b7;
}

.info_now .info_value[data-state="loss"]
{
	color: #fda4af;
}

.info_pips
{
	display: grid;
	grid-template-columns: repeat(9, minmax(0, 1fr));
	gap: 3px;
	margin-top: 2px;
}

.info_pip
{
	height: 6px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.1);
	transition: background 0.3s var(--ease);
}

.info_pip.is_done
{
	background: linear-gradient(180deg, #6ee7b7, #10b981);
}

.info_pip.is_bust
{
	background: linear-gradient(180deg, #fda4af, #e11d48);
}

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

.tower_ladder
{
	position: absolute;
	left: 680px;
	top: 214px;
	width: 160px;
	height: 504px;
	display: flex;
	flex-direction: column-reverse;
}

.ladder_plate
{
	position: relative;
	display: flex;
	flex: none;
	align-items: center;
	gap: 10px;
	height: 38px;
	margin: 6px 0 12px;
	padding: 0 12px 0 8px;
	border-radius: 10px;
	color: rgba(242, 240, 250, 0.62);
	background: linear-gradient(180deg, #1d1542, #120c2a);
	border: 1px solid rgba(245, 196, 81, 0.22);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 14px -8px rgba(0, 0, 0, 0.8);
	transition: color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.ladder_plate::before
{
	content: "";
	position: absolute;
	left: -9px;
	top: 50%;
	width: 0;
	height: 0;
	margin-top: -7px;
	border-style: solid;
	border-width: 7px 9px 7px 0;
	border-color: transparent #f5c451 transparent transparent;
	opacity: 0;
	transition: opacity 0.3s var(--ease);
}

.plate_floor
{
	display: grid;
	flex: none;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	color: rgba(245, 196, 81, 0.8);
	font: 700 12px/1 var(--font_game);
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(245, 196, 81, 0.35);
}

.plate_value
{
	margin-left: auto;
	font: 700 18px/1 var(--font_game);
	font-stretch: condensed;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.ladder_plate.is_done
{
	color: #a7f3d0;
	background: linear-gradient(180deg, rgba(16, 185, 129, 0.24), rgba(6, 78, 59, 0.3));
	border-color: rgba(52, 211, 153, 0.42);
}

.ladder_plate.is_done .plate_floor
{
	color: #052e2b;
	background: #34d399;
	border-color: #6ee7b7;
}

.ladder_plate.is_next
{
	color: #fff7d6;
	background: linear-gradient(180deg, #4a3612, #2a1d0a);
	border-color: rgba(252, 211, 77, 0.9);
	transform: translateX(-4px);
}

.ladder_plate.is_next::before
{
	opacity: 1;
}

.ladder_plate.is_next .plate_floor
{
	color: #3b2405;
	background: #fcd34d;
	border-color: #fde68a;
}

.ladder_plate.is_bust
{
	color: #fecdd3;
	background: linear-gradient(180deg, rgba(225, 29, 72, 0.3), rgba(76, 5, 25, 0.4));
	border-color: rgba(251, 113, 133, 0.6);
}

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

.tower_cabinet
{
	position: absolute;
	left: 190px;
	top: 140px;
	width: 460px;
	height: 650px;
}

.tower_parapet
{
	position: absolute;
	left: -10px;
	right: -10px;
	top: 0;
	z-index: 1;
	height: 48px;
}

.tower_merlons
{
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	display: flex;
	justify-content: space-between;
	height: 24px;
}

.tower_merlon
{
	width: 46px;
	height: 24px;
	border-radius: 6px 6px 0 0;
	background: linear-gradient(180deg, #33276e, #1d1438);
	border: 1px solid rgba(245, 196, 81, 0.34);
	border-bottom: 0;
	box-shadow: inset 0 2px 0 rgba(245, 196, 81, 0.5), inset 0 -6px 8px rgba(0, 0, 0, 0.3);
}

.tower_band
{
	position: absolute;
	left: 0;
	right: 0;
	top: 20px;
	display: grid;
	place-items: center;
	height: 28px;
	padding-left: 0.6em;
	border-radius: 6px;
	color: rgba(245, 196, 81, 0.85);
	font: 700 14px/1 var(--font_game);
	letter-spacing: 0.6em;
	white-space: nowrap;
	background: linear-gradient(180deg, #2a1e55, #191233);
	border: 1px solid rgba(245, 196, 81, 0.4);
	box-shadow: 0 0 0 4px #0f0a22, inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 16px -8px rgba(0, 0, 0, 0.8);
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

.tower_body
{
	position: absolute;
	left: 0;
	right: 0;
	top: 46px;
	height: 558px;
	border-radius: 0 0 22px 22px;
	background: #0f0a22;
	box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.9);
}

.tower_body::before
{
	content: "";
	position: absolute;
	inset: 0 6px 6px;
	border-radius: 0 0 17px 17px;
	background: radial-gradient(circle at 12px 14px, rgba(245, 196, 81, 0.8) 2.6px, transparent 3.4px), radial-gradient(circle at calc(100% - 12px) 14px, rgba(245, 196, 81, 0.8) 2.6px, transparent 3.4px), radial-gradient(circle at 12px calc(100% - 14px), rgba(245, 196, 81, 0.8) 2.6px, transparent 3.4px), radial-gradient(circle at calc(100% - 12px) calc(100% - 14px), rgba(245, 196, 81, 0.8) 2.6px, transparent 3.4px), linear-gradient(180deg, #261b4d, #1d1438 40%, #171030);
	border: 1px solid rgba(245, 196, 81, 0.3);
	border-top: 0;
}

.tower_felt
{
	position: absolute;
	inset: 18px;
	padding: 10px 14px 8px;
	border-radius: 10px;
	background: radial-gradient(ellipse 70% 45% at 50% 38%, rgba(255, 255, 255, 0.06), transparent 70%), repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.022) 0 2px, transparent 2px 5px), radial-gradient(ellipse at 50% 40%, #34248c 0%, #22185f 52%, #140d38 100%);
	box-shadow: inset 0 0 0 1.5px rgba(245, 196, 81, 0.45), inset 0 0 0 7px rgba(20, 13, 56, 0.4), inset 0 0 0 8px rgba(245, 196, 81, 0.12), inset 0 0 60px rgba(0, 0, 0, 0.5);
}

.tower_crest
{
	position: absolute;
	left: 50%;
	top: 50%;
	width: 210px;
	height: 175px;
	margin: -88px 0 0 -105px;
	opacity: 0.07;
}

.tower_base
{
	position: absolute;
	left: 0;
	right: 0;
	top: 604px;
	height: 46px;
}

.tower_step
{
	position: absolute;
	left: -24px;
	right: -24px;
	top: 0;
	height: 12px;
	background: linear-gradient(180deg, #4b3a8e, #33276e);
	clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
}

.tower_plinth
{
	position: absolute;
	left: -24px;
	right: -24px;
	top: 12px;
	display: grid;
	place-items: center;
	height: 30px;
	border-radius: 0 0 8px 8px;
	background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 5px), linear-gradient(180deg, #261b4d, #150f2e);
	box-shadow: inset 0 1.5px 0 rgba(245, 196, 81, 0.5), inset 0 0 0 1px rgba(245, 196, 81, 0.22), 0 0 0 4px #0f0a22;
}

.tower_terms
{
	padding-left: 0.4em;
	color: rgba(245, 196, 81, 0.42);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.4em;
	white-space: nowrap;
}

.tower_stand
{
	position: absolute;
	left: 50%;
	top: 0;
	width: 0;
	height: 0;
}

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

.tower_floors
{
	position: relative;
	display: flex;
	flex-direction: column-reverse;
	height: 504px;
}

.tower_floor
{
	position: relative;
	display: flex;
	flex: none;
	justify-content: center;
	gap: 12px;
	height: 56px;
	padding-top: 2px;
	transition: filter 0.35s var(--ease);
}

.floor_ledge
{
	position: absolute;
	left: -6px;
	right: -6px;
	bottom: 2px;
	height: 13px;
	border-radius: 2px 2px 5px 5px;
	background: linear-gradient(180deg, #6352b4 0, #4b3b93 4px, #e0b45a 4px, #b7862e 5.5px, #2c2160 5.5px, #1b1342 100%);
	box-shadow: 0 6px 9px rgba(0, 0, 0, 0.45);
}

.tower_floor.is_ahead,
.tower_floor.is_missed
{
	filter: brightness(0.5) saturate(0.6);
}

.tower_tile
{
	position: relative;
	z-index: 1;
	flex: none;
	width: var(--tile_width, 92px);
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	transition: transform 0.22s var(--ease), filter 0.3s var(--ease);
}

.tower_tile:disabled
{
	cursor: default;
}

.tile_cap
{
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 14px;
	overflow: hidden;
	background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.6px), radial-gradient(circle at 68% 60%, rgba(40, 20, 90, 0.25) 0 1.2px, transparent 1.8px), linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 60%), linear-gradient(90deg, #a796f2, #8d79e6 45%, #7360d0);
	clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
	transition: filter 0.2s var(--ease);
}

.tile_cap::after
{
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: linear-gradient(90deg, #a16c1c, #fde68a 50%, #a16c1c);
}

.tile_face
{
	position: absolute;
	left: 0;
	right: 0;
	top: 13px;
	bottom: 0;
	border-radius: 2px 2px 8px 8px;
	background: #0e0822;
	box-shadow: 0 8px 10px -3px rgba(0, 0, 0, 0.6);
	perspective: 160px;
}

.tile_niche
{
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	border-radius: inherit;
	background: radial-gradient(80% 90% at 50% 30%, #211750, #07050f);
	box-shadow: inset 0 0 0 1.5px rgba(245, 196, 81, 0.45), inset 0 5px 8px rgba(0, 0, 0, 0.85);
}

.tile_door
{
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	border-radius: inherit;
	background: radial-gradient(circle at 6.5px 6.5px, #fde68a 0 1.2px, #a16c1c 1.5px 2.1px, transparent 2.5px), radial-gradient(circle at calc(100% - 6.5px) 6.5px, #fde68a 0 1.2px, #a16c1c 1.5px 2.1px, transparent 2.5px), radial-gradient(circle at 6.5px calc(100% - 6.5px), #fde68a 0 1.2px, #a16c1c 1.5px 2.1px, transparent 2.5px), radial-gradient(circle at calc(100% - 6.5px) calc(100% - 6.5px), #fde68a 0 1.2px, #a16c1c 1.5px 2.1px, transparent 2.5px), radial-gradient(circle at 24% 62%, rgba(255, 255, 255, 0.07) 0 1.4px, transparent 2px), radial-gradient(circle at 74% 34%, rgba(10, 4, 30, 0.22) 0 1.8px, transparent 2.4px), radial-gradient(circle at 58% 78%, rgba(10, 4, 30, 0.18) 0 1.2px, transparent 1.8px), linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 26%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.26)), linear-gradient(180deg, #5a47b8 0%, #4433a0 48%, #2f227a 100%);
	box-shadow: inset 0 0 0 1.5px rgba(245, 196, 81, 0.62), inset 3px 3px 0 -1px rgba(255, 255, 255, 0.14), inset -3px -4px 0 -1px rgba(0, 0, 0, 0.34), inset 0 -7px 9px rgba(0, 0, 0, 0.22);
	transform-origin: 50% 100%;
	backface-visibility: hidden;
	transition: filter 0.2s var(--ease);
}

.door_gem
{
	position: relative;
	width: 11px;
	height: 11px;
	border-radius: 2px;
	background: radial-gradient(circle, rgba(253, 230, 138, 0.85) 0 1.6px, transparent 2.2px), rgba(14, 8, 36, 0.32);
	box-shadow: inset 0 0 0 1.3px rgba(245, 196, 81, 0.55), 0 1px 0 rgba(255, 255, 255, 0.12);
	rotate: 45deg;
	transition: scale 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.door_key
{
	position: absolute;
	right: 6px;
	bottom: 3px;
	color: rgba(253, 230, 138, 0.95);
	font: 700 11px/1 var(--font_game);
	opacity: 0;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
	transition: opacity 0.2s var(--ease);
}

.tile_prize
{
	position: absolute;
	left: 50%;
	top: 50%;
	width: 30px;
	height: 35px;
	margin: -19px 0 0 -15px;
	opacity: 0;
	pointer-events: none;
	filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.55));
}

.tile_skull
{
	width: 32px;
	height: 32px;
	margin: -17px 0 0 -16px;
}

.tile_glint
{
	position: absolute;
	left: 14%;
	top: -8px;
	width: 11px;
	height: 11px;
	fill: #fef9c3;
	opacity: 0;
	pointer-events: none;
}

.tile_glint_late
{
	left: auto;
	right: 12%;
	top: 2px;
	width: 8px;
	height: 8px;
}

.tower_tile.is_open .tile_door
{
	opacity: 0;
	transform: rotateX(-105deg);
	transition: transform 0.3s cubic-bezier(0.45, 0, 0.8, 0.45), opacity 0.12s linear 0.22s;
}

.tower_tile.is_safe .tile_niche
{
	background: radial-gradient(70% 85% at 50% 40%, #16645a, #052523 80%);
}

.tower_tile.is_trap .tile_niche
{
	background: radial-gradient(70% 85% at 50% 40%, #641634, #1d0610 80%);
}

.tower_tile.is_hit .tile_niche
{
	background: radial-gradient(70% 85% at 50% 40%, #c0264f, #4a0b1f 80%);
	box-shadow: inset 0 0 0 2px #fda4af, inset 0 5px 8px rgba(0, 0, 0, 0.6);
}

.tower_tile.is_safe .tile_egg,
.tower_tile.is_trap .tile_skull
{
	opacity: 1;
}

.tower_tile.is_shown
{
	filter: saturate(0.55) brightness(0.78);
}

.tower_tile.is_shown.is_safe .tile_egg,
.tower_tile.is_shown.is_trap .tile_skull
{
	opacity: 0.62;
	scale: 0.82;
}

.tower_floor.is_active .tower_tile
{
	transform: translateY(-3px);
}

.tower_floor.is_active .tower_tile:enabled:hover
{
	transform: translateY(-7px);
}

.tower_floor.is_active .tower_tile:enabled:active
{
	transform: translateY(-1px);
}

.tower_floor.is_active .tile_cap
{
	filter: brightness(1.15);
}

.tower_floor.is_active .tile_door
{
	filter: brightness(1.18) saturate(1.1);
	box-shadow: inset 0 0 0 2px #fcd34d, inset 0 0 0 4px rgba(14, 8, 36, 0.3), inset 0 -6px 9px rgba(0, 0, 0, 0.28);
}

.tower_floor.is_active .tower_tile:enabled:hover .tile_door
{
	filter: brightness(1.36) saturate(1.15);
}

.tower_floor.is_active .tower_tile:enabled:hover .door_gem
{
	scale: 1.3;
}

.tower_floor.is_active .door_key
{
	opacity: 1;
}

.tower_tile.is_pending .tile_door
{
	animation: tower_pulse 0.6s ease-in-out infinite;
}

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

.tower_roost
{
	--look_x: 0px;
	--look_y: 2px;
	position: absolute;
	left: 310px;
	top: 0;
	z-index: 4;
	width: 220px;
	height: 166px;
	pointer-events: none;
}

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

.tower_dragon g
{
	transform-box: view-box;
}

.dragon_wing_left
{
	transform-origin: 108px 116px;
}

.dragon_wing_right
{
	transform-origin: 152px 116px;
}

.dragon_tail
{
	transform-origin: 152px 172px;
}

.dragon_torso
{
	transform-origin: 130px 190px;
}

.dragon_head
{
	transform-origin: 130px 118px;
}

.dragon_pupils
{
	transform: translate(var(--look_x), var(--look_y));
	transition: transform 0.45s var(--ease);
}

.dragon_lids
{
	transform-origin: 130px 64px;
	transform: scaleY(0);
}

.dragon_brow_left
{
	transform-origin: 101px 60px;
	transition: transform 0.25s var(--ease);
}

.dragon_brow_right
{
	transform-origin: 159px 60px;
	transition: transform 0.25s var(--ease);
}

.dragon_mouth
{
	transition: opacity 0.12s linear;
}

.dragon_frown,
.dragon_roar
{
	opacity: 0;
}

.dragon_puff
{
	fill: #ece9f5;
	opacity: 0;
	transform-box: fill-box;
	transform-origin: 50% 50%;
}

.tower_dragon.is_roar .dragon_smile,
.tower_dragon.is_sulk .dragon_smile,
.tower_dragon.is_annoyed .dragon_smile
{
	opacity: 0;
}

.tower_dragon.is_roar .dragon_roar,
.tower_dragon.is_sulk .dragon_frown,
.tower_dragon.is_annoyed .dragon_frown
{
	opacity: 1;
}

.tower_dragon.is_roar .dragon_brow_left,
.tower_dragon.is_sulk .dragon_brow_left
{
	transform: translateY(3px) rotate(18deg);
}

.tower_dragon.is_roar .dragon_brow_right,
.tower_dragon.is_sulk .dragon_brow_right
{
	transform: translateY(3px) rotate(-18deg);
}

.tower_dragon.is_annoyed .dragon_brow_left
{
	transform: translateY(2px) rotate(10deg);
}

.tower_dragon.is_annoyed .dragon_brow_right
{
	transform: translateY(2px) rotate(-10deg);
}

.tower_dragon.is_sulk .dragon_lids
{
	animation: none;
	transform: scaleY(0.52);
}

.tower_dragon.is_annoyed .dragon_lids
{
	animation: none;
	transform: scaleY(0.34);
}

.tower_dragon.is_sulk .dragon_pupils
{
	transform: translate(-4px, 2px);
}

.tower_dragon.is_sulk .dragon_puff
{
	fill: #6b6578;
}

.tower_dragon.is_roar .dragon_lids
{
	animation: none;
}

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

.tower_knight
{
	--knight_x: 384px;
	--knight_y: 749px;
	position: absolute;
	left: var(--knight_x);
	top: var(--knight_y);
	z-index: 5;
	width: 52px;
	height: 62.4px;
	margin: -60.3px 0 0 -26px;
	pointer-events: none;
}

.knight_mover,
.knight_flip
{
	position: absolute;
	inset: 0;
}

.tower_knight.is_left .knight_flip
{
	transform: scaleX(-1);
}

.tower_knight.is_gone
{
	visibility: hidden;
}

.knight_art
{
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
	transform-origin: 50% 96.7%;
}

.knight_art g
{
	transform-box: view-box;
}

.knight_shadow
{
	fill: #000;
	opacity: 0.38;
}

.knight_bob
{
	transform-origin: 50px 116px;
}

.knight_cape
{
	transform-origin: 50px 66px;
}

.knight_plume
{
	transform-origin: 50px 19px;
}

.knight_eyes
{
	transform-origin: 50px 47px;
}

.knight_head
{
	transform-origin: 50px 68px;
}

.knight_sword
{
	transform-origin: 68px 72px;
}

.knight_blade
{
	transform-origin: 74.2px 88.4px;
}

.knight_shield
{
	transform-origin: 32px 72px;
}

.knight_happy,
.knight_dizzy,
.knight_shout,
.knight_stars
{
	opacity: 0;
}

.knight_stars
{
	fill: #fde047;
	transform-origin: 50px 10px;
}

.tower_knight.is_cheer .knight_eyes,
.tower_knight.is_cheer .knight_smile,
.tower_knight.is_dizzy .knight_eyes,
.tower_knight.is_dizzy .knight_smile
{
	opacity: 0;
}

.tower_knight.is_cheer .knight_happy,
.tower_knight.is_cheer .knight_shout,
.tower_knight.is_dizzy .knight_dizzy,
.tower_knight.is_dizzy .knight_shout,
.tower_knight.is_dizzy .knight_stars
{
	opacity: 1;
}

.tower_knight.is_cheer .knight_sword
{
	animation: knight_raise 0.4s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}

.tower_knight.is_cheer .knight_blade
{
	animation: knight_point 0.4s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}

.tower_knight.is_cheer .knight_shield
{
	animation: knight_guard 0.4s var(--ease) both;
}

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

.tower_flame
{
	--flame_x: 384px;
	--flame_y: 95px;
	--flame_len: 300px;
	--flame_turn: 0deg;
	position: absolute;
	left: var(--flame_x);
	top: var(--flame_y);
	z-index: 6;
	width: 78px;
	height: var(--flame_len);
	margin-left: -39px;
	opacity: 0;
	pointer-events: none;
	transform-origin: 50% 0;
	transform: rotate(var(--flame_turn));
}

.flame_art
{
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
	transform-origin: 50% 0;
}

.flame_layer
{
	transform-box: fill-box;
	transform-origin: 50% 0;
}

.flame_outer
{
	fill: #f43f5e;
}

.flame_middle
{
	fill: #fb923c;
}

.flame_inner
{
	fill: #fde047;
}

.tower_splash
{
	--splash_x: 384px;
	--splash_y: 600px;
	position: absolute;
	left: var(--splash_x);
	top: var(--splash_y);
	z-index: 7;
	width: 96px;
	height: 66px;
	margin: -58px 0 0 -48px;
	opacity: 0;
	pointer-events: none;
}

.splash_flame
{
	position: absolute;
	bottom: 0;
	width: 34px;
	height: 44px;
	transform-origin: 50% 100%;
}

.splash_left
{
	left: 6px;
	rotate: -14deg;
}

.splash_right
{
	right: 6px;
	rotate: 14deg;
}

.splash_middle
{
	left: 50%;
	width: 46px;
	height: 60px;
	margin-left: -23px;
}

.tower_puff
{
	--puff_x: 384px;
	--puff_y: 600px;
	position: absolute;
	left: var(--puff_x);
	top: var(--puff_y);
	z-index: 7;
	width: 0;
	height: 0;
	pointer-events: none;
}

.puff_cloud
{
	position: absolute;
	left: -15px;
	top: -15px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #faf8ff, #cfc9e3 58%, #8f88aa);
	opacity: 0;
}

.puff_cloud:nth-child(1)
{
	--dx: -34px;
	--dy: -12px;
}

.puff_cloud:nth-child(2)
{
	--dx: 34px;
	--dy: -14px;
}

.puff_cloud:nth-child(3)
{
	--dx: -16px;
	--dy: -38px;
}

.puff_cloud:nth-child(4)
{
	--dx: 18px;
	--dy: -36px;
}

.puff_cloud:nth-child(5)
{
	--dx: -26px;
	--dy: 10px;
}

.puff_cloud:nth-child(6)
{
	--dx: 26px;
	--dy: 10px;
}

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

@media (prefers-reduced-motion: no-preference)
{
	.dragon_wing_left
	{
		animation: dragon_flap_left 2.8s ease-in-out infinite;
	}

	.dragon_wing_right
	{
		animation: dragon_flap_right 2.8s ease-in-out infinite;
	}

	.dragon_tail
	{
		animation: dragon_tail 3.4s ease-in-out infinite;
	}

	.dragon_torso
	{
		animation: dragon_breathe 2.8s ease-in-out infinite;
	}

	.dragon_head
	{
		animation: dragon_nod 4.2s ease-in-out infinite;
	}

	.dragon_lids
	{
		animation: dragon_blink 5.2s ease-in-out infinite;
	}

	.dragon_puff
	{
		animation: dragon_puff 5.6s ease-out 1.2s infinite;
	}

	.dragon_puff_late
	{
		animation-delay: 1.45s;
	}

	.tower_dragon.is_roar .dragon_head
	{
		animation: dragon_roar 1.5s cubic-bezier(0.3, 0.7, 0.4, 1) both;
	}

	.tower_dragon.is_roar .dragon_wing_left
	{
		animation: dragon_spread_left 1.5s var(--ease) both;
	}

	.tower_dragon.is_roar .dragon_wing_right
	{
		animation: dragon_spread_right 1.5s var(--ease) both;
	}

	.tower_dragon.is_roar .dragon_torso
	{
		animation: dragon_rumble 0.18s linear 0.35s 5;
	}

	.tower_dragon.is_sulk .dragon_head
	{
		animation: dragon_sulk 3.2s ease-in-out infinite;
	}

	.tower_dragon.is_sulk .dragon_wing_left
	{
		animation: dragon_droop_left 0.6s var(--ease) both;
	}

	.tower_dragon.is_sulk .dragon_wing_right
	{
		animation: dragon_droop_right 0.6s var(--ease) both;
	}

	.tower_dragon.is_sulk .dragon_puff
	{
		animation: dragon_huff 2.4s ease-out 0.4s infinite;
	}

	.tower_dragon.is_annoyed .dragon_head
	{
		animation: dragon_huff_head 0.7s var(--ease) both;
	}

	.knight_bob
	{
		animation: knight_breathe 2.4s ease-in-out infinite;
	}

	.knight_cape
	{
		animation: knight_cape 2.9s ease-in-out infinite;
	}

	.knight_plume
	{
		animation: knight_plume 2.1s ease-in-out infinite;
	}

	.knight_eyes
	{
		animation: knight_blink 4.4s ease-in-out infinite;
	}

	.knight_sword
	{
		animation: knight_sway 2.4s ease-in-out infinite;
	}

	.tower_knight.is_cheer .knight_bob
	{
		animation: knight_hop 0.42s cubic-bezier(0.3, 0, 0.5, 1) 0.2s 6 alternate both;
	}

	.tower_knight.is_dizzy .knight_head
	{
		animation: knight_wobble 0.9s ease-in-out infinite;
	}

	.tower_knight.is_dizzy .knight_stars
	{
		animation: knight_stars 1.1s linear infinite;
	}

	.tower_tile.is_safe:not(.is_shown) .tile_egg
	{
		animation: tower_pop 0.6s cubic-bezier(0.3, 1.7, 0.5, 1) 0.16s both, tower_hover 2.6s ease-in-out 0.9s infinite;
	}

	.tower_tile.is_trap:not(.is_shown) .tile_skull
	{
		animation: tower_pop 0.5s cubic-bezier(0.3, 1.7, 0.5, 1) 0.16s both, tower_rattle 0.42s linear 0.62s 2;
	}

	.tower_tile.is_safe:not(.is_shown) .tile_glint
	{
		animation: tower_glint 0.9s ease-out 0.4s both;
	}

	.tower_tile.is_safe:not(.is_shown) .tile_glint_late
	{
		animation-delay: 0.55s;
	}

	.tower_tile.is_hit
	{
		animation: tower_jolt 0.5s var(--ease) 0.2s;
	}

	.tower_tile.is_shown.is_safe .tile_egg,
	.tower_tile.is_shown.is_trap .tile_skull
	{
		animation: tower_fade 0.35s var(--ease) both;
	}

	.tower_flame.is_burning
	{
		animation: flame_life 0.95s linear both;
	}

	.tower_flame.is_burning .flame_art
	{
		animation: flame_grow 0.95s cubic-bezier(0.2, 0.8, 0.3, 1) both;
	}

	.tower_flame.is_burning .flame_middle
	{
		animation: flame_flicker 0.16s ease-in-out infinite alternate;
	}

	.tower_flame.is_burning .flame_inner
	{
		animation: flame_flicker 0.12s ease-in-out 0.05s infinite alternate-reverse;
	}

	.tower_splash.is_burning
	{
		animation: splash_life 1s linear 0.18s both;
	}

	.tower_splash.is_burning .splash_flame
	{
		animation: splash_flicker 0.18s ease-in-out infinite alternate;
	}

	.tower_splash.is_burning .splash_middle
	{
		animation-duration: 0.14s;
		animation-direction: alternate-reverse;
	}

	.tower_puff.is_puffing .puff_cloud
	{
		animation: tower_puff 0.85s cubic-bezier(0.2, 0.7, 0.3, 1) both;
	}

	.info_now.is_pop .info_value
	{
		animation: info_pop 0.5s var(--ease);
	}
}

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

	50%
	{
		transform: rotate(-9deg) scaleX(0.94);
	}
}

@keyframes dragon_flap_right
{
	0%,
	100%
	{
		transform: rotate(-4deg);
	}

	50%
	{
		transform: rotate(9deg) scaleX(0.94);
	}
}

@keyframes dragon_spread_left
{
	0%
	{
		transform: rotate(0deg);
	}

	25%,
	75%
	{
		transform: rotate(16deg) scale(1.06);
	}

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

@keyframes dragon_spread_right
{
	0%
	{
		transform: rotate(0deg);
	}

	25%,
	75%
	{
		transform: rotate(-16deg) scale(1.06);
	}

	100%
	{
		transform: rotate(-4deg);
	}
}

@keyframes dragon_droop_left
{
	to
	{
		transform: rotate(-16deg) scaleX(0.9);
	}
}

@keyframes dragon_droop_right
{
	to
	{
		transform: rotate(16deg) scaleX(0.9);
	}
}

@keyframes dragon_tail
{
	0%,
	100%
	{
		transform: rotate(-4deg);
	}

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

@keyframes dragon_breathe
{
	50%
	{
		transform: scale(1.018, 0.985);
	}
}

@keyframes dragon_nod
{
	0%,
	100%
	{
		transform: rotate(-1.5deg);
	}

	50%
	{
		transform: rotate(2deg) translateY(1.5px);
	}
}

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

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

@keyframes dragon_puff
{
	0%
	{
		opacity: 0;
		transform: translate(0, 0) scale(0.4);
	}

	4%
	{
		opacity: 0.85;
	}

	22%
	{
		opacity: 0;
		transform: translate(-4px, -30px) scale(2.4);
	}

	100%
	{
		opacity: 0;
		transform: translate(-4px, -30px) scale(2.4);
	}
}

@keyframes dragon_huff
{
	0%
	{
		opacity: 0;
		transform: translate(0, 0) scale(0.5);
	}

	6%
	{
		opacity: 0.95;
	}

	40%
	{
		opacity: 0;
		transform: translate(-10px, -22px) scale(2.8);
	}

	100%
	{
		opacity: 0;
		transform: translate(-10px, -22px) scale(2.8);
	}
}

@keyframes dragon_roar
{
	0%
	{
		transform: rotate(0deg);
	}

	18%
	{
		transform: rotate(-5deg) translateY(-7px);
	}

	32%,
	78%
	{
		transform: rotate(3deg) translateY(5px) scale(1.04);
	}

	100%
	{
		transform: rotate(0deg);
	}
}

@keyframes dragon_rumble
{
	25%
	{
		transform: translateX(-1.5px);
	}

	75%
	{
		transform: translateX(1.5px);
	}
}

@keyframes dragon_sulk
{
	0%,
	100%
	{
		transform: rotate(-8deg) translate(-5px, 3px);
	}

	50%
	{
		transform: rotate(-6deg) translate(-4px, 1px);
	}
}

@keyframes dragon_huff_head
{
	0%
	{
		transform: rotate(0deg);
	}

	30%
	{
		transform: rotate(-4deg) translateY(-3px);
	}

	100%
	{
		transform: rotate(-1deg);
	}
}

@keyframes knight_breathe
{
	50%
	{
		transform: translateY(0.6px) scale(1.022, 0.978);
	}
}

@keyframes knight_cape
{
	0%,
	100%
	{
		transform: skewX(-3deg);
	}

	50%
	{
		transform: skewX(4deg) scaleX(1.04);
	}
}

@keyframes knight_plume
{
	0%,
	100%
	{
		transform: rotate(-5deg);
	}

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

@keyframes knight_blink
{
	0%,
	92%,
	100%
	{
		transform: scaleY(1);
	}

	95%
	{
		transform: scaleY(0.1);
	}
}

@keyframes knight_sway
{
	0%,
	100%
	{
		transform: rotate(-2deg);
	}

	50%
	{
		transform: rotate(2.5deg);
	}
}

@keyframes knight_raise
{
	from
	{
		transform: rotate(0deg);
	}

	to
	{
		transform: rotate(-110deg);
	}
}

@keyframes knight_point
{
	from
	{
		transform: rotate(0deg);
	}

	to
	{
		transform: rotate(101deg);
	}
}

@keyframes knight_guard
{
	to
	{
		transform: rotate(16deg);
	}
}

@keyframes knight_hop
{
	from
	{
		transform: translateY(0);
	}

	to
	{
		transform: translateY(-9px);
	}
}

@keyframes knight_wobble
{
	0%,
	100%
	{
		transform: rotate(-7deg);
	}

	50%
	{
		transform: rotate(7deg);
	}
}

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

@keyframes tower_pop
{
	0%
	{
		opacity: 0;
		transform: translateY(10px) scale(0.2);
	}

	100%
	{
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes tower_hover
{
	50%
	{
		transform: translateY(-2.5px) rotate(4deg);
	}
}

@keyframes tower_rattle
{
	25%
	{
		transform: rotate(-12deg);
	}

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

@keyframes tower_glint
{
	0%
	{
		opacity: 0;
		transform: scale(0.2) rotate(0deg);
	}

	35%
	{
		opacity: 1;
		transform: scale(1.2) rotate(45deg);
	}

	100%
	{
		opacity: 0;
		transform: scale(0.4) rotate(90deg);
	}
}

@keyframes tower_jolt
{
	20%
	{
		transform: translate(-3px, 1px);
	}

	40%
	{
		transform: translate(3px, -1px);
	}

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

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

@keyframes tower_fade
{
	from
	{
		opacity: 0;
		transform: scale(0.4);
	}
}

@keyframes tower_pulse
{
	50%
	{
		filter: brightness(1.45);
	}
}

@keyframes flame_life
{
	0%
	{
		opacity: 0;
	}

	5%,
	78%
	{
		opacity: 1;
	}

	100%
	{
		opacity: 0;
	}
}

@keyframes flame_grow
{
	0%
	{
		transform: scale(0.3, 0);
	}

	26%
	{
		transform: scale(1, 1);
	}

	42%
	{
		transform: scale(1.12, 1);
	}

	58%
	{
		transform: scale(0.94, 1);
	}

	74%
	{
		transform: scale(1.08, 1);
	}

	100%
	{
		transform: scale(0.6, 1.02);
	}
}

@keyframes flame_flicker
{
	from
	{
		transform: scale(0.92, 1);
	}

	to
	{
		transform: scale(1.08, 0.97);
	}
}

@keyframes splash_life
{
	0%
	{
		opacity: 0;
		transform: scale(0.3);
	}

	12%
	{
		opacity: 1;
		transform: scale(1.1);
	}

	22%,
	70%
	{
		opacity: 1;
		transform: scale(1);
	}

	100%
	{
		opacity: 0;
		transform: scale(0.6) translateY(-10px);
	}
}

@keyframes splash_flicker
{
	from
	{
		transform: scale(0.9, 1.06);
	}

	to
	{
		transform: scale(1.08, 0.92);
	}
}

@keyframes tower_puff
{
	0%
	{
		opacity: 0.95;
		transform: translate(0, 0) scale(0.3);
	}

	55%
	{
		opacity: 0.85;
	}

	100%
	{
		opacity: 0;
		transform: translate(var(--dx), var(--dy)) scale(1.5);
	}
}

@keyframes info_pop
{
	0%
	{
		scale: 1.18;
	}

	100%
	{
		scale: 1;
	}
}

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

@media (max-height: 860px) and (min-width: 1101px)
{
	.tower_page .play_hint
	{
		display: none;
	}
}

@media (max-width: 1100px)
{
	.tower_scene
	{
		flex: none;
		height: clamp(420px, 118vw, 760px);
	}
}

@media (max-width: 600px)
{
	.tower_stage .stage_status
	{
		max-width: 44%;
	}

	.tower_stage .recent_list
	{
		max-width: 50%;
	}
}

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