/*
=========================================================
BeamNG Leaderboards
Modern Racing UI
=========================================================
*/

/*=========================================================
Theme
=========================================================*/

:root {

    --background: #111315;
    --background-light: #181b1f;

    --panel: #1f2329;
    --panel-hover: #262b33;

    --border: rgba(255, 255, 255, .08);

    --text: #f5f5f5;
    --text-muted: #9ea7b3;

    --accent: #ff9800;
    --accent-light: #ffb74d;

    --gold: #ffd54f;
    --silver: #d8d8d8;
    --bronze: #cd7f32;

    --success: #47d16c;
    --danger: #ff5252;

    --shadow:
        0 15px 40px rgba(0, 0, 0, .35);

    --radius: 14px;

    --transition: .25s ease;

    --sidebar-width: 320px;

}

/*=========================================================
Reset
=========================================================*/

* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

html {

    scroll-behavior: smooth;

}

body {

    font-family:
        helvetica neue,
        Inter,
        Segoe UI,
        Roboto,
        Arial,
        sans-serif;
    font-size: 18px;
    background: var(--background);

    color: var(--text);

    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #ffc673;
}

a:hover {
    color: #ff9801;
}

h1 {
    background: -webkit-linear-gradient(-89deg, #ffffff, #f2cfcf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: Impact, Anton;
}

h2 {
    background: -webkit-linear-gradient(-89deg, #ffffff, #f2cfcf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    font-weight: 1000;
    font-family: Impact, Anton;
}

@media (max-width:700px) {
    h2 {
        font-size: 20px;
    }
}

.iconText {
    height: 24px;
    margin-bottom: -5px;
}

/*=========================================================
Buttons
=========================================================*/

button {
    display: block;
    width: fit-content;
    padding: 3px 20px 0px;
    margin: 25px 5px;
    height: 40px;
    background: -webkit-linear-gradient(253deg, rgba(235, 252, 255, 0.54), rgba(233, 233, 233, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    border-radius: 5px;
    line-height: 2;
    text-decoration: none;
    font-size: 16px;
    color: rgb(255, 255, 255);
    text-shadow: rgba(0, 0, 0, 0.89) 0px 0px 15px;
    box-shadow: rgba(0, 18, 18, 0.56) 0px 5px 15px;
    justify-content: center;
    display: flex;
    cursor: pointer;
}

button.center {
    align-items: baseline;
}

button.darkButton {
    background: -webkit-linear-gradient(253deg, rgba(53, 60, 61, 0.83), rgba(64, 64, 64, 0.83));
    text-shadow: rgba(0, 0, 0, 0.89) 0px 0px 15px;
}

.buttonJustText {
    padding: 0px;
    margin: 0px auto 0px auto;
    height: auto;
    background: none;
    border: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    font-size: 18px;
    line-height: 1.5;
    border-radius: 0px;
}

.buttonJustText:hover {
    background: none;
    box-shadow: none;
    color: color(srgb 1 0.5946 0.0058);
}

li .buttonJustText {
    margin-left: 0px;
}

.navbar button {
    width: auto;
    padding: 0px;
    margin: 0px;
    height: auto;
    background: none;
    border: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-radius: 0px;
    line-height: 1.5;
    text-decoration: none;
    font-size: 18px;
    color: rgb(255, 255, 255);
    text-shadow: rgba(0, 0, 0, 1) 0px 0px 3px;
    box-shadow: none;
    font-family: Impact, Anton;
}

.navbar button:hover {
    background: none;
    box-shadow: none;
    color: #ffb84d;
}

button:hover {
    background: -webkit-linear-gradient(253deg, rgba(235, 252, 255, 0.81), rgba(233, 233, 233, 0.04));
    box-shadow: rgba(0, 18, 18, 0.56) 0px 1px 15px;
}

button:active {
    background: -webkit-linear-gradient(253deg, rgba(207, 187, 167, 0.81), rgba(0, 0, 0, 0.1));
    box-shadow: rgba(0, 18, 18, 0.56) 0px 0px 5px;
}

.primary-button {
    color: rgb(255, 255, 255);
}

.floatleft {
    margin-left: 0px;
    margin-right: 25px;
    float: left;
    clear: none;
}

.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    float: none;
}

.verticalCenter {
    display: flex;
    justify-content: center;
}

/*=========================================================
App
=========================================================*/

#app {

    min-height: 100vh;

    display: block;

}

.page-layout {
    display: flex;
    /*min-height: calc(100vh - 72px);*/
    min-height: -webkit-fit-content;
}

.page-layout.full-width {

    display: block;
    overflow-x: visible;

}

.page-layout-content {
    flex: 1;
    overflow: auto;
}

#main-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.main-content {

    flex: 1;

    padding: 32px;

    overflow: auto;

}

/*=====================================================
Navigation
=====================================================*/

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 32px;
    justify-content: space-between;
    background: -webkit-linear-gradient(253deg, rgba(235, 252, 255, 0.54), rgba(233, 233, 233, 0.18));
    border: solid 1px rgba(255, 255, 255, 0.30);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    border-radius: 5px;
    font-size: 16px;
    color: #fff;
    text-shadow: 0px 0px 15px rgba(0, 0, 0, 0.89);
    box-shadow: 0 5px 15px rgba(0, 18, 18, 0.56);
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    margin: auto;
}

@media (max-width:1310px) {
    .navbar-inner {
        width: 95%;
    }
}

.navbarInner {
    display: flex;
    position: relative;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    margin: auto;
}

.navbar-logo {

    font-size: 24px;

    font-weight: 700;

}

.navbar-brand {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

.navbar-links {

    display: flex;

    gap: 32px;

}

.navbar-links a {

    color: #ddd;

    cursor: pointer;

    text-decoration: none;

    transition: .2s;

}

.navbar-links a:hover {

    color: white;

}

.navbar-submit {

    padding: 10px 18px;

    border: none;

    border-radius: 8px;

    cursor: pointer;

}

/*
=========================================================
Mobile Navbar
=========================================================
*/

.navbar-menu-button {

    display: none;

    background: none;

    border: none;

    cursor: pointer;

    padding: 8px;

}

.navbar-menu-button img {
    width: 28px;
    height: 28px;
    display: block;
    margin: 0px;
}

/*
=========================================================
Mobile Menu
=========================================================
*/

.mobile-menu {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    transition: right .25s ease;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    background: rgba(50, 50, 50, 0.92);
    border: solid 1px rgba(255, 255, 255, 0.30);
    border-top: solid 1px rgba(255, 255, 255, 0.50);
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.06) inset;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
}

.mobile-menu-header {

    display: flex;

    justify-content: flex-end;

    padding: 16px;

}

.mobile-menu-close {

    background: none;

    border: none;

    cursor: pointer;

    padding: 4px;

}

.mobile-menu-close img {

    width: 28px;

    height: 28px;

}

.mobile-menu-search {

    padding: 0 20px 20px;
    display: none;
}

.mobile-menu-search input {

    width: 100%;

    padding: 12px;

    border-radius: 8px;

    border: none;

    background: rgba(255, 255, 255, .08);

    color: inherit;

    font: inherit;

}

.mobile-menu button[data-page] {

    background: none;

    border: none;

    color: inherit;

    text-align: left;

    padding: 16px 24px;

    font-size: 1rem;

    cursor: pointer;

    transition: background .2s;
    justify-content: flex-start;
}

.mobile-menu button[data-page]:hover {

    background: rgba(255, 255, 255, .06);

}

/*
=========================================================
Overlay
=========================================================
*/

.mobile-overlay {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, .45);
    height: 100vh;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:

        opacity .25s,

        visibility .25s;

    z-index: 1900;

}

body.mobile-menu-open .mobile-overlay,
body.leaderboard-sidebar-open .mobile-overlay {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

}

body.mobile-menu-open .mobile-menu {

    right: 0;

}

body.mobile-menu-open,
body.leaderboard-sidebar-open {

    overflow: hidden;

}

/*
=========================================================
Responsive
=========================================================
*/

@media (max-width:1100px) {

    .navbar {
        justify-content: space-between;
        display: flex;
    }

    .navbar-links {

        display: none;

    }

    .navbar-menu-button {

        display: flex;

        align-items: center;

        justify-content: center;

    }

    .navbar-sidebar-button {

        display: flex;

        align-items: center;

        justify-content: center;

    }

    .navbar-brand {
        display: none;
    }

}

@media (min-width:1100px) {
    .navbar-sidebar-button {

        display: none;
    }
}

.navbar-sidebar-button {

    align-items: center;

    justify-content: center;

    background: none;

    border: none;

    cursor: pointer;

    padding: 8px;

}

.navbar-sidebar-button img {
    width: 28px;
    height: 28px;
    margin: 0px;
}

/*=========================================================
Sidebar
=========================================================*/

#sidebar {

    width: var(--sidebar-width);

    background: var(--background-light);

    border-right: 1px solid var(--border);

    display: flex;

    flex-direction: column;

    overflow: hidden;

}

/*=========================================================
Logo
=========================================================*/

.sidebar-header {

    padding: 28px;

    border-bottom: 1px solid var(--border);

}

.sidebar-header h1 {

    font-size: 30px;

    font-weight: 700;

}

.sidebar-header span {

    color: var(--text-muted);

}


/* Footer */
site-footer {
    width: 100%;
    margin-top: 20px;
}

.site-footer {
    width: 100%;
    background: rgba(255, 255, 255, 0.09);
    background-size: cover;
    border: solid 1px rgba(255, 255, 255, 0.30);
    border-top: solid 1px rgba(255, 255, 255, 0.50);
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.05) inset;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    line-height: 1.5;
}

.sectionWhiteFooter .site-footer {
    color: #3b3c3e;
}


.sectionDarkFooter {
    margin-top: -20px;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0) 80.67%, rgb(0, 0, 0)),
        url('img/beamng1.jpeg');
}


.footer-inner {
    width: 95%;
    max-width: 1100px;
    margin: auto;
    padding: 40px 0px 25px 0px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footerMenu {
    text-align: left;
    margin: auto;
    width: 50%;
    max-width: 400px;
    margin-top: 0px;
}

.footerMenu h2 {
    margin-bottom: 10px;
}

.footerMenu a {
    color: #fff;
}

.footerMenu a:hover {
    color: color(srgb 1 0.5946 0.0058);
}


.footerindex {
    width: -webkit-fill-available;
    margin: auto;
}

.footerindex h2 {
    margin-bottom: 0px;
}

.footerindex a {
    color: #fff;
    ;

}

.footerindex a:hover {
    color: #ff9801;
}



.footer-brand p {
    opacity: 0.8;
    margin-top: 6px;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.85;
}

.sectionWhiteFooter .site-footer a {
    color: #3b3c3e;
}

.sectionWhiteFooter .site-footer a:hover {
    color: #6179a8;
}

.sectionWhiteFooter .site-footer h2 {
    color: #3b3c3e;
    -webkit-text-fill-color: #3b3c3e;
}

.footer-brand h2 {
    margin: 0px;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding: 15px;
    font-size: 14px;
    opacity: 0.6;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

li {
    list-style-type: none;
    margin-left: 0px;
}

/* Mobile */
@media (max-width: 700px) {
    .footer-inner {
        width: 90%;
    }

    .footerindex {
        width: 90%;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footerMenu {
        margin: auto;
    }

    .footer-links {
        display: none;
    }
}

/* Footer End */

/*=========================================================
Track List
=========================================================*/

#track-list {

    flex: 1;

    overflow-y: auto;

    padding: 18px;

}

/*=========================================================
Map Group
=========================================================*/

.map-group {

    margin-bottom: 28px;

}

.map-title {

    font-size: 13px;

    letter-spacing: 2px;

    text-transform: uppercase;

    color: var(--accent);

    margin-bottom: 12px;

    font-weight: 700;

}

/*=========================================================
Track Card
=========================================================*/

.track-card {

    padding: 14px 16px;

    border-radius: 12px;

    background: transparent;

    margin-bottom: 8px;

    cursor: pointer;

    transition: var(--transition);

    border: 1px solid transparent;

}

.track-card:hover {

    background: var(--panel);

    transform: translateX(5px);

}

.track-card.active {

    background: var(--panel);

    border-color: var(--accent);

}

.track-name {

    font-size: 15px;

    font-weight: 600;

}

.track-laps {

    color: var(--text-muted);

    margin-top: 4px;

    font-size: 13px;

}


/*=========================================================
Track Image
=========================================================*/

#hero-image {

    position: absolute;

    inset: 0;

    background-size: cover;

    background-position: center;

    opacity: .25;

}

/*=========================================================
Overlay
=========================================================*/

#hero-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    padding: 40px;

    background:
        linear-gradient(to top,
            rgba(0, 0, 0, .75),
            rgba(0, 0, 0, .15));

}

#track-map {

    color: var(--accent);

    text-transform: uppercase;

    letter-spacing: 2px;

    font-size: 13px;

    margin-bottom: 8px;

}

#track-name {

    font-size: 42px;

    font-weight: 700;

}

#lap-count {

    margin-top: 10px;

    color: var(--text-muted);

}

/*=========================================================
Section Titles
=========================================================*/

.section-title {

    font-size: 20px;

    margin-bottom: 16px;

    font-weight: 700;

}

/*=========================================================
Cards
=========================================================*/

#statistics,
#world-record-card,
#leaderboard-section {

    margin-bottom: 30px;

}

/*=========================================================
Responsive
=========================================================*/

@media (max-width:1000px) {

    #sidebar {

        width: 260px;

    }

}

@media (max-width:800px) {

    #app {

        flex-direction: column;

    }

    #sidebar {

        width: 100%;

        height: 220px;

        border-right: none;

        border-bottom: 1px solid var(--border);

    }

    #main-content {}

    #hero {

        height: 200px;

    }

    #track-name {

        font-size: 30px;

    }

}

/*=========================================================
Part Two
=========================================================*/

/*
=========================================================
Statistics
=========================================================
*/

#statistics {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;

}

.stat-card {
    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 22px;

    transition: var(--transition);

    box-shadow: var(--shadow);

}

.stat-card:hover {

    transform: translateY(-4px);

}

.stat-number {

    font-size: 34px;

    font-weight: 700;

    color: var(--accent);

}

.stat-label {

    margin-top: 8px;

    color: var(--text-muted);

    text-transform: uppercase;

    font-size: 13px;

    letter-spacing: 1px;

}

/*
=========================================================
World Record Card
=========================================================
*/

#world-record-card {

    background: linear-gradient(145deg,
            #2a2615,
            #1f2329);

    border: 1px solid rgba(255, 213, 79, .25);

    border-radius: var(--radius);

    padding: 28px;

    box-shadow: var(--shadow);

}

#world-record-content {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

}

.world-record-driver {

    display: flex;

    align-items: center;

    gap: 18px;

}

.world-record-driver img {

    width: 72px;

    height: 72px;

    border-radius: 50%;

    object-fit: cover;

    border: 3px solid var(--gold);

}

.world-record-name {

    font-size: 22px;

    font-weight: 700;

}

.world-record-car {

    color: var(--text-muted);

    margin-top: 6px;

}

.world-record-time {

    font-size: 42px;

    font-weight: 700;

    color: var(--gold);

    white-space: nowrap;

}

.world-record-badge {

    display: inline-block;

    margin-top: 10px;

    background: rgba(255, 213, 79, .15);

    color: var(--gold);

    border: 1px solid rgba(255, 213, 79, .25);

    border-radius: 999px;

    padding: 6px 14px;

    font-size: 13px;

}

/*
=========================================================
World Record Row
=========================================================
*/

.world-record {

    background:
        linear-gradient(90deg,
            rgba(255, 193, 7, .12),
            transparent);

}

.world-record:hover {

    background:
        linear-gradient(90deg,
            rgba(255, 193, 7, .22),
            rgba(255, 193, 7, .04));

}

/*
=========================================================
Driver Column
=========================================================
*/

.racer {

    display: flex;

    align-items: center;

    gap: 14px;

}

.avatar {

    width: 44px;

    height: 44px;

    border-radius: 50%;

    object-fit: cover;

    background: #2b2b2b;

    border: 2px solid transparent;

}

.world-record .avatar {

    border-color: var(--gold);

}

.racer-name {

    font-weight: 600;

}

/*
=========================================================
Car Column
=========================================================
*/

.car {

    display: flex;

    align-items: center;

    gap: 14px;

}

.car-image {

    width: 70px;

    height: 42px;

    object-fit: contain;

}

.car-name {

    color: var(--text-muted);

}

/*
=========================================================
Lap Time
=========================================================
*/

.lap-time {

    font-family:

        Consolas,

        Monaco,

        monospace;

    font-size: 20px;

    font-weight: 700;

    letter-spacing: 1px;

    white-space: nowrap;

}

/*
=========================================================
Notes
=========================================================
*/

.lap-note {

    color: var(--text-muted);

    font-size: 14px;

}

/*
=========================================================
Medals
=========================================================
*/

.medal {

    font-size: 26px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 40px;

}

/*
=========================================================
Empty State
=========================================================
*/

