/* =====================================================
   КНОПКА "КОЛЛЕКЦИИ" В РЕЖИМЕ ЭНЦИКЛОПЕДИИ
   ===================================================== */
.encyclopedia-collections-button {
	background: #4d4a41 url("/assets/media/collections/collection__category__title_bg.jpg") 0 -40px repeat-x !important;
	border-color: #634111 !important;
	color: #e5e5e5 !important;
}

.encyclopedia-collections-button .collections_filter__button_inner {
	border-color: #8aab3a !important;
	color: #e5e5e5 !important;
}

.encyclopedia-collections-button:hover {
	background: #634111 url("/assets/media/collections/collection__category__title_bg.jpg") 0 -40px repeat-x !important;
}

/* =====================================================
   ПРОГРЕСС-БАР
   ===================================================== */
#encyclopedia_progress_bar {
	margin: 8px 15px 4px 15px;
	padding: 0;
	background: transparent;
	border: none;
}

#encyclopedia_progress_bar_track {
	position: relative;
	background: #e8dfca;
	border: 1px solid #634111;
	height: 20px;
	overflow: hidden;
	box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

#encyclopedia_progress_bar_fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background: url("/assets/media/collections/collection__category__title_bg.jpg") 0 -40px repeat-x;
	background-color: #d2992a;
	min-width: 2px;
	border-right: 1px solid #634111;
}

#encyclopedia_progress_bar_shine {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 50%;
	background: linear-gradient(to bottom, rgba(255,235,150,0.3), rgba(255,255,255,0));
}

#encyclopedia_progress_bar_text {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #332005;
	font: bold 11px/1 Arial, Helvetica, sans-serif;
	text-shadow: 1px 1px 1px rgba(255,255,255,.5);
	z-index: 1;
	pointer-events: none;
}

#encyclopedia_progress_bar_label {
	display: none;
}

/* =====================================================
   БЛОК НАГРАД (в меню)
   ===================================================== */
#encyclopedia_awards_block {
	background: #bfaa7c;
	border: 2px solid #d2992a;
	margin: 1px 5px 1px 5px;
	padding: 5px 6px 5px 6px;
	border-radius: 5px;
}

#encyclopedia_awards_list {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 5px;
	margin-bottom: 5px;
}

.encyclopedia_award_item {
	text-align: center;
	cursor: default;
	position: relative;
}

.encyclopedia_award_icon {
	width: 60px;
	height: 60px;
	background: #e8dfca;
	border: 1px solid #634111;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.encyclopedia_award_icon img {
	max-width: 50px;
	max-height: 50px;
}

.encyclopedia_award_amount {
	font-size: 11px;
	font-weight: bold;
	color: #332005;
	margin-top: 4px;
	text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
}

#encyclopedia_awards_claim_btn {
	background: #2d4a1e;
	color: #f2e8c9;
	border: 1px solid #d2992a;
	border-radius: 6px;
	padding: 8px 12px;
	cursor: pointer;
	text-align: center;
	font: bold 12px/20px Arial, Helvetica, sans-serif;
	width: 100%;
	transition: all 0.2s ease;
}

#encyclopedia_awards_claim_btn.active {
	background: #2d4a1e;
	color: #f2e8c9;
}

#encyclopedia_awards_claim_btn.active:hover {
	background: #3e6b2a;
	transform: translateY(-1px);
}

#encyclopedia_awards_claim_btn.disabled {
	background: #555;
	color: #999;
	cursor: not-allowed;
	border-color: #634111;
}

#encyclopedia_awards_claim_btn.encyclopedia_awards_claim_btn--loading {
	opacity: 0.6;
	cursor: wait;
	transform: none;
}

/* =====================================================
   КАТЕГОРИЯ "ЭНЦИКЛОПЕДИЯ" (рамка как у "Инструменты")
   ===================================================== */
#collection_Encyclopedia {
	background: #bfaa7c;
	border: 1px solid #634111;
	margin-bottom: 40px;
}

#collection_Encyclopedia .collection_category__inner {
	border: 1px solid #d2992a;
}

#collection_Encyclopedia .collection_category__title {
	background: #4d4a41 url("/assets/media/collections/collection__category__title_bg.jpg") 0 0 repeat-x;
	padding: 5px 20px;
	position: relative;
	border-bottom: 1px solid #d2992a;
	margin-bottom: 20px;
}

