@keyframes cardAddition {
	0% { transform: scale(0.8); opacity: 0; }
	50% { transform: scale(1.1); }
	100% { transform: scale(1); opacity: 1; }
}

@keyframes cardRemoval {
	0% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.1); opacity: 0.5; }
	100% { transform: scale(0.8); opacity: 0; }
}

.deck-building {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.8s ease;
	z-index: 1000;
	padding: 20px;
	display: flex;
	flex-direction: column;
	margin-left: -20px;
}

.deck-building__container {
	display: grid;
	grid-template-columns: 1fr 300px 1fr;
	gap: 20px;
	height: calc(100% - 60px);
	max-width: 1800px;
	margin: 0 auto;
	margin-top: 20px;
	width: 100%;
}

.cards-collection,
.deck-cards {
	background: rgba(20, 20, 20, 0.8);
	border: 1px solid #222;
	border-radius: 10px;
	padding: 0;
	overflow: hidden;
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.deck-cards__header {
	position: sticky;
	top: 0;
	border-bottom: 1px solid #222;
	z-index: 100;
	padding: 0 20px;
}

.deck-cards__content {
	flex: 1;
	overflow-y: auto;
	padding: 5px 15px;
	min-height: 200px;
}

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	border-bottom: 1px solid #d4af37;
	position: sticky;
	height: 55px;
	top: 0;
	z-index: 100;
}

.section-header h2 {
	font-size: 25px;
	text-transform: uppercase;
	letter-spacing: 2px;
	margin: 0;
	padding-top: 10px;
	
	/* Горизонтальный градиент для другого эффекта */
	background: linear-gradient(90deg, #a57c2c 0%, #cfaa4a 50%, #e5c168 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	
	text-shadow: 
		1px 1px 2px rgba(0, 0, 0, 0.3),
		0 0 5px rgba(165, 124, 44, 0.1);
}

.sort-buttons {
	display: flex;
	gap: 5px;
	padding-top: 5px;
}

.sort-btn {
	background: none;
	border: none;
	cursor: url('../ui/cursor_hover.png'), pointer;
	transition: all 0.3s ease;
}

.sort-btn img {
	width: 35px;
	height: 35px;
    filter: grayscale(0.8) brightness(0.7);
    transition: all 0.3s ease;
}

.sort-btn img:hover {
	transform: scale(1.2);
	filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
}

.sort-btn.active:not(.faction-sort-btn):not(.deck-faction-sort-btn) img {
	transform: scale(1.2);
	filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

.sort-btn.inactive img {
    filter: grayscale(0.8) brightness(0.7);
    opacity: 0.9;
    transform: scale(1);
}

.sort-btn.inactive:hover img {
    filter: grayscale(0.5) brightness(0.85);
    opacity: 1;
    transform: scale(1.1);
}

.sort-btn.faction-sort-btn.active img,
.sort-btn.deck-faction-sort-btn.active img {
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
    transform: scale(1.1);
}

.sort-btn.faction-sort-btn.inactive img,
.sort-btn.deck-faction-sort-btn.inactive img {
    filter: grayscale(0.8) brightness(0.7);
    opacity: 0.9;
    transform: scale(1);
}

.sort-btn.faction-sort-btn.inactive:hover img,
.sort-btn.deck-faction-sort-btn.inactive:hover img {
    filter: grayscale(0.5) brightness(0.85);
    opacity: 1;
    transform: scale(1.1);
}

.cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 10px;
	margin-left: 15px;
	padding-top: 15px;
	min-height: 200px;
}

.card {
	position: relative;
	width: 120px;
	height: 170px;
	transition: all 0.3s ease;
}

.card:hover {
	transform: translateY(-5px) scale(1.05);
	z-index: 10;
}

.card__container {
	position: relative;
	width: 100%;
	height: 100%;
	cursor: url('../ui/cursor_hover.png'), pointer;
}

.card__media {
	margin-top: 1px;
	width: 99%;
	height: 99%;
	object-fit: cover;
	border-radius: 5px;
}
.card__media video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 5px;
}

.card__border {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 2;
	border-radius: 5px;
}

.card__banner {
	position: absolute;
	top: -27px;
	left: -19px;
	width: calc(100% + 10px);
	height: calc(100% + 10px);
	object-fit: contain;
	z-index: 4;
	pointer-events: none;
}