.empty-state {
    padding: 60px;
    background: -webkit-linear-gradient(280deg, rgba(20, 22, 22, 0.14), rgba(255, 255, 255, 0.07) 31.51%, rgba(0, 0, 0, 0.1) 70.59%, rgba(255, 255, 255, 0.2));
    text-align: center;
    margin-top: 25px;
    border-radius: 15px;
    color: var(--text-muted);
    font-size: 18px;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-width: 1px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.3);
}

/*
=========================================================
Buttons
=========================================================
*/

.button {
    display: block;
    width: fit-content;
    padding: 3px 20px 0px;
    margin: 25px 5px;
    height: 40px;
    background: -webkit-linear-gradient(253deg, rgba(235, 252, 255, 0.54), rgba(233, 233, 233, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    border-radius: 5px;
    line-height: 2;
    text-decoration: none;
    font-size: 16px;
    color: rgb(255, 255, 255);
    text-shadow: rgba(0, 0, 0, 0.89) 0px 0px 15px;
    box-shadow: rgba(0, 18, 18, 0.56) 0px 5px 15px;
    justify-content: center;
    display: flex;
    cursor: pointer;
}

.button.darkButton {
    background: -webkit-linear-gradient(253deg, rgba(53, 60, 61, 0.83), rgba(64, 64, 64, 0.83));
}

.button:hover {
    background: -webkit-linear-gradient(253deg, rgba(235, 252, 255, 0.81), rgba(233, 233, 233, 0.04));
    box-shadow: rgba(0, 18, 18, 0.56) 0px 1px 15px;
    color: rgb(255, 255, 255);
}

.button img {
    height: 20px;
    margin: 7px 8px 0px -8px;
}

button img {
    height: 20px;
    margin: 7px 8px 0px -8px;
}


/*
=========================================================
Responsive
=========================================================
*/

@media(max-width:1200px) {

    #statistics {

        grid-template-columns: repeat(2, 1fr);

    }

}

@media(max-width:900px) {

    #world-record-content {

        flex-direction: column;

        align-items: flex-start;

    }

}

@media(max-width:700px) {

    #statistics {

        grid-template-columns: 1fr;

    }

    #leaderboard th:nth-child(5),
    #leaderboard td:nth-child(5) {

        display: none;

    }

}

/*
=========================================================
Loading Skeleton
=========================================================
*/

.loading-row td {

    padding: 18px;

}

.loading-bar {

    width: 100%;
    height: 18px;

    border-radius: 8px;

    background: linear-gradient(90deg,
            #25292f 25%,
            #313741 50%,
            #25292f 75%);

    background-size: 400% 100%;

    animation: skeletonLoading 1.4s ease infinite;

}

@keyframes skeletonLoading {

    0% {

        background-position: 100% 0;

    }

    100% {

        background-position: -100% 0;

    }

}

/*
=========================================================
Toast Notifications
=========================================================
*/

.toast {

    position: fixed;

    right: 30px;
    bottom: 30px;

    padding: 16px 22px;

    border-radius: 12px;

    background: var(--panel);

    color: var(--text);

    border: 1px solid var(--border);

    box-shadow: var(--shadow);

    transform: translateY(30px);

    opacity: 0;

    transition: .35s;

    z-index: 9999;

}

.toast.show {

    transform: translateY(0);

    opacity: 1;

}

/*
=========================================================
Animations
=========================================================
*/

.fade-in {

    animation: fadeIn .35s ease;

}

@keyframes fadeIn {

    from {

        opacity: 0;

    }

    to {

        opacity: 1;

    }

}

.slide-up {

    animation: slideUp .35s ease;

}

@keyframes slideUp {

    from {

        opacity: 0;

        transform: translateY(20px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}

.pop {

    animation: pop .3s ease;

}

@keyframes pop {

    0% {

        transform: scale(.95);

    }

    60% {

        transform: scale(1.03);

    }

    100% {

        transform: scale(1);

    }

}

/*
=========================================================
World Record Pulse
=========================================================
*/

.world-record {

    position: relative;

    overflow: hidden;

}

.world-record::after {

    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(90deg,

            transparent,

            rgba(255, 255, 255, .08),

            transparent);

    transform: translateX(-100%);

    animation: recordShine 4s infinite;

}

@keyframes recordShine {

    0% {

        transform: translateX(-100%);

    }

    30% {

        transform: translateX(150%);

    }

    100% {

        transform: translateX(150%);

    }

}

/*
=========================================================
Hero Animation
=========================================================
*/

#hero {

    animation: heroAppear .6s ease;

}

@keyframes heroAppear {

    from {

        opacity: 0;

        transform: translateY(-20px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}

/*
=========================================================
Section Animation
=========================================================
*/

#statistics,
#world-record-card,
#leaderboard-section {

    animation: fadeIn .45s ease;

}

.maps-grid {

    display: grid;

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

    gap: 24px;

    max-width: 1600px;

    margin: 0 auto;
    margin-top: 50px;
}

@media (max-width:1650px) {
    .maps-grid {
        grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
        padding: 0px 25px 0px 25px;
    }
}

@media (max-width:700px) {
    .maps-grid {
        grid-template-columns: 1fr;
        padding: 0px 15px 0px 15px;
    }

    .track-map-photo {
        height: 200px;
    }
}

.track-map-card {
    color: rgb(255, 255, 255);
    background: rgba(255, 255, 255, 0.09);
    border-width: 1px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.3);
    border-image: none;
    box-shadow: rgba(255, 255, 255, 0.28) 0px 20px 60px inset;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 0px;
    text-shadow: rgba(255, 255, 255, 0.5) 0px 0px 9px;
    overflow: hidden;
}

.track-map-header {
    display: grid;
    grid-template-columns: 70% 30%;
    box-shadow: 0 7px 100px rgba(255, 255, 255, 0.24) inset;
    background: -webkit-linear-gradient(-89deg, rgb(255, 255, 255), rgb(242, 207, 207));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: Impact, Anton;
    padding: 25px;
    margin-top: -5px;
    align-items: center;
}

@media (max-width:700px) {
    .track-map-header {
        padding: 10px 15px;
        grid-template-columns: 50% 50%;
    }
}

.track-count {
    text-align: right;
}

.track-map-card {

    transition:
        transform .25s,
        box-shadow .25s;

}

.track-map-card:hover {

    transform: translateY(-4px);

    box-shadow: 0 12px 28px rgba(0, 0, 0, .25);

}

.track-map-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
}

.track-list-text {

    display: flex;

    flex-direction: column;

    gap: 3px;

}

.track-info {

    font-size: .82rem;

    color: var(--text-secondary);

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: collapse;
}

.track-list-row {

    display: grid;

    grid-template-columns: 84px 1fr;
    grid-column-gap: 15px;
    align-items: center;
    height: auto;
    width: 100%;
    padding: 0px;
    margin: 0px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-radius: 0px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: -webkit-linear-gradient(253deg, rgba(14, 15, 16, 0.5), rgba(97, 97, 97, 0.3));
    box-shadow: none;
}

.track-list-row:hover {
    background: -webkit-linear-gradient(253deg, rgba(235, 252, 255, 0.54), rgba(233, 233, 233, 0.18));
}

.track-title {
    padding-left: 0px;
    text-align: left;
    background: -webkit-linear-gradient(-89deg, rgb(255, 255, 255), rgb(242, 207, 207));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 21px;
    font-weight: bold;
}

@media (max-width:700px) {
    .track-title {
        font-size: 18px;
    }
}

.track-list-photo {
    object-fit: cover;
    height: 84px;
    width: 84px;
    object-position: center;
    margin: 0px;
}

/*
=========================================================
Table Improvements
=========================================================
*/

#leaderboard tbody tr {

    transition:

        background .25s,

        transform .25s,

        box-shadow .25s;

}

#leaderboard tbody tr:hover {

    transform: translateX(4px);

    box-shadow:

        inset 4px 0 0 var(--accent);

}

.track-info,
.car-info,
.racer-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.racer-name {

    font-weight: 600;

}

.track-thumb {

    width: 96px;

    height: 54px;

    object-fit: cover;

    border-radius: 8px;

}

.car-thumb {

    width: 72px;

    height: 40px;

    object-fit: cover;

    border-radius: 6px;

}

.racer-thumb {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.racer-info .racer-thumb {
    width: 40px;
    min-width: 40px;
    height: 40px;
}

.profile-section .profile-table.leaderboard.carTrackBoard .racer-thumb {
    height: 40px;
    width: 40px;
    min-width: 40px;
}

.track-map,
.car-creator {

    font-size: .82rem;

    color: var(--text-secondary);

}

.track-name,
.car-name {

    font-weight: 600;

}

.table-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.table-link:hover {
    text-decoration: none;
}

.leaderboard .table-link {
    color: inherit;
    text-decoration: none;
}

.leaderboard .table-link:hover {
    color: inherit;
    text-decoration: none;
}

/*
=========================================================
Selection
=========================================================
*/

::selection {

    background: var(--accent);

    color: white;

}

/*
=========================================================
Focus
=========================================================
*/

button:focus,
.track-card:focus {

    outline: 2px solid var(--accent);

    outline-offset: 3px;

}

/*
=========================================================
Utility Classes
=========================================================
*/

.hidden {

    display: none !important;

}

.flex {

    display: flex;

}

.flex-column {

    display: flex;

    flex-direction: column;

}

.center {

    display: flex;

    justify-content: center;

    align-items: center;

}

.text-center {

    text-align: center;

}

.w-100 {

    width: 100%;

}

.mt-10 {

    margin-top: 10px;

}

.mt-20 {

    margin-top: 20px;

}

.mt-30 {

    margin-top: 30px;

}

.mb-20 {

    margin-bottom: 20px;

}

/*
=========================================================
Smooth Images
=========================================================
*/

img {

    user-select: none;

    -webkit-user-drag: none;

}

/*
=========================================================
Responsive Leaderboard
=========================================================
*/

@media(max-width:900px) {

    .avatar {

        width: 36px;
        height: 36px;

    }

    .lap-time {

        font-size: 17px;

    }

    .world-record-time {

        font-size: 34px;

    }

}

@media(max-width:700px) {

    #leaderboard {

        font-size: 14px;

    }

    #leaderboard th,
    #leaderboard td {

        padding: 12px;

    }

    .track-name {

        font-size: 14px;

    }

    .stat-number {

        font-size: 28px;

    }

}

@media(max-width:550px) {

    #leaderboard th:nth-child(3),
    #leaderboard td:nth-child(3) {

        display: none;

    }

}

/*
=========================================================
Reduced Motion Accessibility
=========================================================
*/

@media (prefers-reduced-motion: reduce) {

    * {

        animation: none !important;

        transition: none !important;

        scroll-behavior: auto !important;

    }

}

/* ===========================================
   WORLD RECORD HERO
=========================================== */

.world-record-card {

    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 18px;
    cursor: pointer;
    transition: .25s;
    background: -webkit-linear-gradient(280deg, rgba(20, 22, 22, 0.54), rgba(255, 255, 255, 0.38) 31.51%, rgba(0, 0, 0, 0.18) 70.59%, rgba(255, 255, 255, 0.32));
    border: solid 1px rgba(255, 255, 255, 0.30);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    text-shadow: 0px 0px 15px rgba(0, 0, 0, 0.89);
    box-shadow: 0 5px 15px rgba(0, 18, 18, 0.56);

}

.world-record-card:hover {

    transform: translateY(-6px);

}

.wr-header {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 20px;

}

.wr-icon {

    font-size: 30px;

}

.wr-title {

    font-size: 24px;

    font-weight: 700;

    color: #ffd95c;

    letter-spacing: .05em;

    text-transform: uppercase;

}

.wr-grid {

    display: flex;

    align-items: center;

    gap: 24px;

}

.wr-avatar img {

    width: 110px;

    height: 110px;

    object-fit: cover;

    border-radius: 50%;

    border: 4px solid #ffd95c;

}

.wr-driver {

    font-size: 34px;

    font-weight: 700;

}

.wr-time {

    margin-top: 8px;

    font-size: 52px;

    font-weight: 800;

    color: #53d4ff;

    font-family: monospace;

}

.wr-car {

    margin-top: 10px;

    font-size: 20px;

    color: #cfd4dc;

}

.wr-track {

    margin-top: 4px;

    color: #9ca7b7;

}

.wr-empty {

    color: #888;

}

/* =========================================================
   Leaderboard Table
========================================================= */

#leaderboard {

    width: 100%;

    border-collapse: separate;

    border-spacing: 0 10px;

}

#leaderboard tbody tr {

    background: #1b1b1b;

    transition:
        transform .18s ease,
        background .18s ease,
        box-shadow .18s ease;

}

#leaderboard tbody tr:hover {

    transform: translateY(-2px);

    background: #252525;

    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);

}

#leaderboard td {

    padding: 14px 18px;

    vertical-align: middle;

}

#leaderboard td:first-child {

    border-radius: 10px 0 0 10px;

}

#leaderboard td:last-child {

    border-radius: 0 10px 10px 0;

}

/* Medal */
.medal {

    width: 50px;

    text-align: center;

    font-size: 28px;

    font-weight: bold;

}

.medal.gold {

    color: #ffd700;

}

.medal.silver {

    color: #d7d7d7;

}

.medal.bronze {

    color: #cd7f32;

}

/* Driver Cell */
.driver-cell {

    display: flex;

    align-items: center;

    gap: 15px;

    min-width: 320px;

}

.driver-info {

    display: flex;

    flex-direction: column;

    gap: 3px;

}

.driver-name {

    font-size: 17px;

    font-weight: 700;

    color: white;

}

.driver-car {

    font-size: 13px;

    color: #9a9a9a;

}

/* Driver & Car Layout */
/*
=========================================================
Leaderboard Layout
=========================================================
*/

.lb-driver,
.lb-car {

    min-width: 220px;

    cursor: pointer;

    transition: transform .15s ease;

}

.driver-wrapper,
.car-wrapper {

    display: flex;

    align-items: center;

    gap: 14px;
    transform: scale(1.02);

}

.lb-driver:hover,
.lb-car:hover {

    transform: scale(1.02);

}

.driver-avatar {

    width: 48px;

    height: 48px;

    border-radius: 50%;

    object-fit: cover;

    flex-shrink: 0;

}

.car-thumb {

    width: 120px;

    height: 68px;

    object-fit: cover;

    border-radius: 8px;

    flex-shrink: 0;

    background: #222;

}

.driver-name {

    font-size: 15px;

    font-weight: 600;

}

.car-name {

    font-size: 14px;

    font-weight: 600;

    line-height: 1.3;

}

.lb-time {

    white-space: nowrap;

    font-weight: 700;

    font-size: 18px;

}

.lb-note {

    color: #bbbbbb;

    font-size: 14px;

}

.lb-position {

    width: 70px;

    text-align: center;

    font-size: 24px;

}

/* Table Spacing */
#leaderboard tbody tr {

    transition: .2s;

}

#leaderboard tbody td {

    padding: 7px 16px;

    vertical-align: middle;

}

#leaderboard tbody tr:hover {

    background: rgba(255, 255, 255, .04);

}

/* Responsive Mobile */
@media (max-width:900px) {

    .driver-wrapper,
    .car-wrapper {

        flex-direction: column;

        align-items: flex-start;

    }

    .car-thumb {

        width: 100%;

        max-width: 220px;

        height: auto;

    }

    .driver-avatar {

        width: 60px;

        height: 60px;

    }

    .lb-driver,
    .lb-car {

        min-width: auto;

    }

}

/* Avatar */

.avatar {

    width: 56px;

    height: 56px;

    object-fit: cover;

    border-radius: 50%;

    border: 2px solid #333;

    flex-shrink: 0;

    transition: .2s;

}

#leaderboard tr:hover .avatar {

    border-color: #00d2ff;

}

/* Car Image */
.car-image {

    width: 72px;

    height: 56px;

    object-fit: cover;

    border-radius: 6px;

    background: #222;

}

/* Lap time*/
.lap-time {

    font-size: 22px;

    font-weight: 700;

    letter-spacing: .5px;

    white-space: nowrap;

    color: white;

}

/* World record badge */
.badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 6px 12px;

    border-radius: 999px;

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;

}

.world-record {

    background: linear-gradient(135deg,

            #ffd700,

            #ffb000);

    color: black;

    box-shadow:

        0 0 15px rgba(255, 215, 0, .35);

}

.car-profile-page .car-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 24px;
    max-width: 1300px;
    margin: auto;
    margin-top: 24px;
    margin-bottom: 24px;
    width: 95%;
    overflow-x: scroll;
}

.car-profile-page .car-results-grid {
    width: 100%;
}

@media screen and (max-width:920px) {
    .car-results-grid {
        width: 95%;
    }
}

@media (max-width:1143px) {
    .car-results-grid {
        grid-template-columns: 100%;
        margin-top: -20px;
        gap: 0px;
    }

    .car-results-grid .profile-section {
        margin-top: 0px;
        margin-bottom: 0px;
        width: 100%;
    }
}

.racer-profile-two-column {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: start;
    width: 95%;
    max-width: 1300px;
    margin: auto;

}

@media (max-width: 800px) {

    .racer-profile-two-column {

        grid-template-columns: 1fr;

    }

}

/* Track cards */
.track-card {

    width: 100%;

    background: #202020;

    border: none;

    border-radius: 10px;

    padding: 14px;

    text-align: left;

    cursor: pointer;

    transition: .2s;

    color: white;

}