#collection_Encyclopedia .collection_category__title h2 {
	margin: 0;
	padding: 0;
	color: #ffffff;
	font: normal 18px/30px Arial, Helvetica, sans-serif;
	text-shadow: 1px 1px 2px rgba(0,0,0,.4);
}

#collection_Encyclopedia .collection_category__title_border {
	width: 100%;
	height: 5px;
	background: url("/assets/media/collections/collection__border.png") 0 0 repeat-x;
	position: absolute;
	bottom: -6px;
	left: 0;
}

/* =====================================================
   КАРТОЧКИ ТОМОВ — С ЦВЕТНЫМ ФОНОМ
   ===================================================== */
#encyclopedia_volumes_grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 120px));
	gap: 20px;
	justify-content: center;
	padding: 20px;
}

.encyclopedia_volume_card {
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	border-radius: 8px;
	overflow: hidden;
	background: #4d4a41;
	border: 2px solid #634111;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.encyclopedia_volume_card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 12px rgba(0,0,0,0.25);
	border-color: #d2992a;
}

/* БЛОК С ФОНОМ (без картинки) */
.encyclopedia_volume_bg {
	position: relative;
	width: 100%;
	height: 110px;
	display: flex;
	align-items: center;
	justify-content: center;
	/* фон задаётся динамически из JS */
}

/* РИМСКАЯ ЦИФРА — крупная, на цветном фоне */
.encyclopedia_volume_roman {
	font-size: 34px;
	font-weight: bold;
	color: #ffffff;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
	font-family: 'Times New Roman', serif;
}

/* ПРОГРЕСС-БАР под томом */
.encyclopedia_volume_progress {
	padding: 8px 10px;
	background: #4d4a41;
	border-top: 1px solid #634111;
}

.encyclopedia_volume_progress_track {
	background: #e8dfca;
	border: 1px solid #634111;
	height: 10px;
	border-radius: 5px;
	overflow: hidden;
	margin-bottom: 5px;
}

.encyclopedia_volume_progress_fill {
	height: 100%;
	width: 0%;
	background: #d2992a;
	background: linear-gradient(90deg, #d2992a, #bfaa7c);
	border-radius: 5px;
	transition: width 0.3s ease;
}

.encyclopedia_volume_progress_text {
	font-size: 11px;
	font-weight: bold;
	color: #f2e8c9;
	text-align: center;
}

/* Адаптив */
@media (max-width: 700px) {
	#encyclopedia_volumes_grid {
		grid-template-columns: repeat(auto-fill, minmax(90px, 100px));
		gap: 15px;
		padding: 15px;
	}

	.encyclopedia_volume_bg {
		height: 90px;
	}

	.encyclopedia_volume_roman {
		font-size: 28px;
	}
}
@media (max-width: 700px) {
	#encyclopedia_volumes_grid {
		grid-template-columns: repeat(auto-fill, minmax(80px, 85px));
		gap: 10px;
		padding: 15px;
	}

	.encyclopedia_volume_roman {
		font-size: 14px;
		padding: 1px 4px;
	}

	.encyclopedia_volume_progress_text {
		font-size: 9px;
	}
}

/* КНОПКА НАЗАД */
.encyclopedia_back_btn {
	float: right;
	font-size: 14px;
	font-weight: normal;
	background: #bfaa7c;
	padding: 4px 12px;
	border-radius: 4px;
	border: 1px solid #d2992a;
	cursor: pointer;
	color: #332005;
	transition: all 0.2s ease;
}

.encyclopedia_back_btn:hover {
	background: #d2992a;
	color: #ffffff;
}

/* =====================================================
   КАРТОЧКИ ТОМА — С ДИНАМИЧЕСКИМИ ЦВЕТАМИ
   ===================================================== */
#encyclopedia_cards_grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 150px));
	gap: 20px;
	justify-content: center;
	padding: 20px;
}

