@font-face {

    font-family: Russo;

    src: url("assets/ScienceGothic-Bold.woff2") format("woff2");
    font-display: swap;

}




body {

    margin: 0;

    font-family: Russo;

    background:
        #090909
        url("assets/background.webp")
        center top
        no-repeat
        fixed;

    background-size: cover;

    color: #ddd;
	-webkit-text-stroke: 1px black;
}


#app {

    width: 1400px;

    margin: 20px auto;
}

.site-top-panel {
    position: relative;
    z-index: 30;
    height: 120px;
    min-height: 120px;
    padding: 68px 40px 16px;
    border: 1px solid rgba(255, 180, 100, .45);
    border-radius: 14px;
    background: linear-gradient(to bottom, rgba(55, 55, 55, .2), rgba(8, 8, 8, .76));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .12),
        inset 0 0 30px rgba(255, 180, 80, .05),
        0 0 20px rgba(0, 0, 0, .7);
    box-sizing: border-box;
}

.site-top-panel::before {
    content: "";
    position: absolute;
    inset: 1px;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 13px;
}

.site-brand-plate {
    position: absolute;
    z-index: 5;
    top: -1px;
    left: 50%;
    min-width: 330px;
    margin: 0;
    padding: 10px 32px;
    transform: translateX(-50%);
    background: url("assets/plate.webp") 50%/100% 100% no-repeat;
    color: #ffb070;
    font: 24px Russo, sans-serif;
    letter-spacing: 2px;
    text-align: center;
    text-decoration: none;
    text-shadow: 1px 1px #000;
    white-space: nowrap;
    -webkit-text-stroke: 1px #000;
}

.site-social-links {
    position: absolute;
    z-index: 6;
    top: 15px;
    right: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-social-link {
    width: 26px;
    height: 26px;
    display: block;
    border-radius: 50%;
    transition: transform .15s ease, filter .15s ease;
}

.site-social-link img {
    width: 100%;
    height: 100%;
    display: block;
}

.site-social-link:hover,
.site-social-link:focus-visible {
    outline: none;
    filter: brightness(1.18) drop-shadow(0 0 5px rgba(255, 176, 112, .55));
    transform: translateY(-1px);
}

.site-main-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 194px));
    justify-content: center;
    gap: 32px;
}

.site-menu-button {
    width: 100%;
    height: 35px;
    min-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 14px;
    border: 0;
    background: url("assets/button.webp") 50%/100% 100% no-repeat;
    color: #ffb070;
    font: 16px Russo, sans-serif;
    text-decoration: none;
    text-shadow: 1px 1px #000;
    cursor: pointer;
    -webkit-text-stroke: 1px #000;
}

.site-menu-button:hover,
.site-menu-button.active {
    color: #ffe0ba;
    filter: brightness(1.18);
}

.site-menu-group {
    position: relative;
    min-width: 0;
}

.site-menu-group > .site-menu-button {
    padding-right: 34px;
}

.site-submenu-toggle {
    position: absolute;
    z-index: 3;
    top: 0;
    right: 0;
    width: 34px;
    height: 35px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffb070;
    cursor: pointer;
    text-shadow: 1px 1px #000;
}

.site-submenu {
    position: absolute;
    z-index: 20;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    min-width: 150px;
    box-sizing: border-box;
    padding: 5px;
    border: 1px solid rgba(255, 180, 100, .38);
    border-radius: 5px;
    background: rgba(12, 11, 10, .97);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .72);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-5px);
    transition: opacity .15s ease, transform .15s ease;
}

.site-submenu a {
    padding: 9px 12px;
    color: #e4a65d;
    font: 13px Russo, sans-serif;
    text-decoration: none;
    text-shadow: 1px 1px #000;
}

.site-submenu a:hover,
.site-submenu a:focus-visible,
.site-submenu a.active {
    color: #ffe0ba;
    background: rgba(255, 176, 112, .1);
    outline: none;
}

