:root
{

	--east:#AC4034;
	--west:#ABAE86;
	--south:#F8AE1F;
	--north:#5379A8;

	--red:#D41803;
	--grey:rgba(0,0,0,0.5);
	--white-grey:rgba(255,255,255,0.6);
	--white: #ffffff;
	--black: #212529;
	--light-grey:#EEEEEE;

	--h1:400 3rem/4rem 'als_meringue', serif;
	--h2:400 2.22rem/2.78rem 'als_meringue', serif;
	--h3:400 1.9rem/2.22rem 'als_meringue', serif;

	--small:400 0.84rem/0.9rem 'als_sector', sans-serif;
	--medium:400 0.92rem/1rem 'als_sector', sans-serif;
	--count:400 1.56rem/2rem 'als_sector', sans-serif;
}

html, body
{
	margin:0px;
	padding:0px;
	width: 100%;
	min-height: 100vh;
	font-family: 'als_sector', sans-serif;
	background-color:#fff;
}
img
{
	max-width: 100%;
}
span,div,header
{
	display: block;
	position: relative;
	box-sizing: border-box;
}
a 
{
	text-decoration: none;
}

h1 
{
	font:var(--h1);
	margin:0;
	padding:0.6rem 0 0;
}
h2,.h2 {font:var(--h2); margin:0 0 1.7rem}
header 
{
	display: flex;
	align-items: center;
	gap:1rem;
}
.main header img
{
	height: 5rem;
}
.h-east .house-card
{
	background-color:var(--east);
	color:var(--white);
}
.h-west .house-card
{
	background-color:var(--west);
	color:var(--black);
}
.h-south .house-card
{
	background-color:var(--south);
	color:var(--black);
}
.h-north .house-card
{
	background-color:var(--north);
	color:var(--white);
}

.main
{
	padding:3rem 5rem 3rem;
}
.house-card 
{
	/*display: flex;
	justify-content: center;
	flex-direction: column;*/
	transition: all 0.3s ease;
	cursor: pointer;
	margin-top: 3.89rem;
}
.house-card:hover 
{
	transform: scale(1.04);
}
.house-card .name 
{
	display: block;
	font:var(--h2);
	text-align: center;
}
.house-card .image, .house-card .image img
{
	max-height: 16.67rem;
}
.house-card .image
{
	text-align: center;
}
.house-card .current
{
	display: grid;
	border-top:1px solid rgba(0, 0, 0, 0.2);
	padding-top:1.67rem;
	height: 5.56rem;
	grid-template-columns: 1fr 3.89rem;
	grid-gap: 1.11rem;
	margin-top: 1.11rem;
}
.house-card .info
{
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	justify-content: center;
	gap:0.28rem;
}
.house-card .info .grey
{
	opacity: 0.5;
}
.icon .count-icon
{
	display: flex;
	position: absolute;
	top:-0.5rem;
	right:-0.5rem;
	background-color: #F4C64B;
	border:0.5px solid #3C371A;
	width: 1.8rem;
	height: 1.8rem;
	border-radius: 50%;
	color: var(--black);
	padding-top: 0.15rem;
	align-items: center;
	justify-content: center;
	text-align: center;
	font: var(--small);
}
.icon .count-icon.minus
{
	color:var(--white);
	background-color: var(--red);
}
.yellow
{
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #F4C64B;
	border:0.5px solid #3C371A;
	border-radius: 50%;
}
.icon.grey .yellow
{
	background-color: #D4D4D4;
	border-color: rgba(0, 0, 0, 0.5);
}
.house-card .icon .yellow
{	
	width: 3.89rem;
	height: 3.89rem;
}

.icon .yellow
{	
	width: 4.89rem;
	height: 4.89rem;
}

.my-achive
{
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 8rem;
}

.my-achive .icon
{
	position: relative;
}

.my-achive .a-name
{
	font: var(--small);
	text-align: center;
}

.my-achive .icon .count-icon
{
	width: 2rem;
	height: 2rem;
}

.total-points .yellow
{
	width:6.67rem;
	height:6.67rem;
}
.yellow .white
{
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--white);
	border:0.5px solid #3C371A;
	border-radius: 50%;
}
.icon.grey .white
{
	border-color: rgba(0, 0, 0, 0.5);
}
.house-card .icon .yellow .white
{
	width: 3.33rem;
	height: 3.33rem;
}

.column21>div::-webkit-scrollbar {
  width: 10px;
}
 
.column21>div::-webkit-scrollbar-track {
  box-shadow: none;
}
 