.encyclopedia_card_item {
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	border-radius: 8px;
	overflow: hidden;
	background: #4d4a41;
	border-width: 2px;
	border-style: solid;
	/* border-color задаётся динамически из JS */
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.encyclopedia_card_item:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* БЛОК С КАРТИНКОЙ — фон задаётся динамически */
.encyclopedia_card_bg {
	position: relative;
	width: 100%;
	height: auto;
	min-height: 140px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	/* background задаётся динамически из JS */
}

/* КАРТИНКА — сохраняет пропорции */
.encyclopedia_card_img {
	width: 100%;
	height: auto;
	max-height: 160px;
	display: block;
	object-fit: contain;
	object-position: center;
	transition: opacity 0.2s ease;
}

/* Отсутствующая карточка — прозрачная ТОЛЬКО картинка */
.encyclopedia_card_missing .encyclopedia_card_img {
	opacity: 0.35;
	filter: grayscale(0.2);
}

/* ЗВЁЗДЫ — всегда видимые */
.encyclopedia_card_level {
	position: absolute;
	bottom: 6px;
	left: 6px;
	right: 6px;
	text-align: center;
	font-size: 12px;
	background: rgba(0, 0, 0, 0.7);
	padding: 4px 0;
	border-radius: 6px;
	backdrop-filter: blur(2px);
}

.encyclopedia_star {
	font-size: 12px;
	letter-spacing: 2px;
}

.encyclopedia_star_filled {
	color: #ffd700;
	text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.encyclopedia_star_empty {
	color: #666666;
}

/* Стили для подсказки (tooltip) — чтобы цвет применялся корректно */
#tooltip__content {
	font-size: 13px;
	line-height: 1.4;
}

/* Адаптив */
@media (max-width: 800px) {
	#encyclopedia_cards_grid {
		grid-template-columns: repeat(auto-fill, minmax(120px, 130px));
		gap: 15px;
		padding: 15px;
	}

	.encyclopedia_card_bg {
		min-height: 120px;
	}

	.encyclopedia_card_img {
		max-height: 140px;
	}

	.encyclopedia_star {
		font-size: 11px;
	}
}

@media (max-width: 550px) {
	#encyclopedia_cards_grid {
		grid-template-columns: repeat(auto-fill, minmax(100px, 110px));
		gap: 12px;
		padding: 12px;
	}

	.encyclopedia_card_bg {
		min-height: 100px;
	}

	.encyclopedia_card_img {
		max-height: 120px;
	}

	.encyclopedia_card_level {
		font-size: 10px;
		padding: 3px 0;
	}

	.encyclopedia_star {
		font-size: 10px;
		letter-spacing: 1px;
	}
}

/* =====================================================
   НАВИГАЦИЯ В МЕНЮ
   ===================================================== */
#encyclopedia_nav {
	margin: 5px 5px 5px 5px;
	border-top: 1px solid #d2992a;
	padding-top: 2px;
}

.encyclopedia_nav_item {
	background: #4d4a41;
	border: 1px solid #634111;
	margin: 5px 0;
	padding: 6px 12px;
	color: #e5e5e5;
	cursor: pointer;
	font: bold 12px/18px Arial, Helvetica, sans-serif;
	text-align: center;
}

.encyclopedia_nav_item:hover {
	background: #634111;
	border-color: #d2992a;
}

.encyclopedia_nav_item.active {
	background: #d2992a;
	color: #332005;
}

/* =====================================================
   ЛУТБОКСЫ
   ===================================================== */

#encyclopedia_lootboxes_grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
	padding: 20px;
}

.lootbox_card {
	background: #4d4a41;
	border: 1px solid #634111;
	border-radius: 12px;
	padding: 15px;
	text-align: center;
	min-height: 280px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.lootbox_image {
	width: 80px;
	height: 80px;
	margin: 0 auto 10px;
}

.lootbox_img {
	max-width: 70px;
	max-height: 70px;
}

.lootbox_name {
	font-size: 14px;
	font-weight: bold;
	color: #ffd700;
	margin-bottom: 8px;
}

.lootbox_description {
	font-size: 11px;
	color: #ccc;
	margin-bottom: 12px;
	flex: 1;
}

.lootbox_price {
	font-size: 13px;
	font-weight: bold;
	color: #ffd700;
	margin-bottom: 12px;
}

.lootbox_buy_btn {
	background: #2d4a1e;
	color: #f2e8c9;
	border: 1px solid #d2992a;
	border-radius: 6px;
	padding: 6px 15px;
	cursor: pointer;
	font: bold 12px/16px Arial, Helvetica, sans-serif;
	width: 100%;
}

.lootbox_buy_btn:hover:not(.disabled) {
	background: #3e6b2a;
}

.lootbox_buy_btn.disabled {
	opacity: 0.5;
	cursor: not-allowed;
	background: #555;
}

.lootbox_confirm_buttons {
	text-align: center;
	margin-top: 20px;
}

.lootbox_confirm_buttons button {
	margin: 0 8px;
}

/* =====================================================
   КАРТОЧКА ТОМА (КОМПАКТНАЯ, НО С БОЛЬШИМИ ИКОНКАМИ)
   ===================================================== */
#encyclopedia_volumes_grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
	gap: 12px;
	justify-content: center;
	padding: 15px;
}

