* {
   box-sizing:border-box;
   cursor: url('img/icons/cursor.png'), auto;
}

html,body
{
	/* eliminate whitespace */
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
    overflow-x: visible;
	scrollbar-width: none; /* disable srcrollbar for firefox */
}

/* remove spacing between html elements */
body {
	font-size: 0px;
	/*font-family: Impact;*/
	font-family:Arial Narrow, sans-serif;
	color: goldenrod;
	background-color: black;
}

/* disables scroll bar b/c it messes with % units like margins */
body::-webkit-scrollbar {
	display: none;
}

main {
	position:absolute;
	width: 100%;
	height: calc(100vw * 1080 / 1920);
	background-image: url('img/board.jpg');
	background-size: 100% auto;
	background-repeat: no-repeat;
}

/* makes text seleciton and highlighting invisible */
::selection { background: transparent; }		/* WebKit/Blink Browsers */
::-moz-selection { background: transparent; }	/* Gecko Browsers */

::-webkit-scrollbar {
  width: 1.5vw;
}
::-webkit-scrollbar-thumb {
  background: #5559;
  border-radius: .5vw;
  height: 3vw;
  border: .35vw double black;
}
::-webkit-scrollbar-track {
  background: #131313;
}

html {
	scrollbar-color: #5559 #131313; /* mozilla */
}

#click-background {
	position: fixed;
	width: 100%;
	height: 100%;
	z-index: 1;
}

#hand-op {
	position:absolute;
	height: 6.35vw;
	width: 4.45vw;
	top:-7vw;
	left: 33vw;
	
	border: 1px solid blue;
}

#hand-op .card { position : absolute; }

#exit-game
{
	top: 1.4vw;
	left: 1vw;
	position: absolute;
	width: 2vw;
	height: 2vw;
	background-image: url("svg/exit.svg");
	background-repeat: no-repeat;
	background-size: contain;
	opacity: 20%;
	transition: opacity 0.3s;
}
#exit-game:hover {
	filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.5));
	opacity: 100%;
}

/* ----------- settings & media player ------------------ */

#youtube {
	position: fixed;
	height: 10px;
	width: 10px;
	display: hidden;
	z-index: -100;
}

.settings-button {
	position: absolute;
	width: 2.5vw;
	height: 2.5vw;
}
.settings-button>img{
	width: 2.5vw;
	height: 2.5vw;
	filter:drop-shadow(0px 0px 2px black);
}

.settings-button.fade>img {
	 opacity: 0.2; 
}

.settings-button.fade:hover>img {
	opacity: 0.3;
}
.settings-button:hover>img {
	filter:drop-shadow(0px 0px 3px rgba(255, 255, 255, 0.5));
}

#toggle-music {
    top: 48.9vw;
    left: 14vw;
}
#toggle-music.deck-menu { 
	top: 45.3vw;
	left: 46.7vw;
	z-index: 86;
}

#toggle-sfx {
	top: 48.9vw;
    left: 17.2vw;
}
#toggle-sfx.deck-menu {
	top: 45.3vw;
	left: 50.1vw;
	z-index: 86;
}

#toggle-notifications {
	top: 48.9vw;
    left: 20vw;
}
#toggle-notifications.deck-menu {
	display: none !important;
}

#pass-button[data-title]:hover::after
{
	bottom: -2.2vw;
	left: -0.45vw
}


/* ----------- notification bar ------------------ */

#notification-bar {
	position:absolute;
	width:100%;
	height: 14%;
	top: 43%;
	background-color: rgba(10,10,10,0.95);
	opacity: 0;
	z-index: 100;
}

#notification-bar > div { 
	width: 22.1%;
	height: 207.25%;
	top: -66.6%;
	left: 22.55%;
	position: absolute;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
}
#notification-bar > div::after {
	position: absolute;
	left: 100.5%;
	top: 32.1%;
	width: 205%;
	height: 47.25%;
	color: goldenrod;
	font-size: 1.6vw;
	text-align:left;
	font-weight:bold;
	display: flex;
	align-items: center;
}

#notif-me-first::after { content:"Вы ходите первым"; }
#notif-op-first::after { content:"Противник ходит первым"; }

#notif-me-coin { background-image: url('img/icons/notif_me_coin.png'); }
#notif-me-coin::after { content:"Вы ходите первым"; }

#notif-op-coin { background-image: url('img/icons/notif_op_coin.png'); }
#notif-op-coin::after { content:"Противник ходит первым"; }

#notif-round-start { background-image: url('img/icons/notif_round_start.png'); }
#notif-round-start::after { content:"Начало раунда"; }

#notif-me-pass { background-image: url('img/icons/notif_round_passed.png'); }
#notif-me-pass::after { content:"Вы пасовали"; }

#notif-op-pass { background-image: url('img/icons/notif_round_passed.png'); }
#notif-op-pass::after { content:"Соперник пасовал"; }

#notif-win-round { background-image: url('img/icons/notif_win_round.png'); } 
#notif-win-round::after { content:"Вы выиграли раунд!"; }

#notif-lose-round { background-image: url('img/icons/notif_lose_round.png'); }
#notif-lose-round::after { content:"Соперник выиграл раунд"; }

#notif-draw-round { background-image: url('img/icons/notif_draw_round.png'); }
#notif-draw-round::after {content:"Раунд закончился ничьей"; }

#notif-me-turn { background-image: url('img/icons/notif_me_turn.png'); } 
#notif-me-turn::after { content:"Ваш ход!"; }

#notif-op-turn { background-image: url('img/icons/notif_op_turn.png'); }
#notif-op-turn::after { content:"Ход соперника"; }

#notif-north { background-image: url('img/icons/notif_north.png'); }
#notif-north::after { content:"Способность Королевств Севера: взята дополнительная карта."; }

#notif-monsters { background-image: url('img/icons/notif_monsters.png'); }
#notif-monsters::after { content: "Способность Чудовищ: одна случайная карта осталась на столе."; }

#notif-scoiatael { background-image: url('img/icons/notif_scoiatael.png'); }
#notif-scoiatael::after { content: "Способность Скоя'таэлей: соперник ходит первым."; }

#notif-skellige-op{ background-image: url('img/icons/notif_skellige.png'); }
#notif-skellige-op::after { content: "Сработала способность Скеллиге соперника!"; }

#notif-skellige-me{ background-image: url('img/icons/notif_skellige.png'); }
#notif-skellige-me::after { content: "Сработала ваша способность Скеллиге!"; }

/* ------- card preview ------------- */

.card-preview { position: relative; z-index: 80;}
.card-preview > .card-lg {
	position: absolute;
	top: 11.95vw;
	left: 80.3vw;
}
.card-preview > .card-description {
	top: 43.1vw;
	left: 67.95vw;
}

.card-lg {
	height: 30.4vw;
	width: 16.1vw;
	border-radius: 1.5vw;
	
	background-size: contain;
	background-position:center;
}
.card-description {
	position: absolute;

	height: 7.87vw;
	width: 29.12vw;
	background-color: rgba(20,20,20, 0.95);
	color: tan;
	text-align: center;
	pointer-events : none;
	border: .1vw solid #ffffff57;
    border-width: .1vw 0;
}

.card-description > * { position: relative; }

.card-description > div {
	top: 1.0vw;
	left: 0.9vw;
	width: 1.95vw;
	height: 1.95vw;
	margin-bottom: -1.9vw;
	background-size:cover;
	background-position:center;
}

.card-description > h1 {
	font-weight: bold;
	
	top: 0.5vw;
	left: 16%;
	height: 16%;
	width: 70%;
	margin-bottom: -2.1vw;
	text-transform: capitalize;
	
	font-size: 1vw;
}

.card-description > p {
	top: 37%;
	left: 5%;
	width: 90%;
	height:50%;
	
	font-size: 0.9vw;
}

/* ------- carousel ------------- */

#carousel {
	position:absolute;
	width: 100%;
	height: calc(100vw * 1080 / 1920);
	z-index:90;
}

/*
#carousel > :nth-child(1) {
	position: absolute;
	width: 100%;
	height: 100%;
	border: 1px solid blue;
	z-index: -1;
	background-image: url('img/icons/blank.png');
	background-size: cover;
}
*/

#carousel > :nth-child(1) {
	wdith:100%;
	heigth:100%;
	
	padding: 11.5% 10%;
	
	display:flex;
	align-items: flex-start;
	justify-content: space-between;
	
	--carousel-trans-time: 0s;
	--magnitude: 0;
	translate: calc(var(--magnitude) * 1vw);
	transition: translate calc(var(--carousel-trans-time) - 0.1s);
	transition-timing-function: ease-in;
}

