body {
    margin: 0;
    font-family: 'IM Fell English SC', serif;
    background-image: url(assets/backgrounds/bg-dark.png);
    background-size: cover;
    background-position: center;
    background-repeat: repeat-y;
    background-color: #2a1a0f;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    image-rendering: pixelated;
}

header,
footer {
    position: fixed;

    left: 0;
    width: 100%;
    background-image: url('assets/backgrounds/bg-header-tile.png');
    background-repeat: repeat-x;
    height: 64px;
    image-rendering: pixelated;
}

header {
    top: 0;
    background-position: 0 -8px;
}

footer {
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
    padding: 0 16px;
    position: relative;
}


main {
    margin-top: 64px;
    margin-bottom: 64px;
    padding-top: 10px;
    overflow-y: auto;
    height: auto;
    font-size: 50px;
    display: grid;
    justify-content: center;
    color: #f5e6c8;

}

body.no-scroll main {
    overflow: hidden;
}

.coming-soon {
    display: table;
    align-items: center;
    padding-left: 30px;
    text-align: center;
}

.error {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    padding-top: 60px;
}

.nav-links-center {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links-center,
.nav-label {
    font-family: 'VT323', monospace;
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f5e6c8;
}

.nav-links-center a {
    border-style: solid;
    border-width: 6px 20px;
    border-image-source: url('assets/buttons/footer-link/normal.png');
    border-image-slice: 6 20 fill;
    image-rendering: pixelated;
    padding: 4px 12px;
    display: inline-block;
}

.nav-links-center li::after {
    display: none;
}

.nav-links-center a,
.nav-label {
    transition: color 0.5s, font-size 0.1s;
}

.nav-links-center a:hover,
.nav-links-right a:hover .nav-label,
#lang-toggle:hover .lang-code-single {
    color: #f3c873;
    
}

.nav-links-right {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-toggle {
    display: none;
    grid-column: 3;
    justify-self: end;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    margin-right: 4px;
    line-height: 1;
    cursor: pointer;
}

.nav-toggle img {
    width: 28px;
    height: 28px;
}

.nav-menu {
    display: contents;
    background-color: #e8d5a8;
    border-bottom: 12px solid #8b5a2b;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 0 #5c3a1a;
}

.nav-menu.is-open {
    display: flex;
    gap: 20px;
}

.nav-label {
    display: none;
}



.cookie-notice {
    position: fixed;
    bottom: 80px;
    left: 16px;
    right: 16px;
    max-width: 480px;
    margin: 0 auto;
    background-color: #2a1a0f;
    color: #f5e6c8;
    border: 3px solid #8b5a2b;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: 'VT323', monospace;
    font-size: 18px;
    z-index: 1000;
}

.cookie-notice p {
    margin: 0;
}

.cookie-notice.is-hidden {
    display: none;
}

#cookie-notice-close {
    background: none;
    border: none;
    color: #f5e6c8;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

#lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #f5e6c8;
}

.lang-code-single {
    font-family: 'VT323', monospace;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.lang-code-pair {
    display: none;
    font-family: 'VT323', monospace;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-link {
    border-style: solid;
    border-width: 6px 20px;
    border-image-source: url('assets/buttons/footer-link/normal.png');
    border-image-slice: 6 20 fill;
    image-rendering: pixelated;
    background: none;
    color: #f5e6c8;
    font-family: 'VT323', monospace;
    font-size: 16px;
    padding: 4px 8px;
    cursor: pointer;
}

.logo,
.cta-register {
    font-family: 'VT323', monospace;
}

.logo img {
    position: absolute;
    left: 16px;
    top: 0;
    height: 100px;
    width: auto;
    display: block;
}

.cta-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-style: solid;
    border-width: 8px;
    border-image-source: url('assets/buttons/cta-register/normal.png');
    border-image-slice: 16 fill;
    image-rendering: pixelated;
    height: 42px;
    padding: 0 20px;
    font-family: 'VT323', monospace;
    font-size: 22px;
    color: #f5e6c8;
    font-weight: bold;
}

.hero {
    min-height: 45vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 24px;
    box-sizing: border-box;
}

#hero-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.hero-claim {
    font-family: 'IM Fell English SC', serif;
    font-size: 50px;
    color: #f5e6c8;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    max-width: 1000px;
    margin: 0 auto 16px;
    line-height: 1.3;
}

.hero-subclaim {
    font-family: 'IM Fell English SC', serif;
    font-size: 22px;
    color: #f5e6c8;
    max-width: 600px;
    margin: 0 auto;
}