.encyclopedia_volume_card {
	background: #4d4a41;
	border: 1px solid #634111;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.encyclopedia_volume_card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.3);
	border-color: #d2992a;
}

/* БЛОК С РИМСКОЙ ЦИФРОЙ (чуть меньше) */
.encyclopedia_volume_bg {
	position: relative;
	width: 100%;
	height: 85px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.encyclopedia_volume_roman {
	font-size: 32px;
	font-weight: bold;
	color: #ffffff;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
	font-family: 'Times New Roman', serif;
	background: rgba(0,0,0,0.5);
	padding: 4px 12px;
	border-radius: 8px;
}

/* ПРОГРЕСС-БАР (компактный) */
.encyclopedia_volume_progress {
	padding: 8px;
	background: #3a3a3a;
	border-top: 1px solid #634111;
	border-bottom: 1px solid #634111;
}

.encyclopedia_volume_progress_track {
	background: #1a1a1a;
	border: 1px solid #634111;
	height: 10px;
	border-radius: 5px;
	overflow: hidden;
	margin-bottom: 4px;
}

.encyclopedia_volume_progress_fill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #d2992a, #bfaa7c);
	border-radius: 5px;
	transition: width 0.3s ease;
}

.encyclopedia_volume_progress_text {
	font-size: 10px;
	font-weight: bold;
	color: #ffd700;
	text-align: center;
}



/* =====================================================
   БЛОК НАГРАД (ВНУТРИ КАРТОЧКИ) - ТОНКАЯ РАМКА, БОЛЬШИЕ КАРТИНКИ
   ===================================================== */
.volume-rewards {
	padding: 8px;
	background: #2a2a2a;
}

.volume-rewards-title {
	font-size: 10px;
	color: #ffd700;
	text-align: center;
	margin-bottom: 8px;
	font-weight: bold;
}

.volume-rewards-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
	margin-bottom: 10px;
}

.volume-reward-item {
	text-align: center;
	min-width: 44px;
}

/* ИКОНКИ НАГРАД - ТОНКАЯ РАМКА, БОЛЬШЕ КАРТИНКА */
.volume-reward-icon {
	width: 44px;
	height: 44px;
	background: #4d4a41;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #634111;
	margin: 0 auto;
}

.volume-reward-icon img {
	max-width: 34px;
	max-height: 34px;
}

.volume-reward-amount {
	font-size: 9px;
	color: #ffd700;
	margin-top: 2px;
	font-weight: bold;
}

/* КНОПКА ПОЛУЧЕНИЯ НАГРАДЫ */
.volume-reward-btn {
	width: 100%;
	padding: 8px 6px;
	border: none;
	border-radius: 6px;
	font-size: 11px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
}

.volume-reward-btn.available {
	background: #2d4a1e;
	color: #f2e8c9;
	border: 1px solid #d2992a;
}

.volume-reward-btn.available:hover {
	background: #3e6b2a;
	transform: translateY(-1px);
}

.volume-reward-btn.locked {
	background: #555;
	color: #999;
	cursor: not-allowed;
	border: 1px solid #634111;
}

.volume-reward-btn.claimed {
	background: #3a3a3a;
	color: #888;
	cursor: not-allowed;
	border: 1px solid #634111;
}

.volume-reward-btn.loading {
	opacity: 0.7;
	cursor: wait;
}


/* =====================================================
   ОБМЕН ФРАГМЕНТОВ (сетка как у лутбоксов)
   ===================================================== */
#collection_Exchange {
	background: #bfaa7c;
	border: 1px solid #634111;
	margin-bottom: 40px;
}

#collection_Exchange .collection_category__inner {
	border: 1px solid #d2992a;
}

#collection_Exchange .collection_category__title {
	background: #4d4a41 url("/assets/media/collections/collection__category__title_bg.jpg") 0 0 repeat-x;
	padding: 5px 20px;
	position: relative;
	border-bottom: 1px solid #d2992a;
	margin-bottom: 20px;
}

#collection_Exchange .collection_category__title h2 {
	margin: 0;
	padding: 0;
	color: #ffffff;
	font: normal 18px/30px Arial, Helvetica, sans-serif;
	text-shadow: 1px 1px 2px rgba(0,0,0,.4);
}