#carousel > :nth-child(1) > :not(:nth-child(3)):hover {
	box-shadow: 0 0 1vw goldenrod;
}

#carousel > :nth-child(1) > .card-lg {
	translate: calc(var(--magnitude) * 1vw);
	transition: translate var(--carousel-trans-time), box-shadow 0.1s;
	transition-timing-function: ease-in;
}

/*  middle  (3)  */
#carousel > :nth-child(1) > :nth-child(3){
	border: .3vw solid goldenrod;
	box-shadow: 0 0 4vw goldenrod;
	background-origin: border-box;
	transition: box-shadow 0.1s, translate calc(var(--carousel-trans-time) - 0.05s);
}
#carousel > :nth-child(1) > :nth-child(3):hover {
	box-shadow: 0 0 2vw goldenrod;
}

/*  adjacent (2, 4)  */
#carousel > :nth-child(1) > :nth-child(2n) {
	width: 13.75vw;
	height: 25.9vw;
	transition: box-shadow 0.1s, translate calc(var(--carousel-trans-time) + 0.05s);
}

/* outer most (1, 5) */
#carousel > :nth-child(1) > :nth-child(4n - 3) {
	width: 11.3vw;
	height: 21.3vw;
	transition: box-shadow 0.1s, translate calc(var(--carousel-trans-time) + .2s);
}

#carousel > :nth-child(1) > :nth-child(1) {
	margin-left: 5%
}

#carousel > :nth-child(1) > :nth-child(5) {
	margin-right: 5%;
}

#carousel .card-lg {
	display:inline-block;
	background-size:cover;
	background-position: center;
}

#carousel .card-description {
	left: 35.35%;
	top: 77%;
}

#carousel > :nth-child(3) {
	position: absolute;
    width: 100%;
    height: 7.5%;
    top: 12%;
    font-size: 1.75vw;
    line-height: 250%;
    background-color: rgba(10,10,10,.95);
    text-align: center;
    box-shadow: 0 0 1vw #ffffff54;
}

/* --------------------- popup ---------------------------  */

#popup {
	position: absolute;
    width: 100%;
    height: calc(100vw * 1080 / 1920);
    background-color: rgba(10,10,10,.95);
    z-index: 1000;
    /* background-image: url(img/boardtest10.png); */
    /* background-size: contain; */
}


#popup > div {
    margin-top: -89px;
    width: 26.5%;
    border: .2vw solid rgb(60,60,60);
    padding: 0 0.5vw;
    background-color: rgb(20,20,20);
}

#popup h3 {
    display: block;
    font-size: 1.05vw;
    text-transform: uppercase;
    color: grey;
    text-align: center;
    line-height: 100%;
}

#popup p {
    text-align: center;
    font-size: 1.23vw;
    padding-top: .6vw;
    color: tan;
}

#popup > div > div {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .2vw;
    min-width: 10%;
    width: fit-content;
    margin: -1.4vw auto 0;
    border: .2vw solid rgb(25,25,25);
    background-color: black;
    top: 1.3vw;
}

#popup button {

    display: inline-block;
    width: auto;
    height: 1.8vw;
    border: .2vw solid rgb(40,40,40);
    background-color: rgb(20,20,20);
    font-size: 1vw;
    text-shadow: 1vw 1vw 1vw black;
	text-transform: capitalize;
	margin: 0 0.3vw;
	transition: color 0.1s, border-color 0.1s;
}
#popup button:hover {
	box-shadow: 0 0 1px rgba(255, 255, 255, .5);
	border-color: rgb(70, 70, 70);
}

#popup button:first-child { color: green; }
#popup button:first-child:hover { color: lightgreen; }
#popup button:last-child {color: darkred; }
#popup button:last-child:hover {color: red; }

/* --------------------- end screen ---------------------------  */

#end-screen {
	width: 100%;
	height: calc(100vw * 1080 / 1920);
	position: absolute;
	z-index: 1000;
	background-color: rgba(10,10,10,0.95);
}

#end-screen * {
	position: relative;
}

#end-screen > :nth-child(1)  {
	top:12.6%;
	left:32.9%;
	width: calc(100% * 656 / 1920 );
	height: calc(100% * 416 / 1080 );
	margin-bottom: -21.65%;
	background-size: contain;
}
.end-draw { background-image: url('img/icons/end_draw.png'); }
.end-win  { background-image: url('img/icons/end_win.png');  }
.end-lose { background-image: url('img/icons/end_lose.png'); }

#end-screen > table {
	top: 55%;
	left: 7.6%;
	width: 74%;
	height: 22%;
	margin-bottom: -12.3%;
	table-layout: fixed;
}

#end-screen tbody :first-child th {
	font-size: .9vw;
	text-align: center;
	color: darkslategrey;
	color: rgb(100,100,100);
}

#end-screen td {
	font-size: 1.7vw;
	text-align: center;
	color: rgb(180,180,180);
}

#end-screen tr :first-child {
	font-size: 1.2vw;
	text-align: right;
	color:darkorange;
	padding-right: 5%;
}

#end-screen > p {
	top: 80%;
	left: 30.1%;
	width: 41%;
	height: 3%;
	font-size: 1.21vw;
	color: rgb(180,180,180);
}

#end-screen button {
    position: absolute;
    height: 3vw;
    width: 10vw;
    top: 87%;
	font-family: Arial Narrow;
    font-size: 1.5vw;
    color: goldenrod;
    background-color: #4c390a66;
    border: .2vw solid #1d180b;
    border-radius: 0.1vw;
    box-shadow: 0 0 .5vw #6d5210;
}

#end-screen button:hover {
	box-shadow: 0 0 2vw #6d5210;
}

#end-screen button:nth-of-type(1) { left: 31%; }
#end-screen button:nth-of-type(2) { left: 45%; }
#end-screen button:nth-of-type(3) { left: 59%; }

/* --------------------- panels ---------------------------  */

.panel {
	display:inline-block;
	height: 100%;
	box-sizing: border-box;
	overflow-y: hidden;
	overflow-x: visible;
	
	/*new values*/
	overflow-y: visible;
	position:absolute;
	height: calc(100vw * 1080 / 1920);
}

.panel div, .panel section, .panel span{
	position: relative;
}

/*
.panel div, .panel section, .panel span{
	border: 1px solid yellow;
	background-color: rgba(0, 100, 100, 0.2);
	box-sizing: border-box;
	background-origin: border-box;
}
*/

/*
main { background-image: url('img/boardtest8.png'); }
*/

/*
#panel-left { border: 1px solid blue;	background-color: rgba(0,0,100,.2); }
#panel-mid { border: 1px solid green; background-color: rgba(0, 100, 0, 0.2); }
#panel-right { border: 1px solid red; background-color: rgba(100, 0, 0, 0.2); }
*/

#panel-left {
	width: 26.5%;
}

#panel-mid {
	width:52.5%;
	left: 26.5%;
}

#panel-right {
	width: 21%;
	left: 79%;
}

/* -------------------- left panel ----------------------- */

#weather {
	top: 41.25%; 
	left: 27.9%;
	width: 54.9%;
	height: 12.75%;
	margin-bottom: -27%;
	z-index: 1;
}

.leader-box {
	left: 27.5%;
	width: 31.4%;
	height: 12.5%;
	margin-bottom: -26.25%;
}

.leader-box .card {
	pointer-events: none;
}

.leader-box > .leader-container {
	height: 100%;
	width: 63%;
	margin-bottom: -80%;
	
	/* replace it html with center class */
	display:flex;
	flex-items:center;
	justify-content:center;
}

.leader-box > .leader-container:hover {
	box-shadow: 0 0 1vw goldenrod;
	box-sizing: border-box;
}

.leader-box > div > .card {
	position:absolute;
	height: 98%;
	width: 95%;
	border-radius: 0.6vw;
}

.leader-active {
	top: 33%;
	left: 75%;
	height: 28%;
	width: 24%;
}

.leader-active > div {
	background-image: url('img/icons/icon_leader_active.png');
	background-size: cover;
	background-repeat: no-repeat;
	width: 100%;
	height: 100%;
}

#leader-op {
	top: 7.55%;
}
#leader-op .leader-container::after {
	left: unset;
	bottom: -2.2vw;;
}

#leader-me {
	top: 77.5%;
}
#leader-me .leader-container::after {
	left: unset;
	bottom: -2.2vw;;
}

.stats {
	height: 12.5%;
	width: 88.5%;
	margin-bottom: -27%;
	background-color: rgba(20,20,20,0.6);
}

