:root {
	--bg-color: #30384c;
	--text-color: #ffffff;
	--text-color-secondary: #ffffff;
	--text-color-dark: #000000;
	--link-color: #45ACF6;
	--table-bg: #000000;
	--tree-name-color: #ffe400;
	--tooltip-bg: #051017;
	--tooltip-border: #0c5380;
}

body {
	background-color: var(--bg-color);
	color: var(--text-color);
}

body a {
	color: var(--link-color);
}

body a:visited {
	color: var(--link-color);
}

body.light-theme {
	--bg-color: #e8e8e8;
	--text-color: #333333;
	--text-color-secondary: #000000;
	--text-color-dark: #ffffff;
	--link-color: #0066cc;
	--table-bg: #ffffff;
	--tree-name-color: #d4af37;
	--tooltip-bg: #ffffff;
	--tooltip-border: #cccccc;
}

.mySmall 		{ font-family: "Verdana", "Arial", "Helvetica", "Sans-Serif"; color: var(--text-color); font-size: 8pt; line-height: 11pt;}
.mySmallBlack 		{ font-family: "Verdana", "Arial", "Helvetica", "Sans-Serif"; color: var(--text-color-dark); font-size: 8pt; line-height: 11pt;}
.mySmallWhite 		{ font-family: "Verdana", "Arial", "Helvetica", "Sans-Serif"; color: var(--text-color); font-size: 8pt; line-height: 11pt;}
	table 		{ font-family: "Verdana", "Arial", "Helvetica", "Sans-Serif"; font-size: 8pt; line-height: 11pt;}
	
		#rankTopStyle { position: absolute;
			top: 29px;
			left: 26px;
			z-index: 99998;
       }	   
	   
		#descriptionTopStyle { 
			position: absolute !important;
			top: 20px;
			left: 50px;
			z-index: 9999999 !important;
			isolation: isolate !important;
      }	   	   
	   
		#descriptionTopStyleThird { 
			position: absolute !important;
			top: 20px;
			left: -310px;
			z-index: 9999999 !important;
			isolation: isolate !important;
       }	   	   
	   
		#descriptionTopStyleBottom { 
			position: absolute !important;
			top: -60px;
			left: 50px;
			z-index: 9999999 !important;
			isolation: isolate !important;
       }
	   
		#descriptionTopStyleThirdBottom { 
			position: absolute !important;
			top: -60px;
			left: -310px;
			z-index: 9999999 !important;
			isolation: isolate !important;
       }	   
	   
		#takeUpNoSpace { 
			position: absolute !important;
			z-index: 9999999 !important;
			isolation: isolate !important;
       }	   	   
	   
		#wrapper { 
			position: relative !important;
			z-index: 9999999 !important;
			isolation: isolate !important;
       }

		[id^="talentMouseOver"] {
			z-index: 99999999 !important;
			position: fixed !important;
			pointer-events: none !important;
			isolation: isolate !important;
			user-select: none !important;
			-webkit-user-select: none !important;
			-moz-user-select: none !important;
			-ms-user-select: none !important;
		}
		
		[id^="talentMouseOver"][style*="visibility: hidden"] {
			z-index: -1 !important;
			pointer-events: none !important;
		}
		
		[id^="talentMouseOver"]:not([style*="visibility: hidden"]) {
			pointer-events: auto !important;
			z-index: 99999999 !important;
		}

		#talentThumbStyle { position: absolute;
			top: 0px;
			user-select: none;
			-webkit-user-select: none;
			-moz-user-select: none;
			-ms-user-select: none;
       }

		#iconOver { position: absolute;
			top: -2px;
			left: -2px;
			user-select: none;
			-webkit-user-select: none;
			-moz-user-select: none;
			-ms-user-select: none;
       }
	   
		#wrapper99 { position: relative;
			z-index: 99998;
			user-select: none;
			-webkit-user-select: none;
			-moz-user-select: none;
			-ms-user-select: none;
       }	   

		#wrapper51 { position: relative;
			z-index: 51;
       }	   	   

		#wrapper49 { position: absolute;
			z-index: 49;
			user-select: none;
			-webkit-user-select: none;
			-moz-user-select: none;
			-ms-user-select: none;
       }	   	 
	   
		#wrapper50 { position: relative;
			z-index: 50;
       }	   

		#arrowdown1 { position: absolute;
			top: -19px;
			left: 8px;
			z-index: 50;
       }	   	   
	   
		#arrowdown2 { position: absolute;
			top: -75px;
			left: 8px;
			z-index: 50;
       }	   	   
	   
		#arrowdown3 { position: absolute;
			top: -131px;
			left: 8px;
			z-index: 50;
       }	   	   	   	   
	   
		#arrowdown4 { position: absolute;
			top: -215px;
			left: 8px;
			z-index: 50;
       }	   	   	   	   
	   
		#arrowacrossright { position: absolute;
			top: 7px;
			left: -19px;
			z-index: 50;
       }
	   
	   	#arrowacrossleft { position: absolute;
			top: 7px;
			left: 30px;
			z-index: 50;
       }   
	   
		#arrowdownleft { position: absolute;
			top: -43px;
			left: 9px;
			z-index: 50;
       }
	   
		#arrowdownright { position: absolute;
			top: -43px;
			left: -19px;
			z-index: 50;
       }

		#tabs { position: absolute;
			top: -14px;
			z-index: 30;
       }	   

		#tabsUp { position: absolute;
			top: -14px;
			z-index: 30;
			}
	   
