/* Анимации */
@keyframes elementClick {
    from { transform: scale(.98) translateY(2px); }
    to { transform: scale(1); }
}

@keyframes elementLoading {
    0% { opacity: .1; }
    50% { opacity: .5; }
    100% { opacity: .1; }
}

/* Классы для применения анимаций */
.elementClick {
    animation: elementClick .5s ease forwards;
	transform: translateZ(0); /* Аппаратное ускорение */
}

.elementLoading {
    animation: elementLoading .5s ease infinite;
	transform: translateZ(0); /* Аппаратное ускорение */
    cursor: wait !important;
}

#serverStatus .status {
	display: block;
    width: auto;
	text-align: center;
    padding: 1vmin 0;
    color: yellow;
    font-size: 1.5rem;
    font-weight: bold;
}

#serverStatus .statusInfo {
    display: flex;
	gap: 10px;
	width: auto;
	margin: 10px auto;
	flex-direction: row;
    justify-content: space-between;
    text-align: center;
}

#serverStatus .info {
    display: flex;
	flex: 1;
	font-size: 1rem;
	font-weight: bold;
    flex-direction: column;
    justify-content: space-between;
	align-items: center;
}

#serverStatus .info .scrn {
	display: block;
	font-size: 1.1rem;
	background: rgba(190, 45, 50, .2);
	color: rgb(190, 45, 50);
	padding: 6px;
	margin-bottom: 4px;
	border-radius: 4px;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, .4);
	text-shadow: 0 2px 4px rgba(0, 0, 0, .5);
}

#serverStatus .button-group {
    display: flex;
	width: 100%; 
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

#serverStatus .connect {
	flex: 1;
	width: auto;
}

#serverStatus .copy-address {
    flex: 0 0 48px;           /* не растягивается, ширина 48px */
    padding: 10px 0;
    text-align: center;
    box-sizing: border-box;
}

#serverStatus .online,
#serverStatus .wave,
#serverStatus .gameMode,
#serverStatus .difficulty {
    display: none;
    padding: .6vmin;
    color: rgb(140, 140, 140);
}

#serverStatus .online {
    cursor: pointer;
}

#serverStatus .online i,
#serverStatus .wave i,
#serverStatus .gameMode i,
#serverStatus .difficulty i {
    color: rgb(190, 45, 50);
	margin-right: 2px;
}

#serverStatus .image {
	position: relative;
	border-radius: 6px;
	flex: 1;
	opacity: .85;
	cursor: pointer;
	background: rgba(190, 45, 50, .6);
    box-sizing: border-box;
    border: 2px solid rgba(190, 45, 50, .6);
    box-shadow: 0 1px 7px rgba(0, 0, 0, .3);
    transition: all .3s ease-in-out;
	will-change: opacity, transform, box-shadow;
}

#serverStatus .image:hover {
    opacity: 1;
    border-color: rgba(190, 45, 50, .8);
    box-shadow: 0 2px 12px rgba(190, 45, 50, .5);
    transform: scale(1.2);
}

#serverStatus .image img {
    display: block;
	width: 100%;
	height: 100%;
	border-radius: 6px;
}

#serverStatus .image .map-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(5, 5, 5, .6);
    padding: 13px 5px;
    text-align: center;
    font-weight: bold;
    font-size: .9rem;
    color: rgb(170, 170, 170);
    text-shadow: 0 2px 4px rgba(0, 0, 0, .5);
    letter-spacing: 0.5px;
    backdrop-filter: blur(2px);
    pointer-events: none;
    border-radius: 0 0 6px 6px;
	transition: all .3s ease-in-out;
}

#serverStatus .image:hover .map-name-overlay {
    backdrop-filter: blur(3px);
}

/* Блок времени последнего обновления (из API) */
#serverStatus .last-update {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(190, 45, 50, .2);
    font-size: .9rem;
    color: rgb(140, 140, 140);
}
#serverStatus .last-update i {
    color: rgb(190, 45, 50);
    font-size: .95rem;
}
#serverStatus .last-update .update-time {
    font-weight: bold;
    color: rgb(180, 180, 180);
	letter-spacing: .5px;
}

/* Стили для хинта со списком игроков (онлайн) */
.custom-hint.red .hint-header {
    color: rgb(160, 160, 160);
	font-size: 1.2rem;
	font-weight: bold;
}

.custom-hint.red .hint-header i {
    color: rgb(190, 45, 50);
	margin-left: 6px;
	margin-right: 2px;
}

.hint-players-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hint-player-item {
    display: grid;
    grid-template-columns: 50px 110px 55px auto 32px;
    align-items: center;
	padding: 2px 4px;
	border-radius: 8px;
    gap: 6px;
}

/* Контейнер для иконки + уровня */
.perk-icon-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* Иконка перка */
.hint-player-perk-icon {
    width: 24px;
    height: 24px;
    justify-self: center;
}

/* Стиль для уровня перка рядом с иконкой */
.perk-level {
	width: 22px;
    display: inline-block;
	text-align: center;
    font-size: 0.7rem;
    font-weight: bold;
    color: rgb(255, 220, 170);
    background: rgba(0, 0, 0, 0.3);
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, .4);
    border-radius: 4px;
    vertical-align: middle;
	line-height: 1.2;
}

/* Имя игрока */
.hint-player-name {
    font-size: 0.9rem;
    color: rgb(175, 175, 175);
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Количество убийств/счет */
.hint-player-kills,
.hint-player-score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: rgb(220, 220, 220);
	font-weight: bold;
    white-space: nowrap;
}

.hint-player-kills i,
.hint-player-score i {
    font-size: 0.8rem;
    color: rgb(140, 140, 140);
}

/* Иконка места (кубок/медаль) */
.hint-player-rank {
    min-width: 32px;
    text-align: center;
    font-size: 1.1rem;
}

.hint-players-list .fa-trophy,
.hint-players-list .fa-medal {
	filter: drop-shadow(0 0 3px currentColor);
}

/* Адаптивность */
@media (max-width: 650px) {
    #serverStatus .statusInfo {
		display: flex;
		width: auto;
		flex-direction: column-reverse;
		text-align: center;
	}

	#serverStatus .info {
		font-size: calc(1.2rem + .6vmin);
	}

	#serverStatus .connect {
		display: none !important;
	}

	#serverStatus .image img {
		transform: scale(.95);
	}

	#serverStatus .image img:hover {
		transform: scale(1);
	}
}
