@font-face {
    font-family: 'Fixel Text Black';
    src: url('../fonts/FixelText20240404-BlackItalic.woff2') format('woff2'),
        url('../fonts/FixelText20240404-BlackItalic.woff') format('woff');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Fixel Text Regular';
    src: url('../fonts/FixelText-Regular.woff2') format('woff2'),
        url('../fonts/FixelText-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fixel Text Light';
    src: url('../fonts/FixelText-Light.woff2') format('woff2'),
        url('../fonts/FixelText-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NFS font';
    src: url('../fonts/NFSfont.woff2') format('woff2'),
        url('../fonts/NFSfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    background: #222;
}

.track-wrap {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.overlay-top {
    position: absolute;
    top: 0;
    left: 25%;
    z-index: 2;
}

.overlay-bottom {
    position: absolute;
    right: 40px;
    bottom: 40px;
    z-index: 2;
}

.track-logo {
    position: absolute;
    top: 0;
    left: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 5;
}

.track-list {
    position: absolute;
    top: 130px;
    left: 50px;
    width: 100%;
    max-width: 350px;
    background: rgba(217, 217, 217, 0.10);
    border-radius: 20px;
    overflow: hidden;
    z-index: 5;
}

.track-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 30px;
}

.track-heading strong {
    color: #fff;
    font-size: 24px;
    font-style: italic;
    font-family: 'Fixel Text Black';
    line-height: 1;
}

.track-heading span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-family: 'Fixel Text Regular';
    line-height: 1;
}


.track-svg-wrap {
    position: absolute;
    top: 10vh;
    right: 7vw;
    width: 100%;
    max-width: 36vw;
    z-index: 5;
}

.track-svg-wrap svg {
    width: 100%;
    height: auto;
}

.track-list-inner {
    max-height: 260px;
    overflow-x: hidden;
    overflow-y: auto;
    counter-reset: list-counter;
}

.track-list-item {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 12px 22px 12px 68px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    counter-increment: list-counter;
}

.track-list-item:before {
    content: counter(list-counter);
    position: absolute;
    top: 8px;
    left: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 32px;
    color: #111;
    background: url('../img/num-bg.svg') center no-repeat;
    font-size: 18px;
    font-style: italic;
    font-family: 'Fixel Text Black';
}

.track-list-item:nth-child(1):before,
.track-list-item:nth-child(2):before,
.track-list-item:nth-child(3):before {
    color: #FFFFFF;
    background: url('../img/first-num-bg.svg') center no-repeat;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
}

.track-list-item:last-child {
    border-bottom: 0;
}

.track-list-item strong {
    font-size: 18px;
    font-family: 'Fixel Text Regular';
    text-transform: capitalize;
}

.track-list-item span {
    font-size: 18px;
    font-style: italic;
    font-family: 'Fixel Text Black';
}

.donor-marker:hover {
    fill: #166FFF;
    cursor: pointer;
}


.donor-avatar {
    border-radius: 50%;
}

.track-stats {
    position: absolute;
    left: 50px;
    bottom: 50px;
    z-index: 5;
}

.track-stats--players,
.track-stats--amount {
    color: #fff;
    font-size: 70px;
    font-family: 'NFS font';
    letter-spacing: -0.01em;
    line-height: 1;
}

.track-stats--label {
    color: #fff;
    font-size: 18px;
    font-family: 'Fixel Text Light';
}

.track-stats--line {
    width: 100%;
    max-width: 350px;
    height: 1px;
    margin: 29px 0 16px;
    background: rgba(255, 255, 255, 0.5);
}


.track-timer-wrap {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    padding-top: 65px;
    background: url('../img/timer-bg.jpg') center no-repeat;
    background-size: cover;
    z-index: 25;
}

.track-timer-wrap.hidden {
    display: none !important;
}

.track-timer--logo {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 5;
}

.track-timer--start {
    margin-top: 95px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 50px;
    font-family: 'NFS font';
    text-align: center;
    letter-spacing: -0.01em;
}

.track-timer--time {
    color: #fff;
    font-size: 170px;
    font-family: 'NFS font';
    text-align: center;
    letter-spacing: -0.01em;
}

.spacer {
    margin-left: 10px;
    margin-right: -30px;
}

.track-timer--time {
    display: flex;
    justify-content: center;
}

.track-timer--time-space {
    width: 21vw;
}

.track-timer--btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.track-timer--btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    color: #111;
    background: #FFFFFF;
    box-shadow: 0px 2px 0px #763503;
    border-radius: 75px;
    font-size: 20px;
    font-style: italic;
    font-family: 'Fixel Text Black';
    text-transform: uppercase;
    text-decoration: none;
    transition: all 200ms ease-out;
}

.track-timer--btn a:hover {
    color: #fff;
    background: #111;
}

.track-mobile-btns {
    display: none;
    position: absolute;
    top: 41px;
    right: 20px;
}

.track-mobile-btns button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 150px;
    height: 32px;
    color: #fff;
    background: url('../img/top-bg.svg') center no-repeat;
    border: 0;
    border-radius: 0;
    font-size: 24px;
    font-style: italic;
    font-family: 'Fixel Text Black';
    text-transform: uppercase;
    z-index: 8;
}

.track-mobile-btns button.close-mobile-table {
    display: none;
}

@media (max-width: 767px) {
    body {
        overflow: hidden;
    }

    .track-timer--start {
        font-size: 28px;
    }

    .track-timer--time {
        font-size: 38px;
    }

    .spacer {
        margin-left: 1px;
        margin-right: -7px;
    }

    .track-timer-wrap {
        background-position: 80% center;
    }


    .track-stats--players,
    .track-stats--amount {
        margin-bottom: 8px;
        font-size: 40px;
    }

    .track-stats--label {
        font-size: 14px;
    }

    .track-stats--line {
        margin: 12px 0 16px;
    }

    .track-stats {
        left: 36px;
        bottom: 100px;
    }

    .track-logo {
        top: 30px;
        left: 36px;
        flex-direction: column;
        gap: 0;
    }

    .track-logo img:nth-child(2) {
        width: 160px;
        margin: -20px 0 0 -32px;
    }

    .track-list {
        display: none;
        top: 140px;
        left: 36px;
        right: 36px;
        width: calc(100% - 72px);
        max-width: none;
        background: rgba(50, 50, 50, 0.9);
        backdrop-filter: blur(10px);
        z-index: 10;
    }

    .track-svg-wrap {
        top: 140px;
        left: 0;
        right: 0;
        margin: 0 auto;
        max-width: 80%;
    }

    .track-mobile-btns {
        display: flex;
    }

    .track-list-inner {
        max-height: 62vh;
    }
}