.card__type-icon img {
	position: absolute;
	top: 1px;
	left: -2.5px;
	width: 25px;
	height: 25px;
	z-index: 4;
}

.card__name {
	position: absolute;
	top: 7px;
	left: 4px;
	right: 0;
	text-align: center;
	color: #d4af37;
	-webkit-text-stroke: 0.2px black;
	font-size: 13px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	z-index: 3;
}

.card__strength {
	position: absolute;
	top: 3.3px;
	left: 8.5%;
	color: white;
	transform: translateX(-58%);
	-webkit-text-stroke: 0.1px black;
	font-size: 20px;
	text-align: center;
	z-index: 4;
}

.deck-stats {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4%;
}

.leader-card {
	position: relative;
	width: 195px;
	height: 277px;
	cursor: url('../ui/cursor_hover.png'), pointer;
}

.leader-card:hover {
	scale: 1.01;
	filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}

.leader-card__media {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 5px;
}

.leader-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 5px;
}

.leader__border {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 2;
	border-radius: 5px;
}

.leader__banner {
	position: absolute;
	top: -46px;
	left: -32px;
	width: calc(100% + 10px);
	height: calc(100% + 10px);
	object-fit: contain;
	z-index: 3;
	pointer-events: none;
}

.card__type-icon_leader img {
  width: 40px;
  height: 40px;
  top: -2px;
  left: -7px;
	position: absolute;
	z-index: 4;
}

.card__type_leader {
	position: absolute;
	top: -2px;
	left: -7px;
	width: 40px;
	height: auto;
	z-index: 3;
}

.leader__name {
	position: absolute;
	top: 8px;
	left: 0;
	right: 0;
	text-align: center;
	color: #d4af37;
	-webkit-text-stroke: 0.2px black;
	font-size: 18px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
	z-index: 2;
}

.leader__logo {
	position: absolute;
	top: 220px;
	left: 40px;
	z-index: 4;
	transition: transform 0.3s ease;
}

.leader__logo {
	width: 110px;
}

.leader__logo:hover {
	transform: scale(1.05);
	filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
	cursor: url('../ui/cursor_hover.png'), pointer !important;
}

.stats-info {
	background: 
        url('../ui/border.png') no-repeat center center,
        rgba(20, 20, 20, 0.8);
  background-size: 100% 100%, cover;
	border-radius: 8px;
	margin-top: -15px;
	padding-top: 15px;
	padding-bottom: 15px;
	width: 193px;
}

.stat-group {
	margin-bottom: 8px;
	text-align: center;
}

.stat-group:last-child {
	margin-bottom: 0;
}

.stat-label {
	color: white;
	display: block;
	font-size: 15px;
	margin-bottom: 5px;
	letter-spacing: 1.4px;
}

.stat-item {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1px;
}

.stat-item img {
	width: auto;
	height: 28px;
}

.stat-value {
	color: #d4af37;
	font-size: 22px;
	font-weight: bold;
	min-width: 30px;
	text-align: center;
}

.empty-deck-message {
	grid-column: 1 / -1;
	text-align: center;
	color: #777;
	padding: 40px;
	font-style: italic;
}

.start-game-btn {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    color: #d4af37;
    border: 1px solid #d4af37;
    padding: 8px 30px;
    font-size: 18px;
    font-family: 'Gwent', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: url('../ui/cursor_hover.png'), pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    margin: 0 auto;
    position: absolute;
    overflow: hidden;
    top: 65%;
    left: 50%;
    transform: translate(-50%, 0);
    transform-origin: center;
    z-index: 1000;
}

.start-game-btn:hover {
	transform: translate(-50%, 0) scale(1.05);
	box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
	color: #d4af37;
}

.start-game-btn:active {
	box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.start-game-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
	transition: left 0.5s ease;
}

.start-game-btn:hover::before {
	left: 100%;
}

.empty-category-message {
	grid-column: 1 / -1;
	text-align: center;
	color: #777;
	padding: 40px;
	font-style: italic;
}

.empty-deck-icon {
	padding-top: 25px;
	width: 35px;
	height: auto;
}

.card-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	backdrop-filter: blur(5px);
}

.card-modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

.card-modal {
	padding: 50px;
	width: 800px;
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 40px;
	transform: scale(0.5);
	opacity: 0;
	transition: all 0.3s ease;
	position: relative;
}