.current-turn {
	box-shadow: -3vw 0px 1vw 0.1vw goldenrod;
}

#stats-op {
	top: 24.25%;
}

#stats-me {
	top: 61.75%;
}

.profile-img {
	left: 28.4%;
	top: 9.6%;
	width: 21.9%;
	height: 80%;
	margin-bottom: -24%;
	
	background-image: url('img/icons/profile.png');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	border-radius: 100%;
	/*background-overflow: hidden;*/
}

.profile-img > div {
	left: -10%;
	top: -6%;
	height: 118%;
	width: 118%;
	background-image: url('img/icons/icon_player_border.png');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	overflow: visible;
}

.profile-img > div > div {
	width: 43%;
	height: 43%;
	left: -10.5%;
	top: .5%;
	
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

#stats-me > div > div > div {
	top: 59%;
}

.score-total {
	top: 25%;
	left: 94.5%;
	height: 40%;
	width: 12%;
	
	top:31%;
	
	margin-bottom: -12%;
	
	color: black;
	text-shadow: 0 0 5px white;
	font-size: 2.3vw;
	font-weight: bold;
	
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

#score-total-me {
	background-image: url('img/icons/score_total_me.png');
}

#score-total-op {
	background-image: url('img/icons/score_total_op.png');
}

.score-leader > div{
	background-image: url('img/icons/icon_high_score.png');
	background-repeat: no-repeat;
	background-size: contain;
	background-position: bottom;
	left:-46%;
	top: -32%;
	width:195%;
	height: 170%;
}


.hand-count {
	top: 58.5%;
	left: 53.25%;
	height: 29.5%;
	width: 17%;
	margin-bottom: -9%;

	font-size: 1.7vw;
	font-weight: bold;
	padding-left: 7%;
	
	
	
	background-image: url('img/icons/icon_card_count.png');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: left;
	
	
}

#hand-count-me {
	top:18.5%;
}

.gem {
	width: 9%;
	height:31%;
	margin-bottom: -9.25%;
	background-image: url('img/icons/icon_gem_off.png');
}

.gem-on {
	background-image: url('img/icons/icon_gem_on.png');
}

#gem2-op {
	top: 56.25%;
	left: 70.75%;
}

#gem1-op{
	top:56%;
	left:80%;
}

#gem2-me {
	top: 14.5%;
	left: 70.75%;
}

#gem1-me{
	top: 14.5%;
	left: 80%;
}

.name {
	left: 53%;
	top: 6%;
	width:41.5%;
	height: 20%;
	margin-bottom: -6%;
	overflow: hidden;
	white-space: nowrap;
	font-size: 1.1vw;
	font-weight: bold;
	
	/*font-family: Arial Narrow, sans-serif;*/
}

#name-me {
	top: 60%;
}

.deck-name {
	left: 53%;
	top: 25%;
	width: 41.5%;
	height: 20%;
	margin-bottom: -6%;
	overflow: hidden;
	text-transform:capitalize;
	
	color: tan;
	font-size: .95vw;
	/*font-family: Arial Narrow, sans-serif;*/
}

#deck-name-me {
	top:80%;
}

.passed {
	height: 0%;
	width: 0%;
	left:90%;
	top: 87%;
	
	color: tan;
	font-size: 1.5vw;
	font-weight: bold;
	text-shadow: 1px 1px 2px black;
}
#passed-me{ top: -3%;}

#pass-button {
	position: absolute;
	top: 82%;
	left: 63%;
	width:20%;
	height: 4%;
	
	font-size: 2vw;
	font-weight: bold;
	
	border: .1vw solid goldenrod;
	border-radius: .5vw;
	background-color: rgba(20,20,20,.9);
}
#pass-button:hover {
	text-shadow: 0px 0px 3px rgba(255, 255, 255, 0.5);
}

/* ------------- middle pannel ------------------ */

.field {
	width: 100%;
	height: 38.5%;
}

.field .hero {
	pointer-events: none;
}

#field-op {
	top:-1.1%;
}

#field-op .card {
	pointer-events: none;
}

#field-me {
	top: -1.0%;
}

#field-hand {
	width: 100%;
	height:13%;
}

.field-row {
	height: 32%;
	top: 4%;
	display:flex;
	z-index: 1;
}

.field-row > div {
	position: absolute;
}

.row-score {
	width: 5.1%;
	top:7%;
	height: 95%;
	margin-bottom: -12.65%;
	font-size: 1.8vw;
	
	color: black;
	text-shadow: 0 0 5px white;
}

.row-special {
	width: 14.25%;
	height: 100%;
	left: 5.1%;
	margin-bottom: -12.65%;
}

.row-cards {
	height: 100%;
	width: 80.65%;
	left: 19.35%;

	left: 20%;
	width: 79.7%;
}

.row-weather {
	position: absolute;
	top: 5%;
	left: 5.75%;
	width: 94.25%;
	height: 100%;
	
	pointer-events : none;
	
	background-size: cover;
	background-position: bottom;
	background-repeat: no-repeat;
	opacity: 0;
}
.frost { background-image: url('img/icons/overlay_frost.png'); }
.rain  { background-image: url('img/icons/overlay_rain.png');  }
.fog   { background-image: url('img/icons/overlay_fog.png');   }

#hand-row {
	top: 8%;
	height:91%;
	left: 7.1%;
	width: 92.5%;
	z-index: 1;
}

.row-selectable {
	background-color: rgba(255,255,0, 0.08);
}

.row-selectable:hover {
	box-shadow: 0 0 .25vw rgba(255,255,0, 1);
	/*outline: .25vw solid rgba(255,255,0, 0.5);*/
	box-sizing: border-box;
}

.card-selectable > .card:hover {
	/*box-shadow: 0 0 .2vw rgba(255,255,0, 0.5);*/
	border: .12vw outset goldenrod;
	border-radius: .3vw;
	margin-bottom: 1vw;
	z-index: 1;
}
.card-selectable > .card:hover::after
{
	pointer-events: all;
	bottom: -1.9vw;
}

/*
#hand-row > .card {
	position: relative;
	position: absolute;
	
	height: 100%;
	width: 9.35%;
}
*/

/* ---------------- right panel ------------- */

.cardpile {
	width: 27.6%;
	height: 13.5%;
	margin-bottom: -36.25%;
	
	display:flex;
	flex-direction:column-reverse;
	align-items: center;
	overflow: visible;
	z-index: 1;
}

.cardpile .card {
	pointer-events: none;
}

#grave-op {
	top: 6.5%;
	left: 6.5%;
}

#deck-op {
	top: 6.5%;
	left: 51%
}

#grave-me {
	top: 76.5%;
	left: 6.5%;
}

#deck-me {
	top: 76.5%;
	left: 51%
}

.grave:not(:empty):hover {
	box-shadow: 0 0 .75vw goldenrod;
	box-sizing: border-box;
}
.grave:not(:empty)::after{
	left: -0.4vw;
}
.grave:empty::after {
	visibility: hidden;
}

.deck-card {
	position: relative;
	display: inline-block;
	
	height: 6.675vw;
	width: 4.45vw;

	background-size:contain;
	background-repeat: no-repeat;
	box-shadow: -.1vw -.1vw .5vw rgba(20,20,20, 0.5);
}

.deck-counter {
	position: relative;
	background-color: rgba(20,20,20, 0.8);
	
	width: 3vw;
	height: 2vw;
	
	z-index: 1;
	
	color:tan;
	font-size: 1.3vw;
}

.cardpile .deck-card {
	top: -5%;
	margin-top: -114.5%;
}


.cardpile > .card {
	/* position: relative; */
	top: -5%;
	margin-top: -108.5%;
}

/* ----------- deck creation menu  ------------------*/

#deck-customization {
	position: absolute;
	width: 100%;
	height: calc(100vw * 1080 / 1920);
	background-color: rgba(10,10,10,.95);
	z-index: 85;
}

#faction-title {
	position: absolute;
	height: 5%;
	width: 100%;
	top: 6%;
}

#deck-customization h1 {
    position: absolute;
    font-size: 1.45vw;
    color: #dedede;
    line-height: 220%;
    text-transform: capitalize;
    padding: 0 3%;
	

	
	top: -60%;
	
    background-size: contain;
    background-repeat: no-repeat;
}

#faction-description {
	position: absolute;
	font-size: 1.14vw;
	color: #ab977c;
	top: 9.45%;
	left: 20.2%;
	width: 60%;
	text-align: center;
}