.site-menu-group:hover .site-submenu,
.site-menu-group:focus-within .site-submenu,
.site-menu-group.open .site-submenu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.filters-panel,
.matches-panel,
.content-panel {

    position: relative;

    background:
        linear-gradient(
            to bottom,
            rgba(55,55,55,.18),
            rgba(8,8,8,.32)
        );

    

    border-radius: 14px;
	border:1px solid rgba(255,180,100,.45);
	box-shadow:
		inset 0 0 0 1px rgba(255,255,255,.18),
		inset 0 0 20px rgba(255,255,255,.08),
		inset 0 0 40px rgba(255,180,80,.05),
		0 0 20px rgba(0,0,0,.70);
}

.filters-panel::before,
.matches-panel::before,
.content-panel::before {

    content: "";

    position: absolute;

    left: 1px;
    right: 1px;
    top: 1px;
    bottom: 1px;

    border-radius: 13px;

    border: 1px solid rgba(255,255,255,.08);

    pointer-events: none;
}

.filters-panel {

    height: 110px;

    margin-top: 30px;

    padding-top: 18px;
}



.title-plate {

    position: absolute;

    top: -1px;

    left: 50%;

    transform: translateX(-50%);

    margin: 0;

    padding: 10px 32px;

	background-image:
        url("assets/plate.webp");

    background-size: 100% 100%;

    color: #ffb070;

    font-size: 24px;

    z-index: 10;
}

.main-layout {

    display: flex;

    gap: 20px;

    margin-top: 30px;

}

.matches-panel {

    width: 380px;

    min-height: 900px;

    padding: 90px 20px 20px 20px;

}

.content-panel {

    flex: 1;

    min-height: 900px;

    padding: 20px;

}

.match-card {

    cursor: pointer;

    margin-bottom: 15px;

    padding: 10px;

    min-height: 90px;

    border-radius: 10px;

    border: 1px solid rgba(255,180,100,.35);

    background:
	linear-gradient(
		to bottom,
		rgba(28,28,28,.82),
		rgba(8,8,8,.88)
        );

    box-shadow:

        inset 0 0 20px rgba(255,180,80,.05),

        0 0 10px rgba(0,0,0,.6);

    transition: .2s;
	position: relative;
    overflow: hidden;
}

.match-card:hover {

    border-color: #ffb070;

    box-shadow:

        0 0 6px rgba(255,176,112,.75),

        0 0 14px rgba(255,176,112,.55),

        0 0 26px rgba(255,176,112,.35),

        inset 0 0 12px rgba(255,176,112,.08);
}

.match-card.active {

    border-color: #ffb070;

    box-shadow:

        0 0 8px rgba(255,176,112,.95),

        0 0 18px rgba(255,176,112,.75),

        0 0 36px rgba(255,176,112,.45),

        inset 0 0 14px rgba(255,176,112,.10);
}

.matches-group {
    width: 100%;
    min-height: 42px;
    margin: 0 0 10px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,180,100,.35);
    border-radius: 5px;
    background: linear-gradient(to bottom, rgba(65,48,36,.9), rgba(22,18,15,.92));
    color: #ffb070;
    font: 16px Russo, sans-serif;
    letter-spacing: .5px;
    text-align: left;
    cursor: pointer;
}

.matches-group:hover,
.matches-group:focus-visible {
    border-color: #ffb070;
    box-shadow: 0 0 10px rgba(255,176,112,.3);
    outline: none;
}

.matches-group-arrow {
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid currentColor;
    transition: transform .15s ease;
}

.matches-group.expanded .matches-group-arrow {
    transform: rotate(90deg);
}

.matches-group-count {
    min-width: 28px;
    padding: 2px 6px;
    border-radius: 10px;
    background: rgba(0,0,0,.4);
    color: #ddd;
    font-size: 12px;
    text-align: center;
}

.day-header {
    width: calc(100% - 12px);
    min-height: 34px;
    margin-left: 12px;
    color: #ddd;
    font-size: 14px;
    background: rgba(20,20,20,.75);
}