#iconOverParchment{
position: absolute;
z-index: 50;

}

#alignLeft{text-align:left;float:left;color:ffffff;}
#alignRight{text-align:right;float:right;color:ffffff;}
    
.tabletopleft { width: 14; height: 13; background-color: var(--table-bg);}
.tabletop { background-color: var(--table-bg);}
.tabletopright { width: 19; height: 13; background: var(--table-bg);}
.tableleft { width: 14;  background-color: var(--table-bg);}
.tablebotleft { width: 14; height: 40; background-color: var(--table-bg);}
.tablebot { background-color: var(--table-bg);}
.tableright {  background-color: var(--table-bg);}
.tablebotright { width: 14; height: 40; background-color: var(--table-bg);}
.tablebotrightright { width: 4; height: 40; background-color: var(--table-bg);}
.tablebotleftleft { width: 4; height: 40; background-color: var(--table-bg);}

table { font-size: 12px; }

.treePadding {padding: 0px 10px 0 15px;}
.talenttreename { height:27px; line-height:27px; position: relative; left: 0px;}
.talenttreeicon { width:18px; height:18px; position: relative; top: 4px; left: 4px;}
img.p {behavior: url("../../shared/global/talents/includes/pngBehavior.htc");}

#replaceMeWithTalents {
	margin-top: 6px;
	_margin-top: 20px;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

#replaceMeWithTalents * {
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

/* Стрелки требований талантов всегда статичны по размеру */
[id^="arrowGreen"],
[id^="arrowYellow"],
.arrowdown1,
.arrowdown2,
.arrowdown3,
.arrowdown4,
.arrowdownleft,
.arrowdownright,
.arrowdown2left,
.arrowdown2right,
#arrowdown1,
#arrowdown2,
#arrowdown3,
#arrowdown4,
#arrowdownleft,
#arrowdownright,
[id^="arrowGreen"] *,
[id^="arrowYellow"] *,
.arrowdown1 *,
.arrowdown2 *,
.arrowdown3 *,
.arrowdown4 *,
.arrowdownleft *,
.arrowdownright *,
.arrowdown2left *,
.arrowdown2right * {
	transform: none !important;
	transition: none !important;
	pointer-events: none !important;
	opacity: 1 !important;
	filter: none !important;
	-webkit-filter: none !important;
	z-index: 50 !important;
}

[id^="arrowGreen"]:hover,
[id^="arrowYellow"]:hover,
.arrowdown1:hover,
.arrowdown2:hover,
.arrowdown3:hover,
.arrowdown4:hover,
.arrowdownleft:hover,
.arrowdownright:hover,
.arrowdown2left:hover,
.arrowdown2right:hover,
[id^="arrowGreen"]:hover *,
[id^="arrowYellow"]:hover * {
	transform: none !important;
	opacity: 1 !important;
	filter: none !important;
	-webkit-filter: none !important;
	z-index: 50 !important;
}

/* Стрелки не должны наследовать transform от родительских элементов при hover */
.talent-icon-container:hover [id^="arrowGreen"],
.talent-icon-container:hover [id^="arrowYellow"],
.talent-icon-container:hover .arrowdown1,
.talent-icon-container:hover .arrowdown2,
.talent-icon-container:hover .arrowdown3,
.talent-icon-container:hover .arrowdown4,
.talent-icon-container:hover .arrowdownleft,
.talent-icon-container:hover .arrowdownright,
.talent-icon-container:hover .arrowdown2left,
.talent-icon-container:hover .arrowdown2right,
.talent-icon-container:hover #arrowdown1,
.talent-icon-container:hover #arrowdown2,
.talent-icon-container:hover #arrowdown3,
.talent-icon-container:hover #arrowdown4,
.talent-icon-container:hover #arrowdownleft,
.talent-icon-container:hover #arrowdownright,
.talent-icon-container:hover [id^="arrowGreen"] *,
.talent-icon-container:hover [id^="arrowYellow"] *,
.talent-icon-container:hover .arrowdown1 *,
.talent-icon-container:hover .arrowdown2 *,
.talent-icon-container:hover .arrowdown3 *,
.talent-icon-container:hover .arrowdown4 *,
.talent-icon-container:hover .arrowdownleft *,
.talent-icon-container:hover .arrowdownright *,
.talent-icon-container:hover .arrowdown2left *,
.talent-icon-container:hover .arrowdown2right * {
	transform: none !important;
	transition: none !important;
	opacity: 1 !important;
	filter: none !important;
	-webkit-filter: none !important;
	z-index: 50 !important;
}

[id^="talentThumb"] {
	user-select: none !important;
	-webkit-user-select: none !important;
	-moz-user-select: none !important;
	-ms-user-select: none !important;
	z-index: 51 !important;
}

[id^="talentThumb"]:hover {
	z-index: 51 !important;
}

[id^="iconOver"] {
	user-select: none !important;
	-webkit-user-select: none !important;
	-moz-user-select: none !important;
	-ms-user-select: none !important;
	z-index: 51 !important;
}

[id^="iconOver"]:hover {
	z-index: 51 !important;
}

[id^="iconOverYellow"],
[id^="iconOverGreen"] {
	z-index: 51 !important;
}

[id^="iconOverYellow"]:hover,
[id^="iconOverGreen"]:hover {
	z-index: 51 !important;
}

.talent-icon-container:hover [id^="talentThumb"],
.talent-icon-container:hover [id^="iconOver"],
.talent-icon-container:hover [id^="iconOverYellow"],
.talent-icon-container:hover [id^="iconOverGreen"] {
	z-index: 51 !important;
}