.column21>div::-webkit-scrollbar-thumb {
  background-color: var(--east);
  border-radius: 5px;
  /*outline: 1px solid slategrey;*/
}

.icon .yellow .white
{
	width: 4.33rem;
	height: 4.33rem;
}

.total-points .yellow .white
{
	width: 5.67rem;
	height: 5.67rem;
	color:var(--black);
	font-size: 2.22rem;
}
.icon .yellow .white img 
{
	display: block;
	width: 3.7rem;
	height: 3.7rem;
}
.house-card .total-points
{
	display: block;
	position: absolute;
	top:-3.33rem;
	right:-1.67rem;
}


.h-east .house-card .current, .h-north .house-card .current
{
	border-color: rgba(255, 255, 255, 0.2);
}



.masters
{
	display: flex;
	flex-direction: column;
	gap:1.11rem;
	padding:1.67rem 2.22rem 0;
}
.leader-item
{
	display: grid;
	grid-template-columns: 1fr 3fr;
	gap:0.83rem;
	font: var(--medium);
}
.leader-item .photo
{
	border-radius: 50%;
	width: 100%;
	padding-top: 100%;
	height: 0;
	background-color: #7985E0;
	background-size: cover;
	background-position: center;
}
.leader-item .l-info
{
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap:0.22rem;
}
.leader-item .l-info .position
{
	opacity: 0.5;
}



.inner header
{
	height: 10rem;
}
.inner header>div
{
	padding: 1rem 2.8rem;
}
.inner.east header
{
	background-color: var(--east);
	color: var(--white);
}
.inner header, .column21
{
	display: grid;
	grid-template-columns: 4fr 3fr;
}
.inner header .left
{
	display: flex;
	align-items: center;
	gap:20px;
}
.inner header .left img 
{
	width:7rem;
}
.inner header .left .back 
{
	padding-top:0.6rem;
}
.inner header .left .back img
{
	height: 2rem;
	width: auto;
}
.inner header .right 
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding:0.6rem 2.8rem;
}

.column21>div
{
	padding: 2rem 2.8rem;
	min-height: 100%;
	height: calc(100vh - 10rem);
	overflow: auto;
}
.column21>div.greyc1
{
	background-color: var(--light-grey);
}
.inner header .right .place-score
{
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	justify-content: space-around;
	/*gap:0.4rem;*/
	gap:0;
	font: var(--h3);
}
.inner header .right .place-score .score
{
	font:400 1.8rem/2rem 'als_sector', sans-serif;	
	opacity: 0.5;
}
.inner header .account
{
	width: 5rem;
	height: 5rem;
	border-radius: 50%;
	background-size: contain;
}
.hh-list
{
	display: flex;
	gap: 2rem;
	align-items: center;
}
.hh-list .pic 
{
	width: 55%;
}

.hh-list .pic img
{
	margin: 0 auto;
	display: block;
}

.hh-list .names 
{
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap:0.9rem;
}
.rating-headline
{
	display: flex;
	justify-content: flex-start;
	gap:1.4rem;
	margin-top: 3.5rem;
}

.whitec2 .rating-headline
{
	margin-top: 0;
}

.rating-headline .sep-line, .place-score .sep-line
{
	display: inline-flex;
	width: 2px;
	height: 100%;
	background-color: var(--black);
	opacity: 0.3;
}

header .sep-line
{
	height: 6rem;
	width: 1px;
	background-color: var(--white);
	opacity: 0.3;
}

.rating-headline>a 
{
	color: var(--black);
	opacity: 0.5;
}
.rating-headline>a:hover
{
	opacity: 1;
}

.rating-list>div
{
	display: grid;
	grid-template-columns: 4.5rem 1fr 3.5rem;
	grid-gap: 1.2rem;
	border-bottom: 1px solid #D4D4D4;
	padding-bottom:0.56rem;
	margin-bottom:0.56rem;
}
.new-list>div
{
	display: grid;
	grid-template-columns: 4.5rem 1fr 4rem 3.5rem;
	grid-gap: 1.2rem;
	border-bottom: 1px solid #D4D4D4;
	padding-bottom:0.56rem;
	margin-bottom:0.56rem;	
}
.new-list>div .text-info
{
	display: grid;
	grid-template-columns: 1fr 1fr 17.3rem;
	grid-gap: 1.2rem;
}
.new-list.my-list>div
{
	grid-template-columns: 1fr 4rem 3.5rem;
}