.day-header + .match-card,
.day-header ~ .match-card {
    margin-left: 12px;
}

.matches-loading {
    padding: 8px 12px 14px 34px;
    color: #b9a58f;
    font-size: 13px;
}

.match-preview {

    display:flex;

    gap:12px;

    align-items:flex-start;

}

.map-thumb {

    width:120px;

    height:90px;

    flex-shrink:0;

    border-radius:8px;

    overflow:hidden;

    border:1px solid rgba(255,180,100,.35);

    box-shadow:

        inset 0 0 12px rgba(0,0,0,.55),

        0 0 8px rgba(255,180,80,.15);

}

.map-thumb img {

    width:100%;
    height:100%;

    object-fit:cover;

}

.match-info {

    flex:1;

}

.map-name {

    font-size:22px;

    color:#ffb070;

}

.match-type {

    margin-top:10px;

    color:#bbb;

}


.scoreboard {

    margin-top:30px;

    font-size:16px;

}


.match-header {

    text-align:center;

    font-size:22px;

    color:#ffb070;

    margin-bottom:20px;

}

.match-summary {

    display:flex;

    justify-content:center;

    gap:50px;

    margin-bottom:20px;

    color:#ddd;

}

.score-header {

    display:grid;

    grid-template-columns:
        70px
        50px
        1fr
        100px
        100px
        100px
        100px
        100px
        120px;

    background:
        rgba(30,30,30,.85);

    padding:8px;

}

.score-row {

    display:grid;

    grid-template-columns:
        70px
        50px
        1fr
        100px
        100px
        100px
        100px
        100px
        120px;

}

.score-row {
    min-height: 32px;
}

.score-row > div {
    padding: 3px 10px;
}

.score-row.blue {

    background:
        rgba(120,120,255,.30);

}

.score-row.red {

    background:
        rgba(255,40,40,.22);

}

.score-header,
.score-row {
    grid-template-columns:
        1.8fr
        90px
        90px
        90px
        90px
        90px
        90px;
}

.match-teams {

    width: 100%;

    max-width: 760px;

    margin: 0 auto 20px auto;

    text-align: center;

    font-size: 18px;

    text-shadow:
        1px 1px 0 #000,
        0 0 4px #000;
}

.teams-header,
.team-row {

    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr
        1fr
        1fr;

    align-items: center;
}

.teams-header {

    font-size: 16px;

    color: #ddd;

    margin-bottom: 4px;
}

.team-row {

    height: 34px;

    font-size: 20px;
}

.blue-team {

    background:
        rgba(180,180,255,.20);
}

.red-team {

    background:
        rgba(255,180,180,.15);
}

.blue-team div:nth-child(2) {

    color: #8faeff;
	font-size: 18px;
}

.red-team div:nth-child(2) {

    color: #ffb0a0;
	font-size: 18px;
}

.matches-title {

    width: 280px;

    white-space: nowrap;

    text-align: center;
}

.match-meta {

    margin-top: 12px;

    display: flex;

    flex-direction: column;

    gap: 4px;

    font-size: 14px;

    color: #ddd;
}

.score-row.spectator {

    background:
        rgba(40,40,40,.45);

    color:
        #b58a5a;
}

.spec-name {

    color:
        #d89a55;
}

.panel-corner-left,
.panel-corner-right{
    position:absolute;
    width:64px;
    height:64px;
    pointer-events:none;
    z-index:5;
}

.panel-corner-left{
    left:-1px;
    bottom:-1px;

    background:url("assets/corner_left.webp");
    background-size:contain;
    background-repeat:no-repeat;
}

.panel-corner-right{
    right:-7px;
    bottom:-1px;

    background:url("assets/corner_right.webp");
    background-size:contain;
    background-repeat:no-repeat;
}

.filter-control{

    height:42px;

    padding:0 14px;

    background:
        linear-gradient(
            to bottom,
            rgba(70,70,70,.35),
            rgba(20,20,20,.75)
        );

    border:1px solid rgba(180,110,60,.8);

    border-radius:4px;

    color:#d6d6d6;

    font-family:Russo;

    font-size:18px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        inset 0 0 8px rgba(255,180,80,.06);

}

