/* Базовые стили загрузочного экрана */
@font-face {
	font-family: 'BF Modernista';
	src: url('../fonts/BF_Modernista-Regular.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: 'BF Modernista';
	src: url('../fonts/BF_Modernista-Bold.ttf') format('truetype');
	font-weight: bold;
	font-style: normal;
}
@font-face {
	font-family: 'BF Modernista';
	src: url('../fonts/BF_Modernista-Light.ttf') format('truetype');
	font-weight: 300;
	font-style: normal;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
	margin: 0;
	background: #2b2b2b;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	color: #e9e9e9;
	overflow: hidden;
}

#app { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; border: 1px solid var(--server-color, rgba(255,255,255,0.35)); }

.background { position: relative; flex: 1 1 auto; overflow: hidden; background: #3a3a3a; }
.background__canvas { 
	position: absolute; 
	top: 0; 
	left: 0; 
	right: 0; 
	bottom: 0; 
	width: 100%; 
	height: 100%; 
	overflow: hidden;
}
.background__image { 
	position: absolute !important; 
	top: 0 !important; 
	left: 0 !important; 
	width: 100% !important; 
	height: 100% !important; 
	object-fit: cover !important; 
	filter: saturate(0.95) contrast(1.02); 
	opacity: 0; 
	transition: opacity 1s ease-in-out; 
	display: block !important;
	z-index: 0;
}
.background__image.active { 
	opacity: 1 !important; 
	z-index: 1 !important;
}
.background__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
	/* backdrop-filter: blur(2px); */
    background: linear-gradient(to right,
        rgba(0,0,0,0.8) 0%,
        rgba(0,0,0,0.7) 33%,
        rgba(0,0,0,0.3) 45%,
        rgba(0,0,0,0.1) 65%,
        transparent 100%
    );
	/* background: url('../img/l_shadow.png') no-repeat center center; */
    background-size: cover;
    pointer-events: none;
    z-index: 2;
}

.header { position: absolute; top: 24px; left: 24px; right: 24px; display: flex; flex-direction: column; gap: 4px; text-shadow: 0 1px 2px rgba(0,0,0,0.6); z-index: 10; }
.server-welcome { font-size: 18px; font-weight: 300; opacity: 0.9; }
.server-title { font-size: 32px; font-weight: bold; color: var(--server-color, #4ecdc4); font-family: 'BF Modernista', sans-serif; }
.server-subtitle { font-size: 14px; opacity: 0.9; }


.creators { position: absolute; top: 24px; right: 24px; background: rgba(0,0,0,0.4); border: 1px solid rgba(128,128,128,0.5); border-radius: 0; padding: 12px; backdrop-filter: blur(4px); z-index: 10; min-width: 370px; }
.creators__title { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #e9e9e9; text-align: center; }
.creators__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; justify-content: center; justify-items: center; }
.creators__card { display: flex; background: rgba(128,128,128,0.3); border: 1px solid var(--server-color, rgba(128,128,128,0.5)); border-radius: 0; overflow: hidden; min-width: 95px; max-width: 110px; height: 25px; }
.creators__avatar { width: 25px; height: 25px; object-fit: cover; flex-shrink: 0; }
.creators__name { font-size: 11px; padding: 2px; display: flex; align-items: center; justify-content: center; text-align: center; word-break: break-word; overflow: hidden; text-overflow: ellipsis; color: #ffffff; }
.creators__name-fallback { font-size: 10px; font-weight: 600; color: #ffffff; padding: 2px; display: flex; align-items: center; justify-content: center; text-align: center; word-break: break-word; overflow: hidden; text-overflow: ellipsis; }

.operators { position: absolute; top: 200px; right: 24px; background: rgba(0,0,0,0.4); border: 1px solid rgba(128,128,128,0.5); border-radius: 0; padding: 12px; backdrop-filter: blur(4px); z-index: 10; min-width: 370px; }
.operators__title { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #e9e9e9; text-align: center; }
.operators__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; justify-content: center; justify-items: center; }
.operators__card { display: flex; background: rgba(128,128,128,0.3); border: 1px solid var(--server-color, rgba(128,128,128,0.5)); border-radius: 0; overflow: hidden; min-width: 95px; max-width: 110px; height: 25px; }
.operators__avatar { width: 25px; height: 25px; object-fit: cover; flex-shrink: 0; }
.operators__name { font-size: 11px; padding: 2px; display: flex; align-items: center; justify-content: center; text-align: center; word-break: break-word; overflow: hidden; text-overflow: ellipsis; color: #ffffff; }
.operators__name-fallback { font-size: 10px; font-weight: 600; color: #ffffff; padding: 2px; display: flex; align-items: center; justify-content: center; text-align: center; word-break: break-word; overflow: hidden; text-overflow: ellipsis; }

.empty-text { color: #888888; font-size: 12px; text-align: center; padding: 8px; }

.current-player { position: absolute; top: 160px; left: 24px; z-index: 10; }
.current-player__card { display: flex; background: rgba(0,0,0,0.4); border: 1px solid var(--server-color, rgba(255,255,255,0.1)); border-radius: 0; padding: 12px; backdrop-filter: blur(4px); width: 400px; height: 120px; }
.current-player__avatar { width: 120px; height: 120px; object-fit: cover; flex-shrink: 0; margin-right: 12px; }
.current-player__info { display: flex; flex-direction: column; justify-content: center; flex: 1; }
.current-player__name { font-size: 18px; font-weight: 600; color: #ffffff; margin-bottom: 8px; }
.current-player__rank { font-size: 14px; color: var(--server-color, #4ecdc4); margin-bottom: 8px; }
.current-player__last-online { font-size: 12px; color: #cccccc; }

.player-balance { position: absolute; top: 330px; left: 24px; z-index: 10; }
.player-balance__card { display: flex; background: rgba(0,0,0,0.4); border: 1px solid var(--server-color, rgba(255,255,255,0.1)); border-radius: 0; padding: 8px 12px; backdrop-filter: blur(4px); width: 200px; height: 40px; align-items: center; justify-content: center; }
.player-balance__text { font-size: 14px; color: var(--server-color, #4ecdc4); font-weight: 600; }

/* Блок полосы загрузки как сосед .background */
.loading { flex: 0 0 auto; }
.loading__bar { position: relative; height: 28px; width: 100%; background: rgba(0,0,0,0.35); }
.loading__bar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: rgba(60, 60, 60, 1); transition: width 160ms ease; animation: pulseFill 2s ease-in-out infinite; }
.loading__bar-text { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #e9e9e9; text-shadow: 0 1px 2px rgba(0,0,0,0.6); z-index: 1; font-family: 'BF Modernista', sans-serif; }

@keyframes pulseFill {
	0% { filter: brightness(0.65); }
	25% { filter: brightness(1); }
	75% { filter: brightness(1); }
	100% { filter: brightness(0.6); }
}

/* Блоки важной информации */
.info-boxes-container {
	position: absolute;
	bottom: 40px;
	left: 24px;
	display: flex;
	flex-direction: column-reverse;
	gap: 8px;
	z-index: 15;
}

/* Блок онлайн игроков */
.online-players {
    position: absolute;
    bottom: 65px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(128,128,128,0.5);
    border-radius: 0;
    padding: 12px;
    backdrop-filter: blur(4px);
    z-index: 15;
	width: 30%;
    display: none;
}
.online-players__title { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #e9e9e9; text-align: center; }
.online-players__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(95px, auto)); gap: 5px; justify-content: center; justify-items: center; }
.online-players__card { display: flex;flex-direction: column;background: rgba(128,128,128,0.3); border: 1px solid #c4c4c4; border-radius: 0; overflow: hidden; min-width: 95px; max-width: 110px; height: 32px; justify-content: center; }
.online-players__name { font-size: 11px; padding: 2px 4px; text-align: center; word-break: break-word; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #ffffff; line-height: 1.2; }
.online-players__additional { font-size: 9px; padding: 0 4px; color: #858585; text-align: center; word-break: break-word; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.1; }


.info-box {
	width: 400px;
	background: rgba(0,0,0,0.8);
	border: 1px solid #ff0000;
	border-radius: 0;
	padding: 8px 12px;
	backdrop-filter: blur(4px);
	animation: glowPulse 2s ease-in-out infinite;
}
.info-box__text { color: #ffffff; font-size: 12px; line-height: 1.3; word-wrap: break-word; margin: 0; }

@keyframes glowPulse {
	0% { box-shadow: 0 0 5px rgba(255,0,0,0.3); }
	50% { box-shadow: 0 0 15px rgba(255,0,0,0.6); }
	100% { box-shadow: 0 0 5px rgba(255,0,0,0.3); }
}

/* Блок музыки */
.music-player {
	position: absolute;
	bottom: 90px;
	right: 24px;
	background: rgba(0,0,0,0.4);
	border: 1px solid rgba(128,128,128,0.5);
	border-radius: 0;
	padding: 8px 12px;
	backdrop-filter: blur(3px);
	z-index: 15;
	min-width: 200px;
	display: none;
}

.music-info {
	color: #ffffff;
	font-size: 11px;
	line-height: 1.2;
	text-align: center;
	display: flex;
	align-items: center;
	gap: 8px;
}

.music-info__icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.music-info__text {
	flex: 1;
}

.music-info__title {
	font-weight: 600;
	margin-bottom: 2px;
}

.music-info__artist {
	opacity: 0.8;
	font-size: 10px;
}

.music-progress {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	width: 0%;
	height: 100%;
	background: rgba(255, 255, 255, 0.12);
	transition: width 0.1s ease;
}