.track-card:hover {

    background: #2a2a2a;

}

.track-card.active {

    background: #00b6e8;

    color: white;

}

.track-name {

    font-size: 15px;

    font-weight: 700;

}

.track-laps {

    margin-top: 4px;

    font-size: 12px;

    opacity: .7;

}

/* Statistics card */
.stat-card {

    border-radius: 14px;

    padding: 20px;

    text-align: center;

    transition: .2s;

}

.stat-card:hover {

    transform: translateY(-3px);

}

.stat-value {

    font-size: 34px;

    font-weight: 700;

    color: #00d2ff;

}

.stat-title {

    margin-top: 8px;

    color: #999;

    text-transform: uppercase;

    font-size: 12px;

    letter-spacing: 1px;

}

/* Emty state */
.empty {

    padding: 50px;

    text-align: center;

    color: #888;

    font-size: 18px;

}

/* Loading animations */
.loading-row td {

    padding: 18px;

}

.loading-bar {

    width: 100%;

    height: 18px;

    border-radius: 999px;

    background:

        linear-gradient(90deg,

            #222,

            #333,

            #222);

    background-size: 300%;

    animation: loading 1.2s infinite linear;

}

@keyframes loading {

    from {

        background-position: 300%;

    }

    to {

        background-position: -300%;

    }

}

/*
=========================================================
Car Profile
=========================================================
*/

.car-profile {

    max-width: 1200px;

    margin: 40px auto;

    padding: 0 24px;

}

.car-hero-image {
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
    background: #222;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
    display: flex;
    justify-content: center;
    align-items: center;
}

.car-hero-info h1 {

    margin: 0;

    font-size: 2.6rem;

    font-weight: 700;

}

.car-creator {

    margin-top: 8px;

    color: #999;

    font-size: 1rem;

}

.car-description {
    margin: 24px 0;
    font-size: 1.05rem;
    white-space: pre-line;
    max-width: 600px;
    line-height: 1.7;
    white-space: pre-line;
}

@media (max-width:700px) {
    .car-description {
        white-space: collapse;
    }

}

.download-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 14px 30px;

    border-radius: 12px;

    text-decoration: none;

    font-weight: 700;

    color: white;

    background: #1b7cff;

    transition: .2s;

}

.download-button:hover {

    transform: translateY(-2px);

    background: #4092ff;

}

.related-cars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
    max-width: 1300px;
    margin: auto;
}

@media screen and (max-width:920px) {
    .related-cars-grid {
        grid-template-columns: 1fr;
    }
}

/*
=========================================================
Statistics
=========================================================
*/

.car-stats {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
    width: 100%;
    max-width: 1300px;
    margin: 40px auto 40px auto;

}

.racer-hero .car-stats {

    display: grid;

    grid-template-columns: repeat(6, 1fr);

    gap: 18px;
    margin-top: 40px;
    margin-bottom: 40px;

}

.car-stats .racer-score-bars {
    grid-column: 1 / 7;
}

.car-stat {

    background: #1d1d1d;

    border-radius: 14px;

    padding: 22px;

    text-align: center;

}

.car-stat span {

    display: block;

    font-size: 2rem;

    font-weight: 700;

    color: white;

    margin-bottom: 8px;

}

/*
=========================================================
Gallery
=========================================================
*/

.car-gallery {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));

    gap: 16px;

    margin-top: 24px;

}

.car-gallery a {

    display: block;

    overflow: hidden;

    border-radius: 12px;

}

.car-gallery img {

    width: 100%;

    aspect-ratio: 16/9;

    object-fit: cover;

    display: block;

    transition: transform .25s ease;

}

.car-gallery a:hover img {

    transform: scale(1.05);

}



/*
=========================================================
Lap Table
=========================================================
*/

.car-laps {

    width: 100%;

    border-collapse: collapse;

}

.car-laps thead {

    background: #202020;

}

.leaderboard thead {
    background-image: linear-gradient(123deg, rgba(255, 255, 255, 0.19), rgba(255, 255, 255, 0.12)), url("/assets/img/racingflag-wide-middle.png");
    background-repeat: no-repeat;
}

.car-laps th {

    text-align: left;

    padding: 16px;

    font-size: .9rem;

    text-transform: uppercase;

    letter-spacing: .08em;

}

.car-laps td {

    padding: 16px;

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

}

.car-laps tbody tr {

    transition: .15s;

}

.car-laps tbody tr:hover {

    background: rgba(255, 255, 255, .05);

}

/*
=========================================================
Mobile
=========================================================
*/
@media (max-width:1200px) {
    .car-hero {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width:1000px) {
    .car-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .racer-hero .car-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .car-stats .racer-score-bars {
        grid-column: 1 / 4;
    }
}

@media (max-width:500px) {
    .car-profile {
        padding: 0 14px;
    }

    .car-hero-info h1 {
        font-size: 2rem;
    }

    .car-stats {

        grid-template-columns: repeat(2, 1fr);
    }

    .racer-hero .car-stats {

        grid-template-columns: repeat(2, 1fr);
    }

    .car-stats .racer-score-bars {
        grid-column: 1 / 3;
    }
}

/* Light Box */
#lightbox {

    position: fixed;

    inset: 0;

    display: none;

    align-items: center;

    justify-content: center;

    z-index: 9999;

}

#lightbox.open {

    display: flex;

}

.lightbox-backdrop {

    position: absolute;

    inset: 0;

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

}

.lightbox-image {

    max-width: 90vw;

    max-height: 90vh;

    z-index: 2;

    border-radius: 12px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);

}

.lightbox-close,
.lightbox-prev,
.lightbox-next {

    position: absolute;

    z-index: 3;

    border: none;

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

    color: white;

    font-size: 32px;

    cursor: pointer;

    width: 54px;

    height: 54px;

    border-radius: 50%;

}

.lightbox-close {

    top: 30px;

    right: 30px;

}

.lightbox-prev {

    left: 30px;

}

.lightbox-next {

    right: 30px;

}

.image-viewer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
}

.viewer-image {

    max-width: 92vw;
    max-height: 82vh;

    object-fit: contain;

    border-radius: 12px;

    transition: opacity .25s ease,
        transform .25s ease;

    box-shadow: 0 25px 70px rgba(0, 0, 0, .6);

}

.viewer-backdrop {

    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;

    width: 100%;

    height: 100%;

}

.viewer-image {

    max-width: 92vw;

    max-height: 92vh;

    object-fit: contain;

    border-radius: 10px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);

}

.viewer-prev,
.viewer-next {

    width: 56px;

    height: 56px;

    border-radius: 50%;

    border: none;

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

    color: white;

    font-size: 34px;

    cursor: pointer;

    transition: .2s;

}

.viewer-prev:hover,
.viewer-next:hover {

    background: rgba(255, 255, 255, .18);

    transform: translateY(-50%) scale(1.1);

}

.viewer-prev {

    left: 30px;

}

.viewer-next {

    right: 30px;

}

.viewer-close {

    position: absolute;

    top: 20px;

    right: 20px;

    font-size: 34px;

    color: white;

    background: none;

    border: none;

    cursor: pointer;

}

.viewer-counter {

    position: absolute;

    bottom: 20px;

    left: 50%;

    transform: translateX(-50%);

    color: white;

    font-size: 18px;

}

.viewer-thumbs {

    position: absolute;

    bottom: 25px;

    left: 50%;

    transform: translateX(-50%);

    display: flex;

    gap: 10px;

    overflow-x: auto;

    max-width: 90vw;

    padding: 6px;

}

.viewer-thumb {

    width: 90px;

    height: 55px;

    object-fit: cover;

    border-radius: 6px;

    cursor: pointer;

    opacity: .55;

    transition: .2s;

}

.viewer-thumb:hover {

    opacity: 1;

    transform: scale(1.05);

}

.viewer-thumb.active {

    opacity: 1;

    outline: 3px solid #ff9800;

}

.viewer-image {

    opacity: 1;

    transition:
        opacity .25s ease,
        transform .25s ease;

}

.viewer-image.loading {

    opacity: .2;

    filter: blur(8px);

}

.car-card {

    transition:
        transform .25s ease,
        box-shadow .25s ease;

}

.car-card:hover {

    transform:
        translateY(-8px);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, .35);

}

.view-car-button {

    display: inline-block;

    padding: 8px 14px;

    border-radius: 999px;

    background: var(--accent);

    color: white;

    font-weight: 600;

}

.cars-grid {
    display: grid;
    align-items: start;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
    max-width: 1300px;
}

.carProfileBox .profile-section .cars-grid{
    display: none;
}

@media (max-width:700px) {
    .cars-grid {
        grid-template-columns: auto auto;
        gap: 10px;
    }
}

@media (max-width:400px) {
    .cars-grid {
        gap: 10px;
    }
}

.cars-page .cars-grid {
    max-width: 2600px;
}

.cars-page .page-header {
    margin-bottom: 20px;
}

.profile-section .cars-grid {
    margin: auto;
    margin-top: 30px;
    margin-bottom: 30px;
    max-width: 1300px;
}

.profile-section {
    margin: auto;
    margin-top: 30px;
    margin-bottom: 30px;
    width: 95%;
    max-width: 1300px;
}

@media screen and (max-width:920px) {
    .profile-section {
        width: 95%;
    }
}

.profile-section h2 {
    max-width: 1300px;
}

.car-profile-page .profile-section {
    display: table;
    width: 100%;
    max-width: 1300px;
    margin: 20px auto 0px auto;
}

.related-cars-grid .profile-section {
    max-width: 391px;
    display: block;
    width: 100%;
}

@media screen and (max-width:1760px) {
    .related-cars-grid .profile-section {
        width: 22vw;
    }
}

@media screen and (max-width:1440px) {
    .car-profile-page .profile-section {
        margin: 0px auto 0px auto;
    }

    .related-cars-grid .profile-section {
        width: 21vw;
    }
}

@media screen and (max-width:1300px) {
    .related-cars-grid .profile-section {
        width: 21vw;
    }
}

@media screen and (max-width:1250px) {
    .related-cars-grid .profile-section {
        width: 19vw;
    }
}

@media screen and (max-width:1100px) {
    .related-cars-grid .profile-section {
        width: 27vw;
    }
}

@media screen and (max-width:920px) {
    .related-cars-grid .profile-section {
        width: 100%;
        max-width: 80vw;
        margin: 0px auto 0px auto;
    }
}

@media screen and (max-width:550px) {
    .related-cars-grid .profile-section {
        width: 100%;
        max-width: 75vw;
        margin: 0px auto 0px auto;
    }
}

@media screen and (max-width:450px) {
    .related-cars-grid .profile-section {
        width: 100%;
        max-width: 100%;
        margin: 0px auto 0px auto;
    }
}

.racer-racing {
    max-width: 1300px;
    margin: auto;
    margin-top: 40px;
    margin-bottom: 30px;
}

@media screen and (max-width:1300px) {
    .racer-racing {
        width: 95%;
    }
}

.racer-racing-title {
    margin-bottom: 15px;
}

/*
=========================================================
Hero
=========================================================
*/

.car-profile-page {
    max-width: 3000px;
}

.carProfileBox {
    margin: auto;
    margin-top: 30px;
    padding: 30px;
    background: rgba(31, 35, 41, 0.82);
    border: 1px solid var(--border);
    border-top: solid 1px rgba(255, 255, 255, 0.34);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.06) inset;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    z-index: 1;
}

@media (max-width:700px) {
    .carProfileBox {
        padding: 15px;
    }
}

.carProfileBox.carProfileBoxtrans {
    background: rgba(31, 35, 41, 0.42);
}

.carProfileBox.carProfileBoxMarginBottom {
    margin-bottom: 30px;
}

.hero {
    margin-top: -65px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
    position: relative;
    height: 100vh;
    min-height: 400px;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 30px;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.53) 25.63%, rgba(0, 0, 0, 0.26) 59.24%, rgba(0, 0, 0, 0)),
        /* Layer A (Dark Overlay) */
        linear-gradient(rgba(0, 0, 0, 0) 76.05%, rgb(0, 0, 0)),
        /* Layer B (Light Stripes) */
        url(/assets/img/racingclasses.jpg);
    background-size: cover;
    background-position: center;
}

.hero-background {
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {

    position: relative;
    min-height: 400px;

    z-index: 2;

    width: 100%;
    max-width: 1300px;

    padding: 0px;

    color: white;

}

@media (max-width:1340px) {
    .hero-content {
        width: 95%;
    }
}

.hero-statistics {
    margin-bottom: -20vh;
    bottom: 0;
    position: absolute;
    width: 50%;
}

@media (max-width:900px) {
    .hero-statistics {
        display: none;
    }
}

.hero-tag {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(10px);
    margin-top: 30px;
}

@media (max-width:900px) {
    .hero-tag {
        margin-top: 50px;
    }
}

.hero h1 {

    font-size: 4rem;

    line-height: 1.05;

    margin-bottom: 20px;

}

.hero p {

    font-size: 1.2rem;

    opacity: .9;

    margin-bottom: 36px;

}

.hero-buttons {
    display: flex;
    gap: 16px;
}


.racer-profile-page .back-button {
    background: -webkit-linear-gradient(253deg, rgba(90, 90, 90, 0.54), rgba(0, 0, 0, 0.18));
    text-shadow: rgba(0, 0, 0, 0.89) 0px 0px 15px;
    ;
}

@media (max-width:900px) {
    .hero-buttons {
        display: block;
    }

    .stackedButtonsResponsive {
        margin: 15px 5px;
    }
}


/*
=========================================================
Homepage Statistics
=========================================================
*/

.home-statistics {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;

    margin-bottom: 60px;

}

.car-profile-page .stat-card {
    background: -webkit-linear-gradient(280deg, rgba(164, 169, 169, 0.49), rgba(255, 255, 255, 0.14) 19.33%, rgba(225, 225, 225, 0.07) 67.23%, rgba(216, 216, 216, 0.2));
    margin-top: 10px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.car-profile-page .stat-card:hover {
    background: -webkit-linear-gradient(280deg, rgba(192, 197, 197, 0.49), rgba(255, 255, 255, 0.38) 19.33%, rgba(233, 233, 233, 0.35) 66.39%, rgba(232, 232, 232, 0.32));
}

.stat-card {

    padding: 28px;
    text-align: center;
    border-radius: 18px;
    background: -webkit-linear-gradient(280deg, rgba(20, 22, 22, 0.54), rgba(255, 255, 255, 0.38) 31.51%, rgba(0, 0, 0, 0.18) 70.59%, rgba(255, 255, 255, 0.32));
    border: solid 1px rgba(255, 255, 255, 0.30);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    text-shadow: 0px 0px 15px rgba(0, 0, 0, 0.89);
    box-shadow: 0 5px 15px rgba(0, 18, 18, 0.56);

}

.stat-card:hover {
    background: -webkit-linear-gradient(280deg, rgba(100, 101, 101, 0.54), rgba(255, 255, 255, 0.38) 31.51%, rgba(127, 127, 127, 0.18) 70.59%, rgba(255, 255, 255, 0.32));
}

.stat-card span {

    display: block;

    font-size: 2.2rem;

    font-weight: 700;

}

.stat-card p {

    margin-top: 8px;
    margin-bottom: 0px;
    opacity: .75;

}

/*
=========================================================
Featured Car
=========================================================
*/

.featured-car {

    display: grid;

    grid-template-columns: 60% 1fr;

    gap: 40px;
    max-width: 1300px;
    width: 95%;
    margin: auto;
    margin-bottom: 60px;

    align-items: center;
    z-index: 2;

}

.featured-image {
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: block;
    width: 100%;
    height: 500px;
    max-width: 1300px;
    overflow: hidden;
    border-radius: 15px;
}

.featured-image img {
    width: 130%;
    height: 130%;
    border-radius: 18px;
    margin: -70px 0px 0px -70px;
    object-fit: cover;
}

.featured-label {

    display: inline-block;

    margin-bottom: 14px;

    font-size: .85rem;

    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;

    color: #ffb400;

}

.featured-content h2 {

    font-size: 2.5rem;

    margin-bottom: 10px;

}

.featured-creator {

    opacity: .7;

    margin-bottom: 24px;

}

.featured-stats {

    display: flex;

    gap: 30px;
    row-gap: 7px;
    margin: 30px 0;

    flex-wrap: wrap;

}

@media (max-width:900px) {
    .featured-car {
        grid-template-columns: auto;
        gap: 15px;
    }

    .featured-image {
        height: 300px;
    }
}

/*
=========================================================
World Record Cards
=========================================================
*/

.latest-records {
    max-width: 1300px;
    width: 95%;
    margin: auto;
    padding-top: 50px;
    padding-bottom: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.latest-records h2 {
    max-width: 1300px;
    margin-bottom: 50px;
}

.records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1300px;
    margin: auto;

}

.record-image img {

    width: 100%;

    height: 250px;

    object-fit: cover;

}

.record-body {

    padding: 20px;

}

.record-driver {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 14px;

}

.record-avatar {

    width: 42px;

    height: 42px;

    border-radius: 50%;

    object-fit: cover;

}

.record-time {

    font-size: 1.7rem;

    font-weight: bold;

    margin-bottom: 10px;

}

/*
=========================================================
Latest Cars
=========================================================
*/

.latest-cars {
    margin-top: 60px;
    max-width: 1300px;
    width: 95%;
    margin: auto;
    margin-bottom: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.section-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 24px;

}

.car-card {
    overflow: hidden;

    cursor: pointer;

    transition: .25s;

    border-radius: 18px;
    cursor: pointer;
    transition: .25s;
    background: -webkit-linear-gradient(280deg, rgba(20, 22, 22, 0.54), rgba(255, 255, 255, 0.38) 31.51%, rgba(0, 0, 0, 0.18) 70.59%, rgba(255, 255, 255, 0.32));
    border: solid 1px rgba(255, 255, 255, 0.30);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    text-shadow: 0px 0px 15px rgba(0, 0, 0, 0.89);
    box-shadow: 0 5px 15px rgba(0, 18, 18, 0.56);


}

.car-card:hover {

    transform: translateY(-5px);

}

.car-card-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.car-card-body {
    padding: 10px;
    font-size: 14px;
}

.car-card-body h3 {
    font-size: 18px;
}

.car-card-creator {
    opacity: .7;
    margin-bottom: 14px;
    font-size: 12px;
}

@media (max-width:700px) {
    .car-card-image {
        height: 120px;
    }

    .car-card-body h3 {
        font-size: 14px;
    }

    .car-card-body {
        font-size: 12px;
    }

    .car-card-creator {
        font-size: 12px;
    }
}

.car-card-stats {

    display: flex;

    justify-content: space-between;

    margin-top: 18px;

}

.car-hero {

    position: relative;

    overflow: hidden;

    border-radius: 20px;

    min-height: 480px;

    margin-bottom: 40px;

}

.car-hero-image {
    position: absolute;
    inset: 0;
}

.car-hero-image img {
    justify-content: space-between;
    align-items: center;
    display: flex;
    object-fit: cover;
}

@media (max-width:900px) {
    .car-hero-image img {
        object-fit: contain;
    }

    .car-hero-image {
        align-items: stretch;
    }
}

@media (min-width:1900px) {
    .car-hero-image img {
        width: 100%;
    }

}

@media (min-width:2950px) {

    .car-hero {
        min-height: 980px;
    }
}



.car-hero-gradient {
    position: absolute;

    inset: 0;

    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.45) 18.49%, rgba(0, 0, 0, 0.1) 33.61%), linear-gradient(to top, rgb(0, 0, 0) 11.34%, rgba(0, 0, 0, 0.45) 18.49%, rgba(0, 0, 0, 0) 42.02%);
}