.filter-select{

    width:220px;
    height:44px;

    padding-left:14px;

    background:
	linear-gradient(
		to bottom,
		#493a2d,
		#3c3127 55%,
		#2d241d
	);
	
	box-shadow:

    inset 0 1px 0 rgba(255,255,255,.12),

    inset 0 -1px 0 rgba(0,0,0,.5),

    inset 0 0 10px rgba(255,180,80,.08),

    0 0 3px rgba(0,0,0,.5);

    border:1px solid rgba(170,100,50,.85);

    border-radius:3px;

    color:#d8d1c6;

    font-family:Russo;

    font-size:18px;

    appearance:none;
    -webkit-appearance:none;

    background-image:url("assets/arrow.webp");

    background-repeat:no-repeat;

    background-position:right 10px center;

    background-size:24px;
}

.apply-btn{

    width:180px;
    height:48px;

    background:
        url("assets/button.webp");

    background-size:100% 100%;

    border:none;

    font-family:Russo;

    font-size:20px;

    color:#ffb070;

    cursor:pointer;

    text-shadow:
        1px 1px 0 #000;
}

.filters-row{

    height:100%;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:32px;

    padding:0 40px;

}

.filter-group{

    display:flex;

    align-items:center;

    gap:12px;
}

.filter-label{

    color:#e6e6e6;

    font-size:20px;

    text-shadow:
        1px 1px 0 #000,
        0 0 4px #000;
}

.filter-date{

    width:170px;
    height:44px;

    padding:0 12px;
	background:
	linear-gradient(
		to bottom,
		#493a2d,
		#3c3127 55%,
		#2d241d
	);
	
	box-shadow:

    inset 0 1px 0 rgba(255,255,255,.12),

    inset 0 -1px 0 rgba(0,0,0,.5),

    inset 0 0 10px rgba(255,180,80,.08),

    0 0 3px rgba(0,0,0,.5);

    border:1px solid rgba(170,100,50,.85);

    border-radius:3px;

    color:#d8d1c6;

    font-family:Russo;

    font-size:18px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        inset 0 0 10px rgba(255,180,80,.04);

}

.filter-select:focus,
.filter-date:focus,
.apply-btn:focus {

    outline: none;

    border-color: #f8b576;

    box-shadow:
        0 0 6px rgba(248,181,118,.45),
        0 0 12px rgba(248,181,118,.25),
        inset 0 0 8px rgba(248,181,118,.10);
}

.filter-select option {

    background:#3c3127;

    color:#f0d8c0;
}

.matches-scroll{

    height: 100%;

    overflow-y: auto;

    padding-right: 16px;

    position: relative;
}

.matches-scroll::-webkit-scrollbar{

    width: 16px;
}

.matches-scroll::-webkit-scrollbar-track{

    background:
        url("/assets/scroll_outside.webp")
        center
        repeat-y;

    background-size:
        8px auto;
}

.matches-scroll::-webkit-scrollbar-thumb{

    background:
        url("/assets/scroll_inside.webp")
        center
        repeat-y;

    background-size:
        10px auto;

    border-radius: 10px;
}

.matches-scroll::-webkit-scrollbar-thumb:hover{

    filter:
        brightness(1.3);
}

.qtext{
    display:flex;
    align-items:center;
    gap:0;
    line-height:16px;
}

.qchar{
    width:16px;
    height:16px;

    flex:none;

    background-image:url("conchars.png");
    background-repeat:no-repeat;

    image-rendering:pixelated;
    image-rendering:crisp-edges;
}

.qtext {
    line-height: 16px;
}

.qchar {
    display: inline-block;

    width: 16px;
    height: 16px;

    background-image: url("conchars.png");
    background-repeat: no-repeat;

    image-rendering: pixelated;
    image-rendering: crisp-edges;

    vertical-align: middle;
}