.treeName {color: var(--tree-name-color); font-weight: bold; font-size: 14px; }
.treeColon {color: var(--text-color); font-size: 12px;}
.treePoint {color: var(--text-color); font-size: 12px;}
.treePoints {color: var(--text-color); font-size: 12px;}

.rankTooltip		{ font-family: "Tahoma", "Arial", "Helvetica", "Sans-Serif"; color: var(--text-color); font-size: 11px;}
.mySmall 		{ font-family: "Verdana", "Arial", "Helvetica", "Sans-Serif"; color: var(--text-color); font-size: 11px; line-height: 11pt;}
.mySmall2 		{ font-family: "Verdana", "Arial", "Helvetica", "Sans-Serif"; color: #ffd100; font-size: 11px; line-height: 11pt;}
.mySmallOff 		{ font-family: "Verdana", "Arial", "Helvetica", "Sans-Serif"; color: var(--text-color); font-size: 11px; line-height: 11pt;}
.mySmall22 		{ font-family: "Verdana", "Arial", "Helvetica", "Sans-Serif"; color: #ffd100; font-size: 11px; line-height: 11pt;}
.mySmallOff2 		{ font-family: "Verdana", "Arial", "Helvetica", "Sans-Serif"; color: var(--text-color); font-size: 11px; line-height: 11pt;}
.mySmallGreen 		{ font-family: "Verdana", "Arial", "Helvetica", "Sans-Serif"; color: #1aff1a; font-size: 11px; position: relative;}
.mySmallGreen2 		{ font-family: "Verdana", "Arial", "Helvetica", "Sans-Serif"; color: #1aff1a; font-size: 11px; position: relative;}

		.arrowdown1 { position: absolute;
			top: -19px;
			left: 8px;
			z-index: 50;
       }	   	   
	   
		.arrowdown2 { position: absolute;
			top: -75px;
			left: 8px;
			z-index: 50;
       }	   	   
	   
		.arrowdown3 { position: absolute;
			top: -131px;
			left: 8px;
			z-index: 50;
       }	   	   	   	   
	   
		.arrowdown4 { position: absolute;
			top: -215px;
			left: 8px;
			z-index: 50;
       }	   	   	   	   
	   
		.arrowacrossright { position: absolute;
			top: 7px;
			left: -19px;
			z-index: 50;
       }   
	   
		.arrowdownleft { position: absolute;
			top: -43px;
			left: 9px;
			z-index: 50;
       }
	   
		.arrowacrossleft { position: absolute;
			top: 7px;
			left: 30px;
			z-index: 50;
       }   
	   
		.arrowdownright { position: absolute;
			top: -43px;
			left: -19px;
			z-index: 50;
       }
	   
	   	.arrowdown2right { position: absolute;
			top: -100px;
			left: -19px;
			z-index: 50;
       }	   
	   
		.arrowdown2left { position: absolute;
			top: -100px;
			left: 9px;
			z-index: 50;
       }
	   
img.tpng { 
	behavior: url("../../shared/global/talents/includes/pngBehavior.htc"); 
}

/* Микро меню */
.micro-menu-container {
	position: relative;
}

.micro-menu-button {
	background-color: rgba(0, 0, 0, 0.7);
	border: 2px solid var(--text-color);
	border-radius: 50%;
	width: 40px;
	height: 40px;
	cursor: pointer;
	font-family: "Verdana", "Arial", "Helvetica", "Sans-Serif";
	font-size: 18px;
	color: var(--text-color);
	transition: all 0.3s ease;
	user-select: none;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.micro-menu-button:hover {
	background-color: rgba(0, 0, 0, 0.9);
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.light-theme .micro-menu-button {
	background-color: rgba(255, 255, 255, 0.9);
	border-color: var(--text-color);
	color: var(--text-color);
}

body.light-theme .micro-menu-button:hover {
	background-color: rgba(255, 255, 255, 1);
}

.micro-menu-icon {
	display: inline-block;
	font-size: 18px;
}

.micro-menu {
	position: absolute;
	top: 50px;
	right: 0;
	background-color: rgba(0, 0, 0, 0.9);
	border: 2px solid var(--text-color);
	border-radius: 8px;
	padding: 4px;
	min-width: 150px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
	z-index: 1001;
	animation: menuSlideDown 0.2s ease-out;
}

@keyframes menuSlideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

body.light-theme .micro-menu {
	background-color: rgba(255, 255, 255, 0.95);
	border-color: var(--text-color);
}

.micro-menu-item {
	display: flex;
	align-items: center;
	padding: 10px 12px;
	cursor: pointer;
	font-family: "Verdana", "Arial", "Helvetica", "Sans-Serif";
	font-size: 12px;
	color: var(--text-color);
	transition: all 0.2s ease;
	user-select: none;
	border-radius: 6px;
	margin: 2px 0;
}

.micro-menu-item:hover {
	background-color: rgba(255, 255, 255, 0.1);
	transform: translateX(2px);
}

body.light-theme .micro-menu-item:hover {
	background-color: rgba(0, 0, 0, 0.1);
}

.micro-menu-item-icon {
	display: inline-block;
	margin-right: 10px;
	font-size: 16px;
	width: 20px;
	text-align: center;
}

.micro-menu-item-text {
	flex: 1;
	font-size: 12px;
}

/* Кнопки уровней талантов */
.tier-buttons {
	position: fixed;
	top: 80px;
	right: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	z-index: 1002;
}

.tier-button {
	min-width: 60px;
	padding: 8px 12px;
	font-family: "Verdana", "Arial", "Helvetica", "Sans-Serif";
	font-size: 13px;
	font-weight: bold;
	color: var(--text-color);
	background-color: rgba(0, 0, 0, 0.8);
	border: 2px solid var(--text-color);
	border-radius: 6px;
	cursor: pointer;
	transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
	user-select: none;
}

.tier-button:hover {
	background-color: rgba(0, 0, 0, 0.95);
	transform: translateY(-2px);
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

.tier-button:active {
	transform: translateY(0);
}

body.light-theme .tier-button {
	background-color: rgba(255, 255, 255, 0.9);
	color: var(--text-color);
	border-color: var(--text-color);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

body.light-theme .tier-button:hover {
	background-color: rgba(255, 255, 255, 1);
}

.tier-info-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease;
	z-index: 1000;
}

.tier-info-overlay.active {
	opacity: 1;
	visibility: visible;
}

.tier-info-panel {
	position: fixed;
	top: 0;
	right: -460px;
	width: 420px;
	max-width: 90vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.94);
	border-left: 2px solid var(--text-color);
	box-shadow: -6px 0 16px rgba(0, 0, 0, 0.5);
	display: flex;
	flex-direction: column;
	transition: right 0.3s ease;
	z-index: 1003;
}

.tier-info-panel.active {
	right: 0;
}

.tier-info-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 20px;
	gap: 10px;
	overflow-y: auto;
	overflow-x: hidden;
}

.tier-info-close {
	align-self: flex-end;
	background: none;
	border: none;
	color: var(--text-color);
	font-size: 20px;
	cursor: pointer;
	padding: 0;
	width: 28px;
	height: 28px;
	line-height: 28px;
	text-align: center;
	border-radius: 4px;
	transition: background-color 0.2s ease;
}

.tier-info-close:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.tier-info-title {
	font-size: 20px;
	font-weight: bold;
	color: var(--tree-name-color);
	margin: 0 0 12px;
	font-family: "Verdana", "Arial", "Helvetica", "Sans-Serif";
}

.tier-info-section {
	margin-bottom: 16px;
}

.tier-info-section h4 {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: bold;
	color: var(--tree-name-color);
	font-family: "Verdana", "Arial", "Helvetica", "Sans-Serif";
}

.tier-info-section p {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-color);
	white-space: pre-line;
}

body.light-theme .tier-info-overlay {
	background: rgba(0, 0, 0, 0.35);
}

body.light-theme .tier-info-panel {
	background-color: rgba(255, 255, 255, 0.98);
}

body.light-theme .tier-info-close:hover {
	background-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .tier-info-section p {
	color: var(--text-color);
}

body.tier-info-open {
	overflow: hidden;
}

.tier-info-content::-webkit-scrollbar {
	width: 6px;
}

.tier-info-content::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.08);
}

.tier-info-content::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.25);
	border-radius: 3px;
}

body.light-theme .tier-info-content::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.08);
}