.exchange_segments_balance {
	text-align: center;
	font-size: 14px;
	font-weight: bold;
	margin: 10px 20px;
	padding: 8px;
	background: #4d4a41;
	border-radius: 8px;
	color: #ffd700;
}

.exchange_segments_balance img {
	vertical-align: middle;
}

#encyclopedia_exchange_grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
	padding: 20px;
}

.exchange_card {
	background: #4d4a41;
	border: 1px solid #634111;
	border-radius: 12px;
	padding: 15px;
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exchange_card:hover:not(.exhausted) {
	transform: translateY(-4px);
	box-shadow: 0 6px 12px rgba(0,0,0,0.3);
	border-color: #d2992a;
}

.exchange_card.exhausted {
	opacity: 0.6;
}

.exchange_image {
	width: 80px;
	height: 80px;
	margin: 0 auto 10px;
}

.exchange_img {
	max-width: 70px;
	max-height: 70px;
}

.exchange_name {
	font-size: 14px;
	font-weight: bold;
	color: #ffd700;
	margin-bottom: 8px;
}

.exchange_description {
	font-size: 11px;
	color: #ccc;
	margin-bottom: 10px;
	line-height: 1.3;
}

.exchange_price {
	font-size: 13px;
	font-weight: bold;
	color: #ffd700;
	margin-bottom: 8px;
}

.exchange_limit {
	font-size: 10px;
	margin-bottom: 12px;
	padding: 3px 6px;
	border-radius: 4px;
	display: inline-block;
}

.exchange_limit.unlimited {
	color: #aaa;
	background: #2a2a2a;
}

.exchange_limit.available {
	color: #ff9800;
	background: #2a2a2a;
}

.exchange_limit.exhausted {
	color: #f44336;
	background: #2a2a2a;
}

.exchange_buy_btn {
	background: #2d4a1e;
	color: #f2e8c9;
	border: 1px solid #d2992a;
	border-radius: 6px;
	padding: 8px 15px;
	cursor: pointer;
	font: bold 12px/16px Arial, Helvetica, sans-serif;
	width: 100%;
}

.exchange_buy_btn:hover:not(.disabled) {
	background: #3e6b2a;
	transform: scale(0.98);
}

.exchange_buy_btn.disabled {
	opacity: 0.5;
	cursor: not-allowed;
	background: #555;
}

/* Для блока обмена (дополнительно к существующему) */
.exchange_segments_balance {
	text-align: center;
	font-size: 14px;
	font-weight: bold;
	margin: 10px 20px;
	padding: 8px;
	background: #4d4a41;
	border-radius: 8px;
	color: #ffd700;
}

.exchange_segments_balance img {
	vertical-align: middle;
}

#encyclopedia_exchange_grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
	padding: 20px;
}

.exchange_card {
	background: #4d4a41;
	border: 1px solid #634111;
	border-radius: 12px;
	padding: 15px;
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exchange_card:hover:not(.exhausted) {
	transform: translateY(-4px);
	box-shadow: 0 6px 12px rgba(0,0,0,0.3);
	border-color: #d2992a;
}

.exchange_card.exhausted {
	opacity: 0.6;
}

.exchange_image {
	width: 80px;
	height: 80px;
	margin: 0 auto 10px;
}

.exchange_img {
	max-width: 70px;
	max-height: 70px;
}

.exchange_name {
	font-size: 14px;
	font-weight: bold;
	color: #ffd700;
	margin-bottom: 8px;
}

.exchange_description {
	font-size: 11px;
	color: #ccc;
	margin-bottom: 10px;
	line-height: 1.3;
}

.exchange_price {
	font-size: 13px;
	font-weight: bold;
	color: #ffd700;
	margin-bottom: 8px;
}

.exchange_limit {
	font-size: 10px;
	margin-bottom: 12px;
	padding: 3px 6px;
	border-radius: 4px;
	display: inline-block;
}

.exchange_limit.unlimited {
	color: #aaa;
	background: #2a2a2a;
}

.exchange_limit.available {
	color: #ff9800;
	background: #2a2a2a;
}

.exchange_limit.exhausted {
	color: #f44336;
	background: #2a2a2a;
}

.exchange_buy_btn {
	background: #2d4a1e;
	color: #f2e8c9;
	border: 1px solid #d2992a;
	border-radius: 6px;
	padding: 8px 15px;
	cursor: pointer;
	font: bold 12px/16px Arial, Helvetica, sans-serif;
	width: 100%;
}

.exchange_buy_btn:hover:not(.disabled) {
	background: #3e6b2a;
	transform: scale(0.98);
}

.exchange_buy_btn.disabled {
	opacity: 0.5;
	cursor: not-allowed;
	background: #555;
}

.exchange_price {
	font-size: 13px;
	font-weight: bold;
	color: #ffd700;
	margin-bottom: 8px;
}

.exchange_segments_balance {
	text-align: center;
	font-size: 14px;
	font-weight: bold;
	margin: 10px 20px;
	padding: 8px;
	background: #4d4a41;
	border-radius: 8px;
	color: #ffd700;
}

/* =====================================================
   ТАЙМЕР В МЕНЮ
   ===================================================== */
.encyclopedia-timer {
	background: #4d4a41;
	border: 1px solid #d2992a;
	border-radius: 6px;
	padding: 8px;
	margin: 10px 5px 5px 5px;
	text-align: center;
	font-size: 12px;
	font-weight: bold;
	color: #ffd700;
}

#encyclopedia_timer {
	margin-top: 5px;
}


