.window, .window, .windowMedium, .abilitesBar{
	z-index: 2;
	color: #FFD5A5;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 0px 2px 11px 4px #0000008a;
	background-color: #0000008a;
	box-sizing: border-box;
	position: relative;
	background-image: linear-gradient(#ffffff00 25%, transparent 75%);

	flex-direction: column;
	gap: 10px;
	
	background-image: url(/img/ui/frame_regular/center.png);
	background-size: 100%;
	background-position: center;
	padding: 25px;
	box-sizing: border-box;
}
.abilitesBar{
	background-image: url(/img/ui/abilites_bar/bg_center.png);
	background-position: center;
	background-size: contain;
}
.window{
	width: var(--size);
	height: var(--size);
	align-self: center;
	justify-self: center;
}

:is(.abilitesBar)::before, :is(.abilitesBar)::after{
	content: '';
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	position: absolute;
	background-image: url(/img/ui/frame_regular/footer.png);
	background-size: 100% auto;
	background-repeat: no-repeat;
	background-position: center bottom;
	z-index: 0;
}
:is(.abilitesBar)::before{
	background-image: url(/img/ui/abilites_bar/left.png);
	background-size: auto 100%;
	background-position: left;
}
:is(.abilitesBar)::after{
	background-image: url(/img/ui/abilites_bar/right.png);
	background-size: auto 100%;
	background-position: right;
}
:is(.abilitesBar) > * {
	position: relative;
	z-index: 1;
}
.window.content{
	padding: 25px;
}
.window h2, .window-title{
	z-index: 2;
	color: #9DE9F8;
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	background-image: url(/img/ui/frame_regular/header.png);
	background-repeat: no-repeat;
	width: calc(100% + 25px + 25px);
	background-size: 100% auto;
	margin: -25px -25px 0 -25px;
	padding-top: 17px;
	padding-bottom: 8px;
	aspect-ratio: 800 / 140;
	font-size: 14px;
}
.windowRegular :is(.window-title, h2){
	background-image: url(/img/ui/frame_regular/header.png);
	aspect-ratio: 800 / 140;
}
.windowMedium :is(.window-title, h2){
	background-image: url(/img/ui/frame_medium/header_medium.png);
	aspect-ratio: 1910 / 140;
}
.window, .windowRegular{
	margin-top: 7px;
	margin-right: 4px;
	--ratio: calc(800 / 300);
	--originalWidth: 800;
	--newWidth: calc(var(--originalWidth) / var(--ratio));
	width: calc(var(--newWidth) * 1px);
	min-width: calc(var(--newWidth) * 1px);
	background-image: url(/img/ui/frame_regular/footer.png), url(/img/ui/frame_regular/header_empty.png), url(/img/ui/frame_regular/left.png), url(/img/ui/frame_regular/right.png), url(/img/ui/frame_regular/center_noBorders.png);
	background-size: 100%, 100%, calc(var(--newWidth) / var(--originalWidth) * 46px), calc(var(--newWidth) / var(--originalWidth) * 46px), calc(var(--newWidth) / var(--originalWidth) * 706px);
	background-position: bottom, top, left, right, top;
	background-repeat: no-repeat, no-repeat, repeat-y, repeat-y, repeat;
}
.windowLong{
	--ratio: calc(2210 / 800);
	--originalWidth: 2210;
	--newWidth: calc(var(--originalWidth) / var(--ratio));
	width: calc(var(--newWidth) * 1px);
	min-width: calc(var(--newWidth) * 1px);
	background-image: url(/img/ui/frame_regular/footer_long.png), url(/img/ui/frame_regular/left.png), url(/img/ui/frame_regular/right.png), url(/img/ui/frame_regular/center_noBorders.png);
	background-size: 100%,  calc(var(--newWidth) / var(--originalWidth) * 46px),  calc(var(--newWidth) / var(--originalWidth) * 46px), calc(var(--newWidth) / var(--originalWidth) * 706px);
	background-position: bottom, left, right, top;
	background-repeat: no-repeat, repeat-y, repeat-y, repeat;
}
.windowLong :is(.window-title, h2){
	background-image: url(/img/ui/frame_regular/header_long.png);
	aspect-ratio: 2210 / 140;
}
.windowLong::after, .windowLong::before, .windowMedium::after, .windowMedium::before{
	display: none;
}
.windowMedium {
	--ratio: calc(2210 / 800);
	--originalWidth: 1910;
	--newWidth: calc(var(--originalWidth) / var(--ratio));
	width: calc(var(--newWidth) * 1px);
	min-width: calc(var(--newWidth) * 1px);
	background-image: url(/img/ui/frame_medium/footer_medium.png), url(/img/ui/frame_regular/left.png), url(/img/ui/frame_regular/right.png), url(/img/ui/frame_regular/center_noBorders.png);
	background-size: 100%, calc(var(--newWidth) / var(--originalWidth) * 46px), calc(var(--newWidth) / var(--originalWidth) * 46px), calc(var(--newWidth) / var(--originalWidth) * 706px);
	background-position: bottom, left, right, top;
	background-repeat: no-repeat, repeat-y, repeat-y, repeat;
}
.windowMedium h2{
	background-image: url(/img/ui/frame_medium/header_medium.png);
}
.window > :is(div, hr):not([class]) {
	width: 100%;
	text-align: center;
}
.window hr{
	border-color: #00000061;
	border-style: inset;
	margin: 0;
}



.window.centerPosition {
	transform: translate(-50%, -50%);
}
.window.window-active {
	
}
.window {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 270px;
	padding: 25px;
	max-height: calc(100vh - 24px);
}
.window.user-window{
	text-align: left;
}
.window-content{
	width: 100%;
	overflow: scroll;
}
.window-title{
	font-size: 16px;
	margin-top: -36px;
}
.window .button{
	padding: 5px 20px;
}
.window-footer {
	display: flex;
	gap: 5px;
	padding: 0;
	margin-bottom: 0;
}
.window-close {
	border: none;
	position: absolute;
	right: -4px;
	top: -7px;
	box-sizing: border-box;
	padding: 0;
	width: 24px;
	height: 24px;
	background-image: url('/img/ui/frame_regular/btn_X_regular.png');
	background-size: contain;
	z-index: 2;
}
.window-close:hover{
	background-image: url('/img/ui/frame_regular/btn_X_mouseover.png');
}
.window-close:active{
	background-image: url('/img/ui/frame_regular/btn_X_mouseclick.png');
}

.race-symbol{
	border-radius: 50%;
	/*transition: all .3s;*/
}
.race-symbol img{
	width: 180px;
	/*transition: all .3s;*/
	height: auto;
	filter: grayscale(.4) sepia(0) hue-rotate(192deg) saturate(15) brightness(1);
}
.window-select{
	transition: all .3s;
	position: relative;
	top: auto;
	left: auto;
}
.window-select:hover{
	transform: scale(1.1);
}
.window-select:hover > .race-symbol-humans {
	box-shadow: 0 0 22px 8px #3CA5F752;
}
.window-select:hover > .race-symbol-orcs {
	box-shadow: 0 0 22px 8px #FF786652;
}
.window-select:hover > .race-symbol-elves {
	box-shadow: 0 0 22px 8px #00E47A52;
}
.window-select:hover > .race-symbol-dwarves {
	box-shadow: 0 0 22px 8px #FFB65152;
}
.window-select:hover > .race-symbol-humans img{
	filter: grayscale(0) sepia(0) hue-rotate(15deg) saturate(25) brightness(1);
}
.window-select:hover > .race-symbol-orcs img{
	filter: grayscale(0) sepia(0) hue-rotate(165deg) saturate(25) brightness(1);
}
.window-select:hover > .race-symbol-elves img{
	filter: grayscale(0) sepia(0) hue-rotate(287deg) saturate(25) brightness(1);
}
.window-select:hover > .race-symbol-dwarves img{
	filter: grayscale(0) sepia(0) hue-rotate(211deg) saturate(25) brightness(1);
}
.race-label{
	width: 210px;
	text-align: center;
}

h2.mainTitle{
	text-shadow: 0 0 6px #FED0B5;
	color: black;
	font-size: 28px;
	text-align: center;
}


.monterThumb img{
	width: var(--size);
	height: var(--size);
	--size: 44px;
	object-fit: contain;
	border: 1px solid #ffffff33;
	border-radius: 4px;
	background-color: #00000069;
}


.monterThumb {
	text-align: center;
}

#windows-notifications {
	position: fixed;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	gap: 0;
	z-index: 99999999999999999;
	pointer-events: none;
}
/* ===== Typy notifikací ===== */