.deck-options{
	position: absolute;
	font-size: 1vw;
	color: white;
	top: 15%;
}
.deck-options:hover {
	text-decoration: underline;
}

#download-deck {
	left: 55%;
}

#upload-deck {
	left: 40%;
}

#change-faction {
	left: 47%;
}

.card-array {
	position: absolute;
	width: 34.4%;
	height: 68%;
	overflow-y: scroll;
	padding: .1vw 1.1vw;
	display: flex;
	flex-wrap:wrap;
	justify-content: space-between;
}

.card-array .card-lg:hover {
	box-shadow: 0 0 1vw goldenrod;
}

.card-array .card-lg.empty
{
	visibility: hidden;
}

#card-bank {
	top: 22.5%;
	left: 8.275%;
}

#card-deck {
	top: 22.5%;
	left: 58.4%;
}

.card-array .card-lg {
    width: 9.88vw;
    height: 18.45vw;
    border-radius: 1vw;
	margin-bottom: 0.75vw;
}

.card-array .card-lg > div {
	position: relative;
	top: 82.5%;
	left: 76%;
	width: 20%;
	height: 7%;
	font-size: 1.2vw;
	color: #5f4923;
	padding-left: 1.7vw;
	background-image: url('img/icons/preview_count.png');
	background-position: left;
	background-repeat: no-repeat;
	background-size: contain;
}

#card-leader {
	position: absolute;
	height: 27%;
	width: 6.9%;
	top: 20.8%;
	left: 46.6%;
}

#card-leader p {
	font-size: 1.1vw;
	text-align: center;
	color: #8f6c36;
	line-height: 0%;
	margin: 9%;
}

#card-leader > div {
	position: relative;
	height: 84.5%;
	margin-top: 24.5%;
	
	background-size: contain;
	border-radius: .5vw;
}
#card-leader > div:hover {
	box-shadow: 0 0 .75vw goldenrod;
}

#deck-stats {
	position: absolute;
	width: 12%;
	height: 30%;
	top: 49.5%;
	left: 44.05%;
}

#deck-stats > p:nth-child(odd) {
	color: #82735f;
	font-size: 1.05vw;
	text-align: center;
	margin-bottom: -6.75%;
}

#deck-stats > p:nth-child(even) {
	font-size: 1.2vw;
	text-align: left;
	color: #9f7d3e;
	padding-left: 2.3vw;
	margin-left: 3.95vw;
	margin-bottom: -6.75%;
	
	background-repeat: no-repeat;
	background-position: left;
	background-size: 2.5vw;
}

#deck-stats > p:nth-child(2) { background-image: url('img/icons/deck_stats_count.png'); }
#deck-stats > p:nth-child(4) { background-image: url('img/icons/deck_stats_unit.png'); }
#deck-stats > p:nth-child(6) { background-image: url('img/icons/deck_stats_special.png'); }
#deck-stats > p:nth-child(8) { background-image: url('img/icons/deck_stats_strength.png'); }
#deck-stats > p:nth-child(10) { background-image: url('img/icons/deck_stats_hero.png'); }

#start-game {
	position: absolute;
	top: 86%;
	left: 46.65%;
	width: 6%;
	height: 3%;
	font-size: 0.98vw;
	white-space: nowrap;
	color: white;
	background-color: rgb(20,20,20);
	border: 0.1vw ridge rgb(30,30,30);
}
#start-game:hover {
	box-shadow: 0 0 0.75vw white;
}

#opponent-preview {
    position: absolute;
    top: 50.9vw;
	width: 100%;
    left: -0.3vw;
    justify-content: center;
    align-items: center;
	flex-direction: column;
}
#opponent-preview>div>p {
	color: #82735f;
	font-size: 1.05vw;
	text-align: center;
	margin-bottom: 2.5%;
	margin-top: 0;
}
#opponent-preview>div {
}
#op-preview-faction {
	background-size: contain;
    background-repeat: no-repeat;
	height: 2vw;
	width: 	2vw;
}
#op-preview-faction {
	/* visibility: hidden; */
}
#op-preview-leader::after {
	left: 46vw;
	bottom: -1.5vw;
}
#op-preview-leader>p {
	font-size: 1vw;
	color:white;
	margin: 0.2vw;
}
#op-preview-leader:hover {
	text-decoration: underline;
	text-decoration-color: white;
}
#opponent-preview button {
	background-color: transparent;
	border: none;
	background-repeat: no-repeat;
	background-size: contain;
	width: 1.8vw;
	height: 1.9vw;
}
#op-preview-open {
	background-image: url("svg/view.svg");	
    width: 1.5vw !important;
    height: 1.5vw !important;
}
#op-preview-open:hover {
	filter: drop-shadow(0px 0px 3px rgba(255, 255, 255, 0.5));
}
#op-preview-open::after {
	left: -2.9vw;
}
#op-preview-clear {
	background-image: url("svg/trash.svg");
}
#op-preview-clear:hover {
	filter: drop-shadow(0 0 3px red);
}
#op-preview-clear::after {
	left: -2.9vw;
}

.card-contianer-title {
	position: absolute;
	width: 10%;
	height: 3%;
	font-size: 1.3vw;
	color: #959595;
}

#card-bank-title {
	top: 7.45%;
	left: 8.5%;
}

#card-deck-title {
	top: 7.8%;
	left: 84.45%;
}

/* ----------- cards ------------------*/

.card {
	/*height: 100%;
	width: auto;*/
	/*width: calc(100% * 775 / 410);*/
	
	height: 6.35vw;
	width: 4.45vw;
	
	background-size:contain;
	background-repeat: no-repeat;
	
	box-shadow: -.1vw -.1vw .5vw rgba(20,20,20, 0.5);
	
	display: inline-block;
	
	/*position: absolute;*/
	position: relative;
	
	transition: margin-bottom 0.05s, margin-left .25s, margin-right .25s, transform 0.5s;
	
	z-index = 1;
}

.deck-card .card { position : absolute; }

.card > div {
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.card > div:nth-child(1) {
	top: -4%;
	left: -4%;
	width: 70%;
	height: 50%;
	margin-bottom: -71%;
	
	background-position: 0 0;
	
}

.card > div:nth-child(1) > div {
	top: 13%;
	left: 7%;
	width: 50%;
	heighth:  50%;
	font-size: 1vw;
	font-weight: bold;
	color: black;
	text-shadow: 0 0 .1vw white;
}

.hero > div:nth-child(1) > div {
	color: white;
	text-shadow: 0 0 .1vw black;
}



.card > div:nth-child(2) {
	top: 75%;
	left: 65%;
	width: 33%;
	height: 22%;
	margin-bottom: -32%;
	/*border: 1px solid blue;*/
}

.card > div:nth-child(3){
	top: 75%;
	left: 31%;
	width: 33%;
	height: 22%;
	margin-bottom: -32%;
	
	font-size: 1vw;
	/*border: 1px solid red;*/
}

.card > div:nth-child(4) {
	width: 100%;
	height: 100%;
	background-position: center;
	background-size: 40% auto;
	opacity: 0;
	filter: alpha(opacity=0);
	transition: background-size 0.25s;
}

.card-container {
	display: flex;
	justify-content: center;
	align-items: flex-end;
}

.card-container .card {
	margin: 0 1px;
	flex-shrink: 0;
	/*margin: 0 -10px;*/
	/*margin: 0 calc((100% - (4.45vw * 14)) / 26);*/
}

/* ---------- tooltip -------------  */

*[data-title]:hover::after{
	content: attr(data-title);
	background-color: rgba(10,10,10,.95);
	color: goldenrod;
	font-family: Arial Narrow, sans-serif;
	font-size: 1.2vw;
	position: absolute;
	padding: 1px 5px 2px 5px;
	bottom: -2vw;
	left: var(--title-left);
	white-space: nowrap;
	box-shadow: 1px 1px 4px #242424;
	text-shadow: none;
	border: 1px solid #1b1b1b;
	z-index: 9999999;
	pointer-events: none;
}


/* ----------- misc ----------------  */

.center {
	display: flex;
	justify-content: center;
	align-items:center;
}

.bg-contain{
	background-size: contain;
	background-repeat: no-repeat;
}

.visible { display: visible; }
.hide {display: none; }
.fade:not(.settings-button) {opacity: 0.2; filter: alpha(opacity=20); }

.noclick {
	pointer-events: none;
}


/* ==========================================================================
   DASHBOARD / MAIN MENU STYLES
   ========================================================================== */

.hide { display: none !important; }

#dashboard-menu {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: calc(100vw * 1080 / 1920);
	background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('menu_bg.jpg');
	background-size: cover;
	background-position: center;
	color: #fef3c7;
	font-family: "Georgia", serif;
	z-index: 999;
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	overflow: hidden;
}