/* =====================================================
   ПАКИ — ВЕРТИКАЛЬНАЯ ЦЕПОЧКА (КОМПАКТНАЯ)
   ===================================================== */

#collection_Packs {
	background: #bfaa7c;
	border: 1px solid #634111;
	margin-bottom: 40px;
}

#collection_Packs .collection_category__inner {
	border: 1px solid #d2992a;
}

#collection_Packs .collection_category__title {
	background: #4d4a41 url("/assets/media/collections/collection__category__title_bg.jpg") 0 0 repeat-x;
	padding: 5px 20px;
	position: relative;
	border-bottom: 1px solid #d2992a;
	margin-bottom: 16px;
}

#collection_Packs .collection_category__title h2 {
	margin: 0;
	padding: 0;
	color: #ffffff;
	font: normal 18px/30px Arial, Helvetica, sans-serif;
	text-shadow: 1px 1px 2px rgba(0,0,0,.4);
}

#collection_Packs .collection_category__title_border {
	width: 100%;
	height: 5px;
	background: url("/assets/media/collections/collection__border.png") 0 0 repeat-x;
	position: absolute;
	bottom: -6px;
	left: 0;
}

.packs_info {
	text-align: center;
	font-size: 12px;
	color: #332005;
	padding: 6px 16px;
	background: rgba(0,0,0,0.05);
	border-bottom: 1px solid #d2992a;
	margin-bottom: 8px;
	font-weight: bold;
}

/* ===== ВЕРТИКАЛЬНАЯ ВРЕМЕННАЯ ШКАЛА (КОМПАКТНАЯ) ===== */
.packs_timeline {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px 16px;
	background: #3a3a3a;
	border-radius: 12px;
	margin: 8px 16px 16px;
	border: 1px solid #634111;
}