.new-list.my-list>div .text-info
{
	display: grid;
	grid-template-columns: 1fr 17.3rem;
	grid-gap: 1.2rem;
}
.new-list>div div 
{
	display: flex;
	align-items: center;
}
.rating-list>div:last-child, .new-list>div:last-child
{
	border-bottom: none;
	padding-bottom:0;
	margin-bottom:0;	
}
.rating-list>div .pic, .new-list>div .pic
{
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #E0DFDF;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 0.22rem;
	font: var(--h2);
}
.rating-list>div .name, .new-list>div div.name
{
	display: flex;
	align-items: center;
	/*padding-left: 2.4rem;*/
	padding-left: 0;
}
.rating-list>div .name.snitch:after, .new-list>div div.name.snitch:after
{
	content: "";
	display: block;
	position: relative;
	top:-0.5rem;
	width:2rem;
	height: 2rem;
	margin-left: 10px;
	/*left:0;*/
	background:url('/images/snitch.svg');
	background-size: contain;
	background-repeat: no-repeat;

}

.rating-list>div .name.snitch:after
{
	/*top:1.5rem;*/
}

.rating-list>div .rating-count, .new-list>div .rating-count
{ 
	text-align: right;
	justify-content: flex-end;
	font:var(--count);
	display: flex;
	align-items: center;
}
.rating-count.big
{
	font: 400 1.8rem/2rem 'als_sector', sans-serif;
}
.new-list .achievement-name
{
	font-weight: bold;
	text-align: right;
	justify-content: flex-end;
}
.new-list>div .date
{
	opacity: 0.5;
}
.achievement-icon
{
	justify-content: center;
}
.new-list .minus 
{
	color: var(--red);
}
.button 
{
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	border:0.17rem solid var(--red);
	color: var(--red);
	font: 400 1.6rem/2rem 'als_sector', sans-serif;
	border-radius: 0.19rem;
	padding:1rem;
	gap:0.72rem;
	box-sizing: border-box;
}

.button img
{
	width: 1.5rem;
	height: 1.5rem;
	max-width: initial;
}
.achivments-block
{
	padding:3rem 0;
	display: flex;
	flex-wrap: wrap;
	gap:1.67rem;
}

.h-link
{
	margin-top: -0.3rem;
}

.h-link img
{
	filter: grayscale(100%);
}

.h-link.selected img
{
	filter: grayscale(0%);
}

.new-list>div .mobile.rating-count {
	display: none;
}

.mob-menu
{
	display: none;
}

.rmap a
{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0px;
	text-decoration: none;
	color: var(--black);
}

.rmap a svg
{
	width: 60px;
}

.rmap a.white
{
	color: var(--white);
}

.rmap span
{
	font:var(--count);
	font-size: 1.1rem;
}

.control
{
	display: block;
	font-size: 1rem;
	display: flex;
	gap: 5px;
	align-items:center;
	flex-direction: column;
	justify-content: flex-start;
	color: var(--grey);
}

.control.white
{
	color: var(--white-grey);
}

.control svg
{
	height: 2.22rem;
}

.white svg path
{
	fill:var(--white);
}

.control.white svg path
{
	fill:var(--white-grey);
}

.control.white:hover svg path
{
	fill: var(--white);
}

.control.white:hover
{
	color: var(--white);
}

.control.black svg path
{
	fill:var(--grey);
}

.control.black:hover svg path
{
	fill: var(--black);
}

.control.black:hover
{
	color: var(--black);
}