.card-modal-overlay.active .card-modal {
	transform: scale(1);
	opacity: 1;
}

.card-modal__preview {
	position: relative;
	width: 290px;
	height: 420px;
}

.card-modal__preview .card__container {
	width: 100%;
	height: 100%;
	transform: scale(1.2);
}

.card-modal__preview .card__media {
	margin-top: 3px;
	width: 99%;
	height: 98%;
	object-fit: cover;
	border-radius: 10px;
}

.card-modal__preview .card__border {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
}

.card-modal__preview .card__banner {
	top: -79px;
	left: -55px;
	width: calc(100% + 60px);
	height: calc(100% + 80px);
}

.card-modal__preview .card__strength {
	font-size: 40px;
	top: 18px;
	left: 8.5%;
	color: white;
	transform: translateX(-58%);
	text-align: center;
	-webkit-text-stroke: 1px black;
}

.card-modal__preview .card__type-icon img {
	width: 60px;
	height: 60px;
	top: 7px;
	left: -7.3px;
}

.card-modal__preview .card__type-leader img {
	position: absolute;
	width: 60px;
	height: 60px;
	top: 6px;
	left: -7.5px;
	z-index: 5;
}

.card-modal__info {
	display: flex;
	flex-direction: column;
}

.card-modal__title {
	font-size: 30px;
	margin-top: -41px;
	margin-bottom: 5px;
	text-transform: uppercase;
	letter-spacing: 2px;
	
	/* Благородное золото с градиентом */
	background: linear-gradient(135deg, #a57c2c 0%, #cfaa4a 45%, #b58a2a 80%, #e5c168 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	
	/* Мягкая тень для объема */
	text-shadow: 
		1px 1px 2px rgba(0, 0, 0, 0.4),
		0 0 6px rgba(165, 124, 44, 0.3);
}

.card-modal__faction {
	color: #ccc;
	font-size: 18px;
	margin-bottom: 20px;
	font-style: italic;
}

.card-modal__stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 5px;
	margin-bottom: 10px;
}

.card-modal__stat {
	background: rgba(30, 30, 30, 0.5);
	padding: 5px;
	border-radius: 4px;
	border-left: 2px solid #d4af37;
}

.card-modal__stat-label {
	color: #ccc;
	font-size: 11px;
	text-transform: uppercase;
	margin-bottom: 5px;
}