body.light-theme .tier-info-content::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.25);
}

.tier-info-section:last-child {
	margin-bottom: 0;
}

@media (max-width: 768px) {
	.tier-buttons {
		top: auto;
		bottom: 20px;
		right: 20px;
		flex-direction: row;
	}

	.tier-info-panel {
		width: 100%;
		max-width: 100%;
	}
}

body.light-theme .tier-butto
#yandex-metric-indicator {
	position: fixed;
	bottom: 10px;
	right: 10px;
	background-color: rgba(0, 0, 0, 0.7);
	border: 2px solid var(--text-color);
	border-radius: 6px;
	padding: 6px 12px;
	font-family: "Verdana", "Arial", "Helvetica", "Sans-Serif";
	font-size: 10px;
	color: var(--text-color);
	z-index: 9999;
	opacity: 0.7;
	transition: opacity 0.3s;
	cursor: default;
	user-select: none;
}

#yandex-metric-indicator:hover {
	opacity: 1;
}

body.light-theme #yandex-metric-indicator {
	background-color: rgba(255, 255, 255, 0.9);
	border-color: var(--text-color);
	color: var(--text-color);
}

body.light-theme td[bgcolor="#051017"] {
	background-color: var(--tooltip-bg) !important;
}

body.light-theme td[bgcolor="#0c5380"] {
	background-color: var(--tooltip-border) !important;
}

body.light-theme td[style*="bgcolor = \"#000000\""],
body.light-theme td[bgcolor="#000000"] {
	background-color: var(--table-bg) !important;
}

body.light-theme span[style*="color: white"],
body.light-theme span[style*="color:white"] {
	color: var(--text-color) !important;
}

body.light-theme .talentNameStyle {
	color: var(--text-color) !important;
}

body.light-theme .talentDescriptionStyle,
body.light-theme span[style*="color: #ffd100"],
body.light-theme span[style*="color:#ffd100"] {
	color: #8b6914 !important;
}

body.light-theme font[color="ffffff"],
body.light-theme font[color="#ffffff"],
body.light-theme font[color="fff"],
body.light-theme font[color="#fff"] {
	color: var(--text-color) !important;
}

body.light-theme #hideBoxBot td[bgcolor="#000000"],
body.light-theme #hideBoxBot td[style*="bgcolor = \"#000000\""] {
	background-color: var(--table-bg) !important;
}

body.light-theme #armoryOver span,
body.light-theme .rankTooltip {
	color: var(--text-color) !important;
}