#dashboard-menu p, 
#dashboard-menu div, 
#dashboard-menu span, 
#dashboard-menu label, 
#dashboard-menu input, 
#dashboard-menu button,
#dashboard-menu th,
#dashboard-menu td {
	font-size: 1vw;
}

/* Р¦РµРЅС‚СЂРёСЂРѕРІР°РЅРЅС‹Р№ РєРѕРЅС‚РµР№РЅРµСЂ (Р­РєСЂР°РЅ СЂРµРіРёСЃС‚СЂР°С†РёРё) */
.center-box {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
}

.parchment-box {
	background-color: rgba(26, 21, 16, 0.95);
	border: 3px double #d97706;
	border-radius: 4px;
	padding: 2vw;
	width: 35vw;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
	text-align: center;
	animation: fadeInMenu 0.4s ease-out;
}

.parchment-box h2 {
	color: #d97706;
	font-size: 2.2vw;
	margin-top: 0;
	margin-bottom: 1vw;
	text-shadow: 1px 1px 2px black;
}

.parchment-box .subtitle {
	font-size: 1vw;
	color: #a78bfa;
	margin-bottom: 2vw;
}

.form-group {
	margin-bottom: 2vw;
	text-align: left;
}

.form-group label {
	display: block;
	font-size: 1.1vw;
	color: #fef3c7;
	margin-bottom: 0.5vw;
	font-weight: bold;
}

.form-group input[type="text"] {
	width: 100%;
	padding: 0.8vw;
	background-color: #0f172a;
	border: 1px solid #475569;
	color: #fef3c7;
	border-radius: 4px;
	font-size: 1.1vw;
	box-sizing: border-box;
}

.form-group input[type="text"]:focus {
	outline: none;
	border-color: #d97706;
	box-shadow: 0 0 5px rgba(217, 119, 6, 0.5);
}

.faction-selectors {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5vw;
}

.faction-sel-btn, .faction-edit-btn {
	flex: 1 1 calc(33.3% - 0.5vw);
	padding: 0.8vw;
	background-color: #1e293b;
	border: 2px solid #475569;
	text-align: center;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.9vw;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.faction-sel-btn:hover, .faction-edit-btn:hover {
	border-color: #fbbf24;
	background-color: #334155;
}

.faction-sel-btn.active, .faction-edit-btn.active {
	border-color: #d97706;
	background-color: #78350f;
	box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

/* РЎС‚РёР»РёР·Р°С†РёСЏ РєРЅРѕРїРѕРє */
.gwent-btn {
	display: inline-block;
	background: linear-gradient(180deg, #78350f 0%, #451a03 100%);
	color: #fbbf24;
	border: 1px solid #d97706;
	padding: 0.8vw 2vw;
	font-size: 1.2vw;
	cursor: pointer;
	font-family: "Georgia", serif;
	border-radius: 3px;
	text-shadow: 1px 1px 1px black;
	transition: all 0.2s ease;
}

.gwent-btn:hover:not(:disabled) {
	background: linear-gradient(180deg, #92400e 0%, #78350f 100%);
	color: #fef3c7;
	box-shadow: 0 0 10px rgba(217, 119, 6, 0.4);
}

.gwent-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.gwent-btn.sm {
	padding: 0.4vw 1vw;
	font-size: 0.9vw;
}

/* Основной экран меню */
#main-menu-screen {
	display: flex;
	flex-direction: column;
	width: 90vw;
	height: 48vw;
	background-image: linear-gradient(rgba(20, 16, 12, 0.88), rgba(15, 12, 10, 0.92)), url('https://cdn.jsdelivr.net/gh/asundr/gwent-classic@main/img/board/bg_wood.jpg');
	background-size: cover;
	border: 3px double #d97706;
	border-radius: 8px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), inset 0 0 50px rgba(0,0,0,0.8);
	animation: fadeInMenu 0.4s ease-out;
}

/* РҐРµРґРµСЂ РјРµРЅСЋ */
#menu-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1vw 2vw;
	border-bottom: 2px solid #78350f;
	background-color: rgba(10, 8, 6, 0.9);
	box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.user-profile-widget {
	display: flex;
	align-items: center;
	gap: 1vw;
}

.user-avatar {
	width: 4vw;
	height: 4vw;
	border-radius: 50%;
	border: 2px solid #d97706;
	background-image: url('img/lg/realms_foltest_silver.jpg');
	background-size: cover;
	background-position: center;
}

.user-meta h3 {
	margin: 0 0 0.2vw 0;
	font-size: 1.4vw;
	color: #fef3c7;
}

.user-level-container {
	display: flex;
	align-items: center;
	gap: 0.5vw;
}

#user-level-label {
	font-size: 0.9vw;
	color: #d97706;
	white-space: nowrap;
}

.xp-bar-outer {
	width: 10vw;
	height: 0.6vw;
	background-color: #1e293b;
	border: 1px solid #475569;
	border-radius: 3px;
	overflow: hidden;
}

.xp-bar-inner {
	height: 100%;
	background: linear-gradient(90deg, #d97706, #fbbf24);
	width: 0;
}

.user-currency {
	display: flex;
	align-items: center;
	gap: 0.5vw;
	font-size: 1.5vw;
	color: #fbbf24;
}

.gold-icon {
	display: inline-block;
	width: 2vw;
	height: 2vw;
	background-image: url('svg/sfx.svg'); /* Р—Р°РіР»СѓС€РєР° */
	background-size: contain;
	background-repeat: no-repeat;
	filter: hue-rotate(45deg) brightness(1.2);
}

.gold-label {
	font-size: 1vw;
	color: #a78bfa;
}

/* РќР°РІРёРіР°С†РёСЏ */
#menu-nav {
	display: flex;
	background-color: rgba(30, 24, 18, 0.5);
	border-bottom: 1px solid #78350f;
}

.nav-tab-btn {
	flex: 1;
	padding: 1vw;
	background: none;
	border: none;
	border-right: 1px solid rgba(120, 53, 21, 0.4);
	color: #d1a876;
	font-family: "Georgia", serif;
	font-size: 1.1vw;
	cursor: pointer;
	transition: all 0.3s ease;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
	position: relative;
}

.nav-tab-btn:hover {
	background-color: rgba(120, 53, 15, 0.15);
	color: #fef3c7;
}

.nav-tab-btn.active {
	background-color: rgba(120, 53, 15, 0.35);
	color: #fbbf24;
	font-weight: bold;
}

.nav-tab-btn.active::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 10%;
	width: 80%;
	height: 3px;
	background-color: #fbbf24;
	box-shadow: 0 0 8px #fbbf24;
	border-radius: 2px;
}

/* РЎРѕРґРµСЂР¶РёРјРѕРµ РІРєР»Р°РґРѕРє */
#menu-content {
	flex: 1;
	padding: 2vw;
	overflow-y: auto;
}