.car-hero-content {

    position: relative;

    z-index: 2;

    padding: 80px;

    color: white;

}

@media (max-width:700px) {
    .car-hero-content {
        padding: 15px;
    }

    .car-hero-gradient {
        background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.45) 18.49%, rgba(0, 0, 0, 0.1) 76.47%), linear-gradient(to top, rgb(0, 0, 0) 11.34%, rgba(0, 0, 0, 0.45) 18.49%, rgba(0, 0, 0, 0) 42.02%);
    }
}

.car-hero h1 {

    font-size: 3rem;

    margin: 12px 0;

}

.car-class {

    color: #ffb84d;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 2px;

}

.car-author {

    opacity: .8;

    margin-bottom: 20px;

}

.car-gallery img {

    width: 100%;

    border-radius: 16px;

}

/*
=========================================================
Car Gallery
=========================================================
*/

.car-gallery {

    display: grid;

    grid-template-columns: repeat(auto-fill,
            minmax(240px, 1fr));

    gap: 18px;

    margin-top: 24px;

}

@media (max-width:700px) {
    .car-gallery {
        grid-template-columns: auto auto;
    }

    .profile-section.carProfileBox {
        padding: 25px 15px;
    }
}

.car-gallery img {

    width: 100%;

    height: 180px;

    object-fit: cover;

    border-radius: 12px;

    cursor: pointer;

    transition: .2s;

}

.car-gallery img:hover {

    transform: scale(1.03);
}

@media (max-width:700px) {
    .car-gallery img {
        height: 100px;
    }
}

/*
=========================================================
Gallery Lightbox
=========================================================
*/

.gallery-overlay {

    position: relative;

    inset: 0;

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

    display: flex;

    justify-content: center;

    align-items: center;

    z-index: 9999;

    padding: 40px;

}

.gallery-image {

    max-width: 90vw;

    max-height: 90vh;

    border-radius: 12px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);

}

/*
=========================================================
Gallery Counter
=========================================================
*/

.gallery-counter {

    position: absolute;

    top: 20px;

    right: 20px;

    padding: 8px 14px;

    border-radius: 999px;

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

    color: white;

    font-size: .9rem;

    font-weight: 600;

    backdrop-filter: blur(8px);

    z-index: 5;

}

/*
=========================================================
Gallery Counter
=========================================================
*/

.gallery-counter {

    position: absolute;

    top: 20px;

    right: 20px;

    padding: 8px 14px;

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

    color: white;

    border-radius: 999px;

    font-size: .9rem;

    font-weight: 600;

    backdrop-filter: blur(8px);

    z-index: 20;

    user-select: none;

}

.gallery-image {

    max-width: 90vw;

    max-height: 90vh;

    border-radius: 12px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);

    cursor: pointer;

    user-select: none;

}

/*
=========================================================
Modal
=========================================================
*/

.modal-overlay {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.9);

    display: flex;

    justify-content: center;

    align-items: center;

    z-index: 9999;

    padding: 40px;

}

.modal-window {

    position: relative;

    max-width: 95vw;

    max-height: 95vh;

}

/*
=========================================================
Download Button
=========================================================
*/

.car-actions {
    margin-top: 28px;
    display: flex;
}

@media (max-width:700px) {
    .car-actions {
        display: block;
    }
}

/*
=========================================================
Activity Timeline
=========================================================
*/

.activity-item {

    display: flex;

    gap: 20px;

    padding: 18px 0;

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

}

.activity-item:last-child {

    border-bottom: none;
}

.racer-activity-list .activity-item[hidden] {
    display: none;
}

.activity-icon {

    font-size: 30px;

    width: 40px;

    text-align: center;

}

.activity-content {

    flex: 1;

}

.activity-title {

    font-weight: 700;

    margin-bottom: 4px;

}

.activity-description {

    opacity: .8;

}

.activity-time {

    margin-top: 6px;

    opacity: .55;

    font-size: .9rem;

}

.activity-item {

    cursor: pointer;

    transition: .2s;

}

.activity-item:hover {

    background: rgba(255, 255, 255, .04);

}

/*
=========================================================
Result Card
=========================================================
*/

.result-card {

    display: grid;

    grid-template-columns: 260px 1fr;

    overflow: hidden;

    border-radius: 14px;

    background: #151515;

    margin-bottom: 18px;

    cursor: pointer;

    transition: .2s;

}

.result-card:hover {

    transform: translateY(-2px);

}

.result-track-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}

.result-content {

    padding: 18px;

}

.result-track {

    font-size: 1.2rem;

    font-weight: 700;

    margin-bottom: 12px;

}

.result-car,

.result-driver {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 10px;

}

.result-car img,

.result-driver img {

    width: 52px;

    height: 52px;

    object-fit: cover;

    border-radius: 8px;

}

.result-footer {

    display: flex;

    justify-content: space-between;

    margin-top: 18px;

    font-size: 1.05rem;

}

/*
=========================================================
Compact Car List
=========================================================
*/

.car-list-row {

    display: flex;

    align-items: center;

    gap: 18px;

    padding: 14px 0;

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

    cursor: pointer;

    transition: .2s;

}

.car-list-row:last-child {

    border-bottom: none;

}

.car-list-row:hover {

    background: rgba(255, 255, 255, .04);

}

.car-list-image {

    width: 96px;

    height: 54px;

    object-fit: cover;

    border-radius: 8px;

    flex-shrink: 0;

}

.car-list-info {

    flex: 1;

}

.car-list-name {

    font-weight: 700;

    margin-bottom: 4px;

}

.car-list-meta {

    opacity: .7;

    font-size: .9rem;

}

.car-list-arrow {

    font-size: 24px;

    opacity: .35;

}

.page-cup-event .leaderboard-content {
    max-width: 2300px;
}

.leaderboard-table {

    width: 100%;

}

.leaderboard img {
    width: 72px;
    min-width: 72px;
}

.profile-table {
    margin-top: 25px;
    margin-bottom: 25px;
}

.car-profile-page .profile-section .driver-row {
    margin: 25px 25px 25px 5px;
    float: left
}

.car-profile-page .profile-section .section-header {
    margin-top: 25px;
}

.undefined-info {
    display: grid;
    grid-template-columns: 72px 1fr;
    grid-column-gap: 15px;
    justify-content: center;
    align-items: center;
}

/* .profile-table, .leaderboard th, .leaderboard td {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
} */

.profile-table,
.leaderboard th,
.leaderboard td thead {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

.leaderboard .undefined-info img {
    width: 72px;
    height: 72px;
    object-fit: cover;
}

.profile-table-wrapper {
    overflow: hidden;
    max-height: none;
}

.profile-table-wrapper.collapsed {
    max-height: 240px;
}

.profile-table-show-more {
    display: block;
    margin: 12px auto 0;
}

/* =========================================================
   Car Comparison
   ========================================================= */

.page-compare {
    background:
        linear-gradient(rgba(17, 19, 21, .72),
            rgba(17, 19, 21, .88)),
        url("/assets/img/cardealer.jpg") center center / cover fixed;
}

.car-compare-page {
    width: min(1400px, calc(100% - 40px));
    margin: 40px auto 80px;
}

.car-compare-header {
    background: rgba(31, 35, 41, .82);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    position: relative;
    z-index: 2;
}

.car-compare-header-title {
    text-align: center;
    margin-bottom: 35px;
}

.car-compare-header-title h1 {
    margin-bottom: 10px;
}

.car-compare-header-title p {
    color: var(--text-muted);
    margin: 0;
}

.car-compare-cars {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.car-compare-cars-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.car-compare-cars-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.car-compare-car {
    text-align: center;
}

.car-compare-photo {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--background);
    border: 1px solid var(--border);
}

.car-compare-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.car-compare-photo-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.car-compare-car h2 {
    margin: 18px 0 8px;
}

.car-compare-bar-label {
    display: flex;
    align-items: center;
    gap: 10px;

    min-width: 0;

    color: var(--text-muted);
}

.car-compare-bar-label img {
    width: 40px;
    height: 30px;

    flex: 0 0 40px;

    object-fit: cover;

    border-radius: 5px;

    border: 1px solid rgba(255, 255, 255, 0.15);
}

.car-compare-bar-label span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.car-compare-selector {
    margin: 0 auto;
}

.car-compare-section {
    margin: auto;
    margin-top: 30px;
    padding: 30px;
    background: rgba(31, 35, 41, .82);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    z-index: 1;
    max-width: 1400px;
}

.car-compare-section-header {
    margin-bottom: 30px;
}

.car-compare-section-header h2 {
    margin-bottom: 6px;
}

.car-compare-section-header p {
    color: var(--text-muted);
    margin: 0;
}

/* Performance */

.car-compare-performance {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.car-compare-stat {
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.car-compare-stat:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.car-compare-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 14px;
}

.car-compare-stat-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Impact, Anton, sans-serif;
    font-size: 18px;
}

.with-graph-icons {
    width: 300px;
    flex-shrink: 0;
}

.car-compare-stat-graph-icons {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.car-compare-stat-graph-icons img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    opacity: .75;
}

.car-compare-stat-name img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    opacity: .75;
}

.car-compare-stat-graph-icons img {
    width: 42px;
    height: 20px;

}

.car-compare-stat-values {
    display: flex;
    gap: 20px;
    font-family: Impact, Anton, sans-serif;
}

.car-compare-value {
    color: var(--accent-light);
    white-space: nowrap;
}

.car-compare-stat-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.car-compare-car-bar {
    display: grid;
    grid-template-columns: 300px 1fr;
    align-items: center;
    gap: 15px;
}