@media all and (max-width: 1080px)
{
	:root
	{
		--h1:400 1.6rem/2.0rem 'als_meringue', serif;
		--h2:400 1.3rem/1.8rem 'als_meringue', serif;
	}

	.right-main
	{
		display: none;
	}
	html, body
	{
		font-size: 14px;
	}

	.control
	{
		flex-direction: row;
		justify-content: center;
		align-items: center;
		color: var(--black);
		grid-column: span 2;
	}

	.control svg path
	{
		fill: var(--black);
	}

	.desktop
	{
		display: none;
	}

	.mob-menu.open
	{
		display: grid;
		grid-template-rows: 60px 1fr;
		position: fixed;
		height: -webkit-fill-available;
		top: 0;
		left: 0;
		width: 100vw;
		bottom: 0;
		z-index: 100;
		background-color: var(--light-grey);
	}

	.mob-menu .menu-block
	{
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		grid-column-gap: 20px;
		grid-row-gap: 0px;
		padding: 0px 30px 60px;
	}

	.mob-menu .mob-line .menu img
	{
		width: 20px;
	}

	.mob-menu .menu-block a img
	{
		max-width: 70%;
		display: block;
		margin: 0 auto;
	}

	.to-my-page
	{
		/*grid-column: span 2;*/
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 17px;
		background-color: var(--white);
		color: var(--black);
		padding: 10px;
		border-radius: 5px;
	}

	.to-my-page.my-rmap
	{
		background-color: transparent;
	}

	.menu-control
	{
		display: flex;
		flex-direction: column;
		gap: 20px;
		align-items: center;
		grid-column: span 2;
		padding-top: 30px;
		
	}

	.to-my-page .my-photo
	{
		width: 60px;
		height: 60px;
		display: block;
		border-radius: 4px;
		background-size: cover;
		background-position: center;
	}

	.desktop
	{
		display: none !important;
	}

	.h2
	{
		flex-wrap: wrap;
	}

	.my-achive
	{
		width: 7rem;
	}

	.hideble
	{
		display: flex;
		width: 100%;
		text-align: center;
		align-items: center;
		justify-content: center;
	}

	.hideble:after
	{
		content: "";
		width: 10px;
		height: 18px;
		margin-left: 10px;
		margin-left: 14px;
		position: relative;
		margin-top: -6px;
		background: url('/images/back.svg');
		background-size: cover;
		background-repeat: no-repeat;
		background-position: center;
		transform: rotate(90deg);
		transition: all 0.3s ease;
	}

	.hideble.hidden:after
	{
		margin-top: -2px;
		transform: rotate(-90deg);
	}


	.inner header>div, .mob-menu>div
	{
		padding: 10px 12px;
	}

	.inner header>div.mob-head
	{
		padding: 10px 33px;	
	}

	.inner header .left, .inner header .right
	{
		display: none;
	}

	.inner header
	{
		height: 144px;
		gap: 0;
	}

	header .score
	{
		opacity: 0.5;
	}

	/*.rating-list>div .name
	{
		padding-left: ;
	}*/

	.mob-line
	{
		display: flex;
		align-items: center;
		justify-content: space-between;
		background-color: var(--light-grey);
		grid-column: span 2;
		height: 60px;
	}

	.mob-head
	{
		display: flex;
		justify-content: flex-start;
		align-items: center;
		height: 84px;
		grid-column: span 2;
		gap: 5px;
	}

	.mob-head>div>div
	{
		display: flex;
		justify-content: flex-start;
		align-items: center;
		gap: 10px;
	}

	.mob-head>div>div .place
	{
		font: var(--h2);
	}

	.mob-head img
	{
		height: 60px;
	}

	.mob-line .back, .mob-line .menu
	{
		display: flex;
		align-items: center;
		justify-content: center;
		height: 60px;
	}

	.mob-line .back img
	{
		height: 20px;
	}
	.mob-line .menu img
	{
		height: 30px;
	}

	.column21
	{
		grid-template-columns: 1fr;
		display: flex;
		flex-direction: column-reverse;
		padding-bottom: 50px;
	}

	.column21>div
	{
		padding: 10px 12px;
	}

	.houses
	{
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: repeat(4, max-content);
		padding-top: 2rem;
		grid-gap: 3rem;
	}

	.new-list>div, .rating-list>div
	{
		grid-template-columns: 72px 1fr 78px;
		grid-row-gap: 0;
		grid-column-gap: 0.25rem;
		margin-bottom: 1rem;
		padding-bottom: 1rem;
	}

	.new-list.my-list>div
	{
		grid-template-columns: 1fr 78px;
		grid-row-gap: 0;
	}

	.new-list>div .text-info, .new-list.my-list>div .text-info
	{
		display: flex !important;
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		grid-template-columns: initial;
		grid-template-areas: initial;
		grid-gap: 0 !important;
	}

	.new-list>div .date { padding-top: 4px;}
	/*.new-list>div .picture { grid-area: img; }
	.new-list>div .name { grid-area: name; }
	.new-list>div .date { grid-area: date; padding-top: 4px;}
	.new-list>div .achievement-name { grid-area: type;}
	.new-list>div .achievement-icon { grid-area: achive; }
	.new-list>div .mobile.rating-count {display: none; }*/
	.rating-list>div:last-child, .new-list>div:last-child
	{
		margin-bottom: 1rem;
		padding-bottom: 1rem;
	}
	.new-list>div .rating-count, .my-achive .icon .count-icon {
		display: block;
		position: absolute;
		right: 0;
		top: calc(50% - 3.2rem);
		display: flex;
		width: 30px;
		height: 30px;
		padding-top: 3px;
		border-radius: 50%;
		background-color: #F4C64B;
		text-align: center;
		justify-content: center;
		align-items: center;
		font-size: 12px;
		border: 1px solid rgba(0, 0, 0, 0.5);
	}

	.my-list.new-list>div .rating-count
	{
		top: calc(50% - 3.6rem);
	}

	.my-achive .icon .count-icon {
		top: calc(50% - 3.0rem);
	}

	.my-achive .icon .count-icon
	{
		right: -6px;
	}

	.achivments-block
	{
		padding: 1rem 0 3rem;
	}

	.new-list>div .rating-count.minus, .my-achive .icon .count-icon.minus
	{
		background-color: var(--red);
		color: var(--white);
	}

	.my-achives
	{
		margin-bottom: 20px;
	}

	.rating-list>div .pic, .new-list>div .pic
	{
		width: 4.55rem;
		height: 4.55rem;
	}

	.icon .yellow .white
	{
		width: 4.25rem;
		height: 4.25rem;
	}

	.new-list>div .name, .new-list>div .date, .new-list>div .achievement-name
	{
		justify-content: flex-start;
		align-items: flex-start;
		padding-left: 0;
		text-align: left;
	}
	.new-list>div div.name, .rating-list>div .name
	{
		padding-left: 0;
	}

	.new-list>div div.achievement-icon
	{
		align-items: center;
	}

	.rating-list>div .name.snitch:before, .new-list>div div.name.snitch:before
	{
		display: none;
	}

	.rating-list>div .name.snitch:after, .new-list>div div.name.snitch:after
	{
		content: "";
		display: block;
		position: relative;
		top: -0.6rem;
		margin-bottom: -0.4rem;
		width: 1.6rem;
		height: 1.6rem;
		margin-left: 10px;
		background: url('/images/snitch.svg');
		background-size: contain;
	}

	

	.column21>div
	{
		height: auto;
		overflow: initial;
	}

	.greyc1 .h2.rating-headline
	{
		justify-content: center;
	}

	

	.hh-list
	{
		flex-direction: column;
		gap: 0.8rem;
		padding-bottom: 15px;
	}

	.hh-list .names
	{
		align-items: center;
	}

	.hh-list .pic
	{
		width: 100%;
	}

	.column21>div.greyc1
	{
		background-color: var(--white);
	}

	.greyc1 .h2, .whitec2 h2
	{
		font: var(--h1);
		text-align: center;
		justify-content: center;
		margin: 32px 0 20px;
	}



	.house-card
	{
		padding:2.22rem;
	}

	.main {
		padding: 1rem 2rem 1rem;
	}
}
@media all and (min-width: 1081px)
{

	html, body
	{
		font-size: 14px;
	}

	.mobile
	{
		display: none !important;
	}

	.mob-line, .mob-head
	{
		display: none;
	}
	.right-main
	{
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 2rem;
		flex: 1;
	}

	.user-menu
	{
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 2rem;	
	}

	.houses
	{
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		grid-gap: 2.22rem;
		grid-row-gap: 5rem;
		/*margin-top: 3.89rem;*/
	}
	.house-card
	{
		padding:2.22rem;
	}
	.main {
		padding: 2rem 2rem 2rem;
	}
}
@media all and (min-width: 1220px)
{
	html, body
	{
		font-size: 13px;
	}

	.main
	{
		padding:3rem 5rem 3rem;
	}

	.houses
	{
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		grid-gap: 2.22rem;
		/*margin-top: 3.89rem;*/
	}
	.house-card
	{
		padding:2.22rem;
	}
}

