/**
 * OL风格 - 技能按钮样式
 * 对应原 shoushaUI/skill/main4.css
 */

#arena[data-right-layout="on"] > .skill-control {
	max-width: 220px;
	bottom: 0px;
	right: 155px;
	z-index: 0;
}

#arena[data-right-layout="off"] > .skill-control {
	max-width: 220px;
	bottom: 0px;
	left: 180px;
	z-index: 0;
}

.skill-control div {
	position: relative;
}

.skill-control .skillitem {
	float: right;
	white-space: nowrap;
	color: #f5d78e;
	font-size: 18px;
}

.skill-control > div {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
}

.skill-control > div::after {
	content: "";
	display: block;
	clear: both;
}

/* 右手布局 */
#arena[data-right-layout="on"] > .skill-control .combined {
	height: auto;
	width: auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	margin-right: 5px;
	flex-wrap: wrap-reverse;
	max-height: 150px;
}

#arena[data-right-layout="on"] > .skill-control .combined.scroll-enabled {
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: flex-start;
	align-content: flex-start;
	max-height: 135px;
	overflow-y: auto;
	overflow-x: hidden;
}

/* 左手布局 */
#arena[data-right-layout="off"] > .skill-control .combined {
	height: auto;
	width: auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-left: 5px;
	flex-wrap: wrap-reverse;
	max-height: 150px;
}

#arena[data-right-layout="off"] > .skill-control .combined.scroll-enabled {
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: flex-start;
	align-content: flex-start;
	max-height: 135px;
	overflow-y: auto;
	overflow-x: hidden;
}

/* 主动技样式 */
.skill-control > .combined > .skillitem.enable-skill {
	margin: 2px 4px;
	width: 85px;
	height: 40px;
	line-height: 40px;
	text-align: center;
	color: #ceb193;
	font-family: "FZLBJW";
	font-size: 25px;
	background-image: url("../../assets/skill/online/btnnOL1.png");
	background-size: 100% 100%;
	letter-spacing: 2px;
	flex: 0 0 auto;
	position: relative;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
}

.skill-control > .combined > .skillitem.enable-skill.select {
	background-image: url("../../assets/skill/online/btnnOL4.png");
	filter: brightness(1.2);
}

.skill-control > .combined > .skillitem.enable-skill:not(.usable):not(.select) {
	filter: grayscale(100%);
}

/* 限定技样式 */
.skill-control > .combined > .xiandingji.enable-skill {
	margin: 2px 4px;
	width: 85px;
	height: 40px;
	line-height: 40px;
	text-align: center;
	color: #ceb193;
	font-family: "FZLBJW";
	font-size: 25px;
	background-image: url("../../assets/skill/online/btnnOL1.png");
	background-size: 100% 100%;
	letter-spacing: 2px;
	flex: 0 0 auto;
	position: relative;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
}

.skill-control > .combined > .xiandingji.enable-skill.select {
	background-image: url("../../assets/skill/online/btnnOL2.png");
}

.skill-control > .combined > .xiandingji.enable-skill:not(.usable):not(.select) {
	filter: grayscale(100%);
}