/* ✅ Výchozí – klasické "okno" */
.windowNotification {
	width: 300px;
	text-align: center;
	background-color: rgba(0, 0, 0, 0.8);
	color: #FFD5A5;
	padding: 15px 25px;
	border: 1px solid #5f3b20;
	border-radius: 6px;
}

/* ✅ Textová notifikace – dole, decentní */
.textNotification {
	transform: translateX(-50%);
	background: none;
	color: #fff;
	font-weight: bold;
	font-size: 14px;
	padding: 0;
	border-radius: 0;
	box-shadow: none;
	text-align: center;
	width: auto;
	text-shadow: 2px 1px 2px black;
}
.textNotification p{
	margin: 0;
}

/* ✅ Velká notifikace – uprostřed obrazovky */
.bigNotification {
	transform: translate(-50%, -50%);
	padding: 40px 60px;
	font-size: 22px;
	text-align: center;
	color: #fff4d6;
	background: linear-gradient(180deg, #2b1a0b 0%, #000000 100%);
	border: 2px solid #e7b36b;
	border-radius: 12px;
	box-shadow: 0 0 25px #000;
	text-shadow: 0 0 6px #e7b36b;
}

.window.notification {
	top: 50px;
	left: 50%;
	transform: translateX(-50%);
	margin-bottom: 10px;
	position: fixed;
	color: white;
}

.windows-notifications-container {
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	pointer-events: none;
	z-index: 999999999;
	width: 100%;
	max-width: 100%;
}
.windows-notifications-container .notification{
	position: relative;
	pointer-events: auto;
	transform: none;
	left: auto;
	margin: 0;
	top: 0px;
}

/* ✅ Klasické notifikace – nahoře */
#windows-notifications-windows {
	top: 50px;
	gap: 10px;
}