.car-compare-bar-label {
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Tracks */

.car-compare-tracks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.car-compare-track {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(350px, 2fr);
    gap: 25px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.car-compare-track:last-child {
    border-bottom: 0;
}

.car-compare-track-name {
    font-family: Impact, Anton, sans-serif;
}

.car-compare-track-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.car-compare-track-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, .035);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.car-compare-track-result span {
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.car-compare-track-result strong {
    white-space: nowrap;
}

.car-compare-track-result.is-best {
    border-color: rgba(255, 152, 0, .45);
    box-shadow: inset 0 0 20px rgba(255, 152, 0, .05);
}

.car-compare-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* Racing */
.car-compare-racing-header {
    font-family: Impact, Anton, sans-serif;
    color: var(--accent-light);
    margin-bottom: 2px;
}

.car-compare-racing-header>div,
.car-compare-racing-row>* {
    padding: 15px;
    background: rgba(255, 255, 255, .035);
}

.car-compare-racing-row {
    margin-top: 1px;
}

.car-compare-racing-row span {
    color: var(--text-muted);
}

.car-compare-racing-row strong {
    text-align: center;
}

/* Add car */

.car-compare-add {
    display: block;
    margin: 30px auto 0;
}

/* Responsive */
@media (max-width: 900px) {
    .car-compare-cars {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {

    .car-compare-page {
        width: min(100% - 20px, 1400px);
        margin-top: 20px;
    }

    .car-compare-header,
    .car-compare-section {
        padding: 20px;
    }

    .car-compare-stat-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .car-compare-stat-values {
        width: 100%;
        justify-content: space-between;
    }

    .car-compare-car-bar {
        grid-template-columns: 110px 1fr;
    }

    .car-compare-track {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .car-compare-track-results {
        grid-template-columns: 1fr;
    }

}

/* =====================================================
   Car Comparison Selector
   ===================================================== */

.car-compare-selector {
    position: relative;
    width: min(100%, 400px);
}

.race-custom-select-options {
    display: none;
}

.race-custom-select.open .race-custom-select-options {
    display: block;
    z-index: 3;
}

.car-compare-selector .race-custom-select-options {
    position: absolute;
    z-index: 100;
    width: 100%;
}

.car-compare-selector .race-custom-select-list {
    max-height: 300px;
    overflow-y: auto;
}

.car-compare-selector .race-custom-select-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.car-compare-selector .race-custom-select-option img {
    width: 70px;
    height: 40px;
    min-width: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.car-compare-selector .race-custom-select-option span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.car-compare-selector .race-custom-select-arrow {
    transition: transform .2s ease;
}

.car-compare-selector.open .race-custom-select-arrow {
    transform: rotate(180deg);
}

/*
=========================================================
 Lap Time Submission
=========================================================
*/

.lap-time-submission {

    width: 100%;
    z-index: 5;
    padding: 28px;
    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.10),
            rgba(255, 255, 255, 0.045));

    border: 1px solid rgba(255, 255, 255, 0.22);

    border-top: 1px solid rgba(255, 255, 255, 0.40);

    border-radius: 18px;

    box-shadow:
        inset 0 15px 35px rgba(255, 255, 255, 0.06),
        0 10px 30px rgba(0, 0, 0, 0.25);

    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);

}


/*
=========================================================
 Submission Header
=========================================================
*/

.lap-time-submission-header {

    margin-bottom: 24px;

}

.lap-time-submission-header h2 {

    margin-bottom: 12px;

    font-size: 26px;

}

.lap-time-submission-header p {

    color: var(--text-muted);

    font-size: 15px;

}

.lap-time-submission-header strong {

    color: var(--text);

}


/*
=========================================================
 Form
=========================================================
*/

.lap-time-form {

    display: grid;

    grid-template-columns:
        auto auto 100px auto;

    gap: 20px;

}

.lap-time-form[hidden] {
    display: none !important;
}


/*
=========================================================
 Form Fields
=========================================================
*/

.lap-time-form-field {

    display: flex;

    flex-direction: column;

    gap: 8px;

}

.lap-time-form-field label {

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

    color: var(--text-muted);

}

.lap-time-form-field label span {

    font-weight: 400;

    text-transform: none;

    letter-spacing: 0;

    color: var(--text-muted);

}


/*
=========================================================
 Inputs
=========================================================
*/

.lap-time-form-field input,
.lap-time-form-field select,
.lap-time-form-field textarea {

    width: 100%;

    padding: 12px 14px;

    border: 1px solid rgba(255, 255, 255, 0.18);

    border-radius: 8px;

    background:
        rgba(0, 0, 0, 0.28);

    color: var(--text);

    font-family: inherit;

    font-size: 16px;

    outline: none;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;

}

.lap-time-form-field input,
.lap-time-form-field select {

    height: 46px;

}

.lap-time-form-field textarea {
    height: 46px;
    resize: vertical;

}


/*
=========================================================
 Input Focus
=========================================================
*/

.lap-time-form-field input:focus,
.lap-time-form-field select:focus,
.lap-time-form-field textarea:focus {

    border-color: var(--accent);

    background:
        rgba(0, 0, 0, 0.38);

    box-shadow:
        0 0 0 2px rgba(255, 152, 0, 0.12);

}


/*
=========================================================
 Select
=========================================================
*/

.lap-time-form-field select {

    cursor: pointer;

}

.lap-time-form-field select option {

    background: var(--panel);

    color: var(--text);

}

/*
=========================================================
 Custom Select Search
=========================================================
*/

.lap-custom-select-search {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 10px;
    background: rgba(31, 35, 41, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.lap-custom-select-search-input {
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.30);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}

.lap-custom-select-search-input::placeholder {
    color: var(--text-muted);
}

.lap-custom-select-search-input:focus {
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.40);
    box-shadow:
        0 0 0 2px rgba(255, 152, 0, 0.12);
}

.lap-custom-select-option-list {
    width: 100%;
}

/*
=========================================================
 Track Groups
=========================================================
*/

.race-custom-select-group-title {

    padding: 10px 12px 7px;

    color: var(--accent);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    background:
        rgba(0, 0, 0, 0.22);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);

}

.race-custom-select-group+.race-custom-select-group {

    border-top:
        1px solid rgba(255, 255, 255, 0.15);

}

/*
=========================================================
 Actions
=========================================================
*/

.lap-time-form-actions {

    grid-column: 1 / -1;

    display: flex;

    align-items: center;

    margin-top: 4px;

}

.lap-time-form-actions button {

    margin: 0;

    cursor: pointer;

}

.lap-time-form-actions button:disabled {

    opacity: .55;

    cursor: wait;

}


/*
=========================================================
 Error
=========================================================
*/

.lap-time-form-error {

    grid-column: 1 / -1;

    padding: 12px 14px;

    border: 1px solid rgba(255, 82, 82, 0.35);

    border-radius: 8px;

    background: rgba(255, 82, 82, 0.10);

    color: #ff8a8a;

    font-size: 14px;

}

/*
=========================================================
 Custom Selects
=========================================================
*/

.lap-custom-select,
.race-custom-select {
    position: relative;
    width: 100%;
    z-index: auto;
}


/*
=========================================================
 Select Trigger
=========================================================
*/

.lap-custom-select-trigger,
.race-custom-select-trigger {

    width: 100%;

    height: 46px;

    margin: 0;

    padding: 6px 12px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    background:
        rgba(0, 0, 0, 0.28);

    border: 1px solid rgba(255, 255, 255, 0.18);

    border-radius: 8px;

    color: var(--text);

    cursor: pointer;

    font-family: inherit;

    font-size: 16px;

    text-align: left;

    box-shadow: none;

}

.lap-custom-select-trigger:hover,
.race-custom-select-trigger:hover {

    background:
        rgba(0, 0, 0, 0.38);

    box-shadow: none;

}

.lap-custom-select.open .lap-custom-select-trigger,
.race-custom-select.open .race-custom-select-trigger {

    border-color: var(--accent);

    border-bottom-left-radius: 0;

    border-bottom-right-radius: 0;

}


/*
=========================================================
 Current Selection
=========================================================
*/

.lap-custom-select-current,
.race-custom-select-current {

    min-width: 0;

    display: flex;

    align-items: center;

    gap: 10px;

}

.lap-custom-select-placeholder,
.race-custom-select-placeholder {

    color: var(--text-muted);

}

.lap-custom-select-current-image,
.race-custom-select-current-image {

    width: 34px;

    height: 34px;

    flex: 0 0 34px;

    object-fit: cover;

    border-radius: 5px;

    border: 1px solid rgba(255, 255, 255, 0.18);

}


/*
=========================================================
 Arrow
=========================================================
*/

.lap-custom-select-arrow,
.race-custom-select-arrow {

    flex: 0 0 auto;

    color: var(--text-muted);

    font-size: 14px;

    transition:
        transform .2s ease;

}

.lap-custom-select.open .lap-custom-select-arrow,
.race-custom-select.open .race-custom-select-arrow {

    transform: rotate(180deg);

}


/*
=========================================================
 Options Panel
=========================================================
*/

.lap-custom-select-options,
.race-custom-select-options {

    position: absolute;

    left: 0;

    right: 0;

    top: 100%;

    z-index: 100;

    max-height: 320px;

    overflow-y: auto;

    background:
        rgba(31, 35, 41, 0.98);

    border: 1px solid var(--accent);

    border-top: none;

    border-bottom-left-radius: 8px;

    border-bottom-right-radius: 8px;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.45);

    -webkit-backdrop-filter: blur(15px);

    backdrop-filter: blur(15px);

}


/*
=========================================================
 Search
=========================================================
*/

.lap-custom-select-search,
.race-custom-select-search {
    position: sticky;
    top: 0;
    z-index: 2;
    width: 100%;
    padding: 10px;
    background:
        rgba(31, 35, 41, 0.98);
    border-bottom:
        1px solid rgba(255, 255, 255, 0.12);
}

.lap-custom-select-search-input,
.race-custom-select-search-input {

    width: 100%;

    height: 40px;

    margin: 0;

    padding: 8px 12px;

    border:
        1px solid rgba(255, 255, 255, 0.18);

    border-radius: 6px;

    background:
        rgba(0, 0, 0, 0.30);

    color: var(--text);

    font-family: inherit;

    font-size: 15px;

    outline: none;

    box-sizing: border-box;

}

.lap-custom-select-search-input::placeholder,
.race-custom-select-search-input::placeholder {

    color: var(--text-muted);

}

.lap-custom-select-search-input:focus,
.race-custom-select-search-input:focus {

    border-color: var(--accent);

    background:
        rgba(0, 0, 0, 0.40);

    box-shadow:
        0 0 0 2px rgba(255, 152, 0, 0.12);

}


/*
=========================================================
 Option List
=========================================================
*/

.lap-custom-select-option-list,
.race-custom-select-option-list {

    width: 100%;

}


/*
=========================================================
 Option
=========================================================
*/

.lap-custom-select-option,
.race-custom-select-option {

    width: 100%;

    height: 52px;

    margin: 0;

    padding: 6px 12px;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    gap: 12px;

    background: transparent;

    border: none;

    border-radius: 0;

    color: var(--text);

    cursor: pointer;

    font-family: inherit;

    font-size: 16px;

    text-align: left;

    box-shadow: none;

}

.lap-custom-select-option[hidden],
.race-custom-select-option[hidden] {

    display: none;

}

.lap-custom-select-option:hover,
.race-custom-select-option:hover {

    background:
        rgba(255, 255, 255, 0.08);

    box-shadow: none;

}

.lap-custom-select-option.selected,
.race-custom-select-option.selected {

    background:
        rgba(255, 152, 0, 0.12);

}


/*
=========================================================
 Option Image
=========================================================
*/

.lap-custom-select-option-image,
.race-custom-select-option-image {

    width: 40px;

    height: 40px;

    flex: 0 0 40px;

    object-fit: cover;

    border-radius: 6px;

    border:
        1px solid rgba(255, 255, 255, 0.15);

}


/*
=========================================================
 Option Name
=========================================================
*/

.lap-custom-select-option-name,
.race-custom-select-option-name {

    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}


/*
=========================================================
 Mobile
=========================================================
*/

@media (max-width: 700px) {

    .lap-custom-select-options,
    .race-custom-select-options {

        max-height: 260px;

    }

}

/*
=========================================================
 Mobile
=========================================================
*/

@media (max-width: 700px) {

    .lap-time-submission {

        padding: 22px;

    }

    .lap-time-form {

        grid-template-columns: 1fr;

    }

    .lap-time-form-actions,
    .lap-time-form-error {

        grid-column: 1;

    }

}

/*
=========================================================
 Lap Time Submission States
=========================================================
*/

.lap-time-submission {
    padding: 0;

}

/*
---------------------------------------------------------
 Closed
---------------------------------------------------------
*/

.lap-time-submission-toggle {
    width: 100%;
    margin: 0;
    padding: 4px 24px;
    border: none;
    border-radius: 18px;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
}

.lap-time-submission-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

/*
---------------------------------------------------------
 Content
---------------------------------------------------------
*/

.lap-time-submission-content {
    display: none;
    padding: 28px 28px;
}

/*
---------------------------------------------------------
 Open
---------------------------------------------------------
*/

.lap-time-submission.open .lap-time-submission-content {
    display: block;
}

.lap-time-submission.open .lap-time-submission-toggle {
    display: none;
}

/*
---------------------------------------------------------
 Submitted
---------------------------------------------------------
*/

.lap-time-submission-success {
    padding-top: 4px;
}

.lap-time-submission-success h2 {
    margin-bottom: 12px;
    font-size: 26px;
}

.lap-time-submission-success p {
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 15px;
}

.lap-time-add-another {
    margin: 0;
    cursor: pointer;
}

@media (max-width: 700px) {

    .lap-time-submission-content {
        padding: 0 22px 22px;
    }

    .lap-time-submission-toggle {
        padding: 4px 22px;
    }

}

.lap-time-form-action-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lap-time-cancel-button {
    margin: 0;
    cursor: pointer;
}

@media (max-width: 700px) {

    .lap-time-form-action-buttons {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .lap-time-form-action-buttons button {
        width: 100%;
    }

}

/*
=========================================================
 Race Result Submission
=========================================================
*/

.race-result-submission {
    margin-top: -60px;
    margin-bottom: 40px;
}

.race-result-submission-toggle {
    width: 100%;

}

.race-result-submission-toggle[hidden] {
    display: none;
}

.race-result-submission-content {
    margin-top: 20px;
    padding: 25px;
    padding-bottom: 5px;
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.10),
            rgba(255, 255, 255, 0.045));
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-top: 1px solid rgba(255, 255, 255, 0.40);
    border-radius: 18px;
    box-shadow: inset 0 15px 35px rgba(255, 255, 255, 0.06),
        0 10px 30px rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
}

.race-result-submission-header {
    margin-bottom: 25px;
}

.race-result-racers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.race-result-racer-row {
    display: grid;
    grid-template-columns:
        100px minmax(0, 1fr) minmax(0, 1fr) 40px;
    gap: 12px;
    align-items: end;
}

.race-result-racer-row label,
.race-result-track-field label {
    display: block;
    margin-bottom: 6px;
}

.race-result-racer-row input,
.race-result-racer-row select,
.race-result-track-select {
    width: 100%;
    height: 46;
    background: rgba(0, 0, 0, 0.28);
    height: 46px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
}

.race-result-remove-racer {
    width: 40px;
    height: 40px;
    margin: 0px 0px 10px 0px;
    font-size: 24px;
    background: none;
    border-radius: 0px;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.race-result-remove-racer:hover {
    background: none;
    box-shadow: none;
    color: red;
}

.race-result-add-racer {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.race-result-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    border-top: solid 1px rgba(255, 255, 255, 0.12);
}

.race-result-form-error {
    margin-top: 15px;
}

@media (max-width: 700px) {

    .race-result-racer-row {
        grid-template-columns:
            1fr 1fr 40px;
    }

    .race-result-position-field {
        grid-column: 1 / -1;
    }

}

.race-result-form-actions .primary-button {
    background: -webkit-linear-gradient(253deg, rgba(141, 255, 190, 0.6), rgba(219, 228, 222, 0.18));
}

.race-result-form-actions .primary-button:hover {
    background: -webkit-linear-gradient(253deg, rgba(86, 255, 159, 0.695), rgba(212, 229, 218, 0.285));
}

.race-result-form-success {
    margin-top: 20px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.20);
}

.race-result-form-success p {
    margin: 0 0 15px;
}

.race-result-add-another {
    margin-top: 5px;
}


/* =====================================================
   Add Car - Submission State
   ===================================================== */

.add-car-container {
    padding: 30px;
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.10),
            rgba(255, 255, 255, 0.045));
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-top: 1px solid rgba(255, 255, 255, 0.40);
    border-radius: 18px;
    box-shadow: inset 0 15px 35px rgba(255, 255, 255, 0.06),
        0 10px 30px rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    overflow: hidden;
}

.add-car-container .page-header {
    margin: -30px -30px 20px -30px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.53) 25.63%, rgba(0, 0, 0, 0.26) 59.24%, rgba(0, 0, 0, 0)),
        /* Layer A (Dark Overlay) */
        linear-gradient(rgba(0, 0, 0, 0) 76.05%, rgb(0, 0, 0)),
        /* Layer B (Light Stripes) */
        url(/assets/img/cardealer.jpg);
    background-size: cover;
    background-position: 50% 62%;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.add-car-container .page-header h1 {
    font-size: 3rem;
}

.add-car-container .page-header p {
    font-size: 1.2rem;
}

.add-car-form {
    width: 100%;
    max-width: 500px;
    margin: auto;
}

.add-car-container.add-car-submitting {
    opacity: 0.55;
    pointer-events: none;
}

.add-car-container.add-car-submitting input,
.add-car-container.add-car-submitting textarea,
.add-car-container.add-car-submitting button {
    cursor: wait;
}

.add-car-submit-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.add-car-loading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.add-car-loading[hidden] {
    display: none;
}

.add-car-spinner {
    width: 16px;
    height: 16px;

    border: 2px solid currentColor;
    border-top-color: transparent;

    border-radius: 50%;

    animation:
        add-car-spin 0.8s linear infinite;
}

@keyframes add-car-spin {

    to {
        transform: rotate(360deg);
    }

}

.add-car-field {
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: solid 0.5px rgba(255, 255, 255, 0.32);
    width: 100%;
    max-width: 500px;
}

.add-car-field label {
    clear: both;
    display: block;
}

.add-car-field input {
    clear: both;
    display: block;
}

.add-car-options {
    display: flex;
    margin-top: 5px;
}

.uploadFrame {
    width: 100%;
    max-width: 500px;
    padding: 20px 12px;
    margin: 5px 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    box-shadow: none;
}

.textarea {
    width: 100%;
    max-width: 500px;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.28);
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.textarea:disabled {
    opacity: 0.5;
    background: #4e4e4e;
}

/* =========================================
   Add Car - Custom Checkboxes
   ========================================= */

.add-car-checkbox input[type="checkbox"],
.add-car-options input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 2px solid #666;
    border-radius: 4px;
    background: transparent;
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.add-car-checkbox input[type="checkbox"]::after,
.add-car-options input[type="checkbox"]::after {
    content: "";
    width: 9px;
    height: 4px;
    margin-top: -3px;
    border-left: 4px solid white;
    border-bottom: 4px solid white;
    transform: rotate(-45deg) scale(0);
    transition:
        transform 0.1s ease;
}

.add-car-checkbox input[type="checkbox"]:checked,
.add-car-options input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: #e6e6e6;
}

.add-car-checkbox input[type="checkbox"]:checked::after,
.add-car-options input[type="checkbox"]:checked::after {
    transform: rotate(-45deg) scale(1);
}

.add-car-checkbox,
.add-car-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin-left: 20px;
}

.add-car-checkbox input[type="checkbox"]:hover,
.add-car-options input[type="checkbox"]:hover {
    border-color: #aaa;
}

.add-car-checkbox input[type="checkbox"]:focus-visible,
.add-car-options input[type="checkbox"]:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/*
=========================================================
Leaderboard Layout & Background
=========================================================
*/

.leaderboard-page {
    position: relative;
    display: block;
    min-height: 100vh;
}

.leaderboard-sidebar {
    min-height: -webkit-fill-available;
    width: 100%;
    max-width: 300px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.09);
    border: solid 1px rgba(255, 255, 255, 0.30);
    border-top: solid 1px rgba(255, 255, 255, 0.50);
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.06) inset;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    position: sticky;
    align-self: stretch;
}

/*
=========================================================
Responsive Leaderboard Sidebar
=========================================================
*/

@media (max-width:1100px) {

    .leaderboard-sidebar {

        position: fixed;

        top: 0;

        left: -340px;

        width: 320px;

        max-width: 85vw;

        height: 100vh;

        z-index: 1950;

        transition: left .25s ease;

        overflow-y: auto;

        border-radius: 0;

    }

    body.leaderboard-sidebar-open .leaderboard-sidebar {

        left: 0;

    }

}

.leaderboard-content {

    display: flex;

    flex-direction: column;

    gap: 32px;

    padding: 32px;

}

.leaderboard-page::before {

    content: "";

    position: fixed;

    inset: 0;

    background-image:

        linear-gradient(rgba(10, 10, 10, .72),

            rgba(10, 10, 10, .82)),

        var(--map-background);

    background-size: cover;

    background-position: center;

    filter: blur(18px);

    transform: scale(1.08);

    z-index: -2;

}

.leaderboard-page::after {

    content: "";

    position: fixed;

    inset: 0;

    background:

        rgba(0, 0, 0, .25);

    z-index: -1;

}

@media (max-width:1500px) {
    .leaderboard-page {
        gap: 10px;
    }
}

@media (max-width:1100px) {
    .leaderboard-page {
        grid-template-columns: 100%;
    }

    .leaderboard-content {
        padding: 15px;
    }
}

/*
=========================================================
Leaderboard Hero
=========================================================
*/