.qflip {
    transform: scaleX(-1);
}

.player-row{
    cursor:pointer;
    transition:.15s;
}

.player-row:hover{

    filter:brightness(1.15);

    box-shadow:
        inset 0 0 0 1px rgba(255,176,112,.25),
        0 0 8px rgba(255,176,112,.15);
}

.player-row.active-player{

    filter:brightness(1.15);

    box-shadow:
        inset 0 0 0 1px rgba(255,176,112,.45),
        0 0 10px rgba(255,176,112,.25);

    position:relative;
    z-index:2;
}

#details-panel{

    margin-top:20px;

    border-top:
        1px solid rgba(255,180,100,.25);

    padding-top:16px;
}

.details-title{

    text-align:center;

    font-size:24px;

    color:#ffb070;

    margin-bottom:16px;

    text-shadow:
        1px 1px 0 #000,
        0 0 6px rgba(255,176,112,.35);
}

.awards-list{

    display:flex;

    flex-direction:column;

    gap:8px;
}

.award-row{

    display:grid;

    grid-template-columns:
        320px
        1fr;

    gap:20px;

    padding:4px 0;
}

.award-name{

    color:#8faeff;

    font-size:20px;
}

.award-text{

    color:#ddd;
	display: flex;
	justify-content: center;
	align-items: center;
}

.details-plate{

    width: fit-content;

    margin: 0 auto 24px auto;

    padding: 8px 28px;

    background:
        url("assets/plate.webp");

    background-size: 100% 100%;

    color: #ffb070;

    font-size: 24px;

    text-align: center;

    text-shadow:
        1px 1px 0 #000,
        0 0 6px rgba(255,176,112,.35);
}

.player-summary-grid{

    display:grid;

    grid-template-columns:
        1fr 1fr;

    gap:16px;

    margin-top:20px;
}

.summary-box{

    background:
        linear-gradient(
            to bottom,
            rgba(40,40,40,.55),
            rgba(10,10,10,.65)
        );

    border:1px solid rgba(255,180,100,.30);

    border-radius:8px;

    padding:12px;

    box-shadow:
        inset 0 0 12px rgba(255,180,80,.05);
}

.summary-title{

    text-align:center;

    color:#78d878;

    font-size:20px;

    margin-bottom:12px;

    text-shadow:
        1px 1px 0 #000;
}

.summary-title.red{

    color:#ff7070;
}

.summary-title.gold{

    color:#e4a65d;
}

.summary-row{

    display:grid;

    grid-template-columns:
        24px
        1fr
        auto;

    gap:10px;

    align-items:center;

    margin-bottom:6px;

    color:#ddd;
}

.summary-row img{

    width:20px;
    height:20px;

    image-rendering:pixelated;
}

.bar-row{

    display:grid;

    grid-template-columns:
        24px
        1fr
        90px;

    gap:10px;

    align-items:center;
}

.bar-content{

    display:flex;

    flex-direction:column;

    gap:4px;
}

.bar-label{

    color:#ddd;

    font-size:18px;
}

.bar-track{

    height:12px;
	width: 70%;

    background:
        rgba(0,0,0,.45);

    border:
        1px solid rgba(255,255,255,.08);

    overflow:hidden;

    border-radius:2px;
}

.bar-fill{

    height:100%;
}

.bar-fill.green{

    background:#249624;
}

.bar-fill.red{

    background:#c42828;
}

.bar-fill.yellow{

    background:#b78d22;
}

.bar-fill.orange{
    background:#c76a1a;
}

.bar-value
{
    min-width: 90px;
    text-align: right;
    white-space: nowrap;
    color: #ddd;
}

.kills
{
	color: #50d56c;
}

.tks
{
	color: #ecde37;
}

.dths
{
	color: #ff0000;
}

.tchs
{
	color: #50d56c;
}

.caps
{
	color: #f38619;
}