/* ✅ Textové notifikace – střed */
#windows-notifications-text .windowScrollbar{
	overflow: hidden;
}
#windows-notifications-text {
	top: 100px;
	flex-direction: column;
	gap: 10px;
}
/* ✅ Velké notifikace – nahoře */
#windows-notifications-big {
	top: 50px;
	gap: 10px;
}

#windows-notifications .notification {
	position: relative;
	pointer-events: auto;
}

.window.closing {
	top: -50px;
	opacity: 0;
	transition: all .3s;
	margin: 0 !important;
	height: 0 !important;
	padding: 0 !important;
	overflow: hidden;
}

.window.systemWindow{
	position: absolute;
	--newWidth: 240px;
	width: 240px;
	padding: 20px;
}
.systemWindow, header nav {
  position: relative;
  padding: 46px;
	--borderSize: 17px;
	/* Rámeček pomocí všech 8 obrázků */
  background-image:
	url('/img/ui/frame_tooltip/system_menu_01.png'), /* levý horní roh */
	url('/img/ui/frame_tooltip/system_menu_03.png'), /* pravý horní roh */
	url('/img/ui/frame_tooltip/system_menu_07.png'), /* levý dolní roh */
	url('/img/ui/frame_tooltip/system_menu_09.png'), /* pravý dolní roh */
	url('/img/ui/frame_tooltip/system_menu_02.png'), /* horní hrana */
	url('/img/ui/frame_tooltip/system_menu_08.png'), /* dolní hrana */
	url('/img/ui/frame_tooltip/system_menu_04.png'), /* levá hrana */
	url('/img/ui/frame_tooltip/system_menu_06.png'), /* pravá hrana */
	url('/img/ui/frame_tooltip/system_menu_05.png'); /* pozadí */

  background-position:
	top left,
	top right,
	bottom left,
	bottom right,
	top center,
	bottom center,
	center left,
	center right,
	center center;

  background-repeat: no-repeat;
  
  background-size:
	var(--borderSize), var(--borderSize), var(--borderSize), var(--borderSize),       /* rohy */
	calc(100% - var(--borderSize)) var(--borderSize), calc(100% - var(--borderSize)) var(--borderSize),          /* horní a dolní hrana */
	var(--borderSize) calc(100% - var(--borderSize)), var(--borderSize) calc(100% - var(--borderSize)),
	calc(100% - var(--borderSize)) calc(100% - var(--borderSize));          /* levá a pravá hrana */
}
.paperWindowHeader{
	background-image: url(/img/ui/popup_paper/peper_header.png);
	aspect-ratio: 695 / 80;
	width: calc(100% + 6px + 6px);
	height: 28px;
	background-size: 100%;
	background-position: center;
	margin-left: -6px;
	margin-right: -6px;
	margin-top: -8px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.paperWindow{
	margin-top: 2px;
  position: relative;
  padding: 6px;
	--borderSize: 17px;
	/* Rámeček pomocí všech 8 obrázků */
  background-image:
	url('/img/ui/popup_paper/paper_01.png'), /* levý horní roh */
	url('/img/ui/popup_paper/paper_03.png'), /* pravý horní roh */
	url('/img/ui/popup_paper/paper_07.png'), /* levý dolní roh */
	url('/img/ui/popup_paper/paper_09.png'), /* pravý dolní roh */
	url('/img/ui/popup_paper/paper_02.png'), /* horní hrana */
	url('/img/ui/popup_paper/paper_08.png'), /* dolní hrana */
	url('/img/ui/popup_paper/paper_04.png'), /* levá hrana */
	url('/img/ui/popup_paper/paper_06.png'), /* pravá hrana */
	url('/img/ui/popup_paper/paper_05.png'); /* pozadí */

  background-position:
	top left,
	top right,
	bottom left,
	bottom right,
	top center,
	bottom center,
	center left,
	center right,
	center center;

  background-repeat: no-repeat;
  
  background-size:
	var(--borderSize), var(--borderSize), var(--borderSize), var(--borderSize),       /* rohy */
	calc(100% - var(--borderSize)) var(--borderSize), calc(100% - var(--borderSize)) var(--borderSize),          /* horní a dolní hrana */
	var(--borderSize) calc(100% - var(--borderSize)), var(--borderSize) calc(100% - var(--borderSize)),
	calc(100% - var(--borderSize)) calc(100% - var(--borderSize));          /* levá a pravá hrana */
	color: #53370F;
	box-sizing: border-box;
	border-radius: 4px;
}




.windowScrollbar {
  overflow: auto;
  scrollbar-width: auto;
  scrollbar-gutter: stable;
}

/* ===== Scrollbar v prohlížečích založených na WebKit ===== */
.windowScrollbar::-webkit-scrollbar {
  width: 14px;   /* vertikální scrollbar */
  height: 14px;  /* horizontální scrollbar */
  background: transparent;
}

/* ===== Track (pozadí scrollbaru) ===== */
.windowScrollbar::-webkit-scrollbar-track:horizontal {
  background: url('/img/ui/scrollbar_dark/bg_scroll_horisontal.png') repeat-x center;
}

.windowScrollbar::-webkit-scrollbar-track:vertical {
  background: url('/img/ui/scrollbar_dark/bg_scroll_vertical.png') repeat-y center;
}

/* ===== Thumb (pojezd) – výchozí ===== */
.windowScrollbar::-webkit-scrollbar-thumb:horizontal {
  background: #674723;
  border: 2px solid #694824;
  border-radius: 4px;
  outline: 2px solid black;
  box-shadow: inset 0 0 1px 3px #553C1E;
}
.windowScrollbar::-webkit-scrollbar-thumb:vertical {
	background: #674723;
	border: 2px solid #694824;
	border-radius: 4px;
	outline: 2px solid black;
	box-shadow: inset 0 0 1px 3px #553C1E;
}

/* ===== Thumb – hover efekt ===== */
.windowScrollbar::-webkit-scrollbar-thumb:hover:horizontal {
	background: #7A5B34;
	border: 2px solid #7C5C35;
	border-radius: 4px;
	outline: 2px solid black;
	box-shadow: inset 0 0 1px 3px #634B2B;
}

.windowScrollbar::-webkit-scrollbar-thumb:hover:vertical {
	background: #7A5B34;
	border: 2px solid #7C5C35;
	border-radius: 4px;
	outline: 2px solid black;
	box-shadow: inset 0 0 1px 3px #634B2B;
}

/* ===== Thumb – aktivní (při kliknutí) ===== */
.windowScrollbar::-webkit-scrollbar-thumb:active:horizontal {
	background: #745632;
	border: 2px solid #523D24;
	border-radius: 4px;
	outline: 2px solid black;
	box-shadow: inset 0 0 4px 4px #41321D;
}

.windowScrollbar::-webkit-scrollbar-thumb:active:vertical {
	background: #745632;
	border: 2px solid #523D24;
	border-radius: 4px;
	outline: 2px solid black;
	box-shadow: inset 0 0 4px 4px #41321D;
}



.window .async-table-wrapper{
	display: flex;
	flex-direction: column;
	max-height: var(--window-content-height);
	overflow: hidden;
	gap: 10px;
}
.window .async-table-scroller{
	min-height: 0;
	flex-grow: 1;
	overflow: auto;
}
.window .pagination{
	flex-shrink: 0;
}

#connectTime {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px 0;
	width: 100%;
	justify-content: center;
}

#connectTime::before {
  content: "";
  width: 16px;
  height: 16px;
  aspect-ratio: 1 / 1;
  border: 2px solid #2A5274;
  border-top-color: #9DE9F8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: flex;
}

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

#windows-tabbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 40px;
	background: rgba(0,0,0,0.7);
	display: flex;
	align-items: center;
	padding: 0 10px;
	gap: 6px;
	z-index: 9999;
	overflow-x: auto;
	white-space: nowrap;
}
#windows-tabbar .tab {
	color: white;
	padding: 6px 12px;
	border-radius: 4px;
	cursor: pointer;
	background: rgba(255,255,255,0.1);
	font-size: 14px;
	user-select: none;
	transition: background 0.2s;
}
#windows-tabbar .tab.active {
	background: rgba(255,255,255,0.3);
}
#windows-tabbar .tab:hover {
	background: rgba(255,255,255,0.2);
}
#windows-tabbar:empty{
	display: none;
}