@charset "utf-8";

:root {
    --gold: #f0d08e;
    --gold-soft: #c7a15f;
    --text: #d6b478;
    --muted: #9a7a51;
    --red: #7b1f0f;
    --dark: #080302;
    --panel: #1b1009;
    --roof-top: -44px;
    --roof-main-gap: 163px;
    --columns-start: 450px;
}

html,
body {
    position: relative;
    padding: 0;
    margin: 0;
    min-width: 0;
    min-height: 100%;
    color: var(--text);
    font-family: "Fira Sans", "Lucida Sans Unicode", Arial, sans-serif;
    font-size: 12px;
    background: var(--dark);
}

body {
    overflow-x: hidden;
}

#page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: url(images/bg.webp) center top no-repeat;
}

a {
    color: #d8b26d;
    text-decoration: none;
    text-shadow: 0 0 4px #000, 0 0 4px #000;
    transition: color 140ms, filter 140ms;
}

a:hover {
    color: #ffe4a2;
}

a:active,
button:active,
.button:active {
    filter: brightness(0.82);
}

#top-nav {
    position: relative;
    z-index: 5;
    height: 92px;
    background: url(images/navbar.webp) center top / auto 109px no-repeat;
}

#top-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(104, 45, 16, 0.18), rgba(173, 83, 28, 0.12) 50%, rgba(104, 45, 16, 0.18)),
        linear-gradient(180deg, rgba(237, 151, 54, 0.08), rgba(0, 0, 0, 0) 72%);
}

.nav-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 42px;
    width: min(760px, calc(100% - 40px));
    height: 92px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 3px 0 0;
}

.nav-inner a {
    display: block;
    color: transparent;
    background: linear-gradient(#fff9d7, #e7c276 54%, #9e6e32);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.08rem;
    font-weight: 600;
    text-transform: uppercase;
    text-shadow: none;
    filter: drop-shadow(0 0 2px #000) drop-shadow(0 1px 2px #000);
}

.nav-inner a:hover {
    filter: brightness(1.22) drop-shadow(0 0 2px #000) drop-shadow(0 1px 2px #000);
}

#hero {
    position: relative;
    height: 528px;
}

#hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 36px;
    left: calc(50% + 25px);
    width: 628px;
    height: 665px;
    pointer-events: none;
    background: url(images/character.webp) center / contain no-repeat;
}

#logo {
    position: absolute;
    display: block;
    z-index: 2;
    left: calc(50% - 490px);
    top: 140px;
    width: 558px;
    height: 168px;
    background: url(images/logo.webp) center / contain no-repeat;
}

#container {
    position: relative;
    z-index: 3;
    width: 1076px;
    margin: -115px auto 0;
}

#roof {
    position: absolute;
    top: var(--roof-top);
    left: 25px;
    z-index: 4;
    width: 1027px;
    height: 189px;
    pointer-events: none;
    background: url(images/roof.webp) center top no-repeat;
}

#main {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 1076px;
    padding-top: calc(var(--roof-top) + var(--roof-main-gap));
    box-sizing: border-box;
}

.panel {
    position: relative;
    box-sizing: border-box;
    flex: 0 0 auto;
}

#left {
    z-index: 3;
    width: 272px;
    min-height: 471px;
    margin-right: -32px;
    padding: 46px 0 20px;
    background: url(images/panel-ranking.webp) center top / 100% 100% no-repeat;
}

#right {
    z-index: 3;
    width: 272px;
    margin-left: -32px;
}

#login-panel {
    position: relative;
    z-index: 2;
    width: 272px;
    min-height: 276px;
    padding: 46px 0 19px;
    background: url(images/panel-login.webp) center top / 100% 100% no-repeat;
}

#login-panel::after {
    content: "";
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: -21px;
    width: 254px;
    height: 31px;
    transform: translateX(-50%);
    pointer-events: none;
    background: url(images/ornament-login-social.webp) center / 100% 100% no-repeat;
}

#social-panel {
    position: relative;
    z-index: 1;
    width: 256px;
    height: 180px;
    margin: 11px auto 0;
    padding: 8px 0 0 7px;
    box-sizing: border-box;
    background: url(images/panel-social.webp) center top no-repeat;
}

.panel-header {
    position: relative;
    height: 19px;
    line-height: 17px;
    text-align: center;
}