.footer-panel{

    margin-top:30px;

    min-height:60px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 24px;

    background:
        linear-gradient(
            to bottom,
            rgba(45,45,45,.55),
            rgba(10,10,10,.75)
        );

    border:1px solid rgba(255,180,100,.35);

    border-radius:8px;

    box-shadow:
        inset 0 0 12px rgba(255,180,80,.06);
}

.footer-left{

    color:#bdbdbd;

    font-size:14px;

    text-shadow:
        1px 1px 0 #000;
}

.footer-right{

    color:#ffb070;

    font-size:18px;

    cursor:pointer;

    transition:.15s;

    text-shadow:
        1px 1px 0 #000;
}

.footer-right:hover{

    color:#ffd0a0;

    text-shadow:
        0 0 8px rgba(255,176,112,.8);
}

/* JSON player summary tuning */
.bar-row{
    grid-template-columns:
        34px
        minmax(0, 1fr)
        78px;

    gap:8px;
}

.bar-content{
    min-width:0;
}

.summary-row img{
    width:28px;
    height:28px;

    object-fit:contain;

    image-rendering:pixelated;
}

.bar-label{
    max-width:100%;

    overflow:hidden;

    text-overflow:ellipsis;

    white-space:nowrap;

    font-size:16px;

    line-height:1.1;
}

.bar-track{
    width:72%;
}

.bar-value{
    min-width:78px;

    font-size:16px;

    text-align:right;
}

/* V4 layout fixes */
.matches-scroll{
    max-height: 1250px;
    overflow-y: auto;
}

.summary-box{
    box-sizing: border-box;
    overflow: hidden;
}

.summary-row{
    box-sizing: border-box;
    width: 100%;
}

.bar-row{
    grid-template-columns:
        34px
        minmax(0, 1fr)
        86px;

    gap: 7px;
}

.bar-content{
    min-width: 0;
}

.bar-track{
    width: 66%;
}

.bar-value{
    box-sizing: border-box;
    min-width: 0;
    width: 86px;
    max-width: 86px;
    padding-right: 4px;
    overflow: hidden;
    text-align: right;
    white-space: nowrap;
    font-size: 15px;
    justify-self: end;
}

.footer-left a:link,
.footer-left a:visited,
.footer-left a:hover,
.footer-left a:active {
    color: #e4a65d;
    text-decoration: none;
}

/* Match links block */
.match-links-box{
    width: fit-content;
    min-width: 360px;
    margin: 18px auto 0 auto;
    padding: 12px 18px;

    background:
        linear-gradient(
            to bottom,
            rgba(40,40,40,.55),
            rgba(10,10,10,.68)
        );

    border:1px solid rgba(255,180,100,.34);
    border-radius:8px;

    box-shadow:
        inset 0 0 12px rgba(255,180,80,.05),
        0 0 10px rgba(0,0,0,.45);

    text-align:center;
}

.match-links-title{
    margin-bottom:10px;

    color:#e4a65d;
    font-size:18px;

    text-shadow:
        1px 1px 0 #000,
        0 0 5px rgba(255,176,112,.28);
}

.match-links-row{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}

.match-link-button:link,
.match-link-button:visited,
.match-link-button:hover,
.match-link-button:active{
    display:inline-block;

    min-width:145px;
    padding:7px 14px;

    color:#ffb070;
    text-decoration:none;
    font-size:15px;

    background:
        linear-gradient(
            to bottom,
            rgba(70,70,70,.35),
            rgba(20,20,20,.78)
        );

    border:1px solid rgba(255,180,100,.38);
    border-radius:5px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        inset 0 0 8px rgba(255,180,80,.06),
        0 0 5px rgba(0,0,0,.45);

    text-shadow:
        1px 1px 0 #000;
}

.match-link-button:hover{
    color:#ffd0a0;
    border-color:#ffb070;

    box-shadow:
        0 0 6px rgba(255,176,112,.65),
        inset 0 0 10px rgba(255,176,112,.08);
}
/* Shared site navigation can keep temporarily disabled entries in the markup. */
[hidden] {
    display: none !important;
}