.card-modal__stat-value {
	font-size: 15px;
  letter-spacing: 1.5px;
	
	/* Градиентное золото для числовых значений */
	background: linear-gradient(135deg, #a57c2c 0%, #cfaa4a 45%, #b58a2a 80%, #e5c168 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	
	text-shadow: 
		0 1px 2px rgba(0, 0, 0, 0.4),
		0 0 4px rgba(165, 124, 44, 0.2);
}

.card-modal__description {
	background: rgba(30, 30, 30, 0.5);
	padding: 10px;
	border-radius: 4px;
	border: 1px solid #222;
	flex-grow: 1;
	margin-bottom: 5px;
}

.card-modal__description-title {
	font-size: 15px;
	margin-bottom: 5px;
	text-transform: uppercase;
  letter-spacing: 2.5px;
	
	/* Градиентное золото для заголовков описания */
	background: linear-gradient(135deg, #a57c2c 0%, #cfaa4a 45%, #b58a2a 80%, #e5c168 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	
	text-shadow: 
		0 1px 2px rgba(0, 0, 0, 0.4),
		0 0 4px rgba(165, 124, 44, 0.2);
}

.card-modal__description-text {
	color: #ccc;
	font-size: 13px;
	line-height: 1.3;
  letter-spacing: 1px;
}

.card-modal__abilities {
	background: rgba(30, 30, 30, 0.5);
	padding: 10px;
	border-radius: 5px;
	border: 1px solid #222;
	margin-bottom: 5px;
}

.card-modal__abilities-title {
	font-size: 15px;
	margin-bottom: 5px;
	text-transform: uppercase;
  letter-spacing: 2.5px;
	
	/* Благородное золото с градиентом */
	background: linear-gradient(135deg, #a57c2c 0%, #cfaa4a 45%, #b58a2a 80%, #e5c168 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	
	/* Мягкая тень для объема */
	text-shadow: 
		0.5px 0.5px 1px rgba(0, 0, 0, 0.3),
		0 0 4px rgba(165, 124, 44, 0.2);
}

.card-modal__ability {
	background: rgba(50, 50, 50, 0.5);
	padding: 5px;
	margin-bottom: 10px;
	border-radius: 4px;
	border-left: 2px solid #2196F3;
}

.card-modal__ability-name {
	color: #2196F3;
	font-size: 14px;
	margin-bottom: 5px;
}

.card-modal__ability-description {
	color: #ccc;
	font-size: 12px;
	line-height: 1.3;
  letter-spacing: 1.3px;
}

.faction-ability {
	background: rgba(20, 20, 20, 0.8);
	border: 1px solid #222;
	border-radius: 10px;
	margin-top: -18px;
	padding: 5px;
	width: 300px;
}

.faction-ability__header {
	border-bottom: 1px solid #d4af37;
	margin-bottom: 5px;
	padding-bottom: 3px;
}

.faction-ability__header h3 {
  color: #d4af37;        
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin: 0;
	text-align: center;
}

.faction-ability__content {
	display: grid;
	align-items: flex-start;
	text-align: center;
}

.ability-icon img {
	width: 70px;
	height: auto;
}

.ability-info {
	flex: 1;
}

.ability-name {
	color: #d4af37;
	font-size: 14px;
	margin-bottom: 5px;
}

.ability-description {
	color: #ccc;
	font-size: 11px;
	line-height: 1.2;
}

.abilities-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
  background: rgba(0, 0, 0, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	backdrop-filter: blur(5px);
}

.abilities-modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

.abilities-modal {
  background: url('../ui/fon_dop.jpg') no-repeat center center; 
	background-size: cover;
	border: 2px solid #d4af37;
	border-radius: 10px;
	padding: 10px;
	max-width: 700px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
	transform: scale(0.9);
	opacity: 0;
	transition: all 0.3s ease;
}

.abilities-modal-overlay.active .abilities-modal {
	transform: scale(1);
	opacity: 1;
}

.abilities-modal__title {
  color: #d4af37;        
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
	font-size: 25px;
	text-align: center;
	margin-top: 5px;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.abilities-list {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-bottom: 10px;
}

.ability-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px;
  background: rgba(10, 10, 10, 0.4); 
	border: 1px solid #222;
	border-radius: 5px;
	cursor: url('../ui/cursor.png'), pointer;
	transition: all 0.3s ease;
	position: relative;
}

.ability-option:hover {
	border-color: #d4af37;
	transform: translateX(8px);
}

.ability-option.selected {
	border-color: #d4af37;
}

.ability-option__icon img {
	width: 70px;
	height: auto;
}

.ability-option__info {
	flex: 1;
}

.ability-option__name {
	color: #d4af37;
	font-size: 15px;
	margin-bottom: 3px;
}

.ability-option__description {
	color: #ccc;
	font-size: 12px;
	line-height: 1.2;
	font-style: italic;
}

.ability-option__check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
}

.ability-option__check img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
}

.abilities-confirm-btn {
	background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
	color: #d4af37;
	border: 1px solid #d4af37;
	padding: 10px;
	font-size: 16px;
	font-family: 'Gwent', sans-serif;
	text-transform: uppercase;
	letter-spacing: 2px;
	cursor: url('../ui/cursor_hover.png'), pointer;
	transition: all 0.3s ease;
	border-radius: 4px;
	width: 100%;
}

.abilities-confirm-btn:hover {
	transform: scale(1.01);
	box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
	color: #d4af37;
}

.card__position {
	position: absolute;
	bottom: -3px;
	right: -4px;
	width: 40px;
	height: 40px;
	z-index: 4;
}

.card__position-banner {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

.card__position-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 30px;
	height: auto;
	object-fit: contain;
}

.card-modal__preview .card__position {
	width: 85px;
	height: 85px;
	bottom: -5px;
	right: -9px;
}

.card-modal__preview .card__position-icon {
	width: 50px;
	height: auto;
}

.back-to-faction-btn {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    border: none;
    padding: 5px 12px;
    font-size: 13px;
    font-family: 'Gwent', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: url('../ui/cursor_hover.png'), pointer;
    transition: all 0.3s ease;
    border-radius: 3px;
    position: absolute;
    left: 35px;
    top: 10px;
    overflow: hidden;
    
    /* Приглушенное старинное золото */
    color: #be9a48;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.back-to-faction-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #be9a48, #e5c168, #be9a48, transparent);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.back-to-faction-btn:hover {
    scale: 1.03;
    background: rgba(0, 0, 0, 0.6);
    color: #cfaf58;
    text-shadow: 0 0 8px rgba(207, 175, 88, 0.5);
}

.back-to-faction-btn:hover::after {
    width: 85%;
}

.back-to-faction-btn:active {
    transform: scale(1.05);
}

.deck-controls-panel {
	background: rgba(20, 20, 20, 0.8);
	border-top: 1px solid #222;
	padding: 5px;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 100;
	flex-shrink: 0;
	position: sticky;
	bottom: 0;
	margin-top: auto;
}

.deck-control-btn {
	background: none;
	border: 1px solid #3a3a4a;
	padding: 5px;
	font-size: 13px;
	font-family: 'Gwent', sans-serif;
	text-transform: uppercase;
	letter-spacing: 2.5px;
	cursor: url('../ui/cursor_hover.png'), pointer;
	transition: all 0.3s ease;
	border-radius: 4px;
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 140px;
	justify-content: center;
	
	/* Градиентное золото для текста */
	background: linear-gradient(135deg, #a57c2c 0%, #cfaa4a 45%, #b58a2a 80%, #e5c168 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	
	/* Мягкая тень для объема */
	text-shadow: 
		0 1px 2px rgba(0, 0, 0, 0.4),
		0 0 4px rgba(165, 124, 44, 0.2);
}

.deck-control-btn:hover {
	scale: 1.02;
	border-color: #cfaa4a;
	box-shadow: 0 5px 15px rgba(207, 170, 74, 0.2);
	
	/* Усиливаем градиент при наведении */
	background: linear-gradient(135deg, #b8892c 0%, #ddb652 45%, #c6982e 80%, #efcd74 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	
	text-shadow: 
		0 0 8px rgba(207, 170, 74, 0.5),
		0 1px 2px rgba(0, 0, 0, 0.4);
}

.deck-control-btn img {
	width: auto;
	height: 21px;
	/* Применяем золотистый оттенок к иконке */
	filter: brightness(0.8) sepia(0.4) saturate(1.2);
	transition: filter 0.3s ease;
}

.deck-control-btn:hover img {
	filter: brightness(1) sepia(0.5) saturate(1.3) drop-shadow(0 0 2px rgba(207, 170, 74, 0.5));
}

.tags-container {
    display: flex;
    gap: 8px;
}

.card-tag {
    color: #ccc;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 3px 3px;
    border-radius: 4px;
    border: 1px solid #666;
    white-space: nowrap;
    text-align: center;
    min-width: fit-content;
    max-width: 100%;
    word-break: break-word;
    box-sizing: border-box;
    display: inline-block;
}

.tags-container-3col {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 3px;
}

.message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(2px);
}

.message-box {
    background: url('../ui/fon_dop.jpg') no-repeat center center; 
	  background-size: cover;
    border: 1px solid #d4af37;
    border-radius: 10px;
    padding: 20px;
    color: #fff;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
    position: relative;
    opacity: 0;
    transform: scale(0.9);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.message-box.active {
    transform: scale(1);
    opacity: 1;
}

.message-box h3 {
    margin: 0 0 15px 0;
    font-size: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    
    /* Красный градиент для заголовка ошибки */
    background: linear-gradient(135deg, #e53935 0%, #ff6b68 45%, #d32f2f 80%, #ff8a80 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    
    /* Мягкое свечение с золотистым оттенком */
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.4),
        0 0 6px rgba(229, 57, 53, 0.3),
        0 0 10px rgba(212, 175, 55, 0.1);
}

.message-text {
    font-size: 15px;
    margin-bottom: 15px;
    color: #e0e0e0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    -webkit-text-stroke: 0.2px rgba(0, 0, 0, 0.5);
}

.card__copy-indicator, .card__copy-count{
    position: absolute;
    bottom: 2px;
    left: -4.5px;
    color: #d4af37;
    font-size: 16px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.card__copy-banner {
    position: absolute;
    bottom: -2px;
    left: -2px;
    width: 33px;
    height: 33px;
	  rotate: 90deg;
    z-index: 9;
    pointer-events: none;
}