.panel-header span,
.button span,
button span,
.ranking-button span,
.social-button span {
    color: transparent;
    background: linear-gradient(#fff5c6, #e8c177 50%, #a16d30);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    text-transform: uppercase;
    text-shadow: none;
    filter: drop-shadow(0 0 2px #000) drop-shadow(0 1px 2px #000);
}

.panel-header span {
    font-size: 1rem;
}

#ranking-buttons {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 20px 0 6px;
}

.ranking-button {
    display: block;
    width: 104px;
    height: 29px;
    line-height: 27px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    background: url(images/ranking-button.webp) center / 100% 100% no-repeat;
    transition: filter 140ms;
}

.ranking-button:hover,
.ranking-button.active {
    filter: brightness(1.18);
}

.ranking-button span {
    font-size: 0.86rem;
}

#ranking-wrapper {
    height: 285px;
    margin: 0 0 0;
    overflow: hidden;
}

#ranking-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ranking-row {
    position: relative;
    display: flex;
    align-items: center;
    width: 244px;
    height: 34px;
    margin: 0 0 -6px;
    padding: 0 18px 1px 24px;
    box-sizing: border-box;
    background: url(images/ranking-row.webp) center / 100% 100% no-repeat;
    color: #e1be83;
    line-height: 32px;
    text-shadow: 0 0 3px #000, 0 0 4px #000;
}

.ranking-row::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 105px;
    width: 40px;
    height: 20px;
    background: url(images/flags.webp) 0 0 no-repeat;
    pointer-events: none;
}

.ranking-row-1::before {
    background-position: 0 -20px;
}

.ranking-row-2::before {
    background-position: 0 -40px;
}

.ranking-row-3::before {
    background-position: 0 0;
}

.ranking-name {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 112px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-name a {
    color: #d2b47f;
}

.ranking-value {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    margin-left: auto;
    color: #f2cc88;
}

.button,
button {
    position: relative;
    display: inline-block;
    height: 29px;
    min-width: 128px;
    padding: 0 15px 2px;
    border: none;
    box-sizing: border-box;
    background: url(images/button-small.webp) center / 100% 100% no-repeat;
    color: #fff;
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 27px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: filter 140ms;
}

.button:hover,
button:hover {
    filter: brightness(1.2);
}

#full-ranking {
    display: block;
    width: 128px;
    margin: 17px auto 0;
}

#login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

#login-form.user-login {
    padding-top: 20px;
}

#login-form.user-panel {
    padding: 12px 0 0;
}

#login-form .form-control {
    width: 190px;
    height: 34px;
    margin: 0 0 2px;
    padding: 0 18px 2px;
    border: none;
    box-sizing: border-box;
    outline: none;
    color: #d9bc82;
    background: url(images/input.webp) center / 100% 100% no-repeat;
    font-family: inherit;
    font-size: 1rem;
    text-shadow: 0 0 3px #000;
}

#login-form .form-control::placeholder {
    color: #705b43;
    opacity: 1;
}

#session-button {
    width: 154px;
    min-width: 154px;
    height: 35px;
    margin: 18px 0 0;
    padding: 0 0 2px;
    line-height: 32px;
    background-image: url(images/button-login.webp);
}

.form-links {
    display: flex;
    justify-content: center;
    margin: 11px 0 0;
    font-size: 0.92rem;
}

.form-links a::before,
.form-links a::after {
    content: "";
    display: inline-block;
    width: 15px;
    height: 16px;
    margin: 0 8px -4px;
    background: url(images/bull.webp) center no-repeat;
}

.user-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.user-buttons .button {
    width: 190px;
}

.highlight {
    color: #ffe19a;
    -webkit-text-fill-color: #ffe19a;
}

.social-button {
    display: block;
    width: 242px;
    height: 53px;
    margin: 0 0 2px;
    box-sizing: border-box;
    padding: 17px 0 0 83px;
    transition: filter 140ms;
}

.social-button:hover {
    filter: brightness(1.18);
}

.social-button-discord {
    background: url(images/social-discord.webp) center / 100% 100% no-repeat;
}

.social-button-facebook {
    background: url(images/social-facebook.webp) center / 100% 100% no-repeat;
}

.social-button-presentation {
    background: url(images/social-presentation.webp) center / 100% 100% no-repeat;
}

.social-button span {
    font-size: 1.02rem;
}

#content-wrapper {
    position: relative;
    z-index: 2;
    width: 596px;
    min-height: 846px;
    margin-top: 19px;
    padding: 94px 72px 96px;
    box-sizing: border-box;
}

#content-wrapper::before {
    display: none;
}

#content-wrapper::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: var(--columns-start);
    left: 50%;
    bottom: -22px;
    width: 1027px;
    transform: translateX(-50%);
    pointer-events: none;
    background:
        url(images/content-columns-top.webp) center top no-repeat,
        url(images/content-columns-bottom.webp) center bottom no-repeat,
        url(images/content-columns-repeat.webp) center 145px repeat-y;
}

#content-bg,
#content-bg-top,
#content-bg-repeat,
#content-bg-bottom {
    position: absolute;
    left: 0;
    width: 596px;
    pointer-events: none;
}