.tab-panel {
	animation: fadeInTab 0.3s ease-out;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.tab-panel h2 {
	margin-top: 0;
	color: #d97706;
	border-bottom: 1px solid #451a03;
	padding-bottom: 0.5vw;
	font-size: 1.8vw;
}

/* Р’РєР»Р°РґРєР°: РРіСЂР°С‚СЊ */
.opponents-list {
	display: flex;
	gap: 1.5vw;
	margin-top: 1vw;
	flex-wrap: wrap;
}

.opponent-card {
	flex: 1;
	min-width: 20vw;
	background: linear-gradient(135deg, rgba(45, 34, 27, 0.9) 0%, rgba(28, 20, 16, 0.95) 100%);
	border: 2px solid #78350f;
	border-radius: 6px;
	padding: 1.5vw;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	box-shadow: 0 4px 10px rgba(0,0,0,0.6);
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.opponent-card:hover {
	border-color: #fbbf24;
	transform: translateY(-0.4vw);
	box-shadow: 0 10px 20px rgba(251, 191, 36, 0.15);
}

.opp-avatar {
	width: 6vw;
	height: 6vw;
	border-radius: 50%;
	border: 2px solid #d97706;
	background-size: cover;
	background-position: center;
	margin-bottom: 1vw;
}

.opp-dandelion { background-image: url('img/lg/neutral_dandelion.jpg'); }
.opp-zoltan { background-image: url('img/lg/neutral_zoltan.jpg'); }
.opp-roche { background-image: url('img/lg/realms_vernon.jpg'); }

.opp-details h3 {
	margin: 0;
	font-size: 1.4vw;
	color: #fef3c7;
}

.difficulty {
	font-size: 0.9vw;
	margin: 0.2vw 0 0.8vw 0;
	font-weight: bold;
}

.difficulty.easy { color: #10b981; }
.difficulty.medium { color: #f59e0b; }
.difficulty.hard { color: #ef4444; }

.opp-details .desc {
	font-size: 0.95vw;
	color: #94a3b8;
	line-height: 1.3vw;
	margin-bottom: 1.5vw;
	min-height: 4vw;
}

.challenge-btn {
	width: 100%;
	margin-top: auto;
}

/* Р’РєР»Р°РґРєР°: РњР°РіР°Р·РёРЅ */
.shop-header {
	margin-bottom: 1vw;
}

.shop-header p {
	font-size: 1vw;
	color: #94a3b8;
	margin: 0.2vw 0 0 0;
}

/* Компактный фильтр-бар */
.compact-filters-bar {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 2vw;
	padding: 0.8vw 1.2vw;
	background-color: rgba(30, 24, 18, 0.6);
	border: 1px solid #78350f;
	border-radius: 4px;
	margin-bottom: 1.2vw;
}

.compact-filter-select-group {
	display: flex;
	align-items: center;
	gap: 0.8vw;
}

.gwent-select {
	background-color: #1a1510;
	color: #fef3c7;
	border: 1.5px solid #78350f;
	border-radius: 4px;
	padding: 0.4vw 0.8vw;
	font-family: "Georgia", serif;
	font-size: 0.9vw;
	cursor: pointer;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gwent-select:hover, .gwent-select:focus {
	border-color: #fbbf24;
	box-shadow: 0 0 5px rgba(251, 191, 36, 0.3);
}

.gwent-select option {
	background-color: #1a1510;
	color: #fef3c7;
}

.shop-items-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(11vw, 1fr));
	gap: 1.2vw;
	padding: 1vw 0;
	overflow-y: auto;
	max-height: 33vw;
}

.shop-item-card {
	background: linear-gradient(135deg, rgba(45, 34, 27, 0.9) 0%, rgba(28, 20, 16, 0.95) 100%);
	border: 2px solid #78350f;
	border-radius: 6px;
	padding: 1vw;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(0,0,0,0.6);
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop-item-card:hover {
	border-color: #fbbf24;
	transform: translateY(-4px);
	box-shadow: 0 10px 20px rgba(251, 191, 36, 0.15);
}

.shop-card-preview {
	width: 7vw;
	height: 12vw;
	background-size: cover;
	background-position: center;
	border-radius: 4px;
	border: 1.5px solid #d97706;
	margin-bottom: 0.8vw;
	box-shadow: 0 5px 12px rgba(0,0,0,0.6);
	transition: transform 0.25s ease;
}

.shop-item-card:hover .shop-card-preview {
	transform: scale(1.04);
	border-color: #fbbf24;
}

.shop-item-name {
	font-size: 0.85vw;
	color: #fef3c7;
	margin: 0;
	font-weight: bold;
	min-height: 2.2vw;
	display: flex;
	align-items: center;
	justify-content: center;
}

.shop-item-price {
	font-size: 0.95vw;
	color: #fbbf24;
	margin: 0.5vw 0 0.8vw 0;
	display: flex;
	align-items: center;
	gap: 0.3vw;
}

.shop-item-price::before {
	content: "Цена: ";
	font-size: 0.85vw;
	color: #94a3b8;
}

.shop-item-owned {
	font-size: 0.8vw;
	color: #94a3b8;
	margin-bottom: 0.8vw;
}

.buy-card-btn {
	width: 100%;
	font-size: 0.85vw !important;
	padding: 0.4vw !important;
}

/* Стили для выбора фракций в магазине */
.shop-faction-card {
	background: linear-gradient(rgba(30, 20, 15, 0.92), rgba(15, 10, 8, 0.97)), url('https://cdn.jsdelivr.net/gh/asundr/gwent-classic@main/img/board/bg_wood.jpg');
	background-size: cover;
	border: 2px solid #78350f;
	border-radius: 8px;
	padding: 1.2vw;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	box-shadow: 0 8px 25px rgba(0,0,0,0.85);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	cursor: pointer;
}

.shop-faction-card::after {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.12), transparent);
	transition: left 0.6s ease;
	pointer-events: none;
}

.shop-faction-card:hover::after {
	left: 100%;
}

.shop-faction-card:hover {
	border-color: #fbbf24;
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(251, 191, 36, 0.22);
}

.shop-faction-card.locked {
	border-color: #3f2f27;
	filter: grayscale(35%);
}

.shop-faction-card.locked::before {
	content: "🔒";
	font-size: 2vw;
	position: absolute;
	top: 3.5vw;
	z-index: 2;
	opacity: 0.9;
	text-shadow: 0 0 8px rgba(0,0,0,0.9);
	pointer-events: none;
}

.shop-faction-card-banner {
	width: 100%;
	height: 8vw;
	background-size: cover;
	background-position: center;
	border-radius: 4px;
	border: 1.5px solid #78350f;
	margin-bottom: 0.8vw;
	box-shadow: 0 4px 8px rgba(0,0,0,0.4);
	transition: border-color 0.25s ease;
}

.shop-faction-card.locked .shop-faction-card-banner {
	opacity: 0.55;
}

.shop-faction-card:hover .shop-faction-card-banner {
	border-color: #fbbf24;
}

.shop-faction-card-title {
	font-size: 1.05vw;
	color: #fef3c7;
	font-weight: bold;
	margin-bottom: 0.4vw;
	font-family: "Georgia", serif;
	text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
}

.shop-faction-card-status {
	font-size: 0.8vw;
	margin-bottom: 0.8vw;
	font-weight: bold;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.9);
}

.shop-faction-card-status.unlocked-status {
	color: #10b981;
}

.shop-faction-card-status.locked-status {
	color: #f43f5e;
}

/* Модалка деталей карты */
#shop-card-detail-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.85);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 99999;
	backdrop-filter: blur(4px);
}

#shop-card-detail-modal.hide {
	display: none !important;
}

.card-details-modal-content {
	background-image: url('https://cdn.jsdelivr.net/gh/asundr/gwent-classic@main/img/board/bg_wood.jpg') !important;
	background-size: cover;
	border: 3px solid #d97706 !important;
	box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 0 40px rgba(0,0,0,0.6);
}

/* Р’РєР»Р°РґРєР°: Р”СЂСѓР·СЊСЏ Рё Р§Р°С‚ */
.friends-layout {
	display: flex;
	height: 35vw;
	gap: 1.5vw;
	background-color: rgba(15, 12, 10, 0.4);
	border: 1px solid #78350f;
	border-radius: 4px;
	overflow: hidden;
}

.friends-sidebar {
	width: 25%;
	border-right: 1px solid #78350f;
	background-color: rgba(20, 16, 12, 0.7);
	display: flex;
	flex-direction: column;
	padding: 1vw;
}

.friends-sidebar h3 {
	margin: 0 0 1vw 0;
	color: #d97706;
	font-size: 1.2vw;
	border-bottom: 1px solid #78350f;
	padding-bottom: 0.5vw;
}

.friends-list {
	flex: 1;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 0.5vw;
}

.friend-item {
	display: flex;
	align-items: center;
	gap: 0.8vw;
	padding: 0.6vw;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	border: 1px solid transparent;
}

.friend-item:hover {
	background-color: rgba(120, 53, 15, 0.2);
}

.friend-item.active {
	background-color: #78350f;
	border-color: #fbbf24;
}

.friend-item-avatar {
	width: 2.5vw;
	height: 2.5vw;
	border-radius: 50%;
	border: 1px solid #d97706;
	background-size: cover;
	background-position: center;
}

.friend-item-meta {
	display: flex;
	flex-direction: column;
}

.friend-item-name {
	font-size: 1vw;
	color: #fef3c7;
	font-weight: bold;
}

.friend-item-status {
	font-size: 0.8vw;
}

.friend-item-status.online { color: #10b981; }
.friend-item-status.offline { color: #64748b; }
.friend-item-status.in-game { color: #3b82f6; }

/* РћР±Р»Р°СЃС‚СЊ Р§Р°С‚-РѕРєРЅР° */
.friends-chat-area {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 1vw;
	position: relative;
}

#chat-welcome {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
	color: #64748b;
	font-size: 1.2vw;
	text-align: center;
}

#chat-window {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.chat-header {
	display: flex;
	align-items: center;
	border-bottom: 1px solid #78350f;
	padding-bottom: 0.5vw;
	margin-bottom: 1vw;
}

#chat-friend-name {
	font-size: 1.3vw;
	color: #fef3c7;
	font-weight: bold;
	margin-right: 0.8vw;
}