/* 被动技样式 */
.skill-control > .combined > .skillitem.trigger-skill {
	margin: 2px 4px;
	width: 85px;
	height: 40px;
	line-height: 40px;
	text-align: center;
	font-size: 25px;
	color: #ceb193;
	font-family: "FZLBJW";
	background-image: url("../../assets/skill/online/btnnOL3.png");
	background-size: 100% 100%;
	letter-spacing: 2px;
	flex: 0 0 auto;
	position: relative;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 技能标记区 - 从底部向上排列 */
.skillMarks {
	overflow: visible;
	left: 110px !important;
	bottom: 0px !important;
	top: auto !important;
	z-index: 90 !important;
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
}

.skillMarks > .skillMarkItem {
	--h: 19px;
	width: 28.5px !important;
	height: 28.5px !important;
	right: 0px;
	line-height: -10px;
	text-align: center;
	display: block;
	position: relative;
	border-radius: 50%;
}

.skillMarkItem.xiandingji {
	background-image: url("../../assets/skill/online/xiandingjiOL.png");
	background-size: 100% 100%;
	text-shadow: none;
	--w: 40px;
	--h: 20px;
	width: var(--w) !important;
	height: var(--h) !important;
	display: flex;
	justify-content: center;
	align-items: center;
	color: #ddc78f;
	font-size: 14px;
	font-family: "FZLBJW";
	font-weight: bold;
	text-shadow: 0 0 2px #000;
	border-radius: 0;
	letter-spacing: 1px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.skillMarkItem.xiandingji.used {
	filter: grayscale(1);
	color: #888;
}

.skillMarkItem + .skillMarkItem {
	margin-bottom: 1px;
}

.skillMarkItem.juexingji {
	background-image: url("../../assets/skill/online/juexingjiOL.png");
	background-size: 100% 100%;
	text-shadow: none;
	--w: 30px;
	--h: calc(var(--w) * 1 / 1);
	width: var(--w);
	height: var(--h);
	display: flex;
	justify-content: center;
	align-items: center;
	color: #f5d78e;
	font-size: 16px;
	font-family: "FZLBJW";
	font-weight: bold;
	text-shadow: 0 0 2px #000;
}

.skillMarkItem.juexingji.used {
	filter: grayscale(1);
	color: #888;
}

.skillMarkItem.zhuanhuanji {
	--w: 30px;
	--h: calc(var(--w) * 1 / 1);
	width: var(--w);
	height: var(--h);
	margin-left: 2px;
	background-size: 95% 95%;
	background-repeat: no-repeat;
	transform-style: preserve-3d;
	background-image: url("../../assets/skill/online/skillitem_yinyang_bg.png");
}

.skillMarkItem.zhuanhuanji.yang {
	background-image: url("../../assets/skill/online/skillitem_yinyang_bg.png");
	animation: fanzhuan 1.5s;
}

.skillMarkItem.zhuanhuanji.yin {
	background-image: url("../../assets/skill/online/skillitem_yinyang_bg_1.png");
	animation: fanzhuan 1.5s;
}

@keyframes fanzhuan {
	0% {
		transform: rotateY(0deg) scale(1.2);
	}

	50% {
		transform: rotateY(180deg) scale(1.2);
	}

	100% {
		transform: rotateY(0deg) scale(1);
	}
}

.skillMarkItem.duty {
	background-image: url("../../assets/skill/online/mark_dutyOL.png");
	background-size: 100% 100%;
	background-repeat: no-repeat;
	display: flex;
	justify-content: center;
	align-items: center;
	color: #f5d78e;
	font-size: 16px;
	font-family: "FZLBJW";
	font-weight: bold;
	text-shadow: 0 0 2px #000;
}

.skillMarkItem.duty.fail {
	filter: grayscale(100%);
	color: #888;
}

/* 技能黄色圆点样式 */
.skill-yellow-dot {
	position: absolute;
	left: 75px;
	top: 2px;
	width: 12px;
	height: 12px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #c9bc73;
	font-weight: bold;
	background: none;
	border-radius: 0;
}

/* 限定技pass图片样式 */
.skill-xianding-pass {
	position: absolute;
	left: 1px;
	top: 1px;
	width: 15px;
	height: 15px;
	z-index: 3;
	pointer-events: none;
}

/* 转换技图片样式 */
.skill-zhuanhuanji-img {
	position: absolute;
	left: 1px;
	top: 1px;
	width: 15px;
	height: 15px;
	z-index: 3;
	pointer-events: none;
}

/* 滚动指示器样式 */
.skill-control.scroll-enabled::after {
	content: "";
	position: absolute;
	width: 30px;
	height: 30px;
	z-index: 10;
	pointer-events: none;
	opacity: 0.8;
	background-image: url("../../assets/skill/online/shop_move_down.png");
	background-size: 100% 100%;
	background-repeat: no-repeat;
	animation: scroll-bounce 2s infinite;
}

#arena[data-right-layout="on"] > .skill-control.scroll-enabled::after {
	right: auto;
	left: 105px;
	bottom: 0px;
}

@keyframes scroll-bounce {
	0%,
	20%,
	50%,
	80%,
	100% {
		transform: translateY(0);
	}

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

	60% {
		transform: translateY(-2px);
	}
}