#content-bg {
    top: 0;
    bottom: 0;
    z-index: 1;
}

#content-bg-top {
    top: 0;
    height: 210px;
    background: url(images/content-top.webp) center top no-repeat;
}

#content-bg-repeat {
    top: 210px;
    bottom: 200px;
    background: url(images/content-repeat.webp) center top repeat-y;
}

#content-bg-bottom {
    bottom: 0;
    height: 200px;
    background: url(images/content-bottom.webp) center bottom no-repeat;
}

#content {
    position: relative;
    z-index: 2;
    min-height: 656px;
    color: #c6a676;
    line-height: 1.65;
    text-align: left;
    text-shadow: 0 0 4px #000, 0 0 4px #000;
}

input[type="password"],
input[type="text"],
input[type="email"],
select {
    min-width: 80px;
    height: 34px;
    padding: 0 17px 2px;
    border: 1px solid #50351d;
    border-radius: 2px;
    box-sizing: border-box;
    outline: none;
    color: #d8ba82;
    background: rgba(13, 7, 4, 0.82);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.75), 0 0 3px #000;
    font-family: inherit;
}

select option {
    color: #d8ba82;
    background: #0b0503;
}

textarea {
    min-width: 80px;
    padding: 8px 10px;
    border: 1px solid #50351d;
    border-radius: 2px;
    box-sizing: border-box;
    color: #d8ba82;
    background: rgba(13, 7, 4, 0.82);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.75), 0 0 3px #000;
    font-family: inherit;
}

#page::after {
    content: "";
    display: block;
    height: 160px;
}

@media (max-width: 1140px) {
    #page {
        background: url(images/bg.webp) center top / auto 1180px no-repeat, #080302;
    }

    #container {
        width: 100%;
        margin-top: -92px;
    }

    #roof {
        display: none;
    }

    #main {
        width: 100%;
        max-width: 960px;
        flex-wrap: wrap;
        gap: 18px;
        padding: 98px 16px 0;
        margin: 0 auto;
    }

    #left,
    #right {
        margin: 0;
    }

    #content-wrapper {
        order: 1;
        margin: 0 auto;
    }

    #content-wrapper::before {
        content: "";
        display: block;
        position: absolute;
        z-index: 3;
        top: -114px;
        left: 50%;
        width: min(620px, calc(100vw + 220px));
        height: 114px;
        transform: translateX(-50%);
        pointer-events: none;
        background: url(images/roof.webp) center top / contain no-repeat;
    }

    #content-wrapper::after {
        width: min(1027px, calc(100vw + 520px));
        top: 430px;
        bottom: -18px;
        background-size: 100% auto, 100% auto, 100% auto;
    }

    #left {
        order: 2;
    }

    #right {
        order: 3;
    }
}

@media (max-width: 720px) {
    #top-nav {
        height: auto;
        min-height: 92px;
        padding: 10px 0;
        box-sizing: border-box;
        background-size: auto 100%;
    }

    .nav-inner {
        flex-wrap: wrap;
        gap: 10px 24px;
        height: auto;
        min-height: 72px;
        padding: 7px 10px;
    }

    .nav-inner a {
        font-size: 1rem;
    }

    #hero {
        height: 410px;
    }

    #hero::after {
        top: 78px;
        left: calc(50% + 8px);
        width: 380px;
        height: 402px;
    }

    #logo {
        left: 50%;
        top: 110px;
        width: 320px;
        height: 96px;
        transform: translateX(-50%);
    }

    #container {
        margin-top: -72px;
    }

    #main {
        gap: 14px;
        padding: 78px 10px 0;
    }

    #content-wrapper {
        width: min(596px, calc(100vw - 20px));
        min-height: 560px;
        padding: 82px 34px 84px;
    }

    #content-wrapper::after {
        top: 330px;
    }

    #content-bg,
    #content-bg-top,
    #content-bg-repeat,
    #content-bg-bottom {
        width: 100%;
        background-size: 100% auto;
    }

    #content-bg-repeat {
        background-size: 100% auto;
    }

    #content {
        min-height: 394px;
    }
}

@media (max-width: 420px) {
    .nav-inner {
        gap: 8px 18px;
    }

    .nav-inner a {
        font-size: 0.92rem;
    }

    #hero {
        height: 350px;
    }

    #hero::after {
        top: 72px;
        left: calc(50% + 18px);
        width: 300px;
        height: 318px;
    }

    #container {
        margin-top: -54px;
    }

    #main {
        padding-top: 62px;
    }

    #content-wrapper {
        padding: 72px 24px 74px;
    }

    #content-wrapper::after {
        top: 300px;
    }
}