/* Каждый шаг */
.pack-timeline-step {
	display: flex;
	align-items: stretch;
	gap: 12px;
	position: relative;
	padding: 6px 10px 6px 0;
	border-radius: 8px;
	background: transparent;
	border-left: 4px solid var(--step-color, #888);
	transition: all 0.2s ease;
}

/* Маркер (круг + линия) */
.pack-timeline-marker {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex-shrink: 0;
	width: 32px;
	position: relative;
}

.pack-timeline-circle {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 3px solid var(--step-color, #888);
	background: #2a2a2a;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 13px;
	color: #fff;
	position: relative;
	z-index: 2;
	transition: all 0.3s ease;
}

.pack-timeline-number {
	line-height: 1;
}

/* Активный круг */
.pack-timeline-step.step-active .pack-timeline-circle {
	border-color: #ffd700 !important;
	box-shadow: 0 0 16px rgba(255, 215, 0, 0.5);
	background: #ffd700;
	color: #1a1a1a;
}

/* Купленный круг */
.pack-timeline-step.step-bought .pack-timeline-circle {
	border-color: #4caf50 !important;
	background: #4caf50;
	color: #fff;
}

/* Заблокированный круг */
.pack-timeline-step.step-locked .pack-timeline-circle {
	opacity: 0.5;
	filter: grayscale(0.3);
}

/* Вертикальная линия */
.pack-timeline-line {
	width: 3px;
	flex: 1;
	min-height: 12px;
	margin-top: 4px;
	background: var(--step-color, #888);
	opacity: 0.4;
	transition: all 0.3s ease;
}

.pack-timeline-step.step-bought .pack-timeline-line {
	opacity: 1;
}
.pack-timeline-step.step-active .pack-timeline-line {
	opacity: 0.7;
}
.pack-timeline-step.step-locked .pack-timeline-line {
	opacity: 0.15;
}

/* Контент */
.pack-timeline-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 2px 0;
	min-width: 0;
}

.pack-timeline-header {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.pack-timeline-status {
	font-size: 16px;
	line-height: 1;
}

.pack-timeline-name {
	font-size: 15px;
	font-weight: bold;
	color: #ffd700;
}

.pack-timeline-step.step-active .pack-timeline-name {
	color: #ffd700;
}
.pack-timeline-step.step-bought .pack-timeline-name {
	color: #4caf50;
}
.pack-timeline-step.step-locked .pack-timeline-name {
	color: #888;
}

/* Состав */
.pack-timeline-rewards {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	font-size: 12px;
	color: #ccc;
	padding: 2px 0;
}

.pack-timeline-rewards .pack-reward-mini {
	white-space: nowrap;
}

/* Низ (цена + кнопка) */
.pack-timeline-footer {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 4px;
	flex-wrap: wrap;
}

.pack-timeline-price {
	font-size: 14px;
	font-weight: bold;
	color: #ffd700;
}

.pack-timeline-price img {
	vertical-align: middle;
	width: 18px;
	height: 18px;
}

.pack-timeline-btn {
	padding: 6px 18px;
	border-radius: 8px;
	font: bold 14px/20px Arial, Helvetica, sans-serif;
	cursor: pointer;
	border: none;
	transition: all 0.2s ease;
	white-space: nowrap;
	min-height: 36px;
}

.pack-timeline-btn.active {
	background: #2d4a1e;
	color: #f2e8c9;
	border: 1px solid #d2992a;
}
.pack-timeline-btn.active:hover {
	background: #3e6b2a;
	transform: scale(0.98);
}

.pack-timeline-btn.bought {
	background: #1a3a1a;
	color: #4caf50;
	border: 1px solid #4caf50;
	cursor: default;
}

.pack-timeline-btn.locked {
	background: #555;
	color: #999;
	border: 1px solid #634111;
	cursor: not-allowed;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 700px) {
	.packs_timeline {
		padding: 10px 10px;
		gap: 6px;
		margin: 6px 10px 10px;
	}
	.pack-timeline-step {
		padding: 4px 6px 4px 0;
		gap: 8px;
		border-left-width: 3px;
	}
	.pack-timeline-marker {
		width: 26px;
	}
	.pack-timeline-circle {
		width: 24px;
		height: 24px;
		font-size: 11px;
		border-width: 2px;
	}
	.pack-timeline-line {
		min-height: 8px;
		margin-top: 2px;
	}
	.pack-timeline-name {
		font-size: 13px;
	}
	.pack-timeline-status {
		font-size: 14px;
	}
	.pack-timeline-rewards {
		font-size: 11px;
		gap: 2px 8px;
	}
	.pack-timeline-footer {
		gap: 10px;
	}
	.pack-timeline-price {
		font-size: 13px;
	}
	.pack-timeline-price img {
		width: 16px;
		height: 16px;
	}
	.pack-timeline-btn {
		font-size: 12px;
		padding: 5px 12px;
		min-height: 30px;
	}
}

@media (max-width: 480px) {
	.packs_timeline {
		padding: 8px 6px;
		gap: 4px;
	}
	.pack-timeline-step {
		gap: 6px;
		padding: 3px 4px 3px 0;
	}
	.pack-timeline-marker {
		width: 20px;
	}
	.pack-timeline-circle {
		width: 20px;
		height: 20px;
		font-size: 9px;
		border-width: 2px;
	}
	.pack-timeline-line {
		min-height: 6px;
		margin-top: 2px;
	}
	.pack-timeline-name {
		font-size: 12px;
	}
	.pack-timeline-rewards {
		font-size: 10px;
		gap: 2px 6px;
	}
	.pack-timeline-price {
		font-size: 12px;
	}
	.pack-timeline-price img {
		width: 14px;
		height: 14px;
	}
	.pack-timeline-btn {
		font-size: 11px;
		padding: 4px 10px;
		min-height: 26px;
	}
}