#chat-friend-status {
	font-size: 0.9vw;
	color: #10b981;
}

.chat-actions {
	margin-left: auto;
	display: flex;
	gap: 0.5vw;
}

.chat-action-btn {
	background-color: #334155;
	color: #fef3c7;
	border: 1px solid #475569;
	padding: 0.4vw 0.8vw;
	font-size: 0.9vw;
	cursor: pointer;
	border-radius: 3px;
	transition: all 0.2s ease;
}

.chat-action-btn:hover {
	background-color: #78350f;
	border-color: #d97706;
	color: #fbbf24;
}

.chat-messages {
	flex: 1;
	overflow-y: auto;
	border: 1px solid #475569;
	background-color: rgba(0,0,0,0.5);
	border-radius: 4px;
	padding: 1vw;
	display: flex;
	flex-direction: column;
	gap: 0.8vw;
	margin-bottom: 1vw;
	max-height: 22vw;
}

.chat-msg {
	max-width: 70%;
	padding: 0.6vw 1vw;
	border-radius: 6px;
	font-size: 1vw;
	line-height: 1.3vw;
}

.chat-msg.sent {
	align-self: flex-end;
	background-color: #78350f;
	color: #fef3c7;
	border: 1px solid #d97706;
}

.chat-msg.received {
	align-self: flex-start;
	background-color: #1e293b;
	color: #fef3c7;
	border: 1px solid #475569;
}

.chat-input-bar {
	display: flex;
	gap: 0.8vw;
}

.chat-input-bar input {
	flex: 1;
	padding: 0.6vw;
	background-color: #0f172a;
	border: 1px solid #475569;
	color: #fef3c7;
	border-radius: 4px;
	font-size: 1vw;
}

.chat-input-bar button {
	background-color: #78350f;
	color: #fbbf24;
	border: 1px solid #d97706;
	padding: 0.6vw 1.5vw;
	cursor: pointer;
	border-radius: 4px;
	font-size: 1vw;
}

/* РћРєРЅРѕ РѕР±РјРµРЅР° (РўСЂРµР№Рґ) */
#trade-window {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.trade-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #78350f;
	padding-bottom: 0.5vw;
	margin-bottom: 1vw;
}

.trade-header h3 {
	margin: 0;
	color: #d97706;
	font-size: 1.4vw;
}

#close-trade-btn {
	background: none;
	border: none;
	color: #a78bfa;
	cursor: pointer;
	font-size: 1vw;
}

.trade-box {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: space-around;
	margin-bottom: 1.5vw;
}

.trade-column {
	width: 40%;
	display: flex;
	flex-direction: column;
	align-items: center;
	background-color: rgba(30, 24, 18, 0.6);
	border: 1px solid #78350f;
	padding: 1.5vw;
	border-radius: 4px;
}

.trade-column h4 {
	margin-top: 0;
	color: #fbbf24;
	font-size: 1.2vw;
	margin-bottom: 1vw;
}

.trade-card-slot {
	width: 7vw;
	height: 12.25vw;
	border: 2px dashed #475569;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 1vw;
	font-size: 0.9vw;
	color: #64748b;
	background-size: cover;
	background-position: center;
	margin-bottom: 1vw;
}

.trade-card-slot.selected {
	border-style: solid;
	border-color: #d97706;
	color: transparent;
}

.trade-divider-icon {
	font-size: 3vw;
	color: #d97706;
}

.trade-desc {
	font-size: 0.9vw;
	color: #94a3b8;
	margin-top: 0.5vw;
	text-align: center;
	min-height: 2vw;
}

/* РњРѕРґР°Р»РєР° РІС‹Р±РѕСЂР° РєР°СЂС‚ РґР»СЏ РѕР±РјРµРЅР° */
#card-trade-selector-modal {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: calc(100vw * 1080 / 1920);
	background-color: rgba(0, 0, 0, 0.85);
	z-index: 10000;
	display: flex;
	justify-content: center;
	align-items: center;
}

#card-trade-selector-modal p, 
#card-trade-selector-modal div, 
#card-trade-selector-modal span, 
#card-trade-selector-modal h3, 
#card-trade-selector-modal button {
	font-size: 1vw;
}

#card-trade-selector-modal h3 {
	font-size: 1.8vw;
	margin-top: 0;
}

#trade-selectable-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(7vw, 1fr));
	gap: 1vw;
	max-height: 25vw;
	overflow-y: auto;
	margin-bottom: 2vw;
	padding: 1vw 0;
}

.trade-select-item {
	cursor: pointer;
	border: 1px solid transparent;
	padding: 0.3vw;
	border-radius: 4px;
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: all 0.2s ease;
}

.trade-select-item:hover {
	border-color: #fbbf24;
	background-color: rgba(255,255,255,0.05);
}

.trade-select-item-img {
	width: 6vw;
	height: 10.5vw;
	background-size: cover;
	background-position: center;
	border-radius: 3px;
	border: 1px solid #d97706;
	box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.trade-select-item-count {
	font-size: 0.8vw;
	color: #fbbf24;
	margin-top: 0.3vw;
}

/* Р’РєР»Р°РґРєР°: РљРѕР»РѕРґС‹ */
.decks-overview {
	background-color: rgba(30, 24, 18, 0.6);
	border: 1px solid #78350f;
	padding: 2vw;
	border-radius: 4px;
}

.decks-overview p {
	font-size: 1.1vw;
	line-height: 1.6vw;
	color: #fef3c7;
	margin: 0 0 1vw 0;
}

.decks-overview p:last-of-type {
	margin-bottom: 2vw;
}

/* РђРЅРёРјР°С†РёРё РїРѕСЏРІР»РµРЅРёСЏ */
@keyframes fadeInMenu {
	from { opacity: 0; transform: scale(0.98); }
	to { opacity: 1; transform: scale(1); }
}

@keyframes fadeInTab {
	from { opacity: 0; transform: translateY(0.5vw); }
	to { opacity: 1; transform: translateY(0); }
}

/* РњРѕРґР°Р»РєР° СЂРµРґР°РєС‚РёСЂРѕРІР°РЅРёСЏ РїСЂРѕС„РёР»СЏ */
#edit-profile-modal {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: calc(100vw * 1080 / 1920);
	background-color: rgba(0, 0, 0, 0.85);
	z-index: 10000;
	display: flex;
	justify-content: center;
	align-items: center;
}

#edit-profile-modal p, 
#edit-profile-modal div, 
#edit-profile-modal span, 
#edit-profile-modal h3, 
#edit-profile-modal button,
#edit-profile-modal label,
#edit-profile-modal input {
	font-size: 1vw;
}

#edit-profile-modal h3 {
	font-size: 1.8vw;
	margin-top: 0;
}