@media all and (max-width: 1220px)
{
	:root
	{
		--h2:400 1.9rem/2.1rem 'als_meringue', serif;
		--h3:400 1.6rem/1.8rem 'als_meringue', serif;
	}
	.house-card .current
	{
		height: 6.56rem;
	}

	.new-list>div .text-info
	{
		display: grid;
		grid-template-columns: 2fr 3fr;
		grid-template-areas: "name achive" "date achive";
		grid-gap: 0.5rem;
		grid-column-gap: 2rem;
	}

	.inner header .right .place-score .score
	{
		font-size: 1.6rem;
	}

	.text-info .name
	{
		grid-area: name;
	}

	.text-info .date
	{
		grid-area: date;
	}

	.text-info .achievement-name
	{
		grid-area: achive;
	}

	.rating-headline
	{
		flex-wrap: wrap;
		justify-content: space-between;
	}

	.rating-headline .hideble
	{
		width: 100%;
		text-align: center;
	}

	.hh-list
	{
		flex-direction: column;
		gap:1rem;
	}

	.hh-list .pic
	{
		width: 100%;
	}

}
@media all and (min-width: 1501px)
{
	html, body
	{
		font-size: 15px;
	}
}
@media all and (min-width: 1801px)
{
	html, body
	{
		font-size: 18px;
	}
}