.leaderboard-hero {
    position: relative;
    min-height: 340px;
    padding: 50px;
    border-radius: 18px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.leaderboard-hero-content {

    max-width: 850px;

}

.leaderboard-hero h1 {

    margin: 0;

    font-size: 3rem;

}

.leaderboard-track-info {

    margin-top: 16px;

    max-width: 700px;

    color: rgba(255, 255, 255, .85);

    line-height: 1.6;
}

@media (max-width:700px) {
    .leaderboard-hero {
        padding: 15px;
        max-width: 100%;
    }

    .leaderboard-hero h1 {
        max-width: 100%;
    }

    .leaderboard-track-info {
        max-width: 100%;
    }
}

.leaderboard-hero-stats {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;

    margin-top: 35px;

}

.leaderboard-hero-stats span {

    display: block;

    color: #bbb;

    font-size: .8rem;

    text-transform: uppercase;

    margin-bottom: 6px;

}

.leaderboard-hero-stats strong {

    font-size: 1.2rem;

    font-weight: 600;

}

/*
=========================================================
Leaderboard Table
=========================================================
*/

.leaderboard {

    width: 100%;

    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    text-shadow: 0px 0px 15px rgba(0, 0, 0, 0.89);
    border-collapse: collapse;
    background: var(--surface);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.09);
    border: solid 1px rgba(255, 255, 255, 0.30);
    border-top: solid 1px rgba(255, 255, 255, 0.50);
    box-shadow: inset 0px 20px 60px rgba(255, 255, 255, 0.28),
        0 0 1px rgba(255, 255, 255, 0.65) inset,
        0 0 1px rgba(255, 255, 255, 0.65) inset,
        0 0 1px rgba(255, 255, 255, 0.65) inset,
        0 0 1px rgba(255, 255, 255, 0.65) inset;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    overflow: hidden;

}

thead {
    background: -webkit-linear-gradient(253deg, rgba(100, 105, 111, 0.54), rgba(150, 150, 150, 0.18));
    text-decoration: none;
    text-shadow: rgba(0, 0, 0, 0.89) 0px 0px 2px;
}

.leaderboard th {

    position: sticky;

    top: 0;

    background: var(--surface);

    z-index: 5;
    font-family: Impact, Anton;
    -webkit-background-clip: text;
    -webkit-text-fill-color: white;

}

.leaderboard th,
.leaderboard td {

    padding: 16px;

    text-align: left;
    border: solid 1px rgba(255, 255, 255, 0.020);
    border-bottom: solid 1px rgba(255, 255, 255, 0.05);
    border-collapse: collapse;
}

.profile-section .profile-table.leaderboard td {
    padding: 0px 16px;
}

.leaderboard tr td:nth-child(3) {
    padding: 0px 16px 0px 0px;
}

.profile-section .profile-table.leaderboard tr td:nth-child(1) {
    padding: 0px 16px 0px 0px;
}

.profile-section .profile-table.leaderboard tr td:nth-child(2) {
    padding: 0px 16px 0px 0px;
}

.profile-section .profile-table.leaderboard.carTrackBoard tr td:nth-child(2) {
    padding: 16px;
}

.profile-section .profile-table.leaderboard.carWorldTrackBoard tr td:nth-child(2) {
    padding: 16px;
}

.profile-section .profile-table.leaderboard td .car-thumb,
.track-thumb {
    border-radius: 0px;
    height: 68px;
    margin-bottom: 1px;
}

@media (max-width:620px) {

    .profile-section .profile-table.leaderboard td .car-thumb,
    .track-thumb img {
        width: 60px;
    }
}

@media (max-width:620px) {
    .profile-section .profile-table.leaderboard tr td:nth-child(1) {
        max-width: 70px;
    }

    .profile-section .profile-table.leaderboard tr td:nth-child(2) {
        max-width: 90px;
    }

    .profile-section .profile-table.leaderboard tr td:nth-child(3) {
        max-width: 70px;
    }

    .profile-section .profile-table.leaderboard tr td:nth-child(4) {
        max-width: 80px;
    }
}


.leaderboard tbody tr {

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

    transition: .2s;


}

.leaderboard tbody tr:hover {

    background: rgba(255, 255, 255, 0.135);

}

.leaderboard tr:nth-child(even) {

    background: -webkit-linear-gradient(rgba(150, 150, 150, 0.089));

}

.leaderboard-position {

    width: 70px;

    font-weight: 700;

    text-align: center;

}

.leaderboard-driver,
.leaderboard-car {

    display: flex;

    align-items: center;

    gap: 12px;

}

@media (max-width:800px) {

    .leaderboard-driver,
    .leaderboard-car {
        flex-wrap: wrap;
    }

    .leaderboard img {
        height: 57px;
    }

    .leaderboard th,
    .leaderboard td {
        padding: 10px;
        font-size: 15px;
    }
}

@media (max-width:620px) {

    .leaderboard img {
        width: 0px;
        min-width: 0px;
    }

    .track-name {
        font-size: 12px;
    }

    .car-name {
        font-size: 12px;
    }
}

.leaderboard-avatar {

    width: 42px;

    height: 42px;

    border-radius: 50%;

    object-fit: cover;

}

.leaderboard-driver img {
    width: 42px;
    height: 42px;
    min-width: 42px;
}


.leaderboard-car-photo {

    width: 74px;
    height: 67px;
    border-radius: 0px;
    object-fit: cover;
    margin-top: -20px;
    margin-bottom: -20px;
}

@media (max-width:800px) {
    .leaderboard-car-photo {}
}

.leaderboard-time {

    font-size: 1.2rem;

    font-weight: 700;

    white-space: nowrap;

}

.leaderboard-note {

    color: var(--text-secondary);

    max-width: 400px;

}

.leaderboard-cars {
    display: flex;
    align-items: center;
    min-height: 68px;
}

.leaderboard-cars .leaderboard-car {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}

.leaderboard-cars .leaderboard-car:not(:first-child) {
    margin-left: -45px;
}

.leaderboard-cars .leaderboard-car-photo {
    flex-shrink: 0;
}

.leaderboard-cars .leaderboard-car span {
    margin-left: 10px;
    white-space: nowrap;
}

/*-----------------------------------------------------
  Championship car list
-----------------------------------------------------*/

.leaderboard-car-group {
    display: flex;
    align-items: center;
    height: 54px;
    min-width: 0;
}

.leaderboard-cars-photos {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 100%;
}

.leaderboard-cars-photos .leaderboard-car-photo {
    position: relative;
    width: 62px;
    height: 62px;
    object-fit: cover;
    flex-shrink: 0;
}

.leaderboard-cars {
    display: grid;
    grid-template-columns: auto;
    grid-auto-rows: 8px;
    align-content: center;
    margin-left: 10px;
    min-width: 0;
}

.leaderboard-cars span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: none;
}

/*-----------------------------------------------------
  Championship progress backgrounds
-----------------------------------------------------*/

.cup-championship-table tbody tr {
    background-repeat: no-repeat;
    background-size: contain;
}

.cup-championship-table tbody tr:hover {
    background-repeat: no-repeat;
    background-size: contain;
}

.cup-championship-table .cup-championship-table tbody tr {
    border: 1.5px solid rgb(255, 2, 2);
}

/* 1st - Gold */

.cup-championship-table tbody tr.championship-gold {
    background-image:
        linear-gradient(123deg,
            rgba(255, 215, 0, 0.18), rgba(255, 197, 8, 0.77) 84.45%, rgba(218, 165, 0, 0.85) 100%, rgba(255, 255, 255, 0)),
        url("/assets/img/racingflag-wide.png");
    background-repeat: no-repeat;
    background-size: contain;
}

/* 2nd - Silver */

.cup-championship-table tbody tr.championship-silver {
    background-image:
        linear-gradient(123deg,
            rgba(255, 255, 255, 0.18), rgba(247, 250, 255, 0.72) 76.47%, rgba(190, 195, 200, 0.85) 88.24%, rgba(255, 255, 255, 0) 88.24%),
        url("/assets/img/racingflag-wide.png");
    background-repeat: no-repeat;
    background-size: contain;
}

/* 3rd - Bronze */

.cup-championship-table tbody tr.championship-bronze {
    background-image:
        linear-gradient(123deg,
            rgba(139, 69, 19, 0.18), rgba(255, 157, 88, 0.6) 44.12%, rgba(174, 93, 37, 0.85) 58.82%, rgba(255, 255, 255, 0) 58.82%),
        url("/assets/img/racingflag-wide.png");
    background-repeat: no-repeat;
    background-size: contain;
}

/* Everyone else */

.cup-championship-table tbody tr.championship-other {
    background-image:
        linear-gradient(123deg,
            rgba(255, 255, 255, 0.08),
            rgba(100, 110, 115, 0.65) var(--championship-progress),
            rgba(255, 255, 255, 0) var(--championship-progress)),
        url("/assets/img/racingflag-wide.png");
    background-repeat: no-repeat;
    background-size: contain;
}

.cup-track-title span {
    color: var(--accent);
}

@media (min-width:900px) {
    .cup-track-title {
        display: grid;
        grid-template-columns: auto auto auto auto;
        justify-content: start;
        gap: 6px;
        padding: 10px;
    }
}

.cup-track-leaderboard {
    margin-top: 15px;
}

/*
=========================================================
Cup Event Styling
=========================================================
*/

.cup-event-upcoming-info {
    margin-top: 30px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
    border: solid 1px rgba(255, 255, 255, 0.30);
    background: rgba(255, 255, 255, 0.09);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
}

.cup-event-upcoming-info-content {
    line-height: 1.2;
}

.cup-event-upcoming-info {
    margin-top: 2rem;
}

.cup-event-upcoming-info-content {
    padding: 2rem;
    background: var(--card-background);
    border-radius: 12px;
    line-height: 1.3;
}

/* Markdown headings */

.cup-event-upcoming-info-content h1,
.cup-event-upcoming-info-content h2,
.cup-event-upcoming-info-content h3,
.cup-event-upcoming-info-content h4,
.cup-event-upcoming-info-content h5,
.cup-event-upcoming-info-content h6 {
    margin-top: 0.6em;
    margin-bottom: 0.2em;
}

.cup-event-upcoming-info-content h1:first-child,
.cup-event-upcoming-info-content h2:first-child,
.cup-event-upcoming-info-content h3:first-child {
    margin-top: 0;
}

/* Paragraphs */

.cup-event-upcoming-info-content p {
    margin: 0 0 1em;
}

/* Lists */

.cup-event-upcoming-info-content ul,
.cup-event-upcoming-info-content ol {
    margin: 0 0 1em;
    padding-left: 2rem;
}

/* Links */

.cup-event-upcoming-info-content a {
    text-decoration: underline;
}

/* Images */

.cup-event-upcoming-info-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
}

/*
=========================================================
Leaderboard Sidebar
=========================================================
*/

.leaderboard-sidebar button {
    background: -webkit-linear-gradient(253deg, rgba(14, 15, 16, 0.5), rgba(97, 97, 97, 0.3));
    border: solid 1px rgba(255, 255, 255, 0.13);
    border-radius: 0px;
    margin: 0px;
}


.leaderboard-sidebar-inner {
    overflow-y: auto;
    height: 100%;
}


.leaderboard-map-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 20px 15px 8px 15px;
    background: -webkit-linear-gradient(253deg, rgba(100, 105, 111, 0.54), rgba(150, 150, 150, 0.18));
    text-decoration: none;
    text-shadow: rgba(0, 0, 0, 0.89) 0px 0px 2px;
    border: solid 1px rgba(255, 255, 255, 0.10);
    box-shadow: 0 7px 80px rgba(255, 255, 255, 0.15) inset,
        0 3px 4px rgba(0, 0, 0, 0.11);
}


.leaderboard-map-name {

    font-size: .95rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: rgba(255, 255, 255, .8);


    letter-spacing: 2px;


    margin-bottom: 8px;
}


.leaderboard-map-laps {

    font-size: .75rem;

    color: var(--text-secondary);

}


.leaderboard-track-button {

    width: 100%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 12px 14px;

    margin-bottom: 5px;

    border-radius: 8px;

    border: none;

    background: transparent;

    color: inherit;

    cursor: pointer;

    text-align: left;
    box-shadow: none;

    transition: .2s;

}


.leaderboard-track-button:hover {
    box-shadow: none;
    background: rgba(255, 255, 255, .06);

}


.leaderboard-track-button.active {

    background: -webkit-linear-gradient(253deg, rgba(255, 152, 1, 0.98), rgba(255, 152, 1, 0.57));
    color: white;

}


.sidebar-track-name {
    text-overflow: ellipsis;

    white-space: nowrap;
    font-size: 16px;
}

button,
.sidebar-track-name active {
    text-shadow: none;
}

.sidebar-track-laps {

    font-size: .8rem;

    opacity: .7;

}

.add-car-frame {

    width: 100%;

    height: calc(100vh - 140px);

    border: none;

    border-radius: 12px;

    background: white;

}

/* =========================================================
   Cup Event Sidebar
   ========================================================= */

.cup-sidebar-cup {

    padding: 20px 15px 10px 15px;

    font-size: .95rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 2px;

    color: rgba(255, 255, 255, .85);

    background:
        -webkit-linear-gradient(253deg,
            rgba(100, 105, 111, 0.54),
            rgba(150, 150, 150, 0.18));

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

    box-shadow:
        0 7px 80px rgba(255, 255, 255, .15) inset,
        0 3px 4px rgba(0, 0, 0, .11);

}

.cup-sidebar-season {

    padding:
        14px 15px 6px 25px;

    font-size: .9rem;
    font-weight: 700;

    color:
        rgba(255, 255, 255, .65);

}

.cup-sidebar-event {

    width: 100%;

    display: block;

    padding:
        10px 14px 10px 40px;

    margin:
        0 0 3px 0;

    border: none;
    border-radius: 0;

    background: transparent;

    color: inherit;

    cursor: pointer;

    text-align: left;

    font-size: .9rem;

    transition:
        background .2s ease,
        padding-left .2s ease;

}

.cup-sidebar-event:hover {

    background:
        rgba(255, 255, 255, .06);

}

.cup-sidebar-event.active {

    background:
        -webkit-linear-gradient(253deg,
            rgba(255, 152, 1, .98),
            rgba(255, 152, 1, .57));

    color: white;

}

.leaderboard-sidebar {}

.leaderboard-sidebar-title {
    margin: 0 0 24px;
}

.leaderboard-sidebar-cup {
    margin-bottom: 1px;
    border-radius: 20px 20px 0px 10px;
    overflow: hidden;
    border-left: solid 2px var(--accent);
    border-top: solid 1px var(--accent);
}

.leaderboard-sidebar-cup-title {
    font-size: 1.5rem;
    font-weight: 700;
    /* margin-bottom: 12px; */
    padding-left: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
    background: -webkit-linear-gradient(-89deg, #ffffff, #f2cfcf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: Impact, Anton;
}

.leaderboard-sidebar-season {}

.leaderboard-sidebar-season-toggle {
    font-weight: 600;
    padding: 14px 15px 10px 25px;
    justify-content: start;
}

.arrow {
    width: 16px;
    height: auto;
    margin-left: -15px;
    margin-right: 5px;
}

.collapsed .arrow {
    transform: rotate(-90deg);
}

.leaderboard-sidebar-season.collapsed .leaderboard-sidebar-event-list {
    display: none;
}


.leaderboard-sidebar-event {
    display: block;
    padding-left: 12px;
    color: inherit;
    text-decoration: none;
}

.leaderboard-sidebar-event:hover {
    box-shadow: none;
    background: rgba(255, 255, 255, .06);
    border-radius: 0px;
}

.leaderboard-sidebar-event .leaderboard-sidebar-event-cup .leaderboard-track-button.active {
    box-shadow: none;
    background: -webkit-linear-gradient(253deg, rgba(255, 152, 1, 0.98), rgba(255, 152, 1, 0.57));
    border-radius: 0px;
}

.leaderboard-sidebar-event-list {
    overflow: hidden;
}

.leaderboard-sidebar-season-toggle {
    cursor: pointer;
}

.leaderboard-sidebar-event-list .leaderboard-track-button {
    overflow: hidden;
    background: -webkit-linear-gradient(253deg, rgba(14, 15, 16, 0.5), rgba(97, 97, 97, 0.3));
    border: solid 1px rgba(255, 255, 255, 0.13);
    border-radius: 0px;
    margin: 0px;
    padding-left: 35px;
}

.leaderboard-sidebar-event-list .leaderboard-track-button:hover {
    box-shadow: none;
    background: rgba(255, 255, 255, .06);
    border-radius: 0px;
}

.leaderboard-sidebar-event-list .leaderboard-track-button.active {
    box-shadow: none;
    background: -webkit-linear-gradient(253deg, rgba(255, 152, 1, 0.98), rgba(255, 152, 1, 0.57));
    border-radius: 0px;
}

.cup-sidebar-season.collapsed .leaderboard-sidebar-event-list {
    display: none;
}

.cup-sidebar-season-title {
    cursor: pointer;
}

/*--------------------------------------------------
  Cup podium
--------------------------------------------------*/

.cup-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0 2rem;
}

.cup-podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 12px;
    border-radius: 5px 5px 25px 25px;
    border: solid 1px rgba(255, 255, 255, 0.30);
    background-size: contain;
}

.cup-podium-first {
    background-image: linear-gradient(123deg, rgba(255, 215, 0, 0.35), rgba(218, 165, 0, 0.85), rgba(216, 172, 49, 0.49)), url("/assets/img/racingflag.svg");
    box-shadow: 0 0 22px rgba(254, 213, 15, 0.56);
    transform: translateY(-0.5rem);
}

