/* ===== Продвинутая карточка-подсказка ===== */
.custom-hint {
    position: fixed;
    z-index: 10000;
    background: rgba(20, 20, 20, .95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 2px solid;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .2);
    padding: 12px;
    min-width: 300px;
	max-width: 325px;
    pointer-events: none;
    transition: opacity .3s ease-in-out, transform .3s ease-in-out;
    opacity: 0;
    transform: translateY(10px);
}

.custom-hint.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Цветовые темы для разных мест */
.custom-hint.gold {
    border-color: rgba(255, 215, 0, .9);
    box-shadow: 0 0 15px rgba(255, 215, 0, .5);
}

.custom-hint.silver {
    border-color: rgba(192, 192, 192, .9);
    box-shadow: 0 0 12px rgba(192, 192, 192, .5);
}

.custom-hint.bronze {
    border-color: rgba(205, 127, 50, .9);
    box-shadow: 0 0 12px rgba(205, 127, 50, .5);
}

.custom-hint.red {
    border-color: rgba(190, 45, 50, .9);
    box-shadow: 0 0 10px rgba(190, 45, 50, .5);
}

/* Хедер карточки */
.hint-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid;
}

.gold .hint-header {
    border-image: linear-gradient(
		to right,
		rgba(255, 215, 0, 0),
		rgba(255, 215, 0, .7),
		rgba(255, 215, 0, 0)
	) 1;
}

.silver .hint-header {
    border-image: linear-gradient(
		to right,
		rgba(192, 192, 192, 0),
		rgba(192, 192, 192, .7),
		rgba(192, 192, 192, 0)
	) 1;
}

.bronze .hint-header {
    border-image: linear-gradient(
		to right,
		rgba(205, 127, 50, 0),
		rgba(205, 127, 50, .7),
		rgba(205, 127, 50, 0)
	) 1;
}

.red .hint-header {
    border-image: linear-gradient(
		to right,
		rgba(190, 45, 50, 0),
		rgba(190, 45, 50, .5),
		rgba(190, 45, 50, 0)
	) 1;
}

.hint-avatar {
    width: 72px;
    height: 72px;
    border-radius: 25%;
    border: 2px solid;
    object-fit: cover;
}

.gold .hint-avatar {
    border-color: rgb(255, 215, 0);
    box-shadow: 0 0 8px rgb(255, 215, 0);
}

.silver .hint-avatar {
    border-color: rgb(192, 192, 192);
    box-shadow: 0 0 7px rgb(192, 192, 192);
}

.bronze .hint-avatar {
    border-color: rgb(205, 127, 50);
    box-shadow: 0 0 7px rgb(205, 127, 50);
}

.red .hint-avatar {
    border-color: rgb(190, 45, 50);
    box-shadow: 0 0 6px rgb(190, 45, 50);
}

.hint-name {
	display: flex;
    font-size: 1.2rem;
    font-weight: bold;
	max-width: 200px;
    color: rgb(220, 220, 220);
    align-items: center;
    gap: 8px;
	padding: 6px;
}

.hint-name i {
    font-size: 1.5rem;
	filter: drop-shadow(0 0 3px currentColor);
	flex-shrink: 0;
}

.hint-name .hint-name-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* flex: 1; */
    min-width: 0;
}

.gold .hint-name i { color: rgb(255, 215, 0); }
.silver .hint-name i { color: rgb(192, 192, 192); }
.bronze .hint-name i { color: rgb(205, 127, 50); }

/* Блок статистики */
.hint-stats {
    display: flex;
	flex-direction: column;
    font-size: .85rem;
    color: rgb(180, 180, 180);
    margin-bottom: 12px;
    background: rgba(0, 0, 0, .3);
    padding: 6px 10px;
    border-radius: 6px;
}

.hint-stats span {
    display: flex;
	padding: 2px 0;
    align-items: center;
    gap: 4px;
}

/* Список перков */
.hint-perks {
    padding-right: 5px;
}

.perk-item {
    display: grid;
    grid-template-columns: auto 110px;
    align-items: center;
    gap: 8px;
    padding: 2px 4px;
    border-radius: 4px;
	margin-bottom: 3px;
}
.perk-name {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .75rem;
    color: rgb(175, 175, 175);
	text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
	font-weight: bold;
}
.perk-progress-wrapper {
    position: relative;
    height: 20px;
    background: rgba(255, 255, 255, .05);
	box-shadow: inset 0 1px 4px rgba(0, 0, 0, .6);
    border-radius: 10px;
    overflow: hidden;
    width: 110px;
    flex-shrink: 0;
}
.perk-progress-bar {
    height: 100%;
    border-radius: 10px;
    transition: width .3s ease;
}
.perk-progress-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: bold;
    color: rgb(220, 220, 220);
    text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
    letter-spacing: .3px;
    white-space: nowrap;
    padding: 0 4px;
}

/* Время игры */
.hint-playtime {
    margin-top: 10px;
    text-align: center;
    font-size: .8rem;
    color: rgb(160, 160, 160);
    background: rgba(0, 0, 0, .4);
    border-radius: 6px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.hint-playtime i {
	font-size: 1.6rem;
}

/* Индикатор онлайн-статуса */
.hint-online-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4caf50;
    margin-left: 2px;
    box-shadow: 0 0 6px rgba(76, 175, 80, .8);
    animation: pulse-online 1.5s ease-in-out infinite;
    vertical-align: middle;
	flex-shrink: 0;
}

@keyframes pulse-online {
    0% { opacity: .6; transform: scale(.9); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: .6; transform: scale(.9); }
}