#armoryOver,
[id^="armoryOver"] {
	z-index: 9999999 !important;
	position: relative;
}

[id^="talentMouseOver"] > div,
[id^="talentMouseOver"] > div > div,
[id^="talentMouseOver"] table,
[id^="talentMouseOver"] td,
[id^="talentMouseOver"] * {
	z-index: 9999999 !important;
	position: relative;
}

[id^="talentMouseOver"] #descriptionTopStyle,
[id^="talentMouseOver"] #descriptionTopStyleThird,
[id^="talentMouseOver"] #descriptionTopStyleBottom,
[id^="talentMouseOver"] #descriptionTopStyleThirdBottom {
	position: absolute !important;
	isolation: isolate !important;
}

body.light-theme .rankTooltip span {
	color: var(--text-color) !important;
}

#copyUrlButton {
	transition: background-color 0.3s ease;
}

#copyUrlButton:hover {
	background-color: #45a049 !important;
}

body.light-theme #copyUrlButton {
	background-color: #4CAF50;
	color: white;
}

body.light-theme #copyUrlNotification {
	color: #4CAF50;
}

.hotkeys-info {
	margin-top: 15px;
	padding: 12px;
	background-color: rgba(0, 0, 0, 0.6);
	border: 1px solid var(--text-color);
	border-radius: 6px;
	font-size: 12px;
	position: relative;
	z-index: 10000001;
}

.hotkeys-info-header {
	color: var(--text-color);
	font-weight: bold;
	margin-bottom: 10px;
	font-size: 13px;
	font-family: "Verdana", "Arial", "Helvetica", "Sans-Serif";
}

.hotkeys-info-content {
	color: var(--text-color);
}

.hotkey-item {
	margin-bottom: 8px;
	font-size: 11px;
	font-family: "Verdana", "Arial", "Helvetica", "Sans-Serif";
	line-height: 1.5;
}

.hotkey-item:last-child {
	margin-bottom: 0;
}