.cup-podium-second {
    background-image: linear-gradient(123deg, rgba(255, 255, 255, 0.29), rgba(190, 195, 200, 0.85), rgba(182, 182, 182, 0.45)), url("/assets/img/racingflag.svg");
    box-shadow: 0 0 14px rgba(184, 184, 184, 1);
}

.cup-podium-third {
    background-image: linear-gradient(123deg, rgba(139, 69, 19, 0.43), rgba(255, 145, 69, 0.73), rgba(178, 109, 63, 0.68)), url("/assets/img/racingflag.svg");
    box-shadow: 0 0 14px rgba(182, 99, 39, 1);
}

.cup-podium-photo {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
}

.cup-podium-first .cup-podium-photo {
    width: 120px;
    height: 120px;
}

.cup-podium-second .cup-podium-photo,
.cup-podium-third .cup-podium-photo {
    width: 85px;
    height: 85px;
}

.cup-podium-medal {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.cup-podium-first .cup-podium-medal {
    font-size: 2.3rem;
}

.cup-podium-name {
    font-weight: 600;
    margin-top: 0.5rem;
}

.cup-podium-points {
    font-size: 0.9rem;
    opacity: 0.8;
}

.cup-event-leaderboard {
    margin-top: -80px;
    background-image: linear-gradient(123deg, rgba(255, 215, 0, 0), rgba(218, 165, 0, 0), rgba(255, 255, 255, 0)),
        url("/assets/img/racingflag-wide-top.png");
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 30pc 20pc 0px 0px;
}

@media (min-width: 2000px) {
    .cup-event-leaderboard {
        background-image: linear-gradient(123deg, rgba(255, 215, 0, 0), rgba(218, 165, 0, 0), rgba(255, 255, 255, 0)),
            url("/assets/img/racingflag-wide-topbig.png");
    }
}

/* =========================================================
   Cup Event Hero
   ========================================================= */

.cup-event-hero {

    position: relative;

    overflow: hidden;

    width: 100%;

    min-height: 420px;

    margin-bottom: 40px;

    border-radius: 20px;

    display: flex;

    align-items: flex-end;
    border: solid 1px rgba(255, 255, 255, 0.30);
}

.cup-event-hero-image {

    position: absolute;

    inset: 0;

    z-index: 0;

}

.cup-event-hero-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

}

.cup-event-hero-overlay {

    position: absolute;

    inset: 0;

    z-index: 1;

    background: linear-gradient(75deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.35) 29.41%, rgba(0, 0, 0, 0.05) 35.71%);

}

.cup-event-hero-content {

    position: relative;

    z-index: 2;

    width: 100%;

    padding: 45px;

    color: white;

    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.8);

}

.cup-event-hero-content .page-title {
    -webkit-text-fill-color: color(srgb 0.9633 0.8624 0.8576);
    margin: 10px 0;

}

.cup-event-hero-content .cup-event-meta {

    display: flex;

    gap: 15px;

    margin-bottom: 10px;
    font-family: Impact, Anton;
}

.cup-event-meta {
    color: #ffc673;
}

.dateMeta {
    color: #fff;
}

.cup-event-hero-content .cup-event-short-info {

    max-width: 800px;

    margin-top: 12px;

}

.cup-event-hero-content .cup-event-description {

    max-width: 900px;

    margin-top: 15px;

}

.cup-event-hero-content .cup-event-date {
    font-family: Impact, Anton;
    margin-top: 15px;
    color: #ffc673;
}

.cup-event-leaderboard-title {
    font-family: Impact, Anton;
    text-align: center;
    font-size: 4em;
    margin-top: 40px;
    margin-bottom: 15px;
}


@media (max-width:900px) {
    .cup-event-leaderboard-title {
        font-size: 3em;
    }
}

/* =====================================================
   Racing Page
   ===================================================== */
.racing-page {
    width: 100%;
    min-height: calc(100vh - var(--navbar-height));
}

.racing-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 650px) {

    .racing-content {
        padding: 0 1rem;
    }

}

.racing-hero {
    position: relative;
    width: 100%;
    min-height: 500px;
    padding: 5rem 2rem 2rem;
    text-align: center;
    border-radius: 0rem;
    overflow: hidden;
    box-shadow: 0 0 22px rgba(0, 0, 0, 0.42);
    margin-bottom: 30px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.53) 25.63%, rgba(0, 0, 0, 0.26) 59.24%, rgba(0, 0, 0, 0)), url(/assets/img/racingclasses.jpg);
    background-size: cover;
    background-position: center;
    justify-content: center;
    align-items: center;
    display: flex;
}

.racing-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}



@media (max-width: 1100px) {
    .racing-hero-content {
        max-width: 100%;

    }
}

.racing-hero-title {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 5rem);
}

.racing-hero-text {
    max-width: 700px;
    margin: 1rem auto 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}


/* =====================================================
   Racing section navigation
   ===================================================== */

.racing-section-navigation {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    max-width: 100%;
    overflow-x: auto;
    padding: 0.25rem;
    scrollbar-width: thin;
}

.racing-section-button {
    cursor: pointer;
    white-space: nowrap;
}


/* =====================================================
   Section headings
   ===================================================== */

.racing-upcoming-section,
.racing-championships-section,
.racing-regulations-section {
    scroll-margin-top: 2rem;
    margin-bottom: 4rem;
}

.racing-section-title {
    margin: 0 0 1.5rem;
}


/* =====================================================
   Upcoming events
   ===================================================== */

.racing-upcoming-grid {
    width: 100%;
}


/*
 * One event:
 * wide horizontal card
 */

.racing-upcoming-single {
    display: grid;
    grid-template-columns: 1fr;
}

.racing-upcoming-grid .racing-event-card {
    display: grid;
    grid-template-columns: minmax(250px, 60%) 1fr;
    min-height: 300px;
}

.racing-upcoming-grid .racing-event-card.racing-event-card-reverse {
    grid-template-columns: 1fr minmax(250px, 60%);
}

@media (max-width: 1100px) {
    .racing-upcoming-grid .racing-event-card.racing-event-card-reverse {
        grid-template-columns: 1fr;
    }
}

/*
 * Multiple events:
 * cards sit beside each other
 */

.racing-upcoming-multiple {
    display: grid;

    grid-template-columns:
        repeat(var(--upcoming-event-count),
            minmax(220px, 320px));

    justify-content: center;

    gap: 1.25rem;
}


/* =====================================================
   Upcoming event card
   ===================================================== */

.racing-event-card {
    color: rgb(255, 255, 255);
    background: rgba(255, 255, 255, 0.09);
    border-width: 1px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.3);
    border-image: none;
    box-shadow: rgba(255, 255, 255, 0.28) 0px 20px 60px inset;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 0px;
    text-shadow: rgba(255, 255, 255, 0.5) 0px 0px 9px;
    overflow: hidden;
}

.racing-event-card-image {
    position: relative;
    width: 100%;
    min-height: 200px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 1100px) {
    .racing-event-card-content.verticalCenter {
        padding-left: 20px;
    }

    .racing-event-card-image {
        grid-row: 1;
    }
}

.racing-event-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}

.racing-event-card-content {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    padding-left: 40px;
}

.racing-event-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.racing-event-card-meta-state {
    color: var(--accent);
}

.racing-event-card-meta-season {}

.racing-event-card-title {
    margin: 0 0 0.75rem;
    font-size: 1.4rem;
}

.racing-event-card-info {
    line-height: 1.5;
    margin-bottom: 1rem;
}

.racing-event-card-date {
    margin-top: auto;
    padding-top: 1rem;
    font-weight: 600;
    color: var(--accent);
}

.racing-event-card-button {
    cursor: pointer;
}


/*
 * Multiple event cards:
 * photo at top, information underneath
 */

.racing-upcoming-multiple .racing-event-card {
    display: flex;
    flex-direction: column;
}

.racing-upcoming-multiple .racing-event-card-image {
    aspect-ratio: 16 / 9;
    min-height: 0;
}

.racing-upcoming-multiple .racing-event-card-content {
    flex: 1;
}

.racing-upcoming-multiple .racing-event-card-title {
    font-size: 1.15rem;
}


/* =====================================================
   Empty state
   ===================================================== */

.racing-empty-message {
    padding: 2rem;
    text-align: center;
}


/* =====================================================
   Championship grid
   ===================================================== */

.racing-championships-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}


/* =====================================================
   Championship card
   ===================================================== */

.racing-championship-card {
    overflow: hidden;
    border-radius: 1rem;
}


/*
 * First two cards:
 * image + content beside each other
 */

.racing-championship-horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    color: rgb(255, 255, 255);
    background: rgba(255, 255, 255, 0.09);
    border-width: 1px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.3);
    border-image: none;
    box-shadow: rgba(255, 255, 255, 0.28) 0px 20px 60px inset;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 0px;
    text-shadow: rgba(255, 255, 255, 0.5) 0px 0px 9px;
    overflow: hidden;
}


/*
 * Third and later cards:
 * image above content
 */

.racing-championship-vertical {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
}


/* =====================================================
   Championship image
   ===================================================== */

.racing-championship-photo {
    min-height: 300px;
    overflow: hidden;
}

.racing-championship-horizontal .racing-championship-photo {
    min-height: 100%;
}

.racing-championship-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =====================================================
   Championship content
   ===================================================== */

.racing-championship-seasons-wrapper {
    padding: 15px;
}

.racing-championship-content {
    display: flex;
    flex-direction: column;
}

.racing-championship-title {
    margin: 0em;
    font-size: 1.6rem;
    padding: 5px 25px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.3);
    align-items: center;
    justify-content: stretch;
}


/* =====================================================
   Seasons
   ===================================================== */

.racing-championship-seasons-heading {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    padding-right: 10px;
}

.racing-championship-seasons {
    display: flex;
    gap: 0rem;
    align-items: center;
    justify-content: stretch;
    padding-left: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.racing-season-button {
    background: rgba(255, 255, 255, 0.09);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 15px;
    color: rgb(255, 255, 255);
    font-size: 17px;
    border-radius: 0px;
    line-height: 1;
    margin: 0px 0px 0px 0px;
}


/* =====================================================
   Championship information
   ===================================================== */

.racing-championship-info {
    margin-top: 1rem;
    line-height: 1.6;
}

.racing-championship-info p:first-child {
    margin-top: 0;
}

.racing-championship-info p:last-child {
    margin-bottom: 0;
}


/* =====================================================
   Latest event
   ===================================================== */

.racing-latest-event-button {
    align-self: flex-start;
    cursor: pointer;
}


/* =====================================================
   Regulations
   ===================================================== */

.racing-regulations-placeholder {
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
}


/* =====================================================
   Responsive
   ===================================================== */

/*
 * Four event cards → two columns
 */

@media (max-width: 1100px) {

    .racing-upcoming-multiple {
        grid-template-columns:
            repeat(min(var(--upcoming-event-count),
                    2),
                minmax(220px, 320px));

        justify-content: center;
    }

}


/*
 * Championships become single-column.
 * The first two cards also switch to vertical.
 */

@media (max-width: 850px) {

    .racing-championships-grid {
        grid-template-columns: 1fr;
    }

    .racing-championship-horizontal,
    .racing-championship-vertical {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .racing-championship-horizontal .racing-championship-photo {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

}


/*
 * Smaller screens
 */

@media (max-width: 650px) {

    .racing-hero {
        padding: 3rem 1rem 1.5rem;
    }

    .racing-section-navigation {
        display: block;
        text-align: center;
    }

    .racing-section-button {
        margin: 20px auto;
    }

    .racing-upcoming-multiple {
        grid-template-columns: 1fr;
    }

    .racing-upcoming-single .racing-event-card {
        grid-template-columns: 1fr;
    }

    .racing-upcoming-single .racing-event-card-image {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

}

/*
=========================================================
********** CMS Pages ************************************
=========================================================
*/
.content-page {
    background: url("/assets/img/beamng2blur.jpg") center center / cover fixed;
}

.content-page-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    z-index: 1;
}

.content-page-hero::after {
    content: "";
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.53) 25.63%, rgba(0, 0, 0, 0.26) 59.24%, rgba(0, 0, 0, 0)),
        /* Layer A (Dark Overlay) */
        linear-gradient(rgba(0, 0, 0, 0) 76.05%, rgb(0, 0, 0));
    width: 100%;
    height: 463px;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.content-page-hero-content {
    width: 100%;
    max-width: 1300px;
    margin: auto;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.content-page-hero-content>h1,
.content-page-hero-content>h2,
.content-page-hero-content>h3,
.content-page-hero-content>h4,
.content-page-hero-content>h5,
.content-page-hero-content>p,
.content-page-hero-content>a {
    width: 100%;
    max-width: 800px;
    margin-left: 0px;
}

.content-page-hero-content>p,
.content-page-hero-content>a {
    text-shadow: 0px 0px 15px rgba(0, 0, 0, 0.89);
}

.content-page-content {
    width: 100%;
    max-width: 1000px;
    margin: auto;
    z-index: 3;
    position: relative;
    padding-top: 15px;
}

.content-page-content h2 {
    margin-bottom: 0px;
    line-height: 1.5;
}

.content-page-content h3 {
    margin-bottom: 0px;
    line-height: 1.5;
}

/*
=========================================================
******** Racers *****************************************
=========================================================
*/

.page-hero {
    min-height: 300px;
    background: linear-gradient(123deg, rgba(255, 215, 0, 0), rgba(0, 0, 0, 0.31), rgba(216, 172, 49, 0)), url("/assets/img/screenshot_2026-03-07_06-52-25.wide.jpg") center center / cover;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-hero-content {
    max-width: 1000px;
}

.page-hero-content p {
    text-shadow: 0px 0px 2px #000;
    ;
}

.racers-page .page-hero {
    padding: 15px;
}

.racers-section {
    margin: auto;
    width: 100%;
    max-width: 1300px;
    padding-bottom: 50px;
}

@media (max-width:1310px) {
    .racers-section {
        width: 95%;
    }
}

.racer-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fill,
            minmax(280px, 1fr));

    gap: 24px;

}


.racer-card {

    overflow: hidden;
    background: -webkit-linear-gradient(280deg, rgba(20, 22, 22, 0.14), rgba(255, 255, 255, 0.07) 31.51%, rgba(0, 0, 0, 0.1) 70.59%, rgba(255, 255, 255, 0.2));
    text-align: center;
    margin-top: 25px;
    border-radius: 15px;
    color: var(--text-muted);
    font-size: 18px;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-width: 1px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}


.racer-card:hover {

    transform: translateY(-3px);

}


.racer-card-hero {

    position: relative;

    height: 150px;

    overflow: hidden;

}


.racer-card-hero-image {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

}


.racer-card-content {

    position: relative;

    padding:
        0 20px 20px;

}


.racer-card-photo {

    display: block;

    width: 90px;
    height: 90px;
    margin: auto;
    margin-top: -45px;

    border-radius: 50%;

    object-fit: cover;

    border: 5px solid var(--card-background);

    position: relative;
    border-width: 1px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.3);
}


.racer-card-name {

    margin:
        12px 0 0;

    font-size: 1.35rem;

    line-height: 1.2;

}

/*
=========================================================
******** Racer profile **********************************
=========================================================
*/

.racer-profile-page {
    margin: auto;
    width: 100%;
}

.racingTableProfile::before {
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.42) 18%, rgba(255, 255, 255, 0.28) 50%, rgba(249, 115, 22, 0.42) 82%, transparent);
}

.racer-hero {
    padding: 50px;
    padding-bottom: 15px;
    background-image: linear-gradient(123deg,
            rgba(255, 215, 0, 0),
            rgba(218, 165, 0, 0),
            rgba(255, 255, 255, 0));
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    margin-top: -90px;
    width: 100%;
    border-radius: 0px 0px 15px 15px;
    border: solid 1px rgba(255, 255, 255, 0.30);
    text-align: center;
    max-width: 1920px;
    margin-right: auto;
    margin-left: auto;
}

.racer-hero img {
    width: 150px;
    height: 150px;
    margin: auto;
    border-radius: 25pc;
}

.racer-hero h1 {
    text-align: center;
    line-height: 1.5;
}


.racer-avatar {
    margin: auto;
    width: 150px;
    height: 150px;
    border-radius: 20pc;
}

.racer-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 20pc;
}

.racer-hero-content {
    text-align: center;
    margin-bottom: 50px;
}

/*
=========================================================
******** Racing stats for profiel ***********************
=========================================================
*/

.racingTableProfile {
    color: rgb(255, 255, 255);
    background: rgba(255, 255, 255, 0.09);
    border-width: 1px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.3);
    border-image: none;
    box-shadow: rgba(255, 255, 255, 0.28) 0px 20px 60px inset;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 0px;
    text-shadow: rgba(255, 255, 255, 0.5) 0px 0px 9px;
    overflow: hidden;
    margin: 15px auto 15px auto;
}

.racingTableProfile h2 {
    line-height: 1;
    padding-top: 15px;
    margin: 0px;
}

.racingTableProfile h3 {
    line-height: 1;
    margin: 0px;
    padding-top: 15px;
}