.faction-edit-btn {
	flex: 1 1 calc(33.3% - 0.5vw);
	padding: 0.8vw;
	background-color: #1e293b;
	border: 2px solid #475569;
	text-align: center;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.9vw;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.faction-edit-btn:hover {
	border-color: #fbbf24;
	background-color: #334155;
}

.faction-edit-btn.active {
	border-color: #d97706;
	background-color: #78350f;
	box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

/* РЎРєСЂС‹РІР°РµРј РєРЅРѕРїРєРё РёРјРїРѕСЂС‚Р°/СЌРєСЃРїРѕСЂС‚Р°/СЃРјРµРЅС‹ С„СЂР°РєС†РёРё РІ СЂРµРґР°РєС‚РѕСЂРµ РєРѕР»РѕРґС‹ */
#upload-deck, #change-faction, #download-deck {
	display: none !important;
}

/* Р˜РєРѕРЅРєР° РєРѕРјРїСЊСЋС‚РµСЂР° РІ СЃРїРёСЃРєРµ РѕРїРїРѕРЅРµРЅС‚РѕРІ */
.opp-computer {
	background-image: url('img/icons/faction_neutral.png');
	background-size: 60% auto;
	background-repeat: no-repeat;
	background-color: #1a1510;
}

/* Старые стили фильтров удалены для освобождения места */

/* Верстка вкладки Колоды */
/* ==========================================================================
   WITCHER 3 DECKBUILDER STYLES
   ========================================================================== */
.witcher-deckbuilder {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	gap: 1vw;
	box-sizing: border-box;
}

.deckbuilder-header {
	display: flex;
	align-items: center;
	padding: 0.5vw 1vw;
	border-bottom: 2px solid #78350f;
	background: rgba(20, 16, 12, 0.85);
	border-radius: 4px;
}

.deckbuilder-title {
	display: flex;
	align-items: center;
	gap: 1vw;
}

.deckbuilder-title h2 {
	margin: 0;
	color: #f59e0b;
	font-size: 1.6vw;
	font-family: serif;
	letter-spacing: 1px;
	text-shadow: 1px 1px 3px black;
}

.witcher-btn {
	background: linear-gradient(to bottom, #7c2d12, #451a03);
	border: 2px solid #9a3412;
	color: #ffedd5;
	font-family: serif;
	font-size: 0.9vw;
	padding: 0.4vw 1.2vw;
	cursor: pointer;
	border-radius: 2px;
	transition: all 0.2s ease;
	text-shadow: 1px 1px 2px black;
	font-weight: bold;
}

.witcher-btn:hover {
	border-color: #fbbf24;
	color: #fbbf24;
	box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.witcher-btn.gold {
	background: linear-gradient(to bottom, #d97706, #78350f);
	border-color: #f59e0b;
	color: #fffbeb;
}

.deckbuilder-content {
	display: flex;
	gap: 1.5vw;
	height: 35vw;
	max-height: 35vw;
	box-sizing: border-box;
	width: 100%;
	justify-content: center;
}

.deckbuilder-column {
	flex: 1 1 35vw;
	max-width: 40vw;
	display: flex;
	flex-direction: column;
	gap: 0.8vw;
	height: 35vw;
	max-height: 35vw;
	overflow-y: auto;
	padding-right: 0.5vw;
	box-sizing: border-box;
}

.parchment-scroll {
	background: radial-gradient(circle, #fcf6e8 0%, #e2d2b5 100%);
	border: 3px double #78350f;
	box-shadow: inset 0 0 30px rgba(120, 53, 15, 0.25), 0 4px 10px rgba(0,0,0,0.6);
	border-radius: 4px;
	padding: 1.2vw;
	color: #291507;
	box-sizing: border-box;
}

.parchment-scroll h3 {
	margin: 0;
	font-family: serif;
	font-size: 1.4vw;
	border-bottom: 2px solid #78350f;
	padding-bottom: 0.3vw;
	text-align: center;
	color: #78350f;
	text-shadow: 0.5px 0.5px 1px rgba(255,255,255,0.6);
}

.stats-summary {
	background: rgba(120, 53, 15, 0.08);
	border: 1px dashed #78350f;
	padding: 0.4vw 0.8vw;
	font-size: 0.9vw;
	font-weight: bold;
	text-align: center;
	border-radius: 3px;
}

.deckbuilder-grids-container {
	display: flex;
	flex-direction: column;
	gap: 1vw;
}

.deckbuilder-role-group {
	display: flex;
	flex-direction: column;
	gap: 0.4vw;
	background: rgba(120, 53, 15, 0.04);
	border: 1px solid rgba(120, 53, 15, 0.15);
	padding: 0.6vw;
	border-radius: 3px;
}

.deckbuilder-role-group h4 {
	margin: 0;
	font-size: 1vw;
	color: #78350f;
	border-bottom: 1px solid rgba(120, 53, 15, 0.2);
	padding-bottom: 0.2vw;
	font-family: serif;
}

.cards-role-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(4.2vw, 1fr));
	gap: 0.6vw;
	min-height: 4.5vw;
}

/* Карточка в редакторе */
.deck-preview-card {
	width: 4.2vw;
	height: 5.8vw;
	background-size: cover;
	background-position: center;
	border-radius: 3px;
	border: 2px solid #78350f;
	box-shadow: 0 2px 4px rgba(0,0,0,0.5);
	position: relative;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.deck-preview-card:hover {
	border-color: #fbbf24;
	box-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
	z-index: 10;
}

.card-count-badge {
	position: absolute;
	bottom: 0.2vw;
	right: 0.2vw;
	background-color: rgba(26, 15, 8, 0.9);
	color: #fbbf24;
	font-size: 0.8vw;
	padding: 0.1vw 0.3vw;
	border-radius: 2px;
	font-weight: bold;
	border: 1px solid #78350f;
	box-shadow: 1px 1px 3px black;
}

/* Центральная превью-панель детального просмотра */
.card-detail-preview-panel {
	flex: 0 0 16vw;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1vw;
	height: 35vw;
	max-height: 35vw;
	justify-content: flex-start;
	box-sizing: border-box;
	overflow: hidden;
}

.card-detail-img {
	width: 11vw;
	height: 16vw;
	background-size: cover;
	background-position: center;
	border: 3px solid #78350f;
	border-radius: 6px;
	box-shadow: 0 8px 16px rgba(0,0,0,0.5);
	background-color: rgba(0,0,0,0.2);
}

.card-detail-info {
	width: 100%;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 0.4vw;
	height: calc(100% - 17vw);
	box-sizing: border-box;
}

.card-detail-info h4 {
	margin: 0;
	font-family: serif;
	font-size: 1.3vw;
	color: #78350f;
}

.card-detail-info p {
	margin: 0;
	font-size: 0.9vw;
	color: #451a03;
}

.lore-text {
	font-style: italic;
	font-size: 0.85vw !important;
	color: #7c2d12 !important;
	margin: 0.3vw 0 0 0 !important;
	line-height: 1.2;
	border-top: 1px dashed rgba(120, 53, 15, 0.3);
	padding-top: 0.4vw;
	height: 100%;
	overflow-y: auto;
}

/* Кастомный скроллбар для Ведьмака */
.parchment-scroll::-webkit-scrollbar {
	width: 8px;
}
.parchment-scroll::-webkit-scrollbar-track {
	background: rgba(120, 53, 15, 0.05);
	border-radius: 4px;
}
.parchment-scroll::-webkit-scrollbar-thumb {
	background: #78350f;
	border-radius: 4px;
	border: 1px solid #fcf6e8;
}
.parchment-scroll::-webkit-scrollbar-thumb:hover {
	background: #9a3412;
}

/* Дополнительные стили для Лавки торговца (Новый двухпанельный вид) */
.shop-sidebar::-webkit-scrollbar {
	width: 6px;
}
.shop-sidebar::-webkit-scrollbar-track {
	background: rgba(120, 53, 15, 0.05);
}
.shop-sidebar::-webkit-scrollbar-thumb {
	background: #78350f;
	border-radius: 3px;
}

.shop-sidebar button.gwent-btn {
	background: rgba(30, 24, 18, 0.7);
	border: 1px solid #78350f;
	border-radius: 4px;
	transition: all 0.25s ease;
}

.shop-sidebar button.gwent-btn:hover {
	background: rgba(120, 53, 15, 0.2);
	border-color: #fbbf24;
	color: #fbbf24 !important;
	transform: translateX(3px);
}

.shop-sidebar button.gwent-btn.active {
	background: linear-gradient(90deg, rgba(120, 53, 15, 0.45) 0%, rgba(30, 24, 18, 0.8) 100%);
	border-color: #fbbf24;
	box-shadow: inset 3px 0 0 #fbbf24;
}

/* Стили вкладок в модальном окне редактирования профиля */
.profile-tab-btn {
	transition: all 0.2s ease;
	border-bottom: 2px solid transparent !important;
}

.profile-tab-btn:hover {
	color: #fbbf24 !important;
	background: rgba(120, 53, 15, 0.1) !important;
}

.profile-tab-btn.active {
	border-bottom-color: #fbbf24 !important;
	text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

/* Стили переключателей фракций колоды (Мои колоды) */
.deck-fac-btn {
	font-size: 0.8vw !important;
	padding: 0.4vw 1vw !important;
	background: rgba(26, 21, 16, 0.8) !important;
	border: 1.5px solid #78350f !important;
	color: #d1a876 !important;
	transition: all 0.25s ease !important;
}

.deck-fac-btn:hover:not(.locked) {
	border-color: #fbbf24 !important;
	color: #fbbf24 !important;
	background: rgba(120, 53, 15, 0.15) !important;
	transform: scale(1.02);
}

.deck-fac-btn.active {
	border-color: #fbbf24 !important;
	color: #fbbf24 !important;
	background: linear-gradient(180deg, rgba(120, 53, 15, 0.4) 0%, rgba(26, 21, 16, 0.9) 100%) !important;
	box-shadow: 0 0 10px rgba(251, 191, 36, 0.15) !important;
}

.deck-fac-btn.locked {
	filter: grayscale(80%);
	border-color: #3f2f27 !important;
}