.hotkey-item kbd {
	display: inline-block;
	padding: 2px 6px;
	margin: 0 2px;
	background-color: rgba(255, 255, 255, 0.1);
	border: 1px solid var(--text-color);
	border-radius: 3px;
	font-family: "Courier New", monospace;
	font-size: 10px;
	color: var(--text-color);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.light-theme .hotkeys-info {
	background-color: rgba(255, 255, 255, 0.6);
	border-color: var(--text-color);
}

body.light-theme .hotkey-item kbd {
	background-color: rgba(0, 0, 0, 0.1);
	border-color: var(--text-color);
	color: var(--text-color);
}

.talent-search-container {
	position: fixed;
	top: 20px;
	left: 20px;
	z-index: 10000000;
	width: 300px;
	height: calc(100vh - 40px);
	display: flex;
	flex-direction: column;
}

.description-search-input {
	margin-top: 10px;
	position: relative;
}

.description-search-input:focus {
	border-color: #FFFFFF;
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

body.light-theme .description-search-input:focus {
	border-color: #000000;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.talent-search-input {
	width: 100%;
	padding: 10px 35px 10px 12px;
	font-size: 14px;
	font-family: "Verdana", "Arial", "Helvetica", "Sans-Serif";
	border: 2px solid var(--text-color);
	border-radius: 6px;
	background-color: rgba(0, 0, 0, 0.8);
	color: var(--text-color);
	outline: none;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.talent-search-input:focus {
	border-color: #4CAF50;
	background-color: rgba(0, 0, 0, 0.95);
	box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

body.light-theme .talent-search-input {
	background-color: rgba(255, 255, 255, 0.95);
	border-color: var(--text-color);
	color: var(--text-color);
}

body.light-theme .talent-search-input:focus {
	background-color: rgba(255, 255, 255, 1);
	border-color: #4CAF50;
}

.clear-search-btn {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: var(--text-color);
	cursor: pointer;
	font-size: 18px;
	padding: 5px;
	line-height: 1;
	opacity: 0.7;
	transition: opacity 0.2s;
	z-index: 10000003;
}

.talent-search-input {
	position: relative;
}

.description-search-input {
	position: relative;
}

.clear-search-btn:hover {
	opacity: 1;
}

.talent-search-results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 5px;
	background-color: rgba(0, 0, 0, 0.95);
	border: 2px solid var(--text-color);
	border-radius: 6px;
	max-height: 400px;
	overflow-y: auto;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
	display: none;
	z-index: 10000002;
}

body.light-theme .talent-search-results {
	background-color: rgba(255, 255, 255, 0.95);
	border-color: var(--text-color);
}

.search-results-header {
	padding: 8px 12px;
	font-size: 12px;
	color: var(--text-color);
	border-bottom: 1px solid var(--text-color);
	font-weight: bold;
	background-color: rgba(255, 255, 255, 0.05);
}

body.light-theme .search-results-header {
	background-color: rgba(0, 0, 0, 0.05);
}

.search-result-item {
	padding: 10px 12px;
	cursor: pointer;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--text-color);
	font-size: 13px;
	transition: background-color 0.2s;
}

.search-result-item:hover {
	background-color: rgba(76, 175, 80, 0.2);
}

body.light-theme .search-result-item {
	border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .search-result-item:hover {
	background-color: rgba(76, 175, 80, 0.15);
}

.search-result-item strong {
	color: #4CAF50;
	font-weight: bold;
}

.search-result-meta {
	font-size: 11px;
	opacity: 0.7;
	margin-left: 8px;
}

.search-no-results {
	padding: 15px;
	text-align: center;
	color: var(--text-color);
	font-size: 13px;
	opacity: 0.7;
}

.search-highlight {
	transition: all 0.3s ease !important;
}

.search-highlight-pulse {
	animation: pulseYellowBorder 1.5s ease-in-out infinite !important;
	box-shadow: 0 0 13px 4px rgba(255, 215, 0, 0.6) !important;
	outline: 2px solid #FFD700 !important;
	outline-offset: 1px !important;
	z-index: 9999 !important;
}

@keyframes pulseYellowBorder {
	0%, 100% {
		box-shadow: 0 0 13px 4px rgba(255, 215, 0, 0.6) !important;
		outline-color: #FFD700 !important;
	}
	50% {
		box-shadow: 0 0 22px 7px rgba(255, 215, 0, 0.9) !important;
		outline-color: #FFA500 !important;
	}
}

.search-highlight-blink {
	animation: blinkYellowBorder 0.6s ease-in-out !important;
	box-shadow: 0 0 18px 5px rgba(255, 215, 0, 0.8) !important;
	outline: 3px solid #FFD700 !important;
	outline-offset: 1px !important;
	z-index: 9999 !important;
}

@keyframes blinkYellowBorder {
	0% {
		box-shadow: 0 0 18px 5px rgba(255, 215, 0, 0.8) !important;
		outline-color: #FFD700 !important;
	}
	25% {
		box-shadow: 0 0 27px 9px rgba(255, 215, 0, 1) !important;
		outline-color: #FFA500 !important;
	}
	50% {
		box-shadow: 0 0 18px 5px rgba(255, 215, 0, 0.8) !important;
		outline-color: #FFD700 !important;
	}
	75% {
		box-shadow: 0 0 27px 9px rgba(255, 215, 0, 1) !important;
		outline-color: #FFA500 !important;
	}
	100% {
		box-shadow: 0 0 18px 5px rgba(255, 215, 0, 0.8) !important;
		outline-color: #FFD700 !important;
	}
}

.search-highlight-pulse-white {
	animation: pulseWhiteBorder 1.5s ease-in-out infinite !important;
	box-shadow: 0 0 13px 4px rgba(255, 255, 255, 0.6) !important;
	outline: 2px solid #FFFFFF !important;
	outline-offset: 1px !important;
	z-index: 9999 !important;
}

@keyframes pulseWhiteBorder {
	0%, 100% {
		box-shadow: 0 0 13px 4px rgba(255, 255, 255, 0.6) !important;
		outline-color: #FFFFFF !important;
	}
	50% {
		box-shadow: 0 0 22px 7px rgba(255, 255, 255, 0.9) !important;
		outline-color: #CCCCCC !important;
	}
}

.search-highlight-blink-white {
	animation: blinkWhiteBorder 0.6s ease-in-out !important;
	box-shadow: 0 0 18px 5px rgba(255, 255, 255, 0.8) !important;
	outline: 3px solid #FFFFFF !important;
	outline-offset: 1px !important;
	z-index: 9999 !important;
}

@keyframes blinkWhiteBorder {
	0% {
		box-shadow: 0 0 18px 5px rgba(255, 255, 255, 0.8) !important;
		outline-color: #FFFFFF !important;
	}
	25% {
		box-shadow: 0 0 27px 9px rgba(255, 255, 255, 1) !important;
		outline-color: #CCCCCC !important;
	}
	50% {
		box-shadow: 0 0 18px 5px rgba(255, 255, 255, 0.8) !important;
		outline-color: #FFFFFF !important;
	}
	75% {
		box-shadow: 0 0 27px 9px rgba(255, 255, 255, 1) !important;
		outline-color: #CCCCCC !important;
	}
	100% {
		box-shadow: 0 0 18px 5px rgba(255, 255, 255, 0.8) !important;
		outline-color: #FFFFFF !important;
	}
}

.search-highlight-combined {
	position: relative !important;
	z-index: 9999 !important;
}

.search-highlight-blink-combined {
	position: relative !important;
	z-index: 9999 !important;
}

.search-highlight-combined::before {
	content: '';
	position: absolute;
	top: -2px;
	left: -2px;
	right: 50%;
	bottom: -2px;
	border: 2px solid #FFD700;
	border-right: none;
	border-radius: 3px 0 0 3px;
	box-shadow: -4px 0 13px 4px rgba(255, 215, 0, 0.6);
	pointer-events: none;
	z-index: 10000;
	animation: pulseYellowBorder 1.5s ease-in-out infinite;
}

.search-highlight-combined::after {
	content: '';
	position: absolute;
	top: -2px;
	left: 50%;
	right: -2px;
	bottom: -2px;
	border: 2px solid #FFFFFF;
	border-left: none;
	border-radius: 0 3px 3px 0;
	box-shadow: 4px 0 13px 4px rgba(255, 255, 255, 0.6);
	pointer-events: none;
	z-index: 10000;
	animation: pulseWhiteBorder 1.5s ease-in-out infinite;
}

body.light-theme .warrior-title-image {
	filter: invert(1) brightness(3) contrast(2.5);
	-webkit-filter: invert(1) brightness(3) contrast(2.5);
	image-rendering: -webkit-optimize-contrast;
	image-rendering: crisp-edges;
}

.talent-click-animation {
	animation: talentClickPulse 0.4s ease-out;
}

@keyframes talentClickPulse {
	0% {
		transform: scale(1);
		filter: brightness(1);
	}
	50% {
		transform: scale(1.15);
		filter: brightness(1.4);
	}
	100% {
		transform: scale(1);
		filter: brightness(1);
	}
}

.talent-icon-container {
	transition: all 0.3s ease;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

.talent-icon-container:hover {
	transform: scale(1.05);
	filter: brightness(1.2);
}

.talent-icon-container.talent-available {
	animation: talentAvailableGlow 2s ease-in-out infinite;
}

@keyframes talentAvailableGlow {
	0%, 100% {
		box-shadow: 0 0 4px rgba(76, 175, 80, 0.5);
	}
	50% {
		box-shadow: 0 0 13px rgba(76, 175, 80, 0.8);
	}
}

.talent-icon-container.talent-maxed {
	position: relative;
}

.talent-icon-container.talent-maxed::after {
	display: none;
}

@keyframes talentMaxedGlow {
	0%, 100% {
		box-shadow: 0 0 7px rgba(255, 215, 0, 0.6);
		opacity: 0.8;
	}
	50% {
		box-shadow: 0 0 13px rgba(255, 215, 0, 1);
		opacity: 1;
	}
}

.talent-dependency-highlight {
	outline: 1px solid #4CAF50 !important;
	outline-offset: 0px !important;
	box-shadow: 0 0 4px rgba(76, 175, 80, 0.4) !important;
	animation: dependencyPulse 1.5s ease-in-out infinite;
	z-index: 9998 !important;
}

@keyframes dependencyPulse {
	0%, 100% {
		outline-color: #4CAF50;
		box-shadow: 0 0 4px rgba(76, 175, 80, 0.4);
	}
	50% {
		outline-color: #66BB6A;
		box-shadow: 0 0 7px rgba(76, 175, 80, 0.6);
	}
}

.talent-required-highlight {
	outline: 1px solid #FF6B6B !important;
	outline-offset: 0px !important;
	box-shadow: 0 0 4px rgba(255, 107, 107, 0.4) !important;
	animation: requiredPulse 1.5s ease-in-out infinite;
	z-index: 9998 !important;
}

@keyframes requiredPulse {
	0%, 100% {
		outline-color: #FF6B6B;
		box-shadow: 0 0 4px rgba(255, 107, 107, 0.4);
	}
	50% {
		outline-color: #FF8787;
		box-shadow: 0 0 7px rgba(255, 107, 107, 0.6);
	}
}

.points-indicator {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 12px;
	font-weight: bold;
	font-size: 14px;
	transition: all 0.3s ease;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.points-indicator.points-low {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	animation: pointsLowPulse 2s ease-in-out infinite;
}

.points-indicator.points-medium {
	background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
	color: #333;
}

.points-indicator.points-high {
	background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
	color: #333;
}

@keyframes pointsLowPulse {
	0%, 100% {
		transform: scale(1);
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	}
	50% {
		transform: scale(1.05);
		box-shadow: 0 4px 12px rgba(245, 87, 108, 0.5);
	}
}

.points-indicator-update {
	animation: pointsUpdateFlash 0.5s ease-out;
}

@keyframes pointsUpdateFlash {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.2);
		background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
	}
	100% {
		transform: scale(1);
	}
}

.talent-rank-update {
	animation: rankUpdateBounce 0.5s ease-out;
}

@keyframes rankUpdateBounce {
	0% {
		transform: scale(1);
	}
	30% {
		transform: scale(1.3);
	}
	60% {
		transform: scale(0.9);
	}
	100% {
		transform: scale(1);
	}
}

.talent-fade-in {
	animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: scale(0.8);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.talent-fade-out {
	animation: fadeOut 0.3s ease-out;
}

@keyframes fadeOut {
	from {
		opacity: 1;
		transform: scale(1);
	}
	to {
		opacity: 0;
		transform: scale(0.8);
	}
}

body.light-theme .talent-dependency-highlight {
	outline-color: #2e7d32 !important;
	box-shadow: 0 0 10px rgba(46, 125, 50, 0.4) !important;
}

body.light-theme .talent-required-highlight {
	outline-color: #c62828 !important;
	box-shadow: 0 0 10px rgba(198, 40, 40, 0.4) !important;
}

/* Окно Бонусы */
.bonuses-panel {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	border: 2px solid var(--text-color);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
	z-index: 10000001;
}

body.light-theme .bonuses-panel {
	background-color: rgba(255, 255, 255, 0.95);
	border-color: var(--text-color);
}

.bonuses-panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px;
	border-bottom: 1px solid var(--text-color);
	background-color: rgba(0, 0, 0, 0.5);
	flex-shrink: 0;
}

body.light-theme .bonuses-panel-header {
	background-color: rgba(255, 255, 255, 0.7);
	border-bottom-color: var(--text-color);
}

.bonuses-panel-header h3 {
	margin: 0;
	font-size: 16px;
	color: var(--text-color);
	font-family: "Verdana", "Arial", "Helvetica", "Sans-Serif";
	font-weight: bold;
}

.bonuses-close-btn {
	background: none;
	border: none;
	color: var(--text-color);
	font-size: 20px;
	cursor: pointer;
	padding: 0;
	width: 24px;
	height: 24px;
	line-height: 24px;
	text-align: center;
	border-radius: 4px;
	transition: background-color 0.2s;
}

.bonuses-close-btn:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

body.light-theme .bonuses-close-btn:hover {
	background-color: rgba(0, 0, 0, 0.1);
}

.bonuses-panel-content {
	flex: 1 1 auto;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 10px;
	min-height: 0;
	height: 100%;
}

.bonuses-panel-content::-webkit-scrollbar {
	width: 8px;
}

.bonuses-panel-content::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.2);
	border-radius: 4px;
}

.bonuses-panel-content::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.3);
	border-radius: 4px;
}