.racingTableProfileHeader {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: center;
    padding: 0px 20px 0px 20px;
    background-image: linear-gradient(123deg, rgba(255, 255, 255, 0.19), rgba(255, 255, 255, 0.12)), url("/assets/img/racingflag-wide-middle.png");
    background-position: center;
    background-repeat: no-repeat;
    justify-content: center;
    align-items: center;
}

.racingTableProfileHeaderCupPosition {
    text-align: center;
}

.racingTableProfileHeader p {
    text-shadow: rgba(0, 0, 0, 0.38) 0px 0px 2px;
}

@media (max-width:700px) {
    .racingTableProfileHeader p {
        pfont-size: 13px;
        line-height: 1;
        font-weight: bold;
    }

    .racingTableProfileHeaderInfo {
        padding-bottom: 10px;
    }
}

.racingTableProfileHeaderCupPositionGold {
    background-image: linear-gradient(123deg, rgba(255, 215, 0, 0.35), rgba(218, 165, 0, 0.85), rgba(216, 172, 49, 0.49)), url("/assets/img/racingflag.svg");
    box-shadow: 0 0 22px rgba(254, 213, 15, 0.56);
    border: solid 1px rgba(255, 255, 255, 0.30);
    border-radius: 15px 15px 115px 115px;
    width: 80px;
    margin: 5px auto 5px auto;
    padding: 5px;
    line-height: 1;
}

@media (max-width:700px) {
    racingTableProfileHeaderCupPositionGold {
        padding-bottom: 25px;
    }
}

.racingTableProfileHeaderCupPositionGold h2 {
    -webkit-text-fill-color: unset;
    text-shadow: rgba(0, 0, 0, 0.58) 0px 0px 3px;
}

.racingTableProfileHeaderCupPositionSilver {
    background-image: linear-gradient(123deg, rgba(255, 255, 255, 0.29), rgba(190, 195, 200, 0.85), rgba(182, 182, 182, 0.45)), url("/assets/img/racingflag.svg");
    box-shadow: 0 0 14px rgba(184, 184, 184, 1);
    border: solid 1px rgba(255, 255, 255, 0.30);
    border-radius: 15px 15px 115px 115px;
    width: 80px;
    margin: 5px auto 5px auto;
    padding: 5px;
    line-height: 1;
}

.racingTableProfileHeaderCupPositionSilver h2 {
    -webkit-text-fill-color: unset;
    text-shadow: rgba(0, 0, 0, 0.58) 0px 0px 3px;
}

.racingTableProfileHeaderCupPositionBronze {
    background-image: linear-gradient(123deg, rgba(139, 69, 19, 0.43), rgba(255, 145, 69, 0.73), rgba(178, 109, 63, 0.68)), url("/assets/img/racingflag.svg");
    box-shadow: 0 0 14px rgba(182, 99, 39, 1);
    border: solid 1px rgba(255, 255, 255, 0.30);
    border-radius: 15px 15px 115px 115px;
    width: 80px;
    margin: 5px auto 5px auto;
    padding: 5px;
    line-height: 1;
}

.racingTableProfileHeaderCupPositionBronze h2 {
    -webkit-text-fill-color: unset;
    text-shadow: rgba(0, 0, 0, 0.58) 0px 0px 3px;
}

.racingTableProfileHeaderCupPosition p {
    text-shadow: rgba(0, 0, 0, 0.58) 0px 0px 3px;
}

.racingTableProfileHeaderCupPoints {
    text-align: right;
}

.racingTableProfileHeaderStats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    width: 100%;
    border-top: solid 1px rgba(255, 255, 255, 0.30);
    padding: 0px 0px 12px 0px;
    justify-content: center;
    align-items: center;
}

.racingTableProfileHeaderStatsItem {
    text-align: center;
}

@media (max-width:700px) {
    .racingTableProfileHeaderStatsItem h3 {
        font-size: 13px;
        font-stretch: extra-condensed;
    }
}

.seasonProfile {
    color: var(--accent);
    text-shadow: rgba(0, 0, 0, 0.38) 0px 0px 2px;
}

.racingTableProfileHeaderCupPoints .pointsProfileRace {
    font-size: 50px;
    margin-top: -7px;
    font-family: Impact, Avenir Next Condensed;
}

/*
=========================================================
******** Latest World Records ***************************
=========================================================
*/
.laptimeWorldRecordHome {
    width: 100%;
    max-width: 1300px;
    margin: 60px auto 120px auto;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0;
    padding-top: 60px;
    text-shadow: rgba(255, 255, 255, 0.5) 0 0 9px;
    overflow: visible;
    font-family: impact, Anton;
    line-height: 1.5;
}

.laptimeWorldRecordHome h2,
.laptimeWorldRecordHome h3,
.laptimeWorldRecordHome p {
    margin: 0;
}

.laptimeWorldRecordHome h3 {
    color: rgb(255, 184, 77);
    text-shadow: none;
}

.laptimeWorldRecordHomeHeader {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.19), rgba(0, 0, 0, 0.23) 51.68%, rgba(0, 0, 0, 0.10980392156862745)), url("/assets/img/4.jpeg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 15px;
    margin: 0 0 20px 0;
    min-height: 300px;
    justify-content: center;
    align-items: center;
    display: flex;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px;
}

.laptimeWorldRecordHomeHeader h2 {
    font-size: 60px;
}

.laptimeWorldRecordHomeCard {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    align-items: center;
    color: #fff;

    background: rgba(255, 255, 255, 0.09);

    border: 1px solid rgba(255, 255, 255, 0.3);

    box-shadow:
        rgba(255, 255, 255, 0.28) 0 20px 60px inset;

    backdrop-filter: blur(15px);

    border-radius: 15px;

    min-height: 80px;

    overflow: visible;

    margin: 25px auto 15px auto;
    cursor: pointer;
}

.laptimeWorldRecordHomeCard:hover {
    background: rgba(255, 255, 255, 0.19);
}

.laptimeWorldRecordHomeCardLeft {
    display: grid;
    grid-template-columns: auto auto auto auto;
    justify-content: start;
    align-items: center;
    gap: 30px;
}

.laptimeWorldRecordHomeCardMap {
    width: 110px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;

    box-shadow:
        5px 0 5px rgba(0, 0, 0, 0.4);

    z-index: 3;
}

.laptimeWorldRecordHomeCardCar {
    width: 100px;
    height: 90px;
    object-fit: cover;
    border-radius: 5px;

    box-shadow:
        5px 0 5px rgba(0, 0, 0, 0.4);

    z-index: 2;

    margin-left: -30px;
}

.laptimeWorldRecordHomeCardTextLast {
    margin-right: auto;
    text-align: right;
    flex: 1;
}

@media (max-width:900px) {
    .laptimeWorldRecordHomeCardLeft {
        grid-template-columns: auto auto;
        column-gap: 0px;
        justify-content: stretch;
    }

    .laptimeWorldRecordHomeCard {
        display: block;
        margin: 15px;
        overflow: hidden;
    }

    .laptimeWorldRecordHomeCardMap {
        width: 100%;
        height: 100%;
        border-radius: 0px;
    }

    .laptimeWorldRecordHomeCardCar {
        width: 100%;
        height: 100%;
        margin-left: auto;
        margin-right: 0px;
        border-radius: 0px;
    }

    .laptimeWorldRecordHomeCardText {
        padding: 0px 15px;
    }

    .laptimeWorldRecordHomeCardText {
        padding: 0px 15px;
    }

    .laptimeWorldRecordHomeCardRight.laptimeWorldRecordHomeCardMap {
        height: 50px;
        width: 50px;
        border-radius: 50pc;
        margin-top: -30px;
        margin-left: 15px;
    }

    .laptimeWorldRecordHomeCardTextLast {
        margin-right: auto;
        text-align: left;
        flex: 1;
        margin-left: 80px;
        margin-bottom: -25px;
        margin-top: 20px;
    }
}

/*
=========================================================
******** Page Backgrounds *******************************
=========================================================
*/
.page-home {
    /* background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.53) 25.63%, rgba(0, 0, 0, 0.26) 59.24%, rgba(0, 0, 0, 0)),/
        linear-gradient(rgba(0, 0, 0, 0) 76.05%, rgb(0, 0, 0)),
        url("/assets/img/racingclassesHeader.png"), url("/assets/img/beamng2.jpg");
    background-repeat:
        no-repeat,
        repeat-y;

    background-position:
        top center,
        center 400px;

    background-size:
        auto 400px,
        100% auto; */
    background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.53) 25.63%, rgba(0, 0, 0, 0.26) 59.24%, rgba(0, 0, 0, 0)),
        /* Layer A (Dark Overlay) */
        linear-gradient(rgba(0, 0, 0, 0) 76.05%, rgb(0, 0, 0)),
        /* Layer B (Light Stripes) */
        url("/assets/img/beamng2blur.jpg");
    background-size: contain;
    background-blend-mode: hard-light;
    background-position: center left;

}

.page-home::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--height);
}

.page-cars {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.53) 25.63%, rgba(0, 0, 0, 0.35) 59.24%, rgba(0, 0, 0, 0.71)),
        /* Layer A (Dark Overlay) */
        linear-gradient(rgba(0, 0, 0, 0) 38.66%, rgb(0, 0, 0)),
        /* Layer B (Light Stripes) */
        url("/assets/img/cardealer.jpg");
    background-size: cover;
    background-blend-mode: hard-light;
}

.page-car {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.53) 25.63%, rgba(0, 0, 0, 0.35) 59.24%, rgba(0, 0, 0, 0.71)),
        /* Layer A (Dark Overlay) */
        linear-gradient(rgba(0, 0, 0, 0) 38.66%, rgb(0, 0, 0)),
        /* Layer B (Light Stripes) */
        url("/assets/img/cardealer.jpg");
    background-size: cover;
    background-blend-mode: hard-light;
}

.page-add-car {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.53) 25.63%, rgba(0, 0, 0, 0.35) 59.24%, rgba(0, 0, 0, 0.71)),
        /* Layer A (Dark Overlay) */
        linear-gradient(rgba(0, 0, 0, 0) 38.66%, rgb(0, 0, 0)),
        /* Layer B (Light Stripes) */
        url("/assets/img/cardealer.jpg");
    background-size: cover;
    background-blend-mode: hard-light;
}

.page-tracks {
    background: url("/assets/img/screenshot_2025-12-01_01-48-43.jpg") top center / cover fixed;
}

.page-racer {
    background: url("/assets/img/racingclassesBlur1.jpg") center center / cover fixed;
}

.page-racers {
    background: url("/assets/img/racingclassesBlur1.jpg") center center / cover fixed;
}

.page-cup-event {
    background: url("/assets/img/racingclassesBlur.jpg") center center / cover fixed;
}


.car-score-bars {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-gap: 30px;
}

.car-specs-container {
    display: grid;
    grid-template-columns: auto auto auto auto auto;
    grid-gap: 30px;
    margin-top: 30px;
    font-size: 18px;
    font-family: Impact, Anton;
    text-align: center;
    text-shadow: 0px 0px 15px rgba(0, 0, 0, 0.89);
}

.car-specs-container span {
    opacity: 90%;
    color: rgb(255, 184, 77);
}

.car-specs-container img {
    height: 52px;
    width: auto;
    opacity: 70%;
}

.car-specs-section {
    display: grid;
    grid-template-columns: auto auto;
    grid-gap: 30px;
    width: 100%;
    max-width: 1300px;
    margin: 60px auto 30px auto;
    padding: 15px;
    align-items: end;
}

.car-specs-section p {
    margin-bottom: 7px;
}

.car-specs-section span {
    color: #ffb84d;
}

.car-specs-section img {
    height: 24px;
    width: auto;
    opacity: 70%;
    margin-right: 10px;
    margin-bottom: -5px;
}

@media (max-width:700px) {
    .car-specs-container {
        grid-template-columns: auto auto auto;
        gap: 10px;
    }

    .car-specs-container h3 {
        font-size: 16px;
    }

    .car-specs-container img {
        height: 32px;
    }
}

.score-bar {
    width: 100%;
}

.score-bar h3 {
    margin-bottom: 5px;
    font-size: 17px;
}

.barContainer {
    position: relative;
    width: 100%;
    background-image: -webkit-linear-gradient(top,
            rgba(20, 22, 22, 0.54),
            rgba(64, 64, 64, 0.44) 31.93%,
            rgba(59, 59, 59, 0.35) 70.59%,
            rgba(0, 0, 0, 0.54));
    background-size: 100% 100%;
    background-repeat: no-repeat;
    box-shadow:
        rgb(0, 0, 0) 0px 0px 2px inset,
        rgba(255, 255, 255, 0.13) 0px 22px 12px 50px inset,
        rgba(0, 0, 0, 0.5) 0px 0px 13px 0px,
        rgba(0, 0, 0, 0.88) 0px 2px 2px 0px;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 252, 246, 0.36);
    border-radius: 100px;
    padding: 2px;
    overflow: hidden;
    white-space: nowrap;
}

.progressBar {
    position: relative;
    box-sizing: border-box;
    min-width: 0;
    text-align: right;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-right: 10px;
    color: white;
    background:
        linear-gradient(to top,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 0.53) 25.63%,
            rgba(0, 0, 0, 0.26) 59.24%,
            rgba(255, 255, 255, 0.73));
    box-shadow:
        rgb(0, 0, 0) 0px 0px 2px inset,
        rgba(255, 255, 255, 0.33) 0px 12px 3px 5px inset;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 100px;
    font-family: Impact, Anton;
    font-size: 17px;
    line-height: 1;
    text-shadow:
        rgb(0, 0, 0) 0px 0px 3px;

    transition:
        width 0.5s ease;
}

.progressBar::before {
    content: "";
    position: absolute;
    inset: 0;
    display: block;
    box-sizing: border-box;
    background-image:
        repeating-linear-gradient(-45deg,
            transparent,
            transparent 10px,
            rgb(0, 0, 0) 10px,
            rgb(0, 0, 0) 20px);
    opacity: 0.15;
    mix-blend-mode: overlay;
    border-radius: 50px;
    pointer-events: none;
}

.progressBar::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    width: 96%;
    left: 50%;
    margin-left: -48%;
    border-radius: 20px;
    height: 10px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.45) 30%,
            transparent 120%);
    pointer-events: none;
}


/*----------------------------------
  Red
----------------------------------*/
.redBar {
    background: linear-gradient(to right, rgba(251, 0, 0, 0.55), rgb(191, 0, 0) 57.14%), linear-gradient(to top, rgba(241, 56, 56, 0.49), rgba(0, 0, 0, 0.3) 25.63%, rgba(0, 0, 0, 0.12) 59.24%, rgb(255, 10, 10));
    box-shadow: rgb(0, 0, 0) 0px 0px 2px inset, rgba(255, 148, 0, 0.94) 0px 0px 17px 0px, rgba(255, 255, 255, 0.33) 0px 12px 3px 5px inset;
}

/*----------------------------------
  Orange
----------------------------------*/

.orangeBar {
    background: linear-gradient(to right, rgba(251, 148, 0, 0.55), rgb(191, 115, 0) 57.14%),
        linear-gradient(to top,
            rgba(241, 156, 56, 0.49),
            rgba(0, 0, 0, 0.3) 25.63%,
            rgba(0, 0, 0, 0.12) 59.24%,
            rgb(255, 155, 10));
    box-shadow:
        rgb(0, 0, 0) 0px 0px 2px inset,
        rgba(255, 148, 0, 0.94) 0px 0px 17px 0px,
        rgba(255, 255, 255, 0.33) 0px 12px 3px 5px inset;
}


/*----------------------------------
  Green
----------------------------------*/

.greenBar {
    background: linear-gradient(to right, rgba(13, 54, 24, 0.42), rgb(29, 86, 45) 57.14%),
        linear-gradient(to top, rgba(60, 190, 100, 0.27), rgba(0, 0, 0, 0.3) 25.63%, rgba(0, 0, 0, 0.12) 59.24%, rgba(69, 214, 109, 0.45));

    box-shadow:
        rgb(0, 0, 0) 0px 0px 2px inset,
        rgba(60, 210, 100, 0.94) 0px 0px 17px 0px,
        rgba(255, 255, 255, 0.33) 0px 12px 3px 5px inset;
}


/*----------------------------------
  Blue
----------------------------------*/

.blueBar {
    background: linear-gradient(to right, rgba(13, 49, 80, 0.59) 0.42%, rgba(32, 85, 132, 0.74) 56.72%), linear-gradient(to top, rgba(60, 145, 220, 0.69), rgba(0, 0, 0, 0.3) 25.63%, rgba(0, 0, 0, 0.12) 59.24%, rgba(60, 146, 220, 0.73));

    box-shadow:
        rgb(0, 0, 0) 0px 0px 2px inset,
        rgba(60, 150, 235, 0.94) 0px 0px 17px 0px,
        rgba(255, 255, 255, 0.33) 0px 12px 3px 5px inset;
}

.racer-score-bars {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
}

@media (max-width:500px) {
    .racer-score-bars {
        grid-template-columns: 1fr;
        text-align: left;
    }
}

.mapName {
    color: rgb(255, 184, 77);
}