.hero-scroll-hint {
    display: block;
    width: 32px;
    height: 32px;
    margin: 40px auto 0;
    animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

.race-showcase {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.race-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
}

.race-row:nth-child(even) {
    flex-direction: row-reverse;
}

.race-media img {
    height: 400px;
    width: auto;
}

.race-text {
    flex: 1;
    text-align: center;
}

.race-text h2 {
    font-family: 'VT323', monospace;
    font-size: 40px;
    color: gold;
    margin: 0 0 8px;
}

.race-text p {
    font-family: 'IM Fell English SC', serif;
    font-size: 20px;
    line-height: 1.5;
    margin: 0;
}

main.roadmap-page {
    padding: 0;
    box-sizing: border-box;
}

.about-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    color: #f5e6c8;
}

.about-page h1 {
    font-family: 'IM Fell English SC', serif;
    font-size: 44px;
    color: #f5e6c8;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin: 0 0 24px;
}

.about-page p {
    font-family: 'IM Fell English SC', serif;
    font-size: 20px;
    line-height: 1.6;
    margin: 0 0 20px;
}

.inline-link {
    font-size: 23px;
    line-height: 32px;
    color: inherit;
    text-decoration: none;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6), 0 0 8px rgba(255, 217, 0, 0.4);
    animation: link-pulse 2.5s ease-in-out infinite;
}

@keyframes link-pulse {
    0%, 100% {
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 217, 0, 0.5);
    }
    50% {
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 217, 0, 0.8);
    }
}

.inline-link:hover {
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 217, 0, 0.9);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f5e6c8;
    font-family: 'VT323', monospace;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.social-link img {
    width: 28px;
    height: 28px;
}

.social-link:hover {
    color: gold;
}

.social-links-center {
    justify-content: center;
}

.login-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 24px;
    text-align: center;
    color: #f5e6c8;
}

.login-badge {
    display: inline-block;
    font-family: 'VT323', monospace;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #2a1a0f;
    background-color: gold;
    padding: 6px 16px;
    border-radius: 4px;
    margin-bottom: 24px;
}

.login-page h1 {
    font-family: 'IM Fell English SC', serif;
    font-size: 40px;
    color: #f5e6c8;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin: 0 0 24px;
}

.login-page p {
    font-family: 'IM Fell English SC', serif;
    font-size: 20px;
    line-height: 1.6;
    margin: 0 0 20px;
}

.roadmap-img-desktop {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.roadmap-img-mobile {
    display: none;
    max-width: 100%;
}

@media (max-width: 1080px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: fixed;
        top: 64px;
        right: 8px;
        background-color: #e8d5a8;
        border-bottom: 12px solid #8b5a2b;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 4px 0 #5c3a1a;
        text-align: center;
        max-height: 0;
        padding: 0 32px;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
    }

    .nav-menu.is-open {
        max-height: 600px;
        padding: 24px 32px;
    }

    .nav-links-center,
    .nav-links-right {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .nav-links-center,
    .nav-links-right,
    .nav-label,
    #lang-toggle {
        color: #000000;
    }

    .nav-links-center li::after {
        display: none;
    }

    .nav-links-right a {
        display: block;

    }

    .nav-label {
        display: inline;
        font-family: 'VT323', monospace;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .nav-links-right img {
        display: none;
    }

    .lang-toggle-icon {
        display: none;
    }

    .lang-code-single {
        display: none;
    }

    .lang-code-pair {
        display: inline;
        font-size: 30px;
    }

    .nav-links-center a {
        border: none;
        padding: 0;
    }

    .nav-links-center a:hover,
    .nav-links-right a:hover .nav-label,
    #lang-toggle:hover .lang-code-pair {
        font-size: 30px;
        color: #000000;
    }

    .nav-links-center,
    .nav-label,
    .lang-code-pair {
        text-shadow: 1px 1px 15px #0000003e;
    }

    .roadmap-img-desktop {
        display: none;
    }

    .roadmap-img-mobile {
        display: block;
    }

    .race-row,
    .race-row:nth-child(even) {
        flex-direction: column;
    }

    .race-media {
        order: 2;
    }

    .race-text {
        order: 1;
    }

    .race-media img {
        height: 250px;
        max-width: 100%;
    }

    #hero-particles {
        display: none;
    }
}

@media (min-width: 1081px) {
    main.roadmap-page {
        height: calc(100vh - 128px);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
}