.bonuses-panel-content::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.5);
}

.static-bonuses-section {
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

body.light-theme .static-bonuses-section {
	border-bottom-color: rgba(0, 0, 0, 0.2);
}

.static-bonuses-header {
	margin-bottom: 12px;
}

.static-bonuses-header h4 {
	margin: 0;
	font-size: 14px;
	font-weight: bold;
	color: var(--tree-name-color);
	font-family: "Verdana", "Arial", "Helvetica", "Sans-Serif";
}

.static-bonuses-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.static-bonus-item {
	font-size: 12px;
	color: var(--text-color);
	font-family: "Verdana", "Arial", "Helvetica", "Sans-Serif";
	line-height: 1.6;
	padding: 4px 0;
}

.static-bonus-name {
	color: var(--text-color);
	font-weight: normal;
}

.static-bonus-value {
	color: #4CAF50;
	font-weight: bold;
	margin-left: 4px;
}

.abilities-bonuses-section {
	margin-top: 15px;
}

.abilities-bonuses-header {
	margin-bottom: 12px;
}

.abilities-bonuses-header h4 {
	margin: 0;
	font-size: 14px;
	font-weight: bold;
	color: var(--tree-name-color);
	font-family: "Verdana", "Arial", "Helvetica", "Sans-Serif";
}

.bonuses-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bonus-ability-group {
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	padding: 12px;
	transition: background-color 0.2s;
}

body.light-theme .bonus-ability-group {
	background-color: rgba(0, 0, 0, 0.05);
	border-color: rgba(0, 0, 0, 0.2);
}

.bonus-ability-group:hover {
	background-color: rgba(255, 255, 255, 0.08);
}

body.light-theme .bonus-ability-group:hover {
	background-color: rgba(0, 0, 0, 0.08);
}

.bonus-ability-name {
	font-size: 14px;
	font-weight: bold;
	color: var(--tree-name-color);
	margin-bottom: 8px;
	font-family: "Verdana", "Arial", "Helvetica", "Sans-Serif";
}

.bonus-talent-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bonus-talent-item {
	font-size: 12px;
	color: var(--text-color);
	padding: 6px 8px 6px 12px;
	position: relative;
	font-family: "Verdana", "Arial", "Helvetica", "Sans-Serif";
	line-height: 1.4;
	display: block;
	width: 100%;
	box-sizing: border-box;
	border: 1px solid transparent;
	border-radius: 4px;
	margin: 2px 0;
	transition: all 0.2s ease;
}

.bonus-talent-item:hover {
	border-color: rgba(76, 175, 80, 0.5);
	background-color: rgba(76, 175, 80, 0.1);
}

body.light-theme .bonus-talent-item:hover {
	border-color: rgba(46, 125, 50, 0.5);
	background-color: rgba(46, 125, 50, 0.1);
}

.bonus-talent-item::before {
	content: "•";
	position: absolute;
	left: 0;
	color: #4CAF50;
	font-weight: bold;
}

.bonus-talent-name {
	color: #4CAF50;
	font-weight: bold;
	pointer-events: none;
}

.bonus-talent-rank {
	color: #FFD100;
	font-weight: bold;
	pointer-events: none;
}

.bonuses-empty {
	text-align: center;
	padding: 40px 20px;
	color: rgba(255, 255, 255, 0.5);
	font-size: 14px;
	font-family: "Verdana", "Arial", "Helvetica", "Sans-Serif";
}

body.light-theme .bonuses-empty {
	color: rgba(0, 0, 0, 0.5);
}

/* Тултип для таланта в окне бонусов */
.bonus-talent-tooltip {
	position: fixed;
	z-index: 9999999999 !important;
	background-color: var(--tooltip-bg);
	border: 2px solid var(--tooltip-border);
	border-radius: 6px;
	padding: 12px;
	max-width: 350px;
	min-width: 200px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.2s ease-in-out;
	pointer-events: none;
	font-family: "Verdana", "Arial", "Helvetica", "Sans-Serif";
	word-wrap: break-word;
	isolation: isolate;
	transform: translateZ(0);
	will-change: transform;
}

body.light-theme .bonus-talent-tooltip {
	background-color: var(--tooltip-bg);
	border-color: var(--tooltip-border);
}

.bonus-tooltip-name {
	font-size: 14px;
	font-weight: bold;
	color: var(--tree-name-color);
	margin-bottom: 8px;
	line-height: 1.4;
}

.bonus-tooltip-description {
	font-size: 12px;
	color: var(--text-color);
	line-height: 1.5;
}

.bonus-tooltip-description br {
	margin-bottom: 4px;
}

body.light-theme .bonus-tooltip-description {
	color: var(--text-color);
}

body.light-theme .bonus-tooltip-description font[color="ffffff"],
body.light-theme .bonus-tooltip-description font[color="#ffffff"] {
	color: var(--text-color) !important;
}

@media (max-width: 768px) {
	.talent-search-container {
		width: calc(100% - 40px);
		max-width: 300px;
	}
	
	.hotkeys-info {
		font-size: 11px;
	}
	
	.hotkey-item {
		font-size: 10px;
	}
	
	.bonuses-panel {
		width: calc(100vw - 40px);
		max-width: 350px;
	}
}